From eb39d3a4eca7c0fa7cc064848d049bccfbb6e01a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20Efe=20Ak=C3=A7a?= Date: Mon, 16 Dec 2024 21:57:07 +0300 Subject: [PATCH] fix tests 3 --- .../programminglanguagesforum/Services/TagServiceTests.java | 2 +- 1 file changed, 1 insertion(+), 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 2dc0f8b..4335e5d 100644 --- a/backend/src/test/java/com/group1/programminglanguagesforum/Services/TagServiceTests.java +++ b/backend/src/test/java/com/group1/programminglanguagesforum/Services/TagServiceTests.java @@ -162,7 +162,7 @@ void testGetTagDetails_Success() { assertEquals("Description1", response.getDescription()); assertEquals(2, response.getRelatedQuestions().size()); verify(tagRepository, times(1)).findById(tagId); - verify(questionRepository, times(1)).findQuestionsByTagId(tagId); + verify(questionRepository, times(1)).findQuestionsByDifficultyAndTagId(DifficultyLevel.EASY, tagId); } @Test