use of ddf.metrics.reporting.internal.MetricsGraphException in project ddf by codice.
the class RrdMetricsRetrieverTest method testInvalidDataSourceType.
@Test
public // (expected = MetricsGraphException.class)
void testInvalidDataSourceType() throws Exception {
String rrdFilename = TEST_DIR + "dummy_Absolute" + RRD_FILE_EXTENSION;
long endTime = new RrdFileBuilder().rrdFileName(rrdFilename).numSamples(4).dsType(DsType.ABSOLUTE).build();
MetricsRetriever metricsRetriever = new RrdMetricsRetriever();
try {
metricsRetriever.createGraph("Dummy", rrdFilename, START_TIME, endTime);
fail();
} catch (MetricsGraphException e) {
}
}
Aggregations