Skip to content

Commit

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

0 comments on commit c05a409

Please sign in to comment.