Gradle Test Run :bootstrap:test

method_argument_not_valid_returns_400_with_invalid_input_and_field_errors()

summary

1

tests

0

failures

0

skipped

0.096s

duration

100%

successful

standard output

2026-05-12T15:59:42.918+09:00  INFO 3742337 --- [    Test worker] [traceId=] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet '' 
2026-05-12T15:59:42.918+09:00  INFO 3742337 --- [    Test worker] [traceId=] o.s.t.web.servlet.TestDispatcherServlet  : Initializing Servlet '' 
2026-05-12T15:59:42.919+09:00  INFO 3742337 --- [    Test worker] [traceId=] o.s.t.web.servlet.TestDispatcherServlet  : Completed initialization in 1 ms 
2026-05-12T15:59:42.922+09:00 DEBUG 3742337 --- [    Test worker] [traceId=0978ce8adaac9d32afd4e6dfab2a25f6] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped to com.project.auth.ExceptionHandlingIntegrationTest$TestExceptionController#validatedBody(ValidatedRequest) 
2026-05-12T15:59:42.981+09:00 DEBUG 3742337 --- [    Test worker] [traceId=0978ce8adaac9d32afd4e6dfab2a25f6] m.m.a.RequestResponseBodyMethodProcessor : Read "application/json" to [ValidatedRequest[name=]] 
2026-05-12T15:59:42.996+09:00 DEBUG 3742337 --- [    Test worker] [traceId=0978ce8adaac9d32afd4e6dfab2a25f6] .m.m.a.ExceptionHandlerExceptionResolver : Using @ExceptionHandler com.project.auth.presentation.support.exception.ValidationExceptionHandler#handleValidationException(MethodArgumentNotValidException) 
2026-05-12T15:59:42.996+09:00  WARN 3742337 --- [    Test worker] [traceId=0978ce8adaac9d32afd4e6dfab2a25f6] c.p.a.p.s.e.ValidationExceptionHandler   : Validation failed: {/name=[이름은 필수입니다]} 
2026-05-12T15:59:42.997+09:00 DEBUG 3742337 --- [    Test worker] [traceId=0978ce8adaac9d32afd4e6dfab2a25f6] o.s.w.s.m.m.a.HttpEntityMethodProcessor  : Using 'application/json', given [*/*] and supported [application/json, application/*+json, application/yaml] 
2026-05-12T15:59:42.997+09:00 DEBUG 3742337 --- [    Test worker] [traceId=0978ce8adaac9d32afd4e6dfab2a25f6] o.s.w.s.m.m.a.HttpEntityMethodProcessor  : Writing [ApiResult[success=false, code=PRES-001, message=요청 값이 올바르지 않습니다., data=null, errors={/name=[이름은 필수입니 (truncated)...] 
2026-05-12T15:59:43.005+09:00 DEBUG 3742337 --- [    Test worker] [traceId=0978ce8adaac9d32afd4e6dfab2a25f6] .m.m.a.ExceptionHandlerExceptionResolver : Resolved [org.springframework.web.bind.MethodArgumentNotValidException: Validation failed for argument [0] in java.lang.String com.project.auth.ExceptionHandlingIntegrationTest$TestExceptionController.validatedBody(com.project.auth.ExceptionHandlingIntegrationTest$ValidatedRequest): [Field error in object 'validatedRequest' on field 'name': rejected value []; codes [NotBlank.validatedRequest.name,NotBlank.name,NotBlank.java.lang.String,NotBlank]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [validatedRequest.name,name]; arguments []; default message [name]]; default message [이름은 필수입니다]] ]