public class FlashAttributeResultMatchers extends 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(String name,
Matcher<? super T> matcher)
Assert a flash attribute's value with the given Hamcrest
Matcher . |
ResultMatcher |
attribute(String name,
Object value)
Assert a flash attribute's value.
|
ResultMatcher |
attributeCount(int count)
Assert the number of flash attributes.
|
ResultMatcher |
attributeExists(String... names)
Assert the existence of the given flash attributes.
|
protected FlashAttributeResultMatchers()
MockMvcResultMatchers.flash()
.public <T> ResultMatcher attribute(String name, Matcher<? super T> matcher)
Matcher
.public ResultMatcher attribute(String name, @Nullable Object value)
public ResultMatcher attributeExists(String... names)
public ResultMatcher attributeCount(int count)