JwtControllerTests

1

tests

0

failures

0

ignored

2.515s

duration

100%

successful

Tests

Test Duration Result
authGenerateToken() 2.515s passed

Standard output

2025-05-18T23:06:25.254Z  INFO 4760 --- [psyceful_api] [    Test worker] t.c.s.AnnotationConfigContextLoaderUtils : Could not detect default configuration classes for test class [com.psyceful.psyceful_api.integration.JwtControllerTests]: JwtControllerTests does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
2025-05-18T23:06:25.332Z  INFO 4760 --- [psyceful_api] [    Test worker] .b.t.c.SpringBootTestContextBootstrapper : Found @SpringBootConfiguration com.psyceful.psyceful_api.PsycefulApiApplication for test class com.psyceful.psyceful_api.integration.JwtControllerTests
2025-05-18T23:06:25.552Z  INFO 4760 --- [psyceful_api] [    Test worker] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet ''
2025-05-18T23:06:25.555Z  INFO 4760 --- [psyceful_api] [    Test worker] o.s.t.web.servlet.TestDispatcherServlet  : Initializing Servlet ''
2025-05-18T23:06:25.562Z  INFO 4760 --- [psyceful_api] [    Test worker] o.s.t.web.servlet.TestDispatcherServlet  : Completed initialization in 3 ms
Hibernate: 
    select
        r1_0.id,
        r1_0.name 
    from
        roles r1_0 
    where
        r1_0.name=?
Hibernate: 
    select
        next value for users_seq
Hibernate: 
    insert 
    into
        users
        (activated, created_at, email, enabled, firstname, lastname, password, updated_at, id) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        users_roles
        (users_id, roles_id) 
    values
        (?, ?)
Hibernate: 
    select
        u1_0.id,
        case 
            when u1_1.id is not null 
                then 1 
            when u1_2.id is not null 
                then 2 
            when u1_0.id is not null 
                then 0 
        end,
        u1_0.activated,
        u1_0.created_at,
        u1_0.email,
        u1_0.enabled,
        u1_0.firstname,
        u1_0.lastname,
        u1_0.password,
        u1_0.updated_at 
    from
        users u1_0 
    left join
        patients u1_1 
            on u1_0.id=u1_1.id 
    left join
        practitioners u1_2 
            on u1_0.id=u1_2.id 
    where
        u1_0.email=?
Hibernate: 
    select
        r1_0.users_id,
        r1_1.id,
        r1_1.name 
    from
        users_roles r1_0 
    join
        roles r1_1 
            on r1_1.id=r1_0.roles_id 
    where
        r1_0.users_id=? 
    order by
        r1_1.name desc
2025-05-18T23:06:27.342Z DEBUG 4760 --- [psyceful_api] [    Test worker] o.s.s.a.dao.DaoAuthenticationProvider    : Authenticated user
Hibernate: 
    select
        u1_0.id,
        case 
            when u1_1.id is not null 
                then 1 
            when u1_2.id is not null 
                then 2 
            when u1_0.id is not null 
                then 0 
        end,
        u1_0.activated,
        u1_0.created_at,
        u1_0.email,
        u1_0.enabled,
        u1_0.firstname,
        u1_0.lastname,
        u1_0.password,
        u1_0.updated_at 
    from
        users u1_0 
    left join
        patients u1_1 
            on u1_0.id=u1_1.id 
    left join
        practitioners u1_2 
            on u1_0.id=u1_2.id
Hibernate: 
    select
        r1_0.users_id,
        r1_1.id,
        r1_1.name 
    from
        users_roles r1_0 
    join
        roles r1_1 
            on r1_1.id=r1_0.roles_id 
    where
        r1_0.users_id=? 
    order by
        r1_1.name desc
Hibernate: 
    delete 
    from
        users_roles 
    where
        users_id=?
Hibernate: 
    delete 
    from
        users 
    where
        id=?