Class AggregateTestUtils
java.lang.Object
org.springframework.modulith.test.AggregateTestUtils
Test utilities to work with aggregates.
- Author:
- Oliver Drotbohm
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic PublishedEventsExtracts all domain events from the given aggregate that uses Spring Data'sDomainEventsannotation to expose them.
- 
Constructor Details- 
AggregateTestUtilspublic AggregateTestUtils()
 
- 
- 
Method Details- 
eventsOfExtracts 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.
 
 
-