public class MockMethodAdvice extends MockMethodDispatcher
| Modifier and Type | Class and Description |
|---|---|
static class |
MockMethodAdvice.ForReadObject |
| Constructor and Description |
|---|
MockMethodAdvice(WeakConcurrentMap<Object,MockMethodInterceptor> interceptors,
DetachedThreadLocal<Map<Class<?>,MockMethodInterceptor>> mockedStatics,
String identifier,
Predicate<Class<?>> isMockConstruction,
ConstructionCallback onConstruction) |
| Modifier and Type | Method and Description |
|---|---|
Callable<?> |
handle(Object instance,
Method origin,
Object[] arguments) |
Object |
handleConstruction(Class<?> type,
Object object,
Object[] arguments,
String[] parameterTypeNames) |
Callable<?> |
handleStatic(Class<?> type,
Method origin,
Object[] arguments) |
boolean |
isConstructorMock(Class<?> type) |
boolean |
isMock(Object instance) |
boolean |
isMocked(Object instance) |
boolean |
isMockedStatic(Class<?> type) |
boolean |
isOverridden(Object instance,
Method origin) |
get, getStatic, handleConstruction, isConstructorMock, setpublic MockMethodAdvice(WeakConcurrentMap<Object,MockMethodInterceptor> interceptors, DetachedThreadLocal<Map<Class<?>,MockMethodInterceptor>> mockedStatics, String identifier, Predicate<Class<?>> isMockConstruction, ConstructionCallback onConstruction)
public Callable<?> handle(Object instance, Method origin, Object[] arguments) throws Throwable
handle in class MockMethodDispatcherThrowablepublic Callable<?> handleStatic(Class<?> type, Method origin, Object[] arguments) throws Throwable
handleStatic in class MockMethodDispatcherThrowablepublic Object handleConstruction(Class<?> type, Object object, Object[] arguments, String[] parameterTypeNames)
handleConstruction in class MockMethodDispatcherpublic boolean isMock(Object instance)
isMock in class MockMethodDispatcherpublic boolean isMocked(Object instance)
isMocked in class MockMethodDispatcherpublic boolean isMockedStatic(Class<?> type)
isMockedStatic in class MockMethodDispatcherpublic boolean isOverridden(Object instance, Method origin)
isOverridden in class MockMethodDispatcherpublic boolean isConstructorMock(Class<?> type)
isConstructorMock in class MockMethodDispatcherCopyright © 2025. All rights reserved.