expectEventType

open override fun expectEventType(vararg expected: KClass<*>): ExpectDsl<S>

Defines expectations for the types of domain events produced.

This method verifies that the aggregate produced events of the specified types, in the order they are provided.

Return

this ExpectDsl instance for method chaining

Parameters

expected

variable number of event type classes to expect