GeoDistanceQuery extends GeoDistanceBaseQuery { public static Init<?> builder() { return new GeoDistanceQueryBuilder(); } GeoDistanceQuery(QueryTypeArrayList<QueryTypeItem> queryBag); @Override String getQueryString(); static Init<?> builder();  }
@Test(expected = MandatoryParametersAreMissingException.class) public void when_no_parameters_added_then_exception_thrown() throws MandatoryParametersAreMissingException { GeoDistanceQuery .builder() .build(); }
@Test(expected = MandatoryParametersAreMissingException.class) public void when_only_fieldName_parameter_added_then_exception_thrown() throws MandatoryParametersAreMissingException { GeoDistanceQuery .builder() .fieldName("alma") .build(); }
@Test(expected = MandatoryParametersAreMissingException.class) public void when_only_location_parameter_added_then_exception_thrown() throws MandatoryParametersAreMissingException { GeoDistanceQuery .builder() .locationGeohash("h23orowrehiurw") .build(); }