Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mmtftr committed Dec 16, 2024
1 parent d492d47 commit 65af2c4
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +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);

// Mocking modelMapper behavior
when(modelMapper.map(any(Question.class), eq(GetQuestionWithTagDto.class)))
Expand Down

0 comments on commit 65af2c4

Please sign in to comment.