CommandIterator
class CommandIterator(val delegate: Iterator<CommandMessage<*>>) : Iterator<CommandMessage<*>> , Decorator<Iterator<CommandMessage<*>>>
A decorator iterator for command messages that provides testing utilities.
This class wraps an iterator of CommandMessage instances and provides convenient methods for skipping commands and asserting command types during saga testing.
Functions
Link copied to clipboard
Link copied to clipboard
Retrieves the next command with reified type checking.
Retrieves the next command and asserts it is of the specified type (Java Class version).
Retrieves the next command and asserts it is of the specified type.
Link copied to clipboard
Retrieves the body of the next command with reified type checking.
Retrieves the body of the next command and asserts it is of the specified type (Java Class version).
Retrieves the body of the next command and asserts it is of the specified type.
Link copied to clipboard
Skips a specified number of commands in the iterator.