Back to Intellij Community

DependsOnMethodTestNG

plugins/testng/resources/inspectionDescriptions/dependsOnMethodTestNG.html

2025.3-rc-2439 B
Original Source

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(){}
  }