@Test(expected = IllegalArgumentException.class) public void generateXSettings_CannotGenerate() { xsettingsGenerator.generateXSettings(new JudgmentGlobalFilter()); }
@Override public XSettings generateXSettings(JudgmentGlobalFilter judgmentGlobalFilter) { Preconditions.checkArgument(canGenerateXSettings(judgmentGlobalFilter)); XSettings xsettings = new XSettings(); xsettings.setRange(monthYearRangeConverter.convert(judgmentGlobalFilter.getJudgmentDateRange())); xsettings.setField(XField.JUDGMENT_DATE); return xsettings; }
MainChartXSettingsGenerator implements XSettingsGenerator { @Override public XSettings generateXSettings(JudgmentGlobalFilter judgmentGlobalFilter) { Preconditions.checkArgument(canGenerateXSettings(judgmentGlobalFilter)); XSettings xsettings = new XSettings(); xsettings.setRange(monthYearRangeConverter.convert(judgmentGlobalFilter.getJudgmentDateRange())); xsettings.setField(XField.JUDGMENT_DATE); return xsettings; } }
MainChartXSettingsGenerator implements XSettingsGenerator { @Override public XSettings generateXSettings(JudgmentGlobalFilter judgmentGlobalFilter) { Preconditions.checkArgument(canGenerateXSettings(judgmentGlobalFilter)); XSettings xsettings = new XSettings(); xsettings.setRange(monthYearRangeConverter.convert(judgmentGlobalFilter.getJudgmentDateRange())); xsettings.setField(XField.JUDGMENT_DATE); return xsettings; }  }
MainChartXSettingsGenerator implements XSettingsGenerator { @Override public XSettings generateXSettings(JudgmentGlobalFilter judgmentGlobalFilter) { Preconditions.checkArgument(canGenerateXSettings(judgmentGlobalFilter)); XSettings xsettings = new XSettings(); xsettings.setRange(monthYearRangeConverter.convert(judgmentGlobalFilter.getJudgmentDateRange())); xsettings.setField(XField.JUDGMENT_DATE); return xsettings; }  @Override XSettings generateXSettings(JudgmentGlobalFilter judgmentGlobalFilter); @Override boolean canGenerateXSettings(JudgmentGlobalFilter judgmentGlobalFilter); @Override boolean handles(ChartCode chartCode); @Autowired void setMonthYearRangeConverter(MonthYearRangeConverter monthYearRangeConverter); }
MainChartXSettingsGenerator implements XSettingsGenerator { @Override public XSettings generateXSettings(JudgmentGlobalFilter judgmentGlobalFilter) { Preconditions.checkArgument(canGenerateXSettings(judgmentGlobalFilter)); XSettings xsettings = new XSettings(); xsettings.setRange(monthYearRangeConverter.convert(judgmentGlobalFilter.getJudgmentDateRange())); xsettings.setField(XField.JUDGMENT_DATE); return xsettings; }  @Override XSettings generateXSettings(JudgmentGlobalFilter judgmentGlobalFilter); @Override boolean canGenerateXSettings(JudgmentGlobalFilter judgmentGlobalFilter); @Override boolean handles(ChartCode chartCode); @Autowired void setMonthYearRangeConverter(MonthYearRangeConverter monthYearRangeConverter);  }