@Test public void testHoldsLock() throws Exception { LockManager delegate = mock(LockManager.class); LockManagerFacade<Session> facade = getFacade(delegate); final String path = "/correct/path"; when(delegate.holdsLock(path)).thenReturn(true); assertTrue("is true", facade.holdsLock(path)); }
@Override public boolean holdsLock(String absPath) throws RepositoryException { return delegate.holdsLock(absPath); }
LockManagerFacade implements LockManager { @Override public boolean holdsLock(String absPath) throws RepositoryException { return delegate.holdsLock(absPath); } }
LockManagerFacade implements LockManager { @Override public boolean holdsLock(String absPath) throws RepositoryException { return delegate.holdsLock(absPath); } LockManagerFacade(final @NotNull LockManager delegate, final @NotNull SessionFacade<S> session); }
LockManagerFacade implements LockManager { @Override public boolean holdsLock(String absPath) throws RepositoryException { return delegate.holdsLock(absPath); } LockManagerFacade(final @NotNull LockManager delegate, final @NotNull SessionFacade<S> session); @Override Lock getLock(String absPath); @Override String[] getLockTokens(); @Override boolean holdsLock(String absPath); @Override boolean isLocked(String absPath); @Override void addLockToken(String lockToken); @Override Lock lock(String absPath, boolean isDeep, boolean isSessionScoped, long timeoutHint, String ownerInfo); @Override void removeLockToken(String lockToken); @Override void unlock(String absPath); }
LockManagerFacade implements LockManager { @Override public boolean holdsLock(String absPath) throws RepositoryException { return delegate.holdsLock(absPath); } LockManagerFacade(final @NotNull LockManager delegate, final @NotNull SessionFacade<S> session); @Override Lock getLock(String absPath); @Override String[] getLockTokens(); @Override boolean holdsLock(String absPath); @Override boolean isLocked(String absPath); @Override void addLockToken(String lockToken); @Override Lock lock(String absPath, boolean isDeep, boolean isSessionScoped, long timeoutHint, String ownerInfo); @Override void removeLockToken(String lockToken); @Override void unlock(String absPath);  }