Code example for Statement

Methods: close

0
 
    @Override 
    public void tearDown() throws SQLException { 
        try { 
            rs.close();
            st.close();
        } catch (SQLException e) {
            fail("Couldn't close Statement object"); 
        } 
        super.tearDown(); 
    } 
 
    // not supported 
    public void testGetCatalogName() throws SQLException { 
        try { 
            assertNotNull(rsmd.getCatalogName(1));
        } catch (SQLException e) {
            fail("SQLException is thrown: " + e.getMessage());
        } 
 
        try {