expectEventBody
Expects specific conditions on the body of the first domain event.
This method focuses on the business data within the event, allowing assertions on the event payload without concern for event metadata.
Return
the current expecter instance for method chaining
Parameters
expected
a lambda function that receives the event body and performs assertions
Type Parameters
E
the type of the event body
Expects specific conditions on the body of the first domain event using a Consumer.
Java-friendly overload for expectEventBody that accepts a Consumer instead of a lambda.
Return
the current expecter instance for method chaining
Parameters
expected
a Consumer that receives the event body and performs assertions
Type Parameters
E
the type of the event body