UserControllerTest

3

tests

0

failures

0

ignored

1.207s

duration

100%

successful

Tests

Test Method name Duration Result
유저 생성 (api로 생성 후 entityManager로 저장 여부 확인), [Post] /user createUser() 0.088s passed
단일 유저 조회 (api로 user 생성 후 api 조회)| [Get] /user -> [Post] /user createUserAndGetUser() 0.043s passed
단일 유저 조회 (데이터 베이스 entityManager로 생성 후 api로 조회) | [Get] /user getUser() 1.076s passed

Standard output

?[32m[INFO ]?[m 06-21 08:18:07 [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:08 [Test worker] 
 [] Starting UserControllerTest 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:08 [Test worker] 
 [] Running with Spring Boot v3.2.5, Spring v6.1.6

?[32m[INFO ]?[m 06-21 08:18:08 [Test worker] 
 [] No active profile set, falling back to 1 default profile: "default"

?[32m[INFO ]?[m 06-21 08:18:09 [Test worker] 
 [] Bootstrapping Spring Data JPA repositories in DEFAULT mode.

?[32m[INFO ]?[m 06-21 08:18:09 [Test worker] 
 [] Finished Spring Data repository scanning in 27 ms. Found 0 JPA repository interfaces.

?[32m[INFO ]?[m 06-21 08:18:10 [Test worker] 
 [] No LoadTimeWeaver setup: ignoring JPA class transformer

?[36m[DEBUG]?[m 06-21 08:18:12 [Test worker] 
 [] 
    ?[34mdrop?[0m ?[34mtable?[0m ?[34mif?[0m ?[34mexists?[0m ?[34muser?[0m ?[34mcascade?[0m 

?[36m[DEBUG]?[m 06-21 08:18:12 [Test worker] 
 [] 
    ?[34mcreate?[0m ?[34mtable?[0m ?[34muser?[0m (
        created_time ?[34mtimestamp?[0m(6),
        updated_time ?[34mtimestamp?[0m(6),
        id ?[34mBINARY?[0m(16) ?[34mnot?[0m ?[34mnull?[0m,
        ?[34mprimary?[0m ?[34mkey?[0m (id)
    )

?[32m[INFO ]?[m 06-21 08:18:12 [Test worker] 
 [] Initialized JPA EntityManagerFactory for persistence unit 'default'

?[33m[WARN ]?[m 06-21 08:18:12 [Test worker] 
 [] spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning

?[32m[INFO ]?[m 06-21 08:18:13 [Test worker] 
 [] H2 console available at '/h2-console'. Database available at 'jdbc:h2:mem:local'

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

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

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

?[32m[INFO ]?[m 06-21 08:18:13 [Test worker] 
 [] Started UserControllerTest in 6.14 seconds (process running for 10.344)

?[36m[DEBUG]?[m 06-21 08:18:14 [Test worker] 
 [] 
    /* ?[34minsert?[0m ?[34mfor?[0m
        com.example.base.domain.?[34muser?[0m.domain.?[34mUser?[0m */?[34minsert?[0m 
    ?[34minto?[0m
        ?[34muser?[0m (created_time, updated_time, id) 
    ?[34mvalues?[0m
        (?, ?, ?)

?[30m[TRACE]?[m 06-21 08:18:14 [Test worker] 
 [] binding parameter (1:TIMESTAMP) <- [2024-06-21T08:18:14.815981]

?[30m[TRACE]?[m 06-21 08:18:14 [Test worker] 
 [] binding parameter (2:TIMESTAMP) <- [2024-06-21T08:18:14.816208]

?[30m[TRACE]?[m 06-21 08:18:14 [Test worker] 
 [] binding parameter (3:VARBINARY) <- [[17, -17, 47, -90, -50, -120, -24, 38, -118, 104, 53, -56, 114, 52, -28, 90]]

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

?[30m[TRACE]?[m 06-21 08:18:14 [Test worker] 
 [786e8815] [UserController.findOneById(..)] >> Input :: [11ef2fa6ce88e8268a6835c87234e45a] :: class com.example.base.domain.user.controller.UserController

?[30m[TRACE]?[m 06-21 08:18:14 [Test worker] 
 [786e8815] [UserService.findOneById(..)] >> Input :: [11ef2fa6ce88e8268a6835c87234e45a] :: class com.example.base.domain.user.service.UserService

?[30m[TRACE]?[m 06-21 08:18:14 [Test worker] 
 [786e8815] [UserRepository.findOneById(..)] >> Input :: [[17, -17, 47, -90, -50, -120, -24, 38, -118, 104, 53, -56, 114, 52, -28, 90]] :: class com.example.base.domain.user.repository.UserRepository

?[30m[TRACE]?[m 06-21 08:18:14 [Test worker] 
 [786e8815] [UserRepository.findOneById(..)] << Output :: com.example.base.domain.user.domain.User@79f3359e :: class com.example.base.domain.user.repository.UserRepository

?[30m[TRACE]?[m 06-21 08:18:14 [Test worker] 
 [786e8815] [UserService.findOneById(..)] << Output :: com.example.base.domain.user.domain.User@79f3359e :: class com.example.base.domain.user.service.UserService

?[30m[TRACE]?[m 06-21 08:18:14 [Test worker] 
 [786e8815] [UserController.findOneById(..)] << Output :: <200 OK OK,{id=11ef2fa6ce88e8268a6835c87234e45a},[]> :: class com.example.base.domain.user.controller.UserController

?[32m[INFO ]?[m 06-21 08:18:15 [Test worker] 
 [786e8815] Response GET /user application/json 200

?[30m[TRACE]?[m 06-21 08:18:15 [Test worker] 
 [786e8815] Clear ThreadContext

?[30m[TRACE]?[m 06-21 08:18:15 [Test worker] 
 [786e8815] Clear ThreadContext

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

?[30m[TRACE]?[m 06-21 08:18:15 [Test worker] 
 [fd437fa0] [UserController.createUser()] >> Input :: [] :: class com.example.base.domain.user.controller.UserController

?[30m[TRACE]?[m 06-21 08:18:15 [Test worker] 
 [fd437fa0] [UserService.createUser(..)] >> Input :: [com.example.base.domain.user.domain.User@356891fc] :: class com.example.base.domain.user.service.UserService

?[30m[TRACE]?[m 06-21 08:18:15 [Test worker] 
 [fd437fa0] [UserRepository.save(..)] >> Input :: [com.example.base.domain.user.domain.User@356891fc] :: class com.example.base.domain.user.repository.UserRepository

?[30m[TRACE]?[m 06-21 08:18:15 [Test worker] 
 [fd437fa0] [UserRepository.save(..)] << Output :: com.example.base.domain.user.domain.User@356891fc :: class com.example.base.domain.user.repository.UserRepository

?[30m[TRACE]?[m 06-21 08:18:15 [Test worker] 
 [fd437fa0] [UserService.createUser(..)] << Output :: 11ef2fa6ceb6aee78a6895dcc0f77fd6 :: class com.example.base.domain.user.service.UserService

?[30m[TRACE]?[m 06-21 08:18:15 [Test worker] 
 [fd437fa0] [UserController.createUser()] << Output :: <201 CREATED Created,{id=11ef2fa6ceb6aee78a6895dcc0f77fd6},[]> :: class com.example.base.domain.user.controller.UserController

?[32m[INFO ]?[m 06-21 08:18:15 [Test worker] 
 [fd437fa0] Response POST /user application/json 201

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

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

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

?[30m[TRACE]?[m 06-21 08:18:15 [Test worker] 
 [5ab8eff2] [UserController.findOneById(..)] >> Input :: [11ef2fa6ceb6aee78a6895dcc0f77fd6] :: class com.example.base.domain.user.controller.UserController

?[30m[TRACE]?[m 06-21 08:18:15 [Test worker] 
 [5ab8eff2] [UserService.findOneById(..)] >> Input :: [11ef2fa6ceb6aee78a6895dcc0f77fd6] :: class com.example.base.domain.user.service.UserService

?[30m[TRACE]?[m 06-21 08:18:15 [Test worker] 
 [5ab8eff2] [UserRepository.findOneById(..)] >> Input :: [[17, -17, 47, -90, -50, -74, -82, -25, -118, 104, -107, -36, -64, -9, 127, -42]] :: class com.example.base.domain.user.repository.UserRepository

?[30m[TRACE]?[m 06-21 08:18:15 [Test worker] 
 [5ab8eff2] [UserRepository.findOneById(..)] << Output :: com.example.base.domain.user.domain.User@356891fc :: class com.example.base.domain.user.repository.UserRepository

?[30m[TRACE]?[m 06-21 08:18:15 [Test worker] 
 [5ab8eff2] [UserService.findOneById(..)] << Output :: com.example.base.domain.user.domain.User@356891fc :: class com.example.base.domain.user.service.UserService

?[30m[TRACE]?[m 06-21 08:18:15 [Test worker] 
 [5ab8eff2] [UserController.findOneById(..)] << Output :: <200 OK OK,{id=11ef2fa6ceb6aee78a6895dcc0f77fd6},[]> :: class com.example.base.domain.user.controller.UserController

?[32m[INFO ]?[m 06-21 08:18:15 [Test worker] 
 [5ab8eff2] Response GET /user application/json 200

?[30m[TRACE]?[m 06-21 08:18:15 [Test worker] 
 [5ab8eff2] Clear ThreadContext

?[30m[TRACE]?[m 06-21 08:18:15 [Test worker] 
 [5ab8eff2] Clear ThreadContext

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

?[30m[TRACE]?[m 06-21 08:18:15 [Test worker] 
 [65ba241a] [UserController.createUser()] >> Input :: [] :: class com.example.base.domain.user.controller.UserController

?[30m[TRACE]?[m 06-21 08:18:15 [Test worker] 
 [65ba241a] [UserService.createUser(..)] >> Input :: [com.example.base.domain.user.domain.User@3d4d0260] :: class com.example.base.domain.user.service.UserService

?[30m[TRACE]?[m 06-21 08:18:15 [Test worker] 
 [65ba241a] [UserRepository.save(..)] >> Input :: [com.example.base.domain.user.domain.User@3d4d0260] :: class com.example.base.domain.user.repository.UserRepository

?[30m[TRACE]?[m 06-21 08:18:15 [Test worker] 
 [65ba241a] [UserRepository.save(..)] << Output :: com.example.base.domain.user.domain.User@3d4d0260 :: class com.example.base.domain.user.repository.UserRepository

?[30m[TRACE]?[m 06-21 08:18:15 [Test worker] 
 [65ba241a] [UserService.createUser(..)] << Output :: 11ef2fa6cebd8cb88a6815f5e8ddf372 :: class com.example.base.domain.user.service.UserService

?[30m[TRACE]?[m 06-21 08:18:15 [Test worker] 
 [65ba241a] [UserController.createUser()] << Output :: <201 CREATED Created,{id=11ef2fa6cebd8cb88a6815f5e8ddf372},[]> :: class com.example.base.domain.user.controller.UserController

?[32m[INFO ]?[m 06-21 08:18:15 [Test worker] 
 [65ba241a] Response POST /user application/json 201

?[30m[TRACE]?[m 06-21 08:18:15 [Test worker] 
 [65ba241a] Clear ThreadContext

?[30m[TRACE]?[m 06-21 08:18:15 [Test worker] 
 [65ba241a] Clear ThreadContext

Standard error

WARNING: A Java agent has been loaded dynamically (/home/runner/.gradle/caches/modules-2/files-2.1/net.bytebuddy/byte-buddy-agent/1.14.13/979ce25f7d3096a2e82214ba7dc972a05ce7a171/byte-buddy-agent-1.14.13.jar)
WARNING: If a serviceability tool is in use, please run with -XX:+EnableDynamicAgentLoading to hide this warning
WARNING: If a serviceability tool is not in use, please run with -Djdk.instrument.traceUsage for more information
WARNING: Dynamic loading of agents will be disallowed by default in a future release