Uses of Interface
org.mockito.invocation.MockHandler
-
Packages that use MockHandler Package Description org.mockito.internal Internal classes, not to be used by clients.org.mockito.internal.creation.cglib CGLIB related stufforg.mockito.plugins Mockito plugins allow customization of behavior. -
-
Uses of MockHandler in org.mockito.internal
Subinterfaces of MockHandler in org.mockito.internal Modifier and Type Interface Description interface
InternalMockHandler<T>
-
Uses of MockHandler in org.mockito.internal.creation.cglib
Methods in org.mockito.internal.creation.cglib that return MockHandler Modifier and Type Method Description MockHandler
CglibMockMaker. getHandler(java.lang.Object mock)
Methods in org.mockito.internal.creation.cglib with parameters of type MockHandler 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)
-
Uses of MockHandler in org.mockito.plugins
Methods in org.mockito.plugins that return MockHandler Modifier and Type Method Description MockHandler
MockMaker. getHandler(java.lang.Object mock)
Returns the handler for themock
.Methods in org.mockito.plugins with parameters of type MockHandler Modifier and Type Method Description <T> T
MockMaker. createMock(MockCreationSettings<T> settings, MockHandler handler)
If you want to provide your own implementation ofMockMaker
this method should: Create a proxy object that implementssettings.typeToMock
and potentially alsosettings.extraInterfaces
. You may use the information fromsettings
to create/configure your proxy object. Your proxy object should carry thehandler
with it.void
MockMaker. resetMock(java.lang.Object mock, MockHandler newHandler, MockCreationSettings settings)
Replaces the existing handler onmock
withnewHandler
.
-