usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From toddn...@apache.org
Subject [31/50] [abbrv] incubator-usergrid git commit: [USERGRID-687] Fixes to AndOrQueryTests
Date Mon, 01 Jun 2015 21:48:40 GMT
[USERGRID-687] Fixes to AndOrQueryTests


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

Branch: refs/heads/USERGRID-628
Commit: b8f93bbbd5e80368b3c2430fee8543b50dbd06d4
Parents: 38472b6
Author: GERey <greyes@apigee.com>
Authored: Fri May 29 13:10:02 2015 -0700
Committer: GERey <greyes@apigee.com>
Committed: Fri May 29 13:10:02 2015 -0700

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


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/b8f93bbb/stack/rest/src/test/java/org/apache/usergrid/rest/applications/queries/AndOrQueryTest.java
----------------------------------------------------------------------
diff --git a/stack/rest/src/test/java/org/apache/usergrid/rest/applications/queries/AndOrQueryTest.java
b/stack/rest/src/test/java/org/apache/usergrid/rest/applications/queries/AndOrQueryTest.java
index fbd067e..8deab48 100644
--- a/stack/rest/src/test/java/org/apache/usergrid/rest/applications/queries/AndOrQueryTest.java
+++ b/stack/rest/src/test/java/org/apache/usergrid/rest/applications/queries/AndOrQueryTest.java
@@ -306,7 +306,7 @@ public class AndOrQueryTest extends QueryTestBase {
         generateTestEntities(numOfEntities, collectionName);
 
         //2. Issue a query
-        String inquisitiveQuery = String.format("select * where ordinal >= 0 and ordinal
<= %d or WhoHelpedYou = 'Ruff'", numOfEntities);
+        String inquisitiveQuery = String.format("select * where ordinal >= 0 and ordinal
<= %d or WhoHelpedYou = 'Ruff' ORDER BY created", numOfEntities);
         QueryParameters params = new QueryParameters().setQuery(inquisitiveQuery);
         Collection activities = this.app().collection(collectionName).get(params);
 
@@ -333,7 +333,7 @@ public class AndOrQueryTest extends QueryTestBase {
         generateTestEntities(numOfEntities, collectionName);
 
         //2. Issue a query using alphanumeric operators
-        String inquisitiveQuery = "select * where Ordinal gte 0 and Ordinal lte 2000 or WhoHelpedYou
eq 'Ruff'";
+        String inquisitiveQuery = "select * where Ordinal gte 0 and Ordinal lte 2000 or WhoHelpedYou
eq 'Ruff' ORDER BY created";
         QueryParameters params = new QueryParameters().setQuery(inquisitiveQuery);
         Collection activities = this.app().collection(collectionName).get(params);
 


Mime
View raw message