mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-20 00:04:27 +01:00
minor change to test cases
Former-commit-id: bbfc241e7576b508af819f7fe66892da0511e549
This commit is contained in:
@@ -42,12 +42,12 @@ public class DownloaderIntegrationTest extends BaseTest {
|
|||||||
URL url = new URL(Settings.getString(Settings.KEYS.CVE_MODIFIED_20_URL));
|
URL url = new URL(Settings.getString(Settings.KEYS.CVE_MODIFIED_20_URL));
|
||||||
File outputPath = new File("target/downloaded_cve.xml");
|
File outputPath = new File("target/downloaded_cve.xml");
|
||||||
Downloader.fetchFile(url, outputPath);
|
Downloader.fetchFile(url, outputPath);
|
||||||
|
assertTrue(outputPath.isFile());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testGetLastModified() throws Exception {
|
public void testGetLastModified() throws Exception {
|
||||||
URL url = new URL("http://nvd.nist.gov/download/nvdcve-2012.xml");
|
URL url = new URL(Settings.getString(Settings.KEYS.CVE_MODIFIED_20_URL));
|
||||||
long timestamp = Downloader.getLastModified(url);
|
long timestamp = Downloader.getLastModified(url);
|
||||||
assertTrue("timestamp equal to zero?", timestamp > 0);
|
assertTrue("timestamp equal to zero?", timestamp > 0);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user