summaryrefslogtreecommitdiffstats
path: root/test/src/java
diff options
context:
space:
mode:
authorJames Ahlborn <jtahlborn@yahoo.com>2010-03-17 03:02:47 +0000
committerJames Ahlborn <jtahlborn@yahoo.com>2010-03-17 03:02:47 +0000
commit16b40c192f4d9af7f36500bd0dd832d812b148ad (patch)
treeb4a8f6c319bdc3905a00f38d1f6ef2edc87ee0c8 /test/src/java
parent3150be72471242698cd168420f6758cbef831be7 (diff)
downloadjackcess-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.java10
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());
}
}