public class HeaderValue
extends org.junit.internal.matchers.TypeSafeMatcher<com.meterware.httpunit.WebResponse>
Constructor and Description |
---|
HeaderValue(String headerName,
org.hamcrest.Matcher<? super String> headerValue)
Creates a new HasHeaderWithValue matcher.
|
Modifier and Type | Method and Description |
---|---|
void |
describeTo(org.hamcrest.Description description) |
static org.hamcrest.Matcher<com.meterware.httpunit.WebResponse> |
header(String headerName,
org.hamcrest.Matcher<? super String> headerValue)
Asserts that a WebResponse has a header with the given value.
|
boolean |
matchesSafely(com.meterware.httpunit.WebResponse response) |
public static org.hamcrest.Matcher<com.meterware.httpunit.WebResponse> header(String headerName, org.hamcrest.Matcher<? super String> headerValue)
headerName
- a String containing the header's expected nameheaderValue
- a String containing the header's expected valuepublic boolean matchesSafely(com.meterware.httpunit.WebResponse response)
matchesSafely
in class org.junit.internal.matchers.TypeSafeMatcher<com.meterware.httpunit.WebResponse>
public void describeTo(org.hamcrest.Description description)
Copyright © 2002-2021 Atlassian. All Rights Reserved.