Class FlashAttributeResultMatchers
java.lang.Object
org.springframework.test.web.servlet.result.FlashAttributeResultMatchers
Factory for "output" flash attribute assertions.
 
An instance of this class is typically accessed via
 MockMvcResultMatchers.flash().
- Since:
- 3.2
- Author:
- Rossen Stoyanchev
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionAssert a flash attribute's value.<T> ResultMatcherAssert a flash attribute's value with the given HamcrestMatcher.attributeCount(int count) Assert the number of flash attributes.attributeExists(String... names) Assert the existence of the given flash attributes.
- 
Constructor Details- 
FlashAttributeResultMatchersprotected FlashAttributeResultMatchers()Protected constructor. UseMockMvcResultMatchers.flash().
 
- 
- 
Method Details- 
attributeAssert a flash attribute's value with the given HamcrestMatcher.
- 
attributeAssert a flash attribute's value.
- 
attributeExistsAssert the existence of the given flash attributes.
- 
attributeCountAssert the number of flash attributes.
 
-