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)))