expectEventBody

open override fun <E : Any> expectEventBody(expected: E.() -> Unit): ExpectDsl<S>

Defines expectations for a domain event's body content.

This method focuses specifically on verifying the business data contained within a domain event, ignoring metadata like headers and timestamps.

Return

this ExpectDsl instance for method chaining

Parameters

E

the type of the event body

expected

lambda function defining the expected event body properties