T
- aggregate typeCT
- aggregate's command typepublic abstract class AggregateTest<T extends ReflectiveMutableCommandProcessingAggregate<T,CT>,CT extends Command>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected T |
aggregate |
protected java.util.List<Event> |
events |
Modifier | Constructor and Description |
---|---|
protected |
AggregateTest(java.lang.Class<T> aggregateClass) |
Modifier and Type | Method and Description |
---|---|
protected void |
assertEventsEquals(Event... expectedEvents) |
protected java.util.List<Event> |
create(CT cmd)
Process a command that creates an aggregate
|
protected java.util.List<Event> |
update(CT cmd)
Process a cmd that updates an aggregate
|
protected T extends ReflectiveMutableCommandProcessingAggregate<T,CT> aggregate
protected java.util.List<Event> events
protected AggregateTest(java.lang.Class<T> aggregateClass)
protected java.util.List<Event> create(CT cmd)
cmd
- the command to create an aggregateprotected java.util.List<Event> update(CT cmd)
cmd
- the command to update an aggregateprotected void assertEventsEquals(Event... expectedEvents)