@Test(expected = NullPointerException.class) public void convert_NULL_XSETTINGS() { List<FacetCount> facetCounts = Lists.newArrayList(); facetToSeriesConverter.convert(facetCounts, null); }
public Series<Object, Integer> convert(List<FacetCount> facetCounts, XSettings xsettings) { Preconditions.checkNotNull(facetCounts); Preconditions.checkNotNull(xsettings); FacetValueConverter xValueConverter = facetValueConverterManager.getConverter(xsettings); Series<Object, Integer> series = new Series<Object, Integer>(); for (FacetCount count : facetCounts) { series.addPoint(xValueConverter.convert(count.getValue(), xsettings), count.getCount()); } return series; }
FacetToSeriesConverter { public Series<Object, Integer> convert(List<FacetCount> facetCounts, XSettings xsettings) { Preconditions.checkNotNull(facetCounts); Preconditions.checkNotNull(xsettings); FacetValueConverter xValueConverter = facetValueConverterManager.getConverter(xsettings); Series<Object, Integer> series = new Series<Object, Integer>(); for (FacetCount count : facetCounts) { series.addPoint(xValueConverter.convert(count.getValue(), xsettings), count.getCount()); } return series; } }
FacetToSeriesConverter { public Series<Object, Integer> convert(List<FacetCount> facetCounts, XSettings xsettings) { Preconditions.checkNotNull(facetCounts); Preconditions.checkNotNull(xsettings); FacetValueConverter xValueConverter = facetValueConverterManager.getConverter(xsettings); Series<Object, Integer> series = new Series<Object, Integer>(); for (FacetCount count : facetCounts) { series.addPoint(xValueConverter.convert(count.getValue(), xsettings), count.getCount()); } return series; }  }
FacetToSeriesConverter { public Series<Object, Integer> convert(List<FacetCount> facetCounts, XSettings xsettings) { Preconditions.checkNotNull(facetCounts); Preconditions.checkNotNull(xsettings); FacetValueConverter xValueConverter = facetValueConverterManager.getConverter(xsettings); Series<Object, Integer> series = new Series<Object, Integer>(); for (FacetCount count : facetCounts) { series.addPoint(xValueConverter.convert(count.getValue(), xsettings), count.getCount()); } return series; }  Series<Object, Integer> convert(List<FacetCount> facetCounts, XSettings xsettings); @Autowired void setFacetValueConverterManager(FacetValueConverterManager facetValueConverterManager); }
FacetToSeriesConverter { public Series<Object, Integer> convert(List<FacetCount> facetCounts, XSettings xsettings) { Preconditions.checkNotNull(facetCounts); Preconditions.checkNotNull(xsettings); FacetValueConverter xValueConverter = facetValueConverterManager.getConverter(xsettings); Series<Object, Integer> series = new Series<Object, Integer>(); for (FacetCount count : facetCounts) { series.addPoint(xValueConverter.convert(count.getValue(), xsettings), count.getCount()); } return series; }  Series<Object, Integer> convert(List<FacetCount> facetCounts, XSettings xsettings); @Autowired void setFacetValueConverterManager(FacetValueConverterManager facetValueConverterManager);  }