Skip to content

Commit

Permalink
Introduce getter for TEST_TEMP_DIR
Browse files Browse the repository at this point in the history
  • Loading branch information
spannm committed Mar 2, 2024
1 parent adaea3f commit 27cab25
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/test/java/net/ucanaccess/test/UcanaccessBaseTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ protected final String getAccessTempPath() {
} else {
fileAccDb = copyResourceToTempFile(accessPath);
if (fileAccDb == null) {
fileAccDb = new File(TEST_TEMP_DIR, accessPath);
fileAccDb = new File(getTestTempDir(), accessPath);
if (!fileAccDb.exists()) {
createNewDatabase(getFileFormat(), fileAccDb);
fileAccDb.deleteOnExit();
Expand All @@ -259,6 +259,10 @@ protected static final String getTestDbDir() {
return "testdbs/";
}

protected static final File getTestTempDir() {
return TEST_TEMP_DIR;
}

/**
* Unique string based on current date/time to be used in names of temporary files.
*/
Expand Down Expand Up @@ -299,7 +303,7 @@ protected static File createTempFileName(String _prefix, String _suffix) {
}
}
name += new TempFileNameString() + suffix;
return new File(TEST_TEMP_DIR, name);
return new File(getTestTempDir(), name);
}

/**
Expand Down

0 comments on commit 27cab25

Please sign in to comment.