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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static Ignore
findAnnotation
(Package testPackage) private static void
ignoreTest
(ITestAnnotation annotation, Ignore ignore) private static void
ignoreTestAtClass
(Class<?> clazz, ITestAnnotation annotation) void
transform
(ITestAnnotation annotation, Class testClass, Constructor testConstructor, Method testMethod) This method will be invoked by TestNG to give you a chance to modify a TestNG annotation read from your test classes.void
transform
(ITestAnnotation annotation, Class testClass, Constructor tc, Method testMethod, Class<?> clazz) private static void
updateDescription
(ITestAnnotation annotation, Ignore ignore) 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
-
Constructor Details
-
IgnoreListener
public IgnoreListener()
-
-
Method Details
-
transform
public void transform(ITestAnnotation annotation, Class testClass, Constructor testConstructor, Method testMethod) Description copied from interface:IAnnotationTransformer
This 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:
transform
in 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).
-
transform
public void transform(ITestAnnotation annotation, Class testClass, Constructor tc, Method testMethod, Class<?> clazz) - Specified by:
transform
in interfaceIAnnotationTransformer
-
ignoreTestAtClass
-
ignoreTest
-
updateDescription
-
findAnnotation
-