fixed issue with data directory and made a few other minor changes

Former-commit-id: 74ba4f4ef797bfa13d6c7c3335951f1f9b11f690
This commit is contained in:
Jeremy Long
2013-08-01 10:57:44 -04:00
parent 32aabe78b1
commit 59fae2b80a
12 changed files with 269 additions and 20 deletions

View File

@@ -67,7 +67,7 @@ public class DownloaderIntegrationTest {
String outputPath = "target/downloaded_cpe.xml";
Downloader.fetchFile(url, outputPath, true);
url = new URL("http://static.nvd.nist.gov/feeds/xml/cve/nvdcve-2.0-2010.xml");
url = new URL(Settings.getString(Settings.KEYS.CVE_MODIFIED_20_URL));
outputPath = "target/downloaded_cve.xml";
Downloader.fetchFile(url, outputPath, false);

View File

@@ -67,7 +67,7 @@ public class SettingsTest {
* Test of getFile method, of class Settings.
*/
@Test
public void testGetFile() {
public void testGetFile() throws IOException {
String key = Settings.KEYS.CPE_DATA_DIRECTORY;
String expResult = "data" + File.separator + "cpe";
File result = Settings.getFile(key);