public interface HttpResponseExpectation extends Expectation<HttpResponseHead>
Modifier and Type | Method and Description |
---|---|
static HttpResponseExpectation |
contentType(List<String> mimeTypes)
Creates an expectation validating the response has a
content-type header matching one of the mimeTypes . |
static HttpResponseExpectation |
contentType(String... mimeTypes)
Creates an expectation validating the response has a
content-type header matching one of the mimeTypes . |
static HttpResponseExpectation |
contentType(String mimeType)
Creates an expectation validating the response has a
content-type header matching the mimeType . |
static HttpResponseExpectation |
status(int statusCode)
Creates an expectation asserting that the status response code is equal to
statusCode . |
static HttpResponseExpectation |
status(int min,
int max) |
and, describe, or, test, wrappingFailure
static final HttpResponseExpectation SC_INFORMATIONAL_RESPONSE
static final HttpResponseExpectation SC_CONTINUE
static final HttpResponseExpectation SC_SWITCHING_PROTOCOLS
static final HttpResponseExpectation SC_PROCESSING
static final HttpResponseExpectation SC_EARLY_HINTS
static final HttpResponseExpectation SC_SUCCESS
static final HttpResponseExpectation SC_OK
static final HttpResponseExpectation SC_CREATED
static final HttpResponseExpectation SC_ACCEPTED
static final HttpResponseExpectation SC_NON_AUTHORITATIVE_INFORMATION
static final HttpResponseExpectation SC_NO_CONTENT
static final HttpResponseExpectation SC_RESET_CONTENT
static final HttpResponseExpectation SC_PARTIAL_CONTENT
static final HttpResponseExpectation SC_MULTI_STATUS
static final HttpResponseExpectation SC_REDIRECTION
static final HttpResponseExpectation SC_MULTIPLE_CHOICES
static final HttpResponseExpectation SC_MOVED_PERMANENTLY
static final HttpResponseExpectation SC_FOUND
static final HttpResponseExpectation SC_SEE_OTHER
static final HttpResponseExpectation SC_NOT_MODIFIED
static final HttpResponseExpectation SC_USE_PROXY
static final HttpResponseExpectation SC_TEMPORARY_REDIRECT
static final HttpResponseExpectation SC_PERMANENT_REDIRECT
static final HttpResponseExpectation SC_CLIENT_ERRORS
static final HttpResponseExpectation SC_BAD_REQUEST
static final HttpResponseExpectation SC_UNAUTHORIZED
static final HttpResponseExpectation SC_PAYMENT_REQUIRED
static final HttpResponseExpectation SC_FORBIDDEN
static final HttpResponseExpectation SC_NOT_FOUND
static final HttpResponseExpectation SC_METHOD_NOT_ALLOWED
static final HttpResponseExpectation SC_NOT_ACCEPTABLE
static final HttpResponseExpectation SC_PROXY_AUTHENTICATION_REQUIRED
static final HttpResponseExpectation SC_REQUEST_TIMEOUT
static final HttpResponseExpectation SC_CONFLICT
static final HttpResponseExpectation SC_GONE
static final HttpResponseExpectation SC_LENGTH_REQUIRED
static final HttpResponseExpectation SC_PRECONDITION_FAILED
static final HttpResponseExpectation SC_REQUEST_ENTITY_TOO_LARGE
static final HttpResponseExpectation SC_REQUEST_URI_TOO_LONG
static final HttpResponseExpectation SC_UNSUPPORTED_MEDIA_TYPE
static final HttpResponseExpectation SC_REQUESTED_RANGE_NOT_SATISFIABLE
static final HttpResponseExpectation SC_EXPECTATION_FAILED
static final HttpResponseExpectation SC_MISDIRECTED_REQUEST
static final HttpResponseExpectation SC_UNPROCESSABLE_ENTITY
static final HttpResponseExpectation SC_LOCKED
static final HttpResponseExpectation SC_FAILED_DEPENDENCY
static final HttpResponseExpectation SC_UNORDERED_COLLECTION
static final HttpResponseExpectation SC_UPGRADE_REQUIRED
static final HttpResponseExpectation SC_PRECONDITION_REQUIRED
static final HttpResponseExpectation SC_TOO_MANY_REQUESTS
static final HttpResponseExpectation SC_REQUEST_HEADER_FIELDS_TOO_LARGE
static final HttpResponseExpectation SC_SERVER_ERRORS
static final HttpResponseExpectation SC_INTERNAL_SERVER_ERROR
static final HttpResponseExpectation SC_NOT_IMPLEMENTED
static final HttpResponseExpectation SC_BAD_GATEWAY
static final HttpResponseExpectation SC_SERVICE_UNAVAILABLE
static final HttpResponseExpectation SC_GATEWAY_TIMEOUT
static final HttpResponseExpectation SC_HTTP_VERSION_NOT_SUPPORTED
static final HttpResponseExpectation SC_VARIANT_ALSO_NEGOTIATES
static final HttpResponseExpectation SC_INSUFFICIENT_STORAGE
static final HttpResponseExpectation SC_NOT_EXTENDED
static final HttpResponseExpectation SC_NETWORK_AUTHENTICATION_REQUIRED
static final HttpResponseExpectation JSON
content-type
is application/json
.static HttpResponseExpectation status(int statusCode)
statusCode
.statusCode
- the expected status codestatic HttpResponseExpectation status(int min, int max)
static HttpResponseExpectation contentType(String mimeType)
content-type
header matching the mimeType
.mimeType
- the mime typestatic HttpResponseExpectation contentType(String... mimeTypes)
content-type
header matching one of the mimeTypes
.mimeTypes
- the list of mime typesstatic HttpResponseExpectation contentType(List<String> mimeTypes)
content-type
header matching one of the mimeTypes
.mimeTypes
- the list of mime typesCopyright © 2024 Eclipse. All rights reserved.