1 package test.dataprovider; 2 3 import org.testng.annotations.DataProvider; 4 5 public class NonStaticProvider { 6 7 @DataProvider(name = "external") create()8 public Object[][] create() { 9 return new Object[][] { 10 new Object[] { "Cedric" }, 11 }; 12 } 13 } 14