diff options
author | James Ahlborn <jtahlborn@yahoo.com> | 2009-11-14 13:00:21 +0000 |
---|---|---|
committer | James Ahlborn <jtahlborn@yahoo.com> | 2009-11-14 13:00:21 +0000 |
commit | df8fc3e6d7f317b30d577d34a347bf14bfda3a6f (patch) | |
tree | 0b3993f4ae47d57879b4e61d32ab6cbba4160c08 /test/src/java | |
parent | cc77d55b5104a8abfbf21a2eab943180fa5717b6 (diff) | |
download | jackcess-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.java | 14 |
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 { |