diff options
author | James Ahlborn <jtahlborn@yahoo.com> | 2006-09-26 15:01:38 +0000 |
---|---|---|
committer | James Ahlborn <jtahlborn@yahoo.com> | 2006-09-26 15:01:38 +0000 |
commit | 584802a0b811edc57fc5f423dc07f258cdede362 (patch) | |
tree | 52fb9bc7a6c61986bfd09e34834b82e930c6d685 /test/src/java | |
parent | 0346306296d835f008f890ac9ad9826797254b91 (diff) | |
download | jackcess-584802a0b811edc57fc5f423dc07f258cdede362.tar.gz jackcess-584802a0b811edc57fc5f423dc07f258cdede362.zip |
read index entries on demand
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@126 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'test/src/java')
-rw-r--r-- | test/src/java/com/healthmarketscience/jackcess/IndexTest.java | 4 |
1 files changed, 3 insertions, 1 deletions
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 |