@Test public void canGenerateXSettings_FALSE() { JudgmentGlobalFilter globalFilter = new JudgmentGlobalFilter(); assertFalse(xsettingsGenerator.canGenerateXSettings(globalFilter)); }
@Override public boolean canGenerateXSettings(JudgmentGlobalFilter judgmentGlobalFilter) { Preconditions.checkNotNull(judgmentGlobalFilter); return judgmentGlobalFilter.getJudgmentDateRange() != null; }
MainChartXSettingsGenerator implements XSettingsGenerator { @Override public boolean canGenerateXSettings(JudgmentGlobalFilter judgmentGlobalFilter) { Preconditions.checkNotNull(judgmentGlobalFilter); return judgmentGlobalFilter.getJudgmentDateRange() != null; } }
MainChartXSettingsGenerator implements XSettingsGenerator { @Override public boolean canGenerateXSettings(JudgmentGlobalFilter judgmentGlobalFilter) { Preconditions.checkNotNull(judgmentGlobalFilter); return judgmentGlobalFilter.getJudgmentDateRange() != null; }  }
MainChartXSettingsGenerator implements XSettingsGenerator { @Override public boolean canGenerateXSettings(JudgmentGlobalFilter judgmentGlobalFilter) { Preconditions.checkNotNull(judgmentGlobalFilter); return judgmentGlobalFilter.getJudgmentDateRange() != null; }  @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 boolean canGenerateXSettings(JudgmentGlobalFilter judgmentGlobalFilter) { Preconditions.checkNotNull(judgmentGlobalFilter); return judgmentGlobalFilter.getJudgmentDateRange() != null; }  @Override XSettings generateXSettings(JudgmentGlobalFilter judgmentGlobalFilter); @Override boolean canGenerateXSettings(JudgmentGlobalFilter judgmentGlobalFilter); @Override boolean handles(ChartCode chartCode); @Autowired void setMonthYearRangeConverter(MonthYearRangeConverter monthYearRangeConverter);  }