@Override public List<Section> findSectionsByTestRun(TestRun testRun) { final List<Section> results = new ArrayList<Section>(); for (Section section : cache.values()) { if (testRun.equals(section.getTestRun())) { results.add(section); } } return results; }
@Override public long countByTestRun(TestRun testRun) { log.debug("SectionServer: countByTestRun()"); long count = 0; for (Section section : cache.values()) { if (testRun.equals(section.getTestRun())) { count++; } } return count; }