Code example for Connection

Methods: close, isClosed

0
 
    } 
 
    public void tearDown() { 
        try { 
            if (!conn.isClosed()) {
                conn.close();
            } 
        } catch (SQLException e) {
            fail("Couldn't close Connection: " + e.getMessage());
        } 
 
    } 
 
}