@Test(expected = NullPointerException.class) public void generateSeries_NULL_CRITERIA() { seriesGenerator.generateSeries(null, new XSettings()); }
public Series<Object, Integer> generateSeries(JudgmentSeriesCriteria judgmentSeriesCriteria, XSettings xsettings) { Preconditions.checkNotNull(judgmentSeriesCriteria); Preconditions.checkNotNull(xsettings); JudgmentCriteria judgmentCriteria = judgmentSeriesCriteriaConverter.convert(judgmentSeriesCriteria); SolrQuery query = judgmentSearchQueryFactory.createQuery(judgmentCriteria, new Paging(0, 0)); xSettingsToQueryApplier.applyXSettingsToQuery(query, xsettings); QueryResponse response = solrQueryExecutor.executeQuery(query); Series<Object, Integer> series = seriesResultConverter.convert(response, xsettings); return series; }
SeriesGenerator { public Series<Object, Integer> generateSeries(JudgmentSeriesCriteria judgmentSeriesCriteria, XSettings xsettings) { Preconditions.checkNotNull(judgmentSeriesCriteria); Preconditions.checkNotNull(xsettings); JudgmentCriteria judgmentCriteria = judgmentSeriesCriteriaConverter.convert(judgmentSeriesCriteria); SolrQuery query = judgmentSearchQueryFactory.createQuery(judgmentCriteria, new Paging(0, 0)); xSettingsToQueryApplier.applyXSettingsToQuery(query, xsettings); QueryResponse response = solrQueryExecutor.executeQuery(query); Series<Object, Integer> series = seriesResultConverter.convert(response, xsettings); return series; } }
SeriesGenerator { public Series<Object, Integer> generateSeries(JudgmentSeriesCriteria judgmentSeriesCriteria, XSettings xsettings) { Preconditions.checkNotNull(judgmentSeriesCriteria); Preconditions.checkNotNull(xsettings); JudgmentCriteria judgmentCriteria = judgmentSeriesCriteriaConverter.convert(judgmentSeriesCriteria); SolrQuery query = judgmentSearchQueryFactory.createQuery(judgmentCriteria, new Paging(0, 0)); xSettingsToQueryApplier.applyXSettingsToQuery(query, xsettings); QueryResponse response = solrQueryExecutor.executeQuery(query); Series<Object, Integer> series = seriesResultConverter.convert(response, xsettings); return series; }  }
SeriesGenerator { public Series<Object, Integer> generateSeries(JudgmentSeriesCriteria judgmentSeriesCriteria, XSettings xsettings) { Preconditions.checkNotNull(judgmentSeriesCriteria); Preconditions.checkNotNull(xsettings); JudgmentCriteria judgmentCriteria = judgmentSeriesCriteriaConverter.convert(judgmentSeriesCriteria); SolrQuery query = judgmentSearchQueryFactory.createQuery(judgmentCriteria, new Paging(0, 0)); xSettingsToQueryApplier.applyXSettingsToQuery(query, xsettings); QueryResponse response = solrQueryExecutor.executeQuery(query); Series<Object, Integer> series = seriesResultConverter.convert(response, xsettings); return series; }  Series<Object, Integer> generateSeries(JudgmentSeriesCriteria judgmentSeriesCriteria, XSettings xsettings); @Autowired void setJudgmentSeriesCriteriaConverter(JudgmentSeriesCriteriaConverter judgmentSeriesCriteriaConverter); @Autowired void setJudgmentSearchQueryFactory(SearchQueryFactory<JudgmentCriteria> judgmentSearchQueryFactory); @Autowired void setxSettingsToQueryApplier(XSettingsToQueryApplier xSettingsToQueryApplier); @Autowired void setSeriesResultConverter(SeriesResultConverter seriesResultsConverter); @Autowired void setSolrQueryExecutor(SolrQueryExecutor solrQueryExecutor); }
SeriesGenerator { public Series<Object, Integer> generateSeries(JudgmentSeriesCriteria judgmentSeriesCriteria, XSettings xsettings) { Preconditions.checkNotNull(judgmentSeriesCriteria); Preconditions.checkNotNull(xsettings); JudgmentCriteria judgmentCriteria = judgmentSeriesCriteriaConverter.convert(judgmentSeriesCriteria); SolrQuery query = judgmentSearchQueryFactory.createQuery(judgmentCriteria, new Paging(0, 0)); xSettingsToQueryApplier.applyXSettingsToQuery(query, xsettings); QueryResponse response = solrQueryExecutor.executeQuery(query); Series<Object, Integer> series = seriesResultConverter.convert(response, xsettings); return series; }  Series<Object, Integer> generateSeries(JudgmentSeriesCriteria judgmentSeriesCriteria, XSettings xsettings); @Autowired void setJudgmentSeriesCriteriaConverter(JudgmentSeriesCriteriaConverter judgmentSeriesCriteriaConverter); @Autowired void setJudgmentSearchQueryFactory(SearchQueryFactory<JudgmentCriteria> judgmentSearchQueryFactory); @Autowired void setxSettingsToQueryApplier(XSettingsToQueryApplier xSettingsToQueryApplier); @Autowired void setSeriesResultConverter(SeriesResultConverter seriesResultsConverter); @Autowired void setSolrQueryExecutor(SolrQueryExecutor solrQueryExecutor);  }