Gradle Test Run :bootstrap:test

missing_required_header_returns_header_specific_error_code()

summary

1

tests

0

failures

0

skipped

0.012s

duration

100%

successful

standard output

2026-05-12T15:59:43.047+09:00  INFO 3742337 --- [    Test worker] [traceId=] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 
2026-05-12T15:59:43.047+09:00  INFO 3742337 --- [    Test worker] [traceId=] o.s.t.web.servlet.TestDispatcherServlet  : Initializing Servlet '' 
2026-05-12T15:59:43.048+09:00  INFO 3742337 --- [    Test worker] [traceId=] o.s.t.web.servlet.TestDispatcherServlet  : Completed initialization in 1 ms 
2026-05-12T15:59:43.051+09:00 DEBUG 3742337 --- [    Test worker] [traceId=038a858a6c4daeb5c94e9ca373497127] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped to com.project.auth.ExceptionHandlingIntegrationTest$TestExceptionController#headerRequired(String) 
2026-05-12T15:59:43.052+09:00 DEBUG 3742337 --- [    Test worker] [traceId=038a858a6c4daeb5c94e9ca373497127] o.s.web.method.HandlerMethod             : Could not resolve parameter [0] in java.lang.String com.project.auth.ExceptionHandlingIntegrationTest$TestExceptionController.headerRequired(java.lang.String): Required request header 'X-Test-Header' for method parameter type String is not present 
2026-05-12T15:59:43.052+09:00 DEBUG 3742337 --- [    Test worker] [traceId=038a858a6c4daeb5c94e9ca373497127] .m.m.a.ExceptionHandlerExceptionResolver : Using @ExceptionHandler com.project.auth.presentation.support.exception.RequestExceptionHandler#handleMissingRequestHeaderException(MissingRequestHeaderException, HttpServletRequest) 
2026-05-12T15:59:43.053+09:00  WARN 3742337 --- [    Test worker] [traceId=038a858a6c4daeb5c94e9ca373497127] c.p.a.p.s.e.RequestExceptionHandler      : Missing request header. method=GET requestPath=/test-support/header-required header=X-Test-Header errorCode=PRES-009 
2026-05-12T15:59:43.053+09:00 DEBUG 3742337 --- [    Test worker] [traceId=038a858a6c4daeb5c94e9ca373497127] 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.053+09:00 DEBUG 3742337 --- [    Test worker] [traceId=038a858a6c4daeb5c94e9ca373497127] o.s.w.s.m.m.a.HttpEntityMethodProcessor  : Writing [ApiResult[success=false, code=PRES-009, message=필수 요청 헤더가 누락되었습니다., data=null, errors=null, traceId= (truncated)...] 
2026-05-12T15:59:43.054+09:00 DEBUG 3742337 --- [    Test worker] [traceId=038a858a6c4daeb5c94e9ca373497127] .m.m.a.ExceptionHandlerExceptionResolver : Resolved [org.springframework.web.bind.MissingRequestHeaderException: Required request header 'X-Test-Header' for method parameter type String is not present]