ExpectStage
Defines the stage for specifying expectations after command execution in aggregate testing.
This interface extends AggregateExpecter to provide methods for validating command results and includes the verify method to execute the accumulated expectations.
Parameters
the type of the aggregate state
Functions
Applies custom expectations to the test result.
Expects that an error occurred during command execution.
Expects a specific error with detailed validation using a Consumer.
Expects a specific error with detailed validation.
Expects an error of a specific type (Java-friendly overload).
Expects an error of a specific type.
Expects specific conditions on the first domain event using a Consumer.
Expects specific conditions on the first domain event in the stream.
Expects specific conditions on the body of the first domain event using a Consumer.
Expects specific conditions on the body of the first domain event.
Expects a specific number of events in the domain event stream.
Expects specific conditions on an event iterator using a Consumer.
Expects specific conditions on an event iterator for the domain event stream.
Expects specific conditions on the domain event stream using a Consumer.
Expects specific conditions on the domain event stream.
Expects events of specific types in the exact order provided (Java-friendly overload).
Expects events of specific types in the exact order provided.
Expects that no error occurred during command execution.
Expects specific conditions on the aggregate state object using a Consumer.
Expects specific conditions on the aggregate state object.
Expects specific conditions on the aggregate state and metadata.
Creates a forked test scenario from the current ExpectStage.
Executes all accumulated expectations and returns a verified stage.
Executes expectations based on the immediate flag.