package Database;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import static org.junit.Assert.*;

public class DatabaseConnectorTest {

    @Before
    public void setUp() throws Exception {

    }

    @After
    public void tearDown() throws Exception {

    }

    @Test
    public void testConnect() throws Exception {

    }

    @Test
    public void testDisconnect() throws Exception {

    }
}
@@ -85,16 +85,45 @@
 .Test;%0A%0A
+import java.sql.Connection;%0A%0A
 import s
@@ -183,24 +183,66 @@
 ctorTest %7B%0A%0A
+    DatabaseConnector databaseConnector;%0A%0A
     @Before%0A
@@ -288,210 +288,1038 @@
 n %7B%0A
-%0A    %7D%0A%0A    @After%0A    public void tearDown() throws Exception %7B%0A%0A    %7D%0A%0A    @Test%0A    public void testConnect() throws Exception %7B%0A%0A    %7D%0A%0A    @Test%0A    public void testDisconnect() throws Exception %7B%0A
+        databaseConnector = new DatabaseConnector(Config.URL.toString(), Config.USERNAME.toString(), Config.PASSWORD.toString(), Config.DATABASE.toString());%0A    %7D%0A%0A    @After%0A    public void tearDown() throws Exception %7B%0A%0A    %7D%0A%0A    @Test%0A    public void testConnect() throws Exception %7B%0A        Connection connection = null;%0A        try %7B%0A            connection = databaseConnector.connect();%0A            assertNotNull(connection);%0A        %7D catch (Exception e) %7B%0A            assertTrue(e.toString().contains(%22SQLException%22));%0A            assertNull(connection);%0A        %7D%0A    %7D%0A%0A    @Test%0A    public void testDisconnect() throws Exception %7B%0A        Connection connection = null;%0A        try %7B%0A            databaseConnector.connect();%0A            assertTrue(databaseConnector.isActive());%0A            databaseConnector.disconnect();%0A            assertFalse(databaseConnector.isActive());%0A        %7D catch (Exception e) %7B%0A            assertTrue(e.toString().contains(%22SQLException%22));%0A            assertNull(connection);%0A        %7D
 %0A   

Add Tests to DatabaseConnectionTest class