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") f(Integer n)8 public void f(Integer n) { 9 } 10 11 @DataProvider dp()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