ExpectDsl
Defines the "Expect" phase of aggregate testing where results are validated.
This interface extends AggregateExpecter to provide comprehensive assertion methods for validating command execution results, and adds the fork method for creating branching test scenarios.
Parameters
the type of the aggregate state
Inheritors
Functions
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 specific conditions on the first domain event using a Consumer.
Expects specific conditions on the first domain event in the stream.
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.