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.
Example:
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 | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for JVM 2023.3 |
Plugin: | TestNG, 233.SNAPSHOT |
Last modified: 13 July 2023