mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-20 16:24:11 +01:00
renamed getFile to getDataFile and added a no frills getFile function
Former-commit-id: 26c515de47c1ec510c1249e7caab0b69ef189523
This commit is contained in:
@@ -64,16 +64,16 @@ public class SettingsTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test of getFile method, of class Settings.
|
||||
* Test of getDataFile method, of class Settings.
|
||||
*/
|
||||
@Test
|
||||
public void testGetFile() throws IOException {
|
||||
public void testGetDataFile() throws IOException {
|
||||
String key = Settings.KEYS.CVE_DATA_DIRECTORY;
|
||||
String expResult = "data" + File.separator + "cve";
|
||||
File result = Settings.getFile(key);
|
||||
File result = Settings.getDataFile(key);
|
||||
Assert.assertTrue(result.getAbsolutePath().endsWith(expResult));
|
||||
|
||||
result = Settings.getFile(Settings.KEYS.DATA_DIRECTORY);
|
||||
result = Settings.getDataFile(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