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