UserRepositoryTest

2

tests

0

failures

0

ignored

0.525s

duration

100%

successful

Tests

Test Method name Duration Result
UserRepository.save()로 유저 생성 후 데이터베이스에 raw query 시 데이터가 존재해야한다 createUser() 0.511s passed
유저 생성 후 UserRepository.findOneById()로 가져온 데이터는 해당 데이터와 같아야 한다. findOneById() 0.014s passed

Standard output

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

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

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

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

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

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

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

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

?[32m[INFO ]?[m 06-21 08:18:16 [Test worker] 
 [] Started UserRepositoryTest in 1.275 seconds (process running for 12.884)

?[36m[DEBUG]?[m 06-21 08:18:16 [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:16 [Test worker] 
 [] binding parameter (1:TIMESTAMP) <- [2024-06-21T08:18:16.534038]

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

?[30m[TRACE]?[m 06-21 08:18:16 [Test worker] 
 [] binding parameter (3:VARBINARY) <- [[17, -17, 47, -90, -49, -110, 104, -23, -118, 104, 7, 84, -76, -18, -120, -4]]

?[30m[TRACE]?[m 06-21 08:18:16 [Test worker] 
 [] [UserRepository.findOneById(..)] >> Input :: [[17, -17, 47, -90, -49, -110, 104, -23, -118, 104, 7, 84, -76, -18, -120, -4]] :: class com.example.base.domain.user.repository.UserRepository

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

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

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

?[36m[DEBUG]?[m 06-21 08:18:16 [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:16 [Test worker] 
 [] binding parameter (1:TIMESTAMP) <- [2024-06-21T08:18:16.996453]

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

?[30m[TRACE]?[m 06-21 08:18:16 [Test worker] 
 [] binding parameter (3:VARBINARY) <- [[17, -17, 47, -90, -49, -107, 118, 42, -118, 104, 35, -109, -114, -29, -87, 58]]

?[36m[DEBUG]?[m 06-21 08:18:17 [Test worker] 
 [] 
    /* ?[34mselect?[0m
        u 
    ?[34mfrom?[0m
        ?[34mUser?[0m ?[34mas?[0m u 
    ?[34mwhere?[0m
        u.id = :userId */ ?[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:17 [Test worker] 
 [] binding parameter (1:VARBINARY) <- [[17, -17, 47, -90, -49, -107, 118, 42, -118, 104, 35, -109, -114, -29, -87, 58]]