Skip to content

Commit

Permalink
[#23] fix: 코드 위치 수정
Browse files Browse the repository at this point in the history
Co-authored-by: 서정준 <51807128+chance0523@users.noreply.github.com>
  • Loading branch information
hoony-lab and chance0523 committed Sep 5, 2021
1 parent 199c904 commit 97af41c
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,9 @@ void save_validateDuplicateUser_exception() {
.image(IMAGE)
.build();

// when
when(userRepository.findByEmail(anyString()))
.thenReturn(Optional.ofNullable(user));

// when

// then
assertThrows(DuplicateKeyException.class, () -> userService.save(request));
}
Expand Down

0 comments on commit 97af41c

Please sign in to comment.