public class MockMethodInterceptor extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
MockMethodInterceptor.ForEquals |
static class |
MockMethodInterceptor.ForHashCode |
static class |
MockMethodInterceptor.ForWriteReplace |
static interface |
MockMethodInterceptor.MockAccess |
Constructor and Description |
---|
MockMethodInterceptor(InternalMockHandler handler,
MockCreationSettings mockCreationSettings) |
Modifier and Type | Method and Description |
---|---|
MockHandler |
getMockHandler() |
org.mockito.internal.creation.bytebuddy.ByteBuddyCrossClassLoaderSerializationSupport |
getSerializationSupport() |
Object |
interceptAbstract(Object mock,
Method invokedMethod,
Object[] arguments) |
Object |
interceptDefaultCallable(Object mock,
Method invokedMethod,
Object[] arguments,
Callable<?> superCall) |
Object |
interceptSuperCallable(Object mock,
Method invokedMethod,
Object[] arguments,
Callable<?> superCall) |
public MockMethodInterceptor(InternalMockHandler handler, MockCreationSettings mockCreationSettings)
@RuntimeType @BindingPriority(value=3.0) public Object interceptSuperCallable(@This Object mock, @Origin(cache=true) Method invokedMethod, @AllArguments Object[] arguments, @SuperCall(serializableProxy=true) Callable<?> superCall) throws Throwable
Throwable
@RuntimeType @BindingPriority(value=2.0) public Object interceptDefaultCallable(@This Object mock, @Origin(cache=true) Method invokedMethod, @AllArguments Object[] arguments, @DefaultCall(serializableProxy=true) Callable<?> superCall) throws Throwable
Throwable
@RuntimeType public Object interceptAbstract(@This Object mock, @Origin(cache=true) Method invokedMethod, @AllArguments Object[] arguments) throws Throwable
Throwable
public MockHandler getMockHandler()
public org.mockito.internal.creation.bytebuddy.ByteBuddyCrossClassLoaderSerializationSupport getSerializationSupport()