static <T> MockedConstruction<T> |
Mockito.mockConstruction(Class<T> classToMock) |
Creates a thread-local mock controller for all constructions of the given class.
|
static <T> MockedConstruction<T> |
Mockito.mockConstruction(Class<T> classToMock,
Function<MockedConstruction.Context,MockSettings> mockSettingsFactory) |
Creates a thread-local mock controller for all constructions of the given class.
|
static <T> MockedConstruction<T> |
Mockito.mockConstruction(Class<T> classToMock,
Function<MockedConstruction.Context,MockSettings> mockSettingsFactory,
MockedConstruction.MockInitializer<T> mockInitializer) |
Creates a thread-local mock controller for all constructions of the given class.
|
static <T> MockedConstruction<T> |
Mockito.mockConstruction(Class<T> classToMock,
MockedConstruction.MockInitializer<T> mockInitializer) |
Creates a thread-local mock controller for all constructions of the given class.
|
static <T> MockedConstruction<T> |
Mockito.mockConstruction(Class<T> classToMock,
MockSettings mockSettings) |
Creates a thread-local mock controller for all constructions of the given class.
|
static <T> MockedConstruction<T> |
Mockito.mockConstruction(Class<T> classToMock,
MockSettings mockSettings,
MockedConstruction.MockInitializer<T> mockInitializer) |
Creates a thread-local mock controller for all constructions of the given class.
|
static <T> MockedConstruction<T> |
Mockito.mockConstructionWithAnswer(Class<T> classToMock,
Answer defaultAnswer,
Answer... additionalAnswers) |
Creates a thread-local mock controller for all constructions of the given class.
|