]> source.dussan.org Git - jackcess.git/commitdiff
add some replid index tests
authorJames Ahlborn <jtahlborn@yahoo.com>
Sat, 14 Nov 2009 13:00:21 +0000 (13:00 +0000)
committerJames Ahlborn <jtahlborn@yahoo.com>
Sat, 14 Nov 2009 13:00:21 +0000 (13:00 +0000)
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@408 f203690c-595d-4dc9-a70b-905162fa7fd2

test/data/test.mdb
test/src/java/com/healthmarketscience/jackcess/IndexTest.java

index 23124d6793a6acdebc434e7e80086201173c0a59..b9d004aa5f8287ae413074a933e2c54235f1de29 100644 (file)
Binary files a/test/data/test.mdb and b/test/data/test.mdb differ
index d7468444563895409025384101f89d77e9a1a82a..4e547dd3cfcbcf26bce7d402067ec8df38be64c2 100644 (file)
@@ -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
   {