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

30 lines
706 B
HTML

<html>
<body>
Reports <code>TestNG</code> data providers with equal names if <code>org.testng.TestNGException</code> has occurred.
<p>Example:</p>
<pre><code>
public class DuplicatedDataProviders {
@DataProvider
public Object[][] intTestData() { // duplicate 1
return new Integer[][]{
new Integer[]{1, 1},
};
}
@DataProvider(name = "intTestData")
public Object[][] someTestData() { // duplicate 2
return new Integer[][]{
new Integer[]{1, 1},
};
}
@Test(dataProvider = "intTestData")
public void testIsOK(Integer key, Integer value) {
assertEquals(key, value);
}
}
</code></pre>
<!-- tooltip end -->
<p>
</body>
</html>