database #2
@@ -3,6 +3,8 @@ package hhn.temp.project;
|
|||||||
import hhn.temp.project.provider.DatabaseManager;
|
import hhn.temp.project.provider.DatabaseManager;
|
||||||
import hhn.temp.project.provider.SimpleDatabaseManager;
|
import hhn.temp.project.provider.SimpleDatabaseManager;
|
||||||
import org.junit.jupiter.api.BeforeEach;
|
import org.junit.jupiter.api.BeforeEach;
|
||||||
|
import org.junit.jupiter.api.DisplayName;
|
||||||
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
||||||
|
|
||||||
@@ -27,6 +29,9 @@ public class DatabaseGoodCasesTest {
|
|||||||
databaseManager = new SimpleDatabaseManager<>();
|
databaseManager = new SimpleDatabaseManager<>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@DisplayName("Assert connecting to database")
|
||||||
public void assertConnectToDatabase() throws SQLException {
|
public void assertConnectToDatabase() throws SQLException {
|
||||||
databaseManager.connect();
|
databaseManager.connect();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user