public interface ResponseLogSpecification extends LogSpecification<ResponseSpecification,Response>
| 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, ifValidationFailsResponseSpecification status()
ResponseSpecification ifError()
ResponseSpecification ifStatusCodeIsEqualTo(int statusCode)
statusCode.statusCode - The status codeResponseSpecification ifStatusCodeMatches(org.hamcrest.Matcher<Integer> matcher)
matchermatcher - The hamcrest matcherCopyright © 2010–2014. All rights reserved.