Files
openide/plugins/testng/resources/inspectionDescriptions/MalformedDataProvider.html
Aleksandra Zolushkina ae24cbfbf2 Proofread TestNG inspection descriptions
GitOrigin-RevId: 4bb6c4227fe61f958bce3eaa82e97e28b22ba6ea
2021-05-14 19:45:32 +00:00

24 lines
576 B
HTML

<html><body>
Reports references to data provider methods that do not exist or are not accessible.
<!-- tooltip end -->
<p>Example:</p>
<pre><code>
public class InstanceDataProviderFromForeignClass {
// method data() doesn't exist in class A
@Test(dataProvider = "data", dataProviderClass = A.class)
public void test() {
}
}
class A { }
</code></pre>
<p>After the quick-fix is applied:</p>
<pre><code>
//the needed data() method is created in class A
class A {
@DataProvider
public Object[][] data() {
return new Object[][]{};
}
}
</code></pre>
</body></html>