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 SummaryNested classes/interfaces inherited from interface org.springframework.modulith.test.PublishedEventsPublishedEvents.TypedPublishedEvents<T>
- 
Constructor SummaryConstructorsConstructorDescriptionCreates a newDefaultAssertablePublishedEvents.Creates a newDefaultAssertablePublishedEventswith the givenDefaultPublishedEventsdelegate.
- 
Method SummaryMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.modulith.test.AssertablePublishedEventsassertThatMethods inherited from interface org.springframework.modulith.test.TypedEventseventOfTypeWasPublished
- 
Constructor Details- 
DefaultAssertablePublishedEventsDefaultAssertablePublishedEvents(DefaultPublishedEvents delegate) Creates a newDefaultAssertablePublishedEventswith the givenDefaultPublishedEventsdelegate.- Parameters:
- delegate- must not be null.
 
- 
DefaultAssertablePublishedEventsDefaultAssertablePublishedEvents()Creates a newDefaultAssertablePublishedEvents.
 
- 
- 
Method Details- 
ofTypeDescription copied from interface:TypedEventsReturns all events of the given type.- Specified by:
- ofTypein interface- PublishedEvents
- Specified by:
- ofTypein interface- TypedEvents
- Type Parameters:
- T- the event type
- Parameters:
- type- must not be null.
- Returns:
 
- 
onApplicationEvent- Specified by:
- onApplicationEventin interface- ApplicationListener<ApplicationEvent>
 
- 
toString
 
-