@Override public void close(ConnectionManager r) throws SQLException { r.close(); }
@After public void closeConnectionManager() throws SQLException { manager.close(); }
@Override public void close(ConnectionManager r) throws SQLException { r.close(); }
@Test public void testCantGetConnectionIfClosed() throws SQLException { manager.close(); thrown.expect(SQLException.class); thrown.expectMessage("Hikari connection pool already closed!"); try (Connection conn = manager.getConnection()) { Assert.fail(); } }