MistletoeCore { public boolean hasAssociatedFailures(Description d) { List<Failure> failureList = result.getFailures(); for (Failure f : failureList) { if (f.getDescription().equals(d)) { return true; } if (description.isTest()) { return false; } List<Description> descriptionList = d.getChildren(); for (Description child : descriptionList) { if (hasAssociatedFailures(child)) { return true; } } } return false; } MistletoeCore(Class<?> targetClass);  MistletoeCore(String targetClassStr); Description getDescription(); Result getResult(); StopWatchRunListener getStopWatchRunListener(); TestReport run(); boolean hasAssociatedFailures(Description d);  }
@Test public void hasAssociatedFailures() { MistletoeCore mCore = new MistletoeCore(MyCollection.class); mCore.run(); Description description = mCore.getDescription(); assertTrue(mCore.hasAssociatedFailures(description)); Map<Description, Boolean> map = new HashMap<Description, Boolean>(); doCheck(map, mCore, description); for(Description d: map.keySet()) { System.out.println(d +", "+map.get(d)); } }