mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 15:09:39 +07:00
24 lines
576 B
HTML
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> |