418419420421422423424425426427428
sds.beginTrans(); assertFalse(sds.isModified()); sds.insertEmptyRowAt(0); assertTrue(sds.isModified()); sds.rollBackTrans(); sds.beginTrans(); assertFalse(sds.isModified()); sds.insertFilledRowAt(0, sds.getRow(0)); assertTrue(sds.isModified());
424425426427428429430431432433434
sds.beginTrans(); assertFalse(sds.isModified()); sds.insertFilledRowAt(0, sds.getRow(0)); assertTrue(sds.isModified()); sds.rollBackTrans(); } } public void testIsModifiedFile() throws Exception {
5455565758596061626364
compareDataSource(sds); sds.undo(); compareDataSource(sds); sds.undo(); compareDataSource(sds); sds.rollBackTrans(); } public void testUndoRedoIndexed() throws Exception { doTest(true);
267268269270271272273274
d.removeField(sfi); assertTrue(false); } catch (UnsupportedOperationException e) { assertTrue(true); } d.rollBackTrans(); } }
4950515253545556575859
try { ds.commitTrans(); } catch (DriverException e) { assertTrue(ds.getAsString().equals(table)); } ds.rollBackTrans(); } public void testAlphanumericFileFailOnWrite() throws Exception { AlphanumericDataSource ds = (AlphanumericDataSource) dsf.getDataSource("alphaWriteFile");
118119120121122123124125126127128
try { ds.commitTrans(); } catch (DriverException e) { assertTrue(ds.getAsString().equals(table)); } ds.rollBackTrans(); } public void testSpatialFilefailedOnClose() throws Exception { SpatialDataSource ds = (SpatialDataSource) dsf.getDataSource("spatialCloseFile");
211212213214215216217218219220221
try { ds.commitTrans(); } catch (DriverException e) { assertTrue(ds.getAsString().equals(table)); } ds.rollBackTrans(); } public void testSpatialDBfailedOnClose() throws Exception { SpatialDataSource ds = (SpatialDataSource) dsf.getDataSource("spatialCloseDB");