Files
project-auth-server/presentation/build/test-results/test/TEST-com.project.auth.presentation.support.exception.RequestExceptionHandlerTest.xml
T

126 lines
15 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<testsuite name="com.project.auth.presentation.support.exception.RequestExceptionHandlerTest" tests="13" skipped="0" failures="0" errors="0" timestamp="2026-05-12T06:25:57.372Z" hostname="donghyeon-960XGK" time="0.127">
<properties/>
<testcase name="handleServletRequestBindingException_returns_400_request_binding_failed()" classname="com.project.auth.presentation.support.exception.RequestExceptionHandlerTest" time="0.007"/>
<testcase name="handleErrorResponseException_collapses_5xx_to_common_999()" classname="com.project.auth.presentation.support.exception.RequestExceptionHandlerTest" time="0.012"/>
<testcase name="handleMethodNotSupportedException_returns_405()" classname="com.project.auth.presentation.support.exception.RequestExceptionHandlerTest" time="0.003"/>
<testcase name="handleErrorResponseException_preserves_4xx_status_with_unhandled_client_error()" classname="com.project.auth.presentation.support.exception.RequestExceptionHandlerTest" time="0.001"/>
<testcase name="handleMediaTypeNotSupportedException_returns_415()" classname="com.project.auth.presentation.support.exception.RequestExceptionHandlerTest" time="0.015"/>
<testcase name="handleMissingParameterException_returns_400_missing_parameter()" classname="com.project.auth.presentation.support.exception.RequestExceptionHandlerTest" time="0.004"/>
<testcase name="handleMediaTypeNotAcceptableException_returns_406()" classname="com.project.auth.presentation.support.exception.RequestExceptionHandlerTest" time="0.003"/>
<testcase name="handleMessageNotReadableException_returns_400_invalid_request_body()" classname="com.project.auth.presentation.support.exception.RequestExceptionHandlerTest" time="0.002"/>
<testcase name="handleTypeMismatchException_returns_400_type_mismatch()" classname="com.project.auth.presentation.support.exception.RequestExceptionHandlerTest" time="0.04"/>
<testcase name="handleMaxUploadSizeExceededException_returns_413_payload_too_large()" classname="com.project.auth.presentation.support.exception.RequestExceptionHandlerTest" time="0.005"/>
<testcase name="handleErrorResponseException_handles_error_response_exception_subtype()" classname="com.project.auth.presentation.support.exception.RequestExceptionHandlerTest" time="0.003"/>
<testcase name="handleNoResourceFoundException_returns_404_resource_not_found()" classname="com.project.auth.presentation.support.exception.RequestExceptionHandlerTest" time="0.004"/>
<testcase name="handleMissingRequestHeaderException_returns_400_missing_header()" classname="com.project.auth.presentation.support.exception.RequestExceptionHandlerTest" time="0.013"/>
<system-out><![CDATA[15:25:57.381 [Test worker] WARN com.project.auth.presentation.support.exception.RequestExceptionHandler -- Request binding failed. method=GET requestPath=/test/path errorCode=PRES-010
15:25:57.385 [Test worker] ERROR com.project.auth.presentation.support.exception.RequestExceptionHandler -- Framework-thrown 5xx status. method=GET requestPath=/test/path status=503
org.springframework.web.server.ResponseStatusException: 503 SERVICE_UNAVAILABLE
at com.project.auth.presentation.support.exception.RequestExceptionHandlerTest.handleErrorResponseException_collapses_5xx_to_common_999(RequestExceptionHandlerTest.java:142)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:701)
at org.junit.platform.commons.support.ReflectionSupport.invokeMethod(ReflectionSupport.java:502)
at org.junit.jupiter.engine.support.MethodReflectionUtils.invoke(MethodReflectionUtils.java:45)
at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:61)
at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:124)
at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:163)
at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:148)
at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:86)
at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(InterceptingExecutableInvoker.java:123)
at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.lambda$invoke$0(InterceptingExecutableInvoker.java:105)
at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:99)
at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:66)
at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:47)
at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:39)
at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:104)
at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:98)
at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invokeVoid(InterceptingExecutableInvoker.java:71)
at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$0(TestMethodTestDescriptor.java:219)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:74)
at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:215)
at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:157)
at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:70)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$2(NodeTestTask.java:176)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:74)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$1(NodeTestTask.java:166)
at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:138)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$0(NodeTestTask.java:164)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:74)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:163)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:116)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:42)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$2(NodeTestTask.java:180)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:74)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$1(NodeTestTask.java:166)
at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:138)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$0(NodeTestTask.java:164)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:74)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:163)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:116)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:42)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$2(NodeTestTask.java:180)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:74)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$1(NodeTestTask.java:166)
at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:138)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$0(NodeTestTask.java:164)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:74)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:163)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:116)
at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:36)
at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:52)
at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:58)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.executeEngine(EngineExecutionOrchestrator.java:246)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.failOrExecuteEngine(EngineExecutionOrchestrator.java:218)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:179)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:108)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:66)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:157)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:65)
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:125)
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:114)
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:93)
at org.junit.platform.launcher.core.DelegatingLauncher.execute(DelegatingLauncher.java:48)
at org.junit.platform.launcher.core.InterceptingLauncher.lambda$execute$0(InterceptingLauncher.java:41)
at org.junit.platform.launcher.core.ClasspathAlignmentCheckingLauncherInterceptor.intercept(ClasspathAlignmentCheckingLauncherInterceptor.java:25)
at org.junit.platform.launcher.core.InterceptingLauncher.execute(InterceptingLauncher.java:40)
at org.junit.platform.launcher.core.DelegatingLauncher.execute(DelegatingLauncher.java:48)
at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestDefinitionProcessor$CollectThenExecuteTestDefinitionConsumer.processAllTestClasses(JUnitPlatformTestDefinitionProcessor.java:172)
at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestDefinitionProcessor$CollectThenExecuteTestDefinitionConsumer.access$000(JUnitPlatformTestDefinitionProcessor.java:121)
at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestDefinitionProcessor.stop(JUnitPlatformTestDefinitionProcessor.java:114)
at org.gradle.api.internal.tasks.testing.SuiteTestDefinitionProcessor.stop(SuiteTestDefinitionProcessor.java:64)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at org.gradle.internal.dispatch.MethodInvocation.invokeOn(MethodInvocation.java:77)
at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:28)
at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:19)
at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33)
at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:88)
at jdk.proxy2/jdk.proxy2.$Proxy6.stop(Unknown Source)
at org.gradle.api.internal.tasks.testing.worker.TestWorker$3.run(TestWorker.java:195)
at org.gradle.api.internal.tasks.testing.worker.TestWorker.executeAndMaintainThreadName(TestWorker.java:126)
at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:103)
at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:63)
at org.gradle.process.internal.worker.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:56)
at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:122)
at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:72)
at worker.org.gradle.process.internal.worker.GradleWorkerMain.run(GradleWorkerMain.java:69)
at worker.org.gradle.process.internal.worker.GradleWorkerMain.main(GradleWorkerMain.java:74)
15:25:57.398 [Test worker] WARN com.project.auth.presentation.support.exception.RequestExceptionHandler -- Method not supported. method=GET requestPath=/test/path attemptedMethod=PATCH errorCode=PRES-003
15:25:57.400 [Test worker] WARN com.project.auth.presentation.support.exception.RequestExceptionHandler -- Framework-thrown 4xx status. method=GET requestPath=/test/path status=409 errorCode=PRES-013
15:25:57.416 [Test worker] WARN com.project.auth.presentation.support.exception.RequestExceptionHandler -- Unsupported media type. method=GET requestPath=/test/path contentType=application/xml errorCode=PRES-007
15:25:57.421 [Test worker] WARN com.project.auth.presentation.support.exception.RequestExceptionHandler -- Missing request parameter. method=GET requestPath=/test/path parameter=name errorCode=PRES-004
15:25:57.424 [Test worker] WARN com.project.auth.presentation.support.exception.RequestExceptionHandler -- Not acceptable media type. method=GET requestPath=/test/path errorCode=PRES-008
15:25:57.428 [Test worker] WARN com.project.auth.presentation.support.exception.RequestExceptionHandler -- Request body not readable. method=GET requestPath=/test/path errorCode=PRES-002
15:25:57.469 [Test worker] WARN com.project.auth.presentation.support.exception.RequestExceptionHandler -- Type mismatch for parameter. method=GET requestPath=/test/path parameter=- errorCode=PRES-014
15:25:57.475 [Test worker] WARN com.project.auth.presentation.support.exception.RequestExceptionHandler -- Upload payload too large. method=GET requestPath=/test/path maxBytes=1024 errorCode=PRES-012
15:25:57.479 [Test worker] WARN com.project.auth.presentation.support.exception.RequestExceptionHandler -- Framework-thrown 4xx status. method=GET requestPath=/test/path status=418 errorCode=PRES-013
15:25:57.485 [Test worker] WARN com.project.auth.presentation.support.exception.RequestExceptionHandler -- No resource found. method=GET requestPath=/test/path resourcePath=/missing errorCode=PRES-005
15:25:57.498 [Test worker] WARN com.project.auth.presentation.support.exception.RequestExceptionHandler -- Missing request header. method=GET requestPath=/test/path header=X-Trace-Id errorCode=PRES-009
]]></system-out>
<system-err><![CDATA[]]></system-err>
</testsuite>