Package | Description |
---|---|
org.mockito.internal |
Internal classes, not to be used by clients.
|
org.mockito.internal.creation.cglib |
CGLIB related stuff
|
org.mockito.plugins |
Mockito plugins allow customization of behavior.
|
Modifier and Type | Interface | Description |
---|---|---|
interface |
InternalMockHandler<T> |
Modifier and Type | Method | Description |
---|---|---|
MockHandler |
CglibMockMaker.getHandler(java.lang.Object mock) |
Modifier and Type | Method | Description |
---|---|---|
<T> T |
CglibMockMaker.createMock(MockCreationSettings<T> settings,
MockHandler handler) |
|
void |
CglibMockMaker.resetMock(java.lang.Object mock,
MockHandler newHandler,
MockCreationSettings settings) |
Modifier and Type | Method | Description |
---|---|---|
MockHandler |
MockMaker.getHandler(java.lang.Object mock) |
Returns the handler for the
mock . |
Modifier and Type | Method | 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(java.lang.Object mock,
MockHandler newHandler,
MockCreationSettings settings) |
Replaces the existing handler on
mock with newHandler . |