Home | History | Annotate | Download | only in annotationtransformer
      1 package test.annotationtransformer;
      2 
      3 import org.testng.annotations.DataProvider;
      4 import org.testng.annotations.Factory;
      5 
      6 public class AnnotationTransformerFactorySampleTest {
      7   @DataProvider
      8   public Object[][] dataProvider() {
      9     return new Integer[][] {
     10         new Integer[] { 42 },
     11     };
     12   }
     13 
     14   @Factory(dataProvider = "dp")
     15   public Object[] init(int n) {
     16     return new Object[] {
     17         new SimpleTest(n)
     18     };
     19   }
     20 }
     21