diff options
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 { |