public class CookieResultMatchers
extends java.lang.Object
An instance of this class is typically accessed via
MockMvcResultMatchers.cookie()
.
Modifier | Constructor and Description |
---|---|
protected |
CookieResultMatchers()
Protected constructor.
|
Modifier and Type | Method and Description |
---|---|
ResultMatcher |
comment(java.lang.String name,
Matcher<? super java.lang.String> matcher)
Assert a cookie's comment with a Hamcrest
Matcher . |
ResultMatcher |
comment(java.lang.String name,
java.lang.String comment)
Assert a cookie's comment value.
|
ResultMatcher |
doesNotExist(java.lang.String name)
Assert a cookie does not exist.
|
ResultMatcher |
domain(java.lang.String name,
Matcher<? super java.lang.String> matcher)
Assert a cookie's domain with a Hamcrest
Matcher . |
ResultMatcher |
domain(java.lang.String name,
java.lang.String domain)
Assert a cookie's domain value.
|
ResultMatcher |
exists(java.lang.String name)
Assert a cookie exists.
|
ResultMatcher |
httpOnly(java.lang.String name,
boolean httpOnly)
Assert whether the cookie must be HTTP only.
|
ResultMatcher |
maxAge(java.lang.String name,
int maxAge)
Assert a cookie's maxAge value.
|
ResultMatcher |
maxAge(java.lang.String name,
Matcher<? super java.lang.Integer> matcher)
Assert a cookie's maxAge with a Hamcrest
Matcher . |
ResultMatcher |
path(java.lang.String name,
Matcher<? super java.lang.String> matcher)
Assert a cookie path with a Hamcrest
Matcher . |
ResultMatcher |
path(java.lang.String name,
java.lang.String path) |
ResultMatcher |
secure(java.lang.String name,
boolean secure)
Assert whether the cookie must be sent over a secure protocol or not.
|
ResultMatcher |
value(java.lang.String name,
Matcher<? super java.lang.String> matcher)
Assert a cookie value with the given Hamcrest
Matcher . |
ResultMatcher |
value(java.lang.String name,
java.lang.String expectedValue)
Assert a cookie value.
|
ResultMatcher |
version(java.lang.String name,
int version)
Assert a cookie's version value.
|
ResultMatcher |
version(java.lang.String name,
Matcher<? super java.lang.Integer> matcher)
Assert a cookie's version with a Hamcrest
Matcher |
protected CookieResultMatchers()
MockMvcResultMatchers.cookie()
.public ResultMatcher value(java.lang.String name, Matcher<? super java.lang.String> matcher)
Matcher
.public ResultMatcher value(java.lang.String name, java.lang.String expectedValue)
public ResultMatcher exists(java.lang.String name)
public ResultMatcher doesNotExist(java.lang.String name)
public ResultMatcher maxAge(java.lang.String name, Matcher<? super java.lang.Integer> matcher)
Matcher
.public ResultMatcher maxAge(java.lang.String name, int maxAge)
public ResultMatcher path(java.lang.String name, Matcher<? super java.lang.String> matcher)
Matcher
.public ResultMatcher path(java.lang.String name, java.lang.String path)
public ResultMatcher domain(java.lang.String name, Matcher<? super java.lang.String> matcher)
Matcher
.public ResultMatcher domain(java.lang.String name, java.lang.String domain)
public ResultMatcher comment(java.lang.String name, Matcher<? super java.lang.String> matcher)
Matcher
.public ResultMatcher comment(java.lang.String name, java.lang.String comment)
public ResultMatcher version(java.lang.String name, Matcher<? super java.lang.Integer> matcher)
Matcher
public ResultMatcher version(java.lang.String name, int version)
public ResultMatcher secure(java.lang.String name, boolean secure)
public ResultMatcher httpOnly(java.lang.String name, boolean httpOnly)