public interface ResponseLogSpecification extends LogSpecification<ResponseSpecification>
Modifier and Type | Method and Description |
---|---|
ResponseSpecification |
ifError()
Logs everything only if an error occurs (status code >= 400).
|
ResponseSpecification |
ifStatusCodeIsEqualTo(int statusCode)
Logs everything only if if the status code is equal to
statusCode . |
ResponseSpecification |
ifStatusCodeMatches(org.hamcrest.Matcher<Integer> matcher)
Logs everything only if if the status code matches the supplied
matcher |
ResponseSpecification |
status()
Logs only the status line (includes the status code)
|
all, all, body, body, cookies, everything, everything, headers, ifValidationFails, ifValidationFails, ifValidationFails
ResponseSpecification status()
ResponseSpecification ifError()
ResponseSpecification ifStatusCodeIsEqualTo(int statusCode)
statusCode
.statusCode
- The status codeResponseSpecification ifStatusCodeMatches(org.hamcrest.Matcher<Integer> matcher)
matcher
matcher
- The hamcrest matcherCopyright © 2010–2019. All rights reserved.