Skip to content

Commit 65af2c4

Browse files
committed
fix tests
1 parent d492d47 commit 65af2c4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -142,6 +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);
145146

146147
// Mocking modelMapper behavior
147148
when(modelMapper.map(any(Question.class), eq(GetQuestionWithTagDto.class)))

0 commit comments

Comments
 (0)