示例#1
0
 /**
  * Test {@link javax.jcr.lock.Lock#refresh()} on a released lock.
  *
  * @throws Exception
  */
 public void testRefreshNotLive() throws Exception {
   // release the lock
   lockMgr.unlock(lockedNode.getPath());
   // refresh
   try {
     lock.refresh();
     fail("Refresh on a lock that is not alive must fail");
   } catch (LockException e) {
     // success
   }
 }
示例#2
0
 /**
  * Test {@link javax.jcr.lock.Lock#refresh()} on a released lock.
  *
  * @throws Exception
  */
 public void testRefresh() throws RepositoryException {
   // refresh must succeed
   lock.refresh();
 }