diff options
author | James Ahlborn <jtahlborn@yahoo.com> | 2007-11-28 17:40:59 +0000 |
---|---|---|
committer | James Ahlborn <jtahlborn@yahoo.com> | 2007-11-28 17:40:59 +0000 |
commit | a926006cdd0ba50273f302bdd4ec69c6028d677c (patch) | |
tree | a71bfcb378a0ee4737cc2260d7fed7710f08651c /test/src/java | |
parent | f7c4cad8e51d083571ed1ec0ebab61ac205399e2 (diff) | |
download | jackcess-a926006cdd0ba50273f302bdd4ec69c6028d677c.tar.gz jackcess-a926006cdd0ba50273f302bdd4ec69c6028d677c.zip |
implement save/restore in Cursor; use during find calls
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@187 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'test/src/java')
-rw-r--r-- | test/src/java/com/healthmarketscience/jackcess/CursorTest.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/src/java/com/healthmarketscience/jackcess/CursorTest.java b/test/src/java/com/healthmarketscience/jackcess/CursorTest.java index dc6cc01..a99abef 100644 --- a/test/src/java/com/healthmarketscience/jackcess/CursorTest.java +++ b/test/src/java/com/healthmarketscience/jackcess/CursorTest.java @@ -129,11 +129,18 @@ public class CursorTest extends TestCase { "value", "data" + 6), cursor.getCurrentRow()); + assertFalse(cursor.findRow(createExpectedRow( + "id", 13, + "value", "data" + 8))); + assertEquals(createExpectedRow("id", 6, + "value", "data" + 6), + cursor.getCurrentRow()); + assertEquals("data" + 9, Cursor.findValue(table, table.getColumn("value"), table.getColumn("id"), 9)); - + db.close(); } |