diff options
author | James Ahlborn <jtahlborn@yahoo.com> | 2010-03-17 03:02:47 +0000 |
---|---|---|
committer | James Ahlborn <jtahlborn@yahoo.com> | 2010-03-17 03:02:47 +0000 |
commit | 16b40c192f4d9af7f36500bd0dd832d812b148ad (patch) | |
tree | b4a8f6c319bdc3905a00f38d1f6ef2edc87ee0c8 /test/src/java | |
parent | 3150be72471242698cd168420f6758cbef831be7 (diff) | |
download | jackcess-16b40c192f4d9af7f36500bd0dd832d812b148ad.tar.gz jackcess-16b40c192f4d9af7f36500bd0dd832d812b148ad.zip |
add file extension to FileFormat
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/branches/newformats@448 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'test/src/java')
-rw-r--r-- | test/src/java/com/healthmarketscience/jackcess/JetFormatTest.java | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/test/src/java/com/healthmarketscience/jackcess/JetFormatTest.java b/test/src/java/com/healthmarketscience/jackcess/JetFormatTest.java index a25810e..96365e4 100644 --- a/test/src/java/com/healthmarketscience/jackcess/JetFormatTest.java +++ b/test/src/java/com/healthmarketscience/jackcess/JetFormatTest.java @@ -90,15 +90,9 @@ public final class JetFormatTest extends TestCase { private static File getFileForBasename(Basename basename, Database.FileFormat fileFormat) { - final String filenameExtension; - if (Database.FileFormat.V2007.equals(fileFormat)) { - filenameExtension = ".accdb"; - } else { - filenameExtension = ".mdb"; - } - return new File(DIR_TEST_DATA, - fileFormat.name() + "/" + basename.basename + fileFormat.name() + filenameExtension); + fileFormat.name() + "/" + basename.basename + fileFormat.name() + + fileFormat.getFileExtension()); } } |