updated tests to utilize temp directory

Former-commit-id: 072c2f51dd0077f3e6c34c3bd6340e9da0a9360c
This commit is contained in:
Jeremy Long
2013-09-01 07:27:13 -04:00
parent 7d1fa93e98
commit 22a27fb146
5 changed files with 114 additions and 33 deletions

View File

@@ -223,7 +223,7 @@ public class DataStoreMetaInfo {
*
* @return the properties file
*/
public File getPropertiesFile() {
public static File getPropertiesFile() {
final File dataDirectory = Settings.getFile(Settings.KEYS.DATA_DIRECTORY);
final File file = new File(dataDirectory, UPDATE_PROPERTIES_FILE);
return file;

View File

@@ -260,7 +260,7 @@ public class DatabaseUpdater implements CachedWebDataSource {
if (data.exists()) {
FileUtils.delete(data);
}
data = properties.getPropertiesFile();
data = DataStoreMetaInfo.getPropertiesFile();
if (data.exists()) {
FileUtils.delete(data);
}