BoneCP implements Serializable, Closeable { public void close(){ shutdown(); } BoneCP(BoneCPConfig config); synchronized void shutdown(); void close(); Connection getConnection(); ListenableFuture<Connection> getAsyncConnection(); boolean isConnectionHandleAlive(ConnectionHandle connection); int getTotalLeased(); int getTotalFree(); int getTotalCreatedConnections(); BoneCPConfig getConfig(); Statistics getStatistics(); AtomicBoolean getDbIsDown(); static final String MBEAN_CONFIG; static final String MBEAN_BONECP; }
@Test public void testClose() throws SecurityException, IllegalArgumentException, NoSuchFieldException, IllegalAccessException { testClass.poolShuttingDown=false; testShutdownClose(false); }