Class AggregateTestUtils
java.lang.Object
org.springframework.modulith.test.AggregateTestUtils
Test utilities to work with aggregates.
- Author:
- Oliver Drotbohm
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PublishedEventsExtracts all domain events from the given aggregate that uses Spring Data'sDomainEventsannotation to expose them.
-
Constructor Details
-
AggregateTestUtils
public AggregateTestUtils()
-
-
Method Details
-
eventsOf
Extracts all domain events from the given aggregate that uses Spring Data'sDomainEventsannotation to expose them.- Parameters:
aggregate- must not be null.- Returns:
PublishedEventsfor all events contained in the given aggregate, will never be null.
-