expectCommandType
Expects commands of specific types in order.
This method verifies that the command stream contains exactly the specified number of commands and that each command's body is an instance of the corresponding expected type.
Return
The expecter instance for method chaining.
Parameters
expected
Variable number of KClass representing the expected command body types in order.
Expects commands of specific types in order (Java Class version).
This is a convenience overload that accepts Java Class instances and converts them to Kotlin KClass for type checking.
Return
The expecter instance for method chaining.
Parameters
expected
Variable number of Class representing the expected command body types in order.