You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@curator.apache.org by dr...@apache.org on 2015/01/15 20:12:47 UTC

curator git commit: TestTreeCache: test double remove and add

Repository: curator
Updated Branches:
  refs/heads/master 383c9ae68 -> d3c5c366f


TestTreeCache: test double remove and add


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

Branch: refs/heads/master
Commit: d3c5c366f8d8a7ca88983738ea59e31b579684d2
Parents: 383c9ae
Author: Scott Blum <dr...@apache.org>
Authored: Thu Jan 15 14:12:29 2015 -0500
Committer: Scott Blum <dr...@apache.org>
Committed: Thu Jan 15 14:12:29 2015 -0500

----------------------------------------------------------------------
 .../apache/curator/framework/recipes/cache/TestTreeCache.java   | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/curator/blob/d3c5c366/curator-recipes/src/test/java/org/apache/curator/framework/recipes/cache/TestTreeCache.java
----------------------------------------------------------------------
diff --git a/curator-recipes/src/test/java/org/apache/curator/framework/recipes/cache/TestTreeCache.java b/curator-recipes/src/test/java/org/apache/curator/framework/recipes/cache/TestTreeCache.java
index 777f416..394428e 100644
--- a/curator-recipes/src/test/java/org/apache/curator/framework/recipes/cache/TestTreeCache.java
+++ b/curator-recipes/src/test/java/org/apache/curator/framework/recipes/cache/TestTreeCache.java
@@ -316,6 +316,11 @@ public class TestTreeCache extends BaseTestTreeCache
         client.create().forPath("/test/foo", "two".getBytes());
         assertEvent(TreeCacheEvent.Type.NODE_ADDED, "/test/foo");
 
+        client.delete().forPath("/test/foo");
+        assertEvent(TreeCacheEvent.Type.NODE_REMOVED, "/test/foo");
+        client.create().forPath("/test/foo", "two".getBytes());
+        assertEvent(TreeCacheEvent.Type.NODE_ADDED, "/test/foo");
+
         assertNoMoreEvents();
     }