mockConstruction

inline fun <T> mockConstruction(): MockedConstruction<T>

Creates a thread-local mock for constructions of T.

See also

Mockito.mockConstruction

inline fun <T> mockConstruction(mockInitializer: MockedConstruction.MockInitializer<T>): MockedConstruction<T>

Creates a thread-local mock for constructions of T.

Parameters

mockInitializer

a callback to prepare the methods on a mock after its instantiation

See also

Mockito.mockConstruction