@Immutable @ThreadSafe public class HttpRequestHeaderMatcher extends org.hamcrest.TypeSafeMatcher<HttpRequest>
Concurrency notes. This class is immutable and thread safe.
| Constructor and Description |
|---|
HttpRequestHeaderMatcher(String headerName,
ValueExpectation valueExpectation)
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) |
public HttpRequestHeaderMatcher(String headerName, ValueExpectation valueExpectation)
headerName - Header name.valueExpectation - Expected header value.NullPointerException - headerName is null.IllegalArgumentException - headerName is empty or blank.NullPointerException - valueExpectation is null.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.