Package | Description |
---|---|
org.mockito.internal |
Internal classes, not to be used by clients.
|
org.mockito.internal.creation |
Mock object creation.
|
org.mockito.internal.creation.bytebuddy |
ByteBuddy related stuff
|
org.mockito.internal.creation.instance | |
org.mockito.internal.creation.settings | |
org.mockito.internal.handler | |
org.mockito.internal.stubbing |
Stubbing logic.
|
org.mockito.internal.util |
Static utils
|
org.mockito.plugins |
Mockito plugins allow customization of behavior.
|
Modifier and Type | Method and Description |
---|---|
MockCreationSettings |
InternalMockHandler.getMockSettings() |
Modifier and Type | Class and Description |
---|---|
class |
MockSettingsImpl<T> |
Modifier and Type | Method and Description |
---|---|
MockCreationSettings<T> |
MockSettingsImpl.confirm(Class<T> typeToMock) |
Modifier and Type | Method and Description |
---|---|
<T> T |
ByteBuddyMockMaker.createMock(MockCreationSettings<T> settings,
MockHandler handler) |
void |
ByteBuddyMockMaker.resetMock(Object mock,
MockHandler newHandler,
MockCreationSettings settings) |
Constructor and Description |
---|
MockMethodInterceptor(InternalMockHandler handler,
MockCreationSettings mockCreationSettings) |
Modifier and Type | Method and Description |
---|---|
Instantiator |
InstantiatorProvider.getInstantiator(MockCreationSettings settings) |
Modifier and Type | Class and Description |
---|---|
class |
CreationSettings<T>
by Szczepan Faber, created at: 4/9/12
|
Modifier and Type | Method and Description |
---|---|
InternalMockHandler |
MockHandlerFactory.create(MockCreationSettings settings) |
Constructor and Description |
---|
InvocationContainerImpl(MockingProgress mockingProgress,
MockCreationSettings mockSettings) |
Modifier and Type | Method and Description |
---|---|
MockCreationSettings |
MockUtil.getMockSettings(Object mock) |
Modifier and Type | Method and Description |
---|---|
<T> T |
MockUtil.createMock(MockCreationSettings<T> settings) |
Modifier and Type | Method and Description |
---|---|
<T> T |
MockMaker.createMock(MockCreationSettings<T> settings,
MockHandler handler)
If you want to provide your own implementation of
MockMaker this method should:
Create a proxy object that implements settings.typeToMock and potentially also settings.extraInterfaces .
You may use the information from settings to create/configure your proxy object.
Your proxy object should carry the handler with it. |
void |
MockMaker.resetMock(Object mock,
MockHandler newHandler,
MockCreationSettings settings)
Replaces the existing handler on
mock with newHandler . |