diff options
author | James Ahlborn <jtahlborn@yahoo.com> | 2015-11-25 21:34:12 +0000 |
---|---|---|
committer | James Ahlborn <jtahlborn@yahoo.com> | 2015-11-25 21:34:12 +0000 |
commit | 6deaa095c7c77dfebf797fe4e4e1ff086cf932d9 (patch) | |
tree | 002682c9c8b26ad8f666ea44cbd831f22bc0c8d0 /src/test | |
parent | 0d5f1566e0f22324d522ff8083bfd3a5020e3e9d (diff) | |
download | jackcess-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.accdb | bin | 524288 -> 524288 bytes | |||
-rw-r--r--[-rwxr-xr-x] | src/test/data/V2007/linkerTestV2007.accdb | bin | 454656 -> 454656 bytes | |||
-rw-r--r--[-rwxr-xr-x] | src/test/data/V2007/oldDatesV2007.accdb | bin | 483328 -> 483328 bytes | |||
-rw-r--r--[-rwxr-xr-x] | src/test/data/V2007/testOleV2007.accdb | bin | 8634368 -> 8634368 bytes | |||
-rw-r--r--[-rwxr-xr-x] | src/test/data/V2010/complexDataTestV2010.accdb | bin | 544768 -> 544768 bytes | |||
-rw-r--r-- | src/test/data/adox_jet4.mdb | bin | 0 -> 65536 bytes | |||
-rw-r--r--[-rwxr-xr-x] | src/test/data/linkeeTest.accdb | bin | 524288 -> 524288 bytes | |||
-rw-r--r-- | src/test/java/com/healthmarketscience/jackcess/impl/JetFormatTest.java | 11 |
8 files changed, 11 insertions, 0 deletions
diff --git a/src/test/data/V2007/complexDataTestV2007.accdb b/src/test/data/V2007/complexDataTestV2007.accdb Binary files differindex 3f9ff36..3f9ff36 100755..100644 --- a/src/test/data/V2007/complexDataTestV2007.accdb +++ b/src/test/data/V2007/complexDataTestV2007.accdb diff --git a/src/test/data/V2007/linkerTestV2007.accdb b/src/test/data/V2007/linkerTestV2007.accdb Binary files differindex 57c6b25..57c6b25 100755..100644 --- a/src/test/data/V2007/linkerTestV2007.accdb +++ b/src/test/data/V2007/linkerTestV2007.accdb diff --git a/src/test/data/V2007/oldDatesV2007.accdb b/src/test/data/V2007/oldDatesV2007.accdb Binary files differindex 0e96b91..0e96b91 100755..100644 --- a/src/test/data/V2007/oldDatesV2007.accdb +++ b/src/test/data/V2007/oldDatesV2007.accdb diff --git a/src/test/data/V2007/testOleV2007.accdb b/src/test/data/V2007/testOleV2007.accdb Binary files differindex 398818e..398818e 100755..100644 --- a/src/test/data/V2007/testOleV2007.accdb +++ b/src/test/data/V2007/testOleV2007.accdb diff --git a/src/test/data/V2010/complexDataTestV2010.accdb b/src/test/data/V2010/complexDataTestV2010.accdb Binary files differindex 7df4baa..7df4baa 100755..100644 --- a/src/test/data/V2010/complexDataTestV2010.accdb +++ b/src/test/data/V2010/complexDataTestV2010.accdb diff --git a/src/test/data/adox_jet4.mdb b/src/test/data/adox_jet4.mdb Binary files differnew file mode 100644 index 0000000..7fbdb1b --- /dev/null +++ b/src/test/data/adox_jet4.mdb diff --git a/src/test/data/linkeeTest.accdb b/src/test/data/linkeeTest.accdb Binary files differindex a159097..a159097 100755..100644 --- a/src/test/data/linkeeTest.accdb +++ b/src/test/data/linkeeTest.accdb 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(); + } + } } } |