CampusUtils { public static boolean addIfNotAlreadyProcessed(Set<Long> processedIdsSet, Long id) { if (processedIdsSet.contains(id)) { return false; } else { processedIdsSet.add(id); return true; } }  static boolean addIfNotAlreadyProcessed(Set<Long> processedIdsSet, Long id); final static String SEMICOLON_REPLACEMENT; final static String SEMICOLON; }
@Test public void addIfNotAlreadyProcessed_added() { assertTrue(CampusUtils.addIfNotAlreadyProcessed(processedIdsSet, new Long(100))); }
@Test public void addIfNotAlreadyProcessed_notAdded() { assertFalse(CampusUtils.addIfNotAlreadyProcessed(processedIdsSet, new Long(100))); }