E - The type of the exception that shall be caught and (optionally)
verifiedpublic class ExceptionProcessingInterceptor<E extends Exception> extends AbstractExceptionProcessingInvocationHandler<E> implements org.mockito.cglib.proxy.MethodInterceptor
AbstractExceptionProcessingInvocationHandler 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). |
assertException, clazz, target| Constructor and Description |
|---|
ExceptionProcessingInterceptor(Object target,
Class<E> clazz,
boolean assertException) |
| Modifier and Type | Method and Description |
|---|---|
Object |
intercept(Object obj,
Method method,
Object[] args,
org.mockito.cglib.proxy.MethodProxy proxy) |
afterInvocation, afterInvocationThrowsException, beforeInvocation, safeReturnValueprivate 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 ExceptionProcessingInterceptor(Object target, Class<E> clazz, boolean assertException)
Copyright © 2014. All rights reserved.