Interface ExpectDsl


public interface ExpectDsl
DSL interfaces for the "Expect" (or "Then") phase of command handling tests. This phase specifies and verifies the expected outcomes after command execution, including success/failure status, published events, result values, and final state.

The Expect phase follows the When phase in the Given-When-Then test pattern. It provides a fluent API for asserting:

See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Fluent API for asserting against all captured events.
    static interface 
    Fluent API interface for validating individual captured events.
    static interface 
    Fluent API for assertions after failed command execution.
    static interface 
    Fluent API for asserting against events sequentially using a consuming cursor.
    static interface 
    Entry point for specifying whether the command execution is expected to succeed or fail.
    static interface 
    Fluent API for assertions after successful command execution.