| Package | Description |
|---|---|
| com.github.restdriver.serverdriver | |
| com.github.restdriver.serverdriver.http.response | |
| com.github.restdriver.serverdriver.matchers |
| Modifier and Type | Method and Description |
|---|---|
static org.hamcrest.TypeSafeMatcher<Response> |
Matchers.hasHeader(Header header)
Creates a new instance of HasHeader.
|
static org.hamcrest.TypeSafeMatcher<Response> |
Matchers.hasHeader(String header)
Creates a new instance of HasHeader.
|
static org.hamcrest.TypeSafeMatcher<Response> |
Matchers.hasHeader(String name,
org.hamcrest.Matcher<String> valueMatcher)
Synonym for
HasHeaderWithValue, using matcher for the value. |
static org.hamcrest.TypeSafeMatcher<Response> |
Matchers.hasHeader(String name,
String value)
Synonym for
HasHeaderWithValue, using exact match for the value. |
static org.hamcrest.TypeSafeMatcher<Response> |
Matchers.hasHeaderWithValue(String name,
org.hamcrest.Matcher<String> valueMatcher)
Creates a new instance of HasHeaderWithValue.
|
static org.hamcrest.TypeSafeMatcher<Response> |
Matchers.hasResponseBody(org.hamcrest.Matcher<String> bodyMatcher)
Creates a new instance of HasResponseBody.
|
static org.hamcrest.TypeSafeMatcher<Response> |
Matchers.hasStatusCode(int statusCode)
Creates a new instance of HasStatusCode.
|
static org.hamcrest.TypeSafeMatcher<Response> |
Matchers.hasStatusCode(org.hamcrest.Matcher<Integer> statusCodeMatcher)
Creates a new instance of HasStatusCode.
|
| Modifier and Type | Method and Description |
|---|---|
static com.fasterxml.jackson.databind.JsonNode |
Json.asJson(Response response)
Converts the content of the response to a JSON node.
|
static Element |
Xml.asXml(Response response)
Converts the body of the given Response to an XML element.
|
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultResponse
Our class which describes an HTTP response.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
HasStatusCode.describeMismatchSafely(Response item,
org.hamcrest.Description mismatchDescription) |
protected void |
HasHeaderWithValue.describeMismatchSafely(Response response,
org.hamcrest.Description mismatchDescription) |
protected void |
HasHeader.describeMismatchSafely(Response response,
org.hamcrest.Description mismatchDescription) |
protected boolean |
HasStatusCode.matchesSafely(Response item) |
boolean |
HasResponseBody.matchesSafely(Response actualResponse) |
protected boolean |
HasHeaderWithValue.matchesSafely(Response response) |
protected boolean |
HasHeader.matchesSafely(Response response) |
Copyright © 2012. All Rights Reserved.