aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/java/com/healthmarketscience/jackcess/DatabaseTest.java
diff options
context:
space:
mode:
authorJames Ahlborn <jtahlborn@yahoo.com>2017-05-03 01:30:57 +0000
committerJames Ahlborn <jtahlborn@yahoo.com>2017-05-03 01:30:57 +0000
commit54972c4de58d2e92f818a8adb8f772513a590d19 (patch)
treeb078aeb2842cad3a220e98d2d699f38a33c97016 /src/test/java/com/healthmarketscience/jackcess/DatabaseTest.java
parent1f28e955e5dd655950ef8c3903439d70eb4d375d (diff)
downloadjackcess-54972c4de58d2e92f818a8adb8f772513a590d19.tar.gz
jackcess-54972c4de58d2e92f818a8adb8f772513a590d19.zip
Cover the GENERIC_JET4 format in unit tests, thanks to Gord Thompson
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1093 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'src/test/java/com/healthmarketscience/jackcess/DatabaseTest.java')
-rw-r--r--src/test/java/com/healthmarketscience/jackcess/DatabaseTest.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/java/com/healthmarketscience/jackcess/DatabaseTest.java b/src/test/java/com/healthmarketscience/jackcess/DatabaseTest.java
index 6a6fd34..025e180 100644
--- a/src/test/java/com/healthmarketscience/jackcess/DatabaseTest.java
+++ b/src/test/java/com/healthmarketscience/jackcess/DatabaseTest.java
@@ -742,7 +742,9 @@ public class DatabaseTest extends TestCase
Arrays.asList("MSysObjects", "MSysQueries", "MSysACES",
"MSysRelationships"));
- if (fileFormat.ordinal() < FileFormat.V2003.ordinal()) {
+ if (fileFormat == FileFormat.GENERIC_JET4) {
+ assertNull("file format: " + fileFormat, db.getSystemTable("MSysAccessObjects"));
+ } else if (fileFormat.ordinal() < FileFormat.V2003.ordinal()) {
assertNotNull("file format: " + fileFormat, db.getSystemTable("MSysAccessObjects"));
sysTables.add("MSysAccessObjects");
} else {