java.lang.Object |
↳ |
org.hamcrest.BaseMatcher<T> |
|
↳ |
org.junit.internal.matchers.TypeSafeMatcher<T> |
|
|
↳ |
com.atlassian.jira.functest.matcher.HeaderValue |
Class Overview
Matcher that checks that the response contains a specific HTTP header with the given value.
Summary
Public Constructors |
|
HeaderValue(String headerName, Matcher<? super String> headerValue)
Creates a new HasHeaderWithValue matcher.
|
Public Methods |
void
|
describeTo(Description description)
|
static
Matcher<WebResponse>
|
header(String headerName, Matcher<? super String> headerValue)
Asserts that a WebResponse has a header with the given value.
|
boolean
|
matchesSafely(WebResponse response)
|
[Expand]
Inherited Methods |
From class
org.junit.internal.matchers.TypeSafeMatcher
final
boolean
|
matches(Object arg0)
|
abstract
boolean
|
matchesSafely(T arg0)
|
|
From class
org.hamcrest.BaseMatcher
final
void
|
_dont_implement_Matcher___instead_extend_BaseMatcher_()
|
String
|
toString()
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
From interface
org.hamcrest.Matcher
void
|
_dont_implement_Matcher___instead_extend_BaseMatcher_()
|
boolean
|
matches(Object arg0)
|
|
From interface
org.hamcrest.SelfDescribing
void
|
describeTo(Description arg0)
|
|
Public Constructors
public
HeaderValue
(String headerName, Matcher<? super String> headerValue)
Creates a new HasHeaderWithValue matcher.
Parameters
headerName
| a String containing the header's name |
headerValue
| a Matcher for the header's value
|
Public Methods
public
void
describeTo
(Description description)
public
static
Matcher<WebResponse>
header
(String headerName, Matcher<? super String> headerValue)
Asserts that a WebResponse has a header with the given value.
Parameters
headerName
| a String containing the header's expected name |
headerValue
| a String containing the header's expected value |
public
boolean
matchesSafely
(WebResponse response)