Class MockMethodDispatcher
java.lang.Object
org.mockito.internal.creation.bytebuddy.inject.MockMethodDispatcher
- Direct Known Subclasses:
MockMethodAdvice
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MockMethodDispatcher
static MockMethodDispatcher
abstract Callable
<?> abstract Object
handleConstruction
(Class<?> type, Object object, Object[] arguments, String[] parameterTypeNames) static Object
handleConstruction
(String identifier, Class<?> type, Object object, Object[] arguments, String[] parameterTypeNames) abstract Callable
<?> handleStatic
(Class<?> type, Method origin, Object[] arguments) abstract boolean
isConstructorMock
(Class<?> type) static boolean
isConstructorMock
(String identifier, Class<?> type) abstract boolean
abstract boolean
abstract boolean
isMockedStatic
(Class<?> type) abstract boolean
isOverridden
(Object instance, Method origin) static void
set
(String identifier, MockMethodDispatcher dispatcher)
-
Field Details
-
DISPATCHERS
-
-
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
-