added additional tests

Former-commit-id: 62c76f61dbd82734380a5607750341995a7ee0b7
This commit is contained in:
Jeremy Long
2013-08-04 14:48:21 -04:00
parent e06b62b92a
commit c02345d731

View File

@@ -82,4 +82,12 @@ public class DownloaderIntegrationTest {
long timestamp = Downloader.getLastModified(url);
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);
}
}