# MemberControllerIntegrationTest

4 tests | 0 failures | 0 ignored | 0.781s duration

100%

successful

- Tests
- Standard output

## Tests

Test | Method name | Duration | Result
--- | --- | --- | ---
로그인 실패 테스트 - 잘못된 요청 형식 | loginFailInvalidRequest() | 0.110s | passed
로그인 성공 테스트 | loginSuccess() | 0.060s | passed
로그아웃 실패 테스트 - 잘못된 요청 형식 | logoutFailInvalidRequest() | 0.060s | passed
로그아웃 성공 테스트 | logoutSuccess() | 0.551s | passed

## Standard output

      .   ____          _            __ _ _
     /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
    ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
     \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
      '  |____| .__|_| |_|_| |_\__, | / / / /
     =========|_|==============|___/=/_/_/_/

     :: Spring Boot ::                (v3.4.0)

    2025-02-14T23:45:39.822+09:00  INFO 99945 --- [member-service-test] [    Test worker] .m.t.i.c.MemberControllerIntegrationTest : Starting MemberControllerIntegrationTest using Java 18.0.2 with PID 99945 (started by ondal in /Users/ondal/home/workspace/lifesub/member)
    2025-02-14T23:45:39.825+09:00 DEBUG 99945 --- [member-service-test] [    Test worker] .m.t.i.c.MemberControllerIntegrationTest : Running with Spring Boot v3.4.0, Spring v6.2.0
    2025-02-14T23:45:39.825+09:00  INFO 99945 --- [member-service-test] [    Test worker] .m.t.i.c.MemberControllerIntegrationTest : The following 1 profile is active: "integration-test"
    2025-02-14T23:45:40.778+09:00  WARN 99945 --- [member-service-test] [    Test worker] .s.s.UserDetailsServiceAutoConfiguration :

    Using generated security password: 6aa45464-02a7-4558-8a92-e66c40f4756b

    This generated password is for development use only. Your security configuration must be updated before running your application in production.

    2025-02-14T23:45:40.793+09:00  INFO 99945 --- [member-service-test] [    Test worker] r$InitializeUserDetailsManagerConfigurer : Global AuthenticationManager configured with UserDetailsService bean with name inMemoryUserDetailsManager
    2025-02-14T23:45:42.817+09:00  INFO 99945 --- [member-service-test] [    Test worker] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet ''
    2025-02-14T23:45:42.821+09:00  INFO 99945 --- [member-service-test] [    Test worker] o.s.t.web.servlet.TestDispatcherServlet  : Initializing Servlet ''
    2025-02-14T23:45:42.830+09:00  INFO 99945 --- [member-service-test] [    Test worker] o.s.t.web.servlet.TestDispatcherServlet  : Completed initialization in 5 ms
    2025-02-14T23:45:42.954+09:00  INFO 99945 --- [member-service-test] [    Test worker] .m.t.i.c.MemberControllerIntegrationTest : Started MemberControllerIntegrationTest in 3.343 seconds (process running for 65.774)
    2025-02-14T23:45:43.628+09:00  WARN 99945 --- [member-service-test] [    Test worker] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved [org.springframework.web.bind.MethodArgumentNotValidException: Validation failed for argument [0] in public org.springframework.http.ResponseEntity<com.unicorn.lifesub.common.dto.ApiResponse<com.unicorn.lifesub.common.dto.JwtTokenDTO>> com.unicorn.lifesub.member.controller.MemberController.login(com.unicorn.lifesub.member.dto.LoginRequest) with 2 errors: [Field error in object 'loginRequest' on field 'password': rejected value [null]; codes [NotBlank.loginRequest.password,NotBlank.password,NotBlank.java.lang.String,NotBlank]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [loginRequest.password,password]; arguments []; default message [password]]; default message [비밀번호는 필수입니다.]] [Field error in object 'loginRequest' on field 'userId': rejected value [null]; codes [NotBlank.loginRequest.userId,NotBlank.userId,NotBlank.java.lang.String,NotBlank]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [loginRequest.userId,userId]; arguments []; default message [userId]]; default message [사용자 ID는 필수입니다.]] ]
    2025-02-14T23:45:43.705+09:00  WARN 99945 --- [member-service-test] [    Test worker] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved [org.springframework.web.bind.MethodArgumentNotValidException: Validation failed for argument [0] in public org.springframework.http.ResponseEntity<com.unicorn.lifesub.common.dto.ApiResponse<com.unicorn.lifesub.member.dto.LogoutResponse>> com.unicorn.lifesub.member.controller.MemberController.logout(com.unicorn.lifesub.member.dto.LogoutRequest): [Field error in object 'logoutRequest' on field 'userId': rejected value [null]; codes [NotBlank.logoutRequest.userId,NotBlank.userId,NotBlank.java.lang.String,NotBlank]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [logoutRequest.userId,userId]; arguments []; default message [userId]]; default message [사용자 ID는 필수입니다.]] ]