minor change to test cases

Former-commit-id: bbfc241e7576b508af819f7fe66892da0511e549
This commit is contained in:
Jeremy Long
2014-11-15 08:22:43 -05:00
parent aa126039e5
commit 3f3ac86d38

View File

@@ -42,12 +42,12 @@ public class DownloaderIntegrationTest extends BaseTest {
URL url = new URL(Settings.getString(Settings.KEYS.CVE_MODIFIED_20_URL));
File outputPath = new File("target/downloaded_cve.xml");
Downloader.fetchFile(url, outputPath);
assertTrue(outputPath.isFile());
}
@Test
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);
assertTrue("timestamp equal to zero?", timestamp > 0);
}