クラスの使用
org.springframework.modulith.test.Scenario.When
Scenario.When を使用するパッケージ
org.springframework.modulith.test 内の Scenario.When 使用
修飾子と型メソッド説明Scenario.When.andCleanup
(RunnableSE runnable) 実行の結果 (エラーまたは成功) に関係なく、Scenario
の補完後に常に実行されるように、指定されたRunnable
SE をクリーンアップコールバックとして登録します。Scenario.When.andCleanup
(ConsumerSE<T> consumer) 実行の結果 (エラーまたは成功) に関係なく、Scenario
の補完後に常に実行されるように、指定されたConsumer
SE をクリーンアップコールバックとして登録します。Scenario.When.andWaitAtMost
(DurationSE duration) 後続の仕様のイベントが到着するまで最大でも指定された期間待機するようにScenario
を構成します。Scenario.When.customize
(FunctionSE<org.awaitility.core.ConditionFactory, org.awaitility.core.ConditionFactory> customizer) シナリオの実行をカスタマイズします。指定されたイベントを公開します。Scenario.publish
(SupplierSE<ObjectSE> event) 指定されたSupplier
SE によって提供されるイベントを発行します。Scenario.stimulate
(RunnableSE runnable) 指定されたRunnable
SE を実行してシステムを刺激します。Scenario.stimulate
(BiConsumerSE<TransactionOperations, ApplicationEventPublisher> stimulus) 指定されたTransactionOperations
およびApplicationEventPublisher
を使用してシステムを刺激します。<S> Scenario.When<S>
Scenario.stimulate
(BiFunctionSE<TransactionOperations, ApplicationEventPublisher, S> stimulus) 指定されたTransactionOperations
およびApplicationEventPublisher
を使用してシステムを刺激し、結果を生成します。<S> Scenario.When<S>
Scenario.stimulate
(FunctionSE<TransactionOperations, S> function) 指定された関数を使用してシステムを刺激し、TransactionOperations
へのアクセスを提供し、指定された値を後の検証のために保持します。<S> Scenario.When<S>
Scenario.stimulate
(SupplierSE<S> supplier) 指定されたSupplier
SE を使用してシステムを刺激し、後の検証のために指定された値を保持します。