public class IgnoreListener extends java.lang.Object implements IAnnotationTransformer
Constructor and Description |
---|
IgnoreListener() |
Modifier and Type | Method and Description |
---|---|
private static Ignore |
findAnnotation(java.lang.Package testPackage) |
private static void |
ignoreTest(ITestAnnotation annotation,
Ignore ignore) |
private static void |
ignoreTestAtClass(java.lang.Class<?> clazz,
ITestAnnotation annotation) |
void |
transform(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.
|
void |
transform(ITestAnnotation annotation,
java.lang.Class testClass,
java.lang.reflect.Constructor tc,
java.lang.reflect.Method testMethod,
java.lang.Class<?> clazz) |
private static void |
updateDescription(ITestAnnotation annotation,
Ignore ignore) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
transform, transform, transform, transform
public void transform(ITestAnnotation annotation, java.lang.Class testClass, java.lang.reflect.Constructor testConstructor, java.lang.reflect.Method testMethod)
IAnnotationTransformer
Note that only one of the three parameters testClass, testConstructor and testMethod will be non-null.
transform
in interface IAnnotationTransformer
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).public void transform(ITestAnnotation annotation, java.lang.Class testClass, java.lang.reflect.Constructor tc, java.lang.reflect.Method testMethod, java.lang.Class<?> clazz)
private static void ignoreTestAtClass(java.lang.Class<?> clazz, ITestAnnotation annotation)
private static void ignoreTest(ITestAnnotation annotation, Ignore ignore)
private static void updateDescription(ITestAnnotation annotation, Ignore ignore)
private static Ignore findAnnotation(java.lang.Package testPackage)