Esempio n. 1
0
  @Override
  protected void tearDown() throws Exception {
    testRoot.remove();
    root.save();

    super.tearDown();
  }
Esempio n. 2
0
  @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();
  }