@AfterGroups(groups = "A") public void afterGroupsMethod() { } }
final String[] groups= bs.value().length > 0 ? bs.value() : bs.groups(); result = createConfigurationTag(cls, a, false, false, false, false, false, false, bs.alwaysRun(), bs.dependsOnGroups(), bs.dependsOnMethods(), bs.description(), bs.enabled(), bs.groups(), bs.inheritGroups(), null, false, false, bs.timeOut());
} else if (annotationClass == IAfterGroups.class) { AfterGroups bs = (AfterGroups) a; final String[] groups = bs.value().length > 0 ? bs.value() : bs.groups(); result = createConfigurationTag( false, false, bs.alwaysRun(), bs.dependsOnGroups(), bs.dependsOnMethods(), bs.description(), bs.enabled(), bs.groups(), bs.inheritGroups(), false, false, bs.timeOut(), new String[0]); } else if (annotationClass == IBeforeClass.class) {
@AfterGroups(groups = "A") public void afterGroupsMethod() { } }
@AfterGroups(groups = "123", alwaysRun = true) public void after() { }
@AfterGroups(groups = "group1") public void afterGroup() {} }
@AfterGroups(groups = "test") public void afterGroups(int foo) {} }
@AfterGroups(value = "regression") public void afterGroups() {} }
@AfterGroups(groups = {"exTests"}) public void clear() {} }
@AfterGroups("1") public void afterGroups() {}
@AfterGroups({"A"}) private void cleanUpA() { m_log.add("3"); }
@AfterGroups(value= "a", groups= "a") public void tearDown() { // System.out.println("class is " + getClass().getName() + " After group "); Assert.assertTrue(s_childAWasRun, "Child A was not run"); Assert.assertTrue(s_childBWasRun, "Child B was not run"); s_childAWasRun = false; s_childBWasRun = false; }
@AfterGroups("SystemTimeTests") public void resetSystemCurrentTime() { DateTimeUtils.setCurrentMillisSystem(); } }
@AfterGroups( groups = {"twice"}, value = {"twice"}) public void c() { m_list.add(3); ppp("AFTER()"); }
@AfterGroups({"cg5-1", "cg5-2"}) public void after() { log("after"); m_afterCount++; Assert.assertTrue(m_run1 || m_run2); if (m_afterCount == 0) { Assert.assertFalse(m_after); } m_after = true; }
@AfterGroups( groups = {"twice"}, value = {"twice"}) public void c() { m_list.add(3); ppp("AFTER()"); }
@AfterGroups("cg6-1") public void after() { log("after"); Assert.assertTrue(m_run1); Assert.assertTrue(m_run2); Assert.assertFalse(m_after); m_after = true; }
@AfterGroups("cg4-1") public void after1() { log("after1"); Assert.assertTrue(m_run); Assert.assertFalse(m_after); m_after = true; }
@AfterGroups(groups = {"a"}) public void afterGroups() { DummyTest.recordInvocation("afterGroups", hashCode()); } }
@AfterGroups( groups = {"twice"}, value = {"twice"}) public void c() { m_list.add(3); ppp("AFTER()"); }