From 584802a0b811edc57fc5f423dc07f258cdede362 Mon Sep 17 00:00:00 2001 From: James Ahlborn Date: Tue, 26 Sep 2006 15:01:38 +0000 Subject: read index entries on demand git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@126 f203690c-595d-4dc9-a70b-905162fa7fd2 --- test/src/java/com/healthmarketscience/jackcess/IndexTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/src/java') diff --git a/test/src/java/com/healthmarketscience/jackcess/IndexTest.java b/test/src/java/com/healthmarketscience/jackcess/IndexTest.java index 33967bb..d8307a9 100644 --- a/test/src/java/com/healthmarketscience/jackcess/IndexTest.java +++ b/test/src/java/com/healthmarketscience/jackcess/IndexTest.java @@ -43,7 +43,6 @@ public class IndexTest extends TestCase { } public void testByteCodeComparator() { - // FIXME, writeme byte[] b0 = null; byte[] b1 = new byte[]{(byte)0x00}; byte[] b2 = new byte[]{(byte)0x00, (byte)0x00}; @@ -99,7 +98,10 @@ public class IndexTest extends TestCase { File origFile = new File("test/data/compIndexTest.mdb"); Database db = Database.open(origFile); Table t = db.getTable("Table1"); + Index index = t.getIndexes().get(0); + assertFalse(index.isInitialized()); assertEquals(512, countRows(t)); + assertEquals(512, index.getEntryCount()); db.close(); // copy to temp file and attemp to edit -- cgit v1.2.3