01: package test.groupinvocation;
02:
03: import org.testng.annotations.AfterGroups;
04: import org.testng.annotations.BeforeGroups;
05:
06: /**
07: * This class/interface
08: */
09: public class GroupConfiguration {
10: @BeforeGroups(groups={"a"})
11: public void beforeGroups() {
12: DummyTest.recordInvocation("beforeGroups", hashCode());
13: }
14:
15: @AfterGroups(groups={"a"})
16: public void afterGroups() {
17: DummyTest.recordInvocation("afterGroups", hashCode());
18: }
19: }
|