AggregateExpecter
Defines the interface for aggregate expectation testing in the WOW framework.
This interface provides methods to assert various aspects of aggregate behavior after command execution, including state validation, event stream verification, and error checking. It supports fluent API chaining for building comprehensive test assertions.
Parameters
the type of the aggregate state
the self-referential type for fluent chaining (typically the implementing class)
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.