Exemplo n.º 1
0
 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()));
 }
Exemplo n.º 2
0
 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()));
 }
Exemplo n.º 3
0
 /**
  * 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()));
 }