usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g...@apache.org
Subject [6/7] incubator-usergrid git commit: [USERGRID-303]Fixed paging issue in orderByReturnCorrectResults
Date Wed, 07 Jan 2015 22:47:24 GMT
[USERGRID-303]Fixed paging issue in orderByReturnCorrectResults


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

Branch: refs/heads/USERGRID-313
Commit: 231a449a62885727229b6977b6e7e8c7d19e392c
Parents: 0141aad
Author: ryan bridges <rbridges@apigee.com>
Authored: Wed Jan 7 14:54:26 2015 -0500
Committer: ryan bridges <rbridges@apigee.com>
Committed: Wed Jan 7 14:54:26 2015 -0500

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


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/231a449a/stack/rest/src/test/java/org/apache/usergrid/rest/applications/queries/OrderByTest.java
----------------------------------------------------------------------
diff --git a/stack/rest/src/test/java/org/apache/usergrid/rest/applications/queries/OrderByTest.java
b/stack/rest/src/test/java/org/apache/usergrid/rest/applications/queries/OrderByTest.java
index 8edf698..6d5f39b 100644
--- a/stack/rest/src/test/java/org/apache/usergrid/rest/applications/queries/OrderByTest.java
+++ b/stack/rest/src/test/java/org/apache/usergrid/rest/applications/queries/OrderByTest.java
@@ -171,10 +171,10 @@ public class OrderByTest extends AbstractRestIT {
       //loop through the current page of results
       for (int i = 0; i < returnSize; i++, index--) {
         assertEquals(activitiesResponse.getResponse().getEntities().get(i).get("uuid").toString(),
-            (activities[index]).get("uuid").toString());
+            (activities[i]).get("uuid").toString());
       }
       //grab the next page of results
-      activitiesResponse = this.app().getNextPage(activitiesResponse, true);
+      activitiesResponse = this.app().getNextPage(activitiesResponse, params, true);
     }
     while (activitiesResponse.getCursor() != null);
   }


Mime
View raw message