diff --git a/src/test/java/com/scg/stop/auth/controller/AuthControllerTest.java b/src/test/java/com/scg/stop/auth/controller/AuthControllerTest.java index f7a1c0f2..f3ed2d13 100644 --- a/src/test/java/com/scg/stop/auth/controller/AuthControllerTest.java +++ b/src/test/java/com/scg/stop/auth/controller/AuthControllerTest.java @@ -62,8 +62,6 @@ public class AuthControllerTest extends AbstractControllerTest { @MockBean JwtUtil jwtUtil; -// @MockBean -// AuthUserArgumentResolver authUserArgumentResolver; @Test @DisplayName("카카오 소셜 로그인을 할 수 있다.") void kakaoSocialLogin() throws Exception { @@ -98,8 +96,9 @@ void register() throws Exception { //given StudentInfoDto studentInfoDto = new StudentInfoDto("소프트웨어학과", "2021123123"); RegisterRequest request = new RegisterRequest("stop-user", "010-1234-1234", UserType.STUDENT, "email@gmail.com", - "ad", studentInfoDto); + "ad", studentInfoDto, null, null); User user = new User("1"); + user.register("stop-user","email@email.com","010-1234-1234",UserType.STUDENT,"signupsource"); RegisterResponse registerResponse = RegisterResponse.from(user); when(authService.finishRegister(any(), any())) .thenReturn(registerResponse);