@Test(expected = NullPointerException.class) public void convert_Null() { chartConverter.convert(null); }
public ApiChart convert(Chart<?, Number> chart) { Preconditions.checkNotNull(chart); ApiChart uiChart = new ApiChart(); for (Series<?, ?> series : chart.getSeriesList()) { uiChart.addSeries(seriesConverter.convert(series)); } return uiChart; }
ChartConverter { public ApiChart convert(Chart<?, Number> chart) { Preconditions.checkNotNull(chart); ApiChart uiChart = new ApiChart(); for (Series<?, ?> series : chart.getSeriesList()) { uiChart.addSeries(seriesConverter.convert(series)); } return uiChart; } }
ChartConverter { public ApiChart convert(Chart<?, Number> chart) { Preconditions.checkNotNull(chart); ApiChart uiChart = new ApiChart(); for (Series<?, ?> series : chart.getSeriesList()) { uiChart.addSeries(seriesConverter.convert(series)); } return uiChart; }  }
ChartConverter { public ApiChart convert(Chart<?, Number> chart) { Preconditions.checkNotNull(chart); ApiChart uiChart = new ApiChart(); for (Series<?, ?> series : chart.getSeriesList()) { uiChart.addSeries(seriesConverter.convert(series)); } return uiChart; }  ApiChart convert(Chart<?, Number> chart); void setSeriesConverter(SeriesConverter seriesConverter); }
ChartConverter { public ApiChart convert(Chart<?, Number> chart) { Preconditions.checkNotNull(chart); ApiChart uiChart = new ApiChart(); for (Series<?, ?> series : chart.getSeriesList()) { uiChart.addSeries(seriesConverter.convert(series)); } return uiChart; }  ApiChart convert(Chart<?, Number> chart); void setSeriesConverter(SeriesConverter seriesConverter);  }