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 thePublishedEvents
contain 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 givenFunction
matches 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 TypeMethodDescriptionvoid
Scenario.When.EventResult.toArriveAndAssert
(BiConsumer<PublishedEventsAssert.PublishedEventAssert<? super E>, T> consumer) Expects the events previously specified to arrive and additionally assert thePublishedEventsAssert
for the captured event and original stimulus result.void
Scenario.When.EventResult.toArriveAndAssert
(Consumer<PublishedEventsAssert.PublishedEventAssert<? super E>> consumer) Expects the events previously specified to arrive and additionally assert thePublishedEventsAssert
for the captured event.