Class CommandHandlingTestFixture.Expect

java.lang.Object
com.opencqrs.framework.command.CommandHandlingTestFixture.Expect
All Implemented Interfaces:
ExpectDsl.Outcome
Enclosing class:
CommandHandlingTestFixture<C extends Command>

public static class CommandHandlingTestFixture.Expect extends Object implements ExpectDsl.Outcome
Fluent API helper class encapsulating the results of a CommandHandler execution for assertion.

Assertions are organized into inner classes implementing the ExpectDsl sub-interfaces:

  • CommandHandlingTestFixture.Expect.Succeeding for assertions after successful command execution
  • CommandHandlingTestFixture.Expect.Failing for assertions after failed command execution
  • CommandHandlingTestFixture.Expect.AllEvents for non-sequential assertions on all captured events
  • CommandHandlingTestFixture.Expect.NextEvents for cursor-based sequential assertions on captured events