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