usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sfeld...@apache.org
Subject usergrid git commit: adding partial delete test
Date Wed, 09 Sep 2015 15:49:35 GMT
Repository: usergrid
Updated Branches:
  refs/heads/USERGRID-1005 60bb149c7 -> 5d5fa9d28


adding partial delete test


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

Branch: refs/heads/USERGRID-1005
Commit: 5d5fa9d287f075d26c78d7ba0e0c203b5c90734d
Parents: 60bb149
Author: Shawn Feldman <sfeldman@apache.org>
Authored: Wed Sep 9 09:49:30 2015 -0600
Committer: Shawn Feldman <sfeldman@apache.org>
Committed: Wed Sep 9 09:49:30 2015 -0600

----------------------------------------------------------------------
 .../apache/usergrid/persistence/ApplicationServiceIT.java    | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/usergrid/blob/5d5fa9d2/stack/core/src/test/java/org/apache/usergrid/persistence/ApplicationServiceIT.java
----------------------------------------------------------------------
diff --git a/stack/core/src/test/java/org/apache/usergrid/persistence/ApplicationServiceIT.java
b/stack/core/src/test/java/org/apache/usergrid/persistence/ApplicationServiceIT.java
index 24643c5..d870114 100644
--- a/stack/core/src/test/java/org/apache/usergrid/persistence/ApplicationServiceIT.java
+++ b/stack/core/src/test/java/org/apache/usergrid/persistence/ApplicationServiceIT.java
@@ -68,9 +68,13 @@ public class ApplicationServiceIT extends AbstractCoreIT {
         Thread.sleep(500);
         ApplicationScope appScope  = CpNamingUtils.getApplicationScope(entityManager.getApplicationId());
         Observable<Id> ids =
-            this.app.getApplicationService().deleteAllEntities(appScope,0);
+            this.app.getApplicationService().deleteAllEntities(appScope, 5);
         int count = ids.count().toBlocking().last();
-        Assert.assertEquals(count, 10);
+        Assert.assertEquals(count, 5);
+        ids =
+            this.app.getApplicationService().deleteAllEntities(appScope, 5);
+        count = ids.count().toBlocking().last();
+        Assert.assertEquals(count, 5);
         this.app.refreshIndex();
         Thread.sleep(5000);
         Injector injector = SpringResource.getInstance().getBean(Injector.class);


Mime
View raw message