Home | History | Annotate | Download | only in tmp
      1 package test.tmp;
      2 
      3 import org.testng.annotations.Configuration;
      4 import org.testng.annotations.Test;
      5 
      6 public class ChildTest extends ParentTest {
      7 
      8   @Configuration(beforeTestMethod = true)
      9   public void btm2() {
     10     ppp("CHILD BEFORE TEST");
     11   }
     12 
     13   @Configuration(afterTestMethod = true)
     14   public void atm2() {
     15     ppp("CHILD AFTER TEST");
     16   }
     17 
     18   @Override
     19   @Test
     20   public void t1() {
     21     ppp("TEST CHILD");
     22   }
     23 
     24   private void ppp(String string) {
     25     System.out.println("[Parent] " + string);
     26   }
     27 
     28 
     29 
     30 }
     31