| Package | Description |
|---|---|
| org.mockito |
Mockito is a mock library for java - see
Mockito class for usage. |
| org.mockito.internal |
Internal classes, not to be used by clients.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
| Modifier and Type | Class and Description |
|---|---|
class |
MockedConstructionImpl<T> |
| Modifier and Type | Method and Description |
|---|---|
<T> MockedConstruction<T> |
MockitoCore.mockConstruction(Class<T> typeToMock,
Function<MockedConstruction.Context,? extends MockSettings> settingsFactory,
MockedConstruction.MockInitializer<T> mockInitializer) |
Copyright © 2025. All rights reserved.