@Test(expected = NullPointerException.class) public void convert_Null() { chartConverter.convert(null); }
public FlotChart convert(Chart<?, Number> chart) { Preconditions.checkNotNull(chart); FlotChart flotChart = new FlotChart(); for (Series<?, Number> series : chart.getSeriesList()) { flotChart.addSeries(flotSeriesConverter.convert(series)); } flotChart.setXticks(flotXticksGenerator.generateXticks(chart)); return flotChart; }
ChartConverter { public FlotChart convert(Chart<?, Number> chart) { Preconditions.checkNotNull(chart); FlotChart flotChart = new FlotChart(); for (Series<?, Number> series : chart.getSeriesList()) { flotChart.addSeries(flotSeriesConverter.convert(series)); } flotChart.setXticks(flotXticksGenerator.generateXticks(chart)); return flotChart; } }
ChartConverter { public FlotChart convert(Chart<?, Number> chart) { Preconditions.checkNotNull(chart); FlotChart flotChart = new FlotChart(); for (Series<?, Number> series : chart.getSeriesList()) { flotChart.addSeries(flotSeriesConverter.convert(series)); } flotChart.setXticks(flotXticksGenerator.generateXticks(chart)); return flotChart; }  }
ChartConverter { public FlotChart convert(Chart<?, Number> chart) { Preconditions.checkNotNull(chart); FlotChart flotChart = new FlotChart(); for (Series<?, Number> series : chart.getSeriesList()) { flotChart.addSeries(flotSeriesConverter.convert(series)); } flotChart.setXticks(flotXticksGenerator.generateXticks(chart)); return flotChart; }  FlotChart convert(Chart<?, Number> chart); @Autowired void setSeriesConverter(SeriesConverter flotSeriesConverter); @Autowired void setFlotXticksGenerator(FlotXticksGenerator flotXticksGenerator); }
ChartConverter { public FlotChart convert(Chart<?, Number> chart) { Preconditions.checkNotNull(chart); FlotChart flotChart = new FlotChart(); for (Series<?, Number> series : chart.getSeriesList()) { flotChart.addSeries(flotSeriesConverter.convert(series)); } flotChart.setXticks(flotXticksGenerator.generateXticks(chart)); return flotChart; }  FlotChart convert(Chart<?, Number> chart); @Autowired void setSeriesConverter(SeriesConverter flotSeriesConverter); @Autowired void setFlotXticksGenerator(FlotXticksGenerator flotXticksGenerator);  }