void (Set<String> allNames, Test test, String currentSuiteName) { if (test instanceof TestSuite) { for (int idx = 0; idx < ((TestSuite)test).testCount(); idx++) { Test childTest = ((TestSuite)test).testAt(idx); final String testName = childTest.toString(); if (!currentSuiteName.equals(testName)) { allNames.remove(testName); } skipSubtests(allNames, childTest, currentSuiteName); } } }