Search in sources :

Example 1 with DatabaseConnector

use of com.sldeditor.tool.dbconnectionlist.DatabaseConnector in project sldeditor by robward-scisys.

the class DatabaseConnectorTest method testDatabaseConnector.

/**
 * Test method for {@link com.sldeditor.tool.dbconnectionlist.DatabaseConnector#DatabaseConnector()}.
 */
@Test
public void testDatabaseConnector() {
    DatabaseConnector testObj = new DatabaseConnector();
    DatabaseConnection connection = DatabaseConnectionFactory.createPostgres();
    testObj.setConnection(connection);
    DatabaseConnection connection2 = testObj.getConnection();
    assertNotNull(connection2);
    assertNotNull(testObj.getPanel());
}
Also used : DatabaseConnector(com.sldeditor.tool.dbconnectionlist.DatabaseConnector) DatabaseConnection(com.sldeditor.common.data.DatabaseConnection) Test(org.junit.Test)

Aggregations

DatabaseConnection (com.sldeditor.common.data.DatabaseConnection)1 DatabaseConnector (com.sldeditor.tool.dbconnectionlist.DatabaseConnector)1 Test (org.junit.Test)1