public interface ValidatableResponseLogSpec<T extends ValidatableResponseOptions<T,R>,R extends ResponseBody<R> & ResponseOptions<R>>
Modifier and Type | Method and Description |
---|---|
T |
all()
Logs everything in the response, including e.g.
|
T |
all(boolean shouldPrettyPrint)
Logs everything in the response, including e.g.
|
T |
body()
Logs only the content of the body.
|
T |
body(boolean shouldPrettyPrint)
Logs only the content of the body and pretty-print the body if specified.
|
T |
cookies()
Logs only the cookies.
|
T |
everything()
Logs everything in the response, including e.g.
|
T |
everything(boolean shouldPrettyPrint)
* Logs everything in the response, including e.g.
|
T |
headers()
Logs only the headers.
|
T |
ifError()
Logs everything only if an error occurs (status code >= 400).
|
T |
ifStatusCodeIsEqualTo(int statusCode)
Logs everything only if if the status code is equal to
statusCode . |
T |
ifStatusCodeMatches(org.hamcrest.Matcher<Integer> matcher)
Logs everything only if if the status code matches the supplied
matcher |
T |
ifValidationFails()
Logs everything if a test validation fails.
|
T |
ifValidationFails(LogDetail logDetail)
Logs with the supplied log detail only if the validation fails.
|
T |
ifValidationFails(LogDetail logDetail,
boolean shouldPrettyPrint)
Logs all parameters only if the validations fail.
|
T |
status()
Logs only the status line (includes the status code)
|
T status()
T ifError()
T ifStatusCodeIsEqualTo(int statusCode)
statusCode
.statusCode
- The status codeT ifStatusCodeMatches(org.hamcrest.Matcher<Integer> matcher)
matcher
matcher
- The hamcrest matcherT body()
T body(boolean shouldPrettyPrint)
shouldPrettyPrint
- true
if the body should be pretty-printed, false
otherwise.T all()
T all(boolean shouldPrettyPrint)
shouldPrettyPrint
- true
if the body should be pretty-printed, false
otherwise.T everything()
T everything(boolean shouldPrettyPrint)
shouldPrettyPrint
- true
if the body should be pretty-printed, false
otherwise.T headers()
T cookies()
T ifValidationFails()
T ifValidationFails(LogDetail logDetail)
logDetail
- The log detailCopyright © 2010–2019. All rights reserved.