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