Uses of Interface
org.mockito.invocation.MockHandler
Packages that use MockHandler
Package
Description
Internal classes, not to be used by clients.
CGLIB related stuff
Mockito plugins allow customization of behavior.
-
Uses of MockHandler in org.mockito.internal
Subinterfaces of MockHandler in org.mockito.internal -
Uses of MockHandler in org.mockito.internal.creation.cglib
Methods in org.mockito.internal.creation.cglib that return MockHandlerMethods in org.mockito.internal.creation.cglib with parameters of type MockHandlerModifier and TypeMethodDescription<T> TCglibMockMaker.createMock(MockCreationSettings<T> settings, MockHandler handler) voidCglibMockMaker.resetMock(Object mock, MockHandler newHandler, MockCreationSettings settings) -
Uses of MockHandler in org.mockito.plugins
Methods in org.mockito.plugins that return MockHandlerModifier and TypeMethodDescriptionMockMaker.getHandler(Object mock) Returns the handler for themock.Methods in org.mockito.plugins with parameters of type MockHandlerModifier and TypeMethodDescription<T> TMockMaker.createMock(MockCreationSettings<T> settings, MockHandler handler) If you want to provide your own implementation ofMockMakerthis method should: Create a proxy object that implementssettings.typeToMockand potentially alsosettings.extraInterfaces. You may use the information fromsettingsto create/configure your proxy object. Your proxy object should carry thehandlerwith it.voidMockMaker.resetMock(Object mock, MockHandler newHandler, MockCreationSettings settings) Replaces the existing handler onmockwithnewHandler.