1 package test.factory; 2 3 import org.testng.annotations.DataProvider; 4 import org.testng.annotations.Factory; 5 6 public class FactoryDataProviderStaticSampleErrorTest extends BaseFactory { 7 @Factory(dataProvider = "dp") 8 public FactoryDataProviderStaticSampleErrorTest(int n) { 9 super(n); 10 } 11 12 @DataProvider 13 public Object[][] dp() { 14 return new Object[][] { 15 new Object[] { 41 }, 16 new Object[] { 42 }, 17 }; 18 } 19 20 } 21