org.easetech.easytest.annotation
Annotation Type Intercept


@Retention(value=RUNTIME)
@Target(value=FIELD)
public @interface Intercept

A field level annotation that can be used to intercept calls to methods within the subject under test. A user can specify the interceptor it wants to use to intercept the call to the test subject's method. The interceptor should implement MethodIntercepter. The default interceptor is DefaultMethodIntercepter that simply prints the time taken in nano seconds by the test method on the console.
Look here for a simple example : https://github.com/EaseTech/easytest-core/blob/master/src/test/java/org/easetech/easytest /example/TestExcelDataLoader.java

Author:
Anuj Kumar

Optional Element Summary
 Class<? extends MethodIntercepter> interceptor
          The MethodInterceptor to use to intercept method calls.
 

interceptor

public abstract Class<? extends MethodIntercepter> interceptor
The MethodInterceptor to use to intercept method calls.

Default:
org.easetech.easytest.interceptor.DefaultMethodIntercepter.class


Copyright © 2013. All Rights Reserved.