• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package test.tmp;
2 
3 import org.testng.IAnnotationTransformer;
4 import org.testng.ITestContext;
5 import org.testng.ITestListener;
6 import org.testng.ITestResult;
7 import org.testng.annotations.ITestAnnotation;
8 
9 import java.lang.reflect.Constructor;
10 import java.lang.reflect.Method;
11 
12 public class AnnotationTransformer
13   implements IAnnotationTransformer, ITestListener
14 {
15 
16   @Override
transform(ITestAnnotation annotation, Class testClass, Constructor testConstructor, Method testMethod)17   public void transform(ITestAnnotation annotation, Class testClass,
18       Constructor testConstructor, Method testMethod)
19   {
20   }
21 
22   @Override
onFinish(ITestContext context)23   public void onFinish(ITestContext context) {
24     // TODO Auto-generated method stub
25 
26   }
27 
28   @Override
onStart(ITestContext context)29   public void onStart(ITestContext context) {
30     // TODO Auto-generated method stub
31 
32   }
33 
34   @Override
onTestFailedButWithinSuccessPercentage(ITestResult result)35   public void onTestFailedButWithinSuccessPercentage(ITestResult result) {
36     // TODO Auto-generated method stub
37 
38   }
39 
40   @Override
onTestFailure(ITestResult result)41   public void onTestFailure(ITestResult result) {
42     // TODO Auto-generated method stub
43 
44   }
45 
46   @Override
onTestSkipped(ITestResult result)47   public void onTestSkipped(ITestResult result) {
48     // TODO Auto-generated method stub
49 
50   }
51 
52   @Override
onTestStart(ITestResult result)53   public void onTestStart(ITestResult result) {
54     // TODO Auto-generated method stub
55 
56   }
57 
58   @Override
onTestSuccess(ITestResult result)59   public void onTestSuccess(ITestResult result) {
60     // TODO Auto-generated method stub
61 
62   }
63 
64 }
65