Class DefaultAssertablePublishedEvents
java.lang.Object
org.springframework.modulith.test.DefaultAssertablePublishedEvents
- All Implemented Interfaces:
EventListener,org.assertj.core.api.AssertProvider<PublishedEventsAssert>,ApplicationListener<ApplicationEvent>,AssertablePublishedEvents,PublishedEvents,TypedEvents
class DefaultAssertablePublishedEvents
extends Object
implements AssertablePublishedEvents, ApplicationListener<ApplicationEvent>
Default implementation of
AssertablePublishedEvents.- Author:
- Oliver Drotbohm
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.modulith.test.PublishedEvents
PublishedEvents.TypedPublishedEvents<T> -
Constructor Summary
ConstructorsConstructorDescriptionCreates a newDefaultAssertablePublishedEvents.Creates a newDefaultAssertablePublishedEventswith the givenDefaultPublishedEventsdelegate. -
Method Summary
Modifier and TypeMethodDescriptionReturns all events of the given type.voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.modulith.test.AssertablePublishedEvents
assertThatMethods inherited from interface org.springframework.modulith.test.TypedEvents
eventOfTypeWasPublished
-
Constructor Details
-
DefaultAssertablePublishedEvents
DefaultAssertablePublishedEvents(DefaultPublishedEvents delegate) Creates a newDefaultAssertablePublishedEventswith the givenDefaultPublishedEventsdelegate.- Parameters:
delegate- must not be null.
-
DefaultAssertablePublishedEvents
DefaultAssertablePublishedEvents()Creates a newDefaultAssertablePublishedEvents.
-
-
Method Details
-
ofType
Description copied from interface:TypedEventsReturns all events of the given type.- Specified by:
ofTypein interfacePublishedEvents- Specified by:
ofTypein interfaceTypedEvents- Type Parameters:
T- the event type- Parameters:
type- must not be null.- Returns:
-
onApplicationEvent
- Specified by:
onApplicationEventin interfaceApplicationListener<ApplicationEvent>
-