aboutsummaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
authorJames Ahlborn <jtahlborn@yahoo.com>2015-11-25 21:34:12 +0000
committerJames Ahlborn <jtahlborn@yahoo.com>2015-11-25 21:34:12 +0000
commit6deaa095c7c77dfebf797fe4e4e1ff086cf932d9 (patch)
tree002682c9c8b26ad8f666ea44cbd831f22bc0c8d0 /src/test
parent0d5f1566e0f22324d522ff8083bfd3a5020e3e9d (diff)
downloadjackcess-6deaa095c7c77dfebf797fe4e4e1ff086cf932d9.tar.gz
jackcess-6deaa095c7c77dfebf797fe4e4e1ff086cf932d9.zip
Add FileFormat.GENERIC_JET4 in order to support getting the file format for jet4 databases with no AccessVersion property (e.g. those created programmatically using ADOX). fixes issue #129
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@970 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'src/test')
-rw-r--r--[-rwxr-xr-x]src/test/data/V2007/complexDataTestV2007.accdbbin524288 -> 524288 bytes
-rw-r--r--[-rwxr-xr-x]src/test/data/V2007/linkerTestV2007.accdbbin454656 -> 454656 bytes
-rw-r--r--[-rwxr-xr-x]src/test/data/V2007/oldDatesV2007.accdbbin483328 -> 483328 bytes
-rw-r--r--[-rwxr-xr-x]src/test/data/V2007/testOleV2007.accdbbin8634368 -> 8634368 bytes
-rw-r--r--[-rwxr-xr-x]src/test/data/V2010/complexDataTestV2010.accdbbin544768 -> 544768 bytes
-rw-r--r--src/test/data/adox_jet4.mdbbin0 -> 65536 bytes
-rw-r--r--[-rwxr-xr-x]src/test/data/linkeeTest.accdbbin524288 -> 524288 bytes
-rw-r--r--src/test/java/com/healthmarketscience/jackcess/impl/JetFormatTest.java11
8 files changed, 11 insertions, 0 deletions
diff --git a/src/test/data/V2007/complexDataTestV2007.accdb b/src/test/data/V2007/complexDataTestV2007.accdb
index 3f9ff36..3f9ff36 100755..100644
--- a/src/test/data/V2007/complexDataTestV2007.accdb
+++ b/src/test/data/V2007/complexDataTestV2007.accdb
Binary files differ
diff --git a/src/test/data/V2007/linkerTestV2007.accdb b/src/test/data/V2007/linkerTestV2007.accdb
index 57c6b25..57c6b25 100755..100644
--- a/src/test/data/V2007/linkerTestV2007.accdb
+++ b/src/test/data/V2007/linkerTestV2007.accdb
Binary files differ
diff --git a/src/test/data/V2007/oldDatesV2007.accdb b/src/test/data/V2007/oldDatesV2007.accdb
index 0e96b91..0e96b91 100755..100644
--- a/src/test/data/V2007/oldDatesV2007.accdb
+++ b/src/test/data/V2007/oldDatesV2007.accdb
Binary files differ
diff --git a/src/test/data/V2007/testOleV2007.accdb b/src/test/data/V2007/testOleV2007.accdb
index 398818e..398818e 100755..100644
--- a/src/test/data/V2007/testOleV2007.accdb
+++ b/src/test/data/V2007/testOleV2007.accdb
Binary files differ
diff --git a/src/test/data/V2010/complexDataTestV2010.accdb b/src/test/data/V2010/complexDataTestV2010.accdb
index 7df4baa..7df4baa 100755..100644
--- a/src/test/data/V2010/complexDataTestV2010.accdb
+++ b/src/test/data/V2010/complexDataTestV2010.accdb
Binary files differ
diff --git a/src/test/data/adox_jet4.mdb b/src/test/data/adox_jet4.mdb
new file mode 100644
index 0000000..7fbdb1b
--- /dev/null
+++ b/src/test/data/adox_jet4.mdb
Binary files differ
diff --git a/src/test/data/linkeeTest.accdb b/src/test/data/linkeeTest.accdb
index a159097..a159097 100755..100644
--- a/src/test/data/linkeeTest.accdb
+++ b/src/test/data/linkeeTest.accdb
Binary files differ
diff --git a/src/test/java/com/healthmarketscience/jackcess/impl/JetFormatTest.java b/src/test/java/com/healthmarketscience/jackcess/impl/JetFormatTest.java
index e8a5287..93c5ca9 100644
--- a/src/test/java/com/healthmarketscience/jackcess/impl/JetFormatTest.java
+++ b/src/test/java/com/healthmarketscience/jackcess/impl/JetFormatTest.java
@@ -242,6 +242,17 @@ public class JetFormatTest extends TestCase {
}
}
}
+
+ Database db = null;
+ try {
+ db = open(Database.FileFormat.GENERIC_JET4,
+ new File(DIR_TEST_DATA, "adox_jet4.mdb"));
+ assertEquals(Database.FileFormat.GENERIC_JET4, db.getFileFormat());
+ } finally {
+ if(db != null) {
+ db.close();
+ }
+ }
}
}