1
package test.annotationtransformer;
3
import org.testng.IAnnotationTransformer;
4
import org.testng.annotations.ITestAnnotation;
5
import org.testng.annotations.Test;
7
import java.lang.reflect.Constructor;
8
import java.lang.reflect.Method;
10
public class AnnotationTransformerInTestngXml implements IAnnotationTransformer {
12
@Test(enabled = false)
13
public void shouldRunAfterTransformation() {}
15
public void transform(ITestAnnotation annotation, Class testClass,
16
Constructor testConstructor, Method testMethod) {
17
annotation.setEnabled(true);