Package org.gdbms.engine.data

Examples of org.gdbms.engine.data.SpatialDataSource.undo()


        d.undo();
        assertTrue(d.getAsString().equals(snapshot5));
        d.redo();
        assertTrue(d.getAsString().equals(snapshot6));
        d.undo();
        d.undo();
        assertTrue(d.getAsString().equals(snapshot4));
        d.undo();
        assertTrue(d.getAsString().equals(snapshot3));
        d.undo();
        assertTrue(d.getAsString().equals(snapshot2));
View Full Code Here


        d.redo();
        assertTrue(d.getAsString().equals(snapshot6));
        d.undo();
        d.undo();
        assertTrue(d.getAsString().equals(snapshot4));
        d.undo();
        assertTrue(d.getAsString().equals(snapshot3));
        d.undo();
        assertTrue(d.getAsString().equals(snapshot2));
        d.redo();
        assertTrue(d.getAsString().equals(snapshot3));
View Full Code Here

        d.undo();
        d.undo();
        assertTrue(d.getAsString().equals(snapshot4));
        d.undo();
        assertTrue(d.getAsString().equals(snapshot3));
        d.undo();
        assertTrue(d.getAsString().equals(snapshot2));
        d.redo();
        assertTrue(d.getAsString().equals(snapshot3));
        d.undo();
        d.undo();
View Full Code Here

        assertTrue(d.getAsString().equals(snapshot3));
        d.undo();
        assertTrue(d.getAsString().equals(snapshot2));
        d.redo();
        assertTrue(d.getAsString().equals(snapshot3));
        d.undo();
        d.undo();
        assertTrue(d.getAsString().equals(snapshot1));
        d.rollBackTrans();
    }
   
View Full Code Here

        d.undo();
        assertTrue(d.getAsString().equals(snapshot2));
        d.redo();
        assertTrue(d.getAsString().equals(snapshot3));
        d.undo();
        d.undo();
        assertTrue(d.getAsString().equals(snapshot1));
        d.rollBackTrans();
    }
   
    public void testAddTwoRowsAndUndoBoth() throws Exception {
View Full Code Here

        d.buildIndex();
        Value[] row = d.getRow(0);
        long rc = d.getRowCount();
        d.insertFilledRow(row);
        d.insertFilledRow(row);
        d.undo();
        d.undo();
        assertTrue(d.getFieldValue(rc, 0) instanceof NullValue);
        assertTrue(d.getFieldValue(rc - 1, 0) instanceof NullValue);
        d.rollBackTrans();
    }
View Full Code Here

        Value[] row = d.getRow(0);
        long rc = d.getRowCount();
        d.insertFilledRow(row);
        d.insertFilledRow(row);
        d.undo();
        d.undo();
        assertTrue(d.getFieldValue(rc, 0) instanceof NullValue);
        assertTrue(d.getFieldValue(rc - 1, 0) instanceof NullValue);
        d.rollBackTrans();
    }
   
View Full Code Here

        Set set4 = getValuesSet(d);
        d.setFieldValue(0, 1, ValueFactory.createValue(1));
        Set set5 = getValuesSet(d);
        d.insertEmptyRowAt(0);
        Set set6 = getValuesSet(d);
        d.undo();
        assertTrue(getValuesSet(d).equals(set5));
        d.redo();
        assertTrue(getValuesSet(d).equals(set6));
        d.undo();
        d.undo();
View Full Code Here

        Set set6 = getValuesSet(d);
        d.undo();
        assertTrue(getValuesSet(d).equals(set5));
        d.redo();
        assertTrue(getValuesSet(d).equals(set6));
        d.undo();
        d.undo();
        assertTrue(getValuesSet(d).equals(set4));
        d.undo();
        assertTrue(getValuesSet(d).equals(set3));
        d.undo();
View Full Code Here

        d.undo();
        assertTrue(getValuesSet(d).equals(set5));
        d.redo();
        assertTrue(getValuesSet(d).equals(set6));
        d.undo();
        d.undo();
        assertTrue(getValuesSet(d).equals(set4));
        d.undo();
        assertTrue(getValuesSet(d).equals(set3));
        d.undo();
        assertTrue(getValuesSet(d).equals(set2));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.