01: package test.superclass;
02:
03: import org.testng.annotations.BeforeClass;
04: import org.testng.annotations.BeforeMethod;
05: import org.testng.annotations.Test;
06:
07: public class Base1 {
08: @BeforeClass
09: public void bc() {
10: ppp("BEFORE_CLASS");
11: }
12:
13: @BeforeMethod
14: public void bm() {
15: ppp("BEFORE_METHOD");
16: }
17:
18: @Test
19: public void tbase() {
20: ppp("TEST IN BASE");
21: }
22:
23: private static void ppp(String s) {
24: if (false) {
25: System.out.println("[Base] " + s);
26: }
27: }
28: }
|