Home | History | Annotate | Download | only in superclass
      1 package test.superclass;
      2 
      3 import org.testng.annotations.BeforeClass;
      4 import org.testng.annotations.BeforeMethod;
      5 import org.testng.annotations.Test;
      6 public class Base1 {
      7   @BeforeClass
      8   public void bc() {
      9     ppp("BEFORE_CLASS");
     10   }
     11 
     12   @BeforeMethod
     13   public void bm() {
     14     ppp("BEFORE_METHOD");
     15   }
     16 
     17   @Test
     18   public void tbase() {
     19     ppp("TEST IN BASE");
     20   }
     21 
     22   private static void ppp(String s) {
     23     if (false) {
     24       System.out.println("[Base] " + s);
     25     }
     26   }
     27 }
     28