Package src

Examples of src.Store.load()


    FS.dump(TestConf.tmpPath + "/root/node1.data", "version:0\r\ni'am node1");
    FS.dump(TestConf.tmpPath + "/root/node2.data", "version:0\r\ni'am node2");
    FS.dump(TestConf.tmpPath + "/root/node2/node3.data", "version:0\r\ni'am node3");
   
    Store s = new Store(TestConf.host, TestConf.root, "", "", TestConf.tmpPath);
    s.load(TestConf.tmpPath + "/root", "/root");
   
    Assert.assertEquals("i'am node1", s.get("/root/node1"));
    Assert.assertEquals("i'am node2", s.get("/root/node2"));
    Assert.assertEquals("i'am node3", s.get("/root/node2/node3"));
   
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.