diff options
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, |