diff options
author | James Ahlborn <jtahlborn@yahoo.com> | 2006-08-04 01:59:00 +0000 |
---|---|---|
committer | James Ahlborn <jtahlborn@yahoo.com> | 2006-08-04 01:59:00 +0000 |
commit | 9839781fec7a593f3002e81c8018228c39985fdc (patch) | |
tree | 8080a03bf4ad86b7e260e8177c51b4040813786e /test | |
parent | 468745c86424defc88796ab8f45c8064fdedd851 (diff) | |
download | jackcess-9839781fec7a593f3002e81c8018228c39985fdc.tar.gz jackcess-9839781fec7a593f3002e81c8018228c39985fdc.zip |
add unit test for multi-page table defs
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@87 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'test')
-rw-r--r-- | test/data/test.mdb | bin | 135168 -> 2904064 bytes | |||
-rw-r--r-- | test/src/java/com/healthmarketscience/jackcess/DatabaseTest.java | 8 |
2 files changed, 7 insertions, 1 deletions
diff --git a/test/data/test.mdb b/test/data/test.mdb Binary files differindex caae8af..89a05a1 100644 --- a/test/data/test.mdb +++ b/test/data/test.mdb diff --git a/test/src/java/com/healthmarketscience/jackcess/DatabaseTest.java b/test/src/java/com/healthmarketscience/jackcess/DatabaseTest.java index 365b455..f11e1e1 100644 --- a/test/src/java/com/healthmarketscience/jackcess/DatabaseTest.java +++ b/test/src/java/com/healthmarketscience/jackcess/DatabaseTest.java @@ -68,7 +68,7 @@ public class DatabaseTest extends TestCase { public void testGetNextRow() throws Exception { Database db = open(); - assertEquals(1, db.getTableNames().size()); + assertEquals(2, db.getTableNames().size()); Table table = db.getTable("Table1"); Map<String, Object> row = table.getNextRow(); @@ -439,6 +439,12 @@ public class DatabaseTest extends TestCase { assertEquals(2, table.getIndexes().size()); assertEquals(3, table.getIndexSlotCount()); } + + public void testMultiPageTableDef() throws Exception + { + List<Column> columns = open().getTable("Table2").getColumns(); + assertEquals(89, columns.size()); + } private Object[] createTestRow() { return new Object[] {"Tim", "R", "McCune", 1234, (byte) 0xad, 555.66d, |