1package test.configuration; 2 3import org.testng.Assert; 4import org.testng.annotations.BeforeGroups; 5 6public class Base3 { 7 8 static private boolean m_before = false; 9 10 /** 11 * @return the m_before 12 */ 13 public static boolean getBefore() { 14 return m_before; 15 } 16 17 @BeforeGroups("cg34-1") 18 public void anotherBefore1() { 19 log("anotherBefore1"); 20 Assert.assertFalse(m_before); 21 Assert.assertFalse(ConfigurationGroups3SampleTest.getF1()); 22 m_before = true; 23 } 24 25 private void log(String string) { 26 ppp(string); 27 } 28 29 private void ppp(String s) { 30 if (false) { 31 System.out.println("[Base3] " + s); 32 } 33 } 34 35} 36