mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-25 02:21:28 +01:00
added additional tests
Former-commit-id: 62c76f61dbd82734380a5607750341995a7ee0b7
This commit is contained in:
@@ -82,4 +82,12 @@ public class DownloaderIntegrationTest {
|
|||||||
long timestamp = Downloader.getLastModified(url);
|
long timestamp = Downloader.getLastModified(url);
|
||||||
assertTrue("timestamp equal to zero?", timestamp > 0);
|
assertTrue("timestamp equal to zero?", timestamp > 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testGetLastModified_file() throws Exception {
|
||||||
|
File f = new File("target/test-classes/nvdcve-2.0-2012.xml");
|
||||||
|
URL url = new URL("file://" + f.getCanonicalPath());
|
||||||
|
long timestamp = Downloader.getLastModified(url);
|
||||||
|
assertTrue("timestamp equal to zero?", timestamp > 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user