• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package test.failedreporter;
2 
3 import org.testng.annotations.DataProvider;
4 import org.testng.annotations.Test;
5 
6 public class FailedReporter2SampleTest {
7   @DataProvider
dp()8   public Object[][] dp() {
9     return new Object[][] {
10       new Object[] { 0 },
11       new Object[] { 1 },
12       new Object[] { 2 },
13     };
14   }
15 
16   @Test(dataProvider = "dp")
f1(Integer ip)17   public void f1(Integer ip) {
18     if (ip == 1) {
19       throw new RuntimeException();
20     }
21   }
22 }
23