Interface PublishedEvents
- All Superinterfaces:
TypedEvents
- All Known Subinterfaces:
AssertablePublishedEvents
- All Known Implementing Classes:
DefaultAssertablePublishedEvents,DefaultPublishedEvents
All Spring application events fired during the test execution.
- Author:
- Oliver Drotbohm
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceAll application events of a given type that were fired during a test execution. -
Method Summary
Modifier and TypeMethodDescriptionstatic PublishedEventsCreates a newPublishedEventsinstance for the given events.static PublishedEventsof(Collection<? extends Object> events) Creates a newPublishedEventsinstance for the given events.Returns all events of the given type.Methods inherited from interface org.springframework.modulith.test.TypedEvents
eventOfTypeWasPublished
-
Method Details
-
of
Creates a newPublishedEventsinstance for the given events.- Parameters:
events- must not be null.- Returns:
- will never be null.
-
of
Creates a newPublishedEventsinstance for the given events.- Parameters:
events- must not be null.- Returns:
-
ofType
Description copied from interface:TypedEventsReturns all events of the given type.- Specified by:
ofTypein interfaceTypedEvents- Type Parameters:
T- the event type- Parameters:
type- must not be null.- Returns:
-