类 FlashAttributeResultMatchers
java.lang.Object
cn.taketoday.test.web.servlet.result.FlashAttributeResultMatchers
Factory for "output" flash attribute assertions.
An instance of this class is typically accessed via
MockMvcResultMatchers.flash().
- 从以下版本开始:
- 4.0
- 作者:
- Rossen Stoyanchev
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Assert 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.
-
构造器详细资料
-
FlashAttributeResultMatchers
protected FlashAttributeResultMatchers()Protected constructor. UseMockMvcResultMatchers.flash().
-
-
方法详细资料
-
attribute
Assert a flash attribute's value with the given HamcrestMatcher. -
attribute
Assert a flash attribute's value. -
attributeExists
Assert the existence of the given flash attributes. -
attributeCount
Assert the number of flash attributes.
-