类 FlashAttributeResultMatchers

java.lang.Object
cn.taketoday.test.web.servlet.result.FlashAttributeResultMatchers

public class FlashAttributeResultMatchers extends Object
Factory for "output" flash attribute assertions.

An instance of this class is typically accessed via MockMvcResultMatchers.flash().

从以下版本开始:
4.0
作者:
Rossen Stoyanchev
  • 构造器详细资料

  • 方法详细资料

    • attribute

      public <T> ResultMatcher attribute(String name, org.hamcrest.Matcher<? super T> matcher)
      Assert a flash attribute's value with the given Hamcrest Matcher.
    • attribute

      public ResultMatcher attribute(String name, @Nullable Object value)
      Assert a flash attribute's value.
    • attributeExists

      public ResultMatcher attributeExists(String... names)
      Assert the existence of the given flash attributes.
    • attributeCount

      public ResultMatcher attributeCount(int count)
      Assert the number of flash attributes.