Top Constructors Methods
org.testng.internal.annotations

public Class DefaultAnnotationTransformer

extends IgnoreListener
implements IAnnotationTransformer
Class Inheritance
All Implemented Interfaces
org.testng.IAnnotationTransformer, org.testng.ITestNGListener
Imports
java.lang.reflect.Constructor, .Method, org.testng.IAnnotationTransformer, org.testng.annotations.ITestAnnotation

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
transform(ITestAnnotation
The annotation that was read from your test class.
annotation
,
Class<T>
If the annotation was found on a class, this parameter represents this class (null otherwise).
testClass
,
Constructor<T>
If the annotation was found on a constructor, this parameter represents this constructor (null otherwise).
testConstructor
,
Method
If the annotation was found on a method, this parameter represents this method (null otherwise).
testMethod
)

Overrides org.testng.internal.annotations.IgnoreListener.transform.

Overrides default org.testng.IAnnotationTransformer.transform.

This method will be invoked by TestNG to give you a chance to modify a TestNG annotation read from your test classes.
public void

Constructor Detail

DefaultAnnotationTransformerback to summary
public DefaultAnnotationTransformer()

Method Detail

transformback to summary
public void transform(ITestAnnotation annotation, Class<T> testClass, Constructor<T> testConstructor, Method testMethod)

Overrides org.testng.internal.annotations.IgnoreListener.transform.

Overrides default org.testng.IAnnotationTransformer.transform.

Doc from org.testng.IAnnotationTransformer.transform.

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.

Parameters
annotation:ITestAnnotation

The annotation that was read from your test class.

testClass:Class<T>

If the annotation was found on a class, this parameter represents this class (null otherwise).

testConstructor:Constructor<T>

If the annotation was found on a constructor, this parameter represents this constructor (null otherwise).

testMethod:Method

If the annotation was found on a method, this parameter represents this method (null otherwise).

Annotations
@Override
transformback to summary
public void transform(ITestAnnotation annotation, Class<T> testClass, Constructor<T> cons, Method tm, Class<?> clazz)

Overrides org.testng.internal.annotations.IgnoreListener.transform.

Overrides default org.testng.internal.annotations.IAnnotationTransformer.transform.

Annotations
@Override