Gradle Test Run :bootstrap:test

access_denied_for_anonymous_user_maps_to_401_authentication_required()

summary

1

tests

0

failures

0

skipped

0.012s

duration

100%

successful

standard output

2026-05-12T15:59:43.085+09:00  INFO 3742337 --- [    Test worker] [traceId=] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 
2026-05-12T15:59:43.085+09:00  INFO 3742337 --- [    Test worker] [traceId=] o.s.t.web.servlet.TestDispatcherServlet  : Initializing Servlet '' 
2026-05-12T15:59:43.087+09:00  INFO 3742337 --- [    Test worker] [traceId=] o.s.t.web.servlet.TestDispatcherServlet  : Completed initialization in 2 ms 
2026-05-12T15:59:43.090+09:00  WARN 3742337 --- [    Test worker] [traceId=5b5404b7b9f83f61d35bac4cceefdbe3] c.p.a.c.a.s.SecurityAuditTrailWriter     : Authentication required. actorId=anonymous method=GET requestPath=/test-support/access-denied 
2026-05-12T15:59:43.090+09:00  WARN 3742337 --- [    Test worker] [traceId=5b5404b7b9f83f61d35bac4cceefdbe3] audit.auth                               : AUTHENTICATION_REQUIRED eventType="AUTHENTICATION_REQUIRED" actorId="anonymous" method="GET" requestPath="/test-support/access-denied"
2026-05-12T15:59:43.091+09:00 DEBUG 3742337 --- [    Test worker] [traceId=5b5404b7b9f83f61d35bac4cceefdbe3] .m.m.a.ExceptionHandlerExceptionResolver : Using @ExceptionHandler com.project.auth.config.web.SecurityResponseExceptionHandler#handleAuthenticationException(AuthenticationException, HttpServletRequest) 
2026-05-12T15:59:43.091+09:00  WARN 3742337 --- [    Test worker] [traceId=5b5404b7b9f83f61d35bac4cceefdbe3] p.a.c.w.SecurityResponseExceptionHandler : Authentication required. exceptionType=InsufficientAuthenticationException method=GET requestPath=/test-support/access-denied errorCode=AUTH-001 
2026-05-12T15:59:43.091+09:00  WARN 3742337 --- [    Test worker] [traceId=5b5404b7b9f83f61d35bac4cceefdbe3] c.p.a.c.a.s.SecurityAuditTrailWriter     : Authentication required. actorId=anonymous method=GET requestPath=/test-support/access-denied 
2026-05-12T15:59:43.091+09:00  WARN 3742337 --- [    Test worker] [traceId=5b5404b7b9f83f61d35bac4cceefdbe3] audit.auth                               : AUTHENTICATION_REQUIRED eventType="AUTHENTICATION_REQUIRED" actorId="anonymous" method="GET" requestPath="/test-support/access-denied"
2026-05-12T15:59:43.091+09:00 DEBUG 3742337 --- [    Test worker] [traceId=5b5404b7b9f83f61d35bac4cceefdbe3] 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.092+09:00 DEBUG 3742337 --- [    Test worker] [traceId=5b5404b7b9f83f61d35bac4cceefdbe3] o.s.w.s.m.m.a.HttpEntityMethodProcessor  : Writing [ApiResult[success=false, code=AUTH-001, message=인증이 필요합니다., data=null, errors=null, traceId=5b5404b7 (truncated)...] 
2026-05-12T15:59:43.092+09:00 DEBUG 3742337 --- [    Test worker] [traceId=5b5404b7b9f83f61d35bac4cceefdbe3] .m.m.a.ExceptionHandlerExceptionResolver : Resolved [org.springframework.security.authentication.InsufficientAuthenticationException: Full authentication is required to access this resource]