1package test.factory; 2 3import org.testng.annotations.DataProvider; 4import org.testng.annotations.Factory; 5 6public class FactoryDataProviderWithNoArgCtorSampleErrorTest extends BaseFactory { 7 8 public FactoryDataProviderWithNoArgCtorSampleErrorTest() { 9 super(0); 10 } 11 12 @Factory(dataProvider = "dp") 13 public FactoryDataProviderWithNoArgCtorSampleErrorTest(int n) { 14 super(n); 15 } 16 17 @DataProvider 18 public Object[][] dp() { 19 return new Object[][] { 20 new Object[] { 45 }, 21 new Object[] { 46 }, 22 }; 23 } 24 @Override 25 public String toString() { 26 return "[FactoryDataProviderWithNoArgCtorSampleErrorTest " + getN() + "]"; 27 } 28} 29