@Test public void testRemoveTrackersForCore() { registerTrackers(CORE3_NAME); boolean thereWereTrackers = reg.removeTrackersForCore(CORE3_NAME); assertTrue(thereWereTrackers); assertTrue(reg.getTrackersForCore(CORE3_NAME).isEmpty()); thereWereTrackers = reg.removeTrackersForCore(NOT_A_CORE_NAME); assertFalse(thereWereTrackers); }
public boolean removeTrackersForCore(String coreName) { return this.trackers.remove(coreName) != null; }
TrackerRegistry { public boolean removeTrackersForCore(String coreName) { return this.trackers.remove(coreName) != null; } }
TrackerRegistry { public boolean removeTrackersForCore(String coreName) { return this.trackers.remove(coreName) != null; }  }
TrackerRegistry { public boolean removeTrackersForCore(String coreName) { return this.trackers.remove(coreName) != null; }  Set<String> getCoreNames(); Collection<Tracker> getTrackersForCore(String coreName); boolean hasTrackersForCore(String coreName); @SuppressWarnings("unchecked") T getTrackerForCore(String coreName, Class<T> trackerClass); synchronized void register(String coreName, Tracker tracker); boolean removeTrackersForCore(String coreName); ModelTracker getModelTracker(); void setModelTracker(ModelTracker modelTracker); }
TrackerRegistry { public boolean removeTrackersForCore(String coreName) { return this.trackers.remove(coreName) != null; }  Set<String> getCoreNames(); Collection<Tracker> getTrackersForCore(String coreName); boolean hasTrackersForCore(String coreName); @SuppressWarnings("unchecked") T getTrackerForCore(String coreName, Class<T> trackerClass); synchronized void register(String coreName, Tracker tracker); boolean removeTrackersForCore(String coreName); ModelTracker getModelTracker(); void setModelTracker(ModelTracker modelTracker);  }