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 public class ExplicitDataProviderNameSample {
      7 
      8 	@Test(dataProvider="dp_name")
      9 	public void should_find_exactly_one_data_provider(int i) {}
     10 
     11 	@DataProvider(name="dp_name")
     12 	Object[][] whatever_implicit_name() {return new Object[][] {{1}};}
     13 
     14 	@DataProvider(name="whatever_explicit_name")
     15 	Object[][] dp_name() {return null;}
     16 }