Skip to content

Commit c05a409

Browse files
committed
fix tests 2
1 parent 65af2c4 commit c05a409

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/src/test/java/com/group1/programminglanguagesforum/Services/TagServiceTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ void testGetTagDetails_Success() {
142142

143143
when(tagRepository.findById(tagId)).thenReturn(Optional.of(mockTag));
144144
when(questionRepository.findQuestionsByTagId(tagId)).thenReturn(mockQuestions);
145-
when(questionRepository.findQuestionsByDifficultyAndTagId(tagId)).thenReturn(mockQuestions);
145+
when(questionRepository.findQuestionsByDifficultyAndTagId(DifficultyLevel.EASY, tagId)).thenReturn(mockQuestions);
146146

147147
// Mocking modelMapper behavior
148148
when(modelMapper.map(any(Question.class), eq(GetQuestionWithTagDto.class)))

0 commit comments

Comments
 (0)