Class StatusAssertions
java.lang.Object
org.springframework.test.web.support.AbstractStatusAssertions<ExchangeResult, WebTestClient.ResponseSpec>
org.springframework.test.web.reactive.server.StatusAssertions
public class StatusAssertions
extends AbstractStatusAssertions<ExchangeResult, WebTestClient.ResponseSpec>
Assertions on the response status.
- Since:
- 5.0
- Author:
- Rossen Stoyanchev, Rob Worsnop
- See Also:
- 
Method SummaryModifier 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 AbstractStatusAssertionsgetExchangeResult, 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- 
getStatusDescription copied from class:AbstractStatusAssertionsSubclasses must implement this to provide access to the response status.- Specified by:
- getStatusin class- AbstractStatusAssertions<ExchangeResult, WebTestClient.ResponseSpec>
 
- 
assertWithDiagnosticsDescription copied from class:AbstractStatusAssertionsSubclasses must implement this to assert with diagnostics.- Specified by:
- assertWithDiagnosticsin class- AbstractStatusAssertions<ExchangeResult, WebTestClient.ResponseSpec>
 
 
-