| Package | Description |
|---|---|
| org.mockito.internal |
Internal classes, not to be used by clients.
|
| org.mockito.internal.creation.bytebuddy |
ByteBuddy related stuff.
|
| org.mockito.internal.util |
Static utils
|
| org.mockito.plugins |
Mockito plugins allow customization of behavior.
|
| Constructor and Description |
|---|
MockedConstructionImpl(MockMaker.ConstructionMockControl<T> control) |
| Modifier and Type | Method and Description |
|---|---|
<T> MockMaker.ConstructionMockControl<T> |
ByteBuddyMockMaker.createConstructionMock(Class<T> type,
Function<MockedConstruction.Context,MockCreationSettings<T>> settingsFactory,
Function<MockedConstruction.Context,MockHandler<T>> handlerFactory,
MockedConstruction.MockInitializer<T> mockInitializer) |
<T> MockMaker.ConstructionMockControl<T> |
InlineByteBuddyMockMaker.createConstructionMock(Class<T> type,
Function<MockedConstruction.Context,MockCreationSettings<T>> settingsFactory,
Function<MockedConstruction.Context,MockHandler<T>> handlerFactory,
MockedConstruction.MockInitializer<T> mockInitializer) |
| Modifier and Type | Method and Description |
|---|---|
static <T> MockMaker.ConstructionMockControl<T> |
MockUtil.createConstructionMock(Class<T> type,
Function<MockedConstruction.Context,MockCreationSettings<T>> settingsFactory,
MockedConstruction.MockInitializer<T> mockInitializer) |
| Modifier and Type | Method and Description |
|---|---|
default <T> MockMaker.ConstructionMockControl<T> |
MockMaker.createConstructionMock(Class<T> type,
Function<MockedConstruction.Context,MockCreationSettings<T>> settingsFactory,
Function<MockedConstruction.Context,MockHandler<T>> handlerFactory,
MockedConstruction.MockInitializer<T> mockInitializer)
If you want to provide your own implementation of
MockMaker this method should:
Intercept all constructions of the specified type in the current thread
Only intercept the construction after being enabled.
Stops the interception when disabled.
|
Copyright © 2025. All rights reserved.