Class PublishedEventsFactory
java.lang.Object
org.springframework.modulith.test.PublishedEventsFactory
Creates an instance of
PublishedEvents
or AssertablePublishedEvents
depending on whether AssertJ is
on the classpath or not.- Since:
- 1.4
- Author:
- Oliver Drotbohm
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static <T extends PublishedEvents & ApplicationListener<ApplicationEvent>>
T(package private) static boolean
Returns whether AssertJ is present or not.
-
Constructor Details
-
PublishedEventsFactory
PublishedEventsFactory()
-
-
Method Details
-
isAssertJPresent
static boolean isAssertJPresent()Returns whether AssertJ is present or not. -
createPublishedEvents
static <T extends PublishedEvents & ApplicationListener<ApplicationEvent>> T createPublishedEvents()- Returns:
- will never be null.
-