1 package test.tmp; 2 3 import org.testng.ITestContext; 4 import org.testng.annotations.BeforeGroups; 5 6 public class BeforeGroupTest { 7 8 // Logger l = LoggerFactory.getLogger(this.getClass()); 9 10 @BeforeGroups(groups = { "NewUser" }, value = { "NewUser" }) 11 public void preNewUser(ITestContext itc) { 12 System.out.println("BEFOREGROUPS perfroming pre groups init"); 13 // m_inj = Guice.createInjector(new JUnitModule(), new RequestModule(), 14 // new GenericModule(), new SecurityModule()); 15 // itc.setAttribute("injector", m_inj); 16 } 17 }