Gradle Test Run :bootstrap:test
missing_required_query_parameter_returns_400_with_missing_parameter_code()
summary
|
100%
successful |
standard output
2026-05-12T15:59:43.189+09:00 INFO 3742337 --- [ Test worker] [traceId=] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 2026-05-12T15:59:43.190+09:00 INFO 3742337 --- [ Test worker] [traceId=] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet '' 2026-05-12T15:59:43.191+09:00 INFO 3742337 --- [ Test worker] [traceId=] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 1 ms 2026-05-12T15:59:43.193+09:00 DEBUG 3742337 --- [ Test worker] [traceId=f88d858cb08031d1d1401f2405da7ff0] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped to com.project.auth.ExceptionHandlingIntegrationTest$TestExceptionController#requiredParam(String) 2026-05-12T15:59:43.194+09:00 DEBUG 3742337 --- [ Test worker] [traceId=f88d858cb08031d1d1401f2405da7ff0] o.s.web.method.HandlerMethod : Could not resolve parameter [0] in java.lang.String com.project.auth.ExceptionHandlingIntegrationTest$TestExceptionController.requiredParam(java.lang.String): Required request parameter 'name' for method parameter type String is not present 2026-05-12T15:59:43.195+09:00 DEBUG 3742337 --- [ Test worker] [traceId=f88d858cb08031d1d1401f2405da7ff0] .m.m.a.ExceptionHandlerExceptionResolver : Using @ExceptionHandler com.project.auth.presentation.support.exception.RequestExceptionHandler#handleMissingParameterException(MissingServletRequestParameterException, HttpServletRequest) 2026-05-12T15:59:43.195+09:00 WARN 3742337 --- [ Test worker] [traceId=f88d858cb08031d1d1401f2405da7ff0] c.p.a.p.s.e.RequestExceptionHandler : Missing request parameter. method=GET requestPath=/test-support/required-param parameter=name errorCode=PRES-004 2026-05-12T15:59:43.196+09:00 DEBUG 3742337 --- [ Test worker] [traceId=f88d858cb08031d1d1401f2405da7ff0] o.s.w.s.m.m.a.HttpEntityMethodProcessor : Using 'application/json', given [*/*] and supported [application/json, application/*+json, application/yaml] 2026-05-12T15:59:43.196+09:00 DEBUG 3742337 --- [ Test worker] [traceId=f88d858cb08031d1d1401f2405da7ff0] o.s.w.s.m.m.a.HttpEntityMethodProcessor : Writing [ApiResult[success=false, code=PRES-004, message=필수 요청 파라미터가 누락되었습니다., data=null, errors=null, traceI (truncated)...] 2026-05-12T15:59:43.196+09:00 DEBUG 3742337 --- [ Test worker] [traceId=f88d858cb08031d1d1401f2405da7ff0] .m.m.a.ExceptionHandlerExceptionResolver : Resolved [org.springframework.web.bind.MissingServletRequestParameterException: Required request parameter 'name' for method parameter type String is not present]