@Immutable @ThreadSafe public class HttpRequestMatcher extends org.hamcrest.TypeSafeMatcher<HttpRequest>
actually
received requests.
Concurrency notes. This class is immutable and thread safe.
| Modifier | Constructor and Description |
|---|---|
protected |
HttpRequestMatcher(Function<HttpRequest,Object> attributeProvider,
ValueExpectation valueExpectation,
String name)
Creates new matcher.
|
| Modifier and Type | Method and Description |
|---|---|
void |
describeMismatchSafely(HttpRequest httpRequest,
org.hamcrest.Description description) |
void |
describeTo(org.hamcrest.Description description) |
boolean |
matchesSafely(HttpRequest httpRequest) |
protected HttpRequestMatcher(Function<HttpRequest,Object> attributeProvider, ValueExpectation valueExpectation, String name)
attributeProvider - Provider of a request attribute, takes the
request on input.valueExpectation - Expected attribute value.name - Name of the matcher to be used in a mismatch description.NullPointerException - attributeProvider is null.NullPointerException - valueExpectation is null.NullPointerException - name is null.IllegalArgumentException - name is empty or blank.public boolean matchesSafely(HttpRequest httpRequest)
matchesSafely in class org.hamcrest.TypeSafeMatcher<HttpRequest>public void describeTo(org.hamcrest.Description description)
public void describeMismatchSafely(HttpRequest httpRequest, org.hamcrest.Description description)
describeMismatchSafely in class org.hamcrest.TypeSafeMatcher<HttpRequest>Copyright © 2016. All rights reserved.