mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-01-13 23:33:37 +01:00
updated test for getFile to return the DATA_DIRECTORY
Former-commit-id: c4f3994611ad1fbe4d7443af59c8fecab133c6e7
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user