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.Deprecated, for removal: This API element is subject to removal in a future version.PublishedEventsAssert.PublishedEventAssert.matching(Function<T, S> function, Predicate<? super S> predicate) Asserts that at least one event matches the given predicate.PublishedEventsAssert.PublishedEventAssert.matchingValue(Function<T, S> function, @Nullable S value) Asserts that at least one event exists for which the value extracted by the givenFunctionmatches the given one.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.
matchingValue(Function, Object)instead.