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