クラス FlashAttributeResultMatchers

java.lang.ObjectSE
org.springframework.test.web.servlet.result.FlashAttributeResultMatchers

public class FlashAttributeResultMatchers extends ObjectSE
「出力」フラッシュ属性アサーションのファクトリ。

このクラスのインスタンスは通常、MockMvcResultMatchers.flash() を介してアクセスされます。

導入:
3.2
作成者:
Rossen Stoyanchev
  • コンストラクターの詳細

    • FlashAttributeResultMatchers

      protected FlashAttributeResultMatchers()
      protected コンストラクター。MockMvcResultMatchers.flash() を使用します。
  • メソッドの詳細

    • attribute

      public <T> ResultMatcher attribute(StringSE name, Matcher<? super T> matcher)
      指定された Hamcrest Matcher で flash 属性の値をアサートします。
    • attribute

      public ResultMatcher attribute(StringSE name, @Nullable ObjectSE value)
      flash 属性の値をアサートします。
    • attributeExists

      public ResultMatcher attributeExists(StringSE... names)
      指定されたフラッシュ属性の存在を表明します。
    • attributeCount

      public ResultMatcher attributeCount(int count)
      フラッシュ属性の数をアサートします。