13841385138613871388138913901391139213931394
jrs.setCommand("SELECT * FROM USER_INFO"); jrs.execute(); // Deletes the 4th row. jrs.absolute(4); jrs.deleteRow(); try { jrs.getInt(1); fail("Should throw SQLException " + "since no current row."); } catch (SQLException e) { // Expected.
14041405140614071408140914101411141214131414
jrs.setShowDeleted(true); assertTrue(jrs.getShowDeleted()); jrs.absolute(3); jrs.deleteRow(); jrs.first(); index = 0; while (jrs.next()) { index++; }
965966967968969970971972973974975
fail("should throw NullPointerException"); } catch (NullPointerException e) { // expected } try { jrs.deleteRow(); fail("should throw SQLException"); } catch (SQLException e) { // expected } try {
549550551552553554555556557558559
jrs.setCommand("SELECT * FROM USER_INFO"); jrs.setUrl(DERBY_URL); jrs.execute(); assertTrue(jrs.first()); jrs.deleteRow(); try { jrs.getInt(1); fail("should throw SQLException"); } catch (SQLException e) {