@Test(expected = NullPointerException.class) public void generateCharts_NULL() { flotChartService.generateCharts(null); }
public AnalysisResult generateCharts(AnalysisForm analysisForm) { Preconditions.checkNotNull(analysisForm); Map<ChartCode, FlotChart> charts = Maps.newHashMap(); generateAllPossibleCharts(analysisForm, charts); generateAggregatedMainChart(analysisForm, charts); return new AnalysisResult(analysisForm, charts); }
FlotChartService { public AnalysisResult generateCharts(AnalysisForm analysisForm) { Preconditions.checkNotNull(analysisForm); Map<ChartCode, FlotChart> charts = Maps.newHashMap(); generateAllPossibleCharts(analysisForm, charts); generateAggregatedMainChart(analysisForm, charts); return new AnalysisResult(analysisForm, charts); } }
FlotChartService { public AnalysisResult generateCharts(AnalysisForm analysisForm) { Preconditions.checkNotNull(analysisForm); Map<ChartCode, FlotChart> charts = Maps.newHashMap(); generateAllPossibleCharts(analysisForm, charts); generateAggregatedMainChart(analysisForm, charts); return new AnalysisResult(analysisForm, charts); }  }
FlotChartService { public AnalysisResult generateCharts(AnalysisForm analysisForm) { Preconditions.checkNotNull(analysisForm); Map<ChartCode, FlotChart> charts = Maps.newHashMap(); generateAllPossibleCharts(analysisForm, charts); generateAggregatedMainChart(analysisForm, charts); return new AnalysisResult(analysisForm, charts); }  AnalysisResult generateCharts(AnalysisForm analysisForm); @Autowired void setFlotChartAggregator(FlotChartAggregator flotChartAggregator); @Autowired void setFlotChartGenerator(FlotChartGenerator flotChartGenerator); }
FlotChartService { public AnalysisResult generateCharts(AnalysisForm analysisForm) { Preconditions.checkNotNull(analysisForm); Map<ChartCode, FlotChart> charts = Maps.newHashMap(); generateAllPossibleCharts(analysisForm, charts); generateAggregatedMainChart(analysisForm, charts); return new AnalysisResult(analysisForm, charts); }  AnalysisResult generateCharts(AnalysisForm analysisForm); @Autowired void setFlotChartAggregator(FlotChartAggregator flotChartAggregator); @Autowired void setFlotChartGenerator(FlotChartGenerator flotChartGenerator);  }