From 42218b73adae64e425338a0f6099a24088d07826 Mon Sep 17 00:00:00 2001 From: AdrianBalunan Date: Tue, 14 Apr 2026 00:59:52 +0200 Subject: [PATCH] Fix: ChairtyTest now works --- .../java/ntnu/systemutvikling/team6/models/CharityTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/helpmehelpapplication/src/test/java/ntnu/systemutvikling/team6/models/CharityTest.java b/helpmehelpapplication/src/test/java/ntnu/systemutvikling/team6/models/CharityTest.java index 8bcc674..11615fc 100644 --- a/helpmehelpapplication/src/test/java/ntnu/systemutvikling/team6/models/CharityTest.java +++ b/helpmehelpapplication/src/test/java/ntnu/systemutvikling/team6/models/CharityTest.java @@ -2,6 +2,7 @@ import static org.junit.jupiter.api.Assertions.*; +import java.util.ArrayList; import java.util.UUID; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -27,7 +28,7 @@ public void testGettingIdShouldWork() { @Test public void testGettingCategoryShouldWork() { - assertEquals("", charity.getCategory()); + assertEquals(new ArrayList<>(), charity.getCategory()); } @Test