createMockEventHandler

open fun <E, R> createMockEventHandler(eventClass: Class, handler: EventHandlerTestHelper.MockEventHandler<E, R>): EventHandler<E>

Creates a mock EventHandler

Return

A mock event handler

Parameters

eventClass

The class of the event that is being handled

handler

The mock handler that gets called when the event is triggered

<E>

The type of the event being handled

<R>

The type of the return value of the event