blob: 42d1fc2b62acf1023d0b9d5d7a2ff216bd31f2e2 [file] [log] [blame]
package test.annotationtransformer;
import org.testng.annotations.IConfigurationAnnotation;
import org.testng.annotations.IDataProviderAnnotation;
import org.testng.annotations.IFactoryAnnotation;
import org.testng.annotations.ITestAnnotation;
import org.testng.IAnnotationTransformer2;
import java.lang.reflect.Constructor;
import java.lang.reflect.Method;
public class DataProviderTransformer implements IAnnotationTransformer2 {
public void transform(IConfigurationAnnotation annotation, Class testClass,
Constructor testConstructor, Method testMethod)
{
}
public void transform(IDataProviderAnnotation annotation, Method testMethod) {
annotation.setName("dataProvider");
}
public void transform(ITestAnnotation annotation, Class testClass,
Constructor testConstructor, Method testMethod)
{
}
public void transform(IFactoryAnnotation annotation, Method testMethod) {
}
}