Package org.testng.internal.annotations
Class IgnoreListener
- java.lang.Object
-
- org.testng.internal.annotations.IgnoreListener
-
- All Implemented Interfaces:
IAnnotationTransformer,IAnnotationTransformer,ITestNGListener
- Direct Known Subclasses:
DefaultAnnotationTransformer
public class IgnoreListener extends java.lang.Object implements IAnnotationTransformer
-
-
Constructor Summary
Constructors Constructor Description IgnoreListener()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static IgnorefindAnnotation(java.lang.Package testPackage)private static voidignoreTest(ITestAnnotation annotation, Ignore ignore)voidtransform(ITestAnnotation annotation, java.lang.Class testClass, java.lang.reflect.Constructor testConstructor, java.lang.reflect.Method testMethod)This method will be invoked by TestNG to give you a chance to modify a TestNG annotation read from your test classes.private static voidupdateDescription(ITestAnnotation annotation, Ignore ignore)
-
-
-
Method Detail
-
transform
public void transform(ITestAnnotation annotation, java.lang.Class testClass, java.lang.reflect.Constructor testConstructor, java.lang.reflect.Method testMethod)
Description copied from interface:IAnnotationTransformerThis method will be invoked by TestNG to give you a chance to modify a TestNG annotation read from your test classes. You can change the values you need by calling any of the setters on the ITest interface. Note that only one of the three parameters testClass, testConstructor and testMethod will be non-null.- Specified by:
transformin interfaceIAnnotationTransformer- Parameters:
annotation- The annotation that was read from your test class.testClass- If the annotation was found on a class, this parameter represents this class (null otherwise).testConstructor- If the annotation was found on a constructor, this parameter represents this constructor (null otherwise).testMethod- If the annotation was found on a method, this parameter represents this method (null otherwise).
-
ignoreTest
private static void ignoreTest(ITestAnnotation annotation, Ignore ignore)
-
updateDescription
private static void updateDescription(ITestAnnotation annotation, Ignore ignore)
-
findAnnotation
private static Ignore findAnnotation(java.lang.Package testPackage)
-
-