DefaultExpectDsl
Default implementation of ExpectDsl that creates dynamic JUnit 5 tests for each expectation.
This class wraps an ExpectStage and converts each expectation method call into a DynamicTest that can be executed by JUnit 5's dynamic test framework. Each expectation is verified without immediately throwing exceptions, allowing for better test reporting.
Parameters
The type of the saga being tested.
Properties
Functions
Creates a dynamic test for expectations on the first command.
Creates a dynamic test expecting a specific number of commands.
Creates a dynamic test for expectations on a command iterator.
Creates a dynamic test for expectations on the command stream.
Expects commands of specific types in order (Java Class version).
Creates a dynamic test expecting commands of specific types in order.
Creates a dynamic test expecting an error occurred.
Creates a dynamic test for expectations on a specific error.
Creates a dynamic test expecting no commands to be generated.
Creates a dynamic test expecting no error occurred.