1package test.groupinvocation; 2 3import org.testng.annotations.AfterGroups; 4import org.testng.annotations.BeforeGroups; 5 6 7/** 8 * This class/interface 9 */ 10public class GroupConfiguration { 11 @BeforeGroups(groups={"a"}) 12 public void beforeGroups() { 13 DummyTest.recordInvocation("beforeGroups", hashCode()); 14 } 15 16 @AfterGroups(groups={"a"}) 17 public void afterGroups() { 18 DummyTest.recordInvocation("afterGroups", hashCode()); 19 } 20} 21