From: James Ahlborn Date: Sat, 14 Nov 2009 13:00:21 +0000 (+0000) Subject: add some replid index tests X-Git-Tag: jackcess-1.1.20~9 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=df8fc3e6d7f317b30d577d34a347bf14bfda3a6f;p=jackcess.git add some replid index tests git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@408 f203690c-595d-4dc9-a70b-905162fa7fd2 --- diff --git a/test/data/test.mdb b/test/data/test.mdb index 23124d6..b9d004a 100644 Binary files a/test/data/test.mdb and b/test/data/test.mdb differ diff --git a/test/src/java/com/healthmarketscience/jackcess/IndexTest.java b/test/src/java/com/healthmarketscience/jackcess/IndexTest.java index d746844..4e547dd 100644 --- a/test/src/java/com/healthmarketscience/jackcess/IndexTest.java +++ b/test/src/java/com/healthmarketscience/jackcess/IndexTest.java @@ -363,7 +363,21 @@ public class IndexTest extends TestCase { db.close(); } + + public void testReplId() throws Exception + { + Database db = openCopy(new File("test/data/test.mdb")); + Table table = db.getTable("Table4"); + + for(int i = 0; i< 20; ++i) { + table.addRow("row" + i, Column.AUTO_NUMBER); + } + + assertEquals(20, table.getRowCount()); + db.close(); + } + private void checkIndexColumns(Table table, String... idxInfo) throws Exception {