EventNotifierTest
abstract class EventNotifierTest<E>(context: CoroutineContext = EmptyCoroutineContext) : CoroutineTest
Base class for unit testing an EventNotifier.
You have to override the eventNotifier and events attributes. Usually, events will be a mock.
By default this handles events in runTest. You can disable this by overriding handleEventsInRunTest to false
. In that case you have to explicitly call handleEvents in each test.
Inheritors
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The dispatcher to use for handleEvents.
Link copied to clipboard
Link copied to clipboard