createMock

abstract fun <T : Any> createMock(clazz: KClass<T>): T

Creates a mock instance for the given service type.

Subclasses must implement this method to integrate their chosen mocking framework (e.g., Mockito, MockK).

Return

A mock instance of type T.

Parameters

clazz

The KClass of the service to mock.