* DOCUMENT ME!
*
* @throws Exception DOCUMENT ME!
*/
private void testUpdate(String dsName, int mode) throws Exception {
DataSource d = ds.getDataSource(dsName);
d.beginTrans();
d.insertEmptyRow();
d.setFieldValue(0, 1, ValueFactory.createValue("edicion1"));
d.setFieldValue(1, 1, ValueFactory.createValue("edicion2"));
d.setFieldValue(1, 2, ValueFactory.createValue("edicion2"));
d.setFieldValue(3, 1, ValueFactory.createValue("edicion3"));
d.setFieldValue(3, 0, ValueFactory.createValue(3));
d.commitTrans();
d = ds.getDataSource(dsName);
d.start();
assertTrue(((BooleanValue)d.getFieldValue(0, 0).equals(ValueFactory.createValue(0))).getValue());
assertTrue(((BooleanValue)d.getFieldValue(0, 1).equals(ValueFactory.createValue("edicion1"))).getValue());
assertTrue(((BooleanValue)d.getFieldValue(0, 2).equals(ValueFactory.createValue("gonzalez"))).getValue());
assertTrue(((BooleanValue)d.getFieldValue(1, 0).equals(ValueFactory.createValue(1))).getValue());
assertTrue(((BooleanValue)d.getFieldValue(1, 1).equals(ValueFactory.createValue("edicion2"))).getValue());
assertTrue(((BooleanValue)d.getFieldValue(1, 2).equals(ValueFactory.createValue("edicion2"))).getValue());
assertTrue(((BooleanValue)d.getFieldValue(2, 0).equals(ValueFactory.createValue(2))).getValue());
assertTrue(((BooleanValue)d.getFieldValue(2, 1).equals(ValueFactory.createValue("fernan"))).getValue());
assertTrue(d.getFieldValue(2, 2) instanceof NullValue);
assertTrue(((BooleanValue)d.getFieldValue(3, 0).equals(ValueFactory.createValue(3))).getValue());
assertTrue(((BooleanValue)d.getFieldValue(3, 1).equals(ValueFactory.createValue("edicion3"))).getValue());
assertTrue(d.getFieldValue(3, 2) instanceof NullValue);
assertTrue(d.getRowCount() == 4);
d.stop();
}