Uses of Class
org.springframework.modulith.test.PublishedEventsAssert.PublishedEventAssert
Packages that use PublishedEventsAssert.PublishedEventAssert
-
Uses of PublishedEventsAssert.PublishedEventAssert in org.springframework.modulith.test
Methods in org.springframework.modulith.test that return PublishedEventsAssert.PublishedEventAssertModifier and TypeMethodDescriptionAsserts that thePublishedEventscontain at least one event of the given type.PublishedEventsAssert.PublishedEventAssert.matching(Function<T, S> function, Predicate<? super S> predicate) Asserts that at least one event exists for which the value extracted by the givenFunctionmatches the given one.Asserts that at least one event matches the given predicate.Method parameters in org.springframework.modulith.test with type arguments of type PublishedEventsAssert.PublishedEventAssertModifier and TypeMethodDescriptionvoidScenario.When.EventResult.toArriveAndAssert(BiConsumer<PublishedEventsAssert.PublishedEventAssert<? super E>, T> consumer) Expects the events previously specified to arrive and additionally assert thePublishedEventsAssertfor the captured event and original stimulus result.voidScenario.When.EventResult.toArriveAndAssert(Consumer<PublishedEventsAssert.PublishedEventAssert<? super E>> consumer) Expects the events previously specified to arrive and additionally assert thePublishedEventsAssertfor the captured event.