Created
January 21, 2014 05:41
-
-
Save anonymous/8534944 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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