summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJames Ahlborn <jtahlborn@yahoo.com>2006-08-04 01:59:00 +0000
committerJames Ahlborn <jtahlborn@yahoo.com>2006-08-04 01:59:00 +0000
commit9839781fec7a593f3002e81c8018228c39985fdc (patch)
tree8080a03bf4ad86b7e260e8177c51b4040813786e /test
parent468745c86424defc88796ab8f45c8064fdedd851 (diff)
downloadjackcess-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.mdbbin135168 -> 2904064 bytes
-rw-r--r--test/src/java/com/healthmarketscience/jackcess/DatabaseTest.java8
2 files changed, 7 insertions, 1 deletions
diff --git a/test/data/test.mdb b/test/data/test.mdb
index caae8af..89a05a1 100644
--- a/test/data/test.mdb
+++ b/test/data/test.mdb
Binary files differ
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,