1 package test.annotationtransformer;
2 
3 import org.testng.Assert;
4 import org.testng.annotations.DataProvider;
5 import org.testng.annotations.Test;
6 
7 public class AnnotationTransformerDataProviderSampleTest {
8 
9   @DataProvider
dp()10   public Object[][] dp() {
11     return new Integer[][] {
12         new Integer[] { 42 },
13     };
14   }
15 
16   @Test(dataProvider = "dataProvider")
f(Integer n)17   public void f(Integer n) {
18     Assert.assertEquals(n, Integer.valueOf(42));
19   }
20 }
21