expectCommand

open fun <C : Any> expectCommand(expected: CommandMessage<C>.() -> Unit): SE

Sets expectations on the first command in the command stream.

This method expects at least one command to be present and applies the expectations to the first command message.

Return

The expecter instance for method chaining.

Parameters

C

The type of the command body.

expected

A lambda function that configures expectations on the first CommandMessage.