expectEvent
Defines expectations for a specific domain event.
This method verifies properties of a single domain event, including its body, metadata, and header information.
Return
this ExpectDsl instance for method chaining
Parameters
E
the type of the event body
expected
lambda function defining the expected event properties