open class StatusResultMatchers
Factory for assertions on the response status.
An instance of this class is typically accessed via MockMvcResultMatchers#status.
Author
Keesun Baik
Author
Rossen Stoyanchev
Author
Sebastien Deleuze
Author
Brian Clozel
Since
3.2
open fun is(matcher: Matcher<Int>): ResultMatcher
Assert the response status code with the given Hamcrest Matcher. open fun is(status: Int): ResultMatcher
Assert the response status code is equal to an integer value. |
|
open fun is1xxInformational(): ResultMatcher
Assert the response status code is in the 1xx range. |
|
open fun is2xxSuccessful(): ResultMatcher
Assert the response status code is in the 2xx range. |
|
open fun is3xxRedirection(): ResultMatcher
Assert the response status code is in the 3xx range. |
|
open fun is4xxClientError(): ResultMatcher
Assert the response status code is in the 4xx range. |
|
open fun is5xxServerError(): ResultMatcher
Assert the response status code is in the 5xx range. |
|
open fun isAccepted(): ResultMatcher
Assert the response status code is |
|
open fun isAlreadyReported(): ResultMatcher
Assert the response status code is |
|
open fun isBadGateway(): ResultMatcher
Assert the response status code is |
|
open fun isBadRequest(): ResultMatcher
Assert the response status code is |
|
open fun isBandwidthLimitExceeded(): ResultMatcher
Assert the response status code is |
|
open fun isCheckpoint(): ResultMatcher
Assert the response status code is |
|
open fun isConflict(): ResultMatcher
Assert the response status code is |
|
open fun isContinue(): ResultMatcher
Assert the response status code is |
|
open fun isCreated(): ResultMatcher
Assert the response status code is |
|
open fun isDestinationLocked(): ResultMatcher
Assert the response status code is |
|
open fun isExpectationFailed(): ResultMatcher
Assert the response status code is |
|
open fun isFailedDependency(): ResultMatcher
Assert the response status code is |
|
open fun isForbidden(): ResultMatcher
Assert the response status code is |
|
open fun isFound(): ResultMatcher
Assert the response status code is |
|
open fun isGatewayTimeout(): ResultMatcher
Assert the response status code is |
|
open fun isGone(): ResultMatcher
Assert the response status code is |
|
open fun isHttpVersionNotSupported(): ResultMatcher
Assert the response status code is |
|
open fun isIAmATeapot(): ResultMatcher
Assert the response status code is |
|
open fun isImUsed(): ResultMatcher
Assert the response status code is |
|
open fun isInsufficientSpaceOnResource(): ResultMatcher
Assert the response status code is |
|
open fun isInsufficientStorage(): ResultMatcher
Assert the response status code is |
|
open fun isInternalServerError(): ResultMatcher
Assert the response status code is |
|
open fun isLengthRequired(): ResultMatcher
Assert the response status code is |
|
open fun isLocked(): ResultMatcher
Assert the response status code is |
|
open fun isLoopDetected(): ResultMatcher
Assert the response status code is |
|
open fun isMethodFailure(): ResultMatcher
Assert the response status code is |
|
open fun isMethodNotAllowed(): ResultMatcher
Assert the response status code is |
|
open fun isMovedPermanently(): ResultMatcher
Assert the response status code is |
|
open fun isMovedTemporarily(): ResultMatcher
Assert the response status code is |
|
open fun isMultiStatus(): ResultMatcher
Assert the response status code is |
|
open fun isMultipleChoices(): ResultMatcher
Assert the response status code is |
|
open fun isNetworkAuthenticationRequired(): ResultMatcher
Assert the response status code is |
|
open fun isNoContent(): ResultMatcher
Assert the response status code is |
|
open fun isNonAuthoritativeInformation(): ResultMatcher
Assert the response status code is |
|
open fun isNotAcceptable(): ResultMatcher
Assert the response status code is |
|
open fun isNotExtended(): ResultMatcher
Assert the response status code is |
|
open fun isNotFound(): ResultMatcher
Assert the response status code is |
|
open fun isNotImplemented(): ResultMatcher
Assert the response status code is |
|
open fun isNotModified(): ResultMatcher
Assert the response status code is |
|
open fun isOk(): ResultMatcher
Assert the response status code is |
|
open fun isPartialContent(): ResultMatcher
Assert the response status code is |
|
open fun isPayloadTooLarge(): ResultMatcher
Assert the response status code is |
|
open fun isPaymentRequired(): ResultMatcher
Assert the response status code is |
|
open fun isPermanentRedirect(): ResultMatcher
Assert the response status code is |
|
open fun isPreconditionFailed(): ResultMatcher
Assert the response status code is |
|
open fun isPreconditionRequired(): ResultMatcher
Assert the response status code is |
|
open fun isProcessing(): ResultMatcher
Assert the response status code is |
|
open fun isProxyAuthenticationRequired(): ResultMatcher
Assert the response status code is |
|
open fun isRequestEntityTooLarge(): ResultMatcher
Assert the response status code is |
|
open fun isRequestHeaderFieldsTooLarge(): ResultMatcher
Assert the response status code is |
|
open fun isRequestTimeout(): ResultMatcher
Assert the response status code is |
|
open fun isRequestUriTooLong(): ResultMatcher
Assert the response status code is |
|
open fun isRequestedRangeNotSatisfiable(): ResultMatcher
Assert the response status code is |
|
open fun isResetContent(): ResultMatcher
Assert the response status code is |
|
open fun isSeeOther(): ResultMatcher
Assert the response status code is |
|
open fun isServiceUnavailable(): ResultMatcher
Assert the response status code is |
|
open fun isSwitchingProtocols(): ResultMatcher
Assert the response status code is |
|
open fun isTemporaryRedirect(): ResultMatcher
Assert the response status code is |
|
open fun isTooManyRequests(): ResultMatcher
Assert the response status code is |
|
open fun isUnauthorized(): ResultMatcher
Assert the response status code is |
|
open fun isUnavailableForLegalReasons(): ResultMatcher
Assert the response status code is |
|
open fun isUnprocessableEntity(): ResultMatcher
Assert the response status code is |
|
open fun isUnsupportedMediaType(): ResultMatcher
Assert the response status code is |
|
open fun isUpgradeRequired(): ResultMatcher
Assert the response status code is |
|
open fun isUriTooLong(): ResultMatcher
Assert the response status code is |
|
open fun isUseProxy(): ResultMatcher
Assert the response status code is |
|
open fun isVariantAlsoNegotiates(): ResultMatcher
Assert the response status code is |
|
open fun reason(matcher: Matcher<in String>): ResultMatcher
Assert the Servlet response error message with the given Hamcrest Matcher. open fun reason(reason: String): ResultMatcher
Assert the Servlet response error message. |