public class FlashAttributeResultMatchers
extends java.lang.Object
An instance of this class is typically accessed via
MockMvcResultMatchers.flash()
.
Modifier | Constructor and Description |
---|---|
protected |
FlashAttributeResultMatchers()
Protected constructor.
|
Modifier and Type | Method and Description |
---|---|
<T> ResultMatcher |
attribute(java.lang.String name,
Matcher<T> matcher)
Assert a flash attribute's value with the given Hamcrest
Matcher . |
<T> ResultMatcher |
attribute(java.lang.String name,
java.lang.Object value)
Assert a flash attribute's value.
|
<T> ResultMatcher |
attributeCount(int count)
Assert the number of flash attributes.
|
<T> ResultMatcher |
attributeExists(java.lang.String... names)
Assert the existence of the given flash attributes.
|
protected FlashAttributeResultMatchers()
MockMvcResultMatchers.flash()
.public <T> ResultMatcher attribute(java.lang.String name, Matcher<T> matcher)
Matcher
.public <T> ResultMatcher attribute(java.lang.String name, java.lang.Object value)
public <T> ResultMatcher attributeExists(java.lang.String... names)
public <T> ResultMatcher attributeCount(int count)