@Test(expected = NullPointerException.class) public void applyXSettingsToQuery_NULL_QUERY() { xSettingsFacetQueryApplier.applyXSettingsToQuery(null, new XSettings()); }
public void applyXSettingsToQuery(SolrQuery query, XSettings xSettings) { Preconditions.checkNotNull(query); Preconditions.checkNotNull(xSettings); XField xField = xSettings.getField(); String fieldName = xFieldNameMapper.mapXField(xField); XRange xRange = xSettings.getRange(); if (xRange != null) { applyRangeFacet(query, fieldName, xRange); } else { applyFieldFacet(query, fieldName, xSettings.getFieldValuePrefix()); } }
XSettingsToQueryApplier { public void applyXSettingsToQuery(SolrQuery query, XSettings xSettings) { Preconditions.checkNotNull(query); Preconditions.checkNotNull(xSettings); XField xField = xSettings.getField(); String fieldName = xFieldNameMapper.mapXField(xField); XRange xRange = xSettings.getRange(); if (xRange != null) { applyRangeFacet(query, fieldName, xRange); } else { applyFieldFacet(query, fieldName, xSettings.getFieldValuePrefix()); } } }
XSettingsToQueryApplier { public void applyXSettingsToQuery(SolrQuery query, XSettings xSettings) { Preconditions.checkNotNull(query); Preconditions.checkNotNull(xSettings); XField xField = xSettings.getField(); String fieldName = xFieldNameMapper.mapXField(xField); XRange xRange = xSettings.getRange(); if (xRange != null) { applyRangeFacet(query, fieldName, xRange); } else { applyFieldFacet(query, fieldName, xSettings.getFieldValuePrefix()); } }  }
XSettingsToQueryApplier { public void applyXSettingsToQuery(SolrQuery query, XSettings xSettings) { Preconditions.checkNotNull(query); Preconditions.checkNotNull(xSettings); XField xField = xSettings.getField(); String fieldName = xFieldNameMapper.mapXField(xField); XRange xRange = xSettings.getRange(); if (xRange != null) { applyRangeFacet(query, fieldName, xRange); } else { applyFieldFacet(query, fieldName, xSettings.getFieldValuePrefix()); } }  void applyXSettingsToQuery(SolrQuery query, XSettings xSettings); @Autowired void setxFieldNameMapper(XFieldNameMapper xFieldNameMapper); @Autowired void setxRangeConverterManager(XRangeConverterManager xRangeConverterManager); @Autowired void setRangeFacetToQueryApplier(RangeFacetToQueryApplier rangeFacetToQueryApplier); @Autowired void setFieldFacetToQueryApplier(FieldFacetToQueryApplier fieldFacetToQueryApplier); }
XSettingsToQueryApplier { public void applyXSettingsToQuery(SolrQuery query, XSettings xSettings) { Preconditions.checkNotNull(query); Preconditions.checkNotNull(xSettings); XField xField = xSettings.getField(); String fieldName = xFieldNameMapper.mapXField(xField); XRange xRange = xSettings.getRange(); if (xRange != null) { applyRangeFacet(query, fieldName, xRange); } else { applyFieldFacet(query, fieldName, xSettings.getFieldValuePrefix()); } }  void applyXSettingsToQuery(SolrQuery query, XSettings xSettings); @Autowired void setxFieldNameMapper(XFieldNameMapper xFieldNameMapper); @Autowired void setxRangeConverterManager(XRangeConverterManager xRangeConverterManager); @Autowired void setRangeFacetToQueryApplier(RangeFacetToQueryApplier rangeFacetToQueryApplier); @Autowired void setFieldFacetToQueryApplier(FieldFacetToQueryApplier fieldFacetToQueryApplier);  }