Search in sources :

Example 11 with SeriesDefinition

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
    }
}
Also used : SeriesDefinition(org.apache.qpid.disttest.charting.definition.SeriesDefinition)

Aggregations

SeriesDefinition (org.apache.qpid.disttest.charting.definition.SeriesDefinition)11 SeriesRow (org.apache.qpid.disttest.charting.seriesbuilder.SeriesRow)4 DatasetHolder (org.apache.qpid.disttest.charting.seriesbuilder.DatasetHolder)3 BasicStroke (java.awt.BasicStroke)1 Shape (java.awt.Shape)1 ArrayList (java.util.ArrayList)1 List (java.util.List)1 DefaultCategoryDataset (org.jfree.data.category.DefaultCategoryDataset)1 DefaultStatisticalCategoryDataset (org.jfree.data.statistics.DefaultStatisticalCategoryDataset)1 TimeSeries (org.jfree.data.time.TimeSeries)1 TimeSeriesCollection (org.jfree.data.time.TimeSeriesCollection)1 TimeSeriesDataItem (org.jfree.data.time.TimeSeriesDataItem)1 DefaultXYDataset (org.jfree.data.xy.DefaultXYDataset)1