Uses of Interface
org.axonframework.test.fixture.AxonTestPhase.Then.Command
Packages that use AxonTestPhase.Then.Command
-
Uses of AxonTestPhase.Then.Command in org.axonframework.test.fixture
Methods in org.axonframework.test.fixture that return AxonTestPhase.Then.CommandModifier and TypeMethodDescriptionAxonTestPhase.Then.Command.resultMessagePayload(Object expectedPayload) Expect the last command handler from the When phase to return the givenexpectedPayloadafter execution.AxonTestPhase.Then.Command.resultMessagePayloadSatisfies(Class<T> type, Consumer<T> consumer) Invokes the givenconsumerof the command result payload that has been returned during the When phase, after converting it to the expectedtype.AxonTestPhase.Then.Command.resultMessagePayloadSatisfies(Consumer<Object> consumer) Deprecated, for removal: This API element is subject to removal in a future version.AxonTestPhase.Then.Command.resultMessageSatisfies(Consumer<? super CommandResultMessage> consumer) Invokes the givenconsumerof the command result message that has been returned during the When phase, allowing for any form of assertion.AxonTestPhase.Then.Command.success()Expect a successful execution of the When phase, regardless of the actual return value.AxonTestPhase.When.Command.then()Transitions to the Then phase to validate the results of the test.
resultMessagePayloadSatisfies(Class, Consumer)instead, which automatically handles payload conversion for distributed setups where conversion is necessary.