1package test.superclass;
2
3import org.testng.annotations.BeforeClass;
4import org.testng.annotations.BeforeMethod;
5import org.testng.annotations.Test;
6public class Base1 {
7  @BeforeClass
8  public void bc() {
9    ppp("BEFORE_CLASS");
10  }
11
12  @BeforeMethod
13  public void bm() {
14    ppp("BEFORE_METHOD");
15  }
16
17  @Test
18  public void tbase() {
19    ppp("TEST IN BASE");
20  }
21
22  private static void ppp(String s) {
23    if (false) {
24      System.out.println("[Base] " + s);
25    }
26  }
27}
28