E
- The type of the throwable that shall be caught and (optionally) verifiedpublic class ThrowableProcessingInterceptor<E extends Throwable> extends AbstractThrowableProcessingInvocationHandler<E> implements org.mockito.cglib.proxy.MethodInterceptor
AbstractThrowableProcessingInvocationHandler
implements MethodInterceptor
for Mockito's cglib
variant.Modifier and Type | Field and Description |
---|---|
private org.mockito.internal.creation.cglib.CGLIBHacker |
cglibHacker
We use this object to change the naming policy that is used by
MethodProxy.helper(org.mockito.cglib.proxy.MethodProxy.CreateInfo, java.lang.Class) . |
assertThrowable, clazz, target
Constructor and Description |
---|
ThrowableProcessingInterceptor(Object target,
Class<E> clazz,
boolean assertThrowable) |
Modifier and Type | Method and Description |
---|---|
Object |
intercept(Object obj,
Method method,
Object[] args,
org.mockito.cglib.proxy.MethodProxy proxy) |
afterInvocation, afterInvocationThrowsThrowable, beforeInvocation, safeReturnValue
private org.mockito.internal.creation.cglib.CGLIBHacker cglibHacker
MethodProxy.helper(org.mockito.cglib.proxy.MethodProxy.CreateInfo, java.lang.Class)
. The new naming policy
avoids duplicate class definitions.public ThrowableProcessingInterceptor(Object target, Class<E> clazz, boolean assertThrowable)
Copyright © 2014. All rights reserved.