curator-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cammcken...@apache.org
Subject [26/50] curator git commit: TestTreeCache: test double remove and add
Date Tue, 21 Apr 2015 23:07:23 GMT
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/CURATOR-154
Commit: d3c5c366f8d8a7ca88983738ea59e31b579684d2
Parents: 383c9ae
Author: Scott Blum <dragonsinth@apache.org>
Authored: Thu Jan 15 14:12:29 2015 -0500
Committer: Scott Blum <dragonsinth@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();
     }
 


Mime
View raw message