usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject [2/2] git commit: Test to prove that arrays, not queries and geo queries play well together.
Date Tue, 02 Sep 2014 15:20:17 GMT
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
Commit: 2b1f7351d33d1c1be6ab74b1a3f2221a9afe3295
Parents: f7e8f26
Author: Dave Johnson <dmjohnson@apigee.com>
Authored: Tue Sep 2 11:19:40 2014 -0400
Committer: Dave Johnson <dmjohnson@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() );
 
      }
 


Mime
View raw message