@Test public void testGetMetricData_seven_days() { val windowLength = 7; val latestTimeInEpoch = earliestTimeInEpoch + windowLength * TimeConstantsUtil.SECONDS_PER_DAY; val expected = buildExpectedResults(earliestTimeInEpoch, windowLength); val actual = sourceUnderTest.getMetricData(earliestTimeInEpoch, latestTimeInEpoch, intervalLength, "metric_name"); assertEquals(expected, actual); assertEquals(noOfBinsInADay * windowLength, actual.size()); }
@Override public List<DataSourceResult> getMetricData(long earliestTime, long latestTime, int intervalLength, String target) { return buildDataSourceResult(earliestTime, latestTime, intervalLength, target); }
GraphiteSource implements DataSource { @Override public List<DataSourceResult> getMetricData(long earliestTime, long latestTime, int intervalLength, String target) { return buildDataSourceResult(earliestTime, latestTime, intervalLength, target); } }
GraphiteSource implements DataSource { @Override public List<DataSourceResult> getMetricData(long earliestTime, long latestTime, int intervalLength, String target) { return buildDataSourceResult(earliestTime, latestTime, intervalLength, target); }  }
GraphiteSource implements DataSource { @Override public List<DataSourceResult> getMetricData(long earliestTime, long latestTime, int intervalLength, String target) { return buildDataSourceResult(earliestTime, latestTime, intervalLength, target); }  @Override List<DataSourceResult> getMetricData(long earliestTime, long latestTime, int intervalLength, String target); }
GraphiteSource implements DataSource { @Override public List<DataSourceResult> getMetricData(long earliestTime, long latestTime, int intervalLength, String target) { return buildDataSourceResult(earliestTime, latestTime, intervalLength, target); }  @Override List<DataSourceResult> getMetricData(long earliestTime, long latestTime, int intervalLength, String target); static final Double MISSING_VALUE; }