use of org.apache.jackrabbit.core.persistence.check.ConsistencyReport in project jackrabbit by apache.
the class AddMoveTest method testAddMove.
public void testAddMove() throws RepositoryException, NotExecutableException {
Session session1 = getHelper().getReadWriteSession();
Session session2 = getHelper().getReadWriteSession();
session1.getNode(folder1Path).addNode("node2");
session2.move(folder1Path + "/node1", folder2Path + "/node1");
session2.save();
Node node = session1.getNode(folder2Path + "/node1");
node.setProperty("foo", "bar");
session1.save();
ConsistencyReport consistencyReport = TestHelper.checkConsistency(testRootNode.getSession(), false, null);
//for (ReportItem item : consistencyReport.getItems()) {
// System.out.println(item.getMessage());
//}
assertTrue(consistencyReport.getItems().size() == 0);
}
Aggregations