@SuppressWarnings("unchecked") @Test public void testStop() throws Exception { ServicePool<Service> pool = mock(ServicePool.class); Service service = ServicePoolProxyHelper.createMock(Service.class, pool); Managed managed = new ManagedServicePoolProxy(service); managed.stop(); verify(pool).close(); verifyNoMoreInteractions(pool); }
@Override public void stop() { ServicePoolProxies.close(_proxy); }
ManagedServicePoolProxy implements Managed { @Override public void stop() { ServicePoolProxies.close(_proxy); } }
ManagedServicePoolProxy implements Managed { @Override public void stop() { ServicePoolProxies.close(_proxy); } ManagedServicePoolProxy(Object proxy); }
ManagedServicePoolProxy implements Managed { @Override public void stop() { ServicePoolProxies.close(_proxy); } ManagedServicePoolProxy(Object proxy); @Override void start(); @Override void stop(); }
ManagedServicePoolProxy implements Managed { @Override public void stop() { ServicePoolProxies.close(_proxy); } ManagedServicePoolProxy(Object proxy); @Override void start(); @Override void stop();  }