Modifier and Type | Method and Description |
---|---|
static <T> org.hamcrest.Matcher<Response<T>> |
doesNotHaveHeader(String header)
Builds a matcher for
Response s without specific header. |
static <T> org.hamcrest.Matcher<Response<T>> |
hasHeader(String header,
org.hamcrest.Matcher<String> valueMatcher)
Builds a matcher for
Response s with matching header. |
static <T> org.hamcrest.Matcher<Response<T>> |
hasNoHeaders()
Builds a matcher for
Response s with no headers. |
static <T> org.hamcrest.Matcher<Response<T>> |
hasNoPayload()
Builds a matcher for
Response s with no payload. |
static <T> org.hamcrest.Matcher<Response<T>> |
hasPayload(org.hamcrest.Matcher<? super T> payloadMatcher)
Builds a matcher for
Response s with matching payload. |
static <T> org.hamcrest.Matcher<Response<T>> |
hasStatus(org.hamcrest.Matcher<StatusType> statusMatcher)
Builds a matcher for
Response s with matching status. |
public static <T> org.hamcrest.Matcher<Response<T>> hasNoHeaders()
Response
s with no headers.public static <T> org.hamcrest.Matcher<Response<T>> hasHeader(String header, org.hamcrest.Matcher<String> valueMatcher)
Response
s with matching header.header
- The header to match.valueMatcher
- Matcher
for the corresponding value.public static <T> org.hamcrest.Matcher<Response<T>> doesNotHaveHeader(String header)
Response
s without specific header.header
- Name of the unwanted header.public static <T> org.hamcrest.Matcher<Response<T>> hasNoPayload()
Response
s with no payload.public static <T> org.hamcrest.Matcher<Response<T>> hasPayload(org.hamcrest.Matcher<? super T> payloadMatcher)
Response
s with matching payload.payloadMatcher
- Matcher
for the payload.public static <T> org.hamcrest.Matcher<Response<T>> hasStatus(org.hamcrest.Matcher<StatusType> statusMatcher)
Response
s with matching status.statusMatcher
- Matcher
for the status.Copyright © 2016. All rights reserved.