Package com.opencqrs.framework.command
Class CommandHandlingTestFixture.Given.GivenEvent<I>
java.lang.Object
com.opencqrs.framework.command.CommandHandlingTestFixture.Given.GivenEvent<I>
- Type Parameters:
I
- the generic type of the instance to be event sourced before handling the command
- Enclosing class:
CommandHandlingTestFixture.Given<C extends Command>
Fluent API helper class for fine granular specification of a single given event.
-
Method Summary
Modifier and TypeMethodDescriptionSpecifies theEvent.id()
to be used.Specifies the event meta-data passed to appropriateStateRebuildingHandler
variants.payload
(E payload) Specifies the event payload passed any of theStateRebuildingHandler
variants.Specifies theEvent.subject()
to be used.Specifies theEvent.time()
to be used.
-
Method Details
-
id
Specifies theEvent.id()
to be used.- Parameters:
id
- the event id- Returns:
this
for further specification calls
-
time
Specifies theEvent.time()
to be used.- Parameters:
time
- the event time-stamp- Returns:
this
for further specification calls
-
subject
Specifies theEvent.subject()
to be used.- Parameters:
subject
- the event subject- Returns:
this
for further specification calls
-
payload
Specifies the event payload passed any of theStateRebuildingHandler
variants.- Type Parameters:
E
- the generic payload type- Parameters:
payload
- the event payload- Returns:
this
for further specification calls
-
metaData
Specifies the event meta-data passed to appropriateStateRebuildingHandler
variants.- Parameters:
metaData
- the event meta-data- Returns:
this
for further specification calls
-