クラス Scenario.When.StateChangeResult<S>

java.lang.ObjectSE
org.springframework.modulith.test.Scenario.When.StateChangeResult<S>
含まれているクラス:
Scenario.When<T>

public class Scenario.When.StateChangeResult<S> extends ObjectSE
予期された状態変化の結果。
作成者:
Oliver Drotbohm
  • コンストラクターの詳細

    • StateChangeResult

      StateChangeResult(org.springframework.modulith.test.Scenario.When.ExecutionResult<S,T> result)
  • メソッドの詳細

    • andVerify

      public void andVerify(ConsumerSE<S> consumer)
      指定された ConsumerSE を使用して状態変更の結果を検証します。
      パラメーター:
      consumer - null であってはなりません。
    • andVerify

      public void andVerify(BiConsumerSE<S,T> consumer)
      指定された BiConsumerSE を使用して、状態変更の結果と stimulus の結果を検証します。
      パラメーター:
      consumer - null であってはなりません。
    • andVerifyEvents

      public void andVerifyEvents(ConsumerSE<AssertablePublishedEvents> events)
      基礎となる AssertablePublishedEvents を検証します。
      パラメーター:
      events - null であってはなりません。
    • andExpect

      public <E> Scenario.When<T>.EventResult<E> andExpect(ClassSE<E> eventType)
      指定された型のイベントが最終的に到着することを期待します。返された Scenario.When.EventResult で API を使用して、より詳細な期待値を指定し、Scenario.When.EventResult.toArrive() の呼び出しで終了します。
      型パラメーター:
      E - イベントの型
      パラメーター:
      eventType - null であってはなりません。
      戻り値:
      null になることはありません。