Home | History | Annotate | Download | only in triangle
      1 package test.triangle;
      2 
      3 import org.testng.annotations.AfterClass;
      4 import org.testng.annotations.BeforeClass;
      5 import org.testng.annotations.BeforeSuite;
      6 
      7 /**
      8  * This class
      9  *
     10  * @author cbeust
     11  */
     12 public class Base {
     13   protected boolean m_isInitialized = false;
     14 
     15   @BeforeSuite
     16   public void beforeSuite() {
     17     CountCalls.numCalls = 0;
     18   }
     19 
     20   @BeforeClass
     21   public void initBeforeTestClass() {
     22     m_isInitialized = true;
     23   }
     24 
     25   @AfterClass
     26   public void postAfterTestClass() {
     27     CountCalls.incr();
     28   }
     29 
     30   private static void ppp(String s) {
     31     System.out.println("[Base] " + s);
     32   }
     33 }
     34