Illegal method name passed to 'dependsOnMethods'
Reports illegal method names passed to the dependsOnMethods
attribute in the @Test
annotation.
A method name is considered illegal if it can't be resolved into a valid, accessible @Test
annotated method in the current class or any of its parent classes.
Example:
public class SampleTest {
@Test(dependsOnMethods = "testSpellignError")
public void testSample() {}
@Test
public void testSpellingError(){}
}
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for JVM 2023.3 |
Plugin: | TestNG, 233.SNAPSHOT |
Last modified: 13 July 2023