1 package test.configuration; 2 3 import org.testng.annotations.AfterSuite; 4 import org.testng.annotations.BeforeSuite; 5 import org.testng.annotations.Test; 6 7 public class SuiteFactoryOnceSample1Test { 8 public static int m_before = 0; 9 public static int m_after = 0; 10 11 @BeforeSuite bs()12 public void bs() { 13 m_before++; 14 } 15 16 @AfterSuite as()17 public void as() { 18 m_after++; 19 } 20 21 @Test g1()22 public void g1() { 23 } 24 25 }