01: package test.dataprovider;
02:
03: import org.testng.annotations.DataProvider;
04: import org.testng.annotations.Test;
05:
06: /**
07: * Test that if a class @Test is used, the @DataProvider
08: * method won't be considered as a test.
09: */
10: @Test
11: public class DataProviderAsTest {
12:
13: public void f() {
14: }
15:
16: @DataProvider
17: public Object[][] dataProvider() {
18: throw new RuntimeException();
19: }
20:
21: }
|