Examples of LsCommand


Examples of org.apache.zookeeper.cli.LsCommand

        // call ls and put result in byteStream
        ByteArrayOutputStream byteStream = new ByteArrayOutputStream();
        PrintStream out = new PrintStream(byteStream);
        String lsCmd = "ls /";
        LsCommand entity = new LsCommand();
        entity.setZk(zk);
        entity.setOut(out);
        entity.parse(lsCmd.split(" ")).exec();

        String result = byteStream.toString();
        assertTrue(result, result.contains("[aa1, aa2, aa3, test1, zk1, zookeeper]"));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.