CURATOR-472 - Fixed unit test

-Added setup of zookeeper.extednedTypesEnabled system property.


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

Branch: refs/heads/master
Commit: 26ffdfb89c685873b5592db29c541f92c22a06cd
Parents: 90a3e4c
Author: Cam McKenzie <cammcken...@apache.org>
Authored: Mon Dec 3 10:35:46 2018 +1100
Committer: Cam McKenzie <cammcken...@apache.org>
Committed: Mon Dec 3 10:35:46 2018 +1100

----------------------------------------------------------------------
 .../java/org/apache/curator/framework/imps/TestTtlNodes.java   | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/curator/blob/26ffdfb8/curator-framework/src/test/java/org/apache/curator/framework/imps/TestTtlNodes.java
----------------------------------------------------------------------
diff --git 
a/curator-framework/src/test/java/org/apache/curator/framework/imps/TestTtlNodes.java
 
b/curator-framework/src/test/java/org/apache/curator/framework/imps/TestTtlNodes.java
index f253d96..e2156df 100644
--- 
a/curator-framework/src/test/java/org/apache/curator/framework/imps/TestTtlNodes.java
+++ 
b/curator-framework/src/test/java/org/apache/curator/framework/imps/TestTtlNodes.java
@@ -29,6 +29,7 @@ import 
org.apache.curator.test.compatibility.Zk35MethodInterceptor;
 import org.apache.zookeeper.CreateMode;
 import org.testng.Assert;
 import org.testng.annotations.AfterMethod;
+import org.testng.annotations.BeforeClass;
 import org.testng.annotations.BeforeMethod;
 import org.testng.annotations.Test;
 import java.util.concurrent.CountDownLatch;
@@ -36,6 +37,11 @@ import java.util.concurrent.CountDownLatch;
 @Test(groups = Zk35MethodInterceptor.zk35Group)
 public class TestTtlNodes extends CuratorTestBase
 {
+    @BeforeClass
+    public static void setUpClass() {
+        System.setProperty("zookeeper.extendedTypesEnabled", "true");
+    }
+    
     @BeforeMethod
     @Override
     public void setup() throws Exception

Reply via email to