T
- The aggregate typeCT
- The aggregate's command typeE
- The event that will be processedC
- The concrete command type that will be processedpublic class MockEventHandlerContext<T extends CommandProcessingAggregate<T,CT>,CT extends Command,E extends Event,C extends CT>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
EventHandlerContext<E> |
mock |
EntityWithIdAndVersion<T> |
updatedEntity |
Constructor and Description |
---|
MockEventHandlerContext(EntityWithIdAndVersion<T> updatedEntity,
AggregateOperationInvocation<T,CT,C> aggregateOperationInvocation,
EventHandlerContext<E> mock) |
Modifier and Type | Method and Description |
---|---|
static <E extends Event> |
forEvent(E event) |
C |
getCommand() |
public final EntityWithIdAndVersion<T extends CommandProcessingAggregate<T,CT>> updatedEntity
public final EventHandlerContext<E extends Event> mock
public MockEventHandlerContext(EntityWithIdAndVersion<T> updatedEntity, AggregateOperationInvocation<T,CT,C> aggregateOperationInvocation, EventHandlerContext<E> mock)
public C getCommand()
public static <E extends Event> MockEventHandlerContextBuilder.MockEventHandlerContextBuilderWithEvent<E> forEvent(E event)