-
- All Implemented Interfaces:
-
org.mockito.plugins.MockMaker
public final class InlineStaticMockMaker implements MockMakerCreates mock markers and adds stubbing hooks to static method
This is done by transforming the byte code of the classes to add method entry hooks.
-
-
Field Summary
Fields Modifier and Type Field Description public static ThreadLocal<Class>mockingInProgressClasspublic static ThreadLocal<BiConsumer<Class<out Object>, Method>>onMethodCallDuringStubbingpublic static ThreadLocal<BiConsumer<Class<out Object>, Method>>onMethodCallDuringVerification
-
Constructor Summary
Constructors Constructor Description InlineStaticMockMaker()Create a new mock maker.
-
Method Summary
Modifier and Type Method Description <T> TcreateMock(MockCreationSettings<T> settings, MockHandler handler)voidresetMock(Object mock, MockHandler newHandler, MockCreationSettings settings)MockMaker.TypeMockabilityisTypeMockable(Class<out Object> type)MockHandlergetHandler(Object mock)-
-
Method Detail
-
createMock
<T> T createMock(MockCreationSettings<T> settings, MockHandler handler)
-
isTypeMockable
MockMaker.TypeMockability isTypeMockable(Class<out Object> type)
-
getHandler
MockHandler getHandler(Object mock)
-
-
-
-