@Test public void put() { detectors = Collections.singletonList(new Detector("", UUID.randomUUID())); detectorMapperCache.put("key", detectors); detectorIds = CacheUtil.getDetectors(detectors); verify(cache, times(1)).put("key", detectorIds); }
public void put(String key, List<Detector> detectors) { String detectorsString = CacheUtil.getDetectors(detectors); log.info("Updating cache with {} - {}", key, detectorsString); cache.put(key, detectorsString); }
DetectorMapperCache { public void put(String key, List<Detector> detectors) { String detectorsString = CacheUtil.getDetectors(detectors); log.info("Updating cache with {} - {}", key, detectorsString); cache.put(key, detectorsString); } }
DetectorMapperCache { public void put(String key, List<Detector> detectors) { String detectorsString = CacheUtil.getDetectors(detectors); log.info("Updating cache with {} - {}", key, detectorsString); cache.put(key, detectorsString); } DetectorMapperCache(MetricRegistry metricRegistry); }
DetectorMapperCache { public void put(String key, List<Detector> detectors) { String detectorsString = CacheUtil.getDetectors(detectors); log.info("Updating cache with {} - {}", key, detectorsString); cache.put(key, detectorsString); } DetectorMapperCache(MetricRegistry metricRegistry); List<Detector> get(String key); void put(String key, List<Detector> detectors); void removeDisabledDetectorMappings(List<DetectorMapping> disabledMappings); void invalidateMetricsWithOldDetectorMappings(List<DetectorMapping> detectorMappings); }
DetectorMapperCache { public void put(String key, List<Detector> detectors) { String detectorsString = CacheUtil.getDetectors(detectors); log.info("Updating cache with {} - {}", key, detectorsString); cache.put(key, detectorsString); } DetectorMapperCache(MetricRegistry metricRegistry); List<Detector> get(String key); void put(String key, List<Detector> detectors); void removeDisabledDetectorMappings(List<DetectorMapping> disabledMappings); void invalidateMetricsWithOldDetectorMappings(List<DetectorMapping> detectorMappings);  }