8889909192939495969798
conn.setHoldability(ResultSet.CLOSE_CURSORS_AT_COMMIT); Assert.assertEquals(ResultSet.CLOSE_CURSORS_AT_COMMIT, conn.getHoldability()); conn.setSavepoint(); conn.setSavepoint("savepoint"); conn.rollback(); { Exception error = null; try { conn.rollback(null); } catch (SQLException e) {
9293949596979899100101102
conn.setSavepoint("savepoint"); conn.rollback(); { Exception error = null; try { conn.rollback(null); } catch (SQLException e) { error = e; } Assert.assertNotNull(error); }
521522523524525526527528529530531
conn.getConnection().close(); { SQLException error = null; try { conn.rollback(); } catch (SQLException ex) { error = ex; } Assert.assertNotNull(error); }
538539540541542543544545546547548
conn.getConnection().close(); { SQLException error = null; try { conn.rollback(null); } catch (SQLException ex) { error = ex; } Assert.assertNotNull(error); }
6566676869707172737475
SQLException exception = new SQLException("xx", "xxx", 28); mockConn.setError(exception); Exception rollbackError = null; try { conn.rollback(); } catch (Exception ex) { rollbackError = ex; } Assert.assertNotNull(rollbackError);