mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-01-14 15:53:36 +01:00
fixed broken test case
Former-commit-id: 84d34cf826fc4eda8fa72592d9f3f959e9bf4cea
This commit is contained in:
@@ -71,10 +71,11 @@ public class DatabaseUpdaterIntegrationTest {
|
||||
*/
|
||||
@Test
|
||||
public void testBatchUpdate() throws Exception {
|
||||
// File file = new File("target/test-classes/nvdcve-2.0-2012.xml");
|
||||
// String path = "file:///" + file.getCanonicalPath();
|
||||
// Settings.setString(Settings.KEYS.BATCH_UPDATE_URL, path);
|
||||
// DatabaseUpdater instance = new DatabaseUpdater();
|
||||
// instance.update();
|
||||
File file = new File(this.getClass().getClassLoader().getResource("data.zip").toURI());
|
||||
String path = "file:///" + file.getCanonicalPath();
|
||||
Settings.setString(Settings.KEYS.BATCH_UPDATE_URL, path);
|
||||
DatabaseUpdater instance = new DatabaseUpdater();
|
||||
instance.update();
|
||||
Settings.setString(Settings.KEYS.BATCH_UPDATE_URL, "");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user