@Override protected void tearDown() throws Exception { testRoot.remove(); root.save(); super.tearDown(); }
@Override public void setUp() throws Exception { super.setUp(); testRoot = root.addNode("testRemoveVersionable"); root.save(); testRoot.addMixin("mix:versionable"); root.save(); testRoot.checkin(); testRoot.checkout(); testRoot.addNode("node1"); testRoot.addNode("node2").setProperty("prop1", "a property #1"); testRoot.save(); testRoot.checkin(); testRoot.checkout(); testRoot.getNode("node1").remove(); testRoot.save(); testRoot.checkin(); }