From c8c217925daf1889aa6840dffb5c894bd9c8e3ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20Efe=20Ak=C3=A7a?= Date: Sat, 14 Dec 2024 18:13:32 +0300 Subject: [PATCH] fix backend tests --- .../programminglanguagesforum/Services/TagServiceTests.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/test/java/com/group1/programminglanguagesforum/Services/TagServiceTests.java b/backend/src/test/java/com/group1/programminglanguagesforum/Services/TagServiceTests.java index 4b8fbf9..7a6a6b1 100644 --- a/backend/src/test/java/com/group1/programminglanguagesforum/Services/TagServiceTests.java +++ b/backend/src/test/java/com/group1/programminglanguagesforum/Services/TagServiceTests.java @@ -12,6 +12,7 @@ import java.util.Arrays; import java.util.Date; +import java.util.HashSet; import java.util.List; import java.util.NoSuchElementException; import java.util.Optional; @@ -111,7 +112,7 @@ void testGetTagDetails_Success() { .reputationPoints(0L) .build(); - Tag mockTag = new Tag(1L, null, "Tag1", "Description1", null); + Tag mockTag = new Tag(1L, null, "Tag1", "Description1", new HashSet<>()); Question q1 = Question.builder() .id(1L)