static <T> MockResponse<T> |
MockResponse.bad(T body) |
Construct a simple failed (400 bad request) response with a body
|
MockResponse<T> |
MockResponse.failedToParse() |
Flag that there was a post-processing parsing error with the object Mapper
this jams the body as a string into the parsing exception and sets a generic oops exception
|
MockResponse<T> |
MockResponse.failedToParse(java.lang.Exception e,
java.lang.String originalBody) |
Flag that there was a post-processing parsing error with the object Mapper
|
static <T> MockResponse<T> |
MockResponse.of(int status,
java.lang.String statusText,
T body) |
Construct a response with a status and body.
|
static <T> MockResponse<T> |
MockResponse.of(int status,
T body) |
Construct a response with a status and body.
|
static <T> MockResponse<T> |
MockResponse.ok(T body) |
Construct a simple successful (200 ok) response with a body
|
MockResponse<T> |
MockResponse.withConfigOptions(java.util.function.Consumer<MockConfig> c) |
Set some options on the current MockConfig.
|
MockResponse<T> |
MockResponse.withHeader(java.lang.String key,
java.lang.String value) |
add a header value to the response
|