public class Status extends org.hamcrest.BaseMatcher<RequestAndResponse> implements RequestAndResponseAssertion
Matcher that validates that the status code of a Response is the expected value, which can either be a status code (three digit integer) or a family (2xx or 4xx
for example).| Modifier and Type | Method and Description |
|---|---|
void |
describeMismatch(Object item,
org.hamcrest.Description description) |
void |
describeTo(org.hamcrest.Description description) |
boolean |
matches(Object item) |
_dont_implement_Matcher___instead_extend_BaseMatcher_, toStringpublic Status(String expectedValue)
public boolean matches(Object item)
matches in interface org.hamcrest.Matcher<RequestAndResponse>public void describeTo(org.hamcrest.Description description)
describeTo in interface org.hamcrest.SelfDescribingpublic void describeMismatch(Object item, org.hamcrest.Description description)
describeMismatch in interface org.hamcrest.Matcher<RequestAndResponse>describeMismatch in class org.hamcrest.BaseMatcher<RequestAndResponse>Copyright © 2017. All rights reserved.