Home | History | Annotate | Download | only in factory
      1 package test.factory;
      2 
      3 import org.testng.annotations.DataProvider;
      4 import org.testng.annotations.Factory;
      5 
      6 public 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