01: package test.tmp;
02:
03: import org.testng.Reporter;
04: import org.testng.annotations.Test;
05:
06: public class TestNGBug {
07: // @Configuration(beforeTestMethod = true)
08: public void init() {
09: ppp("Base.init()");
10: }
11:
12: @Test
13: public void test1() {
14: Reporter.log("Child.test1");
15: }
16:
17: @Test(enabled=false)
18: public void test2() {
19: Reporter.log("Child.test2");
20: }
21:
22: @Test(groups="a")
23: public void test3() {
24: Reporter.log("Child.test3");
25: }
26:
27: private void ppp(String string) {
28: System.out.println("[TestNGBug] " + string);
29: }
30: }
|