Class CommandHandlingTestFixture.Expect

java.lang.Object
com.opencqrs.framework.command.CommandHandlingTestFixture.Expect
Enclosing class:
CommandHandlingTestFixture<I,C extends Command,R>

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

This class provides stateful event assertions, effectively iterating through the events published during a command handler execution. Methods within this annotated using CommandHandlingTestFixture.Expect.StatefulAssertion represent stateful assertions and thus both rely on previous stateful assertions and proceed through the captured event stream, if invoked.