GeoPolygonQuery implements Queryable { public static Init<?> builder() { return new GeoPolygonQueryBuilder(); } GeoPolygonQuery(QueryTypeArrayList<QueryTypeItem> queryBag); @Override String getQueryString(); static Init<?> builder();  }
@Test(expected = MandatoryParametersAreMissingException.class) public void when_no_parameters_defined_then_exception_thrown() throws MandatoryParametersAreMissingException { GeoPolygonQuery .builder() .build(); }
@Test(expected = MandatoryParametersAreMissingException.class) public void when_only_field_name_parameter_defined_then_exception_thrown() throws MandatoryParametersAreMissingException { GeoPolygonQuery .builder() .fieldName("a") .build(); }
@Test(expected = MandatoryParametersAreMissingException.class) public void when_only_points_parameter_defined_then_exception_thrown() throws MandatoryParametersAreMissingException { GeoPolygonQuery .builder() .points("bhj4giy3giu435ui") .build(); }