public class MockMethodAdvice extends MockMethodDispatcher
Modifier and Type | Class and Description |
---|---|
static class |
MockMethodAdvice.ForReadObject |
Constructor and Description |
---|
MockMethodAdvice(WeakConcurrentMap<Object,MockMethodInterceptor> interceptors,
String identifier) |
Modifier and Type | Method and Description |
---|---|
Callable<?> |
handle(Object instance,
Method origin,
Object[] arguments) |
boolean |
isMock(Object instance) |
boolean |
isMocked(Object instance) |
boolean |
isOverridden(Object instance,
Method origin) |
get, set
public MockMethodAdvice(WeakConcurrentMap<Object,MockMethodInterceptor> interceptors, String identifier)
public Callable<?> handle(Object instance, Method origin, Object[] arguments) throws Throwable
handle
in class MockMethodDispatcher
Throwable
public boolean isMock(Object instance)
isMock
in class MockMethodDispatcher
public boolean isMocked(Object instance)
isMocked
in class MockMethodDispatcher
public boolean isOverridden(Object instance, Method origin)
isOverridden
in class MockMethodDispatcher
Copyright © 2020. All rights reserved.