public class HttpResponseMatchers extends Object
| Modifier and Type | Method and Description |
|---|---|
static org.hamcrest.Matcher<javax.ws.rs.core.MediaType> |
compatibleWith(javax.ws.rs.core.MediaType compatibleMediaType) |
static org.hamcrest.Matcher<javax.ws.rs.core.Response> |
hasContentEncoding(String encoding) |
static org.hamcrest.Matcher<javax.ws.rs.core.Response> |
hasContentLength(org.hamcrest.Matcher<Integer> lengthMatcher) |
static org.hamcrest.Matcher<javax.ws.rs.core.Response> |
hasContentLocation(org.hamcrest.Matcher<URI> uriMatcher) |
static org.hamcrest.Matcher<javax.ws.rs.core.Response> |
hasContentLocation(URI uri) |
static org.hamcrest.Matcher<javax.ws.rs.core.Response> |
hasContentType(org.hamcrest.Matcher<? super javax.ws.rs.core.MediaType> mediaTypeMatcher) |
static org.hamcrest.Matcher<javax.ws.rs.core.Response> |
hasContentType(javax.ws.rs.core.MediaType mediaType) |
static org.hamcrest.Matcher<javax.ws.rs.core.Response> |
hasContentType(String mediaType) |
static org.hamcrest.Matcher<javax.ws.rs.core.Response> |
hasCookie(String cookieName) |
static org.hamcrest.Matcher<javax.ws.rs.core.Response> |
hasCookie(String cookieName,
org.hamcrest.Matcher<javax.ws.rs.core.NewCookie> cookieMatcher) |
static org.hamcrest.Matcher<javax.ws.rs.core.Response> |
hasEntity() |
static <T> org.hamcrest.Matcher<javax.ws.rs.core.Response> |
hasEntity(Class<T> entityClass,
org.hamcrest.Matcher<? super T> entityMatcher) |
static <T> org.hamcrest.Matcher<javax.ws.rs.core.Response> |
hasEntity(javax.ws.rs.core.GenericType<T> entityType,
org.hamcrest.Matcher<? super T> entityMatcher) |
static <T> org.hamcrest.Matcher<javax.ws.rs.core.Response> |
hasEntity(org.hamcrest.Matcher<String> entityMatcher) |
static org.hamcrest.Matcher<javax.ws.rs.core.Response> |
hasHeader(String headerName) |
static org.hamcrest.Matcher<javax.ws.rs.core.Response> |
hasHeader(String headerName,
org.hamcrest.Matcher<?> valueMatcher) |
static org.hamcrest.Matcher<javax.ws.rs.core.Response> |
hasHeaderValues(String headerName,
org.hamcrest.Matcher<? extends Iterable<?>> valuesMatcher) |
static org.hamcrest.Matcher<javax.ws.rs.core.Response> |
hasLastModifiedDate(org.hamcrest.Matcher<Date> lastModDateMatcher) |
static org.hamcrest.Matcher<javax.ws.rs.core.Response> |
hasLocation(org.hamcrest.Matcher<URI> uriMatcher) |
static org.hamcrest.Matcher<javax.ws.rs.core.Response> |
hasLocation(URI uri) |
static org.hamcrest.Matcher<javax.ws.rs.core.Response> |
hasStatus(int statusCode,
String reason) |
static org.hamcrest.Matcher<javax.ws.rs.core.Response> |
hasStatus(javax.ws.rs.core.Response.StatusType status) |
static org.hamcrest.Matcher<javax.ws.rs.core.Response> |
hasStatusCode(int statusCode) |
static org.hamcrest.Matcher<javax.ws.rs.core.Response> |
hasStatusCode(org.hamcrest.Matcher<Integer> statusCodeMatcher) |
static org.hamcrest.Matcher<javax.ws.rs.core.Response> |
hasStatusCode(javax.ws.rs.core.Response.Status.Family family) |
static org.hamcrest.Matcher<javax.ws.rs.core.Response> |
hasStatusCodeOf(javax.ws.rs.core.Response.StatusType status) |
static org.hamcrest.Matcher<javax.ws.rs.core.Response> |
isResponseOk() |
static org.hamcrest.Matcher<Integer> |
ofFamily(javax.ws.rs.core.Response.Status.Family family) |
static org.hamcrest.Matcher<javax.ws.rs.core.Response> |
ofLanguage(Locale locale) |
static org.hamcrest.Matcher<javax.ws.rs.core.Response> |
ofLanguage(org.hamcrest.Matcher<Locale> localeMatcher) |
static org.hamcrest.Matcher<javax.ws.rs.core.Response> |
ofLanguage(String languageTag) |
public static org.hamcrest.Matcher<javax.ws.rs.core.Response> isResponseOk()
public static org.hamcrest.Matcher<javax.ws.rs.core.Response> hasStatusCode(int statusCode)
public static org.hamcrest.Matcher<javax.ws.rs.core.Response> hasStatusCode(javax.ws.rs.core.Response.Status.Family family)
public static org.hamcrest.Matcher<javax.ws.rs.core.Response> hasStatusCodeOf(javax.ws.rs.core.Response.StatusType status)
public static org.hamcrest.Matcher<javax.ws.rs.core.Response> hasStatusCode(org.hamcrest.Matcher<Integer> statusCodeMatcher)
public static org.hamcrest.Matcher<javax.ws.rs.core.Response> hasStatus(javax.ws.rs.core.Response.StatusType status)
public static org.hamcrest.Matcher<javax.ws.rs.core.Response> hasStatus(int statusCode,
String reason)
public static org.hamcrest.Matcher<Integer> ofFamily(javax.ws.rs.core.Response.Status.Family family)
public static org.hamcrest.Matcher<javax.ws.rs.core.Response> hasHeader(String headerName)
public static org.hamcrest.Matcher<javax.ws.rs.core.Response> hasHeader(String headerName, org.hamcrest.Matcher<?> valueMatcher)
public static org.hamcrest.Matcher<javax.ws.rs.core.Response> hasHeaderValues(String headerName, org.hamcrest.Matcher<? extends Iterable<?>> valuesMatcher)
public static org.hamcrest.Matcher<javax.ws.rs.core.Response> hasCookie(String cookieName)
public static org.hamcrest.Matcher<javax.ws.rs.core.Response> hasCookie(String cookieName, org.hamcrest.Matcher<javax.ws.rs.core.NewCookie> cookieMatcher)
public static org.hamcrest.Matcher<javax.ws.rs.core.Response> hasEntity()
public static <T> org.hamcrest.Matcher<javax.ws.rs.core.Response> hasEntity(org.hamcrest.Matcher<String> entityMatcher)
public static <T> org.hamcrest.Matcher<javax.ws.rs.core.Response> hasEntity(Class<T> entityClass, org.hamcrest.Matcher<? super T> entityMatcher)
public static <T> org.hamcrest.Matcher<javax.ws.rs.core.Response> hasEntity(javax.ws.rs.core.GenericType<T> entityType,
org.hamcrest.Matcher<? super T> entityMatcher)
public static org.hamcrest.Matcher<javax.ws.rs.core.Response> hasContentType(String mediaType)
public static org.hamcrest.Matcher<javax.ws.rs.core.Response> hasContentType(javax.ws.rs.core.MediaType mediaType)
public static org.hamcrest.Matcher<javax.ws.rs.core.Response> hasContentType(org.hamcrest.Matcher<? super javax.ws.rs.core.MediaType> mediaTypeMatcher)
public static org.hamcrest.Matcher<javax.ws.rs.core.MediaType> compatibleWith(javax.ws.rs.core.MediaType compatibleMediaType)
public static org.hamcrest.Matcher<javax.ws.rs.core.Response> hasContentEncoding(String encoding)
public static org.hamcrest.Matcher<javax.ws.rs.core.Response> hasContentLocation(URI uri)
public static org.hamcrest.Matcher<javax.ws.rs.core.Response> hasContentLocation(org.hamcrest.Matcher<URI> uriMatcher)
public static org.hamcrest.Matcher<javax.ws.rs.core.Response> ofLanguage(String languageTag)
public static org.hamcrest.Matcher<javax.ws.rs.core.Response> ofLanguage(Locale locale)
public static org.hamcrest.Matcher<javax.ws.rs.core.Response> ofLanguage(org.hamcrest.Matcher<Locale> localeMatcher)
public static org.hamcrest.Matcher<javax.ws.rs.core.Response> hasLastModifiedDate(org.hamcrest.Matcher<Date> lastModDateMatcher)
public static org.hamcrest.Matcher<javax.ws.rs.core.Response> hasContentLength(org.hamcrest.Matcher<Integer> lengthMatcher)
public static org.hamcrest.Matcher<javax.ws.rs.core.Response> hasLocation(URI uri)
public static org.hamcrest.Matcher<javax.ws.rs.core.Response> hasLocation(org.hamcrest.Matcher<URI> uriMatcher)
Copyright © 2016 valid4j. All rights reserved.