updated test for getFile to return the DATA_DIRECTORY

Former-commit-id: c4f3994611ad1fbe4d7443af59c8fecab133c6e7
This commit is contained in:
Jeremy Long
2013-08-29 06:14:25 -04:00
parent 717b36ae09
commit 845101cda6

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));
}
/**