use of org.apache.qpid.disttest.charting.definition.SeriesDefinition in project qpid-broker-j by apache.
the class JdbcUrlGeneratorTest method testGetJdbcUrlThrowsExceptionWithoutAProvidedUrlOrSeriesDirectory.
public void testGetJdbcUrlThrowsExceptionWithoutAProvidedUrlOrSeriesDirectory() {
JdbcUrlGenerator jdbcUrlGenerator = new JdbcUrlGenerator(null);
SeriesDefinition seriesDefinition = mock(SeriesDefinition.class);
when(seriesDefinition.getSeriesDirectory()).thenReturn(null);
try {
jdbcUrlGenerator.getJdbcUrl(seriesDefinition);
fail("Expected exception not thrown");
} catch (IllegalArgumentException e) {
// pass
}
}
Aggregations