You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by gr...@apache.org on 2014/09/04 00:11:34 UTC
[39/52] [abbrv] git commit: Test to prove that arrays,
not queries and geo queries play well together.
Test to prove that arrays, not queries and geo queries play well together.
Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/2b1f7351
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/2b1f7351
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/2b1f7351
Branch: refs/heads/two-dot-o-push-notifications
Commit: 2b1f7351d33d1c1be6ab74b1a3f2221a9afe3295
Parents: f7e8f26
Author: Dave Johnson <dm...@apigee.com>
Authored: Tue Sep 2 11:19:40 2014 -0400
Committer: Dave Johnson <dm...@apigee.com>
Committed: Tue Sep 2 11:19:40 2014 -0400
----------------------------------------------------------------------
.../org/apache/usergrid/persistence/GeoQueryBooleanTest.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/2b1f7351/stack/core/src/test/java/org/apache/usergrid/persistence/GeoQueryBooleanTest.java
----------------------------------------------------------------------
diff --git a/stack/core/src/test/java/org/apache/usergrid/persistence/GeoQueryBooleanTest.java b/stack/core/src/test/java/org/apache/usergrid/persistence/GeoQueryBooleanTest.java
index 0d9810f..0e1faa5 100644
--- a/stack/core/src/test/java/org/apache/usergrid/persistence/GeoQueryBooleanTest.java
+++ b/stack/core/src/test/java/org/apache/usergrid/persistence/GeoQueryBooleanTest.java
@@ -112,7 +112,7 @@ public class GeoQueryBooleanTest extends AbstractCoreIT {
@Test
- @Ignore // work in progress
+ //@Ignore // work in progress
public void testGeoQueryWithNot() throws Exception {
log.info( "GeoQueryBooleanTest.testGeoQueryWithOr" );
@@ -176,14 +176,14 @@ public class GeoQueryBooleanTest extends AbstractCoreIT {
"select * where NOT blockedBy.name='bart' and location within 400 of "
+ center.getLat() + "," + center.getLon());
Results listResults = em.searchCollection( em.getApplicationRef(), "users", query );
- assertEquals( 2, listResults.size() );
+ assertEquals( 1, listResults.size() );
// one user within 400 meters IS blocked by bart
query = Query.fromQL(
"select * where blockedBy.name='bart' and location within 400 of "
+ center.getLat() + "," + center.getLon());
listResults = em.searchCollection( em.getApplicationRef(), "users", query );
- assertEquals( 2, listResults.size() );
+ assertEquals( 1, listResults.size() );
}