ExpectStage
Interface for defining and executing expectations on saga test results.
This interface extends StatelessSagaExpecter and provides methods to verify that all accumulated expectations are met by the actual saga results.
Parameters
The type of the saga being tested.
Functions
Sets expectations on the expected result using a lambda.
Sets expectations on the first command in the command stream.
Sets expectations on the body of the first command.
Expects a specific number of commands in the command stream.
Sets expectations on a command iterator created from the command stream.
Sets expectations on the command stream, ensuring no error occurred first.
Expects commands of specific types in order (Java Class version).
Expects commands of specific types in order.
Expects that an error occurred during saga processing.
Expects a specific error with custom assertions.
Expects an error of a specific type (Java Class version).
Expects an error of a specific type.
Expects that no commands were generated by the saga.
Expects that no error occurred during saga processing.
Verifies all expectations immediately.
Executes the verification logic after completing the test flow orchestration.