Skip to content

Commit

Permalink
M3-343 Feat : test코드 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
tkdals802 committed Sep 10, 2024
1 parent e2ec20d commit becf39e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ void testJoinCommunity_alreadyJoined() {
// Given
when(communityRepository.findById(1L)).thenReturn(Optional.of(community));
when(userRepository.findById(1L)).thenReturn(Optional.of(user));
when(userCommunityRepository.findByUserAndCommunity(user, community)).thenReturn(userCommunity);
when(userCommunityRepository.existsByUserAndCommunityAndDeletedAtIsNull(user, community)).thenReturn(true);

communityJoinRequest = CommunityJoinRequest.builder()
.userId(1L)
Expand Down

0 comments on commit becf39e

Please sign in to comment.