mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-24 01:51:49 +01:00
implemented one test to connect to a MySQL DB Server
Former-commit-id: ff8217ef7634412df10974e1e2648b3ab4171d83
This commit is contained in:
@@ -51,12 +51,20 @@ public class CveDBMySQLTest {
|
|||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testOpen() throws Exception {
|
public void testOpen() throws Exception {
|
||||||
/*
|
// String con = Settings.getString(Settings.KEYS.DB_CONNECTION_STRING);
|
||||||
|
// String driver = Settings.getString(Settings.KEYS.DB_DRIVER_NAME);
|
||||||
|
// String path = Settings.getString(Settings.KEYS.DB_DRIVER_PATH);
|
||||||
|
//
|
||||||
|
// System.out.println("con: " + con);
|
||||||
|
// System.out.println("driver: " + driver);
|
||||||
|
// System.out.println("path: " + path);
|
||||||
|
// Settings.setString(Settings.KEYS.DB_CONNECTION_STRING, "jdbc:mysql://localhost:3306/dependencycheck");
|
||||||
|
// Settings.setString(Settings.KEYS.DB_DRIVER_NAME, "com.mysql.jdbc.Driver");
|
||||||
|
// Settings.setString(Settings.KEYS.DB_DRIVER_PATH, "c:\\Users\\jeremy\\Documents\\NetBeansProjects\\DependencyCheck\\dependency-check-core/src/test/resources/mysql-connector-java-5.1.27-bin.jar");
|
||||||
|
|
||||||
CveDB instance = new CveDB();
|
CveDB instance = new CveDB();
|
||||||
instance.open();
|
instance.open();
|
||||||
instance.commit();
|
|
||||||
instance.close();
|
instance.close();
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user