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