|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.github.restdriver.serverdriver.Matchers
public final class Matchers
Class to help easy & fluent use of our matchers.
| Method Summary | |
|---|---|
static org.hamcrest.TypeSafeMatcher<Response> |
hasHeader(String name)
Creates a new instance of HasHeader. |
static org.hamcrest.TypeSafeMatcher<Response> |
hasHeaderWithValue(String name,
org.hamcrest.Matcher<String> valueMatcher)
Creates a new instance of HasHeaderWithValue. |
static org.hamcrest.TypeSafeMatcher<Response> |
hasResponseBody(org.hamcrest.Matcher<String> bodyMatcher)
Creates a new instance of HasResponseBody. |
static org.hamcrest.TypeSafeMatcher<Response> |
hasStatusCode(int statusCode)
Creates a new instance of HasStatusCode. |
static org.hamcrest.TypeSafeMatcher<Response> |
hasStatusCode(org.hamcrest.Matcher<Integer> statusCodeMatcher)
Creates a new instance of HasStatusCode. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static org.hamcrest.TypeSafeMatcher<Response> hasStatusCode(int statusCode)
statusCode - The status code to match
public static org.hamcrest.TypeSafeMatcher<Response> hasStatusCode(org.hamcrest.Matcher<Integer> statusCodeMatcher)
statusCodeMatcher - The matcher against which the status code will be evaluated
public static org.hamcrest.TypeSafeMatcher<Response> hasResponseBody(org.hamcrest.Matcher<String> bodyMatcher)
bodyMatcher - The matcher against which the response body will be evaluated
public static org.hamcrest.TypeSafeMatcher<Response> hasHeader(String name)
name - The name of the header to check for the presence of
public static org.hamcrest.TypeSafeMatcher<Response> hasHeaderWithValue(String name,
org.hamcrest.Matcher<String> valueMatcher)
name - The name of the header to check for the presence and value ofvalueMatcher - The matcher against which the header value will be evaluated
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||