usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sfeld...@apache.org
Subject usergrid git commit: add better count to test
Date Fri, 04 Sep 2015 13:51:46 GMT
Repository: usergrid
Updated Branches:
  refs/heads/two-dot-o-dev 5bb3249e1 -> ab5ace4ba


add better count to test


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

Branch: refs/heads/two-dot-o-dev
Commit: ab5ace4bacad0034664ed743d0dda8158d2408e6
Parents: 5bb3249
Author: Shawn Feldman <sfeldman@apache.org>
Authored: Fri Sep 4 07:51:41 2015 -0600
Committer: Shawn Feldman <sfeldman@apache.org>
Committed: Fri Sep 4 07:51:41 2015 -0600

----------------------------------------------------------------------
 .../test/java/org/apache/usergrid/rest/SystemResourceIT.java  | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/usergrid/blob/ab5ace4b/stack/rest/src/test/java/org/apache/usergrid/rest/SystemResourceIT.java
----------------------------------------------------------------------
diff --git a/stack/rest/src/test/java/org/apache/usergrid/rest/SystemResourceIT.java b/stack/rest/src/test/java/org/apache/usergrid/rest/SystemResourceIT.java
index 1c19dd3..93f8eca 100644
--- a/stack/rest/src/test/java/org/apache/usergrid/rest/SystemResourceIT.java
+++ b/stack/rest/src/test/java/org/apache/usergrid/rest/SystemResourceIT.java
@@ -53,6 +53,11 @@ public class SystemResourceIT extends AbstractRestIT {
 
     @Test
     public void testDeleteAllApplicationEntities() {
+        int count = 10;
+        for(int i =0; i<count;i++) {
+            this.app().collection("tests").post(new Entity().chainPut("testval", "test"));
+        }
+        this.refreshIndex();
         QueryParameters queryParameters = new QueryParameters();
         queryParameters.addParam( "access_token", clientSetup.getSuperuserToken().getAccessToken()
);
         queryParameters.addParam("confirmApplicationId", this.clientSetup.getAppUuid());
@@ -61,7 +66,7 @@ public class SystemResourceIT extends AbstractRestIT {
 
         assertNotNull( result );
         assertNotNull( "ok",result.getStatus() );
-        assertEquals(((LinkedHashMap) result.getData()).get("count"), 0);
+        assertEquals(((LinkedHashMap) result.getData()).get("count"), count);
     }
 
 


Mime
View raw message