From 8bdb950904c9b08a4530b6e85e1d0d2a31b82cb3 Mon Sep 17 00:00:00 2001 From: Geonwoo Pack Date: Thu, 18 Jan 2024 18:51:35 +0900 Subject: [PATCH] =?UTF-8?q?[#83]=20test=20:=20=EC=A4=91=EB=B3=B5=20?= =?UTF-8?q?=EC=9D=B4=EB=A9=94=EC=9D=BC=EC=9D=84=20=ED=85=8C=EC=8A=A4?= =?UTF-8?q?=ED=8A=B8=20=ED=95=9C=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../eatssu/domain/user/service/UserServiceTest.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/test/java/ssu/eatssu/domain/user/service/UserServiceTest.java b/src/test/java/ssu/eatssu/domain/user/service/UserServiceTest.java index 0e4a355..5fe920f 100644 --- a/src/test/java/ssu/eatssu/domain/user/service/UserServiceTest.java +++ b/src/test/java/ssu/eatssu/domain/user/service/UserServiceTest.java @@ -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("test@test.com", OAuthProvider.EATSSU, "1234"); }