@Test(expected = IllegalArgumentException.class) public void testFindUpdatedDetectorMappingsFail() { sourceUnderTest.findUpdatedDetectorMappings(-1); }
@Override public List<DetectorMapping> findUpdatedDetectorMappings(long timePeriod) { isTrue(timePeriod > 0, "Required: timePeriod > 0"); return client.findUpdatedDetectorMappings(timePeriod); }
DefaultDetectorSource implements DetectorSource { @Override public List<DetectorMapping> findUpdatedDetectorMappings(long timePeriod) { isTrue(timePeriod > 0, "Required: timePeriod > 0"); return client.findUpdatedDetectorMappings(timePeriod); } }
DefaultDetectorSource implements DetectorSource { @Override public List<DetectorMapping> findUpdatedDetectorMappings(long timePeriod) { isTrue(timePeriod > 0, "Required: timePeriod > 0"); return client.findUpdatedDetectorMappings(timePeriod); }  }
DefaultDetectorSource implements DetectorSource { @Override public List<DetectorMapping> findUpdatedDetectorMappings(long timePeriod) { isTrue(timePeriod > 0, "Required: timePeriod > 0"); return client.findUpdatedDetectorMappings(timePeriod); }  @Override DetectorMatchResponse findDetectorMappings(List<Map<String, String>> metricTags); @Override List<DetectorMapping> findUpdatedDetectorMappings(long timePeriod); @Override DetectorMapping findDetectorMappingByUuid(UUID uuid); @Override DetectorContainer findDetector(UUID uuid); @Override List<UUID> findUpdatedDetectors(long timePeriod); @Override void updatedDetectorLastUsed(UUID uuid); }
DefaultDetectorSource implements DetectorSource { @Override public List<DetectorMapping> findUpdatedDetectorMappings(long timePeriod) { isTrue(timePeriod > 0, "Required: timePeriod > 0"); return client.findUpdatedDetectorMappings(timePeriod); }  @Override DetectorMatchResponse findDetectorMappings(List<Map<String, String>> metricTags); @Override List<DetectorMapping> findUpdatedDetectorMappings(long timePeriod); @Override DetectorMapping findDetectorMappingByUuid(UUID uuid); @Override DetectorContainer findDetector(UUID uuid); @Override List<UUID> findUpdatedDetectors(long timePeriod); @Override void updatedDetectorLastUsed(UUID uuid);  }