TestResultPresentation () { List allTests = Filter.LEAF.select(myRoot.getAllTests()); final List<AbstractTestProxy> failed = Filter.DEFECTIVE_LEAF.select(allTests); final List<AbstractTestProxy> notStarted = Filter.NOT_PASSED.select(allTests); notStarted.removeAll(failed); final List ignored = Filter.IGNORED.select(allTests); notStarted.removeAll(ignored); failed.removeAll(ignored); int failedCount = failed.size(); int notStartedCount = notStarted.size() + ignored.size(); int passedCount = allTests.size() - failedCount - notStartedCount; return getPresentation(failedCount, passedCount, notStartedCount, ignored.size()); }