VerifiedStage
Defines the stage after command execution and expectation verification in aggregate testing.
This interface extends both GivenStage and AggregateExpecter, allowing for additional command executions or further expectations on the verified results.
Parameters
the type of the aggregate state
Properties
Functions
Applies additional expectations to the verified 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 completely independent test branch context from the current state.
Creates a test branch and executes a handler function on it.
Sets the owner ID for the aggregate in this test.
Continues to the next stage, optionally verifying error conditions.
Extension function that allows executing a command directly from the Given stage.