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