public interface MethodIntercepter
Intercept annotations.
The user can provide the implementation of this interface as attribute to the Intercept annotation.
Note: If you are using DataDrivenTestRunner, then CGLib is being used to intercept method invocation behind the scene.
Look at InternalInterceptor class for more detail.
If you are using SpringTestRunner from the easytest-spring module,
then Spring AOP is being used to intercept method invocation behind the scene.You can look at SpringInternalIntercepter class
in the easytest-spring module for more detail.Object intercept(Method methodToIntercept, Object targetInstance, Object[] methodArgs) throws Throwable
methodToIntercept - the method to intercepttargetInstance - the target instance on which to call the methodmethodArgs - the arguments to the methodThrowable - if any exception occursCopyright © 2014. All rights reserved.