updated test for getFile to return the DATA_DIRECTORY

Former-commit-id: f16d34a12416999c28597261b409c997ebc0c3ad
This commit is contained in:
Jeremy Long
2013-08-29 06:14:25 -04:00
parent 3f1ee0b1b8
commit 029e0e5044

View File

@@ -73,9 +73,9 @@ public class SettingsTest {
File result = Settings.getFile(key);
Assert.assertTrue(result.getAbsolutePath().endsWith(expResult));
key = "an invalid key!!!";
result = Settings.getFile(key, expResult);
Assert.assertTrue(result.getAbsolutePath().endsWith(expResult));
result = Settings.getFile(Settings.KEYS.DATA_DIRECTORY);
String path = result.getPath();
Assert.assertTrue(path.endsWith("data") || path.endsWith("data" + File.separator));
}
/**