Package com.opencqrs.framework.command
Class CommandHandlingTestFixture.Given.GivenEvent
java.lang.Object
com.opencqrs.framework.command.CommandHandlingTestFixture.Given.GivenEvent
- 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 appropriateStateRebuildingHandlervariants.payload(E payload) Specifies the event payload passed any of theStateRebuildingHandlervariants.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:
thisfor further specification calls
-
time
Specifies theEvent.time()to be used.- Parameters:
time- the event time-stamp- Returns:
thisfor further specification calls
-
subject
Specifies theEvent.subject()to be used.- Parameters:
subject- the event subject- Returns:
thisfor further specification calls
-
payload
Specifies the event payload passed any of theStateRebuildingHandlervariants.- Type Parameters:
E- the generic payload type- Parameters:
payload- the event payload- Returns:
thisfor further specification calls
-
metaData
Specifies the event meta-data passed to appropriateStateRebuildingHandlervariants.- Parameters:
metaData- the event meta-data- Returns:
thisfor further specification calls
-