added additional tests

Former-commit-id: b377007cf39b3f828fb336e336804b7db56ff923
This commit is contained in:
Jeremy Long
2013-08-04 14:48:21 -04:00
parent 672e59e657
commit ebabc1117e

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);
}
}