1 package test.dataprovider; 2 3 import org.testng.annotations.DataProvider; 4 import org.testng.annotations.Test; 5 6 public class DuplicateDataProviderSampleTest { 7 8 @Test(dataProvider = "duplicate") f()9 public void f() { 10 } 11 12 @DataProvider(name = "duplicate") dp1()13 public Object[] dp1() { 14 return new Object[0][]; 15 } 16 17 @DataProvider(name = "duplicate") dp2()18 public Object[] dp2() { 19 return new Object[0][]; 20 } 21 } 22