mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-17 23:04:07 +01:00
added additional tests
Former-commit-id: b377007cf39b3f828fb336e336804b7db56ff923
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