@Test public void testGetSecondsRemaining() throws Exception { Lock delegate = mock(Lock.class); LockFacade<Session> facade = getFacade(delegate); final long value = 42L; when(delegate.getSecondsRemaining()).thenReturn(value); assertSame("same value", value, facade.getSecondsRemaining()); }
@Override public long getSecondsRemaining() throws RepositoryException { return delegate.getSecondsRemaining(); }
LockFacade implements Lock { @Override public long getSecondsRemaining() throws RepositoryException { return delegate.getSecondsRemaining(); } }
LockFacade implements Lock { @Override public long getSecondsRemaining() throws RepositoryException { return delegate.getSecondsRemaining(); } LockFacade(final @NotNull Lock delegate, final @NotNull SessionFacade<S> session); }
LockFacade implements Lock { @Override public long getSecondsRemaining() throws RepositoryException { return delegate.getSecondsRemaining(); } LockFacade(final @NotNull Lock delegate, final @NotNull SessionFacade<S> session); @Override String getLockOwner(); @Override boolean isDeep(); @Override Node getNode(); @Override String getLockToken(); @Override long getSecondsRemaining(); @Override boolean isLive(); @Override boolean isSessionScoped(); @Override boolean isLockOwningSession(); @Override void refresh(); }
LockFacade implements Lock { @Override public long getSecondsRemaining() throws RepositoryException { return delegate.getSecondsRemaining(); } LockFacade(final @NotNull Lock delegate, final @NotNull SessionFacade<S> session); @Override String getLockOwner(); @Override boolean isDeep(); @Override Node getNode(); @Override String getLockToken(); @Override long getSecondsRemaining(); @Override boolean isLive(); @Override boolean isSessionScoped(); @Override boolean isLockOwningSession(); @Override void refresh();  }