@Test public void delegatesGetCurrentLease() { CleaningLeaseMaintainer cleaner = new CleaningLeaseMaintainer(delegate, connection, thread1, thread2); assertEquals(lease, cleaner.getCurrentLease()); verify(delegate).getCurrentLease(); }
@Override public Lease getCurrentLease() { return delegate.getCurrentLease(); }
CleaningLeaseMaintainer implements LeaseMaintainer { @Override public Lease getCurrentLease() { return delegate.getCurrentLease(); } }
CleaningLeaseMaintainer implements LeaseMaintainer { @Override public Lease getCurrentLease() { return delegate.getCurrentLease(); } CleaningLeaseMaintainer(LeaseMaintainer delegate, Connection connection, Closeable... resources); private  CleaningLeaseMaintainer(LeaseMaintainer delegate, Connection connection, List<Closeable> resources); }
CleaningLeaseMaintainer implements LeaseMaintainer { @Override public Lease getCurrentLease() { return delegate.getCurrentLease(); } CleaningLeaseMaintainer(LeaseMaintainer delegate, Connection connection, Closeable... resources); private  CleaningLeaseMaintainer(LeaseMaintainer delegate, Connection connection, List<Closeable> resources); @Override Lease getCurrentLease(); @Override void waitForLease(); @Override boolean waitForLease(long timeout, TimeUnit timeUnit); @Override void close(); @Override void destroy(); }
CleaningLeaseMaintainer implements LeaseMaintainer { @Override public Lease getCurrentLease() { return delegate.getCurrentLease(); } CleaningLeaseMaintainer(LeaseMaintainer delegate, Connection connection, Closeable... resources); private  CleaningLeaseMaintainer(LeaseMaintainer delegate, Connection connection, List<Closeable> resources); @Override Lease getCurrentLease(); @Override void waitForLease(); @Override boolean waitForLease(long timeout, TimeUnit timeUnit); @Override void close(); @Override void destroy();  }