initial [empty] version

Former-commit-id: b4eca7805e1c88f64ff4811c02bd3f0c4c10c9d2
This commit is contained in:
Jeremy Long
2014-01-12 08:19:53 -05:00
parent 7694402ae4
commit 3c2c99c236

View File

@@ -0,0 +1,85 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.owasp.dependencycheck.data.nvdcve;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
/**
*
* @author jeremy
*/
public class CveDBMySQLTest {
@BeforeClass
public static void setUpClass() {
}
@AfterClass
public static void tearDownClass() {
}
@Before
public void setUp() throws Exception {
}
@After
public void tearDown() throws Exception {
}
/**
* Pretty useless tests of open, commit, and close methods, of class CveDB.
*/
@Test
public void testOpen() throws Exception {
/*
CveDB instance = new CveDB();
instance.open();
instance.commit();
instance.close();
*/
}
/**
* Test of getCPEs method, of class CveDB.
*/
@Test
public void testGetCPEs() throws Exception {
/*
CveDB instance = new CveDB();
try {
String vendor = "apache";
String product = "struts";
instance.open();
Set<VulnerableSoftware> result = instance.getCPEs(vendor, product);
assertTrue(result.size() > 5);
} finally {
instance.close();
}
*/
}
/**
* Test of getVulnerabilities method, of class CveDB.
*/
@Test
public void testGetVulnerabilities() throws Exception {
/*
String cpeStr = "cpe:/a:apache:struts:2.1.2";
CveDB instance = new CveDB();
try {
instance.open();
List result = instance.getVulnerabilities(cpeStr);
assertTrue(result.size() > 5);
} finally {
instance.close();
}
*/
}
}