Updated from origin/main
This commit is contained in:
@@ -13,18 +13,6 @@ public class DatabaseGoodCasesTest {
|
||||
|
||||
private DatabaseManager<DatabaseGoodCasesTest.TestClass> databaseManager;
|
||||
|
||||
public class TestClass {
|
||||
private int id;
|
||||
private String dataString;
|
||||
private int dataInteger;
|
||||
|
||||
public TestClass(int id, String dataString, int dataInteger) {
|
||||
this.id = id;
|
||||
this.dataString = dataString;
|
||||
this.dataInteger = dataInteger;
|
||||
}
|
||||
}
|
||||
|
||||
@BeforeEach
|
||||
public void setup() {
|
||||
databaseManager = new SimpleDatabaseManager<>();
|
||||
@@ -33,7 +21,6 @@ public class DatabaseGoodCasesTest {
|
||||
@Test
|
||||
@DisplayName("Assert that the TestClass could be inserted into the database")
|
||||
public void assertGetTestClass() throws SQLException, IOException {
|
||||
TestClass testClass = new TestClass(1, "Hello World", 123);
|
||||
|
||||
databaseManager.connect();
|
||||
databaseManager.getObject(1);
|
||||
@@ -42,7 +29,6 @@ public class DatabaseGoodCasesTest {
|
||||
@Test
|
||||
@DisplayName("Assert that the TestClass could be inserted into the database")
|
||||
public void assertInsertTestClass() throws SQLException, IOException {
|
||||
TestClass testClass = new TestClass(1, "Hello World", 123);
|
||||
|
||||
databaseManager.connect();
|
||||
databaseManager.saveObject(testClass);
|
||||
|
||||
Reference in New Issue
Block a user