void (Test test) { if (!(test instanceof TestCase)) { doAddTest(test); } else { String name = ((TestCase)test).getName(); if ("warning".equals(name)) return; // Mute TestSuite's "no tests found" warning if (!isIncludingPerformanceTestsRun() && (isPerformanceTestsRun() ^ isPerformanceTest(name, testCaseClass.getSimpleName()))) { return; } Method method = findTestMethod((TestCase)test); if (method != null && method.getAnnotation(IgnoreJUnit3.class) != null) { return; } Bombed methodBomb = method == null ? null : method.getAnnotation(Bombed.class); if (methodBomb == null) { doAddTest(test); } else if (TestFrameworkUtil.bombExplodes(methodBomb)) { doAddTest(new ExplodedBomb(method.getDeclaringClass().getName() + "." + method.getName(), methodBomb)); } } }