@Test public void shouldCloseFactoryOnClose() { factory.close(); verify(mockDLCF).close(); }
public void close() { IOUtils.closeIfNotNull(factory); }
CTSConnectionFactory implements ConnectionFactory, ShutdownListener { public void close() { IOUtils.closeIfNotNull(factory); } }
CTSConnectionFactory implements ConnectionFactory, ShutdownListener { public void close() { IOUtils.closeIfNotNull(factory); } @Inject  CTSConnectionFactory(DataLayerConnectionFactory dlcf, LDAPConfig ldapConfig,
                                ExternalTokenConfig external, @Named(CoreTokenConstants.CTS_DEBUG) Debug debug); }
CTSConnectionFactory implements ConnectionFactory, ShutdownListener { public void close() { IOUtils.closeIfNotNull(factory); } @Inject  CTSConnectionFactory(DataLayerConnectionFactory dlcf, LDAPConfig ldapConfig,
                                ExternalTokenConfig external, @Named(CoreTokenConstants.CTS_DEBUG) Debug debug); void updateConnection(); Connection getConnection(); FutureResult<Connection> getConnectionAsync(ResultHandler<? super Connection> resultHandler); void close(); void shutdown(); }
CTSConnectionFactory implements ConnectionFactory, ShutdownListener { public void close() { IOUtils.closeIfNotNull(factory); } @Inject  CTSConnectionFactory(DataLayerConnectionFactory dlcf, LDAPConfig ldapConfig,
                                ExternalTokenConfig external, @Named(CoreTokenConstants.CTS_DEBUG) Debug debug); void updateConnection(); Connection getConnection(); FutureResult<Connection> getConnectionAsync(ResultHandler<? super Connection> resultHandler); void close(); void shutdown();  }