summaryrefslogtreecommitdiff
path: root/plugins/testng/testData/inspection/dependsOn/Dependencies.java
blob: 9111c74affd08f96221a33a6dd74e7524a79d4c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import org.testng.annotations.*;
 class MyTest {
  @Test(dependsOnMethods = <warning descr="Method 'beforeMethod' is not a test or configuration method.">"beforeMethod"</warning>)
  public void testFoo() throws Exception {
  }

  @Test(dependsOnMethods = "testFoo")
  public void testBar() {}

  @AfterSuite
  protected final void afterSuiteMethod() throws Throwable {
  }

  @BeforeMethod(dependsOnMethods = <warning descr="Method 'afterSuiteMethod' is not annotated with @org.testng.annotations.BeforeMethod">"afterSuiteMethod"</warning>)
  public final void beforeMethod() throws Throwable {
  }
}