Inspectopedia Help

Old TestNG annotation @Configuration is used

Reports TestNG org.testng.annotations.Configuration annotations.

It's better to configure a test suite with the modern @BeforeXXX/@AfterXXX annotations.


public class Test { @Configuration(beforeSuite = true, afterTest = true) public void afterBefore(){ } }

After the quick-fix is applied:

public class Test { @AfterTest() @BeforeSuite() public void afterBefore(){ } }

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