DefaultExpectDsl
Default implementation of the ExpectDsl interface for defining aggregate test expectations.
This class provides methods to specify various expectations about the outcome of aggregate operations, including state changes, events, and error conditions. It wraps an ExpectStage and converts expectations into JUnit 5 dynamic tests that can be executed dynamically.
Type Parameters
the state type of the aggregate being tested
Properties
Functions
Defines expectation that an error occurred during command processing.
Defines expectations for a specific error that occurred.
Defines expectations for a specific domain event.
Defines expectations for the number of domain events produced.
Defines expectations for iterating through domain events.
Defines expectations for the complete domain event stream.
Defines expectations for the types of domain events produced.
Defines expectation that no error occurred during command processing.
Defines expectations for the aggregate's state using a Consumer.
Defines expectations for the aggregate's state object.
Defines expectations for the aggregate's complete state including metadata.