|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.axonframework.test.saga.CommandValidator
public class CommandValidator
Helper class for validation of dispatched commands.
| Constructor Summary | |
|---|---|
CommandValidator(RecordingCommandBus commandBus,
FieldFilter fieldFilter)
Creates a validator which monitors the given commandBus. |
|
| Method Summary | |
|---|---|
void |
assertDispatchedEqualTo(Object... expected)
Assert that the given commands have been dispatched in the exact sequence provided. |
void |
assertDispatchedMatching(org.hamcrest.Matcher<?> matcher)
Assert that commands matching the given matcher has been dispatched on the command bus. |
void |
startRecording()
Starts recording commands on the command bus. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CommandValidator(RecordingCommandBus commandBus,
FieldFilter fieldFilter)
commandBus.
commandBus - the command bus to monitorfieldFilter - the filter describing the Fields to include in a comparison| Method Detail |
|---|
public void startRecording()
public void assertDispatchedEqualTo(Object... expected)
expected - The commands expected to have been published on the buspublic void assertDispatchedMatching(org.hamcrest.Matcher<?> matcher)
matcher has been dispatched on the command bus.
matcher - The matcher validating the actual commands
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||