From c05a409625db8a06d82515252e23eb276ad716d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20Efe=20Ak=C3=A7a?= Date: Mon, 16 Dec 2024 21:55:24 +0300 Subject: [PATCH] fix tests 2 --- .../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 0f0f1d0..2dc0f8b 100644 --- a/backend/src/test/java/com/group1/programminglanguagesforum/Services/TagServiceTests.java +++ b/backend/src/test/java/com/group1/programminglanguagesforum/Services/TagServiceTests.java @@ -142,7 +142,7 @@ void testGetTagDetails_Success() { when(tagRepository.findById(tagId)).thenReturn(Optional.of(mockTag)); when(questionRepository.findQuestionsByTagId(tagId)).thenReturn(mockQuestions); - when(questionRepository.findQuestionsByDifficultyAndTagId(tagId)).thenReturn(mockQuestions); + when(questionRepository.findQuestionsByDifficultyAndTagId(DifficultyLevel.EASY, tagId)).thenReturn(mockQuestions); // Mocking modelMapper behavior when(modelMapper.map(any(Question.class), eq(GetQuestionWithTagDto.class)))