com.googlecode.catchexception.throwable.internal
Class ThrowableProcessingInterceptor<E extends Throwable>
java.lang.Object
com.googlecode.catchexception.throwable.internal.AbstractThrowableProcessingInvocationHandler<E>
com.googlecode.catchexception.throwable.internal.ThrowableProcessingInterceptor<E>
- Type Parameters:
E - The type of the throwable that shall be caught and (optionally) verified
- All Implemented Interfaces:
- io.codearte.catchexception.shade.mockito.cglib.proxy.Callback, io.codearte.catchexception.shade.mockito.cglib.proxy.MethodInterceptor
public class ThrowableProcessingInterceptor<E extends Throwable>
- extends AbstractThrowableProcessingInvocationHandler<E>
- implements io.codearte.catchexception.shade.mockito.cglib.proxy.MethodInterceptor
This AbstractThrowableProcessingInvocationHandler implements MethodInterceptor for Mockito's cglib
variant.
- Author:
- rwoo, federico.gaule at gmail.com
|
Field Summary |
private io.codearte.catchexception.shade.mockito.internal.creation.cglib.CGLIBHacker |
cglibHacker
We use this object to change the naming policy that is used by MethodProxy.helper(io.codearte.catchexception.shade.mockito.cglib.proxy.MethodProxy.CreateInfo, java.lang.Class). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cglibHacker
private io.codearte.catchexception.shade.mockito.internal.creation.cglib.CGLIBHacker cglibHacker
- We use this object to change the naming policy that is used by
MethodProxy.helper(io.codearte.catchexception.shade.mockito.cglib.proxy.MethodProxy.CreateInfo, java.lang.Class). The new naming policy
avoids duplicate class definitions.
ThrowableProcessingInterceptor
public ThrowableProcessingInterceptor(Object target,
Class<E> clazz,
boolean assertThrowable)
intercept
public Object intercept(Object obj,
Method method,
Object[] args,
io.codearte.catchexception.shade.mockito.cglib.proxy.MethodProxy proxy)
throws Throwable
- Specified by:
intercept in interface io.codearte.catchexception.shade.mockito.cglib.proxy.MethodInterceptor
- Throws:
Throwable
Copyright © 2015. All rights reserved.