You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by sn...@apache.org on 2015/09/09 18:12:15 UTC
[5/6] usergrid git commit: adding partial delete test
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/two-dot-o-dev
Commit: 5d5fa9d287f075d26c78d7ba0e0c203b5c90734d
Parents: 60bb149
Author: Shawn Feldman <sf...@apache.org>
Authored: Wed Sep 9 09:49:30 2015 -0600
Committer: Shawn Feldman <sf...@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);