01: package test.inheritance;
02:
03: import org.testng.annotations.AfterMethod;
04: import org.testng.annotations.BeforeMethod;
05:
06: public class Child_1 extends ZBase_0 {
07:
08: @BeforeMethod
09: public void initDialog() {
10: m_methodList.add("initDialog");
11: ppp(" INIT 1");
12: }
13:
14: @AfterMethod
15: public void tearDownDialog() {
16: m_methodList.add("tearDownDialog");
17: ppp(" TEAR_DOWN 1");
18: }
19:
20: private static void ppp(String s) {
21: if (m_verbose) {
22: System.out.println("[C1] " + s);
23: }
24: }
25:
26: }
|