Class StatusAssertions
java.lang.Object
org.springframework.test.web.support.AbstractStatusAssertions<ExchangeResult, RestTestClient.ResponseSpec>
org.springframework.test.web.servlet.client.StatusAssertions
public class StatusAssertions
extends AbstractStatusAssertions<ExchangeResult, RestTestClient.ResponseSpec>
Assertions on the response status.
- Since:
- 7.0
- Author:
- Rob Worsnop
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionprotected voidassertWithDiagnostics(Runnable assertion) Subclasses must implement this to assert with diagnostics.protected HttpStatusCodeSubclasses must implement this to provide access to the response status.Methods inherited from class org.springframework.test.web.support.AbstractStatusAssertions
getExchangeResult, is1xxInformational, is2xxSuccessful, is3xxRedirection, is4xxClientError, is5xxServerError, isAccepted, isBadRequest, isCreated, isEqualTo, isEqualTo, isForbidden, isFound, isNoContent, isNotFound, isNotModified, isOk, isPermanentRedirect, isSeeOther, isTemporaryRedirect, isUnauthorized, reasonEquals, value, value
-
Method Details
-
getStatus
Description copied from class:AbstractStatusAssertionsSubclasses must implement this to provide access to the response status.- Specified by:
getStatusin classAbstractStatusAssertions<ExchangeResult, RestTestClient.ResponseSpec>
-
assertWithDiagnostics
Description copied from class:AbstractStatusAssertionsSubclasses must implement this to assert with diagnostics.- Specified by:
assertWithDiagnosticsin classAbstractStatusAssertions<ExchangeResult, RestTestClient.ResponseSpec>
-