Updated from origin/main

This commit is contained in:
Riley Schneider
2025-12-03 20:42:23 +01:00
parent 0db43fe51a
commit 8150fdbf13
5 changed files with 9 additions and 15 deletions

View File

@@ -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);