T
- The aggregate typeCT
- The aggregate's command typeC
- The type of the expected commandpublic class SaveInvocation<T extends CommandProcessingAggregate<T,CT>,CT extends Command,C extends CT> extends java.lang.Object implements AggregateOperationInvocation<T,CT,C>
Constructor and Description |
---|
SaveInvocation(org.mockito.ArgumentCaptor<C> commandArg,
EntityWithIdAndVersion<T> createdEntity) |
Modifier and Type | Method and Description |
---|---|
C |
getCommand() |
EntityWithIdAndVersion<T> |
getEntity() |
public SaveInvocation(org.mockito.ArgumentCaptor<C> commandArg, EntityWithIdAndVersion<T> createdEntity)
public EntityWithIdAndVersion<T> getEntity()
getEntity
in interface AggregateOperationInvocation<T extends CommandProcessingAggregate<T,CT>,CT extends Command,C extends CT>
public C getCommand()
getCommand
in interface AggregateOperationInvocation<T extends CommandProcessingAggregate<T,CT>,CT extends Command,C extends CT>