T - The aggregate typeCT - The aggregate's command typepublic class MockAggregateRepository<T extends CommandProcessingAggregate<T,CT>,CT extends Command>
extends java.lang.Object
AggregateRepository| Modifier and Type | Field and Description |
|---|---|
AggregateRepository<T,CT> |
mock
The mock AggregateRepository
|
| Constructor and Description |
|---|
MockAggregateRepository() |
| Modifier and Type | Method and Description |
|---|---|
<C extends CT> |
whenSave(java.lang.Class<C> commandClass)
Create a stub for a call to AggregateRepository.save()
|
public final AggregateRepository<T extends CommandProcessingAggregate<T,CT>,CT extends Command> mock
public <C extends CT> SaveInvocation<T,CT,C> whenSave(java.lang.Class<C> commandClass)
C - The type of the commandcommandClass - The command to expect