クラスの使用
org.springframework.modulith.test.PublishedEventsAssert.PublishedEventAssert
PublishedEventsAssert.PublishedEventAssert を使用するパッケージ
org.springframework.modulith.test 内の PublishedEventsAssert.PublishedEventAssert 使用
修飾子と型メソッド説明PublishedEventsに指定された型のイベントが少なくとも 1 つ含まれていることをアサートします。PublishedEventsAssert.PublishedEventAssert.matching(FunctionSE<T, S> function, PredicateSE<? super S> predicate) 指定されたFunctionSE によって抽出された値が指定されたPredicateSE と一致するイベントが少なくとも 1 つ存在することをアサートします。PublishedEventsAssert.PublishedEventAssert.matching(FunctionSE<T, S> function, S value) 指定されたFunctionSE によって抽出された値が指定された値と一致するイベントが少なくとも 1 つ存在することをアサートします。PublishedEventsAssert.PublishedEventAssert.matching(PredicateSE<? super T> predicate) 少なくとも 1 つのイベントが指定された述語に一致することをアサートします。型 PublishedEventsAssert.PublishedEventAssert の型引数を持つ org.springframework.modulith.test のメソッドパラメーター修飾子と型メソッド説明voidScenario.When.EventResult.toArriveAndAssert(BiConsumerSE<PublishedEventsAssert.PublishedEventAssert<? super E>, T> consumer) 以前に指定されたイベントが到着することを期待し、さらにキャプチャーされたイベントと元の stimulus 結果のPublishedEventsAssertをアサートします。voidScenario.When.EventResult.toArriveAndAssert(ConsumerSE<PublishedEventsAssert.PublishedEventAssert<? super E>> consumer) 以前に指定されたイベントが到着し、さらにキャプチャーされたイベントに対してPublishedEventsAssertをアサートすることを期待します。