@Test(expected = NullPointerException.class) public void convert_Null() { seriesConverter.convert(null); }
public ApiSeries convert(Series<?, ?> series) { Preconditions.checkNotNull(series); ApiSeries apiSeries = new ApiSeries(); for (Point<?,?> point : series.getPoints()) { apiSeries.addPoint(pointFormatter.formatPoint(point)); } return apiSeries; }
SeriesConverter { public ApiSeries convert(Series<?, ?> series) { Preconditions.checkNotNull(series); ApiSeries apiSeries = new ApiSeries(); for (Point<?,?> point : series.getPoints()) { apiSeries.addPoint(pointFormatter.formatPoint(point)); } return apiSeries; } }
SeriesConverter { public ApiSeries convert(Series<?, ?> series) { Preconditions.checkNotNull(series); ApiSeries apiSeries = new ApiSeries(); for (Point<?,?> point : series.getPoints()) { apiSeries.addPoint(pointFormatter.formatPoint(point)); } return apiSeries; }  }
SeriesConverter { public ApiSeries convert(Series<?, ?> series) { Preconditions.checkNotNull(series); ApiSeries apiSeries = new ApiSeries(); for (Point<?,?> point : series.getPoints()) { apiSeries.addPoint(pointFormatter.formatPoint(point)); } return apiSeries; }  ApiSeries convert(Series<?, ?> series); void setPointFormatter(PointFormatter pointFormatter); }
SeriesConverter { public ApiSeries convert(Series<?, ?> series) { Preconditions.checkNotNull(series); ApiSeries apiSeries = new ApiSeries(); for (Point<?,?> point : series.getPoints()) { apiSeries.addPoint(pointFormatter.formatPoint(point)); } return apiSeries; }  ApiSeries convert(Series<?, ?> series); void setPointFormatter(PointFormatter pointFormatter);  }