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