Interface TypedEvents
- All Known Subinterfaces:
AssertablePublishedEvents
,PublishedEvents
,PublishedEvents.TypedPublishedEvents<T>
- All Known Implementing Classes:
DefaultAssertablePublishedEvents
,DefaultPublishedEvents
interface TypedEvents
- Author:
- Oliver Drotbohm
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
eventOfTypeWasPublished
(Class<?> type) Returns whether an event of the given type was published.Returns all events of the given type.
-
Method Details
-
ofType
Returns all events of the given type.- Type Parameters:
T
- the event type- Parameters:
type
- must not be null.- Returns:
-
eventOfTypeWasPublished
Returns whether an event of the given type was published.- Parameters:
type
- must not be null.- Returns:
- whether an event of the given type was published.
-