|
From: <mla...@us...> - 2003-04-13 16:50:02
|
Update of /cvsroot/dbunit/dbunit/src/test/org/dbunit/dataset
In directory sc8-pr-cvs1:/tmp/cvs-serv1781/src/test/org/dbunit/dataset
Modified Files:
ForwardOnlyTableTest.java
Log Message:
Modified INSERT, UPDATE, REFRESH and INSERT_IDENTITY operations to
support buffered dataset. Not supported by other operations.
Index: ForwardOnlyTableTest.java
===================================================================
RCS file: /cvsroot/dbunit/dbunit/src/test/org/dbunit/dataset/ForwardOnlyTableTest.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ForwardOnlyTableTest.java 13 Apr 2003 02:40:11 -0000 1.1
--- ForwardOnlyTableTest.java 13 Apr 2003 16:49:58 -0000 1.2
***************
*** 98,100 ****
--- 98,117 ----
}
}
+
+ public void testGetValueOnEmptyTable() throws Exception
+ {
+ MockTableMetaData metaData =
+ new MockTableMetaData("TABLE", new String[] {"C1"});
+ ITable table = new ForwardOnlyTable(new DefaultTable(metaData));
+ try
+ {
+ table.getValue(0, "C1");
+ fail("Should have throw RowOutOfBoundsException");
+ }
+ catch (RowOutOfBoundsException e)
+ {
+
+ }
+ }
+
}
|