@Test public void canGenerateChart_FALSE() { when(chartGenerator.canGenerateChart(chartCode, analysisForm)).thenReturn(false); assertFalse(flotChartGenerator.canGenerateChart(chartCode, analysisForm)); }
public boolean canGenerateChart(ChartCode chartCode, AnalysisForm analysisForm) { return chartGenerator.canGenerateChart(chartCode, analysisForm); }
FlotChartGenerator { public boolean canGenerateChart(ChartCode chartCode, AnalysisForm analysisForm) { return chartGenerator.canGenerateChart(chartCode, analysisForm); } }
FlotChartGenerator { public boolean canGenerateChart(ChartCode chartCode, AnalysisForm analysisForm) { return chartGenerator.canGenerateChart(chartCode, analysisForm); }  }
FlotChartGenerator { public boolean canGenerateChart(ChartCode chartCode, AnalysisForm analysisForm) { return chartGenerator.canGenerateChart(chartCode, analysisForm); }  FlotChart generateFlotChart(ChartCode chartCode, AnalysisForm analysisForm); boolean canGenerateChart(ChartCode chartCode, AnalysisForm analysisForm); @Autowired void setChartGenerator(ChartGenerator chartGenerator); @Autowired void setChartConverter(ChartConverter chartConverter); }
FlotChartGenerator { public boolean canGenerateChart(ChartCode chartCode, AnalysisForm analysisForm) { return chartGenerator.canGenerateChart(chartCode, analysisForm); }  FlotChart generateFlotChart(ChartCode chartCode, AnalysisForm analysisForm); boolean canGenerateChart(ChartCode chartCode, AnalysisForm analysisForm); @Autowired void setChartGenerator(ChartGenerator chartGenerator); @Autowired void setChartConverter(ChartConverter chartConverter);  }