public interface TestExecutor
when(Object), which dispatches a command on this fixture's Command Bus.| Modifier and Type | Method and Description |
|---|---|
ResultValidator |
when(Object command)
Dispatches the given command to the appropriate command handler and records all activity in the fixture for
result validation.
|
ResultValidator |
when(Object command,
Map<String,?> metaData)
Dispatches the given command and meta data to the appropriate command handler and records all
activity in the fixture for result validation.
|
ResultValidator when(Object command)
command is a CommandMessage instance, it will be dispatched as-is. Any other object will
cause the given command to be wrapped in a CommandMessage as its payload.command - The command to executeResultValidator when(Object command, Map<String,?> metaData)
command is a CommandMessage instance, it will be dispatched as-is, with given
additional metaData. Any other object will cause the given command to be wrapped in a
CommandMessage as its payload.command - The command to executemetaData - The meta data to attach to theCopyright © 2010-2014. All Rights Reserved.