EventHandlerTestHelper

Provides utility functions for mocking EventHandler in a unit test.

Types

Link copied to clipboard
interface MockEventHandler<E, R>
A mock handler that is used to handle events in a unit test

Functions

Link copied to clipboard
open fun <E, R> createMockEventHandler(eventClass: Class, handler: EventHandlerTestHelper.MockEventHandler<E, R>): EventHandler<E>
Creates a mock EventHandler