summaryrefslogtreecommitdiffstats
path: root/test/src/java
diff options
context:
space:
mode:
authorJames Ahlborn <jtahlborn@yahoo.com>2006-09-26 15:01:38 +0000
committerJames Ahlborn <jtahlborn@yahoo.com>2006-09-26 15:01:38 +0000
commit584802a0b811edc57fc5f423dc07f258cdede362 (patch)
tree52fb9bc7a6c61986bfd09e34834b82e930c6d685 /test/src/java
parent0346306296d835f008f890ac9ad9826797254b91 (diff)
downloadjackcess-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.java4
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