| Modifier and Type | Field and Description |
|---|---|
| public static final HttpResponseExpectation | JSON
Creates an expectation validating the response |
| public static final HttpResponseExpectation | SC_ACCEPTED
202 Accepted |
| public static final HttpResponseExpectation | SC_BAD_GATEWAY
502 Bad Gateway |
| public static final HttpResponseExpectation | SC_BAD_REQUEST
400 Bad Request |
| public static final HttpResponseExpectation | SC_CLIENT_ERRORS
Any 4XX client error |
| public static final HttpResponseExpectation | SC_CONFLICT
409 Conflict |
| public static final HttpResponseExpectation | SC_CONTINUE
100 Continue |
| public static final HttpResponseExpectation | SC_CREATED
201 Created |
| public static final HttpResponseExpectation | SC_EARLY_HINTS
103 Early Hints |
| public static final HttpResponseExpectation | SC_EXPECTATION_FAILED
417 Expectation Failed |
| public static final HttpResponseExpectation | SC_FAILED_DEPENDENCY
424 Failed Dependency (WebDAV, RFC4918) |
| public static final HttpResponseExpectation | SC_FORBIDDEN
403 Forbidden |
| public static final HttpResponseExpectation | SC_FOUND
302 Found |
| public static final HttpResponseExpectation | SC_GATEWAY_TIMEOUT
504 Gateway Timeout |
| public static final HttpResponseExpectation | SC_GONE
410 Gone |
| public static final HttpResponseExpectation | SC_HTTP_VERSION_NOT_SUPPORTED
505 HTTP Version Not Supported |
| public static final HttpResponseExpectation | SC_INFORMATIONAL_RESPONSE
Any 1XX informational response |
| public static final HttpResponseExpectation | SC_INSUFFICIENT_STORAGE
507 Insufficient Storage (WebDAV, RFC4918) |
| public static final HttpResponseExpectation | SC_INTERNAL_SERVER_ERROR
500 Internal Server Error |
| public static final HttpResponseExpectation | SC_LENGTH_REQUIRED
411 Length Required |
| public static final HttpResponseExpectation | SC_LOCKED
423 Locked (WebDAV, RFC4918) |
| public static final HttpResponseExpectation | SC_METHOD_NOT_ALLOWED
405 Method Not Allowed |
| public static final HttpResponseExpectation | SC_MISDIRECTED_REQUEST
421 Misdirected Request |
| public static final HttpResponseExpectation | SC_MOVED_PERMANENTLY
301 Moved Permanently |
| public static final HttpResponseExpectation | SC_MULTI_STATUS
207 Multi-Status (WebDAV, RFC2518) |
| public static final HttpResponseExpectation | SC_MULTIPLE_CHOICES
300 Multiple Choices |
| public static final HttpResponseExpectation | SC_NETWORK_AUTHENTICATION_REQUIRED
511 Network Authentication Required (RFC6585) |
| public static final HttpResponseExpectation | SC_NO_CONTENT
204 No Content |
| public static final HttpResponseExpectation | SC_NON_AUTHORITATIVE_INFORMATION
203 Non-Authoritative Information (since HTTP/1.1) |
| public static final HttpResponseExpectation | SC_NOT_ACCEPTABLE
406 Not Acceptable |
| public static final HttpResponseExpectation | SC_NOT_EXTENDED
510 Not Extended (RFC2774) |
| public static final HttpResponseExpectation | SC_NOT_FOUND
404 Not Found |
| public static final HttpResponseExpectation | SC_NOT_IMPLEMENTED
501 Not Implemented |
| public static final HttpResponseExpectation | SC_NOT_MODIFIED
304 Not Modified |
| public static final HttpResponseExpectation | SC_OK
200 OK |
| public static final HttpResponseExpectation | SC_PARTIAL_CONTENT
206 Partial Content |
| public static final HttpResponseExpectation | SC_PAYMENT_REQUIRED
402 Payment Required |
| public static final HttpResponseExpectation | SC_PERMANENT_REDIRECT
308 Permanent Redirect (RFC7538) |
| public static final HttpResponseExpectation | SC_PRECONDITION_FAILED
412 Precondition Failed |
| public static final HttpResponseExpectation | SC_PRECONDITION_REQUIRED
428 Precondition Required (RFC6585) |
| public static final HttpResponseExpectation | SC_PROCESSING
102 Processing (WebDAV, RFC2518) |
| public static final HttpResponseExpectation | SC_PROXY_AUTHENTICATION_REQUIRED
407 Proxy Authentication Required |
| public static final HttpResponseExpectation | SC_REDIRECTION
Any 3XX redirection |
| public static final HttpResponseExpectation | SC_REQUEST_ENTITY_TOO_LARGE
413 Request Entity Too Large |
| public static final HttpResponseExpectation | SC_REQUEST_HEADER_FIELDS_TOO_LARGE
431 Request Header Fields Too Large (RFC6585) |
| public static final HttpResponseExpectation | SC_REQUEST_TIMEOUT
408 Request Timeout |
| public static final HttpResponseExpectation | SC_REQUEST_URI_TOO_LONG
414 Request-URI Too Long |
| public static final HttpResponseExpectation | SC_REQUESTED_RANGE_NOT_SATISFIABLE
416 Requested Range Not Satisfiable |
| public static final HttpResponseExpectation | SC_RESET_CONTENT
205 Reset Content |
| public static final HttpResponseExpectation | SC_SEE_OTHER
303 See Other (since HTTP/1.1) |
| public static final HttpResponseExpectation | SC_SERVER_ERRORS
Any 5XX server error |
| public static final HttpResponseExpectation | SC_SERVICE_UNAVAILABLE
503 Service Unavailable |
| public static final HttpResponseExpectation | SC_SUCCESS
Any 2XX success |
| public static final HttpResponseExpectation | SC_SWITCHING_PROTOCOLS
101 Switching Protocols |
| public static final HttpResponseExpectation | SC_TEMPORARY_REDIRECT
307 Temporary Redirect (since HTTP/1.1) |
| public static final HttpResponseExpectation | SC_TOO_MANY_REQUESTS
429 Too Many Requests (RFC6585) |
| public static final HttpResponseExpectation | SC_UNAUTHORIZED
401 Unauthorized |
| public static final HttpResponseExpectation | SC_UNORDERED_COLLECTION
425 Unordered Collection (WebDAV, RFC3648) |
| public static final HttpResponseExpectation | SC_UNPROCESSABLE_ENTITY
422 Unprocessable Entity (WebDAV, RFC4918) |
| public static final HttpResponseExpectation | SC_UNSUPPORTED_MEDIA_TYPE
415 Unsupported Media Type |
| public static final HttpResponseExpectation | SC_UPGRADE_REQUIRED
426 Upgrade Required (RFC2817) |
| public static final HttpResponseExpectation | SC_USE_PROXY
305 Use Proxy (since HTTP/1.1) |
| public static final HttpResponseExpectation | SC_VARIANT_ALSO_NEGOTIATES
506 Variant Also Negotiates (RFC2295) |
| Modifier and Type | Method and Description |
|---|---|
| public static HttpResponseExpectation | contentType(String
the mime type mimeType)Creates an expectation validating the response has a |
| public static HttpResponseExpectation | contentType(String...
the list of mime types mimeTypes)Creates an expectation validating the response has a |
| public static HttpResponseExpectation | contentType(List<String>
the list of mime types mimeTypes)Creates an expectation validating the response has a |
| public static HttpResponseExpectation | status(int
the expected status code statusCode)Creates an expectation asserting that the status response code is equal to |
| public static HttpResponseExpectation |
| JSON | back to summary |
|---|---|
| public static final HttpResponseExpectation JSON Creates an expectation validating the response | |
| SC_ACCEPTED | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_ACCEPTED 202 Accepted | |
| SC_BAD_GATEWAY | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_BAD_GATEWAY 502 Bad Gateway | |
| SC_BAD_REQUEST | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_BAD_REQUEST 400 Bad Request | |
| SC_CLIENT_ERRORS | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_CLIENT_ERRORS Any 4XX client error | |
| SC_CONFLICT | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_CONFLICT 409 Conflict | |
| SC_CONTINUE | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_CONTINUE 100 Continue | |
| SC_CREATED | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_CREATED 201 Created | |
| SC_EARLY_HINTS | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_EARLY_HINTS 103 Early Hints | |
| SC_EXPECTATION_FAILED | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_EXPECTATION_FAILED 417 Expectation Failed | |
| SC_FAILED_DEPENDENCY | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_FAILED_DEPENDENCY 424 Failed Dependency (WebDAV, RFC4918) | |
| SC_FORBIDDEN | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_FORBIDDEN 403 Forbidden | |
| SC_FOUND | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_FOUND 302 Found | |
| SC_GATEWAY_TIMEOUT | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_GATEWAY_TIMEOUT 504 Gateway Timeout | |
| SC_GONE | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_GONE 410 Gone | |
| SC_HTTP_VERSION_NOT_SUPPORTED | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_HTTP_VERSION_NOT_SUPPORTED 505 HTTP Version Not Supported | |
| SC_INFORMATIONAL_RESPONSE | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_INFORMATIONAL_RESPONSE Any 1XX informational response | |
| SC_INSUFFICIENT_STORAGE | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_INSUFFICIENT_STORAGE 507 Insufficient Storage (WebDAV, RFC4918) | |
| SC_INTERNAL_SERVER_ERROR | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_INTERNAL_SERVER_ERROR 500 Internal Server Error | |
| SC_LENGTH_REQUIRED | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_LENGTH_REQUIRED 411 Length Required | |
| SC_LOCKED | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_LOCKED 423 Locked (WebDAV, RFC4918) | |
| SC_METHOD_NOT_ALLOWED | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_METHOD_NOT_ALLOWED 405 Method Not Allowed | |
| SC_MISDIRECTED_REQUEST | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_MISDIRECTED_REQUEST 421 Misdirected Request | |
| SC_MOVED_PERMANENTLY | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_MOVED_PERMANENTLY 301 Moved Permanently | |
| SC_MULTI_STATUS | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_MULTI_STATUS 207 Multi-Status (WebDAV, RFC2518) | |
| SC_MULTIPLE_CHOICES | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_MULTIPLE_CHOICES 300 Multiple Choices | |
| SC_NETWORK_AUTHENTICATION_REQUIRED | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_NETWORK_AUTHENTICATION_REQUIRED 511 Network Authentication Required (RFC6585) | |
| SC_NO_CONTENT | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_NO_CONTENT 204 No Content | |
| SC_NON_AUTHORITATIVE_INFORMATION | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_NON_AUTHORITATIVE_INFORMATION 203 Non-Authoritative Information (since HTTP/1.1) | |
| SC_NOT_ACCEPTABLE | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_NOT_ACCEPTABLE 406 Not Acceptable | |
| SC_NOT_EXTENDED | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_NOT_EXTENDED 510 Not Extended (RFC2774) | |
| SC_NOT_FOUND | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_NOT_FOUND 404 Not Found | |
| SC_NOT_IMPLEMENTED | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_NOT_IMPLEMENTED 501 Not Implemented | |
| SC_NOT_MODIFIED | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_NOT_MODIFIED 304 Not Modified | |
| SC_OK | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_OK 200 OK | |
| SC_PARTIAL_CONTENT | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_PARTIAL_CONTENT 206 Partial Content | |
| SC_PAYMENT_REQUIRED | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_PAYMENT_REQUIRED 402 Payment Required | |
| SC_PERMANENT_REDIRECT | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_PERMANENT_REDIRECT 308 Permanent Redirect (RFC7538) | |
| SC_PRECONDITION_FAILED | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_PRECONDITION_FAILED 412 Precondition Failed | |
| SC_PRECONDITION_REQUIRED | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_PRECONDITION_REQUIRED 428 Precondition Required (RFC6585) | |
| SC_PROCESSING | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_PROCESSING 102 Processing (WebDAV, RFC2518) | |
| SC_PROXY_AUTHENTICATION_REQUIRED | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_PROXY_AUTHENTICATION_REQUIRED 407 Proxy Authentication Required | |
| SC_REDIRECTION | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_REDIRECTION Any 3XX redirection | |
| SC_REQUEST_ENTITY_TOO_LARGE | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_REQUEST_ENTITY_TOO_LARGE 413 Request Entity Too Large | |
| SC_REQUEST_HEADER_FIELDS_TOO_LARGE | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_REQUEST_HEADER_FIELDS_TOO_LARGE 431 Request Header Fields Too Large (RFC6585) | |
| SC_REQUEST_TIMEOUT | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_REQUEST_TIMEOUT 408 Request Timeout | |
| SC_REQUEST_URI_TOO_LONG | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_REQUEST_URI_TOO_LONG 414 Request-URI Too Long | |
| SC_REQUESTED_RANGE_NOT_SATISFIABLE | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_REQUESTED_RANGE_NOT_SATISFIABLE 416 Requested Range Not Satisfiable | |
| SC_RESET_CONTENT | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_RESET_CONTENT 205 Reset Content | |
| SC_SEE_OTHER | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_SEE_OTHER 303 See Other (since HTTP/1.1) | |
| SC_SERVER_ERRORS | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_SERVER_ERRORS Any 5XX server error | |
| SC_SERVICE_UNAVAILABLE | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_SERVICE_UNAVAILABLE 503 Service Unavailable | |
| SC_SUCCESS | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_SUCCESS Any 2XX success | |
| SC_SWITCHING_PROTOCOLS | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_SWITCHING_PROTOCOLS 101 Switching Protocols | |
| SC_TEMPORARY_REDIRECT | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_TEMPORARY_REDIRECT 307 Temporary Redirect (since HTTP/1.1) | |
| SC_TOO_MANY_REQUESTS | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_TOO_MANY_REQUESTS 429 Too Many Requests (RFC6585) | |
| SC_UNAUTHORIZED | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_UNAUTHORIZED 401 Unauthorized | |
| SC_UNORDERED_COLLECTION | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_UNORDERED_COLLECTION 425 Unordered Collection (WebDAV, RFC3648) | |
| SC_UNPROCESSABLE_ENTITY | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_UNPROCESSABLE_ENTITY 422 Unprocessable Entity (WebDAV, RFC4918) | |
| SC_UNSUPPORTED_MEDIA_TYPE | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_UNSUPPORTED_MEDIA_TYPE 415 Unsupported Media Type | |
| SC_UPGRADE_REQUIRED | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_UPGRADE_REQUIRED 426 Upgrade Required (RFC2817) | |
| SC_USE_PROXY | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_USE_PROXY 305 Use Proxy (since HTTP/1.1) | |
| SC_VARIANT_ALSO_NEGOTIATES | back to summary |
|---|---|
| public static final HttpResponseExpectation SC_VARIANT_ALSO_NEGOTIATES 506 Variant Also Negotiates (RFC2295) | |
| contentType | back to summary |
|---|---|
| public static HttpResponseExpectation contentType(String mimeType) Creates an expectation validating the response has a
| |
| contentType | back to summary |
|---|---|
| public static HttpResponseExpectation contentType(String... mimeTypes) Creates an expectation validating the response has a
| |
| contentType | back to summary |
|---|---|
| public static HttpResponseExpectation contentType(List<String> mimeTypes) Creates an expectation validating the response has a | |
| status | back to summary |
|---|---|
| public static HttpResponseExpectation status(int statusCode) Creates an expectation asserting that the status response code is equal to
| |
| status | back to summary |
|---|---|
| public static HttpResponseExpectation status(int min, int max) | |