summaryrefslogtreecommitdiff
path: root/plugins/testng/testData/inspection/dependsOn/Dependencies.java
blob: fc095a3ecd3d0ae8580056280d28da69525f8e43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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 {
  }

   @Test(dependsOnMethods = <warning descr="Method 'foo*' unknown.">"foo*"</warning>)
   public void testBar2() {}

   @Test(dependsOnMethods = "testBa*")
   public void testBar1() {}
 }