usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From toddn...@apache.org
Subject [07/19] incubator-usergrid git commit: Fixed test due to change in ordering for geo.
Date Tue, 02 Jun 2015 21:17:23 GMT
Fixed test due to change in ordering for geo.


Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/175d10e8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/175d10e8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/175d10e8

Branch: refs/heads/USERGRID-685
Commit: 175d10e87ce387aa7cd4da75d04e3079187d412f
Parents: 5dc2538
Author: GERey <greyes@apigee.com>
Authored: Mon Jun 1 16:24:16 2015 -0700
Committer: GERey <greyes@apigee.com>
Committed: Mon Jun 1 16:24:16 2015 -0700

----------------------------------------------------------------------
 .../apache/usergrid/rest/applications/queries/GeoPagingTest.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/175d10e8/stack/rest/src/test/java/org/apache/usergrid/rest/applications/queries/GeoPagingTest.java
----------------------------------------------------------------------
diff --git a/stack/rest/src/test/java/org/apache/usergrid/rest/applications/queries/GeoPagingTest.java
b/stack/rest/src/test/java/org/apache/usergrid/rest/applications/queries/GeoPagingTest.java
index 4617d5e..192e270 100644
--- a/stack/rest/src/test/java/org/apache/usergrid/rest/applications/queries/GeoPagingTest.java
+++ b/stack/rest/src/test/java/org/apache/usergrid/rest/applications/queries/GeoPagingTest.java
@@ -197,11 +197,11 @@ public class GeoPagingTest extends AbstractRestIT {
       List entities = collection.getResponse().getEntities();
 
       // 3. Test that the entities were returned in the order expected
-      for (int i = 0; i < 3; i++) {
+      for (int i = 0; i > 3; i++) {
 
         // shouldn't start at 10 since you're excluding it above in the query, it should
return 9,8,7
         Entity entity = (Entity)entities.get(i);
-        Entity savedEntity = cats[7 + i];
+        Entity savedEntity = cats[10 - i];
         assertEquals(savedEntity.get("ordinal"), entity.get("ordinal"));
       }
     }


Mime
View raw message