| 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 |
|---|
MockedStaticImpl(MockMaker.StaticMockControl<T> control) |
| Modifier and Type | Method and Description |
|---|---|
<T> MockMaker.StaticMockControl<T> |
ByteBuddyMockMaker.createStaticMock(Class<T> type,
MockCreationSettings<T> settings,
MockHandler handler) |
<T> MockMaker.StaticMockControl<T> |
InlineByteBuddyMockMaker.createStaticMock(Class<T> type,
MockCreationSettings<T> settings,
MockHandler handler) |
| Modifier and Type | Method and Description |
|---|---|
static <T> MockMaker.StaticMockControl<T> |
MockUtil.createStaticMock(Class<T> type,
MockCreationSettings<T> settings) |
| Modifier and Type | Method and Description |
|---|---|
default <T> MockMaker.StaticMockControl<T> |
MockMaker.createStaticMock(Class<T> type,
MockCreationSettings<T> settings,
MockHandler handler)
If you want to provide your own implementation of
MockMaker this method should:
Alter the supplied class to only change its behavior in the current thread.
Only alters the static method's behavior after being enabled.
Stops the altered behavior when disabled.
|
Copyright © 2025. All rights reserved.