MockFactory

@VisibleForTesting
interface MockFactory

An interface for integrating a mocking library with the TestServiceLocator.

Implement this interface to provide a way for the test locator to create mock instances of services on demand.

Functions

Link copied to clipboard
abstract fun <T : Any> createMock(clazz: KClass<T>): T

Returns a new mock of type T.