@Test
public void myAxon3Testmethod() {
testFixture
.given(
new MyEventToDefineTheFixture()
).when(
new MyFirstCommand(),
new MySecondCommand()
).expectEvents(
new MyExpectedEvent()
);
}
So I would like to describe what should happen if 2 certain commands are executed.
As a workaround I could:
Convert one command into an event or
Create a special Test-Command that takes the two commands as a payload.
In some cases it’s more natural to define 2 commands instead of describing what has happend bei converting them into events.
Or am I missing something?
Ah ok - now I know why I missed it. This feature is on the master but not existing in Version 3.0.7 in the TestExecutor Class.
I switched to Version 3.1 which contained your mentioned feature ;-).