Class MockMethodDispatcher
java.lang.Object
org.mockito.internal.creation.bytebuddy.inject.MockMethodDispatcher
- Direct Known Subclasses:
MockMethodAdvice
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MockMethodDispatcherstatic MockMethodDispatcherabstract Callable<?> abstract ObjecthandleConstruction(Class<?> type, Object object, Object[] arguments, String[] parameterTypeNames) static ObjecthandleConstruction(String identifier, Class<?> type, Object object, Object[] arguments, String[] parameterTypeNames) abstract Callable<?> handleStatic(Class<?> type, Method origin, Object[] arguments) abstract booleanisConstructorMock(Class<?> type) static booleanisConstructorMock(String identifier, Class<?> type) abstract booleanabstract booleanabstract booleanisMockedStatic(Class<?> type) abstract booleanisOverridden(Object instance, Method origin) static voidset(String identifier, MockMethodDispatcher dispatcher)
-
Constructor Details
-
MockMethodDispatcher
public MockMethodDispatcher()
-
-
Method Details
-
get
-
getStatic
-
set
-
isConstructorMock
-
isConstructorMock
-
handleConstruction
-
handle
public abstract Callable<?> handle(Object instance, Method origin, Object[] arguments) throws Throwable - Throws:
Throwable
-
handleStatic
public abstract Callable<?> handleStatic(Class<?> type, Method origin, Object[] arguments) throws Throwable - Throws:
Throwable
-
handleConstruction
-
isMock
-
isMocked
-
isMockedStatic
-
isOverridden
-