mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 03:21:12 +07:00
30 lines
706 B
HTML
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> |