|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@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
| Optional Element Summary | |
|---|---|
Class<? extends MethodIntercepter> |
interceptor
The MethodInterceptor to use to intercept method calls. |
public abstract Class<? extends MethodIntercepter> interceptor
MethodInterceptor to use to intercept method calls.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||