Skip to content

Commit

Permalink
Updated InboxTest
Browse files Browse the repository at this point in the history
Changed UUID parameter to Charity parameter.
  • Loading branch information
roaraf committed Apr 23, 2026
1 parent 6527929 commit e41e4d5
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
import java.util.List;
import java.util.Optional;
import java.util.UUID;

import ntnu.systemutvikling.team6.models.Charity;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;

Expand All @@ -15,9 +17,14 @@ public class InboxTest {

@BeforeEach
public void setup() {
Charity charity = new Charity(
UUID.randomUUID().toString(),
"123",
false,
"approved");
inbox = new Inbox();
newMessage = new Message("Title", UUID.randomUUID(), "Somewhere");
newMessage2 = new Message("Title2", UUID.randomUUID(), "Somewhere2");
newMessage = new Message("Title", charity, "Somewhere");
newMessage2 = new Message("Title2", charity, "Somewhere2");
}

@Test
Expand Down

0 comments on commit e41e4d5

Please sign in to comment.