~ubuntu-branches/ubuntu/utopic/testng/utopic

« back to all changes in this revision

Viewing changes to test/src/test/annotationtransformer/AnnotationTransformerInTestngXml.java

  • Committer: Bazaar Package Importer
  • Author(s): Marcus Better
  • Date: 2009-05-04 10:47:43 UTC
  • Revision ID: james.westby@ubuntu.com-20090504104743-1gbwsis9q1fh3aaj
Tags: upstream-5.9+dfsg
ImportĀ upstreamĀ versionĀ 5.9+dfsg

Show diffs side-by-side

added added

removed removed

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