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