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