@Test(expected = NullPointerException.class) public void applyRangeFacet_NULL_FIELD_NAME() { rangeFacetToQueryApplier.applyRangeFacet(new SolrQuery(), null, "startParam", "endParam", "gapParam"); }
public void applyRangeFacet(SolrQuery query, String fieldName, String start, String end, String gap) { checkArguments(query, fieldName, start, end, gap); query.setFacet(true); String fieldParamPrefix = "f." + fieldName + "."; query.add(FacetParams.FACET_RANGE, fieldName); query.add(fieldParamPrefix + FacetParams.FACET_RANGE_START, start); query.add(fieldParamPrefix + FacetParams.FACET_RANGE_END, end); query.add(fieldParamPrefix + FacetParams.FACET_RANGE_GAP, gap); }
RangeFacetToQueryApplier { public void applyRangeFacet(SolrQuery query, String fieldName, String start, String end, String gap) { checkArguments(query, fieldName, start, end, gap); query.setFacet(true); String fieldParamPrefix = "f." + fieldName + "."; query.add(FacetParams.FACET_RANGE, fieldName); query.add(fieldParamPrefix + FacetParams.FACET_RANGE_START, start); query.add(fieldParamPrefix + FacetParams.FACET_RANGE_END, end); query.add(fieldParamPrefix + FacetParams.FACET_RANGE_GAP, gap); } }
RangeFacetToQueryApplier { public void applyRangeFacet(SolrQuery query, String fieldName, String start, String end, String gap) { checkArguments(query, fieldName, start, end, gap); query.setFacet(true); String fieldParamPrefix = "f." + fieldName + "."; query.add(FacetParams.FACET_RANGE, fieldName); query.add(fieldParamPrefix + FacetParams.FACET_RANGE_START, start); query.add(fieldParamPrefix + FacetParams.FACET_RANGE_END, end); query.add(fieldParamPrefix + FacetParams.FACET_RANGE_GAP, gap); }  }
RangeFacetToQueryApplier { public void applyRangeFacet(SolrQuery query, String fieldName, String start, String end, String gap) { checkArguments(query, fieldName, start, end, gap); query.setFacet(true); String fieldParamPrefix = "f." + fieldName + "."; query.add(FacetParams.FACET_RANGE, fieldName); query.add(fieldParamPrefix + FacetParams.FACET_RANGE_START, start); query.add(fieldParamPrefix + FacetParams.FACET_RANGE_END, end); query.add(fieldParamPrefix + FacetParams.FACET_RANGE_GAP, gap); }  void applyRangeFacet(SolrQuery query, String fieldName, String start, String end, String gap); @Autowired void setFieldValuePrefixAdder(FieldValuePrefixAdder fieldValuePrefixAdder); }
RangeFacetToQueryApplier { public void applyRangeFacet(SolrQuery query, String fieldName, String start, String end, String gap) { checkArguments(query, fieldName, start, end, gap); query.setFacet(true); String fieldParamPrefix = "f." + fieldName + "."; query.add(FacetParams.FACET_RANGE, fieldName); query.add(fieldParamPrefix + FacetParams.FACET_RANGE_START, start); query.add(fieldParamPrefix + FacetParams.FACET_RANGE_END, end); query.add(fieldParamPrefix + FacetParams.FACET_RANGE_GAP, gap); }  void applyRangeFacet(SolrQuery query, String fieldName, String start, String end, String gap); @Autowired void setFieldValuePrefixAdder(FieldValuePrefixAdder fieldValuePrefixAdder);  }