|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TestExecutor
Interface describing the operations available on a test fixture in the execution stage. In this stage, there is only
on operation: when(Object)
, which dispatches a command on this fixture's Command Bus.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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 execute
ResultValidator 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 the
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |