WithFilterByWebMvcTest

3

tests

0

failures

0

ignored

0.070s

duration

100%

successful

Tests

Test Duration Result
GenerateThreadContextIdFilter가_나중에_결합된_경우_Thread_context에_id가_존재하면_안된다() 0.018s passed
GenerateThreadContextIdFilter가_먼저_결합된_경우_Thread_context에_id가_존재해야한다() 0.035s passed
controller에서_thread_id는_같아야한다() 0.017s passed

Standard output

?[32m[INFO ]?[m 06-21 08:18:18 [Test worker] 
 [] Could not detect default configuration classes for test class [com.example.base.global.filter.GenerateThreadContextIdFilterTest$WithFilterByWebMvcTest]: WithFilterByWebMvcTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration.

?[32m[INFO ]?[m 06-21 08:18:18 [Test worker] 
 [] Found @SpringBootConfiguration com.example.base.BaseApplication for test class com.example.base.global.filter.GenerateThreadContextIdFilterTest$WithFilterByWebMvcTest

?[32m[INFO ]?[m 06-21 08:18:18 [Test worker] 
 [] Restart disabled due to context in which it is running


  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
?[32m :: Spring Boot :: ?[39m              ?[2m (v3.2.5)?[0;39m

?[32m[INFO ]?[m 06-21 08:18:18 [Test worker] 
 [] Starting GenerateThreadContextIdFilterTest.WithFilterByWebMvcTest using Java 21.0.3 with PID 2040 (started by runner in /home/runner/work/spring-base/spring-base)

?[36m[DEBUG]?[m 06-21 08:18:18 [Test worker] 
 [] Running with Spring Boot v3.2.5, Spring v6.1.6

?[32m[INFO ]?[m 06-21 08:18:18 [Test worker] 
 [] The following 1 profile is active: "GENERATE_THREAD_CONTEXT_ID_TEST"

?[32m[INFO ]?[m 06-21 08:18:18 [Test worker] 
 [] Initializing Spring TestDispatcherServlet ''

?[32m[INFO ]?[m 06-21 08:18:18 [Test worker] 
 [] Initializing Servlet ''

?[32m[INFO ]?[m 06-21 08:18:18 [Test worker] 
 [] Completed initialization in 0 ms

?[32m[INFO ]?[m 06-21 08:18:18 [Test worker] 
 [] Started GenerateThreadContextIdFilterTest.WithFilterByWebMvcTest in 0.194 seconds (process running for 14.63)

?[32m[INFO ]?[m 06-21 08:18:18 [Test worker] 
 [] Initializing Spring TestDispatcherServlet ''

?[32m[INFO ]?[m 06-21 08:18:18 [Test worker] 
 [] Initializing Servlet ''

?[32m[INFO ]?[m 06-21 08:18:18 [Test worker] 
 [] Completed initialization in 0 ms

?[32m[INFO ]?[m 06-21 08:18:18 [Test worker] 
 [] Initializing Spring TestDispatcherServlet ''

?[32m[INFO ]?[m 06-21 08:18:18 [Test worker] 
 [] Initializing Servlet ''

?[32m[INFO ]?[m 06-21 08:18:18 [Test worker] 
 [] Completed initialization in 0 ms

?[30m[TRACE]?[m 06-21 08:18:18 [Test worker] 
 [4b9f236e] Add ipAddress :: 127.0.0.1 and hostName :: localhost to ThreadContext

?[32m[INFO ]?[m 06-21 08:18:18 [Test worker] 
 [4b9f236e] Response GET /foo text/plain;charset=UTF-8 200

?[30m[TRACE]?[m 06-21 08:18:18 [Test worker] 
 [4b9f236e] Clear ThreadContext

?[30m[TRACE]?[m 06-21 08:18:18 [Test worker] 
 [4b9f236e] Clear ThreadContext

?[32m[INFO ]?[m 06-21 08:18:18 [Test worker] 
 [] Initializing Spring TestDispatcherServlet ''

?[32m[INFO ]?[m 06-21 08:18:18 [Test worker] 
 [] Initializing Servlet ''

?[32m[INFO ]?[m 06-21 08:18:18 [Test worker] 
 [] Completed initialization in 0 ms

?[30m[TRACE]?[m 06-21 08:18:18 [Test worker] 
 [900889a7] Add ipAddress :: 127.0.0.1 and hostName :: localhost to ThreadContext

?[32m[INFO ]?[m 06-21 08:18:18 [Test worker] 
 [900889a7] Response GET /foo text/plain;charset=UTF-8 200

?[30m[TRACE]?[m 06-21 08:18:18 [Test worker] 
 [900889a7] Clear ThreadContext

?[30m[TRACE]?[m 06-21 08:18:18 [Test worker] 
 [900889a7] Clear ThreadContext