3839404142434445464748
conn.addNode(nodeName, "v1".getBytes()); conn.addVersionControl(nodeName); conn.checkIn(nodeName); conn.checkOut(nodeName); // check for (JCRWebdavConnection connection : getConnections()) { HTTPResponse response = connection.getNode(nodeName);
4950515253545556575859
assertEquals(200, response.getStatusCode()); assertTrue("v1".equals(new String(response.getData()))); } // create version conn.checkOut(nodeName); conn.addNode(nodeName, "v2".getBytes()); conn.checkIn(nodeName); // create version conn.checkOut(nodeName);
5455565758596061626364
conn.checkOut(nodeName); conn.addNode(nodeName, "v2".getBytes()); conn.checkIn(nodeName); // create version conn.checkOut(nodeName); conn.addNode(nodeName, "v3".getBytes()); conn.checkIn(nodeName); // create version conn.checkOut(nodeName);
5960616263646566676869
conn.checkOut(nodeName); conn.addNode(nodeName, "v3".getBytes()); conn.checkIn(nodeName); // create version conn.checkOut(nodeName); conn.addNode(nodeName, "v4".getBytes()); conn.checkIn(nodeName); // check for (JCRWebdavConnection connection : getConnections())