Home | History | Annotate | Download | only in inheritance
      1 package test.inheritance;
      2 
      3 import org.testng.annotations.AfterMethod;
      4 import org.testng.annotations.BeforeMethod;
      5 
      6 public class Child_1 extends ZBase_0 {
      7 
      8   @BeforeMethod
      9   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 }
     27