GeoDistanceSorting implements Sortable { public static GeoDistanceSortingBuilder builder() { return new GeoDistanceSortingBuilder(); } GeoDistanceSorting(QueryTypeArrayList<QueryTypeItem> queryBag); static GeoDistanceSortingBuilder builder(); @Override String getSortableQuery();  }
@Test(expected = MandatoryParametersAreMissingException.class) public void when_no_parameters_added_then_exception_thrown() throws MandatoryParametersAreMissingException { GeoDistanceSorting .builder() .build(); }
@Test(expected = MandatoryParametersAreMissingException.class) public void when_only_the_field_parameter_added_then_exception_thrown() throws MandatoryParametersAreMissingException { GeoDistanceSorting .builder() .fieldName("pin.location") .build(); }
@Test(expected = MandatoryParametersAreMissingException.class) public void when_only_the_value_parameter_added_then_exception_thrown() throws MandatoryParametersAreMissingException { GeoDistanceSorting .builder() .locationGeohash("u803uig3bhkbhjkr3we") .build(); }