ZKTools { public static void createPath(ZooKeeper zk, String path, CreateMode createMode, List<ACL> acl) throws Exception { String[] list = path.split("/"); String zkPath = ""; for (String str : list) { if (str.equals("") == false) { zkPath = zkPath + "/" + str; if (zk.exists(zkPath, false) == null) { zk.create(zkPath, null, acl, createMode); } } } }  static void createPath(ZooKeeper zk, String path, CreateMode createMode, List<ACL> acl); static void printTree(ZooKeeper zk, String path, Writer writer, String lineSplitChar); static void deleteTree(ZooKeeper zk, String path); static String[] getTree(ZooKeeper zk, String path);  }
@Test public void createPath() { }