We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65af2c4 commit c05a409Copy full SHA for c05a409
backend/src/test/java/com/group1/programminglanguagesforum/Services/TagServiceTests.java
@@ -142,7 +142,7 @@ void testGetTagDetails_Success() {
142
143
when(tagRepository.findById(tagId)).thenReturn(Optional.of(mockTag));
144
when(questionRepository.findQuestionsByTagId(tagId)).thenReturn(mockQuestions);
145
- when(questionRepository.findQuestionsByDifficultyAndTagId(tagId)).thenReturn(mockQuestions);
+ when(questionRepository.findQuestionsByDifficultyAndTagId(DifficultyLevel.EASY, tagId)).thenReturn(mockQuestions);
146
147
// Mocking modelMapper behavior
148
when(modelMapper.map(any(Question.class), eq(GetQuestionWithTagDto.class)))
0 commit comments