Package testUtils
Class AnnotationTransformer
java.lang.Object
testUtils.AnnotationTransformer
- All Implemented Interfaces:
org.testng.IAnnotationTransformer
,org.testng.ITestNGListener
TestNG annotation transformer to set a custom retry analyzer.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
transform
(org.testng.annotations.ITestAnnotation annotation, Class testClass, Constructor testConstructor, Method testMethod) Sets the custom retry analyzer for TestNG tests if not already set.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.testng.IAnnotationTransformer
transform, transform, transform, transform
Methods inherited from interface org.testng.ITestNGListener
isEnabled
-
Constructor Details
-
AnnotationTransformer
public AnnotationTransformer()
-
-
Method Details
-
transform
public void transform(org.testng.annotations.ITestAnnotation annotation, Class testClass, Constructor testConstructor, Method testMethod) Sets the custom retry analyzer for TestNG tests if not already set.- Specified by:
transform
in interfaceorg.testng.IAnnotationTransformer
- Parameters:
annotation
- the test annotationtestClass
- the test classtestConstructor
- the test constructortestMethod
- the test method
-