summaryrefslogtreecommitdiffstats
path: root/test/src/java
diff options
context:
space:
mode:
authorJames Ahlborn <jtahlborn@yahoo.com>2009-11-14 13:00:21 +0000
committerJames Ahlborn <jtahlborn@yahoo.com>2009-11-14 13:00:21 +0000
commitdf8fc3e6d7f317b30d577d34a347bf14bfda3a6f (patch)
tree0b3993f4ae47d57879b4e61d32ab6cbba4160c08 /test/src/java
parentcc77d55b5104a8abfbf21a2eab943180fa5717b6 (diff)
downloadjackcess-df8fc3e6d7f317b30d577d34a347bf14bfda3a6f.tar.gz
jackcess-df8fc3e6d7f317b30d577d34a347bf14bfda3a6f.zip
add some replid index tests
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@408 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'test/src/java')
-rw-r--r--test/src/java/com/healthmarketscience/jackcess/IndexTest.java14
1 files changed, 14 insertions, 0 deletions
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
{