public class HeaderResultMatchers extends Object
MockMvcResultMatchers.header().| Modifier | Constructor and Description |
|---|---|
protected |
HeaderResultMatchers()
Protected constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ResultMatcher |
longValue(String name,
long value)
Assert the primary value of a response header as a
Long. |
ResultMatcher |
string(String name,
org.hamcrest.Matcher<? super String> matcher)
Assert a response header with the given Hamcrest
Matcher. |
ResultMatcher |
string(String name,
String value)
Assert the primary value of a response header as a
String. |
protected HeaderResultMatchers()
MockMvcResultMatchers.header().public ResultMatcher string(String name, org.hamcrest.Matcher<? super String> matcher)
Matcher.public ResultMatcher string(String name, String value)
String.public ResultMatcher longValue(String name, long value)
Long.