Skip to content

Commit

Permalink
Updated DatabaseManagerTest
Browse files Browse the repository at this point in the history
Changed getDescription test to use getURL instead.
  • Loading branch information
roaraf committed Apr 7, 2026
1 parent 1a48b29 commit b9b372b
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,20 @@ public void setUp() throws SQLException {
this.dbManager = new DatabaseManager();
}

@Test
public void test() {
dbManager.createTables();

String org_number = "12345";
String name = "Test Charity";
String status = "approved";
String url = "https://www.innsamlingskontrollen.no/organisasjoner/adra-norge-adventist-development-and-relief-agency-norway/";
boolean is_pre_approved = false;

Charity charity = new Charity(org_number, url, name, is_pre_approved, status);
dbManager.addAPIDataToTable(List.of(charity));
}

// Make sure you're connected to the NTNU network for this to work
@Test
public void testConnectionShouldReturnTrue() {
Expand Down

0 comments on commit b9b372b

Please sign in to comment.