Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

Created January 21, 2014 05:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/8534944 to your computer and use it in GitHub Desktop.
Save anonymous/8534944 to your computer and use it in GitHub Desktop.
@Listeners(value = { org.uncommons.reportng.HTMLReporter.class,
org.uncommons.reportng.JUnitXMLReporter.class })
public class DraftTest {
private String name;
@Factory(dataProvider = "dp")
public DraftTest(String name) {
this.name = name;
}
@Test
public void test(){
System.out.println(name);
}
@DataProvider
public static Object[][] dp() {
return new Object[][] { { "Петя"}, { "Ваня"} };
}
public String toString(){
return name;
}
}
test on Ваня 0,328s
test on Петя 0,000s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment