expectCommandBody

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

Sets expectations on the body of the first command.

This method applies expectations directly to the body of 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 command body.