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
Modifier and TypeInterfaceDescriptionstatic interface
All application events of a given type that were fired during a test execution. -
Method Summary
Modifier and TypeMethodDescriptionstatic PublishedEvents
Creates a newPublishedEvents
instance for the given events.static PublishedEvents
of
(Collection<? extends Object> events) Creates a newPublishedEvents
instance 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 newPublishedEvents
instance for the given events.- Parameters:
events
- must not be null.- Returns:
- will never be null.
-
of
Creates a newPublishedEvents
instance for the given events.- Parameters:
events
- must not be null.- Returns:
-
ofType
Description copied from interface:TypedEvents
Returns all events of the given type.- Specified by:
ofType
in interfaceTypedEvents
- Type Parameters:
T
- the event type- Parameters:
type
- must not be null.- Returns:
-