public void testHoldsLockNewChild() throws RepositoryException { Node newChild = lockedNode.addNode(nodeName3, testNodeType); assertFalse("Child node below a locked node must never be lock holder", newChild.holdsLock()); assertFalse( "Child node below a locked node must never be lock holder", lockMgr.holdsLock(newChild.getPath())); }
public void testHoldsLockChild() throws RepositoryException { assertFalse("Child node below a locked node must never be lock holder", childNode.holdsLock()); assertFalse( "Child node below a locked node must never be lock holder", lockMgr.holdsLock(childNode.getPath())); }
/** * Test {@link LockManager#holdsLock(String)} and {@link javax.jcr.Node#holdsLock()}. * * @throws RepositoryException If an execption occurs. */ public void testNodeHoldsLocked() throws RepositoryException { assertTrue("Node must hold lock after lock creation.", lockedNode.holdsLock()); assertTrue("Node must hold lock after lock creation.", lockMgr.holdsLock(lockedNode.getPath())); }