UserServiceTest

1

tests

0

failures

0

ignored

0.022s

duration

100%

successful

Tests

Test Method name Duration Result
createUser()를 통해 생성 후 fineOneById로 조회 createAndReadUser() 0.022s passed

Standard output

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

?[32m[INFO ]?[m 06-21 08:18:17 [Test worker] 
 [] Found @SpringBootConfiguration com.example.base.BaseApplication for test class com.example.base.domain.user.service.UserServiceTest

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

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

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

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

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

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

?[36m[DEBUG]?[m 06-21 08:18:17 [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:17 [Test worker] 
 [] Initialized JPA EntityManagerFactory for persistence unit 'default'

?[33m[WARN ]?[m 06-21 08:18:17 [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:17 [Test worker] 
 [] H2 console available at '/h2-console'. Database available at 'jdbc:h2:mem:local'

?[32m[INFO ]?[m 06-21 08:18:17 [Test worker] 
 [] Started UserServiceTest in 0.916 seconds (process running for 14.361)

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

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

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

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

?[30m[TRACE]?[m 06-21 08:18:18 [Test worker] 
 [] [UserRepository.findOneById(..)] >> Input :: [[49, 49, 101, 102, 50, 102, 97, 54, 100, 48, 55, 51, 50, 98, 102, 98, 56, 97, 54, 56, 99, 98, 102, 55, 55, 97, 54, 98, 99, 55, 52, 56]] :: class com.example.base.domain.user.repository.UserRepository

?[36m[DEBUG]?[m 06-21 08:18:18 [Test worker] 
 [] 
    ?[34mselect?[0m
        u1_0.id,
        u1_0.created_time,
        u1_0.updated_time 
    ?[34mfrom?[0m
        ?[34muser?[0m u1_0 
    ?[34mwhere?[0m
        u1_0.id=?

?[30m[TRACE]?[m 06-21 08:18:18 [Test worker] 
 [] binding parameter (1:VARBINARY) <- [[49, 49, 101, 102, 50, 102, 97, 54, 100, 48, 55, 51, 50, 98, 102, 98, 56, 97, 54, 56, 99, 98, 102, 55, 55, 97, 54, 98, 99, 55, 52, 56]]

?[30m[TRACE]?[m 06-21 08:18:18 [Test worker] 
 [] [UserRepository.findOneById(..)] << Output :: null :: class com.example.base.domain.user.repository.UserRepository