public abstract class MockMethodDispatcher extends Object
| Constructor and Description |
|---|
MockMethodDispatcher() |
| Modifier and Type | Method and Description |
|---|---|
static MockMethodDispatcher |
get(String identifier,
Object mock) |
static MockMethodDispatcher |
getStatic(String identifier,
Class<?> type) |
abstract Callable<?> |
handle(Object instance,
Method origin,
Object[] arguments) |
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 |
isMock(Object instance) |
abstract boolean |
isMocked(Object instance) |
abstract boolean |
isMockedStatic(Class<?> type) |
abstract boolean |
isOverridden(Object instance,
Method origin) |
static void |
set(String identifier,
MockMethodDispatcher dispatcher) |
public static MockMethodDispatcher get(String identifier, Object mock)
public static MockMethodDispatcher getStatic(String identifier, Class<?> type)
public static void set(String identifier, MockMethodDispatcher dispatcher)
public abstract boolean isConstructorMock(Class<?> type)
public static Object handleConstruction(String identifier, Class<?> type, Object object, Object[] arguments, String[] parameterTypeNames)
public abstract Callable<?> handle(Object instance, Method origin, Object[] arguments) throws Throwable
Throwablepublic abstract Callable<?> handleStatic(Class<?> type, Method origin, Object[] arguments) throws Throwable
Throwablepublic abstract Object handleConstruction(Class<?> type, Object object, Object[] arguments, String[] parameterTypeNames)
public abstract boolean isMock(Object instance)
public abstract boolean isMocked(Object instance)
public abstract boolean isMockedStatic(Class<?> type)
Copyright © 2025. All rights reserved.