01: package test.configuration;
02:
03: import org.testng.Assert;
04: import org.testng.annotations.BeforeGroups;
05:
06: public class Base3 {
07:
08: static private boolean m_before = false;
09:
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: }
|