Skip to content

Commit

Permalink
typo in the error message, added test for withinDistance
Browse files Browse the repository at this point in the history
  • Loading branch information
peterneubauer committed Apr 17, 2013
1 parent 6370f1f commit 9b50a01
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ else if ( key.equals( BBOX_QUERY ) )
else
{
throw new UnsupportedOperationException( String.format(
"only %s, %S and %s are implemented.", WITHIN_QUERY,
"only %s, %s and %s are implemented.", WITHIN_QUERY,
WITHIN_DISTANCE_QUERY, BBOX_QUERY ) );
}
return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ public void querying_with_cypher() throws UnsupportedEncodingException
assertTrue(response.contains( "60.1" ));
response = post(Status.OK,"{\"query\":\"start node = node:geom(\'bbox:[15.0,15.3,60.0,60.2]\') return node\"}", "http://localhost:"+PORT+"/db/data/cypher");
assertTrue(response.contains( "node" ));

response = post(Status.OK,"{\"query\":\"start node = node:geom(\'withinDistance:[15.0,15.3,60.0,60.2, 5.0]\') return node\"}", "http://localhost:"+PORT+"/db/data/cypher");
assertTrue(response.contains( "node" ));

}

private String post(Status status, String payload, String endpoint) {
Expand Down

0 comments on commit 9b50a01

Please sign in to comment.