@Test(expected = NullPointerException.class) public void aggregateChart_NULL_chart() { chartAggregator.aggregateChart(null, UiyValueType.NUMBER); }
public FlotChart aggregateChart(FlotChart chart, UiyValueType yValueType) { Preconditions.checkNotNull(chart); Preconditions.checkNotNull(yValueType); FlotChart aggregatedChart = new FlotChart(); int i = 0; for (FlotSeries flotSeries : chart.getSeriesList()) { FlotSeries aggregatedFlotSeries = flotSeriesAggregatorManager.aggregateFlotSeries(flotSeries, i++, yValueType); aggregatedChart.addSeries(aggregatedFlotSeries); } return aggregatedChart; }
FlotChartAggregator { public FlotChart aggregateChart(FlotChart chart, UiyValueType yValueType) { Preconditions.checkNotNull(chart); Preconditions.checkNotNull(yValueType); FlotChart aggregatedChart = new FlotChart(); int i = 0; for (FlotSeries flotSeries : chart.getSeriesList()) { FlotSeries aggregatedFlotSeries = flotSeriesAggregatorManager.aggregateFlotSeries(flotSeries, i++, yValueType); aggregatedChart.addSeries(aggregatedFlotSeries); } return aggregatedChart; } }
FlotChartAggregator { public FlotChart aggregateChart(FlotChart chart, UiyValueType yValueType) { Preconditions.checkNotNull(chart); Preconditions.checkNotNull(yValueType); FlotChart aggregatedChart = new FlotChart(); int i = 0; for (FlotSeries flotSeries : chart.getSeriesList()) { FlotSeries aggregatedFlotSeries = flotSeriesAggregatorManager.aggregateFlotSeries(flotSeries, i++, yValueType); aggregatedChart.addSeries(aggregatedFlotSeries); } return aggregatedChart; }  }
FlotChartAggregator { public FlotChart aggregateChart(FlotChart chart, UiyValueType yValueType) { Preconditions.checkNotNull(chart); Preconditions.checkNotNull(yValueType); FlotChart aggregatedChart = new FlotChart(); int i = 0; for (FlotSeries flotSeries : chart.getSeriesList()) { FlotSeries aggregatedFlotSeries = flotSeriesAggregatorManager.aggregateFlotSeries(flotSeries, i++, yValueType); aggregatedChart.addSeries(aggregatedFlotSeries); } return aggregatedChart; }  FlotChart aggregateChart(FlotChart chart, UiyValueType yValueType); @Autowired void setFlotSeriesAggregatorManager(FlotSeriesAggregatorManager flotSeriesAggregatorManager); }
FlotChartAggregator { public FlotChart aggregateChart(FlotChart chart, UiyValueType yValueType) { Preconditions.checkNotNull(chart); Preconditions.checkNotNull(yValueType); FlotChart aggregatedChart = new FlotChart(); int i = 0; for (FlotSeries flotSeries : chart.getSeriesList()) { FlotSeries aggregatedFlotSeries = flotSeriesAggregatorManager.aggregateFlotSeries(flotSeries, i++, yValueType); aggregatedChart.addSeries(aggregatedFlotSeries); } return aggregatedChart; }  FlotChart aggregateChart(FlotChart chart, UiyValueType yValueType); @Autowired void setFlotSeriesAggregatorManager(FlotSeriesAggregatorManager flotSeriesAggregatorManager);  }