Home | History | Annotate | Download | only in dataprovider
      1 package test.dataprovider;
      2 
      3 import static org.testng.Assert.assertEquals;
      4 
      5 import org.testng.TestListenerAdapter;
      6 import org.testng.TestNG;
      7 import org.testng.annotations.Test;
      8 
      9 import test.SimpleBaseTest;
     10 
     11 public class ExplicitDataProviderNameTest extends SimpleBaseTest {
     12 
     13 	@Test(description = "TESTNG-576: Prefer DataProvider explicit name")
     14 	public void should_prefer_dataProvider_explicit_name() {
     15 	    TestNG testng = create(ExplicitDataProviderNameSample.class);
     16 	    TestListenerAdapter tla = new TestListenerAdapter();
     17 	    testng.addListener(tla);
     18 	    testng.run();
     19 
     20 	    assertEquals(tla.getPassedTests().size(), 1, "All tests should success");
     21 	  }
     22 }