@Test(expected = NullPointerException.class) public void convertToSeries_NULL_XSETTINGS() { seriesResultsConverter.convert(new QueryResponse(), null); }
public Series<Object, Integer> convert(QueryResponse response, XSettings xsettings) { Preconditions.checkNotNull(response); Preconditions.checkNotNull(xsettings); List<FacetCount> facetCounts = xFieldFacetExtractor.extractFacetCounts(response, xsettings.getField()); return facetToSeriesConverter.convert(facetCounts, xsettings); }
SeriesResultConverter { public Series<Object, Integer> convert(QueryResponse response, XSettings xsettings) { Preconditions.checkNotNull(response); Preconditions.checkNotNull(xsettings); List<FacetCount> facetCounts = xFieldFacetExtractor.extractFacetCounts(response, xsettings.getField()); return facetToSeriesConverter.convert(facetCounts, xsettings); } }
SeriesResultConverter { public Series<Object, Integer> convert(QueryResponse response, XSettings xsettings) { Preconditions.checkNotNull(response); Preconditions.checkNotNull(xsettings); List<FacetCount> facetCounts = xFieldFacetExtractor.extractFacetCounts(response, xsettings.getField()); return facetToSeriesConverter.convert(facetCounts, xsettings); }  }
SeriesResultConverter { public Series<Object, Integer> convert(QueryResponse response, XSettings xsettings) { Preconditions.checkNotNull(response); Preconditions.checkNotNull(xsettings); List<FacetCount> facetCounts = xFieldFacetExtractor.extractFacetCounts(response, xsettings.getField()); return facetToSeriesConverter.convert(facetCounts, xsettings); }  Series<Object, Integer> convert(QueryResponse response, XSettings xsettings); @Autowired void setxFieldFacetExtractor(XFieldFacetExtractor xFieldFacetExtractor); @Autowired void setFacetToSeriesConverter(FacetToSeriesConverter facetToSeriesConverter); }
SeriesResultConverter { public Series<Object, Integer> convert(QueryResponse response, XSettings xsettings) { Preconditions.checkNotNull(response); Preconditions.checkNotNull(xsettings); List<FacetCount> facetCounts = xFieldFacetExtractor.extractFacetCounts(response, xsettings.getField()); return facetToSeriesConverter.convert(facetCounts, xsettings); }  Series<Object, Integer> convert(QueryResponse response, XSettings xsettings); @Autowired void setxFieldFacetExtractor(XFieldFacetExtractor xFieldFacetExtractor); @Autowired void setFacetToSeriesConverter(FacetToSeriesConverter facetToSeriesConverter);  }