diff options
author | James Ahlborn <jtahlborn@yahoo.com> | 2007-12-03 04:55:26 +0000 |
---|---|---|
committer | James Ahlborn <jtahlborn@yahoo.com> | 2007-12-03 04:55:26 +0000 |
commit | 8614c39231a6b7ec81ec0c8c6ae53763ff7ad2b0 (patch) | |
tree | 28f4ac93e6a41f9487edc87baa85f1fec05055e9 /test | |
parent | 0501abfcdbf2bbf67d1811c1208bcaa26ca626e1 (diff) | |
download | jackcess-8614c39231a6b7ec81ec0c8c6ae53763ff7ad2b0.tar.gz jackcess-8614c39231a6b7ec81ec0c8c6ae53763ff7ad2b0.zip |
ditch builder-style methods on cursor impls, create CursorBuilder for simpler construction of Cursors
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@196 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'test')
-rw-r--r-- | test/src/java/com/healthmarketscience/jackcess/CursorTest.java | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/test/src/java/com/healthmarketscience/jackcess/CursorTest.java b/test/src/java/com/healthmarketscience/jackcess/CursorTest.java index 751c6cc..ad1a214 100644 --- a/test/src/java/com/healthmarketscience/jackcess/CursorTest.java +++ b/test/src/java/com/healthmarketscience/jackcess/CursorTest.java @@ -101,10 +101,13 @@ public class CursorTest extends TestCase { int type) throws Exception { - return Cursor.createIndexCursor( - table, idx, - idx.constructIndexRow(3 - type), (type == 0), - idx.constructIndexRow(8 + type), (type == 0)); + return new CursorBuilder(table) + .setIndex(idx) + .setStartEntry(3 - type) + .setStartRowInclusive(type == 0) + .setEndEntry(8 + type) + .setEndRowInclusive(type == 0) + .toCursor(); } public void testRowId() throws Exception { |