Skip to content

Commit

Permalink
formatted files
Browse files Browse the repository at this point in the history
  • Loading branch information
Warded120 committed Dec 3, 2024
1 parent 4d8d9ad commit d535993
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1071,13 +1071,13 @@ void likeTest_OwnerUserLikesTheirComment_ShouldNotLike() {
when(userRepo.findById(user.getId())).thenReturn(Optional.of(user));
when(habitRepo.findById(articleId)).thenReturn(Optional.of(habit));
when(habitTranslationRepo.findByHabitAndLanguageCode(habit, Locale.of("en").getLanguage()))
.thenReturn(Optional.ofNullable(habitTranslation));
.thenReturn(Optional.ofNullable(habitTranslation));
when(ratingPointsRepo.findByNameOrThrow("LIKE_COMMENT_OR_REPLY")).thenReturn(ratingPoints);
when(commentRepo.findByIdAndStatusNot(commentId, CommentStatus.DELETED)).thenReturn(Optional.of(comment));
when(modelMapper.map(userVO, User.class)).thenReturn(user);
doNothing().when(userNotificationService).createNotification(
any(UserVO.class), any(UserVO.class), any(NotificationType.class),
anyLong(), anyString(), anyLong(), anyString());
any(UserVO.class), any(UserVO.class), any(NotificationType.class),
anyLong(), anyString(), anyLong(), anyString());

commentService.like(commentId, userVO, Locale.ENGLISH);

Expand Down

0 comments on commit d535993

Please sign in to comment.