@Test public void shouldLockNode() throws Exception { Node node = session.getRootNode().addNode("test"); node.addMixin("mix:lockable"); session.save(); startTransaction(); JcrLockManager lockManager = session.getWorkspace().getLockManager(); Lock lock = lockManager.lock(node.getPath(), false, false, Long.MAX_VALUE, null); assertTrue(node.isLocked()); commitTransaction(); }
MODE-2277 Improve performance of isCheckedOut