blob: 77e2efe2198d6503403cda1c816aaf88af506f75 [file] [log] [blame]
package test.dataprovider;
import org.testng.Assert;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
/**
* This class/interface
*/
public class FailingDataProvider {
@DataProvider
public Object[][] throwsExpectedException() {
throw new RuntimeException("expected exception from @DP");
}
@Test(dataProvider="throwsExpectedException")
public void dpThrowingException() {
Assert.fail("Method should never get invoked");
}
}