Skip to content

Commit

Permalink
[#83] test : 중복 이메일을 테스트 한다
Browse files Browse the repository at this point in the history
  • Loading branch information
packdev937 committed Jan 18, 2024
1 parent e022c91 commit 8bdb950
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/test/java/ssu/eatssu/domain/user/service/UserServiceTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,18 @@ void setUp() {
assertThat(userRepository.findAll()).hasSize(0);
}

@Test
void 중복_이메일을_확인한다() {
// given
User user = 회원가입_요청();

// when
boolean isDuplicated = userService.validateDuplicatedEmail(user.getEmail());

// then
assertThat(isDuplicated).isFalse();
}

private User 회원가입_요청() {
return userService.join("[email protected]", OAuthProvider.EATSSU, "1234");
}
Expand Down

0 comments on commit 8bdb950

Please sign in to comment.