Implement this method to configure the passed InMemoryBackend for your tests
Drop all Events.
Drop all Events. This method is useful to make sure there are no unconsumed event in the queue before starting a new test
Useful when reusing the same test support on multiple test
Check only the type of the head of the test event buffer
Check only the type of the head of the test event buffer
- the event type
E if head of event buffer is E
AssertionError
in Event Buffer head doesn't match passed Event
Check if the next event in buffer matches the passed PartialFunction.
Check if the next event in buffer matches the passed PartialFunction.
Useful to verify the content of the event pattern matching.
- a PartialFunction from Any to T
Check that the internal event buffer is empty meaning that there is no new events to be processed.
Check that the internal event buffer is empty meaning that there is no new events to be processed.
Works exactly the same as expectNoMoreEvents
.
This method is generally used to verify that a command didn't emit any event.
Check that the internal event buffer is empty meaning that there is no new events to be processed.
Check that the internal event buffer is empty meaning that there is no new events to be processed.
Works exactly the same as expectNoMoreEvents
.
This method is generally used at the end of a test case to verity that all events emitted during the test were effectively consumed and that no unexpected event were emitted.
Search event buffer for E
consuming all previous Events.
Search event buffer for E
consuming all previous Events.
- the event type
E if event buffer contains an Event of type E
AssertionError
in case there is no matching Event on the buffer
Search event buffer for an Event
matching the passed PartialFunction consuming all previous Events.
Search event buffer for an Event
matching the passed PartialFunction consuming all previous Events.
Useful to verify the content of the event pattern matching.
- a PartialFunction from Any to T
E if event buffer contains an Event of type E
AssertionError
in case there is no matching Event on the buffer