@Test(expected = NullPointerException.class) public void convert_Null() { seriesConverter.convert(null); }
public FlotSeries convert(Series<?, Number> series) { Preconditions.checkNotNull(series); FlotSeries flotSeries = new FlotSeries(); for (int i=0; i<series.getPoints().size(); i++) { Point<?, Number> point = series.getPoints().get(i); flotSeries.addPoint(i, point.getY()); } return flotSeries; }
SeriesConverter { public FlotSeries convert(Series<?, Number> series) { Preconditions.checkNotNull(series); FlotSeries flotSeries = new FlotSeries(); for (int i=0; i<series.getPoints().size(); i++) { Point<?, Number> point = series.getPoints().get(i); flotSeries.addPoint(i, point.getY()); } return flotSeries; } }
SeriesConverter { public FlotSeries convert(Series<?, Number> series) { Preconditions.checkNotNull(series); FlotSeries flotSeries = new FlotSeries(); for (int i=0; i<series.getPoints().size(); i++) { Point<?, Number> point = series.getPoints().get(i); flotSeries.addPoint(i, point.getY()); } return flotSeries; }  }
SeriesConverter { public FlotSeries convert(Series<?, Number> series) { Preconditions.checkNotNull(series); FlotSeries flotSeries = new FlotSeries(); for (int i=0; i<series.getPoints().size(); i++) { Point<?, Number> point = series.getPoints().get(i); flotSeries.addPoint(i, point.getY()); } return flotSeries; }  FlotSeries convert(Series<?, Number> series); }
SeriesConverter { public FlotSeries convert(Series<?, Number> series) { Preconditions.checkNotNull(series); FlotSeries flotSeries = new FlotSeries(); for (int i=0; i<series.getPoints().size(); i++) { Point<?, Number> point = series.getPoints().get(i); flotSeries.addPoint(i, point.getY()); } return flotSeries; }  FlotSeries convert(Series<?, Number> series);  }