You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@zookeeper.apache.org by ha...@apache.org on 2017/05/30 17:43:57 UTC

zookeeper git commit: ZOOKEEPER-2796: Fix broken test testCreateNodeWithoutData caused by ZK-2757.

Repository: zookeeper
Updated Branches:
  refs/heads/master 5bfcc13fd -> ce0aa2bac


ZOOKEEPER-2796: Fix broken test testCreateNodeWithoutData caused by ZK-2757.

ZK-2757 introduces a new MalformedPathException which intercepts and wraps the IllegalArgumentException that this test was expecting.

Author: Michael Han <ha...@apache.org>

Closes #265 from hanm/ZOOKEEPER-2796


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

Branch: refs/heads/master
Commit: ce0aa2bac7faf1eff3a6317aa8fc889ba13e7130
Parents: 5bfcc13
Author: Michael Han <ha...@apache.org>
Authored: Tue May 30 10:43:52 2017 -0700
Committer: Michael Han <ha...@apache.org>
Committed: Tue May 30 10:43:52 2017 -0700

----------------------------------------------------------------------
 src/java/test/org/apache/zookeeper/ZooKeeperTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/zookeeper/blob/ce0aa2ba/src/java/test/org/apache/zookeeper/ZooKeeperTest.java
----------------------------------------------------------------------
diff --git a/src/java/test/org/apache/zookeeper/ZooKeeperTest.java b/src/java/test/org/apache/zookeeper/ZooKeeperTest.java
index 0ce0eaa..b0ac07f 100644
--- a/src/java/test/org/apache/zookeeper/ZooKeeperTest.java
+++ b/src/java/test/org/apache/zookeeper/ZooKeeperTest.java
@@ -293,7 +293,7 @@ public class ZooKeeperTest extends ClientBase {
                     .processZKCmd(zkMain.cl));
             Assert.fail("Created the node with wrong option should "
                     + "throw Exception.");
-        } catch (IllegalArgumentException e) {
+        } catch (MalformedPathException e) {
             Assert.assertEquals("Path must start with / character", e
                     .getMessage());
         }