Inspectopedia Help

Data provider problems

Reports references to data provider methods that do not exist or are not accessible.

Example:

public class InstanceDataProviderFromForeignClass { // method data() doesn't exist in class A @Test(dataProvider = "data", dataProviderClass = A.class) public void test() { } } class A { }

After the quick-fix is applied:

//the needed data() method is created in class A class A { @DataProvider public Object[][] data() { return new Object[][]{}; } }

Inspection Details

By default bundled with:

IntelliJ IDEA 2024.1, Qodana for JVM 2024.1,

Can be installed with plugin:

TestNG, 241.16690

Last modified: 29 April 2024