Started by GitHub push by iYeremy Obtained Jenkinsfile from git https://github.com/UDFJDC-ModelosProgramacion/MP_202610_G81_E1_Back [Pipeline] Start of Pipeline [Pipeline] node Running on Slave2 in /home/cecaduser/workspace/MP_202610_G81_E1_Back [Pipeline] { [Pipeline] stage [Pipeline] { (Declarative: Checkout SCM) [Pipeline] checkout Selected Git installation does not exist. Using Default The recommended git tool is: NONE using credential josejbocanegra Cloning the remote Git repository Cloning repository https://github.com/UDFJDC-ModelosProgramacion/MP_202610_G81_E1_Back > git init /home/cecaduser/workspace/MP_202610_G81_E1_Back # timeout=10 Fetching upstream changes from https://github.com/UDFJDC-ModelosProgramacion/MP_202610_G81_E1_Back > git --version # timeout=10 > git --version # 'git version 2.43.0' using GIT_ASKPASS to set credentials > git fetch --tags --force --progress -- https://github.com/UDFJDC-ModelosProgramacion/MP_202610_G81_E1_Back +refs/heads/*:refs/remotes/origin/* # timeout=10 Avoid second fetch Checking out Revision 12c34a593ba4c456b0f6b9d4ec5ecca109a2e58d (refs/remotes/origin/main) Commit message: "Merge pull request #33 from UDFJDC-ModelosProgramacion/develop" > git config remote.origin.url https://github.com/UDFJDC-ModelosProgramacion/MP_202610_G81_E1_Back # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 > git rev-parse refs/remotes/origin/main^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 12c34a593ba4c456b0f6b9d4ec5ecca109a2e58d # timeout=10 > git rev-list --no-walk 45282334dd0f84a00f114f354ad4aac81095ba5e # timeout=10 [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] withCredentials Masking supported pattern matches of $SONAR_TOKEN [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Checkout) [Pipeline] scmSkip SCM Skip: Pattern .*\[ci-skip\].* NOT matched on message: fix: use repository getters [Pipeline] git Selected Git installation does not exist. Using Default The recommended git tool is: NONE Warning: CredentialId "c0e8826e-5e2c-4c1c-a484-6c17d53ac539" could not be found. Fetching changes from the remote Git repository Checking out Revision 12c34a593ba4c456b0f6b9d4ec5ecca109a2e58d (refs/remotes/origin/main) Commit message: "Merge pull request #33 from UDFJDC-ModelosProgramacion/develop" [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh > git rev-parse --resolve-git-dir /home/cecaduser/workspace/MP_202610_G81_E1_Back/.git # timeout=10 > git config remote.origin.url https://github.com/UDFJDC-ModelosProgramacion/MP_202610_G81_E1_Back # timeout=10 Fetching upstream changes from https://github.com/UDFJDC-ModelosProgramacion/MP_202610_G81_E1_Back > git --version # timeout=10 > git --version # 'git version 2.43.0' > git fetch --tags --force --progress -- https://github.com/UDFJDC-ModelosProgramacion/MP_202610_G81_E1_Back +refs/heads/*:refs/remotes/origin/* # timeout=10 > git rev-parse refs/remotes/origin/main^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 12c34a593ba4c456b0f6b9d4ec5ecca109a2e58d # timeout=10 > git branch -a -v --no-abbrev # timeout=10 > git checkout -b main 12c34a593ba4c456b0f6b9d4ec5ecca109a2e58d # timeout=10 + docker inspect -f . citools-isis2603:latest . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer Slave2 does not seem to be running inside a container $ docker run -t -d -u 1000:1000 -v $HOME/.m2:/root/.m2:z -u root -w /home/cecaduser/workspace/MP_202610_G81_E1_Back -v /home/cecaduser/workspace/MP_202610_G81_E1_Back:/home/cecaduser/workspace/MP_202610_G81_E1_Back:rw,z -v /home/cecaduser/workspace/MP_202610_G81_E1_Back@tmp:/home/cecaduser/workspace/MP_202610_G81_E1_Back@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** citools-isis2603:latest cat $ docker top 14c7ba79f1a486dee974dc9563dd7a3e0425e43f53b5c08f3818f0d0678ed197 -eo pid,comm [Pipeline] { [Pipeline] sh + java -version openjdk version "21.0.4" 2024-07-16 LTS OpenJDK Runtime Environment Temurin-21.0.4+7 (build 21.0.4+7-LTS) OpenJDK 64-Bit Server VM Temurin-21.0.4+7 (build 21.0.4+7-LTS, mixed mode, sharing) + mvn clean install [INFO] Scanning for projects... [INFO] [INFO] ------------< co.edu.udistrital.mdp:MP_202610_G81_E1_Back >------------- [INFO] Building MP_202610_G81_E1_Back 0.0.1-SNAPSHOT [INFO] from pom.xml [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- clean:3.4.1:clean (default-clean) @ MP_202610_G81_E1_Back --- [INFO] [INFO] --- jacoco:0.8.11:prepare-agent (jacoco-initialize) @ MP_202610_G81_E1_Back --- [INFO] argLine set to -javaagent:/root/.m2/repository/org/jacoco/org.jacoco.agent/0.8.11/org.jacoco.agent-0.8.11-runtime.jar=destfile=/home/cecaduser/workspace/MP_202610_G81_E1_Back/target/jacoco.exec [INFO] [INFO] --- resources:3.3.1:resources (default-resources) @ MP_202610_G81_E1_Back --- [INFO] Copying 1 resource from src/main/resources to target/classes [INFO] Copying 0 resource from src/main/resources to target/classes [INFO] [INFO] --- compiler:3.14.1:compile (default-compile) @ MP_202610_G81_E1_Back --- [INFO] Recompiling the module because of changed source code. [INFO] Compiling 60 source files with javac [debug parameters release 21] to target/classes [INFO] Annotation processing is enabled because one or more processors were found on the class path. A future release of javac may disable annotation processing unless at least one processor is specified by name (-processor), or a search path is specified (--processor-path, --processor-module-path), or annotation processing is enabled explicitly (-proc:only, -proc:full). Use -Xlint:-options to suppress this message. Use -proc:none to disable annotation processing. [INFO] [INFO] --- resources:3.3.1:testResources (default-testResources) @ MP_202610_G81_E1_Back --- [INFO] skip non existing resourceDirectory /home/cecaduser/workspace/MP_202610_G81_E1_Back/src/test/resources [INFO] [INFO] --- compiler:3.14.1:testCompile (default-testCompile) @ MP_202610_G81_E1_Back --- [INFO] Recompiling the module because of changed dependency. [INFO] Compiling 7 source files with javac [debug parameters release 21] to target/test-classes [INFO] Annotation processing is enabled because one or more processors were found on the class path. A future release of javac may disable annotation processing unless at least one processor is specified by name (-processor), or a search path is specified (--processor-path, --processor-module-path), or annotation processing is enabled explicitly (-proc:only, -proc:full). Use -Xlint:-options to suppress this message. Use -proc:none to disable annotation processing. [INFO] [INFO] --- surefire:3.2.5:test (default-test) @ MP_202610_G81_E1_Back --- [INFO] Using auto detected provider org.apache.maven.surefire.junitplatform.JUnitPlatformProvider [INFO] [INFO] ------------------------------------------------------- [INFO] T E S T S [INFO] ------------------------------------------------------- [INFO] Running co.edu.udistrital.mdp.pets.services.AdopterServiceTest 14:24:42.459 [main] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils -- Could not detect default configuration classes for test class [co.edu.udistrital.mdp.pets.services.AdopterServiceTest]: AdopterServiceTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration. 14:24:42.732 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper -- Found @SpringBootConfiguration co.edu.udistrital.mdp.pets.MainApplication for test class co.edu.udistrital.mdp.pets.services.AdopterServiceTest . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v3.5.10) 2026-03-21T14:24:43.565Z INFO 92 --- [ main] c.e.u.m.p.services.AdopterServiceTest : Starting AdopterServiceTest using Java 21.0.4 with PID 92 (started by root in /home/cecaduser/workspace/MP_202610_G81_E1_Back) 2026-03-21T14:24:43.567Z INFO 92 --- [ main] c.e.u.m.p.services.AdopterServiceTest : No active profile set, falling back to 1 default profile: "default" 2026-03-21T14:24:44.279Z INFO 92 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode. 2026-03-21T14:24:44.421Z INFO 92 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 125 ms. Found 19 JPA repository interfaces. 2026-03-21T14:24:44.535Z INFO 92 --- [ main] beddedDataSourceBeanFactoryPostProcessor : Replacing 'dataSource' DataSource bean with embedded version 2026-03-21T14:24:44.693Z INFO 92 --- [ main] o.s.j.d.e.EmbeddedDatabaseFactory : Starting embedded database: url='jdbc:h2:mem:689882fe-cd58-4755-a983-f8b56b34b6ac;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=false', username='sa' 2026-03-21T14:24:45.315Z INFO 92 --- [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default] 2026-03-21T14:24:45.416Z INFO 92 --- [ main] org.hibernate.Version : HHH000412: Hibernate ORM core version 6.6.41.Final 2026-03-21T14:24:45.476Z INFO 92 --- [ main] o.h.c.internal.RegionFactoryInitiator : HHH000026: Second-level cache disabled 2026-03-21T14:24:45.987Z INFO 92 --- [ main] o.s.o.j.p.SpringPersistenceUnitInfo : No LoadTimeWeaver setup: ignoring JPA class transformer 2026-03-21T14:24:46.087Z WARN 92 --- [ main] org.hibernate.orm.deprecation : HHH90000025: H2Dialect does not need to be specified explicitly using 'hibernate.dialect' (remove the property setting and it will be selected by default) 2026-03-21T14:24:46.125Z INFO 92 --- [ main] org.hibernate.orm.connections.pooling : HHH10001005: Database info: Database JDBC URL [Connecting through datasource 'org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactory$EmbeddedDataSourceProxy@4567dcbc'] Database driver: undefined/unknown Database version: 2.3.232 Autocommit mode: undefined/unknown Isolation level: undefined/unknown Minimum pool size: undefined/unknown Maximum pool size: undefined/unknown Hibernate: create global temporary table HT_user_entity(id bigint not null, primary key (id)) TRANSACTIONAL Hibernate: create global temporary table HTE_user_entity(has_children boolean, has_other_pets boolean, HTE_IDENTITY bigint generated by default as identity, id bigint, availability varchar(255), email varchar(255), housing_type varchar(255), name varchar(255), password varchar(255), phone varchar(255), specialty varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL Hibernate: create global temporary table HTE_mock_user(HTE_IDENTITY bigint generated by default as identity, id bigint, email varchar(255), name varchar(255), password varchar(255), phone varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL Hibernate: create global temporary table HTE_veterinarian_entity(HTE_IDENTITY bigint generated by default as identity, id bigint, shelter_id bigint, availability varchar(255), email varchar(255), name varchar(255), password varchar(255), phone varchar(255), specialty varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL Hibernate: create global temporary table HTE_adopter_entity(has_children boolean, has_other_pets boolean, HTE_IDENTITY bigint generated by default as identity, id bigint, email varchar(255), housing_type varchar(255), name varchar(255), password varchar(255), phone varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL 2026-03-21T14:24:48.454Z INFO 92 --- [ main] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000489: No JTA platform available (set 'hibernate.transaction.jta.platform' to enable JTA platform integration) Hibernate: drop table if exists adopter_entity cascade Hibernate: drop table if exists adoption_entity cascade Hibernate: drop table if exists adoption_follow_up_entity cascade Hibernate: drop table if exists adoption_request_entity cascade Hibernate: drop table if exists approval_strategy_entity cascade Hibernate: drop table if exists medical_event_entity cascade Hibernate: drop table if exists medical_history_entity cascade Hibernate: drop table if exists message_entity cascade Hibernate: drop table if exists mock_user cascade Hibernate: drop table if exists notification_entity cascade Hibernate: drop table if exists notification_strategy_entity cascade Hibernate: drop table if exists pet_entity cascade Hibernate: drop table if exists report_entity cascade Hibernate: drop table if exists report_strategy_entity cascade Hibernate: drop table if exists review_entity cascade Hibernate: drop table if exists shelter_entity cascade Hibernate: drop table if exists shelter_event_entity cascade Hibernate: drop table if exists trial_cohabitation_entity cascade Hibernate: drop table if exists user_entity cascade Hibernate: drop table if exists vaccination_record_entity cascade Hibernate: drop table if exists vaccine_entity cascade Hibernate: drop table if exists veterinarian_entity cascade Hibernate: create table adopter_entity (has_children boolean, has_other_pets boolean, id bigint not null, housing_type varchar(255), primary key (id)) Hibernate: create table adoption_entity (adoption_date date, adopter_id bigint, id bigint generated by default as identity, pet_id bigint, status enum ('CANCELLED','COMPLETED','CREATED','IN_PROGRESS','PENDING'), primary key (id)) Hibernate: create table adoption_follow_up_entity (adoption_id bigint, id bigint generated by default as identity, pet_id bigint, veterinarian_id bigint, frequency varchar(255), notes varchar(255), primary key (id)) Hibernate: create table adoption_request_entity (request_date date, adopter_id bigint, id bigint generated by default as identity, pet_id bigint, strategy_id bigint, trial_cohabitation_id bigint unique, status varchar(255), primary key (id)) Hibernate: create table approval_strategy_entity (id bigint generated by default as identity, approval_type varchar(31) not null, primary key (id)) Hibernate: create table medical_event_entity (event_date date, id bigint generated by default as identity, medical_history_id bigint, veterinarian_id bigint, diagnosis varchar(255), event_type varchar(255), treatment varchar(255), primary key (id)) Hibernate: create table medical_history_entity (id bigint generated by default as identity, pet_id bigint unique, description varchar(255), primary key (id)) Hibernate: create table message_entity (is_read boolean, adopter_id bigint, id bigint generated by default as identity, shelter_id bigint, timestamp timestamp(6), content TEXT, primary key (id)) Hibernate: create table mock_user (id bigint not null, primary key (id)) Hibernate: create table notification_entity (is_read boolean, date timestamp(6), id bigint generated by default as identity, strategy_id bigint unique, user_id bigint, message varchar(255), primary key (id)) Hibernate: create table notification_strategy_entity (id bigint generated by default as identity, primary key (id)) Hibernate: create table pet_entity (age integer, good_with_kids boolean, good_with_pets boolean, id bigint generated by default as identity, shelter_id bigint, activity_level varchar(255), breed varchar(255), description varchar(255), name varchar(255), origin varchar(255), photos varchar(255), sex varchar(255), size varchar(255), space_required varchar(255), special_needs varchar(255), species varchar(255), temperament varchar(255), status enum ('ADOPTED','AVAILABLE','IN_TRIAL','MEDICAL_TREATMENT','RESERVED'), primary key (id)) Hibernate: create table report_entity (generate_date date, event_id bigint, id bigint generated by default as identity, shelter_id bigint, strategy_id bigint, primary key (id)) Hibernate: create table report_strategy_entity (id bigint generated by default as identity, primary key (id)) Hibernate: create table review_entity (date date, rating integer, adopter_id bigint, id bigint generated by default as identity, pet_id bigint, comment TEXT, primary key (id)) Hibernate: create table shelter_entity (id bigint generated by default as identity, city varchar(255), description varchar(255), email varchar(255), gallery varchar(255), name varchar(255), primary key (id)) Hibernate: create table shelter_event_entity (date date, id bigint generated by default as identity, shelter_id bigint, description varchar(255), location varchar(255), title varchar(255), status enum ('CANCELLED','COMPLETED','CREATED','IN_PROGRESS','PENDING'), primary key (id)) Hibernate: create table trial_cohabitation_entity (end_date date, start_date date, adoption_id bigint unique, id bigint generated by default as identity, pet_id bigint, result varchar(255), status enum ('CANCELLED','COMPLETED','CREATED','IN_PROGRESS','PENDING'), primary key (id)) Hibernate: create table user_entity (id bigint generated by default as identity, email varchar(255), name varchar(255), password varchar(255), phone varchar(255), primary key (id)) Hibernate: create table vaccination_record_entity (application_date date, next_due_date date, id bigint generated by default as identity, medical_history_id bigint, vaccine_id bigint, veterinarian_id bigint, primary key (id)) Hibernate: create table vaccine_entity (validity_months integer, id bigint generated by default as identity, description varchar(255), name varchar(255), primary key (id)) Hibernate: create table veterinarian_entity (id bigint not null, shelter_id bigint, availability varchar(255), specialty varchar(255), primary key (id)) Hibernate: alter table if exists adopter_entity add constraint FKitj2sdxcctxrw6ql04jny7l9y foreign key (id) references user_entity Hibernate: alter table if exists adoption_entity add constraint FK224d1qenh6y54c9lq828mmgx foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists adoption_entity add constraint FKqmviggw0khaskxup4cg7bvqku foreign key (pet_id) references pet_entity Hibernate: alter table if exists adoption_follow_up_entity add constraint FKkxibwn0r1ep7bgevg86seymmc foreign key (adoption_id) references adoption_entity Hibernate: alter table if exists adoption_follow_up_entity add constraint FKkqclwmvja9dll86u1bn9ycwn0 foreign key (pet_id) references pet_entity Hibernate: alter table if exists adoption_follow_up_entity add constraint FKsump3rviut1cvfr8iv6vogfp4 foreign key (veterinarian_id) references veterinarian_entity Hibernate: alter table if exists adoption_request_entity add constraint FK90j2qmgnqst03l9x6fpwf0aab foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists adoption_request_entity add constraint FKpdxe7jyb75mwugces1axydwtg foreign key (strategy_id) references approval_strategy_entity Hibernate: alter table if exists adoption_request_entity add constraint FKhanslcvxoi0t9cq07vsyerx7d foreign key (pet_id) references pet_entity Hibernate: alter table if exists adoption_request_entity add constraint FKad0m44984i6frcsd86susx3df foreign key (trial_cohabitation_id) references trial_cohabitation_entity Hibernate: alter table if exists medical_event_entity add constraint FKloam0wk3hbpns9awx08v8ttty foreign key (medical_history_id) references medical_history_entity Hibernate: alter table if exists medical_event_entity add constraint FKmx3l6boot15lqesauq3y2k5t9 foreign key (veterinarian_id) references veterinarian_entity Hibernate: alter table if exists medical_history_entity add constraint FKfqo1kwpy0eom46u48u9i9ob79 foreign key (pet_id) references pet_entity Hibernate: alter table if exists message_entity add constraint FK1bx2fv4ukgy2ruq9gclvehfjw foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists message_entity add constraint FKc1jilfk3teueg8wfilq0u9h0y foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists mock_user add constraint FK1t7datqqs96rej2yoo133loxs foreign key (id) references user_entity Hibernate: alter table if exists notification_entity add constraint FKpsofie2xkbprbd9jo128ocuy9 foreign key (strategy_id) references notification_strategy_entity Hibernate: alter table if exists notification_entity add constraint FKgemicmmtfy225vqj5li4u96lk foreign key (user_id) references user_entity Hibernate: alter table if exists pet_entity add constraint FK57h1lsq9l67lcsx43ftwwto1c foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists report_entity add constraint FK6c18c90k2vnskwos9leqbmxrv foreign key (strategy_id) references report_strategy_entity Hibernate: alter table if exists report_entity add constraint FKoa7u6l3jn2ueixs49yy8nrap3 foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists report_entity add constraint FK33bibp5ycbkys4c6g1dxm410t foreign key (event_id) references shelter_event_entity Hibernate: alter table if exists review_entity add constraint FK8w6fpunff42r2ytatsjbb4o96 foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists review_entity add constraint FKhtmwv0o4w6vp5k7w088xwk0yt foreign key (pet_id) references pet_entity Hibernate: alter table if exists shelter_event_entity add constraint FKjj4fox0olnc8o73kdgso782es foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists trial_cohabitation_entity add constraint FK608jf01b64pwvg12957nbsfsj foreign key (adoption_id) references adoption_entity Hibernate: alter table if exists trial_cohabitation_entity add constraint FKrxpesflvao88mgm4bmys2c3k1 foreign key (pet_id) references pet_entity Hibernate: alter table if exists vaccination_record_entity add constraint FKfo5r2fgxn4ltp9oubgnilaq41 foreign key (medical_history_id) references medical_history_entity Hibernate: alter table if exists vaccination_record_entity add constraint FKdahievfho7baue5s1sayxwom2 foreign key (vaccine_id) references vaccine_entity Hibernate: alter table if exists vaccination_record_entity add constraint FKe2aflnq4dp8kne3km9enr1mt9 foreign key (veterinarian_id) references veterinarian_entity Hibernate: alter table if exists veterinarian_entity add constraint FKe8xa1wxe967urrvxsxpdm8y8r foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists veterinarian_entity add constraint FKl5lutaqpbd2jrfrerhn6a9g69 foreign key (id) references user_entity 2026-03-21T14:24:48.604Z INFO 92 --- [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default' 2026-03-21T14:24:49.572Z INFO 92 --- [ main] c.e.u.m.p.services.AdopterServiceTest : Started AdopterServiceTest in 6.676 seconds (process running for 8.771) Mockito is currently self-attaching to enable the inline-mock-maker. This will no longer work in future releases of the JDK. Please add Mockito as an agent to your build as described in Mockito's documentation: https://javadoc.io/doc/org.mockito/mockito-core/latest/org.mockito/org/mockito/Mockito.html#0.3 OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended WARNING: A Java agent has been loaded dynamically (/root/.m2/repository/net/bytebuddy/byte-buddy-agent/1.17.8/byte-buddy-agent-1.17.8.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 Hibernate: delete from adoption_request_entity are1_0 Hibernate: delete from adoption_entity ae1_0 Hibernate: insert into HT_user_entity(id) select ae1_0.id from adopter_entity ae1_0 Hibernate: delete from adopter_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from user_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from HT_user_entity Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) 2026-03-21T14:24:50.644Z INFO 92 --- [ main] c.e.u.mdp.pets.services.AdopterService : Updating adopter with id = 1 Hibernate: delete from adoption_request_entity are1_0 Hibernate: delete from adoption_entity ae1_0 Hibernate: insert into HT_user_entity(id) select ae1_0.id from adopter_entity ae1_0 Hibernate: delete from adopter_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from user_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from HT_user_entity Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) 2026-03-21T14:24:50.683Z INFO 92 --- [ main] c.e.u.mdp.pets.services.AdopterService : Starting creation process for adopter: test@test.com Hibernate: delete from adoption_request_entity are1_0 Hibernate: delete from adoption_entity ae1_0 Hibernate: insert into HT_user_entity(id) select ae1_0.id from adopter_entity ae1_0 Hibernate: delete from adopter_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from user_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from HT_user_entity Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) 2026-03-21T14:24:50.734Z INFO 92 --- [ main] c.e.u.mdp.pets.services.UserService : Deleting user with id = 8 2026-03-21T14:24:50.754Z WARN 92 --- [ main] c.e.u.mdp.pets.services.AdopterService : Attempted to delete adopter 8 with adoption records Hibernate: delete from adoption_request_entity are1_0 Hibernate: delete from adoption_entity ae1_0 Hibernate: insert into HT_user_entity(id) select ae1_0.id from adopter_entity ae1_0 Hibernate: delete from adopter_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from user_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from HT_user_entity Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) 2026-03-21T14:24:50.777Z INFO 92 --- [ main] c.e.u.mdp.pets.services.AdopterService : Starting creation process for adopter: test@test.com Hibernate: delete from adoption_request_entity are1_0 Hibernate: delete from adoption_entity ae1_0 Hibernate: insert into HT_user_entity(id) select ae1_0.id from adopter_entity ae1_0 Hibernate: delete from adopter_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from user_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from HT_user_entity Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: delete from adoption_request_entity are1_0 Hibernate: delete from adoption_entity ae1_0 Hibernate: insert into HT_user_entity(id) select ae1_0.id from adopter_entity ae1_0 Hibernate: delete from adopter_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from user_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from HT_user_entity Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) 2026-03-21T14:24:50.839Z INFO 92 --- [ main] c.e.u.mdp.pets.services.AdopterService : Starting creation process for adopter: test@test.com Hibernate: delete from adoption_request_entity are1_0 Hibernate: delete from adoption_entity ae1_0 Hibernate: insert into HT_user_entity(id) select ae1_0.id from adopter_entity ae1_0 Hibernate: delete from adopter_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from user_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from HT_user_entity Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) 2026-03-21T14:24:50.859Z INFO 92 --- [ main] c.e.u.mdp.pets.services.AdopterService : Updating adopter with id = 19 2026-03-21T14:24:50.860Z INFO 92 --- [ main] c.e.u.mdp.pets.services.UserService : Updating user with id = 19 Hibernate: select ue1_0.id,case when ue1_3.id is not null then 1 when ue1_1.id is not null then 2 when ue1_2.id is not null then 3 end,ue1_0.email,ue1_0.name,ue1_0.password,ue1_0.phone,ue1_1.has_children,ue1_1.has_other_pets,ue1_1.housing_type,ue1_2.availability,ue1_2.shelter_id,ue1_2.specialty from user_entity ue1_0 left join adopter_entity ue1_1 on ue1_0.id=ue1_1.id left join veterinarian_entity ue1_2 on ue1_0.id=ue1_2.id left join mock_user ue1_3 on ue1_0.id=ue1_3.id where ue1_0.email=? Hibernate: delete from adoption_request_entity are1_0 Hibernate: delete from adoption_entity ae1_0 Hibernate: insert into HT_user_entity(id) select ae1_0.id from adopter_entity ae1_0 Hibernate: delete from adopter_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from user_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from HT_user_entity Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) 2026-03-21T14:24:50.981Z INFO 92 --- [ main] c.e.u.mdp.pets.services.AdopterService : Updating adopter with id = 999 2026-03-21T14:24:50.981Z INFO 92 --- [ main] c.e.u.mdp.pets.services.UserService : Updating user with id = 999 Hibernate: select ue1_0.id,case when ue1_3.id is not null then 1 when ue1_1.id is not null then 2 when ue1_2.id is not null then 3 end,ue1_0.email,ue1_0.name,ue1_0.password,ue1_0.phone,ue1_1.has_children,ue1_1.has_other_pets,ue1_1.housing_type,ue1_2.availability,s1_0.id,s1_0.city,s1_0.description,s1_0.email,s1_0.gallery,s1_0.name,ue1_2.specialty from user_entity ue1_0 left join adopter_entity ue1_1 on ue1_0.id=ue1_1.id left join veterinarian_entity ue1_2 on ue1_0.id=ue1_2.id left join mock_user ue1_3 on ue1_0.id=ue1_3.id left join shelter_entity s1_0 on s1_0.id=ue1_2.shelter_id where ue1_0.id=? Hibernate: delete from adoption_request_entity are1_0 Hibernate: delete from adoption_entity ae1_0 Hibernate: insert into HT_user_entity(id) select ae1_0.id from adopter_entity ae1_0 Hibernate: delete from adopter_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from user_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from HT_user_entity Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) 2026-03-21T14:24:51.007Z INFO 92 --- [ main] c.e.u.mdp.pets.services.AdopterService : Starting creation process for adopter: nuevo_adopter@test.com 2026-03-21T14:24:51.007Z INFO 92 --- [ main] c.e.u.mdp.pets.services.UserService : Starting creation process for user: nuevo_adopter@test.com Hibernate: select ue1_0.id,case when ue1_3.id is not null then 1 when ue1_1.id is not null then 2 when ue1_2.id is not null then 3 end,ue1_0.email,ue1_0.name,ue1_0.password,ue1_0.phone,ue1_1.has_children,ue1_1.has_other_pets,ue1_1.housing_type,ue1_2.availability,ue1_2.shelter_id,ue1_2.specialty from user_entity ue1_0 left join adopter_entity ue1_1 on ue1_0.id=ue1_1.id left join veterinarian_entity ue1_2 on ue1_0.id=ue1_2.id left join mock_user ue1_3 on ue1_0.id=ue1_3.id where ue1_0.email=? Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: delete from adoption_request_entity are1_0 Hibernate: delete from adoption_entity ae1_0 Hibernate: insert into HT_user_entity(id) select ae1_0.id from adopter_entity ae1_0 Hibernate: delete from adopter_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from user_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from HT_user_entity Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: select ue1_0.id,case when ue1_3.id is not null then 1 when ue1_1.id is not null then 2 when ue1_2.id is not null then 3 end,ue1_0.email,ue1_0.name,ue1_0.password,ue1_0.phone,ue1_1.has_children,ue1_1.has_other_pets,ue1_1.housing_type,ue1_2.availability,s1_0.id,s1_0.city,s1_0.description,s1_0.email,s1_0.gallery,s1_0.name,ue1_2.specialty from user_entity ue1_0 left join adopter_entity ue1_1 on ue1_0.id=ue1_1.id left join veterinarian_entity ue1_2 on ue1_0.id=ue1_2.id left join mock_user ue1_3 on ue1_0.id=ue1_3.id left join shelter_entity s1_0 on s1_0.id=ue1_2.shelter_id where ue1_0.id=? Hibernate: delete from adoption_request_entity are1_0 Hibernate: delete from adoption_entity ae1_0 Hibernate: insert into HT_user_entity(id) select ae1_0.id from adopter_entity ae1_0 Hibernate: delete from adopter_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from user_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from HT_user_entity Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) 2026-03-21T14:24:51.052Z INFO 92 --- [ main] c.e.u.mdp.pets.services.UserService : Deleting user with id = 32 Hibernate: delete from adoption_request_entity are1_0 Hibernate: delete from adoption_entity ae1_0 Hibernate: insert into HT_user_entity(id) select ae1_0.id from adopter_entity ae1_0 Hibernate: delete from adopter_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from user_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from HT_user_entity Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) 2026-03-21T14:24:51.078Z INFO 92 --- [ main] c.e.u.mdp.pets.services.AdopterService : Starting creation process for adopter: test@test.com Hibernate: delete from adoption_request_entity are1_0 Hibernate: delete from adoption_entity ae1_0 Hibernate: insert into HT_user_entity(id) select ae1_0.id from adopter_entity ae1_0 Hibernate: delete from adopter_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from user_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from HT_user_entity Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) 2026-03-21T14:24:51.096Z INFO 92 --- [ main] c.e.u.mdp.pets.services.UserService : Deleting user with id = 999 Hibernate: select ue1_0.id,case when ue1_3.id is not null then 1 when ue1_1.id is not null then 2 when ue1_2.id is not null then 3 end,ue1_0.email,ue1_0.name,ue1_0.password,ue1_0.phone,ue1_1.has_children,ue1_1.has_other_pets,ue1_1.housing_type,ue1_2.availability,s1_0.id,s1_0.city,s1_0.description,s1_0.email,s1_0.gallery,s1_0.name,ue1_2.specialty from user_entity ue1_0 left join adopter_entity ue1_1 on ue1_0.id=ue1_1.id left join veterinarian_entity ue1_2 on ue1_0.id=ue1_2.id left join mock_user ue1_3 on ue1_0.id=ue1_3.id left join shelter_entity s1_0 on s1_0.id=ue1_2.shelter_id where ue1_0.id=? Hibernate: delete from adoption_request_entity are1_0 Hibernate: delete from adoption_entity ae1_0 Hibernate: insert into HT_user_entity(id) select ae1_0.id from adopter_entity ae1_0 Hibernate: delete from adopter_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from user_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from HT_user_entity Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: select ue1_0.id,case when ue1_3.id is not null then 1 when ue1_1.id is not null then 2 when ue1_2.id is not null then 3 end,ue1_0.email,ue1_0.name,ue1_0.password,ue1_0.phone,ue1_1.has_children,ue1_1.has_other_pets,ue1_1.housing_type,ue1_2.availability,ue1_2.shelter_id,ue1_2.specialty from user_entity ue1_0 left join adopter_entity ue1_1 on ue1_0.id=ue1_1.id left join veterinarian_entity ue1_2 on ue1_0.id=ue1_2.id left join mock_user ue1_3 on ue1_0.id=ue1_3.id Hibernate: delete from adoption_request_entity are1_0 Hibernate: delete from adoption_entity ae1_0 Hibernate: insert into HT_user_entity(id) select ae1_0.id from adopter_entity ae1_0 Hibernate: delete from adopter_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from user_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from HT_user_entity Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into adoption_request_entity (adopter_id,strategy_id,pet_id,request_date,status,trial_cohabitation_id,id) values (?,?,?,?,?,?,default) 2026-03-21T14:24:51.140Z INFO 92 --- [ main] c.e.u.mdp.pets.services.UserService : Deleting user with id = 44 2026-03-21T14:24:51.141Z WARN 92 --- [ main] c.e.u.mdp.pets.services.AdopterService : Attempted to delete adopter 44 with active adoption requests [INFO] Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 9.016 s -- in co.edu.udistrital.mdp.pets.services.AdopterServiceTest [INFO] Running co.edu.udistrital.mdp.pets.services.AdoptionServiceTest 2026-03-21T14:24:51.152Z INFO 92 --- [ main] t.c.s.AnnotationConfigContextLoaderUtils : Could not detect default configuration classes for test class [co.edu.udistrital.mdp.pets.services.AdoptionServiceTest]: AdoptionServiceTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration. 2026-03-21T14:24:51.165Z INFO 92 --- [ main] .b.t.c.SpringBootTestContextBootstrapper : Found @SpringBootConfiguration co.edu.udistrital.mdp.pets.MainApplication for test class co.edu.udistrital.mdp.pets.services.AdoptionServiceTest . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v3.5.10) 2026-03-21T14:24:51.223Z INFO 92 --- [ main] c.e.u.m.p.services.AdoptionServiceTest : Starting AdoptionServiceTest using Java 21.0.4 with PID 92 (started by root in /home/cecaduser/workspace/MP_202610_G81_E1_Back) 2026-03-21T14:24:51.223Z INFO 92 --- [ main] c.e.u.m.p.services.AdoptionServiceTest : No active profile set, falling back to 1 default profile: "default" 2026-03-21T14:24:51.344Z INFO 92 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode. 2026-03-21T14:24:51.371Z INFO 92 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 25 ms. Found 19 JPA repository interfaces. 2026-03-21T14:24:51.396Z INFO 92 --- [ main] beddedDataSourceBeanFactoryPostProcessor : Replacing 'dataSource' DataSource bean with embedded version 2026-03-21T14:24:51.412Z INFO 92 --- [ main] o.s.j.d.e.EmbeddedDatabaseFactory : Starting embedded database: url='jdbc:h2:mem:f2837207-cf0b-4d74-a55c-f6c567585b14;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=false', username='sa' 2026-03-21T14:24:51.436Z INFO 92 --- [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default] 2026-03-21T14:24:51.438Z INFO 92 --- [ main] o.h.c.internal.RegionFactoryInitiator : HHH000026: Second-level cache disabled 2026-03-21T14:24:51.447Z INFO 92 --- [ main] o.s.o.j.p.SpringPersistenceUnitInfo : No LoadTimeWeaver setup: ignoring JPA class transformer 2026-03-21T14:24:51.448Z WARN 92 --- [ main] org.hibernate.orm.deprecation : HHH90000025: H2Dialect does not need to be specified explicitly using 'hibernate.dialect' (remove the property setting and it will be selected by default) 2026-03-21T14:24:51.449Z INFO 92 --- [ main] org.hibernate.orm.connections.pooling : HHH10001005: Database info: Database JDBC URL [Connecting through datasource 'org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactory$EmbeddedDataSourceProxy@71c1d3e4'] Database driver: undefined/unknown Database version: 2.3.232 Autocommit mode: undefined/unknown Isolation level: undefined/unknown Minimum pool size: undefined/unknown Maximum pool size: undefined/unknown Hibernate: create global temporary table HT_user_entity(id bigint not null, primary key (id)) TRANSACTIONAL Hibernate: create global temporary table HTE_user_entity(has_children boolean, has_other_pets boolean, HTE_IDENTITY bigint generated by default as identity, id bigint, availability varchar(255), email varchar(255), housing_type varchar(255), name varchar(255), password varchar(255), phone varchar(255), specialty varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL Hibernate: create global temporary table HTE_mock_user(HTE_IDENTITY bigint generated by default as identity, id bigint, email varchar(255), name varchar(255), password varchar(255), phone varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL Hibernate: create global temporary table HTE_veterinarian_entity(HTE_IDENTITY bigint generated by default as identity, id bigint, shelter_id bigint, availability varchar(255), email varchar(255), name varchar(255), password varchar(255), phone varchar(255), specialty varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL Hibernate: create global temporary table HTE_adopter_entity(has_children boolean, has_other_pets boolean, HTE_IDENTITY bigint generated by default as identity, id bigint, email varchar(255), housing_type varchar(255), name varchar(255), password varchar(255), phone varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL 2026-03-21T14:24:51.652Z INFO 92 --- [ main] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000489: No JTA platform available (set 'hibernate.transaction.jta.platform' to enable JTA platform integration) Hibernate: drop table if exists adopter_entity cascade Hibernate: drop table if exists adoption_entity cascade Hibernate: drop table if exists adoption_follow_up_entity cascade Hibernate: drop table if exists adoption_request_entity cascade Hibernate: drop table if exists approval_strategy_entity cascade Hibernate: drop table if exists medical_event_entity cascade Hibernate: drop table if exists medical_history_entity cascade Hibernate: drop table if exists message_entity cascade Hibernate: drop table if exists mock_user cascade Hibernate: drop table if exists notification_entity cascade Hibernate: drop table if exists notification_strategy_entity cascade Hibernate: drop table if exists pet_entity cascade Hibernate: drop table if exists report_entity cascade Hibernate: drop table if exists report_strategy_entity cascade Hibernate: drop table if exists review_entity cascade Hibernate: drop table if exists shelter_entity cascade Hibernate: drop table if exists shelter_event_entity cascade Hibernate: drop table if exists trial_cohabitation_entity cascade Hibernate: drop table if exists user_entity cascade Hibernate: drop table if exists vaccination_record_entity cascade Hibernate: drop table if exists vaccine_entity cascade Hibernate: drop table if exists veterinarian_entity cascade Hibernate: create table adopter_entity (has_children boolean, has_other_pets boolean, id bigint not null, housing_type varchar(255), primary key (id)) Hibernate: create table adoption_entity (adoption_date date, adopter_id bigint, id bigint generated by default as identity, pet_id bigint, status enum ('CANCELLED','COMPLETED','CREATED','IN_PROGRESS','PENDING'), primary key (id)) Hibernate: create table adoption_follow_up_entity (adoption_id bigint, id bigint generated by default as identity, pet_id bigint, veterinarian_id bigint, frequency varchar(255), notes varchar(255), primary key (id)) Hibernate: create table adoption_request_entity (request_date date, adopter_id bigint, id bigint generated by default as identity, pet_id bigint, strategy_id bigint, trial_cohabitation_id bigint unique, status varchar(255), primary key (id)) Hibernate: create table approval_strategy_entity (id bigint generated by default as identity, approval_type varchar(31) not null, primary key (id)) Hibernate: create table medical_event_entity (event_date date, id bigint generated by default as identity, medical_history_id bigint, veterinarian_id bigint, diagnosis varchar(255), event_type varchar(255), treatment varchar(255), primary key (id)) Hibernate: create table medical_history_entity (id bigint generated by default as identity, pet_id bigint unique, description varchar(255), primary key (id)) Hibernate: create table message_entity (is_read boolean, adopter_id bigint, id bigint generated by default as identity, shelter_id bigint, timestamp timestamp(6), content TEXT, primary key (id)) Hibernate: create table mock_user (id bigint not null, primary key (id)) Hibernate: create table notification_entity (is_read boolean, date timestamp(6), id bigint generated by default as identity, strategy_id bigint unique, user_id bigint, message varchar(255), primary key (id)) Hibernate: create table notification_strategy_entity (id bigint generated by default as identity, primary key (id)) Hibernate: create table pet_entity (age integer, good_with_kids boolean, good_with_pets boolean, id bigint generated by default as identity, shelter_id bigint, activity_level varchar(255), breed varchar(255), description varchar(255), name varchar(255), origin varchar(255), photos varchar(255), sex varchar(255), size varchar(255), space_required varchar(255), special_needs varchar(255), species varchar(255), temperament varchar(255), status enum ('ADOPTED','AVAILABLE','IN_TRIAL','MEDICAL_TREATMENT','RESERVED'), primary key (id)) Hibernate: create table report_entity (generate_date date, event_id bigint, id bigint generated by default as identity, shelter_id bigint, strategy_id bigint, primary key (id)) Hibernate: create table report_strategy_entity (id bigint generated by default as identity, primary key (id)) Hibernate: create table review_entity (date date, rating integer, adopter_id bigint, id bigint generated by default as identity, pet_id bigint, comment TEXT, primary key (id)) Hibernate: create table shelter_entity (id bigint generated by default as identity, city varchar(255), description varchar(255), email varchar(255), gallery varchar(255), name varchar(255), primary key (id)) Hibernate: create table shelter_event_entity (date date, id bigint generated by default as identity, shelter_id bigint, description varchar(255), location varchar(255), title varchar(255), status enum ('CANCELLED','COMPLETED','CREATED','IN_PROGRESS','PENDING'), primary key (id)) Hibernate: create table trial_cohabitation_entity (end_date date, start_date date, adoption_id bigint unique, id bigint generated by default as identity, pet_id bigint, result varchar(255), status enum ('CANCELLED','COMPLETED','CREATED','IN_PROGRESS','PENDING'), primary key (id)) Hibernate: create table user_entity (id bigint generated by default as identity, email varchar(255), name varchar(255), password varchar(255), phone varchar(255), primary key (id)) Hibernate: create table vaccination_record_entity (application_date date, next_due_date date, id bigint generated by default as identity, medical_history_id bigint, vaccine_id bigint, veterinarian_id bigint, primary key (id)) Hibernate: create table vaccine_entity (validity_months integer, id bigint generated by default as identity, description varchar(255), name varchar(255), primary key (id)) Hibernate: create table veterinarian_entity (id bigint not null, shelter_id bigint, availability varchar(255), specialty varchar(255), primary key (id)) Hibernate: alter table if exists adopter_entity add constraint FKitj2sdxcctxrw6ql04jny7l9y foreign key (id) references user_entity Hibernate: alter table if exists adoption_entity add constraint FK224d1qenh6y54c9lq828mmgx foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists adoption_entity add constraint FKqmviggw0khaskxup4cg7bvqku foreign key (pet_id) references pet_entity Hibernate: alter table if exists adoption_follow_up_entity add constraint FKkxibwn0r1ep7bgevg86seymmc foreign key (adoption_id) references adoption_entity Hibernate: alter table if exists adoption_follow_up_entity add constraint FKkqclwmvja9dll86u1bn9ycwn0 foreign key (pet_id) references pet_entity Hibernate: alter table if exists adoption_follow_up_entity add constraint FKsump3rviut1cvfr8iv6vogfp4 foreign key (veterinarian_id) references veterinarian_entity Hibernate: alter table if exists adoption_request_entity add constraint FK90j2qmgnqst03l9x6fpwf0aab foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists adoption_request_entity add constraint FKpdxe7jyb75mwugces1axydwtg foreign key (strategy_id) references approval_strategy_entity Hibernate: alter table if exists adoption_request_entity add constraint FKhanslcvxoi0t9cq07vsyerx7d foreign key (pet_id) references pet_entity Hibernate: alter table if exists adoption_request_entity add constraint FKad0m44984i6frcsd86susx3df foreign key (trial_cohabitation_id) references trial_cohabitation_entity Hibernate: alter table if exists medical_event_entity add constraint FKloam0wk3hbpns9awx08v8ttty foreign key (medical_history_id) references medical_history_entity Hibernate: alter table if exists medical_event_entity add constraint FKmx3l6boot15lqesauq3y2k5t9 foreign key (veterinarian_id) references veterinarian_entity Hibernate: alter table if exists medical_history_entity add constraint FKfqo1kwpy0eom46u48u9i9ob79 foreign key (pet_id) references pet_entity Hibernate: alter table if exists message_entity add constraint FK1bx2fv4ukgy2ruq9gclvehfjw foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists message_entity add constraint FKc1jilfk3teueg8wfilq0u9h0y foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists mock_user add constraint FK1t7datqqs96rej2yoo133loxs foreign key (id) references user_entity Hibernate: alter table if exists notification_entity add constraint FKpsofie2xkbprbd9jo128ocuy9 foreign key (strategy_id) references notification_strategy_entity Hibernate: alter table if exists notification_entity add constraint FKgemicmmtfy225vqj5li4u96lk foreign key (user_id) references user_entity Hibernate: alter table if exists pet_entity add constraint FK57h1lsq9l67lcsx43ftwwto1c foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists report_entity add constraint FK6c18c90k2vnskwos9leqbmxrv foreign key (strategy_id) references report_strategy_entity Hibernate: alter table if exists report_entity add constraint FKoa7u6l3jn2ueixs49yy8nrap3 foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists report_entity add constraint FK33bibp5ycbkys4c6g1dxm410t foreign key (event_id) references shelter_event_entity Hibernate: alter table if exists review_entity add constraint FK8w6fpunff42r2ytatsjbb4o96 foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists review_entity add constraint FKhtmwv0o4w6vp5k7w088xwk0yt foreign key (pet_id) references pet_entity Hibernate: alter table if exists shelter_event_entity add constraint FKjj4fox0olnc8o73kdgso782es foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists trial_cohabitation_entity add constraint FK608jf01b64pwvg12957nbsfsj foreign key (adoption_id) references adoption_entity Hibernate: alter table if exists trial_cohabitation_entity add constraint FKrxpesflvao88mgm4bmys2c3k1 foreign key (pet_id) references pet_entity Hibernate: alter table if exists vaccination_record_entity add constraint FKfo5r2fgxn4ltp9oubgnilaq41 foreign key (medical_history_id) references medical_history_entity Hibernate: alter table if exists vaccination_record_entity add constraint FKdahievfho7baue5s1sayxwom2 foreign key (vaccine_id) references vaccine_entity Hibernate: alter table if exists vaccination_record_entity add constraint FKe2aflnq4dp8kne3km9enr1mt9 foreign key (veterinarian_id) references veterinarian_entity Hibernate: alter table if exists veterinarian_entity add constraint FKe8xa1wxe967urrvxsxpdm8y8r foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists veterinarian_entity add constraint FKl5lutaqpbd2jrfrerhn6a9g69 foreign key (id) references user_entity 2026-03-21T14:24:51.717Z INFO 92 --- [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default' 2026-03-21T14:24:51.957Z INFO 92 --- [ main] c.e.u.m.p.services.AdoptionServiceTest : Started AdoptionServiceTest in 0.787 seconds (process running for 11.156) Hibernate: delete from adoption_follow_up_entity afue1_0 Hibernate: delete from adoption_entity ae1_0 Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) 2026-03-21T14:24:51.975Z INFO 92 --- [ main] c.e.u.mdp.pets.services.AdoptionService : Starting update process for adoption with id = 1 2026-03-21T14:24:51.976Z INFO 92 --- [ main] c.e.u.mdp.pets.services.AdoptionService : Adoption with id = 1 updated successfully Hibernate: delete from adoption_follow_up_entity afue1_0 Hibernate: delete from adoption_entity ae1_0 Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) 2026-03-21T14:24:51.990Z INFO 92 --- [ main] c.e.u.mdp.pets.services.AdoptionService : Starting process to consult all adoptions Hibernate: select ae1_0.id,ae1_0.adopter_id,ae1_0.adoption_date,ae1_0.pet_id,ae1_0.status from adoption_entity ae1_0 Hibernate: delete from adoption_follow_up_entity afue1_0 Hibernate: delete from adoption_entity ae1_0 Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) 2026-03-21T14:24:52.007Z INFO 92 --- [ main] c.e.u.mdp.pets.services.AdoptionService : Starting creation process for adoption 2026-03-21T14:24:52.007Z INFO 92 --- [ main] c.e.u.mdp.pets.services.AdoptionService : Adoption created successfully Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) Hibernate: delete from adoption_follow_up_entity afue1_0 Hibernate: delete from adoption_entity ae1_0 Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) 2026-03-21T14:24:52.026Z INFO 92 --- [ main] c.e.u.mdp.pets.services.AdoptionService : Starting update process for adoption with id = 999 Hibernate: select ae1_0.id,a1_0.id,a1_1.email,a1_1.name,a1_1.password,a1_1.phone,a1_0.has_children,a1_0.has_other_pets,a1_0.housing_type,ae1_0.adoption_date,p1_0.id,p1_0.activity_level,p1_0.age,p1_0.breed,p1_0.description,p1_0.good_with_kids,p1_0.good_with_pets,mh1_0.id,mh1_0.description,p1_0.name,p1_0.origin,p1_0.photos,p1_0.sex,p1_0.shelter_id,p1_0.size,p1_0.space_required,p1_0.special_needs,p1_0.species,p1_0.status,p1_0.temperament,ae1_0.status,tc1_0.id,tc1_0.end_date,tc1_0.pet_id,tc1_0.result,tc1_0.start_date,tc1_0.status from adoption_entity ae1_0 left join adopter_entity a1_0 on a1_0.id=ae1_0.adopter_id left join user_entity a1_1 on a1_0.id=a1_1.id left join pet_entity p1_0 on p1_0.id=ae1_0.pet_id left join medical_history_entity mh1_0 on p1_0.id=mh1_0.pet_id left join trial_cohabitation_entity tc1_0 on ae1_0.id=tc1_0.adoption_id where ae1_0.id=? Hibernate: delete from adoption_follow_up_entity afue1_0 Hibernate: delete from adoption_entity ae1_0 Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) Hibernate: insert into adoption_follow_up_entity (adoption_id,frequency,notes,pet_id,veterinarian_id,id) values (?,?,?,?,?,default) 2026-03-21T14:24:52.049Z INFO 92 --- [ main] c.e.u.mdp.pets.services.AdoptionService : Starting deletion process for adoption ID: 14 2026-03-21T14:24:52.050Z WARN 92 --- [ main] c.e.u.mdp.pets.services.AdoptionService : Attempted to delete adoption 14 but it has follow-ups Hibernate: delete from adoption_follow_up_entity afue1_0 Hibernate: delete from adoption_entity ae1_0 Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) 2026-03-21T14:24:52.063Z INFO 92 --- [ main] c.e.u.mdp.pets.services.AdoptionService : Starting creation process for adoption Hibernate: delete from adoption_follow_up_entity afue1_0 Hibernate: delete from adoption_entity ae1_0 Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) 2026-03-21T14:24:52.076Z INFO 92 --- [ main] c.e.u.mdp.pets.services.AdoptionService : Starting process to consult adoption with id = 999 Hibernate: select ae1_0.id,a1_0.id,a1_1.email,a1_1.name,a1_1.password,a1_1.phone,a1_0.has_children,a1_0.has_other_pets,a1_0.housing_type,ae1_0.adoption_date,p1_0.id,p1_0.activity_level,p1_0.age,p1_0.breed,p1_0.description,p1_0.good_with_kids,p1_0.good_with_pets,mh1_0.id,mh1_0.description,p1_0.name,p1_0.origin,p1_0.photos,p1_0.sex,p1_0.shelter_id,p1_0.size,p1_0.space_required,p1_0.special_needs,p1_0.species,p1_0.status,p1_0.temperament,ae1_0.status,tc1_0.id,tc1_0.end_date,tc1_0.pet_id,tc1_0.result,tc1_0.start_date,tc1_0.status from adoption_entity ae1_0 left join adopter_entity a1_0 on a1_0.id=ae1_0.adopter_id left join user_entity a1_1 on a1_0.id=a1_1.id left join pet_entity p1_0 on p1_0.id=ae1_0.pet_id left join medical_history_entity mh1_0 on p1_0.id=mh1_0.pet_id left join trial_cohabitation_entity tc1_0 on ae1_0.id=tc1_0.adoption_id where ae1_0.id=? 2026-03-21T14:24:52.078Z ERROR 92 --- [ main] c.e.u.mdp.pets.services.AdoptionService : Adoption with id 999 not found Hibernate: delete from adoption_follow_up_entity afue1_0 Hibernate: delete from adoption_entity ae1_0 Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) 2026-03-21T14:24:52.091Z INFO 92 --- [ main] c.e.u.mdp.pets.services.AdoptionService : Starting deletion process for adoption ID: 23 2026-03-21T14:24:52.092Z INFO 92 --- [ main] c.e.u.mdp.pets.services.AdoptionService : Adoption with ID: 23 deleted successfully Hibernate: delete from adoption_follow_up_entity afue1_0 Hibernate: delete from adoption_entity ae1_0 Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) 2026-03-21T14:24:52.104Z INFO 92 --- [ main] c.e.u.mdp.pets.services.AdoptionService : Starting process to consult adoption with id = 26 Hibernate: delete from adoption_follow_up_entity afue1_0 Hibernate: delete from adoption_entity ae1_0 Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) 2026-03-21T14:24:52.115Z INFO 92 --- [ main] c.e.u.mdp.pets.services.AdoptionService : Starting deletion process for adoption ID: 999 Hibernate: select ae1_0.id,a1_0.id,a1_1.email,a1_1.name,a1_1.password,a1_1.phone,a1_0.has_children,a1_0.has_other_pets,a1_0.housing_type,ae1_0.adoption_date,p1_0.id,p1_0.activity_level,p1_0.age,p1_0.breed,p1_0.description,p1_0.good_with_kids,p1_0.good_with_pets,mh1_0.id,mh1_0.description,p1_0.name,p1_0.origin,p1_0.photos,p1_0.sex,p1_0.shelter_id,p1_0.size,p1_0.space_required,p1_0.special_needs,p1_0.species,p1_0.status,p1_0.temperament,ae1_0.status,tc1_0.id,tc1_0.end_date,tc1_0.pet_id,tc1_0.result,tc1_0.start_date,tc1_0.status from adoption_entity ae1_0 left join adopter_entity a1_0 on a1_0.id=ae1_0.adopter_id left join user_entity a1_1 on a1_0.id=a1_1.id left join pet_entity p1_0 on p1_0.id=ae1_0.pet_id left join medical_history_entity mh1_0 on p1_0.id=mh1_0.pet_id left join trial_cohabitation_entity tc1_0 on ae1_0.id=tc1_0.adoption_id where ae1_0.id=? Hibernate: delete from adoption_follow_up_entity afue1_0 Hibernate: delete from adoption_entity ae1_0 Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) 2026-03-21T14:24:52.129Z INFO 92 --- [ main] c.e.u.mdp.pets.services.AdoptionService : Starting update process for adoption with id = 32 [INFO] Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.982 s -- in co.edu.udistrital.mdp.pets.services.AdoptionServiceTest [INFO] Running co.edu.udistrital.mdp.pets.services.ShelterServiceTest 2026-03-21T14:24:52.141Z INFO 92 --- [ main] t.c.s.AnnotationConfigContextLoaderUtils : Could not detect default configuration classes for test class [co.edu.udistrital.mdp.pets.services.ShelterServiceTest]: ShelterServiceTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration. 2026-03-21T14:24:52.148Z INFO 92 --- [ main] .b.t.c.SpringBootTestContextBootstrapper : Found @SpringBootConfiguration co.edu.udistrital.mdp.pets.MainApplication for test class co.edu.udistrital.mdp.pets.services.ShelterServiceTest . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v3.5.10) 2026-03-21T14:24:52.172Z INFO 92 --- [ main] c.e.u.m.p.services.ShelterServiceTest : Starting ShelterServiceTest using Java 21.0.4 with PID 92 (started by root in /home/cecaduser/workspace/MP_202610_G81_E1_Back) 2026-03-21T14:24:52.172Z INFO 92 --- [ main] c.e.u.m.p.services.ShelterServiceTest : No active profile set, falling back to 1 default profile: "default" 2026-03-21T14:24:52.249Z INFO 92 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode. 2026-03-21T14:24:52.275Z INFO 92 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 24 ms. Found 19 JPA repository interfaces. 2026-03-21T14:24:52.296Z INFO 92 --- [ main] beddedDataSourceBeanFactoryPostProcessor : Replacing 'dataSource' DataSource bean with embedded version 2026-03-21T14:24:52.310Z INFO 92 --- [ main] o.s.j.d.e.EmbeddedDatabaseFactory : Starting embedded database: url='jdbc:h2:mem:6b2bd68a-2644-442e-996e-6cfcb4181110;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=false', username='sa' 2026-03-21T14:24:52.330Z INFO 92 --- [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default] 2026-03-21T14:24:52.332Z INFO 92 --- [ main] o.h.c.internal.RegionFactoryInitiator : HHH000026: Second-level cache disabled 2026-03-21T14:24:52.340Z INFO 92 --- [ main] o.s.o.j.p.SpringPersistenceUnitInfo : No LoadTimeWeaver setup: ignoring JPA class transformer 2026-03-21T14:24:52.342Z WARN 92 --- [ main] org.hibernate.orm.deprecation : HHH90000025: H2Dialect does not need to be specified explicitly using 'hibernate.dialect' (remove the property setting and it will be selected by default) 2026-03-21T14:24:52.342Z INFO 92 --- [ main] org.hibernate.orm.connections.pooling : HHH10001005: Database info: Database JDBC URL [Connecting through datasource 'org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactory$EmbeddedDataSourceProxy@74e04a55'] Database driver: undefined/unknown Database version: 2.3.232 Autocommit mode: undefined/unknown Isolation level: undefined/unknown Minimum pool size: undefined/unknown Maximum pool size: undefined/unknown Hibernate: create global temporary table HT_user_entity(id bigint not null, primary key (id)) TRANSACTIONAL Hibernate: create global temporary table HTE_user_entity(has_children boolean, has_other_pets boolean, HTE_IDENTITY bigint generated by default as identity, id bigint, availability varchar(255), email varchar(255), housing_type varchar(255), name varchar(255), password varchar(255), phone varchar(255), specialty varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL Hibernate: create global temporary table HTE_mock_user(HTE_IDENTITY bigint generated by default as identity, id bigint, email varchar(255), name varchar(255), password varchar(255), phone varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL Hibernate: create global temporary table HTE_veterinarian_entity(HTE_IDENTITY bigint generated by default as identity, id bigint, shelter_id bigint, availability varchar(255), email varchar(255), name varchar(255), password varchar(255), phone varchar(255), specialty varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL Hibernate: create global temporary table HTE_adopter_entity(has_children boolean, has_other_pets boolean, HTE_IDENTITY bigint generated by default as identity, id bigint, email varchar(255), housing_type varchar(255), name varchar(255), password varchar(255), phone varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL 2026-03-21T14:24:52.505Z INFO 92 --- [ main] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000489: No JTA platform available (set 'hibernate.transaction.jta.platform' to enable JTA platform integration) Hibernate: drop table if exists adopter_entity cascade Hibernate: drop table if exists adoption_entity cascade Hibernate: drop table if exists adoption_follow_up_entity cascade Hibernate: drop table if exists adoption_request_entity cascade Hibernate: drop table if exists approval_strategy_entity cascade Hibernate: drop table if exists medical_event_entity cascade Hibernate: drop table if exists medical_history_entity cascade Hibernate: drop table if exists message_entity cascade Hibernate: drop table if exists mock_user cascade Hibernate: drop table if exists notification_entity cascade Hibernate: drop table if exists notification_strategy_entity cascade Hibernate: drop table if exists pet_entity cascade Hibernate: drop table if exists report_entity cascade Hibernate: drop table if exists report_strategy_entity cascade Hibernate: drop table if exists review_entity cascade Hibernate: drop table if exists shelter_entity cascade Hibernate: drop table if exists shelter_event_entity cascade Hibernate: drop table if exists trial_cohabitation_entity cascade Hibernate: drop table if exists user_entity cascade Hibernate: drop table if exists vaccination_record_entity cascade Hibernate: drop table if exists vaccine_entity cascade Hibernate: drop table if exists veterinarian_entity cascade Hibernate: create table adopter_entity (has_children boolean, has_other_pets boolean, id bigint not null, housing_type varchar(255), primary key (id)) Hibernate: create table adoption_entity (adoption_date date, adopter_id bigint, id bigint generated by default as identity, pet_id bigint, status enum ('CANCELLED','COMPLETED','CREATED','IN_PROGRESS','PENDING'), primary key (id)) Hibernate: create table adoption_follow_up_entity (adoption_id bigint, id bigint generated by default as identity, pet_id bigint, veterinarian_id bigint, frequency varchar(255), notes varchar(255), primary key (id)) Hibernate: create table adoption_request_entity (request_date date, adopter_id bigint, id bigint generated by default as identity, pet_id bigint, strategy_id bigint, trial_cohabitation_id bigint unique, status varchar(255), primary key (id)) Hibernate: create table approval_strategy_entity (id bigint generated by default as identity, approval_type varchar(31) not null, primary key (id)) Hibernate: create table medical_event_entity (event_date date, id bigint generated by default as identity, medical_history_id bigint, veterinarian_id bigint, diagnosis varchar(255), event_type varchar(255), treatment varchar(255), primary key (id)) Hibernate: create table medical_history_entity (id bigint generated by default as identity, pet_id bigint unique, description varchar(255), primary key (id)) Hibernate: create table message_entity (is_read boolean, adopter_id bigint, id bigint generated by default as identity, shelter_id bigint, timestamp timestamp(6), content TEXT, primary key (id)) Hibernate: create table mock_user (id bigint not null, primary key (id)) Hibernate: create table notification_entity (is_read boolean, date timestamp(6), id bigint generated by default as identity, strategy_id bigint unique, user_id bigint, message varchar(255), primary key (id)) Hibernate: create table notification_strategy_entity (id bigint generated by default as identity, primary key (id)) Hibernate: create table pet_entity (age integer, good_with_kids boolean, good_with_pets boolean, id bigint generated by default as identity, shelter_id bigint, activity_level varchar(255), breed varchar(255), description varchar(255), name varchar(255), origin varchar(255), photos varchar(255), sex varchar(255), size varchar(255), space_required varchar(255), special_needs varchar(255), species varchar(255), temperament varchar(255), status enum ('ADOPTED','AVAILABLE','IN_TRIAL','MEDICAL_TREATMENT','RESERVED'), primary key (id)) Hibernate: create table report_entity (generate_date date, event_id bigint, id bigint generated by default as identity, shelter_id bigint, strategy_id bigint, primary key (id)) Hibernate: create table report_strategy_entity (id bigint generated by default as identity, primary key (id)) Hibernate: create table review_entity (date date, rating integer, adopter_id bigint, id bigint generated by default as identity, pet_id bigint, comment TEXT, primary key (id)) Hibernate: create table shelter_entity (id bigint generated by default as identity, city varchar(255), description varchar(255), email varchar(255), gallery varchar(255), name varchar(255), primary key (id)) Hibernate: create table shelter_event_entity (date date, id bigint generated by default as identity, shelter_id bigint, description varchar(255), location varchar(255), title varchar(255), status enum ('CANCELLED','COMPLETED','CREATED','IN_PROGRESS','PENDING'), primary key (id)) Hibernate: create table trial_cohabitation_entity (end_date date, start_date date, adoption_id bigint unique, id bigint generated by default as identity, pet_id bigint, result varchar(255), status enum ('CANCELLED','COMPLETED','CREATED','IN_PROGRESS','PENDING'), primary key (id)) Hibernate: create table user_entity (id bigint generated by default as identity, email varchar(255), name varchar(255), password varchar(255), phone varchar(255), primary key (id)) Hibernate: create table vaccination_record_entity (application_date date, next_due_date date, id bigint generated by default as identity, medical_history_id bigint, vaccine_id bigint, veterinarian_id bigint, primary key (id)) Hibernate: create table vaccine_entity (validity_months integer, id bigint generated by default as identity, description varchar(255), name varchar(255), primary key (id)) Hibernate: create table veterinarian_entity (id bigint not null, shelter_id bigint, availability varchar(255), specialty varchar(255), primary key (id)) Hibernate: alter table if exists adopter_entity add constraint FKitj2sdxcctxrw6ql04jny7l9y foreign key (id) references user_entity Hibernate: alter table if exists adoption_entity add constraint FK224d1qenh6y54c9lq828mmgx foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists adoption_entity add constraint FKqmviggw0khaskxup4cg7bvqku foreign key (pet_id) references pet_entity Hibernate: alter table if exists adoption_follow_up_entity add constraint FKkxibwn0r1ep7bgevg86seymmc foreign key (adoption_id) references adoption_entity Hibernate: alter table if exists adoption_follow_up_entity add constraint FKkqclwmvja9dll86u1bn9ycwn0 foreign key (pet_id) references pet_entity Hibernate: alter table if exists adoption_follow_up_entity add constraint FKsump3rviut1cvfr8iv6vogfp4 foreign key (veterinarian_id) references veterinarian_entity Hibernate: alter table if exists adoption_request_entity add constraint FK90j2qmgnqst03l9x6fpwf0aab foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists adoption_request_entity add constraint FKpdxe7jyb75mwugces1axydwtg foreign key (strategy_id) references approval_strategy_entity Hibernate: alter table if exists adoption_request_entity add constraint FKhanslcvxoi0t9cq07vsyerx7d foreign key (pet_id) references pet_entity Hibernate: alter table if exists adoption_request_entity add constraint FKad0m44984i6frcsd86susx3df foreign key (trial_cohabitation_id) references trial_cohabitation_entity Hibernate: alter table if exists medical_event_entity add constraint FKloam0wk3hbpns9awx08v8ttty foreign key (medical_history_id) references medical_history_entity Hibernate: alter table if exists medical_event_entity add constraint FKmx3l6boot15lqesauq3y2k5t9 foreign key (veterinarian_id) references veterinarian_entity Hibernate: alter table if exists medical_history_entity add constraint FKfqo1kwpy0eom46u48u9i9ob79 foreign key (pet_id) references pet_entity Hibernate: alter table if exists message_entity add constraint FK1bx2fv4ukgy2ruq9gclvehfjw foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists message_entity add constraint FKc1jilfk3teueg8wfilq0u9h0y foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists mock_user add constraint FK1t7datqqs96rej2yoo133loxs foreign key (id) references user_entity Hibernate: alter table if exists notification_entity add constraint FKpsofie2xkbprbd9jo128ocuy9 foreign key (strategy_id) references notification_strategy_entity Hibernate: alter table if exists notification_entity add constraint FKgemicmmtfy225vqj5li4u96lk foreign key (user_id) references user_entity Hibernate: alter table if exists pet_entity add constraint FK57h1lsq9l67lcsx43ftwwto1c foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists report_entity add constraint FK6c18c90k2vnskwos9leqbmxrv foreign key (strategy_id) references report_strategy_entity Hibernate: alter table if exists report_entity add constraint FKoa7u6l3jn2ueixs49yy8nrap3 foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists report_entity add constraint FK33bibp5ycbkys4c6g1dxm410t foreign key (event_id) references shelter_event_entity Hibernate: alter table if exists review_entity add constraint FK8w6fpunff42r2ytatsjbb4o96 foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists review_entity add constraint FKhtmwv0o4w6vp5k7w088xwk0yt foreign key (pet_id) references pet_entity Hibernate: alter table if exists shelter_event_entity add constraint FKjj4fox0olnc8o73kdgso782es foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists trial_cohabitation_entity add constraint FK608jf01b64pwvg12957nbsfsj foreign key (adoption_id) references adoption_entity Hibernate: alter table if exists trial_cohabitation_entity add constraint FKrxpesflvao88mgm4bmys2c3k1 foreign key (pet_id) references pet_entity Hibernate: alter table if exists vaccination_record_entity add constraint FKfo5r2fgxn4ltp9oubgnilaq41 foreign key (medical_history_id) references medical_history_entity Hibernate: alter table if exists vaccination_record_entity add constraint FKdahievfho7baue5s1sayxwom2 foreign key (vaccine_id) references vaccine_entity Hibernate: alter table if exists vaccination_record_entity add constraint FKe2aflnq4dp8kne3km9enr1mt9 foreign key (veterinarian_id) references veterinarian_entity Hibernate: alter table if exists veterinarian_entity add constraint FKe8xa1wxe967urrvxsxpdm8y8r foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists veterinarian_entity add constraint FKl5lutaqpbd2jrfrerhn6a9g69 foreign key (id) references user_entity 2026-03-21T14:24:52.557Z INFO 92 --- [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default' 2026-03-21T14:24:52.759Z INFO 92 --- [ main] c.e.u.m.p.services.ShelterServiceTest : Started ShelterServiceTest in 0.608 seconds (process running for 11.958) Hibernate: delete from pet_entity pe1_0 Hibernate: delete from shelter_event_entity see1_0 Hibernate: delete from shelter_entity se1_0 Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) 2026-03-21T14:24:52.777Z INFO 92 --- [ main] c.e.u.mdp.pets.services.ShelterService : Starting process to consult shelter with id = 1 Hibernate: delete from pet_entity pe1_0 Hibernate: delete from shelter_event_entity see1_0 Hibernate: delete from shelter_entity se1_0 Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) 2026-03-21T14:24:52.791Z INFO 92 --- [ main] c.e.u.mdp.pets.services.ShelterService : Starting update process for shelter with id = 4 Hibernate: select se1_0.id from shelter_entity se1_0 where se1_0.name=? fetch first ? rows only Hibernate: select se1_0.id from shelter_entity se1_0 where se1_0.email=? fetch first ? rows only 2026-03-21T14:24:52.799Z INFO 92 --- [ main] c.e.u.mdp.pets.services.ShelterService : Shelter with id = 4 updated successfully Hibernate: delete from pet_entity pe1_0 Hibernate: delete from shelter_event_entity see1_0 Hibernate: delete from shelter_entity se1_0 Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) 2026-03-21T14:24:52.813Z INFO 92 --- [ main] c.e.u.mdp.pets.services.ShelterService : Starting creation process for shelter: AZOzD2JNwl Hibernate: select se1_0.id from shelter_entity se1_0 where se1_0.name=? fetch first ? rows only Hibernate: select se1_0.id from shelter_entity se1_0 where se1_0.email=? fetch first ? rows only Hibernate: delete from pet_entity pe1_0 Hibernate: delete from shelter_event_entity see1_0 Hibernate: delete from shelter_entity se1_0 Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) Hibernate: insert into shelter_event_entity (date,description,location,shelter_id,status,title,id) values (?,?,?,?,?,?,default) 2026-03-21T14:24:52.837Z INFO 92 --- [ main] c.e.u.mdp.pets.services.ShelterService : Starting deletion process for shelter ID: 13 2026-03-21T14:24:52.839Z WARN 92 --- [ main] c.e.u.mdp.pets.services.ShelterService : Attempted to delete shelter 13 but it has active events Hibernate: delete from pet_entity pe1_0 Hibernate: delete from shelter_event_entity see1_0 Hibernate: delete from shelter_entity se1_0 Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) 2026-03-21T14:24:52.851Z INFO 92 --- [ main] c.e.u.mdp.pets.services.ShelterService : Starting process to consult shelter with id = 999 Hibernate: select se1_0.id,se1_0.city,se1_0.description,se1_0.email,se1_0.gallery,se1_0.name from shelter_entity se1_0 where se1_0.id=? 2026-03-21T14:24:52.853Z ERROR 92 --- [ main] c.e.u.mdp.pets.services.ShelterService : Shelter with id 999 not found Hibernate: delete from pet_entity pe1_0 Hibernate: delete from shelter_event_entity see1_0 Hibernate: delete from shelter_entity se1_0 Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) 2026-03-21T14:24:52.864Z INFO 92 --- [ main] c.e.u.mdp.pets.services.ShelterService : Starting deletion process for shelter ID: 17 2026-03-21T14:24:52.865Z INFO 92 --- [ main] c.e.u.mdp.pets.services.ShelterService : Shelter with ID: 17 deleted successfully Hibernate: delete from pet_entity pe1_0 Hibernate: delete from shelter_event_entity see1_0 Hibernate: delete from shelter_entity se1_0 Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) Hibernate: insert into pet_entity (activity_level,age,breed,description,good_with_kids,good_with_pets,name,origin,photos,sex,shelter_id,size,space_required,special_needs,species,status,temperament,id) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,default) 2026-03-21T14:24:52.882Z INFO 92 --- [ main] c.e.u.mdp.pets.services.ShelterService : Starting deletion process for shelter ID: 20 2026-03-21T14:24:52.883Z WARN 92 --- [ main] c.e.u.mdp.pets.services.ShelterService : Attempted to delete shelter 20 but it has pets Hibernate: delete from pet_entity pe1_0 Hibernate: delete from shelter_event_entity see1_0 Hibernate: delete from shelter_entity se1_0 Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) 2026-03-21T14:24:52.895Z INFO 92 --- [ main] c.e.u.mdp.pets.services.ShelterService : Starting creation process for shelter: Shelter 0 Hibernate: select se1_0.id from shelter_entity se1_0 where se1_0.name=? fetch first ? rows only Hibernate: delete from pet_entity pe1_0 Hibernate: delete from shelter_event_entity see1_0 Hibernate: delete from shelter_entity se1_0 Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) 2026-03-21T14:24:52.911Z INFO 92 --- [ main] c.e.u.mdp.pets.services.ShelterService : Starting process to consult all shelters Hibernate: select se1_0.id,se1_0.city,se1_0.description,se1_0.email,se1_0.gallery,se1_0.name from shelter_entity se1_0 Hibernate: delete from pet_entity pe1_0 Hibernate: delete from shelter_event_entity see1_0 Hibernate: delete from shelter_entity se1_0 Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) 2026-03-21T14:24:52.926Z INFO 92 --- [ main] c.e.u.mdp.pets.services.ShelterService : Starting creation process for shelter: New Unique Shelter Hibernate: select se1_0.id from shelter_entity se1_0 where se1_0.name=? fetch first ? rows only Hibernate: select se1_0.id from shelter_entity se1_0 where se1_0.email=? fetch first ? rows only 2026-03-21T14:24:52.930Z INFO 92 --- [ main] c.e.u.mdp.pets.services.ShelterService : Shelter created successfully: New Unique Shelter Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) [INFO] Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.801 s -- in co.edu.udistrital.mdp.pets.services.ShelterServiceTest [INFO] Running co.edu.udistrital.mdp.pets.services.PetServiceTest 2026-03-21T14:24:52.937Z INFO 92 --- [ main] t.c.s.AnnotationConfigContextLoaderUtils : Could not detect default configuration classes for test class [co.edu.udistrital.mdp.pets.services.PetServiceTest]: PetServiceTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration. 2026-03-21T14:24:52.951Z INFO 92 --- [ main] .b.t.c.SpringBootTestContextBootstrapper : Found @SpringBootConfiguration co.edu.udistrital.mdp.pets.MainApplication for test class co.edu.udistrital.mdp.pets.services.PetServiceTest . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v3.5.10) 2026-03-21T14:24:52.975Z INFO 92 --- [ main] c.e.u.mdp.pets.services.PetServiceTest : Starting PetServiceTest using Java 21.0.4 with PID 92 (started by root in /home/cecaduser/workspace/MP_202610_G81_E1_Back) 2026-03-21T14:24:52.975Z INFO 92 --- [ main] c.e.u.mdp.pets.services.PetServiceTest : No active profile set, falling back to 1 default profile: "default" 2026-03-21T14:24:53.044Z INFO 92 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode. 2026-03-21T14:24:53.066Z INFO 92 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 21 ms. Found 19 JPA repository interfaces. 2026-03-21T14:24:53.085Z INFO 92 --- [ main] beddedDataSourceBeanFactoryPostProcessor : Replacing 'dataSource' DataSource bean with embedded version 2026-03-21T14:24:53.098Z INFO 92 --- [ main] o.s.j.d.e.EmbeddedDatabaseFactory : Starting embedded database: url='jdbc:h2:mem:56f283a7-b8a3-47c8-a768-9f62991e1403;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=false', username='sa' 2026-03-21T14:24:53.117Z INFO 92 --- [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default] 2026-03-21T14:24:53.119Z INFO 92 --- [ main] o.h.c.internal.RegionFactoryInitiator : HHH000026: Second-level cache disabled 2026-03-21T14:24:53.126Z INFO 92 --- [ main] o.s.o.j.p.SpringPersistenceUnitInfo : No LoadTimeWeaver setup: ignoring JPA class transformer 2026-03-21T14:24:53.128Z WARN 92 --- [ main] org.hibernate.orm.deprecation : HHH90000025: H2Dialect does not need to be specified explicitly using 'hibernate.dialect' (remove the property setting and it will be selected by default) 2026-03-21T14:24:53.128Z INFO 92 --- [ main] org.hibernate.orm.connections.pooling : HHH10001005: Database info: Database JDBC URL [Connecting through datasource 'org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactory$EmbeddedDataSourceProxy@31e49aec'] Database driver: undefined/unknown Database version: 2.3.232 Autocommit mode: undefined/unknown Isolation level: undefined/unknown Minimum pool size: undefined/unknown Maximum pool size: undefined/unknown Hibernate: create global temporary table HT_user_entity(id bigint not null, primary key (id)) TRANSACTIONAL Hibernate: create global temporary table HTE_user_entity(has_children boolean, has_other_pets boolean, HTE_IDENTITY bigint generated by default as identity, id bigint, availability varchar(255), email varchar(255), housing_type varchar(255), name varchar(255), password varchar(255), phone varchar(255), specialty varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL Hibernate: create global temporary table HTE_mock_user(HTE_IDENTITY bigint generated by default as identity, id bigint, email varchar(255), name varchar(255), password varchar(255), phone varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL Hibernate: create global temporary table HTE_veterinarian_entity(HTE_IDENTITY bigint generated by default as identity, id bigint, shelter_id bigint, availability varchar(255), email varchar(255), name varchar(255), password varchar(255), phone varchar(255), specialty varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL Hibernate: create global temporary table HTE_adopter_entity(has_children boolean, has_other_pets boolean, HTE_IDENTITY bigint generated by default as identity, id bigint, email varchar(255), housing_type varchar(255), name varchar(255), password varchar(255), phone varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL 2026-03-21T14:24:53.270Z INFO 92 --- [ main] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000489: No JTA platform available (set 'hibernate.transaction.jta.platform' to enable JTA platform integration) Hibernate: drop table if exists adopter_entity cascade Hibernate: drop table if exists adoption_entity cascade Hibernate: drop table if exists adoption_follow_up_entity cascade Hibernate: drop table if exists adoption_request_entity cascade Hibernate: drop table if exists approval_strategy_entity cascade Hibernate: drop table if exists medical_event_entity cascade Hibernate: drop table if exists medical_history_entity cascade Hibernate: drop table if exists message_entity cascade Hibernate: drop table if exists mock_user cascade Hibernate: drop table if exists notification_entity cascade Hibernate: drop table if exists notification_strategy_entity cascade Hibernate: drop table if exists pet_entity cascade Hibernate: drop table if exists report_entity cascade Hibernate: drop table if exists report_strategy_entity cascade Hibernate: drop table if exists review_entity cascade Hibernate: drop table if exists shelter_entity cascade Hibernate: drop table if exists shelter_event_entity cascade Hibernate: drop table if exists trial_cohabitation_entity cascade Hibernate: drop table if exists user_entity cascade Hibernate: drop table if exists vaccination_record_entity cascade Hibernate: drop table if exists vaccine_entity cascade Hibernate: drop table if exists veterinarian_entity cascade Hibernate: create table adopter_entity (has_children boolean, has_other_pets boolean, id bigint not null, housing_type varchar(255), primary key (id)) Hibernate: create table adoption_entity (adoption_date date, adopter_id bigint, id bigint generated by default as identity, pet_id bigint, status enum ('CANCELLED','COMPLETED','CREATED','IN_PROGRESS','PENDING'), primary key (id)) Hibernate: create table adoption_follow_up_entity (adoption_id bigint, id bigint generated by default as identity, pet_id bigint, veterinarian_id bigint, frequency varchar(255), notes varchar(255), primary key (id)) Hibernate: create table adoption_request_entity (request_date date, adopter_id bigint, id bigint generated by default as identity, pet_id bigint, strategy_id bigint, trial_cohabitation_id bigint unique, status varchar(255), primary key (id)) Hibernate: create table approval_strategy_entity (id bigint generated by default as identity, approval_type varchar(31) not null, primary key (id)) Hibernate: create table medical_event_entity (event_date date, id bigint generated by default as identity, medical_history_id bigint, veterinarian_id bigint, diagnosis varchar(255), event_type varchar(255), treatment varchar(255), primary key (id)) Hibernate: create table medical_history_entity (id bigint generated by default as identity, pet_id bigint unique, description varchar(255), primary key (id)) Hibernate: create table message_entity (is_read boolean, adopter_id bigint, id bigint generated by default as identity, shelter_id bigint, timestamp timestamp(6), content TEXT, primary key (id)) Hibernate: create table mock_user (id bigint not null, primary key (id)) Hibernate: create table notification_entity (is_read boolean, date timestamp(6), id bigint generated by default as identity, strategy_id bigint unique, user_id bigint, message varchar(255), primary key (id)) Hibernate: create table notification_strategy_entity (id bigint generated by default as identity, primary key (id)) Hibernate: create table pet_entity (age integer, good_with_kids boolean, good_with_pets boolean, id bigint generated by default as identity, shelter_id bigint, activity_level varchar(255), breed varchar(255), description varchar(255), name varchar(255), origin varchar(255), photos varchar(255), sex varchar(255), size varchar(255), space_required varchar(255), special_needs varchar(255), species varchar(255), temperament varchar(255), status enum ('ADOPTED','AVAILABLE','IN_TRIAL','MEDICAL_TREATMENT','RESERVED'), primary key (id)) Hibernate: create table report_entity (generate_date date, event_id bigint, id bigint generated by default as identity, shelter_id bigint, strategy_id bigint, primary key (id)) Hibernate: create table report_strategy_entity (id bigint generated by default as identity, primary key (id)) Hibernate: create table review_entity (date date, rating integer, adopter_id bigint, id bigint generated by default as identity, pet_id bigint, comment TEXT, primary key (id)) Hibernate: create table shelter_entity (id bigint generated by default as identity, city varchar(255), description varchar(255), email varchar(255), gallery varchar(255), name varchar(255), primary key (id)) Hibernate: create table shelter_event_entity (date date, id bigint generated by default as identity, shelter_id bigint, description varchar(255), location varchar(255), title varchar(255), status enum ('CANCELLED','COMPLETED','CREATED','IN_PROGRESS','PENDING'), primary key (id)) Hibernate: create table trial_cohabitation_entity (end_date date, start_date date, adoption_id bigint unique, id bigint generated by default as identity, pet_id bigint, result varchar(255), status enum ('CANCELLED','COMPLETED','CREATED','IN_PROGRESS','PENDING'), primary key (id)) Hibernate: create table user_entity (id bigint generated by default as identity, email varchar(255), name varchar(255), password varchar(255), phone varchar(255), primary key (id)) Hibernate: create table vaccination_record_entity (application_date date, next_due_date date, id bigint generated by default as identity, medical_history_id bigint, vaccine_id bigint, veterinarian_id bigint, primary key (id)) Hibernate: create table vaccine_entity (validity_months integer, id bigint generated by default as identity, description varchar(255), name varchar(255), primary key (id)) Hibernate: create table veterinarian_entity (id bigint not null, shelter_id bigint, availability varchar(255), specialty varchar(255), primary key (id)) Hibernate: alter table if exists adopter_entity add constraint FKitj2sdxcctxrw6ql04jny7l9y foreign key (id) references user_entity Hibernate: alter table if exists adoption_entity add constraint FK224d1qenh6y54c9lq828mmgx foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists adoption_entity add constraint FKqmviggw0khaskxup4cg7bvqku foreign key (pet_id) references pet_entity Hibernate: alter table if exists adoption_follow_up_entity add constraint FKkxibwn0r1ep7bgevg86seymmc foreign key (adoption_id) references adoption_entity Hibernate: alter table if exists adoption_follow_up_entity add constraint FKkqclwmvja9dll86u1bn9ycwn0 foreign key (pet_id) references pet_entity Hibernate: alter table if exists adoption_follow_up_entity add constraint FKsump3rviut1cvfr8iv6vogfp4 foreign key (veterinarian_id) references veterinarian_entity Hibernate: alter table if exists adoption_request_entity add constraint FK90j2qmgnqst03l9x6fpwf0aab foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists adoption_request_entity add constraint FKpdxe7jyb75mwugces1axydwtg foreign key (strategy_id) references approval_strategy_entity Hibernate: alter table if exists adoption_request_entity add constraint FKhanslcvxoi0t9cq07vsyerx7d foreign key (pet_id) references pet_entity Hibernate: alter table if exists adoption_request_entity add constraint FKad0m44984i6frcsd86susx3df foreign key (trial_cohabitation_id) references trial_cohabitation_entity Hibernate: alter table if exists medical_event_entity add constraint FKloam0wk3hbpns9awx08v8ttty foreign key (medical_history_id) references medical_history_entity Hibernate: alter table if exists medical_event_entity add constraint FKmx3l6boot15lqesauq3y2k5t9 foreign key (veterinarian_id) references veterinarian_entity Hibernate: alter table if exists medical_history_entity add constraint FKfqo1kwpy0eom46u48u9i9ob79 foreign key (pet_id) references pet_entity Hibernate: alter table if exists message_entity add constraint FK1bx2fv4ukgy2ruq9gclvehfjw foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists message_entity add constraint FKc1jilfk3teueg8wfilq0u9h0y foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists mock_user add constraint FK1t7datqqs96rej2yoo133loxs foreign key (id) references user_entity Hibernate: alter table if exists notification_entity add constraint FKpsofie2xkbprbd9jo128ocuy9 foreign key (strategy_id) references notification_strategy_entity Hibernate: alter table if exists notification_entity add constraint FKgemicmmtfy225vqj5li4u96lk foreign key (user_id) references user_entity Hibernate: alter table if exists pet_entity add constraint FK57h1lsq9l67lcsx43ftwwto1c foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists report_entity add constraint FK6c18c90k2vnskwos9leqbmxrv foreign key (strategy_id) references report_strategy_entity Hibernate: alter table if exists report_entity add constraint FKoa7u6l3jn2ueixs49yy8nrap3 foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists report_entity add constraint FK33bibp5ycbkys4c6g1dxm410t foreign key (event_id) references shelter_event_entity Hibernate: alter table if exists review_entity add constraint FK8w6fpunff42r2ytatsjbb4o96 foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists review_entity add constraint FKhtmwv0o4w6vp5k7w088xwk0yt foreign key (pet_id) references pet_entity Hibernate: alter table if exists shelter_event_entity add constraint FKjj4fox0olnc8o73kdgso782es foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists trial_cohabitation_entity add constraint FK608jf01b64pwvg12957nbsfsj foreign key (adoption_id) references adoption_entity Hibernate: alter table if exists trial_cohabitation_entity add constraint FKrxpesflvao88mgm4bmys2c3k1 foreign key (pet_id) references pet_entity Hibernate: alter table if exists vaccination_record_entity add constraint FKfo5r2fgxn4ltp9oubgnilaq41 foreign key (medical_history_id) references medical_history_entity Hibernate: alter table if exists vaccination_record_entity add constraint FKdahievfho7baue5s1sayxwom2 foreign key (vaccine_id) references vaccine_entity Hibernate: alter table if exists vaccination_record_entity add constraint FKe2aflnq4dp8kne3km9enr1mt9 foreign key (veterinarian_id) references veterinarian_entity Hibernate: alter table if exists veterinarian_entity add constraint FKe8xa1wxe967urrvxsxpdm8y8r foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists veterinarian_entity add constraint FKl5lutaqpbd2jrfrerhn6a9g69 foreign key (id) references user_entity 2026-03-21T14:24:53.319Z INFO 92 --- [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default' 2026-03-21T14:24:53.502Z INFO 92 --- [ main] c.e.u.mdp.pets.services.PetServiceTest : Started PetServiceTest in 0.547 seconds (process running for 12.701) Hibernate: delete from trial_cohabitation_entity tce1_0 Hibernate: delete from medical_history_entity mhe1_0 Hibernate: delete from pet_entity pe1_0 Hibernate: insert into pet_entity (activity_level,age,breed,description,good_with_kids,good_with_pets,name,origin,photos,sex,shelter_id,size,space_required,special_needs,species,status,temperament,id) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,default) Hibernate: insert into pet_entity (activity_level,age,breed,description,good_with_kids,good_with_pets,name,origin,photos,sex,shelter_id,size,space_required,special_needs,species,status,temperament,id) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,default) Hibernate: insert into pet_entity (activity_level,age,breed,description,good_with_kids,good_with_pets,name,origin,photos,sex,shelter_id,size,space_required,special_needs,species,status,temperament,id) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,default) 2026-03-21T14:24:53.522Z INFO 92 --- [ main] c.e.u.mdp.pets.services.PetService : Creating pet: buydwgnX8g Hibernate: insert into pet_entity (activity_level,age,breed,description,good_with_kids,good_with_pets,name,origin,photos,sex,shelter_id,size,space_required,special_needs,species,status,temperament,id) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,default) Hibernate: insert into medical_history_entity (description,pet_id,id) values (?,?,default) Hibernate: delete from trial_cohabitation_entity tce1_0 Hibernate: delete from medical_history_entity mhe1_0 Hibernate: delete from pet_entity pe1_0 Hibernate: insert into pet_entity (activity_level,age,breed,description,good_with_kids,good_with_pets,name,origin,photos,sex,shelter_id,size,space_required,special_needs,species,status,temperament,id) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,default) Hibernate: insert into pet_entity (activity_level,age,breed,description,good_with_kids,good_with_pets,name,origin,photos,sex,shelter_id,size,space_required,special_needs,species,status,temperament,id) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,default) Hibernate: insert into pet_entity (activity_level,age,breed,description,good_with_kids,good_with_pets,name,origin,photos,sex,shelter_id,size,space_required,special_needs,species,status,temperament,id) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) 2026-03-21T14:24:53.542Z INFO 92 --- [ main] c.e.u.mdp.pets.services.PetService : Deleting pet with id = 6 Hibernate: delete from trial_cohabitation_entity tce1_0 Hibernate: delete from medical_history_entity mhe1_0 Hibernate: delete from pet_entity pe1_0 Hibernate: insert into pet_entity (activity_level,age,breed,description,good_with_kids,good_with_pets,name,origin,photos,sex,shelter_id,size,space_required,special_needs,species,status,temperament,id) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,default) Hibernate: insert into pet_entity (activity_level,age,breed,description,good_with_kids,good_with_pets,name,origin,photos,sex,shelter_id,size,space_required,special_needs,species,status,temperament,id) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,default) Hibernate: insert into pet_entity (activity_level,age,breed,description,good_with_kids,good_with_pets,name,origin,photos,sex,shelter_id,size,space_required,special_needs,species,status,temperament,id) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,default) 2026-03-21T14:24:53.558Z INFO 92 --- [ main] c.e.u.mdp.pets.services.PetService : Processing return for pet with id = 8 Hibernate: delete from trial_cohabitation_entity tce1_0 Hibernate: delete from medical_history_entity mhe1_0 Hibernate: delete from pet_entity pe1_0 Hibernate: insert into pet_entity (activity_level,age,breed,description,good_with_kids,good_with_pets,name,origin,photos,sex,shelter_id,size,space_required,special_needs,species,status,temperament,id) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,default) Hibernate: insert into pet_entity (activity_level,age,breed,description,good_with_kids,good_with_pets,name,origin,photos,sex,shelter_id,size,space_required,special_needs,species,status,temperament,id) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,default) Hibernate: insert into pet_entity (activity_level,age,breed,description,good_with_kids,good_with_pets,name,origin,photos,sex,shelter_id,size,space_required,special_needs,species,status,temperament,id) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,default) 2026-03-21T14:24:53.574Z INFO 92 --- [ main] c.e.u.mdp.pets.services.PetService : Creating pet: 7Af1hSYOuQ Hibernate: delete from trial_cohabitation_entity tce1_0 Hibernate: delete from medical_history_entity mhe1_0 Hibernate: delete from pet_entity pe1_0 Hibernate: insert into pet_entity (activity_level,age,breed,description,good_with_kids,good_with_pets,name,origin,photos,sex,shelter_id,size,space_required,special_needs,species,status,temperament,id) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,default) Hibernate: insert into pet_entity (activity_level,age,breed,description,good_with_kids,good_with_pets,name,origin,photos,sex,shelter_id,size,space_required,special_needs,species,status,temperament,id) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,default) Hibernate: insert into pet_entity (activity_level,age,breed,description,good_with_kids,good_with_pets,name,origin,photos,sex,shelter_id,size,space_required,special_needs,species,status,temperament,id) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,default) Hibernate: update pet_entity set activity_level=?,age=?,breed=?,description=?,good_with_kids=?,good_with_pets=?,name=?,origin=?,photos=?,sex=?,shelter_id=?,size=?,space_required=?,special_needs=?,species=?,status=?,temperament=? where id=? 2026-03-21T14:24:53.601Z INFO 92 --- [ main] c.e.u.mdp.pets.services.PetService : Processing return for pet with id = 14 Hibernate: delete from trial_cohabitation_entity tce1_0 Hibernate: delete from medical_history_entity mhe1_0 Hibernate: delete from pet_entity pe1_0 Hibernate: insert into pet_entity (activity_level,age,breed,description,good_with_kids,good_with_pets,name,origin,photos,sex,shelter_id,size,space_required,special_needs,species,status,temperament,id) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,default) Hibernate: insert into pet_entity (activity_level,age,breed,description,good_with_kids,good_with_pets,name,origin,photos,sex,shelter_id,size,space_required,special_needs,species,status,temperament,id) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,default) Hibernate: insert into pet_entity (activity_level,age,breed,description,good_with_kids,good_with_pets,name,origin,photos,sex,shelter_id,size,space_required,special_needs,species,status,temperament,id) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) 2026-03-21T14:24:53.620Z INFO 92 --- [ main] c.e.u.mdp.pets.services.PetService : Updating pet with id = 17 Hibernate: delete from trial_cohabitation_entity tce1_0 Hibernate: delete from medical_history_entity mhe1_0 Hibernate: delete from pet_entity pe1_0 Hibernate: insert into pet_entity (activity_level,age,breed,description,good_with_kids,good_with_pets,name,origin,photos,sex,shelter_id,size,space_required,special_needs,species,status,temperament,id) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,default) Hibernate: insert into pet_entity (activity_level,age,breed,description,good_with_kids,good_with_pets,name,origin,photos,sex,shelter_id,size,space_required,special_needs,species,status,temperament,id) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,default) Hibernate: insert into pet_entity (activity_level,age,breed,description,good_with_kids,good_with_pets,name,origin,photos,sex,shelter_id,size,space_required,special_needs,species,status,temperament,id) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,default) 2026-03-21T14:24:53.636Z INFO 92 --- [ main] c.e.u.mdp.pets.services.PetService : Updating pet with id = 20 [INFO] Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.704 s -- in co.edu.udistrital.mdp.pets.services.PetServiceTest [INFO] Running co.edu.udistrital.mdp.pets.services.VeterinarianServiceTest 2026-03-21T14:24:53.642Z INFO 92 --- [ main] t.c.s.AnnotationConfigContextLoaderUtils : Could not detect default configuration classes for test class [co.edu.udistrital.mdp.pets.services.VeterinarianServiceTest]: VeterinarianServiceTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration. 2026-03-21T14:24:53.645Z INFO 92 --- [ main] .b.t.c.SpringBootTestContextBootstrapper : Found @SpringBootConfiguration co.edu.udistrital.mdp.pets.MainApplication for test class co.edu.udistrital.mdp.pets.services.VeterinarianServiceTest . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v3.5.10) 2026-03-21T14:24:53.670Z INFO 92 --- [ main] c.e.u.m.p.s.VeterinarianServiceTest : Starting VeterinarianServiceTest using Java 21.0.4 with PID 92 (started by root in /home/cecaduser/workspace/MP_202610_G81_E1_Back) 2026-03-21T14:24:53.670Z INFO 92 --- [ main] c.e.u.m.p.s.VeterinarianServiceTest : No active profile set, falling back to 1 default profile: "default" 2026-03-21T14:24:53.735Z INFO 92 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode. 2026-03-21T14:24:53.757Z INFO 92 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 20 ms. Found 19 JPA repository interfaces. 2026-03-21T14:24:53.774Z INFO 92 --- [ main] beddedDataSourceBeanFactoryPostProcessor : Replacing 'dataSource' DataSource bean with embedded version 2026-03-21T14:24:53.786Z INFO 92 --- [ main] o.s.j.d.e.EmbeddedDatabaseFactory : Starting embedded database: url='jdbc:h2:mem:90bb272c-8c90-48fd-800e-3019c0e1578f;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=false', username='sa' 2026-03-21T14:24:53.803Z INFO 92 --- [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default] 2026-03-21T14:24:53.805Z INFO 92 --- [ main] o.h.c.internal.RegionFactoryInitiator : HHH000026: Second-level cache disabled 2026-03-21T14:24:53.814Z INFO 92 --- [ main] o.s.o.j.p.SpringPersistenceUnitInfo : No LoadTimeWeaver setup: ignoring JPA class transformer 2026-03-21T14:24:53.815Z WARN 92 --- [ main] org.hibernate.orm.deprecation : HHH90000025: H2Dialect does not need to be specified explicitly using 'hibernate.dialect' (remove the property setting and it will be selected by default) 2026-03-21T14:24:53.816Z INFO 92 --- [ main] org.hibernate.orm.connections.pooling : HHH10001005: Database info: Database JDBC URL [Connecting through datasource 'org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactory$EmbeddedDataSourceProxy@6100c41'] Database driver: undefined/unknown Database version: 2.3.232 Autocommit mode: undefined/unknown Isolation level: undefined/unknown Minimum pool size: undefined/unknown Maximum pool size: undefined/unknown Hibernate: create global temporary table HT_user_entity(id bigint not null, primary key (id)) TRANSACTIONAL Hibernate: create global temporary table HTE_user_entity(has_children boolean, has_other_pets boolean, HTE_IDENTITY bigint generated by default as identity, id bigint, availability varchar(255), email varchar(255), housing_type varchar(255), name varchar(255), password varchar(255), phone varchar(255), specialty varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL Hibernate: create global temporary table HTE_mock_user(HTE_IDENTITY bigint generated by default as identity, id bigint, email varchar(255), name varchar(255), password varchar(255), phone varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL Hibernate: create global temporary table HTE_veterinarian_entity(HTE_IDENTITY bigint generated by default as identity, id bigint, shelter_id bigint, availability varchar(255), email varchar(255), name varchar(255), password varchar(255), phone varchar(255), specialty varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL Hibernate: create global temporary table HTE_adopter_entity(has_children boolean, has_other_pets boolean, HTE_IDENTITY bigint generated by default as identity, id bigint, email varchar(255), housing_type varchar(255), name varchar(255), password varchar(255), phone varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL 2026-03-21T14:24:53.950Z INFO 92 --- [ main] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000489: No JTA platform available (set 'hibernate.transaction.jta.platform' to enable JTA platform integration) Hibernate: drop table if exists adopter_entity cascade Hibernate: drop table if exists adoption_entity cascade Hibernate: drop table if exists adoption_follow_up_entity cascade Hibernate: drop table if exists adoption_request_entity cascade Hibernate: drop table if exists approval_strategy_entity cascade Hibernate: drop table if exists medical_event_entity cascade Hibernate: drop table if exists medical_history_entity cascade Hibernate: drop table if exists message_entity cascade Hibernate: drop table if exists mock_user cascade Hibernate: drop table if exists notification_entity cascade Hibernate: drop table if exists notification_strategy_entity cascade Hibernate: drop table if exists pet_entity cascade Hibernate: drop table if exists report_entity cascade Hibernate: drop table if exists report_strategy_entity cascade Hibernate: drop table if exists review_entity cascade Hibernate: drop table if exists shelter_entity cascade Hibernate: drop table if exists shelter_event_entity cascade Hibernate: drop table if exists trial_cohabitation_entity cascade Hibernate: drop table if exists user_entity cascade Hibernate: drop table if exists vaccination_record_entity cascade Hibernate: drop table if exists vaccine_entity cascade Hibernate: drop table if exists veterinarian_entity cascade Hibernate: create table adopter_entity (has_children boolean, has_other_pets boolean, id bigint not null, housing_type varchar(255), primary key (id)) Hibernate: create table adoption_entity (adoption_date date, adopter_id bigint, id bigint generated by default as identity, pet_id bigint, status enum ('CANCELLED','COMPLETED','CREATED','IN_PROGRESS','PENDING'), primary key (id)) Hibernate: create table adoption_follow_up_entity (adoption_id bigint, id bigint generated by default as identity, pet_id bigint, veterinarian_id bigint, frequency varchar(255), notes varchar(255), primary key (id)) Hibernate: create table adoption_request_entity (request_date date, adopter_id bigint, id bigint generated by default as identity, pet_id bigint, strategy_id bigint, trial_cohabitation_id bigint unique, status varchar(255), primary key (id)) Hibernate: create table approval_strategy_entity (id bigint generated by default as identity, approval_type varchar(31) not null, primary key (id)) Hibernate: create table medical_event_entity (event_date date, id bigint generated by default as identity, medical_history_id bigint, veterinarian_id bigint, diagnosis varchar(255), event_type varchar(255), treatment varchar(255), primary key (id)) Hibernate: create table medical_history_entity (id bigint generated by default as identity, pet_id bigint unique, description varchar(255), primary key (id)) Hibernate: create table message_entity (is_read boolean, adopter_id bigint, id bigint generated by default as identity, shelter_id bigint, timestamp timestamp(6), content TEXT, primary key (id)) Hibernate: create table mock_user (id bigint not null, primary key (id)) Hibernate: create table notification_entity (is_read boolean, date timestamp(6), id bigint generated by default as identity, strategy_id bigint unique, user_id bigint, message varchar(255), primary key (id)) Hibernate: create table notification_strategy_entity (id bigint generated by default as identity, primary key (id)) Hibernate: create table pet_entity (age integer, good_with_kids boolean, good_with_pets boolean, id bigint generated by default as identity, shelter_id bigint, activity_level varchar(255), breed varchar(255), description varchar(255), name varchar(255), origin varchar(255), photos varchar(255), sex varchar(255), size varchar(255), space_required varchar(255), special_needs varchar(255), species varchar(255), temperament varchar(255), status enum ('ADOPTED','AVAILABLE','IN_TRIAL','MEDICAL_TREATMENT','RESERVED'), primary key (id)) Hibernate: create table report_entity (generate_date date, event_id bigint, id bigint generated by default as identity, shelter_id bigint, strategy_id bigint, primary key (id)) Hibernate: create table report_strategy_entity (id bigint generated by default as identity, primary key (id)) Hibernate: create table review_entity (date date, rating integer, adopter_id bigint, id bigint generated by default as identity, pet_id bigint, comment TEXT, primary key (id)) Hibernate: create table shelter_entity (id bigint generated by default as identity, city varchar(255), description varchar(255), email varchar(255), gallery varchar(255), name varchar(255), primary key (id)) Hibernate: create table shelter_event_entity (date date, id bigint generated by default as identity, shelter_id bigint, description varchar(255), location varchar(255), title varchar(255), status enum ('CANCELLED','COMPLETED','CREATED','IN_PROGRESS','PENDING'), primary key (id)) Hibernate: create table trial_cohabitation_entity (end_date date, start_date date, adoption_id bigint unique, id bigint generated by default as identity, pet_id bigint, result varchar(255), status enum ('CANCELLED','COMPLETED','CREATED','IN_PROGRESS','PENDING'), primary key (id)) Hibernate: create table user_entity (id bigint generated by default as identity, email varchar(255), name varchar(255), password varchar(255), phone varchar(255), primary key (id)) Hibernate: create table vaccination_record_entity (application_date date, next_due_date date, id bigint generated by default as identity, medical_history_id bigint, vaccine_id bigint, veterinarian_id bigint, primary key (id)) Hibernate: create table vaccine_entity (validity_months integer, id bigint generated by default as identity, description varchar(255), name varchar(255), primary key (id)) Hibernate: create table veterinarian_entity (id bigint not null, shelter_id bigint, availability varchar(255), specialty varchar(255), primary key (id)) Hibernate: alter table if exists adopter_entity add constraint FKitj2sdxcctxrw6ql04jny7l9y foreign key (id) references user_entity Hibernate: alter table if exists adoption_entity add constraint FK224d1qenh6y54c9lq828mmgx foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists adoption_entity add constraint FKqmviggw0khaskxup4cg7bvqku foreign key (pet_id) references pet_entity Hibernate: alter table if exists adoption_follow_up_entity add constraint FKkxibwn0r1ep7bgevg86seymmc foreign key (adoption_id) references adoption_entity Hibernate: alter table if exists adoption_follow_up_entity add constraint FKkqclwmvja9dll86u1bn9ycwn0 foreign key (pet_id) references pet_entity Hibernate: alter table if exists adoption_follow_up_entity add constraint FKsump3rviut1cvfr8iv6vogfp4 foreign key (veterinarian_id) references veterinarian_entity Hibernate: alter table if exists adoption_request_entity add constraint FK90j2qmgnqst03l9x6fpwf0aab foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists adoption_request_entity add constraint FKpdxe7jyb75mwugces1axydwtg foreign key (strategy_id) references approval_strategy_entity Hibernate: alter table if exists adoption_request_entity add constraint FKhanslcvxoi0t9cq07vsyerx7d foreign key (pet_id) references pet_entity Hibernate: alter table if exists adoption_request_entity add constraint FKad0m44984i6frcsd86susx3df foreign key (trial_cohabitation_id) references trial_cohabitation_entity Hibernate: alter table if exists medical_event_entity add constraint FKloam0wk3hbpns9awx08v8ttty foreign key (medical_history_id) references medical_history_entity Hibernate: alter table if exists medical_event_entity add constraint FKmx3l6boot15lqesauq3y2k5t9 foreign key (veterinarian_id) references veterinarian_entity Hibernate: alter table if exists medical_history_entity add constraint FKfqo1kwpy0eom46u48u9i9ob79 foreign key (pet_id) references pet_entity Hibernate: alter table if exists message_entity add constraint FK1bx2fv4ukgy2ruq9gclvehfjw foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists message_entity add constraint FKc1jilfk3teueg8wfilq0u9h0y foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists mock_user add constraint FK1t7datqqs96rej2yoo133loxs foreign key (id) references user_entity Hibernate: alter table if exists notification_entity add constraint FKpsofie2xkbprbd9jo128ocuy9 foreign key (strategy_id) references notification_strategy_entity Hibernate: alter table if exists notification_entity add constraint FKgemicmmtfy225vqj5li4u96lk foreign key (user_id) references user_entity Hibernate: alter table if exists pet_entity add constraint FK57h1lsq9l67lcsx43ftwwto1c foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists report_entity add constraint FK6c18c90k2vnskwos9leqbmxrv foreign key (strategy_id) references report_strategy_entity Hibernate: alter table if exists report_entity add constraint FKoa7u6l3jn2ueixs49yy8nrap3 foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists report_entity add constraint FK33bibp5ycbkys4c6g1dxm410t foreign key (event_id) references shelter_event_entity Hibernate: alter table if exists review_entity add constraint FK8w6fpunff42r2ytatsjbb4o96 foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists review_entity add constraint FKhtmwv0o4w6vp5k7w088xwk0yt foreign key (pet_id) references pet_entity Hibernate: alter table if exists shelter_event_entity add constraint FKjj4fox0olnc8o73kdgso782es foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists trial_cohabitation_entity add constraint FK608jf01b64pwvg12957nbsfsj foreign key (adoption_id) references adoption_entity Hibernate: alter table if exists trial_cohabitation_entity add constraint FKrxpesflvao88mgm4bmys2c3k1 foreign key (pet_id) references pet_entity Hibernate: alter table if exists vaccination_record_entity add constraint FKfo5r2fgxn4ltp9oubgnilaq41 foreign key (medical_history_id) references medical_history_entity Hibernate: alter table if exists vaccination_record_entity add constraint FKdahievfho7baue5s1sayxwom2 foreign key (vaccine_id) references vaccine_entity Hibernate: alter table if exists vaccination_record_entity add constraint FKe2aflnq4dp8kne3km9enr1mt9 foreign key (veterinarian_id) references veterinarian_entity Hibernate: alter table if exists veterinarian_entity add constraint FKe8xa1wxe967urrvxsxpdm8y8r foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists veterinarian_entity add constraint FKl5lutaqpbd2jrfrerhn6a9g69 foreign key (id) references user_entity 2026-03-21T14:24:53.991Z INFO 92 --- [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default' 2026-03-21T14:24:54.160Z INFO 92 --- [ main] c.e.u.m.p.s.VeterinarianServiceTest : Started VeterinarianServiceTest in 0.512 seconds (process running for 13.359) Hibernate: delete from medical_event_entity mee1_0 Hibernate: delete from vaccination_record_entity vre1_0 Hibernate: delete from adoption_follow_up_entity afue1_0 Hibernate: insert into HT_user_entity(id) select ve1_0.id from veterinarian_entity ve1_0 Hibernate: delete from veterinarian_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from user_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from HT_user_entity Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into veterinarian_entity (availability,shelter_id,specialty,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into veterinarian_entity (availability,shelter_id,specialty,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into veterinarian_entity (availability,shelter_id,specialty,id) values (?,?,?,?) Hibernate: insert into medical_event_entity (diagnosis,event_date,event_type,medical_history_id,treatment,veterinarian_id,id) values (?,?,?,?,?,?,default) 2026-03-21T14:24:54.182Z INFO 92 --- [ main] c.e.u.mdp.pets.services.UserService : Deleting user with id = 1 2026-03-21T14:24:54.183Z WARN 92 --- [ main] c.e.u.m.p.services.VeterinarianService : Attempted to delete veterinarian 1 with medical history records Hibernate: delete from medical_event_entity mee1_0 Hibernate: delete from vaccination_record_entity vre1_0 Hibernate: delete from adoption_follow_up_entity afue1_0 Hibernate: insert into HT_user_entity(id) select ve1_0.id from veterinarian_entity ve1_0 Hibernate: delete from veterinarian_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from user_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from HT_user_entity Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into veterinarian_entity (availability,shelter_id,specialty,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into veterinarian_entity (availability,shelter_id,specialty,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into veterinarian_entity (availability,shelter_id,specialty,id) values (?,?,?,?) 2026-03-21T14:24:54.197Z INFO 92 --- [ main] c.e.u.mdp.pets.services.UserService : Deleting user with id = 4 Hibernate: delete from medical_event_entity mee1_0 Hibernate: delete from vaccination_record_entity vre1_0 Hibernate: delete from adoption_follow_up_entity afue1_0 Hibernate: insert into HT_user_entity(id) select ve1_0.id from veterinarian_entity ve1_0 Hibernate: delete from veterinarian_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from user_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from HT_user_entity Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into veterinarian_entity (availability,shelter_id,specialty,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into veterinarian_entity (availability,shelter_id,specialty,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into veterinarian_entity (availability,shelter_id,specialty,id) values (?,?,?,?) 2026-03-21T14:24:54.213Z INFO 92 --- [ main] c.e.u.m.p.services.VeterinarianService : Starting creation process for veterinarian: nuevo_vet@test.com 2026-03-21T14:24:54.213Z INFO 92 --- [ main] c.e.u.mdp.pets.services.UserService : Starting creation process for user: nuevo_vet@test.com Hibernate: select ue1_0.id,case when ue1_1.id is not null then 1 when ue1_2.id is not null then 2 when ue1_3.id is not null then 3 end,ue1_0.email,ue1_0.name,ue1_0.password,ue1_0.phone,ue1_1.has_children,ue1_1.has_other_pets,ue1_1.housing_type,ue1_2.availability,ue1_2.shelter_id,ue1_2.specialty from user_entity ue1_0 left join adopter_entity ue1_1 on ue1_0.id=ue1_1.id left join veterinarian_entity ue1_2 on ue1_0.id=ue1_2.id left join mock_user ue1_3 on ue1_0.id=ue1_3.id where ue1_0.email=? Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into veterinarian_entity (availability,shelter_id,specialty,id) values (?,?,?,?) Hibernate: delete from medical_event_entity mee1_0 Hibernate: delete from vaccination_record_entity vre1_0 Hibernate: delete from adoption_follow_up_entity afue1_0 Hibernate: insert into HT_user_entity(id) select ve1_0.id from veterinarian_entity ve1_0 Hibernate: delete from veterinarian_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from user_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from HT_user_entity Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into veterinarian_entity (availability,shelter_id,specialty,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into veterinarian_entity (availability,shelter_id,specialty,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into veterinarian_entity (availability,shelter_id,specialty,id) values (?,?,?,?) Hibernate: insert into adoption_follow_up_entity (adoption_id,frequency,notes,pet_id,veterinarian_id,id) values (?,?,?,?,?,default) 2026-03-21T14:24:54.234Z INFO 92 --- [ main] c.e.u.mdp.pets.services.UserService : Deleting user with id = 12 2026-03-21T14:24:54.234Z WARN 92 --- [ main] c.e.u.m.p.services.VeterinarianService : Attempted to delete veterinarian 12 with active adoption follow-ups Hibernate: delete from medical_event_entity mee1_0 Hibernate: delete from vaccination_record_entity vre1_0 Hibernate: delete from adoption_follow_up_entity afue1_0 Hibernate: insert into HT_user_entity(id) select ve1_0.id from veterinarian_entity ve1_0 Hibernate: delete from veterinarian_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from user_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from HT_user_entity Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into veterinarian_entity (availability,shelter_id,specialty,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into veterinarian_entity (availability,shelter_id,specialty,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into veterinarian_entity (availability,shelter_id,specialty,id) values (?,?,?,?) 2026-03-21T14:24:54.253Z INFO 92 --- [ main] c.e.u.m.p.services.VeterinarianService : Starting creation process for veterinarian: MfLb3ZDk6l [INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.615 s -- in co.edu.udistrital.mdp.pets.services.VeterinarianServiceTest [INFO] Running co.edu.udistrital.mdp.pets.services.UserServiceTest 2026-03-21T14:24:54.259Z INFO 92 --- [ main] t.c.s.AnnotationConfigContextLoaderUtils : Could not detect default configuration classes for test class [co.edu.udistrital.mdp.pets.services.UserServiceTest]: UserServiceTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration. 2026-03-21T14:24:54.261Z INFO 92 --- [ main] .b.t.c.SpringBootTestContextBootstrapper : Found @SpringBootConfiguration co.edu.udistrital.mdp.pets.MainApplication for test class co.edu.udistrital.mdp.pets.services.UserServiceTest . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v3.5.10) 2026-03-21T14:24:54.280Z INFO 92 --- [ main] c.e.u.mdp.pets.services.UserServiceTest : Starting UserServiceTest using Java 21.0.4 with PID 92 (started by root in /home/cecaduser/workspace/MP_202610_G81_E1_Back) 2026-03-21T14:24:54.280Z INFO 92 --- [ main] c.e.u.mdp.pets.services.UserServiceTest : No active profile set, falling back to 1 default profile: "default" 2026-03-21T14:24:54.340Z INFO 92 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode. 2026-03-21T14:24:54.360Z INFO 92 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 18 ms. Found 19 JPA repository interfaces. 2026-03-21T14:24:54.378Z INFO 92 --- [ main] beddedDataSourceBeanFactoryPostProcessor : Replacing 'dataSource' DataSource bean with embedded version 2026-03-21T14:24:54.389Z INFO 92 --- [ main] o.s.j.d.e.EmbeddedDatabaseFactory : Starting embedded database: url='jdbc:h2:mem:01318435-9360-4c47-a1ff-aed360615546;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=false', username='sa' 2026-03-21T14:24:54.405Z INFO 92 --- [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default] 2026-03-21T14:24:54.406Z INFO 92 --- [ main] o.h.c.internal.RegionFactoryInitiator : HHH000026: Second-level cache disabled 2026-03-21T14:24:54.415Z INFO 92 --- [ main] o.s.o.j.p.SpringPersistenceUnitInfo : No LoadTimeWeaver setup: ignoring JPA class transformer 2026-03-21T14:24:54.416Z WARN 92 --- [ main] org.hibernate.orm.deprecation : HHH90000025: H2Dialect does not need to be specified explicitly using 'hibernate.dialect' (remove the property setting and it will be selected by default) 2026-03-21T14:24:54.416Z INFO 92 --- [ main] org.hibernate.orm.connections.pooling : HHH10001005: Database info: Database JDBC URL [Connecting through datasource 'org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactory$EmbeddedDataSourceProxy@58303fc8'] Database driver: undefined/unknown Database version: 2.3.232 Autocommit mode: undefined/unknown Isolation level: undefined/unknown Minimum pool size: undefined/unknown Maximum pool size: undefined/unknown Hibernate: create global temporary table HT_user_entity(id bigint not null, primary key (id)) TRANSACTIONAL Hibernate: create global temporary table HTE_user_entity(has_children boolean, has_other_pets boolean, HTE_IDENTITY bigint generated by default as identity, id bigint, availability varchar(255), email varchar(255), housing_type varchar(255), name varchar(255), password varchar(255), phone varchar(255), specialty varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL Hibernate: create global temporary table HTE_mock_user(HTE_IDENTITY bigint generated by default as identity, id bigint, email varchar(255), name varchar(255), password varchar(255), phone varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL Hibernate: create global temporary table HTE_veterinarian_entity(HTE_IDENTITY bigint generated by default as identity, id bigint, shelter_id bigint, availability varchar(255), email varchar(255), name varchar(255), password varchar(255), phone varchar(255), specialty varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL Hibernate: create global temporary table HTE_adopter_entity(has_children boolean, has_other_pets boolean, HTE_IDENTITY bigint generated by default as identity, id bigint, email varchar(255), housing_type varchar(255), name varchar(255), password varchar(255), phone varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL 2026-03-21T14:24:54.539Z INFO 92 --- [ main] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000489: No JTA platform available (set 'hibernate.transaction.jta.platform' to enable JTA platform integration) Hibernate: drop table if exists adopter_entity cascade Hibernate: drop table if exists adoption_entity cascade Hibernate: drop table if exists adoption_follow_up_entity cascade Hibernate: drop table if exists adoption_request_entity cascade Hibernate: drop table if exists approval_strategy_entity cascade Hibernate: drop table if exists medical_event_entity cascade Hibernate: drop table if exists medical_history_entity cascade Hibernate: drop table if exists message_entity cascade Hibernate: drop table if exists mock_user cascade Hibernate: drop table if exists notification_entity cascade Hibernate: drop table if exists notification_strategy_entity cascade Hibernate: drop table if exists pet_entity cascade Hibernate: drop table if exists report_entity cascade Hibernate: drop table if exists report_strategy_entity cascade Hibernate: drop table if exists review_entity cascade Hibernate: drop table if exists shelter_entity cascade Hibernate: drop table if exists shelter_event_entity cascade Hibernate: drop table if exists trial_cohabitation_entity cascade Hibernate: drop table if exists user_entity cascade Hibernate: drop table if exists vaccination_record_entity cascade Hibernate: drop table if exists vaccine_entity cascade Hibernate: drop table if exists veterinarian_entity cascade Hibernate: create table adopter_entity (has_children boolean, has_other_pets boolean, id bigint not null, housing_type varchar(255), primary key (id)) Hibernate: create table adoption_entity (adoption_date date, adopter_id bigint, id bigint generated by default as identity, pet_id bigint, status enum ('CANCELLED','COMPLETED','CREATED','IN_PROGRESS','PENDING'), primary key (id)) Hibernate: create table adoption_follow_up_entity (adoption_id bigint, id bigint generated by default as identity, pet_id bigint, veterinarian_id bigint, frequency varchar(255), notes varchar(255), primary key (id)) Hibernate: create table adoption_request_entity (request_date date, adopter_id bigint, id bigint generated by default as identity, pet_id bigint, strategy_id bigint, trial_cohabitation_id bigint unique, status varchar(255), primary key (id)) Hibernate: create table approval_strategy_entity (id bigint generated by default as identity, approval_type varchar(31) not null, primary key (id)) Hibernate: create table medical_event_entity (event_date date, id bigint generated by default as identity, medical_history_id bigint, veterinarian_id bigint, diagnosis varchar(255), event_type varchar(255), treatment varchar(255), primary key (id)) Hibernate: create table medical_history_entity (id bigint generated by default as identity, pet_id bigint unique, description varchar(255), primary key (id)) Hibernate: create table message_entity (is_read boolean, adopter_id bigint, id bigint generated by default as identity, shelter_id bigint, timestamp timestamp(6), content TEXT, primary key (id)) Hibernate: create table mock_user (id bigint not null, primary key (id)) Hibernate: create table notification_entity (is_read boolean, date timestamp(6), id bigint generated by default as identity, strategy_id bigint unique, user_id bigint, message varchar(255), primary key (id)) Hibernate: create table notification_strategy_entity (id bigint generated by default as identity, primary key (id)) Hibernate: create table pet_entity (age integer, good_with_kids boolean, good_with_pets boolean, id bigint generated by default as identity, shelter_id bigint, activity_level varchar(255), breed varchar(255), description varchar(255), name varchar(255), origin varchar(255), photos varchar(255), sex varchar(255), size varchar(255), space_required varchar(255), special_needs varchar(255), species varchar(255), temperament varchar(255), status enum ('ADOPTED','AVAILABLE','IN_TRIAL','MEDICAL_TREATMENT','RESERVED'), primary key (id)) Hibernate: create table report_entity (generate_date date, event_id bigint, id bigint generated by default as identity, shelter_id bigint, strategy_id bigint, primary key (id)) Hibernate: create table report_strategy_entity (id bigint generated by default as identity, primary key (id)) Hibernate: create table review_entity (date date, rating integer, adopter_id bigint, id bigint generated by default as identity, pet_id bigint, comment TEXT, primary key (id)) Hibernate: create table shelter_entity (id bigint generated by default as identity, city varchar(255), description varchar(255), email varchar(255), gallery varchar(255), name varchar(255), primary key (id)) Hibernate: create table shelter_event_entity (date date, id bigint generated by default as identity, shelter_id bigint, description varchar(255), location varchar(255), title varchar(255), status enum ('CANCELLED','COMPLETED','CREATED','IN_PROGRESS','PENDING'), primary key (id)) Hibernate: create table trial_cohabitation_entity (end_date date, start_date date, adoption_id bigint unique, id bigint generated by default as identity, pet_id bigint, result varchar(255), status enum ('CANCELLED','COMPLETED','CREATED','IN_PROGRESS','PENDING'), primary key (id)) Hibernate: create table user_entity (id bigint generated by default as identity, email varchar(255), name varchar(255), password varchar(255), phone varchar(255), primary key (id)) Hibernate: create table vaccination_record_entity (application_date date, next_due_date date, id bigint generated by default as identity, medical_history_id bigint, vaccine_id bigint, veterinarian_id bigint, primary key (id)) Hibernate: create table vaccine_entity (validity_months integer, id bigint generated by default as identity, description varchar(255), name varchar(255), primary key (id)) Hibernate: create table veterinarian_entity (id bigint not null, shelter_id bigint, availability varchar(255), specialty varchar(255), primary key (id)) Hibernate: alter table if exists adopter_entity add constraint FKitj2sdxcctxrw6ql04jny7l9y foreign key (id) references user_entity Hibernate: alter table if exists adoption_entity add constraint FK224d1qenh6y54c9lq828mmgx foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists adoption_entity add constraint FKqmviggw0khaskxup4cg7bvqku foreign key (pet_id) references pet_entity Hibernate: alter table if exists adoption_follow_up_entity add constraint FKkxibwn0r1ep7bgevg86seymmc foreign key (adoption_id) references adoption_entity Hibernate: alter table if exists adoption_follow_up_entity add constraint FKkqclwmvja9dll86u1bn9ycwn0 foreign key (pet_id) references pet_entity Hibernate: alter table if exists adoption_follow_up_entity add constraint FKsump3rviut1cvfr8iv6vogfp4 foreign key (veterinarian_id) references veterinarian_entity Hibernate: alter table if exists adoption_request_entity add constraint FK90j2qmgnqst03l9x6fpwf0aab foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists adoption_request_entity add constraint FKpdxe7jyb75mwugces1axydwtg foreign key (strategy_id) references approval_strategy_entity Hibernate: alter table if exists adoption_request_entity add constraint FKhanslcvxoi0t9cq07vsyerx7d foreign key (pet_id) references pet_entity Hibernate: alter table if exists adoption_request_entity add constraint FKad0m44984i6frcsd86susx3df foreign key (trial_cohabitation_id) references trial_cohabitation_entity Hibernate: alter table if exists medical_event_entity add constraint FKloam0wk3hbpns9awx08v8ttty foreign key (medical_history_id) references medical_history_entity Hibernate: alter table if exists medical_event_entity add constraint FKmx3l6boot15lqesauq3y2k5t9 foreign key (veterinarian_id) references veterinarian_entity Hibernate: alter table if exists medical_history_entity add constraint FKfqo1kwpy0eom46u48u9i9ob79 foreign key (pet_id) references pet_entity Hibernate: alter table if exists message_entity add constraint FK1bx2fv4ukgy2ruq9gclvehfjw foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists message_entity add constraint FKc1jilfk3teueg8wfilq0u9h0y foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists mock_user add constraint FK1t7datqqs96rej2yoo133loxs foreign key (id) references user_entity Hibernate: alter table if exists notification_entity add constraint FKpsofie2xkbprbd9jo128ocuy9 foreign key (strategy_id) references notification_strategy_entity Hibernate: alter table if exists notification_entity add constraint FKgemicmmtfy225vqj5li4u96lk foreign key (user_id) references user_entity Hibernate: alter table if exists pet_entity add constraint FK57h1lsq9l67lcsx43ftwwto1c foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists report_entity add constraint FK6c18c90k2vnskwos9leqbmxrv foreign key (strategy_id) references report_strategy_entity Hibernate: alter table if exists report_entity add constraint FKoa7u6l3jn2ueixs49yy8nrap3 foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists report_entity add constraint FK33bibp5ycbkys4c6g1dxm410t foreign key (event_id) references shelter_event_entity Hibernate: alter table if exists review_entity add constraint FK8w6fpunff42r2ytatsjbb4o96 foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists review_entity add constraint FKhtmwv0o4w6vp5k7w088xwk0yt foreign key (pet_id) references pet_entity Hibernate: alter table if exists shelter_event_entity add constraint FKjj4fox0olnc8o73kdgso782es foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists trial_cohabitation_entity add constraint FK608jf01b64pwvg12957nbsfsj foreign key (adoption_id) references adoption_entity Hibernate: alter table if exists trial_cohabitation_entity add constraint FKrxpesflvao88mgm4bmys2c3k1 foreign key (pet_id) references pet_entity Hibernate: alter table if exists vaccination_record_entity add constraint FKfo5r2fgxn4ltp9oubgnilaq41 foreign key (medical_history_id) references medical_history_entity Hibernate: alter table if exists vaccination_record_entity add constraint FKdahievfho7baue5s1sayxwom2 foreign key (vaccine_id) references vaccine_entity Hibernate: alter table if exists vaccination_record_entity add constraint FKe2aflnq4dp8kne3km9enr1mt9 foreign key (veterinarian_id) references veterinarian_entity Hibernate: alter table if exists veterinarian_entity add constraint FKe8xa1wxe967urrvxsxpdm8y8r foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists veterinarian_entity add constraint FKl5lutaqpbd2jrfrerhn6a9g69 foreign key (id) references user_entity 2026-03-21T14:24:54.575Z INFO 92 --- [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default' 2026-03-21T14:24:54.747Z INFO 92 --- [ main] c.e.u.mdp.pets.services.UserServiceTest : Started UserServiceTest in 0.482 seconds (process running for 13.946) Hibernate: delete from mock_user to_delete_ Hibernate: delete from veterinarian_entity to_delete_ Hibernate: delete from adopter_entity to_delete_ Hibernate: delete from user_entity ue1_0 Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) Hibernate: select ue1_0.id,case when ue1_1.id is not null then 1 when ue1_2.id is not null then 2 when ue1_3.id is not null then 3 end,ue1_0.email,ue1_0.name,ue1_0.password,ue1_0.phone,ue1_1.has_children,ue1_1.has_other_pets,ue1_1.housing_type,ue1_2.availability,ue1_2.shelter_id,ue1_2.specialty from user_entity ue1_0 left join adopter_entity ue1_1 on ue1_0.id=ue1_1.id left join veterinarian_entity ue1_2 on ue1_0.id=ue1_2.id left join mock_user ue1_3 on ue1_0.id=ue1_3.id Hibernate: delete from mock_user to_delete_ Hibernate: delete from veterinarian_entity to_delete_ Hibernate: delete from adopter_entity to_delete_ Hibernate: delete from user_entity ue1_0 Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) 2026-03-21T14:24:54.783Z INFO 92 --- [ main] c.e.u.mdp.pets.services.UserService : Updating user with id = 4 Hibernate: select ue1_0.id,case when ue1_1.id is not null then 1 when ue1_2.id is not null then 2 when ue1_3.id is not null then 3 end,ue1_0.email,ue1_0.name,ue1_0.password,ue1_0.phone,ue1_1.has_children,ue1_1.has_other_pets,ue1_1.housing_type,ue1_2.availability,ue1_2.shelter_id,ue1_2.specialty from user_entity ue1_0 left join adopter_entity ue1_1 on ue1_0.id=ue1_1.id left join veterinarian_entity ue1_2 on ue1_0.id=ue1_2.id left join mock_user ue1_3 on ue1_0.id=ue1_3.id where ue1_0.email=? Hibernate: delete from mock_user to_delete_ Hibernate: delete from veterinarian_entity to_delete_ Hibernate: delete from adopter_entity to_delete_ Hibernate: delete from user_entity ue1_0 Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) Hibernate: delete from mock_user to_delete_ Hibernate: delete from veterinarian_entity to_delete_ Hibernate: delete from adopter_entity to_delete_ Hibernate: delete from user_entity ue1_0 Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) 2026-03-21T14:24:54.812Z INFO 92 --- [ main] c.e.u.mdp.pets.services.UserService : Updating user with id = 10 Hibernate: select ue1_0.id,case when ue1_1.id is not null then 1 when ue1_2.id is not null then 2 when ue1_3.id is not null then 3 end,ue1_0.email,ue1_0.name,ue1_0.password,ue1_0.phone,ue1_1.has_children,ue1_1.has_other_pets,ue1_1.housing_type,ue1_2.availability,ue1_2.shelter_id,ue1_2.specialty from user_entity ue1_0 left join adopter_entity ue1_1 on ue1_0.id=ue1_1.id left join veterinarian_entity ue1_2 on ue1_0.id=ue1_2.id left join mock_user ue1_3 on ue1_0.id=ue1_3.id where ue1_0.email=? Hibernate: delete from mock_user to_delete_ Hibernate: delete from veterinarian_entity to_delete_ Hibernate: delete from adopter_entity to_delete_ Hibernate: delete from user_entity ue1_0 Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) 2026-03-21T14:24:54.826Z INFO 92 --- [ main] c.e.u.mdp.pets.services.UserService : Deleting user with id = 13 Hibernate: select count(ae1_0.id) from adoption_entity ae1_0 where ae1_0.adopter_id=? Hibernate: delete from mock_user to_delete_ Hibernate: delete from veterinarian_entity to_delete_ Hibernate: delete from adopter_entity to_delete_ Hibernate: delete from user_entity ue1_0 Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) 2026-03-21T14:24:54.941Z INFO 92 --- [ main] c.e.u.mdp.pets.services.UserService : Starting creation process for user: nuevo@correo.com Hibernate: select ue1_0.id,case when ue1_1.id is not null then 1 when ue1_2.id is not null then 2 when ue1_3.id is not null then 3 end,ue1_0.email,ue1_0.name,ue1_0.password,ue1_0.phone,ue1_1.has_children,ue1_1.has_other_pets,ue1_1.housing_type,ue1_2.availability,ue1_2.shelter_id,ue1_2.specialty from user_entity ue1_0 left join adopter_entity ue1_1 on ue1_0.id=ue1_1.id left join veterinarian_entity ue1_2 on ue1_0.id=ue1_2.id left join mock_user ue1_3 on ue1_0.id=ue1_3.id where ue1_0.email=? Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) Hibernate: delete from mock_user to_delete_ Hibernate: delete from veterinarian_entity to_delete_ Hibernate: delete from adopter_entity to_delete_ Hibernate: delete from user_entity ue1_0 Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) 2026-03-21T14:24:54.961Z INFO 92 --- [ main] c.e.u.mdp.pets.services.UserService : Deleting user with id = 23 Hibernate: select count(ae1_0.id) from adoption_entity ae1_0 where ae1_0.adopter_id=? Hibernate: delete from mock_user to_delete_ Hibernate: delete from veterinarian_entity to_delete_ Hibernate: delete from adopter_entity to_delete_ Hibernate: delete from user_entity ue1_0 Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) 2026-03-21T14:24:54.975Z INFO 92 --- [ main] c.e.u.mdp.pets.services.UserService : Starting creation process for user: correo-sin-arroba.com Hibernate: delete from mock_user to_delete_ Hibernate: delete from veterinarian_entity to_delete_ Hibernate: delete from adopter_entity to_delete_ Hibernate: delete from user_entity ue1_0 Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) 2026-03-21T14:24:54.987Z INFO 92 --- [ main] c.e.u.mdp.pets.services.UserService : Starting creation process for user: OPrNEOR7yI Hibernate: delete from mock_user to_delete_ Hibernate: delete from veterinarian_entity to_delete_ Hibernate: delete from adopter_entity to_delete_ Hibernate: delete from user_entity ue1_0 Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) 2026-03-21T14:24:54.998Z INFO 92 --- [ main] c.e.u.mdp.pets.services.UserService : Starting creation process for user: user0@test.com [INFO] Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.744 s -- in co.edu.udistrital.mdp.pets.services.UserServiceTest [INFO] Running co.edu.udistrital.mdp.pets.services.TrialCohabitationServiceTest 2026-03-21T14:24:55.004Z INFO 92 --- [ main] t.c.s.AnnotationConfigContextLoaderUtils : Could not detect default configuration classes for test class [co.edu.udistrital.mdp.pets.services.TrialCohabitationServiceTest]: TrialCohabitationServiceTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration. 2026-03-21T14:24:55.012Z INFO 92 --- [ main] .b.t.c.SpringBootTestContextBootstrapper : Found @SpringBootConfiguration co.edu.udistrital.mdp.pets.MainApplication for test class co.edu.udistrital.mdp.pets.services.TrialCohabitationServiceTest . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v3.5.10) 2026-03-21T14:24:55.031Z INFO 92 --- [ main] c.e.u.m.p.s.TrialCohabitationServiceTest : Starting TrialCohabitationServiceTest using Java 21.0.4 with PID 92 (started by root in /home/cecaduser/workspace/MP_202610_G81_E1_Back) 2026-03-21T14:24:55.031Z INFO 92 --- [ main] c.e.u.m.p.s.TrialCohabitationServiceTest : No active profile set, falling back to 1 default profile: "default" 2026-03-21T14:24:55.087Z INFO 92 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode. 2026-03-21T14:24:55.107Z INFO 92 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 18 ms. Found 19 JPA repository interfaces. 2026-03-21T14:24:55.124Z INFO 92 --- [ main] beddedDataSourceBeanFactoryPostProcessor : Replacing 'dataSource' DataSource bean with embedded version 2026-03-21T14:24:55.136Z INFO 92 --- [ main] o.s.j.d.e.EmbeddedDatabaseFactory : Starting embedded database: url='jdbc:h2:mem:63fe641d-5385-4d12-9414-247fb898a776;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=false', username='sa' 2026-03-21T14:24:55.151Z INFO 92 --- [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default] 2026-03-21T14:24:55.153Z INFO 92 --- [ main] o.h.c.internal.RegionFactoryInitiator : HHH000026: Second-level cache disabled 2026-03-21T14:24:55.160Z INFO 92 --- [ main] o.s.o.j.p.SpringPersistenceUnitInfo : No LoadTimeWeaver setup: ignoring JPA class transformer 2026-03-21T14:24:55.161Z WARN 92 --- [ main] org.hibernate.orm.deprecation : HHH90000025: H2Dialect does not need to be specified explicitly using 'hibernate.dialect' (remove the property setting and it will be selected by default) 2026-03-21T14:24:55.161Z INFO 92 --- [ main] org.hibernate.orm.connections.pooling : HHH10001005: Database info: Database JDBC URL [Connecting through datasource 'org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactory$EmbeddedDataSourceProxy@17a16484'] Database driver: undefined/unknown Database version: 2.3.232 Autocommit mode: undefined/unknown Isolation level: undefined/unknown Minimum pool size: undefined/unknown Maximum pool size: undefined/unknown Hibernate: create global temporary table HT_user_entity(id bigint not null, primary key (id)) TRANSACTIONAL Hibernate: create global temporary table HTE_user_entity(has_children boolean, has_other_pets boolean, HTE_IDENTITY bigint generated by default as identity, id bigint, availability varchar(255), email varchar(255), housing_type varchar(255), name varchar(255), password varchar(255), phone varchar(255), specialty varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL Hibernate: create global temporary table HTE_mock_user(HTE_IDENTITY bigint generated by default as identity, id bigint, email varchar(255), name varchar(255), password varchar(255), phone varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL Hibernate: create global temporary table HTE_veterinarian_entity(HTE_IDENTITY bigint generated by default as identity, id bigint, shelter_id bigint, availability varchar(255), email varchar(255), name varchar(255), password varchar(255), phone varchar(255), specialty varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL Hibernate: create global temporary table HTE_adopter_entity(has_children boolean, has_other_pets boolean, HTE_IDENTITY bigint generated by default as identity, id bigint, email varchar(255), housing_type varchar(255), name varchar(255), password varchar(255), phone varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL 2026-03-21T14:24:55.278Z INFO 92 --- [ main] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000489: No JTA platform available (set 'hibernate.transaction.jta.platform' to enable JTA platform integration) Hibernate: drop table if exists adopter_entity cascade Hibernate: drop table if exists adoption_entity cascade Hibernate: drop table if exists adoption_follow_up_entity cascade Hibernate: drop table if exists adoption_request_entity cascade Hibernate: drop table if exists approval_strategy_entity cascade Hibernate: drop table if exists medical_event_entity cascade Hibernate: drop table if exists medical_history_entity cascade Hibernate: drop table if exists message_entity cascade Hibernate: drop table if exists mock_user cascade Hibernate: drop table if exists notification_entity cascade Hibernate: drop table if exists notification_strategy_entity cascade Hibernate: drop table if exists pet_entity cascade Hibernate: drop table if exists report_entity cascade Hibernate: drop table if exists report_strategy_entity cascade Hibernate: drop table if exists review_entity cascade Hibernate: drop table if exists shelter_entity cascade Hibernate: drop table if exists shelter_event_entity cascade Hibernate: drop table if exists trial_cohabitation_entity cascade Hibernate: drop table if exists user_entity cascade Hibernate: drop table if exists vaccination_record_entity cascade Hibernate: drop table if exists vaccine_entity cascade Hibernate: drop table if exists veterinarian_entity cascade Hibernate: create table adopter_entity (has_children boolean, has_other_pets boolean, id bigint not null, housing_type varchar(255), primary key (id)) Hibernate: create table adoption_entity (adoption_date date, adopter_id bigint, id bigint generated by default as identity, pet_id bigint, status enum ('CANCELLED','COMPLETED','CREATED','IN_PROGRESS','PENDING'), primary key (id)) Hibernate: create table adoption_follow_up_entity (adoption_id bigint, id bigint generated by default as identity, pet_id bigint, veterinarian_id bigint, frequency varchar(255), notes varchar(255), primary key (id)) Hibernate: create table adoption_request_entity (request_date date, adopter_id bigint, id bigint generated by default as identity, pet_id bigint, strategy_id bigint, trial_cohabitation_id bigint unique, status varchar(255), primary key (id)) Hibernate: create table approval_strategy_entity (id bigint generated by default as identity, approval_type varchar(31) not null, primary key (id)) Hibernate: create table medical_event_entity (event_date date, id bigint generated by default as identity, medical_history_id bigint, veterinarian_id bigint, diagnosis varchar(255), event_type varchar(255), treatment varchar(255), primary key (id)) Hibernate: create table medical_history_entity (id bigint generated by default as identity, pet_id bigint unique, description varchar(255), primary key (id)) Hibernate: create table message_entity (is_read boolean, adopter_id bigint, id bigint generated by default as identity, shelter_id bigint, timestamp timestamp(6), content TEXT, primary key (id)) Hibernate: create table mock_user (id bigint not null, primary key (id)) Hibernate: create table notification_entity (is_read boolean, date timestamp(6), id bigint generated by default as identity, strategy_id bigint unique, user_id bigint, message varchar(255), primary key (id)) Hibernate: create table notification_strategy_entity (id bigint generated by default as identity, primary key (id)) Hibernate: create table pet_entity (age integer, good_with_kids boolean, good_with_pets boolean, id bigint generated by default as identity, shelter_id bigint, activity_level varchar(255), breed varchar(255), description varchar(255), name varchar(255), origin varchar(255), photos varchar(255), sex varchar(255), size varchar(255), space_required varchar(255), special_needs varchar(255), species varchar(255), temperament varchar(255), status enum ('ADOPTED','AVAILABLE','IN_TRIAL','MEDICAL_TREATMENT','RESERVED'), primary key (id)) Hibernate: create table report_entity (generate_date date, event_id bigint, id bigint generated by default as identity, shelter_id bigint, strategy_id bigint, primary key (id)) Hibernate: create table report_strategy_entity (id bigint generated by default as identity, primary key (id)) Hibernate: create table review_entity (date date, rating integer, adopter_id bigint, id bigint generated by default as identity, pet_id bigint, comment TEXT, primary key (id)) Hibernate: create table shelter_entity (id bigint generated by default as identity, city varchar(255), description varchar(255), email varchar(255), gallery varchar(255), name varchar(255), primary key (id)) Hibernate: create table shelter_event_entity (date date, id bigint generated by default as identity, shelter_id bigint, description varchar(255), location varchar(255), title varchar(255), status enum ('CANCELLED','COMPLETED','CREATED','IN_PROGRESS','PENDING'), primary key (id)) Hibernate: create table trial_cohabitation_entity (end_date date, start_date date, adoption_id bigint unique, id bigint generated by default as identity, pet_id bigint, result varchar(255), status enum ('CANCELLED','COMPLETED','CREATED','IN_PROGRESS','PENDING'), primary key (id)) Hibernate: create table user_entity (id bigint generated by default as identity, email varchar(255), name varchar(255), password varchar(255), phone varchar(255), primary key (id)) Hibernate: create table vaccination_record_entity (application_date date, next_due_date date, id bigint generated by default as identity, medical_history_id bigint, vaccine_id bigint, veterinarian_id bigint, primary key (id)) Hibernate: create table vaccine_entity (validity_months integer, id bigint generated by default as identity, description varchar(255), name varchar(255), primary key (id)) Hibernate: create table veterinarian_entity (id bigint not null, shelter_id bigint, availability varchar(255), specialty varchar(255), primary key (id)) Hibernate: alter table if exists adopter_entity add constraint FKitj2sdxcctxrw6ql04jny7l9y foreign key (id) references user_entity Hibernate: alter table if exists adoption_entity add constraint FK224d1qenh6y54c9lq828mmgx foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists adoption_entity add constraint FKqmviggw0khaskxup4cg7bvqku foreign key (pet_id) references pet_entity Hibernate: alter table if exists adoption_follow_up_entity add constraint FKkxibwn0r1ep7bgevg86seymmc foreign key (adoption_id) references adoption_entity Hibernate: alter table if exists adoption_follow_up_entity add constraint FKkqclwmvja9dll86u1bn9ycwn0 foreign key (pet_id) references pet_entity Hibernate: alter table if exists adoption_follow_up_entity add constraint FKsump3rviut1cvfr8iv6vogfp4 foreign key (veterinarian_id) references veterinarian_entity Hibernate: alter table if exists adoption_request_entity add constraint FK90j2qmgnqst03l9x6fpwf0aab foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists adoption_request_entity add constraint FKpdxe7jyb75mwugces1axydwtg foreign key (strategy_id) references approval_strategy_entity Hibernate: alter table if exists adoption_request_entity add constraint FKhanslcvxoi0t9cq07vsyerx7d foreign key (pet_id) references pet_entity Hibernate: alter table if exists adoption_request_entity add constraint FKad0m44984i6frcsd86susx3df foreign key (trial_cohabitation_id) references trial_cohabitation_entity Hibernate: alter table if exists medical_event_entity add constraint FKloam0wk3hbpns9awx08v8ttty foreign key (medical_history_id) references medical_history_entity Hibernate: alter table if exists medical_event_entity add constraint FKmx3l6boot15lqesauq3y2k5t9 foreign key (veterinarian_id) references veterinarian_entity Hibernate: alter table if exists medical_history_entity add constraint FKfqo1kwpy0eom46u48u9i9ob79 foreign key (pet_id) references pet_entity Hibernate: alter table if exists message_entity add constraint FK1bx2fv4ukgy2ruq9gclvehfjw foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists message_entity add constraint FKc1jilfk3teueg8wfilq0u9h0y foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists mock_user add constraint FK1t7datqqs96rej2yoo133loxs foreign key (id) references user_entity Hibernate: alter table if exists notification_entity add constraint FKpsofie2xkbprbd9jo128ocuy9 foreign key (strategy_id) references notification_strategy_entity Hibernate: alter table if exists notification_entity add constraint FKgemicmmtfy225vqj5li4u96lk foreign key (user_id) references user_entity Hibernate: alter table if exists pet_entity add constraint FK57h1lsq9l67lcsx43ftwwto1c foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists report_entity add constraint FK6c18c90k2vnskwos9leqbmxrv foreign key (strategy_id) references report_strategy_entity Hibernate: alter table if exists report_entity add constraint FKoa7u6l3jn2ueixs49yy8nrap3 foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists report_entity add constraint FK33bibp5ycbkys4c6g1dxm410t foreign key (event_id) references shelter_event_entity Hibernate: alter table if exists review_entity add constraint FK8w6fpunff42r2ytatsjbb4o96 foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists review_entity add constraint FKhtmwv0o4w6vp5k7w088xwk0yt foreign key (pet_id) references pet_entity Hibernate: alter table if exists shelter_event_entity add constraint FKjj4fox0olnc8o73kdgso782es foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists trial_cohabitation_entity add constraint FK608jf01b64pwvg12957nbsfsj foreign key (adoption_id) references adoption_entity Hibernate: alter table if exists trial_cohabitation_entity add constraint FKrxpesflvao88mgm4bmys2c3k1 foreign key (pet_id) references pet_entity Hibernate: alter table if exists vaccination_record_entity add constraint FKfo5r2fgxn4ltp9oubgnilaq41 foreign key (medical_history_id) references medical_history_entity Hibernate: alter table if exists vaccination_record_entity add constraint FKdahievfho7baue5s1sayxwom2 foreign key (vaccine_id) references vaccine_entity Hibernate: alter table if exists vaccination_record_entity add constraint FKe2aflnq4dp8kne3km9enr1mt9 foreign key (veterinarian_id) references veterinarian_entity Hibernate: alter table if exists veterinarian_entity add constraint FKe8xa1wxe967urrvxsxpdm8y8r foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists veterinarian_entity add constraint FKl5lutaqpbd2jrfrerhn6a9g69 foreign key (id) references user_entity 2026-03-21T14:24:55.313Z INFO 92 --- [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default' 2026-03-21T14:24:55.457Z INFO 92 --- [ main] c.e.u.m.p.s.TrialCohabitationServiceTest : Started TrialCohabitationServiceTest in 0.443 seconds (process running for 14.656) Hibernate: delete from trial_cohabitation_entity tce1_0 Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) 2026-03-21T14:24:55.470Z INFO 92 --- [ main] c.e.u.m.p.s.TrialCohabitationService : Starting creation process for trial cohabitation Hibernate: delete from trial_cohabitation_entity tce1_0 Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) 2026-03-21T14:24:55.479Z INFO 92 --- [ main] c.e.u.m.p.s.TrialCohabitationService : Starting process to consult trial cohabitation with id = 999 Hibernate: select tce1_0.id,a1_0.id,a2_0.id,a2_1.email,a2_1.name,a2_1.password,a2_1.phone,a2_0.has_children,a2_0.has_other_pets,a2_0.housing_type,a1_0.adoption_date,p1_0.id,p1_0.activity_level,p1_0.age,p1_0.breed,p1_0.description,p1_0.good_with_kids,p1_0.good_with_pets,mh1_0.id,mh1_0.description,p1_0.name,p1_0.origin,p1_0.photos,p1_0.sex,p1_0.shelter_id,p1_0.size,p1_0.space_required,p1_0.special_needs,p1_0.species,p1_0.status,p1_0.temperament,a1_0.status,tce1_0.end_date,tce1_0.pet_id,tce1_0.result,tce1_0.start_date,tce1_0.status from trial_cohabitation_entity tce1_0 left join adoption_entity a1_0 on a1_0.id=tce1_0.adoption_id left join adopter_entity a2_0 on a2_0.id=a1_0.adopter_id left join user_entity a2_1 on a2_0.id=a2_1.id left join pet_entity p1_0 on p1_0.id=a1_0.pet_id left join medical_history_entity mh1_0 on p1_0.id=mh1_0.pet_id where tce1_0.id=? 2026-03-21T14:24:55.481Z ERROR 92 --- [ main] c.e.u.m.p.s.TrialCohabitationService : Trial cohabitation with id 999 not found Hibernate: delete from trial_cohabitation_entity tce1_0 Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) 2026-03-21T14:24:55.491Z INFO 92 --- [ main] c.e.u.m.p.s.TrialCohabitationService : Starting creation process for trial cohabitation Hibernate: delete from trial_cohabitation_entity tce1_0 Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) 2026-03-21T14:24:55.500Z INFO 92 --- [ main] c.e.u.m.p.s.TrialCohabitationService : Starting update process for trial cohabitation with id = 999 Hibernate: select tce1_0.id,a1_0.id,a2_0.id,a2_1.email,a2_1.name,a2_1.password,a2_1.phone,a2_0.has_children,a2_0.has_other_pets,a2_0.housing_type,a1_0.adoption_date,p1_0.id,p1_0.activity_level,p1_0.age,p1_0.breed,p1_0.description,p1_0.good_with_kids,p1_0.good_with_pets,mh1_0.id,mh1_0.description,p1_0.name,p1_0.origin,p1_0.photos,p1_0.sex,p1_0.shelter_id,p1_0.size,p1_0.space_required,p1_0.special_needs,p1_0.species,p1_0.status,p1_0.temperament,a1_0.status,tce1_0.end_date,tce1_0.pet_id,tce1_0.result,tce1_0.start_date,tce1_0.status from trial_cohabitation_entity tce1_0 left join adoption_entity a1_0 on a1_0.id=tce1_0.adoption_id left join adopter_entity a2_0 on a2_0.id=a1_0.adopter_id left join user_entity a2_1 on a2_0.id=a2_1.id left join pet_entity p1_0 on p1_0.id=a1_0.pet_id left join medical_history_entity mh1_0 on p1_0.id=mh1_0.pet_id where tce1_0.id=? Hibernate: delete from trial_cohabitation_entity tce1_0 Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) 2026-03-21T14:24:55.527Z INFO 92 --- [ main] c.e.u.m.p.s.TrialCohabitationService : Starting deletion process for trial cohabitation ID: 13 2026-03-21T14:24:55.528Z INFO 92 --- [ main] c.e.u.m.p.s.TrialCohabitationService : Trial cohabitation with ID: 13 deleted successfully Hibernate: delete from trial_cohabitation_entity tce1_0 Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) 2026-03-21T14:24:55.538Z INFO 92 --- [ main] c.e.u.m.p.s.TrialCohabitationService : Starting update process for trial cohabitation with id = 19 Hibernate: delete from trial_cohabitation_entity tce1_0 Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) 2026-03-21T14:24:55.548Z INFO 92 --- [ main] c.e.u.m.p.s.TrialCohabitationService : Starting process to consult all trial cohabitations Hibernate: select tce1_0.id,tce1_0.adoption_id,tce1_0.end_date,tce1_0.pet_id,tce1_0.result,tce1_0.start_date,tce1_0.status from trial_cohabitation_entity tce1_0 Hibernate: delete from trial_cohabitation_entity tce1_0 Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) 2026-03-21T14:24:55.560Z INFO 92 --- [ main] c.e.u.m.p.s.TrialCohabitationService : Starting creation process for trial cohabitation Hibernate: delete from trial_cohabitation_entity tce1_0 Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) 2026-03-21T14:24:55.569Z INFO 92 --- [ main] c.e.u.m.p.s.TrialCohabitationService : Starting creation process for trial cohabitation Hibernate: delete from trial_cohabitation_entity tce1_0 Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) 2026-03-21T14:24:55.578Z INFO 92 --- [ main] c.e.u.m.p.s.TrialCohabitationService : Starting update process for trial cohabitation with id = 29 Hibernate: delete from trial_cohabitation_entity tce1_0 Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) 2026-03-21T14:24:55.588Z INFO 92 --- [ main] c.e.u.m.p.s.TrialCohabitationService : Starting creation process for trial cohabitation 2026-03-21T14:24:55.588Z INFO 92 --- [ main] c.e.u.m.p.s.TrialCohabitationService : Trial cohabitation created successfully Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: delete from trial_cohabitation_entity tce1_0 Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) 2026-03-21T14:24:55.599Z INFO 92 --- [ main] c.e.u.m.p.s.TrialCohabitationService : Starting deletion process for trial cohabitation ID: 39 2026-03-21T14:24:55.599Z WARN 92 --- [ main] c.e.u.m.p.s.TrialCohabitationService : Attempted to delete trial cohabitation 39 but it is in progress Hibernate: delete from trial_cohabitation_entity tce1_0 Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) 2026-03-21T14:24:55.608Z INFO 92 --- [ main] c.e.u.m.p.s.TrialCohabitationService : Starting process to consult trial cohabitation with id = 40 Hibernate: delete from trial_cohabitation_entity tce1_0 Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) 2026-03-21T14:24:55.618Z INFO 92 --- [ main] c.e.u.m.p.s.TrialCohabitationService : Starting deletion process for trial cohabitation ID: 999 Hibernate: select tce1_0.id,a1_0.id,a2_0.id,a2_1.email,a2_1.name,a2_1.password,a2_1.phone,a2_0.has_children,a2_0.has_other_pets,a2_0.housing_type,a1_0.adoption_date,p1_0.id,p1_0.activity_level,p1_0.age,p1_0.breed,p1_0.description,p1_0.good_with_kids,p1_0.good_with_pets,mh1_0.id,mh1_0.description,p1_0.name,p1_0.origin,p1_0.photos,p1_0.sex,p1_0.shelter_id,p1_0.size,p1_0.space_required,p1_0.special_needs,p1_0.species,p1_0.status,p1_0.temperament,a1_0.status,tce1_0.end_date,tce1_0.pet_id,tce1_0.result,tce1_0.start_date,tce1_0.status from trial_cohabitation_entity tce1_0 left join adoption_entity a1_0 on a1_0.id=tce1_0.adoption_id left join adopter_entity a2_0 on a2_0.id=a1_0.adopter_id left join user_entity a2_1 on a2_0.id=a2_1.id left join pet_entity p1_0 on p1_0.id=a1_0.pet_id left join medical_history_entity mh1_0 on p1_0.id=mh1_0.pet_id where tce1_0.id=? Hibernate: delete from trial_cohabitation_entity tce1_0 Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) 2026-03-21T14:24:55.629Z INFO 92 --- [ main] c.e.u.m.p.s.TrialCohabitationService : Starting creation process for trial cohabitation 2026-03-21T14:24:55.629Z INFO 92 --- [ main] c.e.u.m.p.s.TrialCohabitationService : Trial cohabitation created successfully Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: delete from trial_cohabitation_entity tce1_0 Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) 2026-03-21T14:24:55.638Z INFO 92 --- [ main] c.e.u.m.p.s.TrialCohabitationService : Starting update process for trial cohabitation with id = 50 2026-03-21T14:24:55.639Z INFO 92 --- [ main] c.e.u.m.p.s.TrialCohabitationService : Trial cohabitation with id = 50 updated successfully [INFO] Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.638 s -- in co.edu.udistrital.mdp.pets.services.TrialCohabitationServiceTest [INFO] [INFO] Results: [INFO] [INFO] Tests run: 74, Failures: 0, Errors: 0, Skipped: 0 [INFO] [INFO] [INFO] --- jar:3.4.2:jar (default-jar) @ MP_202610_G81_E1_Back --- [INFO] Building jar: /home/cecaduser/workspace/MP_202610_G81_E1_Back/target/MP_202610_G81_E1_Back-0.0.1-SNAPSHOT.jar [INFO] [INFO] --- spring-boot:3.5.10:repackage (repackage) @ MP_202610_G81_E1_Back --- [INFO] Replacing main artifact /home/cecaduser/workspace/MP_202610_G81_E1_Back/target/MP_202610_G81_E1_Back-0.0.1-SNAPSHOT.jar with repackaged archive, adding nested dependencies in BOOT-INF/. [INFO] The original artifact has been renamed to /home/cecaduser/workspace/MP_202610_G81_E1_Back/target/MP_202610_G81_E1_Back-0.0.1-SNAPSHOT.jar.original [INFO] [INFO] --- jacoco:0.8.11:report (jacoco-site) @ MP_202610_G81_E1_Back --- [INFO] Loading execution data file /home/cecaduser/workspace/MP_202610_G81_E1_Back/target/jacoco.exec [INFO] Analyzed bundle 'MP_202610_G81_E1_Back' with 21 classes [INFO] [INFO] --- spring-boot:3.5.10:start (pre-integration-test) @ MP_202610_G81_E1_Back --- [INFO] Attaching agents: [] . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v3.5.10) 2026-03-21T14:24:58.205Z INFO 173 --- [ main] c.e.udistrital.mdp.pets.MainApplication : Starting MainApplication using Java 21.0.4 with PID 173 (/home/cecaduser/workspace/MP_202610_G81_E1_Back/target/classes started by root in /home/cecaduser/workspace/MP_202610_G81_E1_Back) 2026-03-21T14:24:58.207Z INFO 173 --- [ main] c.e.udistrital.mdp.pets.MainApplication : The following 1 profile is active: "integration-tests" 2026-03-21T14:24:58.966Z INFO 173 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode. 2026-03-21T14:24:59.076Z INFO 173 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 99 ms. Found 19 JPA repository interfaces. 2026-03-21T14:24:59.630Z INFO 173 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port 8999 (http) 2026-03-21T14:24:59.643Z INFO 173 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat] 2026-03-21T14:24:59.644Z INFO 173 --- [ main] o.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/10.1.50] 2026-03-21T14:24:59.689Z INFO 173 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/api] : Initializing Spring embedded WebApplicationContext 2026-03-21T14:24:59.690Z INFO 173 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 1427 ms 2026-03-21T14:24:59.877Z INFO 173 --- [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default] 2026-03-21T14:24:59.921Z INFO 173 --- [ main] org.hibernate.Version : HHH000412: Hibernate ORM core version 6.6.41.Final 2026-03-21T14:24:59.951Z INFO 173 --- [ main] o.h.c.internal.RegionFactoryInitiator : HHH000026: Second-level cache disabled 2026-03-21T14:25:00.232Z INFO 173 --- [ main] o.s.o.j.p.SpringPersistenceUnitInfo : No LoadTimeWeaver setup: ignoring JPA class transformer 2026-03-21T14:25:00.260Z INFO 173 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting... 2026-03-21T14:25:00.439Z INFO 173 --- [ main] com.zaxxer.hikari.pool.HikariPool : HikariPool-1 - Added connection conn0: url=jdbc:h2:mem:pets user=SA 2026-03-21T14:25:00.441Z INFO 173 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed. 2026-03-21T14:25:00.469Z WARN 173 --- [ main] org.hibernate.orm.deprecation : HHH90000025: H2Dialect does not need to be specified explicitly using 'hibernate.dialect' (remove the property setting and it will be selected by default) 2026-03-21T14:25:00.490Z INFO 173 --- [ main] org.hibernate.orm.connections.pooling : HHH10001005: Database info: Database JDBC URL [Connecting through datasource 'HikariDataSource (HikariPool-1)'] Database driver: undefined/unknown Database version: 2.3.232 Autocommit mode: undefined/unknown Isolation level: undefined/unknown Minimum pool size: undefined/unknown Maximum pool size: undefined/unknown 2026-03-21T14:25:01.743Z INFO 173 --- [ main] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000489: No JTA platform available (set 'hibernate.transaction.jta.platform' to enable JTA platform integration) 2026-03-21T14:25:01.841Z INFO 173 --- [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default' 2026-03-21T14:25:02.765Z INFO 173 --- [ main] o.s.b.a.h2.H2ConsoleAutoConfiguration : H2 console available at '/h2-console'. Database available at 'jdbc:h2:mem:pets' 2026-03-21T14:25:02.845Z INFO 173 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port 8999 (http) with context path '/api' 2026-03-21T14:25:02.854Z INFO 173 --- [ main] c.e.udistrital.mdp.pets.MainApplication : Started MainApplication in 5.194 seconds (process running for 5.789) [INFO] [INFO] --- exec:1.6.0:exec (combine-collection) @ MP_202610_G81_E1_Back --- Collection 'Default Tests' was successfully added. Combined collection is saved to 'it/composed.collection.json' [INFO] [INFO] --- spring-boot:3.5.10:stop (post-integration-test) @ MP_202610_G81_E1_Back --- [INFO] Stopping application... 2026-03-21T14:25:03.776Z INFO 173 --- [on(2)-127.0.0.1] inMXBeanRegistrar$SpringApplicationAdmin : Application shutdown requested. 2026-03-21T14:25:03.778Z INFO 173 --- [on(2)-127.0.0.1] o.s.b.w.e.tomcat.GracefulShutdown : Commencing graceful shutdown. Waiting for active requests to complete 2026-03-21T14:25:03.783Z INFO 173 --- [tomcat-shutdown] o.s.b.w.e.tomcat.GracefulShutdown : Graceful shutdown complete 2026-03-21T14:25:03.788Z INFO 173 --- [on(2)-127.0.0.1] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default' 2026-03-21T14:25:03.805Z INFO 173 --- [on(2)-127.0.0.1] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated... 2026-03-21T14:25:03.809Z INFO 173 --- [on(2)-127.0.0.1] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed. [INFO] [INFO] --- install:3.1.4:install (default-install) @ MP_202610_G81_E1_Back --- [INFO] Installing /home/cecaduser/workspace/MP_202610_G81_E1_Back/pom.xml to /root/.m2/repository/co/edu/udistrital/mdp/MP_202610_G81_E1_Back/0.0.1-SNAPSHOT/MP_202610_G81_E1_Back-0.0.1-SNAPSHOT.pom [INFO] Installing /home/cecaduser/workspace/MP_202610_G81_E1_Back/target/MP_202610_G81_E1_Back-0.0.1-SNAPSHOT.jar to /root/.m2/repository/co/edu/udistrital/mdp/MP_202610_G81_E1_Back/0.0.1-SNAPSHOT/MP_202610_G81_E1_Back-0.0.1-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 28.792 s [INFO] Finished at: 2026-03-21T14:25:03Z [INFO] ------------------------------------------------------------------------ [Pipeline] } $ docker stop --time=1 14c7ba79f1a486dee974dc9563dd7a3e0425e43f53b5c08f3818f0d0678ed197 $ docker rm -f --volumes 14c7ba79f1a486dee974dc9563dd7a3e0425e43f53b5c08f3818f0d0678ed197 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Testing) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh + docker inspect -f . citools-isis2603:latest . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer Slave2 does not seem to be running inside a container $ docker run -t -d -u 1000:1000 -v $HOME/.m2:/root/.m2:z -u root -w /home/cecaduser/workspace/MP_202610_G81_E1_Back -v /home/cecaduser/workspace/MP_202610_G81_E1_Back:/home/cecaduser/workspace/MP_202610_G81_E1_Back:rw,z -v /home/cecaduser/workspace/MP_202610_G81_E1_Back@tmp:/home/cecaduser/workspace/MP_202610_G81_E1_Back@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** citools-isis2603:latest cat $ docker top 4c31854fcd7df957a9ba2bac3c9921d7e8faddc943a024caa8487d9a8a91d0aa -eo pid,comm [Pipeline] { [Pipeline] sh + mvn test [INFO] Scanning for projects... [INFO] [INFO] ------------< co.edu.udistrital.mdp:MP_202610_G81_E1_Back >------------- [INFO] Building MP_202610_G81_E1_Back 0.0.1-SNAPSHOT [INFO] from pom.xml [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- jacoco:0.8.11:prepare-agent (jacoco-initialize) @ MP_202610_G81_E1_Back --- [INFO] argLine set to -javaagent:/root/.m2/repository/org/jacoco/org.jacoco.agent/0.8.11/org.jacoco.agent-0.8.11-runtime.jar=destfile=/home/cecaduser/workspace/MP_202610_G81_E1_Back/target/jacoco.exec [INFO] [INFO] --- resources:3.3.1:resources (default-resources) @ MP_202610_G81_E1_Back --- [INFO] Copying 1 resource from src/main/resources to target/classes [INFO] Copying 0 resource from src/main/resources to target/classes [INFO] [INFO] --- compiler:3.14.1:compile (default-compile) @ MP_202610_G81_E1_Back --- [INFO] Nothing to compile - all classes are up to date. [INFO] [INFO] --- resources:3.3.1:testResources (default-testResources) @ MP_202610_G81_E1_Back --- [INFO] skip non existing resourceDirectory /home/cecaduser/workspace/MP_202610_G81_E1_Back/src/test/resources [INFO] [INFO] --- compiler:3.14.1:testCompile (default-testCompile) @ MP_202610_G81_E1_Back --- [INFO] Nothing to compile - all classes are up to date. [INFO] [INFO] --- surefire:3.2.5:test (default-test) @ MP_202610_G81_E1_Back --- [INFO] Using auto detected provider org.apache.maven.surefire.junitplatform.JUnitPlatformProvider [INFO] [INFO] ------------------------------------------------------- [INFO] T E S T S [INFO] ------------------------------------------------------- [INFO] Running co.edu.udistrital.mdp.pets.services.AdopterServiceTest 14:25:11.553 [main] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils -- Could not detect default configuration classes for test class [co.edu.udistrital.mdp.pets.services.AdopterServiceTest]: AdopterServiceTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration. 14:25:11.808 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper -- Found @SpringBootConfiguration co.edu.udistrital.mdp.pets.MainApplication for test class co.edu.udistrital.mdp.pets.services.AdopterServiceTest . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v3.5.10) 2026-03-21T14:25:12.624Z INFO 71 --- [ main] c.e.u.m.p.services.AdopterServiceTest : Starting AdopterServiceTest using Java 21.0.4 with PID 71 (started by root in /home/cecaduser/workspace/MP_202610_G81_E1_Back) 2026-03-21T14:25:12.642Z INFO 71 --- [ main] c.e.u.m.p.services.AdopterServiceTest : No active profile set, falling back to 1 default profile: "default" 2026-03-21T14:25:13.262Z INFO 71 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode. 2026-03-21T14:25:13.422Z INFO 71 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 139 ms. Found 19 JPA repository interfaces. 2026-03-21T14:25:13.543Z INFO 71 --- [ main] beddedDataSourceBeanFactoryPostProcessor : Replacing 'dataSource' DataSource bean with embedded version 2026-03-21T14:25:13.699Z INFO 71 --- [ main] o.s.j.d.e.EmbeddedDatabaseFactory : Starting embedded database: url='jdbc:h2:mem:ffdcb327-829a-4d26-aa60-10eb6b5dfcae;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=false', username='sa' 2026-03-21T14:25:14.411Z INFO 71 --- [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default] 2026-03-21T14:25:14.510Z INFO 71 --- [ main] org.hibernate.Version : HHH000412: Hibernate ORM core version 6.6.41.Final 2026-03-21T14:25:14.575Z INFO 71 --- [ main] o.h.c.internal.RegionFactoryInitiator : HHH000026: Second-level cache disabled 2026-03-21T14:25:15.133Z INFO 71 --- [ main] o.s.o.j.p.SpringPersistenceUnitInfo : No LoadTimeWeaver setup: ignoring JPA class transformer 2026-03-21T14:25:15.242Z WARN 71 --- [ main] org.hibernate.orm.deprecation : HHH90000025: H2Dialect does not need to be specified explicitly using 'hibernate.dialect' (remove the property setting and it will be selected by default) 2026-03-21T14:25:15.288Z INFO 71 --- [ main] org.hibernate.orm.connections.pooling : HHH10001005: Database info: Database JDBC URL [Connecting through datasource 'org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactory$EmbeddedDataSourceProxy@3ed3f72a'] Database driver: undefined/unknown Database version: 2.3.232 Autocommit mode: undefined/unknown Isolation level: undefined/unknown Minimum pool size: undefined/unknown Maximum pool size: undefined/unknown Hibernate: create global temporary table HT_user_entity(id bigint not null, primary key (id)) TRANSACTIONAL Hibernate: create global temporary table HTE_user_entity(has_children boolean, has_other_pets boolean, HTE_IDENTITY bigint generated by default as identity, id bigint, availability varchar(255), email varchar(255), housing_type varchar(255), name varchar(255), password varchar(255), phone varchar(255), specialty varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL Hibernate: create global temporary table HTE_mock_user(HTE_IDENTITY bigint generated by default as identity, id bigint, email varchar(255), name varchar(255), password varchar(255), phone varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL Hibernate: create global temporary table HTE_veterinarian_entity(HTE_IDENTITY bigint generated by default as identity, id bigint, shelter_id bigint, availability varchar(255), email varchar(255), name varchar(255), password varchar(255), phone varchar(255), specialty varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL Hibernate: create global temporary table HTE_adopter_entity(has_children boolean, has_other_pets boolean, HTE_IDENTITY bigint generated by default as identity, id bigint, email varchar(255), housing_type varchar(255), name varchar(255), password varchar(255), phone varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL 2026-03-21T14:25:17.617Z INFO 71 --- [ main] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000489: No JTA platform available (set 'hibernate.transaction.jta.platform' to enable JTA platform integration) Hibernate: drop table if exists adopter_entity cascade Hibernate: drop table if exists adoption_entity cascade Hibernate: drop table if exists adoption_follow_up_entity cascade Hibernate: drop table if exists adoption_request_entity cascade Hibernate: drop table if exists approval_strategy_entity cascade Hibernate: drop table if exists medical_event_entity cascade Hibernate: drop table if exists medical_history_entity cascade Hibernate: drop table if exists message_entity cascade Hibernate: drop table if exists mock_user cascade Hibernate: drop table if exists notification_entity cascade Hibernate: drop table if exists notification_strategy_entity cascade Hibernate: drop table if exists pet_entity cascade Hibernate: drop table if exists report_entity cascade Hibernate: drop table if exists report_strategy_entity cascade Hibernate: drop table if exists review_entity cascade Hibernate: drop table if exists shelter_entity cascade Hibernate: drop table if exists shelter_event_entity cascade Hibernate: drop table if exists trial_cohabitation_entity cascade Hibernate: drop table if exists user_entity cascade Hibernate: drop table if exists vaccination_record_entity cascade Hibernate: drop table if exists vaccine_entity cascade Hibernate: drop table if exists veterinarian_entity cascade Hibernate: create table adopter_entity (has_children boolean, has_other_pets boolean, id bigint not null, housing_type varchar(255), primary key (id)) Hibernate: create table adoption_entity (adoption_date date, adopter_id bigint, id bigint generated by default as identity, pet_id bigint, status enum ('CANCELLED','COMPLETED','CREATED','IN_PROGRESS','PENDING'), primary key (id)) Hibernate: create table adoption_follow_up_entity (adoption_id bigint, id bigint generated by default as identity, pet_id bigint, veterinarian_id bigint, frequency varchar(255), notes varchar(255), primary key (id)) Hibernate: create table adoption_request_entity (request_date date, adopter_id bigint, id bigint generated by default as identity, pet_id bigint, strategy_id bigint, trial_cohabitation_id bigint unique, status varchar(255), primary key (id)) Hibernate: create table approval_strategy_entity (id bigint generated by default as identity, approval_type varchar(31) not null, primary key (id)) Hibernate: create table medical_event_entity (event_date date, id bigint generated by default as identity, medical_history_id bigint, veterinarian_id bigint, diagnosis varchar(255), event_type varchar(255), treatment varchar(255), primary key (id)) Hibernate: create table medical_history_entity (id bigint generated by default as identity, pet_id bigint unique, description varchar(255), primary key (id)) Hibernate: create table message_entity (is_read boolean, adopter_id bigint, id bigint generated by default as identity, shelter_id bigint, timestamp timestamp(6), content TEXT, primary key (id)) Hibernate: create table mock_user (id bigint not null, primary key (id)) Hibernate: create table notification_entity (is_read boolean, date timestamp(6), id bigint generated by default as identity, strategy_id bigint unique, user_id bigint, message varchar(255), primary key (id)) Hibernate: create table notification_strategy_entity (id bigint generated by default as identity, primary key (id)) Hibernate: create table pet_entity (age integer, good_with_kids boolean, good_with_pets boolean, id bigint generated by default as identity, shelter_id bigint, activity_level varchar(255), breed varchar(255), description varchar(255), name varchar(255), origin varchar(255), photos varchar(255), sex varchar(255), size varchar(255), space_required varchar(255), special_needs varchar(255), species varchar(255), temperament varchar(255), status enum ('ADOPTED','AVAILABLE','IN_TRIAL','MEDICAL_TREATMENT','RESERVED'), primary key (id)) Hibernate: create table report_entity (generate_date date, event_id bigint, id bigint generated by default as identity, shelter_id bigint, strategy_id bigint, primary key (id)) Hibernate: create table report_strategy_entity (id bigint generated by default as identity, primary key (id)) Hibernate: create table review_entity (date date, rating integer, adopter_id bigint, id bigint generated by default as identity, pet_id bigint, comment TEXT, primary key (id)) Hibernate: create table shelter_entity (id bigint generated by default as identity, city varchar(255), description varchar(255), email varchar(255), gallery varchar(255), name varchar(255), primary key (id)) Hibernate: create table shelter_event_entity (date date, id bigint generated by default as identity, shelter_id bigint, description varchar(255), location varchar(255), title varchar(255), status enum ('CANCELLED','COMPLETED','CREATED','IN_PROGRESS','PENDING'), primary key (id)) Hibernate: create table trial_cohabitation_entity (end_date date, start_date date, adoption_id bigint unique, id bigint generated by default as identity, pet_id bigint, result varchar(255), status enum ('CANCELLED','COMPLETED','CREATED','IN_PROGRESS','PENDING'), primary key (id)) Hibernate: create table user_entity (id bigint generated by default as identity, email varchar(255), name varchar(255), password varchar(255), phone varchar(255), primary key (id)) Hibernate: create table vaccination_record_entity (application_date date, next_due_date date, id bigint generated by default as identity, medical_history_id bigint, vaccine_id bigint, veterinarian_id bigint, primary key (id)) Hibernate: create table vaccine_entity (validity_months integer, id bigint generated by default as identity, description varchar(255), name varchar(255), primary key (id)) Hibernate: create table veterinarian_entity (id bigint not null, shelter_id bigint, availability varchar(255), specialty varchar(255), primary key (id)) Hibernate: alter table if exists adopter_entity add constraint FKitj2sdxcctxrw6ql04jny7l9y foreign key (id) references user_entity Hibernate: alter table if exists adoption_entity add constraint FK224d1qenh6y54c9lq828mmgx foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists adoption_entity add constraint FKqmviggw0khaskxup4cg7bvqku foreign key (pet_id) references pet_entity Hibernate: alter table if exists adoption_follow_up_entity add constraint FKkxibwn0r1ep7bgevg86seymmc foreign key (adoption_id) references adoption_entity Hibernate: alter table if exists adoption_follow_up_entity add constraint FKkqclwmvja9dll86u1bn9ycwn0 foreign key (pet_id) references pet_entity Hibernate: alter table if exists adoption_follow_up_entity add constraint FKsump3rviut1cvfr8iv6vogfp4 foreign key (veterinarian_id) references veterinarian_entity Hibernate: alter table if exists adoption_request_entity add constraint FK90j2qmgnqst03l9x6fpwf0aab foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists adoption_request_entity add constraint FKpdxe7jyb75mwugces1axydwtg foreign key (strategy_id) references approval_strategy_entity Hibernate: alter table if exists adoption_request_entity add constraint FKhanslcvxoi0t9cq07vsyerx7d foreign key (pet_id) references pet_entity Hibernate: alter table if exists adoption_request_entity add constraint FKad0m44984i6frcsd86susx3df foreign key (trial_cohabitation_id) references trial_cohabitation_entity Hibernate: alter table if exists medical_event_entity add constraint FKloam0wk3hbpns9awx08v8ttty foreign key (medical_history_id) references medical_history_entity Hibernate: alter table if exists medical_event_entity add constraint FKmx3l6boot15lqesauq3y2k5t9 foreign key (veterinarian_id) references veterinarian_entity Hibernate: alter table if exists medical_history_entity add constraint FKfqo1kwpy0eom46u48u9i9ob79 foreign key (pet_id) references pet_entity Hibernate: alter table if exists message_entity add constraint FK1bx2fv4ukgy2ruq9gclvehfjw foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists message_entity add constraint FKc1jilfk3teueg8wfilq0u9h0y foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists mock_user add constraint FK1t7datqqs96rej2yoo133loxs foreign key (id) references user_entity Hibernate: alter table if exists notification_entity add constraint FKpsofie2xkbprbd9jo128ocuy9 foreign key (strategy_id) references notification_strategy_entity Hibernate: alter table if exists notification_entity add constraint FKgemicmmtfy225vqj5li4u96lk foreign key (user_id) references user_entity Hibernate: alter table if exists pet_entity add constraint FK57h1lsq9l67lcsx43ftwwto1c foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists report_entity add constraint FK6c18c90k2vnskwos9leqbmxrv foreign key (strategy_id) references report_strategy_entity Hibernate: alter table if exists report_entity add constraint FKoa7u6l3jn2ueixs49yy8nrap3 foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists report_entity add constraint FK33bibp5ycbkys4c6g1dxm410t foreign key (event_id) references shelter_event_entity Hibernate: alter table if exists review_entity add constraint FK8w6fpunff42r2ytatsjbb4o96 foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists review_entity add constraint FKhtmwv0o4w6vp5k7w088xwk0yt foreign key (pet_id) references pet_entity Hibernate: alter table if exists shelter_event_entity add constraint FKjj4fox0olnc8o73kdgso782es foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists trial_cohabitation_entity add constraint FK608jf01b64pwvg12957nbsfsj foreign key (adoption_id) references adoption_entity Hibernate: alter table if exists trial_cohabitation_entity add constraint FKrxpesflvao88mgm4bmys2c3k1 foreign key (pet_id) references pet_entity Hibernate: alter table if exists vaccination_record_entity add constraint FKfo5r2fgxn4ltp9oubgnilaq41 foreign key (medical_history_id) references medical_history_entity Hibernate: alter table if exists vaccination_record_entity add constraint FKdahievfho7baue5s1sayxwom2 foreign key (vaccine_id) references vaccine_entity Hibernate: alter table if exists vaccination_record_entity add constraint FKe2aflnq4dp8kne3km9enr1mt9 foreign key (veterinarian_id) references veterinarian_entity Hibernate: alter table if exists veterinarian_entity add constraint FKe8xa1wxe967urrvxsxpdm8y8r foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists veterinarian_entity add constraint FKl5lutaqpbd2jrfrerhn6a9g69 foreign key (id) references user_entity 2026-03-21T14:25:17.771Z INFO 71 --- [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default' 2026-03-21T14:25:18.750Z INFO 71 --- [ main] c.e.u.m.p.services.AdopterServiceTest : Started AdopterServiceTest in 6.795 seconds (process running for 8.689) Mockito is currently self-attaching to enable the inline-mock-maker. This will no longer work in future releases of the JDK. Please add Mockito as an agent to your build as described in Mockito's documentation: https://javadoc.io/doc/org.mockito/mockito-core/latest/org.mockito/org/mockito/Mockito.html#0.3 OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended WARNING: A Java agent has been loaded dynamically (/root/.m2/repository/net/bytebuddy/byte-buddy-agent/1.17.8/byte-buddy-agent-1.17.8.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 Hibernate: delete from adoption_request_entity are1_0 Hibernate: delete from adoption_entity ae1_0 Hibernate: insert into HT_user_entity(id) select ae1_0.id from adopter_entity ae1_0 Hibernate: delete from adopter_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from user_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from HT_user_entity Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) 2026-03-21T14:25:19.830Z INFO 71 --- [ main] c.e.u.mdp.pets.services.AdopterService : Updating adopter with id = 1 Hibernate: delete from adoption_request_entity are1_0 Hibernate: delete from adoption_entity ae1_0 Hibernate: insert into HT_user_entity(id) select ae1_0.id from adopter_entity ae1_0 Hibernate: delete from adopter_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from user_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from HT_user_entity Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) 2026-03-21T14:25:19.871Z INFO 71 --- [ main] c.e.u.mdp.pets.services.AdopterService : Starting creation process for adopter: test@test.com Hibernate: delete from adoption_request_entity are1_0 Hibernate: delete from adoption_entity ae1_0 Hibernate: insert into HT_user_entity(id) select ae1_0.id from adopter_entity ae1_0 Hibernate: delete from adopter_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from user_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from HT_user_entity Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) 2026-03-21T14:25:19.924Z INFO 71 --- [ main] c.e.u.mdp.pets.services.UserService : Deleting user with id = 8 2026-03-21T14:25:19.944Z WARN 71 --- [ main] c.e.u.mdp.pets.services.AdopterService : Attempted to delete adopter 8 with adoption records Hibernate: delete from adoption_request_entity are1_0 Hibernate: delete from adoption_entity ae1_0 Hibernate: insert into HT_user_entity(id) select ae1_0.id from adopter_entity ae1_0 Hibernate: delete from adopter_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from user_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from HT_user_entity Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) 2026-03-21T14:25:19.970Z INFO 71 --- [ main] c.e.u.mdp.pets.services.AdopterService : Starting creation process for adopter: test@test.com Hibernate: delete from adoption_request_entity are1_0 Hibernate: delete from adoption_entity ae1_0 Hibernate: insert into HT_user_entity(id) select ae1_0.id from adopter_entity ae1_0 Hibernate: delete from adopter_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from user_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from HT_user_entity Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: delete from adoption_request_entity are1_0 Hibernate: delete from adoption_entity ae1_0 Hibernate: insert into HT_user_entity(id) select ae1_0.id from adopter_entity ae1_0 Hibernate: delete from adopter_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from user_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from HT_user_entity Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) 2026-03-21T14:25:20.017Z INFO 71 --- [ main] c.e.u.mdp.pets.services.AdopterService : Starting creation process for adopter: test@test.com Hibernate: delete from adoption_request_entity are1_0 Hibernate: delete from adoption_entity ae1_0 Hibernate: insert into HT_user_entity(id) select ae1_0.id from adopter_entity ae1_0 Hibernate: delete from adopter_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from user_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from HT_user_entity Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) 2026-03-21T14:25:20.037Z INFO 71 --- [ main] c.e.u.mdp.pets.services.AdopterService : Updating adopter with id = 19 2026-03-21T14:25:20.037Z INFO 71 --- [ main] c.e.u.mdp.pets.services.UserService : Updating user with id = 19 Hibernate: select ue1_0.id,case when ue1_3.id is not null then 1 when ue1_1.id is not null then 2 when ue1_2.id is not null then 3 end,ue1_0.email,ue1_0.name,ue1_0.password,ue1_0.phone,ue1_1.has_children,ue1_1.has_other_pets,ue1_1.housing_type,ue1_2.availability,ue1_2.shelter_id,ue1_2.specialty from user_entity ue1_0 left join adopter_entity ue1_1 on ue1_0.id=ue1_1.id left join veterinarian_entity ue1_2 on ue1_0.id=ue1_2.id left join mock_user ue1_3 on ue1_0.id=ue1_3.id where ue1_0.email=? Hibernate: delete from adoption_request_entity are1_0 Hibernate: delete from adoption_entity ae1_0 Hibernate: insert into HT_user_entity(id) select ae1_0.id from adopter_entity ae1_0 Hibernate: delete from adopter_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from user_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from HT_user_entity Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) 2026-03-21T14:25:20.164Z INFO 71 --- [ main] c.e.u.mdp.pets.services.AdopterService : Updating adopter with id = 999 2026-03-21T14:25:20.164Z INFO 71 --- [ main] c.e.u.mdp.pets.services.UserService : Updating user with id = 999 Hibernate: select ue1_0.id,case when ue1_3.id is not null then 1 when ue1_1.id is not null then 2 when ue1_2.id is not null then 3 end,ue1_0.email,ue1_0.name,ue1_0.password,ue1_0.phone,ue1_1.has_children,ue1_1.has_other_pets,ue1_1.housing_type,ue1_2.availability,s1_0.id,s1_0.city,s1_0.description,s1_0.email,s1_0.gallery,s1_0.name,ue1_2.specialty from user_entity ue1_0 left join adopter_entity ue1_1 on ue1_0.id=ue1_1.id left join veterinarian_entity ue1_2 on ue1_0.id=ue1_2.id left join mock_user ue1_3 on ue1_0.id=ue1_3.id left join shelter_entity s1_0 on s1_0.id=ue1_2.shelter_id where ue1_0.id=? Hibernate: delete from adoption_request_entity are1_0 Hibernate: delete from adoption_entity ae1_0 Hibernate: insert into HT_user_entity(id) select ae1_0.id from adopter_entity ae1_0 Hibernate: delete from adopter_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from user_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from HT_user_entity Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) 2026-03-21T14:25:20.190Z INFO 71 --- [ main] c.e.u.mdp.pets.services.AdopterService : Starting creation process for adopter: nuevo_adopter@test.com 2026-03-21T14:25:20.190Z INFO 71 --- [ main] c.e.u.mdp.pets.services.UserService : Starting creation process for user: nuevo_adopter@test.com Hibernate: select ue1_0.id,case when ue1_3.id is not null then 1 when ue1_1.id is not null then 2 when ue1_2.id is not null then 3 end,ue1_0.email,ue1_0.name,ue1_0.password,ue1_0.phone,ue1_1.has_children,ue1_1.has_other_pets,ue1_1.housing_type,ue1_2.availability,ue1_2.shelter_id,ue1_2.specialty from user_entity ue1_0 left join adopter_entity ue1_1 on ue1_0.id=ue1_1.id left join veterinarian_entity ue1_2 on ue1_0.id=ue1_2.id left join mock_user ue1_3 on ue1_0.id=ue1_3.id where ue1_0.email=? Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: delete from adoption_request_entity are1_0 Hibernate: delete from adoption_entity ae1_0 Hibernate: insert into HT_user_entity(id) select ae1_0.id from adopter_entity ae1_0 Hibernate: delete from adopter_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from user_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from HT_user_entity Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: select ue1_0.id,case when ue1_3.id is not null then 1 when ue1_1.id is not null then 2 when ue1_2.id is not null then 3 end,ue1_0.email,ue1_0.name,ue1_0.password,ue1_0.phone,ue1_1.has_children,ue1_1.has_other_pets,ue1_1.housing_type,ue1_2.availability,s1_0.id,s1_0.city,s1_0.description,s1_0.email,s1_0.gallery,s1_0.name,ue1_2.specialty from user_entity ue1_0 left join adopter_entity ue1_1 on ue1_0.id=ue1_1.id left join veterinarian_entity ue1_2 on ue1_0.id=ue1_2.id left join mock_user ue1_3 on ue1_0.id=ue1_3.id left join shelter_entity s1_0 on s1_0.id=ue1_2.shelter_id where ue1_0.id=? Hibernate: delete from adoption_request_entity are1_0 Hibernate: delete from adoption_entity ae1_0 Hibernate: insert into HT_user_entity(id) select ae1_0.id from adopter_entity ae1_0 Hibernate: delete from adopter_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from user_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from HT_user_entity Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) 2026-03-21T14:25:20.234Z INFO 71 --- [ main] c.e.u.mdp.pets.services.UserService : Deleting user with id = 32 Hibernate: delete from adoption_request_entity are1_0 Hibernate: delete from adoption_entity ae1_0 Hibernate: insert into HT_user_entity(id) select ae1_0.id from adopter_entity ae1_0 Hibernate: delete from adopter_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from user_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from HT_user_entity Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) 2026-03-21T14:25:20.260Z INFO 71 --- [ main] c.e.u.mdp.pets.services.AdopterService : Starting creation process for adopter: test@test.com Hibernate: delete from adoption_request_entity are1_0 Hibernate: delete from adoption_entity ae1_0 Hibernate: insert into HT_user_entity(id) select ae1_0.id from adopter_entity ae1_0 Hibernate: delete from adopter_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from user_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from HT_user_entity Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) 2026-03-21T14:25:20.278Z INFO 71 --- [ main] c.e.u.mdp.pets.services.UserService : Deleting user with id = 999 Hibernate: select ue1_0.id,case when ue1_3.id is not null then 1 when ue1_1.id is not null then 2 when ue1_2.id is not null then 3 end,ue1_0.email,ue1_0.name,ue1_0.password,ue1_0.phone,ue1_1.has_children,ue1_1.has_other_pets,ue1_1.housing_type,ue1_2.availability,s1_0.id,s1_0.city,s1_0.description,s1_0.email,s1_0.gallery,s1_0.name,ue1_2.specialty from user_entity ue1_0 left join adopter_entity ue1_1 on ue1_0.id=ue1_1.id left join veterinarian_entity ue1_2 on ue1_0.id=ue1_2.id left join mock_user ue1_3 on ue1_0.id=ue1_3.id left join shelter_entity s1_0 on s1_0.id=ue1_2.shelter_id where ue1_0.id=? Hibernate: delete from adoption_request_entity are1_0 Hibernate: delete from adoption_entity ae1_0 Hibernate: insert into HT_user_entity(id) select ae1_0.id from adopter_entity ae1_0 Hibernate: delete from adopter_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from user_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from HT_user_entity Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: select ue1_0.id,case when ue1_3.id is not null then 1 when ue1_1.id is not null then 2 when ue1_2.id is not null then 3 end,ue1_0.email,ue1_0.name,ue1_0.password,ue1_0.phone,ue1_1.has_children,ue1_1.has_other_pets,ue1_1.housing_type,ue1_2.availability,ue1_2.shelter_id,ue1_2.specialty from user_entity ue1_0 left join adopter_entity ue1_1 on ue1_0.id=ue1_1.id left join veterinarian_entity ue1_2 on ue1_0.id=ue1_2.id left join mock_user ue1_3 on ue1_0.id=ue1_3.id Hibernate: delete from adoption_request_entity are1_0 Hibernate: delete from adoption_entity ae1_0 Hibernate: insert into HT_user_entity(id) select ae1_0.id from adopter_entity ae1_0 Hibernate: delete from adopter_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from user_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from HT_user_entity Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into adoption_request_entity (adopter_id,strategy_id,pet_id,request_date,status,trial_cohabitation_id,id) values (?,?,?,?,?,?,default) 2026-03-21T14:25:20.323Z INFO 71 --- [ main] c.e.u.mdp.pets.services.UserService : Deleting user with id = 44 2026-03-21T14:25:20.324Z WARN 71 --- [ main] c.e.u.mdp.pets.services.AdopterService : Attempted to delete adopter 44 with active adoption requests [INFO] Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 9.101 s -- in co.edu.udistrital.mdp.pets.services.AdopterServiceTest [INFO] Running co.edu.udistrital.mdp.pets.services.AdoptionServiceTest 2026-03-21T14:25:20.335Z INFO 71 --- [ main] t.c.s.AnnotationConfigContextLoaderUtils : Could not detect default configuration classes for test class [co.edu.udistrital.mdp.pets.services.AdoptionServiceTest]: AdoptionServiceTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration. 2026-03-21T14:25:20.343Z INFO 71 --- [ main] .b.t.c.SpringBootTestContextBootstrapper : Found @SpringBootConfiguration co.edu.udistrital.mdp.pets.MainApplication for test class co.edu.udistrital.mdp.pets.services.AdoptionServiceTest . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v3.5.10) 2026-03-21T14:25:20.371Z INFO 71 --- [ main] c.e.u.m.p.services.AdoptionServiceTest : Starting AdoptionServiceTest using Java 21.0.4 with PID 71 (started by root in /home/cecaduser/workspace/MP_202610_G81_E1_Back) 2026-03-21T14:25:20.371Z INFO 71 --- [ main] c.e.u.m.p.services.AdoptionServiceTest : No active profile set, falling back to 1 default profile: "default" 2026-03-21T14:25:20.466Z INFO 71 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode. 2026-03-21T14:25:20.494Z INFO 71 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 26 ms. Found 19 JPA repository interfaces. 2026-03-21T14:25:20.518Z INFO 71 --- [ main] beddedDataSourceBeanFactoryPostProcessor : Replacing 'dataSource' DataSource bean with embedded version 2026-03-21T14:25:20.534Z INFO 71 --- [ main] o.s.j.d.e.EmbeddedDatabaseFactory : Starting embedded database: url='jdbc:h2:mem:486f8b26-53da-4a50-9fb7-9a2e08adc342;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=false', username='sa' 2026-03-21T14:25:20.559Z INFO 71 --- [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default] 2026-03-21T14:25:20.561Z INFO 71 --- [ main] o.h.c.internal.RegionFactoryInitiator : HHH000026: Second-level cache disabled 2026-03-21T14:25:20.570Z INFO 71 --- [ main] o.s.o.j.p.SpringPersistenceUnitInfo : No LoadTimeWeaver setup: ignoring JPA class transformer 2026-03-21T14:25:20.571Z WARN 71 --- [ main] org.hibernate.orm.deprecation : HHH90000025: H2Dialect does not need to be specified explicitly using 'hibernate.dialect' (remove the property setting and it will be selected by default) 2026-03-21T14:25:20.572Z INFO 71 --- [ main] org.hibernate.orm.connections.pooling : HHH10001005: Database info: Database JDBC URL [Connecting through datasource 'org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactory$EmbeddedDataSourceProxy@62d59f79'] Database driver: undefined/unknown Database version: 2.3.232 Autocommit mode: undefined/unknown Isolation level: undefined/unknown Minimum pool size: undefined/unknown Maximum pool size: undefined/unknown Hibernate: create global temporary table HT_user_entity(id bigint not null, primary key (id)) TRANSACTIONAL Hibernate: create global temporary table HTE_user_entity(has_children boolean, has_other_pets boolean, HTE_IDENTITY bigint generated by default as identity, id bigint, availability varchar(255), email varchar(255), housing_type varchar(255), name varchar(255), password varchar(255), phone varchar(255), specialty varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL Hibernate: create global temporary table HTE_mock_user(HTE_IDENTITY bigint generated by default as identity, id bigint, email varchar(255), name varchar(255), password varchar(255), phone varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL Hibernate: create global temporary table HTE_veterinarian_entity(HTE_IDENTITY bigint generated by default as identity, id bigint, shelter_id bigint, availability varchar(255), email varchar(255), name varchar(255), password varchar(255), phone varchar(255), specialty varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL Hibernate: create global temporary table HTE_adopter_entity(has_children boolean, has_other_pets boolean, HTE_IDENTITY bigint generated by default as identity, id bigint, email varchar(255), housing_type varchar(255), name varchar(255), password varchar(255), phone varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL 2026-03-21T14:25:20.757Z INFO 71 --- [ main] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000489: No JTA platform available (set 'hibernate.transaction.jta.platform' to enable JTA platform integration) Hibernate: drop table if exists adopter_entity cascade Hibernate: drop table if exists adoption_entity cascade Hibernate: drop table if exists adoption_follow_up_entity cascade Hibernate: drop table if exists adoption_request_entity cascade Hibernate: drop table if exists approval_strategy_entity cascade Hibernate: drop table if exists medical_event_entity cascade Hibernate: drop table if exists medical_history_entity cascade Hibernate: drop table if exists message_entity cascade Hibernate: drop table if exists mock_user cascade Hibernate: drop table if exists notification_entity cascade Hibernate: drop table if exists notification_strategy_entity cascade Hibernate: drop table if exists pet_entity cascade Hibernate: drop table if exists report_entity cascade Hibernate: drop table if exists report_strategy_entity cascade Hibernate: drop table if exists review_entity cascade Hibernate: drop table if exists shelter_entity cascade Hibernate: drop table if exists shelter_event_entity cascade Hibernate: drop table if exists trial_cohabitation_entity cascade Hibernate: drop table if exists user_entity cascade Hibernate: drop table if exists vaccination_record_entity cascade Hibernate: drop table if exists vaccine_entity cascade Hibernate: drop table if exists veterinarian_entity cascade Hibernate: create table adopter_entity (has_children boolean, has_other_pets boolean, id bigint not null, housing_type varchar(255), primary key (id)) Hibernate: create table adoption_entity (adoption_date date, adopter_id bigint, id bigint generated by default as identity, pet_id bigint, status enum ('CANCELLED','COMPLETED','CREATED','IN_PROGRESS','PENDING'), primary key (id)) Hibernate: create table adoption_follow_up_entity (adoption_id bigint, id bigint generated by default as identity, pet_id bigint, veterinarian_id bigint, frequency varchar(255), notes varchar(255), primary key (id)) Hibernate: create table adoption_request_entity (request_date date, adopter_id bigint, id bigint generated by default as identity, pet_id bigint, strategy_id bigint, trial_cohabitation_id bigint unique, status varchar(255), primary key (id)) Hibernate: create table approval_strategy_entity (id bigint generated by default as identity, approval_type varchar(31) not null, primary key (id)) Hibernate: create table medical_event_entity (event_date date, id bigint generated by default as identity, medical_history_id bigint, veterinarian_id bigint, diagnosis varchar(255), event_type varchar(255), treatment varchar(255), primary key (id)) Hibernate: create table medical_history_entity (id bigint generated by default as identity, pet_id bigint unique, description varchar(255), primary key (id)) Hibernate: create table message_entity (is_read boolean, adopter_id bigint, id bigint generated by default as identity, shelter_id bigint, timestamp timestamp(6), content TEXT, primary key (id)) Hibernate: create table mock_user (id bigint not null, primary key (id)) Hibernate: create table notification_entity (is_read boolean, date timestamp(6), id bigint generated by default as identity, strategy_id bigint unique, user_id bigint, message varchar(255), primary key (id)) Hibernate: create table notification_strategy_entity (id bigint generated by default as identity, primary key (id)) Hibernate: create table pet_entity (age integer, good_with_kids boolean, good_with_pets boolean, id bigint generated by default as identity, shelter_id bigint, activity_level varchar(255), breed varchar(255), description varchar(255), name varchar(255), origin varchar(255), photos varchar(255), sex varchar(255), size varchar(255), space_required varchar(255), special_needs varchar(255), species varchar(255), temperament varchar(255), status enum ('ADOPTED','AVAILABLE','IN_TRIAL','MEDICAL_TREATMENT','RESERVED'), primary key (id)) Hibernate: create table report_entity (generate_date date, event_id bigint, id bigint generated by default as identity, shelter_id bigint, strategy_id bigint, primary key (id)) Hibernate: create table report_strategy_entity (id bigint generated by default as identity, primary key (id)) Hibernate: create table review_entity (date date, rating integer, adopter_id bigint, id bigint generated by default as identity, pet_id bigint, comment TEXT, primary key (id)) Hibernate: create table shelter_entity (id bigint generated by default as identity, city varchar(255), description varchar(255), email varchar(255), gallery varchar(255), name varchar(255), primary key (id)) Hibernate: create table shelter_event_entity (date date, id bigint generated by default as identity, shelter_id bigint, description varchar(255), location varchar(255), title varchar(255), status enum ('CANCELLED','COMPLETED','CREATED','IN_PROGRESS','PENDING'), primary key (id)) Hibernate: create table trial_cohabitation_entity (end_date date, start_date date, adoption_id bigint unique, id bigint generated by default as identity, pet_id bigint, result varchar(255), status enum ('CANCELLED','COMPLETED','CREATED','IN_PROGRESS','PENDING'), primary key (id)) Hibernate: create table user_entity (id bigint generated by default as identity, email varchar(255), name varchar(255), password varchar(255), phone varchar(255), primary key (id)) Hibernate: create table vaccination_record_entity (application_date date, next_due_date date, id bigint generated by default as identity, medical_history_id bigint, vaccine_id bigint, veterinarian_id bigint, primary key (id)) Hibernate: create table vaccine_entity (validity_months integer, id bigint generated by default as identity, description varchar(255), name varchar(255), primary key (id)) Hibernate: create table veterinarian_entity (id bigint not null, shelter_id bigint, availability varchar(255), specialty varchar(255), primary key (id)) Hibernate: alter table if exists adopter_entity add constraint FKitj2sdxcctxrw6ql04jny7l9y foreign key (id) references user_entity Hibernate: alter table if exists adoption_entity add constraint FK224d1qenh6y54c9lq828mmgx foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists adoption_entity add constraint FKqmviggw0khaskxup4cg7bvqku foreign key (pet_id) references pet_entity Hibernate: alter table if exists adoption_follow_up_entity add constraint FKkxibwn0r1ep7bgevg86seymmc foreign key (adoption_id) references adoption_entity Hibernate: alter table if exists adoption_follow_up_entity add constraint FKkqclwmvja9dll86u1bn9ycwn0 foreign key (pet_id) references pet_entity Hibernate: alter table if exists adoption_follow_up_entity add constraint FKsump3rviut1cvfr8iv6vogfp4 foreign key (veterinarian_id) references veterinarian_entity Hibernate: alter table if exists adoption_request_entity add constraint FK90j2qmgnqst03l9x6fpwf0aab foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists adoption_request_entity add constraint FKpdxe7jyb75mwugces1axydwtg foreign key (strategy_id) references approval_strategy_entity Hibernate: alter table if exists adoption_request_entity add constraint FKhanslcvxoi0t9cq07vsyerx7d foreign key (pet_id) references pet_entity Hibernate: alter table if exists adoption_request_entity add constraint FKad0m44984i6frcsd86susx3df foreign key (trial_cohabitation_id) references trial_cohabitation_entity Hibernate: alter table if exists medical_event_entity add constraint FKloam0wk3hbpns9awx08v8ttty foreign key (medical_history_id) references medical_history_entity Hibernate: alter table if exists medical_event_entity add constraint FKmx3l6boot15lqesauq3y2k5t9 foreign key (veterinarian_id) references veterinarian_entity Hibernate: alter table if exists medical_history_entity add constraint FKfqo1kwpy0eom46u48u9i9ob79 foreign key (pet_id) references pet_entity Hibernate: alter table if exists message_entity add constraint FK1bx2fv4ukgy2ruq9gclvehfjw foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists message_entity add constraint FKc1jilfk3teueg8wfilq0u9h0y foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists mock_user add constraint FK1t7datqqs96rej2yoo133loxs foreign key (id) references user_entity Hibernate: alter table if exists notification_entity add constraint FKpsofie2xkbprbd9jo128ocuy9 foreign key (strategy_id) references notification_strategy_entity Hibernate: alter table if exists notification_entity add constraint FKgemicmmtfy225vqj5li4u96lk foreign key (user_id) references user_entity Hibernate: alter table if exists pet_entity add constraint FK57h1lsq9l67lcsx43ftwwto1c foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists report_entity add constraint FK6c18c90k2vnskwos9leqbmxrv foreign key (strategy_id) references report_strategy_entity Hibernate: alter table if exists report_entity add constraint FKoa7u6l3jn2ueixs49yy8nrap3 foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists report_entity add constraint FK33bibp5ycbkys4c6g1dxm410t foreign key (event_id) references shelter_event_entity Hibernate: alter table if exists review_entity add constraint FK8w6fpunff42r2ytatsjbb4o96 foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists review_entity add constraint FKhtmwv0o4w6vp5k7w088xwk0yt foreign key (pet_id) references pet_entity Hibernate: alter table if exists shelter_event_entity add constraint FKjj4fox0olnc8o73kdgso782es foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists trial_cohabitation_entity add constraint FK608jf01b64pwvg12957nbsfsj foreign key (adoption_id) references adoption_entity Hibernate: alter table if exists trial_cohabitation_entity add constraint FKrxpesflvao88mgm4bmys2c3k1 foreign key (pet_id) references pet_entity Hibernate: alter table if exists vaccination_record_entity add constraint FKfo5r2fgxn4ltp9oubgnilaq41 foreign key (medical_history_id) references medical_history_entity Hibernate: alter table if exists vaccination_record_entity add constraint FKdahievfho7baue5s1sayxwom2 foreign key (vaccine_id) references vaccine_entity Hibernate: alter table if exists vaccination_record_entity add constraint FKe2aflnq4dp8kne3km9enr1mt9 foreign key (veterinarian_id) references veterinarian_entity Hibernate: alter table if exists veterinarian_entity add constraint FKe8xa1wxe967urrvxsxpdm8y8r foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists veterinarian_entity add constraint FKl5lutaqpbd2jrfrerhn6a9g69 foreign key (id) references user_entity 2026-03-21T14:25:20.820Z INFO 71 --- [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default' 2026-03-21T14:25:21.055Z INFO 71 --- [ main] c.e.u.m.p.services.AdoptionServiceTest : Started AdoptionServiceTest in 0.709 seconds (process running for 10.994) Hibernate: delete from adoption_follow_up_entity afue1_0 Hibernate: delete from adoption_entity ae1_0 Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) 2026-03-21T14:25:21.073Z INFO 71 --- [ main] c.e.u.mdp.pets.services.AdoptionService : Starting update process for adoption with id = 1 2026-03-21T14:25:21.074Z INFO 71 --- [ main] c.e.u.mdp.pets.services.AdoptionService : Adoption with id = 1 updated successfully Hibernate: delete from adoption_follow_up_entity afue1_0 Hibernate: delete from adoption_entity ae1_0 Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) 2026-03-21T14:25:21.088Z INFO 71 --- [ main] c.e.u.mdp.pets.services.AdoptionService : Starting process to consult all adoptions Hibernate: select ae1_0.id,ae1_0.adopter_id,ae1_0.adoption_date,ae1_0.pet_id,ae1_0.status from adoption_entity ae1_0 Hibernate: delete from adoption_follow_up_entity afue1_0 Hibernate: delete from adoption_entity ae1_0 Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) 2026-03-21T14:25:21.106Z INFO 71 --- [ main] c.e.u.mdp.pets.services.AdoptionService : Starting creation process for adoption 2026-03-21T14:25:21.106Z INFO 71 --- [ main] c.e.u.mdp.pets.services.AdoptionService : Adoption created successfully Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) Hibernate: delete from adoption_follow_up_entity afue1_0 Hibernate: delete from adoption_entity ae1_0 Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) 2026-03-21T14:25:21.121Z INFO 71 --- [ main] c.e.u.mdp.pets.services.AdoptionService : Starting update process for adoption with id = 999 Hibernate: select ae1_0.id,a1_0.id,a1_1.email,a1_1.name,a1_1.password,a1_1.phone,a1_0.has_children,a1_0.has_other_pets,a1_0.housing_type,ae1_0.adoption_date,p1_0.id,p1_0.activity_level,p1_0.age,p1_0.breed,p1_0.description,p1_0.good_with_kids,p1_0.good_with_pets,mh1_0.id,mh1_0.description,p1_0.name,p1_0.origin,p1_0.photos,p1_0.sex,p1_0.shelter_id,p1_0.size,p1_0.space_required,p1_0.special_needs,p1_0.species,p1_0.status,p1_0.temperament,ae1_0.status,tc1_0.id,tc1_0.end_date,tc1_0.pet_id,tc1_0.result,tc1_0.start_date,tc1_0.status from adoption_entity ae1_0 left join adopter_entity a1_0 on a1_0.id=ae1_0.adopter_id left join user_entity a1_1 on a1_0.id=a1_1.id left join pet_entity p1_0 on p1_0.id=ae1_0.pet_id left join medical_history_entity mh1_0 on p1_0.id=mh1_0.pet_id left join trial_cohabitation_entity tc1_0 on ae1_0.id=tc1_0.adoption_id where ae1_0.id=? Hibernate: delete from adoption_follow_up_entity afue1_0 Hibernate: delete from adoption_entity ae1_0 Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) Hibernate: insert into adoption_follow_up_entity (adoption_id,frequency,notes,pet_id,veterinarian_id,id) values (?,?,?,?,?,default) 2026-03-21T14:25:21.143Z INFO 71 --- [ main] c.e.u.mdp.pets.services.AdoptionService : Starting deletion process for adoption ID: 14 2026-03-21T14:25:21.143Z WARN 71 --- [ main] c.e.u.mdp.pets.services.AdoptionService : Attempted to delete adoption 14 but it has follow-ups Hibernate: delete from adoption_follow_up_entity afue1_0 Hibernate: delete from adoption_entity ae1_0 Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) 2026-03-21T14:25:21.156Z INFO 71 --- [ main] c.e.u.mdp.pets.services.AdoptionService : Starting creation process for adoption Hibernate: delete from adoption_follow_up_entity afue1_0 Hibernate: delete from adoption_entity ae1_0 Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) 2026-03-21T14:25:21.168Z INFO 71 --- [ main] c.e.u.mdp.pets.services.AdoptionService : Starting process to consult adoption with id = 999 Hibernate: select ae1_0.id,a1_0.id,a1_1.email,a1_1.name,a1_1.password,a1_1.phone,a1_0.has_children,a1_0.has_other_pets,a1_0.housing_type,ae1_0.adoption_date,p1_0.id,p1_0.activity_level,p1_0.age,p1_0.breed,p1_0.description,p1_0.good_with_kids,p1_0.good_with_pets,mh1_0.id,mh1_0.description,p1_0.name,p1_0.origin,p1_0.photos,p1_0.sex,p1_0.shelter_id,p1_0.size,p1_0.space_required,p1_0.special_needs,p1_0.species,p1_0.status,p1_0.temperament,ae1_0.status,tc1_0.id,tc1_0.end_date,tc1_0.pet_id,tc1_0.result,tc1_0.start_date,tc1_0.status from adoption_entity ae1_0 left join adopter_entity a1_0 on a1_0.id=ae1_0.adopter_id left join user_entity a1_1 on a1_0.id=a1_1.id left join pet_entity p1_0 on p1_0.id=ae1_0.pet_id left join medical_history_entity mh1_0 on p1_0.id=mh1_0.pet_id left join trial_cohabitation_entity tc1_0 on ae1_0.id=tc1_0.adoption_id where ae1_0.id=? 2026-03-21T14:25:21.169Z ERROR 71 --- [ main] c.e.u.mdp.pets.services.AdoptionService : Adoption with id 999 not found Hibernate: delete from adoption_follow_up_entity afue1_0 Hibernate: delete from adoption_entity ae1_0 Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) 2026-03-21T14:25:21.182Z INFO 71 --- [ main] c.e.u.mdp.pets.services.AdoptionService : Starting deletion process for adoption ID: 23 2026-03-21T14:25:21.183Z INFO 71 --- [ main] c.e.u.mdp.pets.services.AdoptionService : Adoption with ID: 23 deleted successfully Hibernate: delete from adoption_follow_up_entity afue1_0 Hibernate: delete from adoption_entity ae1_0 Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) 2026-03-21T14:25:21.195Z INFO 71 --- [ main] c.e.u.mdp.pets.services.AdoptionService : Starting process to consult adoption with id = 26 Hibernate: delete from adoption_follow_up_entity afue1_0 Hibernate: delete from adoption_entity ae1_0 Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) 2026-03-21T14:25:21.208Z INFO 71 --- [ main] c.e.u.mdp.pets.services.AdoptionService : Starting deletion process for adoption ID: 999 Hibernate: select ae1_0.id,a1_0.id,a1_1.email,a1_1.name,a1_1.password,a1_1.phone,a1_0.has_children,a1_0.has_other_pets,a1_0.housing_type,ae1_0.adoption_date,p1_0.id,p1_0.activity_level,p1_0.age,p1_0.breed,p1_0.description,p1_0.good_with_kids,p1_0.good_with_pets,mh1_0.id,mh1_0.description,p1_0.name,p1_0.origin,p1_0.photos,p1_0.sex,p1_0.shelter_id,p1_0.size,p1_0.space_required,p1_0.special_needs,p1_0.species,p1_0.status,p1_0.temperament,ae1_0.status,tc1_0.id,tc1_0.end_date,tc1_0.pet_id,tc1_0.result,tc1_0.start_date,tc1_0.status from adoption_entity ae1_0 left join adopter_entity a1_0 on a1_0.id=ae1_0.adopter_id left join user_entity a1_1 on a1_0.id=a1_1.id left join pet_entity p1_0 on p1_0.id=ae1_0.pet_id left join medical_history_entity mh1_0 on p1_0.id=mh1_0.pet_id left join trial_cohabitation_entity tc1_0 on ae1_0.id=tc1_0.adoption_id where ae1_0.id=? Hibernate: delete from adoption_follow_up_entity afue1_0 Hibernate: delete from adoption_entity ae1_0 Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) 2026-03-21T14:25:21.222Z INFO 71 --- [ main] c.e.u.mdp.pets.services.AdoptionService : Starting update process for adoption with id = 32 [INFO] Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.892 s -- in co.edu.udistrital.mdp.pets.services.AdoptionServiceTest [INFO] Running co.edu.udistrital.mdp.pets.services.ShelterServiceTest 2026-03-21T14:25:21.229Z INFO 71 --- [ main] t.c.s.AnnotationConfigContextLoaderUtils : Could not detect default configuration classes for test class [co.edu.udistrital.mdp.pets.services.ShelterServiceTest]: ShelterServiceTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration. 2026-03-21T14:25:21.236Z INFO 71 --- [ main] .b.t.c.SpringBootTestContextBootstrapper : Found @SpringBootConfiguration co.edu.udistrital.mdp.pets.MainApplication for test class co.edu.udistrital.mdp.pets.services.ShelterServiceTest . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v3.5.10) 2026-03-21T14:25:21.261Z INFO 71 --- [ main] c.e.u.m.p.services.ShelterServiceTest : Starting ShelterServiceTest using Java 21.0.4 with PID 71 (started by root in /home/cecaduser/workspace/MP_202610_G81_E1_Back) 2026-03-21T14:25:21.261Z INFO 71 --- [ main] c.e.u.m.p.services.ShelterServiceTest : No active profile set, falling back to 1 default profile: "default" 2026-03-21T14:25:21.346Z INFO 71 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode. 2026-03-21T14:25:21.374Z INFO 71 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 26 ms. Found 19 JPA repository interfaces. 2026-03-21T14:25:21.397Z INFO 71 --- [ main] beddedDataSourceBeanFactoryPostProcessor : Replacing 'dataSource' DataSource bean with embedded version 2026-03-21T14:25:21.412Z INFO 71 --- [ main] o.s.j.d.e.EmbeddedDatabaseFactory : Starting embedded database: url='jdbc:h2:mem:7bf5f3e6-8154-4bcb-bf9e-268d45f3206d;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=false', username='sa' 2026-03-21T14:25:21.434Z INFO 71 --- [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default] 2026-03-21T14:25:21.435Z INFO 71 --- [ main] o.h.c.internal.RegionFactoryInitiator : HHH000026: Second-level cache disabled 2026-03-21T14:25:21.443Z INFO 71 --- [ main] o.s.o.j.p.SpringPersistenceUnitInfo : No LoadTimeWeaver setup: ignoring JPA class transformer 2026-03-21T14:25:21.445Z WARN 71 --- [ main] org.hibernate.orm.deprecation : HHH90000025: H2Dialect does not need to be specified explicitly using 'hibernate.dialect' (remove the property setting and it will be selected by default) 2026-03-21T14:25:21.445Z INFO 71 --- [ main] org.hibernate.orm.connections.pooling : HHH10001005: Database info: Database JDBC URL [Connecting through datasource 'org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactory$EmbeddedDataSourceProxy@1f53503'] Database driver: undefined/unknown Database version: 2.3.232 Autocommit mode: undefined/unknown Isolation level: undefined/unknown Minimum pool size: undefined/unknown Maximum pool size: undefined/unknown Hibernate: create global temporary table HT_user_entity(id bigint not null, primary key (id)) TRANSACTIONAL Hibernate: create global temporary table HTE_user_entity(has_children boolean, has_other_pets boolean, HTE_IDENTITY bigint generated by default as identity, id bigint, availability varchar(255), email varchar(255), housing_type varchar(255), name varchar(255), password varchar(255), phone varchar(255), specialty varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL Hibernate: create global temporary table HTE_mock_user(HTE_IDENTITY bigint generated by default as identity, id bigint, email varchar(255), name varchar(255), password varchar(255), phone varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL Hibernate: create global temporary table HTE_veterinarian_entity(HTE_IDENTITY bigint generated by default as identity, id bigint, shelter_id bigint, availability varchar(255), email varchar(255), name varchar(255), password varchar(255), phone varchar(255), specialty varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL Hibernate: create global temporary table HTE_adopter_entity(has_children boolean, has_other_pets boolean, HTE_IDENTITY bigint generated by default as identity, id bigint, email varchar(255), housing_type varchar(255), name varchar(255), password varchar(255), phone varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL 2026-03-21T14:25:21.605Z INFO 71 --- [ main] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000489: No JTA platform available (set 'hibernate.transaction.jta.platform' to enable JTA platform integration) Hibernate: drop table if exists adopter_entity cascade Hibernate: drop table if exists adoption_entity cascade Hibernate: drop table if exists adoption_follow_up_entity cascade Hibernate: drop table if exists adoption_request_entity cascade Hibernate: drop table if exists approval_strategy_entity cascade Hibernate: drop table if exists medical_event_entity cascade Hibernate: drop table if exists medical_history_entity cascade Hibernate: drop table if exists message_entity cascade Hibernate: drop table if exists mock_user cascade Hibernate: drop table if exists notification_entity cascade Hibernate: drop table if exists notification_strategy_entity cascade Hibernate: drop table if exists pet_entity cascade Hibernate: drop table if exists report_entity cascade Hibernate: drop table if exists report_strategy_entity cascade Hibernate: drop table if exists review_entity cascade Hibernate: drop table if exists shelter_entity cascade Hibernate: drop table if exists shelter_event_entity cascade Hibernate: drop table if exists trial_cohabitation_entity cascade Hibernate: drop table if exists user_entity cascade Hibernate: drop table if exists vaccination_record_entity cascade Hibernate: drop table if exists vaccine_entity cascade Hibernate: drop table if exists veterinarian_entity cascade Hibernate: create table adopter_entity (has_children boolean, has_other_pets boolean, id bigint not null, housing_type varchar(255), primary key (id)) Hibernate: create table adoption_entity (adoption_date date, adopter_id bigint, id bigint generated by default as identity, pet_id bigint, status enum ('CANCELLED','COMPLETED','CREATED','IN_PROGRESS','PENDING'), primary key (id)) Hibernate: create table adoption_follow_up_entity (adoption_id bigint, id bigint generated by default as identity, pet_id bigint, veterinarian_id bigint, frequency varchar(255), notes varchar(255), primary key (id)) Hibernate: create table adoption_request_entity (request_date date, adopter_id bigint, id bigint generated by default as identity, pet_id bigint, strategy_id bigint, trial_cohabitation_id bigint unique, status varchar(255), primary key (id)) Hibernate: create table approval_strategy_entity (id bigint generated by default as identity, approval_type varchar(31) not null, primary key (id)) Hibernate: create table medical_event_entity (event_date date, id bigint generated by default as identity, medical_history_id bigint, veterinarian_id bigint, diagnosis varchar(255), event_type varchar(255), treatment varchar(255), primary key (id)) Hibernate: create table medical_history_entity (id bigint generated by default as identity, pet_id bigint unique, description varchar(255), primary key (id)) Hibernate: create table message_entity (is_read boolean, adopter_id bigint, id bigint generated by default as identity, shelter_id bigint, timestamp timestamp(6), content TEXT, primary key (id)) Hibernate: create table mock_user (id bigint not null, primary key (id)) Hibernate: create table notification_entity (is_read boolean, date timestamp(6), id bigint generated by default as identity, strategy_id bigint unique, user_id bigint, message varchar(255), primary key (id)) Hibernate: create table notification_strategy_entity (id bigint generated by default as identity, primary key (id)) Hibernate: create table pet_entity (age integer, good_with_kids boolean, good_with_pets boolean, id bigint generated by default as identity, shelter_id bigint, activity_level varchar(255), breed varchar(255), description varchar(255), name varchar(255), origin varchar(255), photos varchar(255), sex varchar(255), size varchar(255), space_required varchar(255), special_needs varchar(255), species varchar(255), temperament varchar(255), status enum ('ADOPTED','AVAILABLE','IN_TRIAL','MEDICAL_TREATMENT','RESERVED'), primary key (id)) Hibernate: create table report_entity (generate_date date, event_id bigint, id bigint generated by default as identity, shelter_id bigint, strategy_id bigint, primary key (id)) Hibernate: create table report_strategy_entity (id bigint generated by default as identity, primary key (id)) Hibernate: create table review_entity (date date, rating integer, adopter_id bigint, id bigint generated by default as identity, pet_id bigint, comment TEXT, primary key (id)) Hibernate: create table shelter_entity (id bigint generated by default as identity, city varchar(255), description varchar(255), email varchar(255), gallery varchar(255), name varchar(255), primary key (id)) Hibernate: create table shelter_event_entity (date date, id bigint generated by default as identity, shelter_id bigint, description varchar(255), location varchar(255), title varchar(255), status enum ('CANCELLED','COMPLETED','CREATED','IN_PROGRESS','PENDING'), primary key (id)) Hibernate: create table trial_cohabitation_entity (end_date date, start_date date, adoption_id bigint unique, id bigint generated by default as identity, pet_id bigint, result varchar(255), status enum ('CANCELLED','COMPLETED','CREATED','IN_PROGRESS','PENDING'), primary key (id)) Hibernate: create table user_entity (id bigint generated by default as identity, email varchar(255), name varchar(255), password varchar(255), phone varchar(255), primary key (id)) Hibernate: create table vaccination_record_entity (application_date date, next_due_date date, id bigint generated by default as identity, medical_history_id bigint, vaccine_id bigint, veterinarian_id bigint, primary key (id)) Hibernate: create table vaccine_entity (validity_months integer, id bigint generated by default as identity, description varchar(255), name varchar(255), primary key (id)) Hibernate: create table veterinarian_entity (id bigint not null, shelter_id bigint, availability varchar(255), specialty varchar(255), primary key (id)) Hibernate: alter table if exists adopter_entity add constraint FKitj2sdxcctxrw6ql04jny7l9y foreign key (id) references user_entity Hibernate: alter table if exists adoption_entity add constraint FK224d1qenh6y54c9lq828mmgx foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists adoption_entity add constraint FKqmviggw0khaskxup4cg7bvqku foreign key (pet_id) references pet_entity Hibernate: alter table if exists adoption_follow_up_entity add constraint FKkxibwn0r1ep7bgevg86seymmc foreign key (adoption_id) references adoption_entity Hibernate: alter table if exists adoption_follow_up_entity add constraint FKkqclwmvja9dll86u1bn9ycwn0 foreign key (pet_id) references pet_entity Hibernate: alter table if exists adoption_follow_up_entity add constraint FKsump3rviut1cvfr8iv6vogfp4 foreign key (veterinarian_id) references veterinarian_entity Hibernate: alter table if exists adoption_request_entity add constraint FK90j2qmgnqst03l9x6fpwf0aab foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists adoption_request_entity add constraint FKpdxe7jyb75mwugces1axydwtg foreign key (strategy_id) references approval_strategy_entity Hibernate: alter table if exists adoption_request_entity add constraint FKhanslcvxoi0t9cq07vsyerx7d foreign key (pet_id) references pet_entity Hibernate: alter table if exists adoption_request_entity add constraint FKad0m44984i6frcsd86susx3df foreign key (trial_cohabitation_id) references trial_cohabitation_entity Hibernate: alter table if exists medical_event_entity add constraint FKloam0wk3hbpns9awx08v8ttty foreign key (medical_history_id) references medical_history_entity Hibernate: alter table if exists medical_event_entity add constraint FKmx3l6boot15lqesauq3y2k5t9 foreign key (veterinarian_id) references veterinarian_entity Hibernate: alter table if exists medical_history_entity add constraint FKfqo1kwpy0eom46u48u9i9ob79 foreign key (pet_id) references pet_entity Hibernate: alter table if exists message_entity add constraint FK1bx2fv4ukgy2ruq9gclvehfjw foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists message_entity add constraint FKc1jilfk3teueg8wfilq0u9h0y foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists mock_user add constraint FK1t7datqqs96rej2yoo133loxs foreign key (id) references user_entity Hibernate: alter table if exists notification_entity add constraint FKpsofie2xkbprbd9jo128ocuy9 foreign key (strategy_id) references notification_strategy_entity Hibernate: alter table if exists notification_entity add constraint FKgemicmmtfy225vqj5li4u96lk foreign key (user_id) references user_entity Hibernate: alter table if exists pet_entity add constraint FK57h1lsq9l67lcsx43ftwwto1c foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists report_entity add constraint FK6c18c90k2vnskwos9leqbmxrv foreign key (strategy_id) references report_strategy_entity Hibernate: alter table if exists report_entity add constraint FKoa7u6l3jn2ueixs49yy8nrap3 foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists report_entity add constraint FK33bibp5ycbkys4c6g1dxm410t foreign key (event_id) references shelter_event_entity Hibernate: alter table if exists review_entity add constraint FK8w6fpunff42r2ytatsjbb4o96 foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists review_entity add constraint FKhtmwv0o4w6vp5k7w088xwk0yt foreign key (pet_id) references pet_entity Hibernate: alter table if exists shelter_event_entity add constraint FKjj4fox0olnc8o73kdgso782es foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists trial_cohabitation_entity add constraint FK608jf01b64pwvg12957nbsfsj foreign key (adoption_id) references adoption_entity Hibernate: alter table if exists trial_cohabitation_entity add constraint FKrxpesflvao88mgm4bmys2c3k1 foreign key (pet_id) references pet_entity Hibernate: alter table if exists vaccination_record_entity add constraint FKfo5r2fgxn4ltp9oubgnilaq41 foreign key (medical_history_id) references medical_history_entity Hibernate: alter table if exists vaccination_record_entity add constraint FKdahievfho7baue5s1sayxwom2 foreign key (vaccine_id) references vaccine_entity Hibernate: alter table if exists vaccination_record_entity add constraint FKe2aflnq4dp8kne3km9enr1mt9 foreign key (veterinarian_id) references veterinarian_entity Hibernate: alter table if exists veterinarian_entity add constraint FKe8xa1wxe967urrvxsxpdm8y8r foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists veterinarian_entity add constraint FKl5lutaqpbd2jrfrerhn6a9g69 foreign key (id) references user_entity 2026-03-21T14:25:21.657Z INFO 71 --- [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default' 2026-03-21T14:25:21.838Z INFO 71 --- [ main] c.e.u.m.p.services.ShelterServiceTest : Started ShelterServiceTest in 0.599 seconds (process running for 11.777) Hibernate: delete from pet_entity pe1_0 Hibernate: delete from shelter_event_entity see1_0 Hibernate: delete from shelter_entity se1_0 Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) 2026-03-21T14:25:21.856Z INFO 71 --- [ main] c.e.u.mdp.pets.services.ShelterService : Starting process to consult shelter with id = 1 Hibernate: delete from pet_entity pe1_0 Hibernate: delete from shelter_event_entity see1_0 Hibernate: delete from shelter_entity se1_0 Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) 2026-03-21T14:25:21.870Z INFO 71 --- [ main] c.e.u.mdp.pets.services.ShelterService : Starting update process for shelter with id = 4 Hibernate: select se1_0.id from shelter_entity se1_0 where se1_0.name=? fetch first ? rows only Hibernate: select se1_0.id from shelter_entity se1_0 where se1_0.email=? fetch first ? rows only 2026-03-21T14:25:21.878Z INFO 71 --- [ main] c.e.u.mdp.pets.services.ShelterService : Shelter with id = 4 updated successfully Hibernate: delete from pet_entity pe1_0 Hibernate: delete from shelter_event_entity see1_0 Hibernate: delete from shelter_entity se1_0 Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) 2026-03-21T14:25:21.892Z INFO 71 --- [ main] c.e.u.mdp.pets.services.ShelterService : Starting creation process for shelter: 7PyuYpk86r Hibernate: select se1_0.id from shelter_entity se1_0 where se1_0.name=? fetch first ? rows only Hibernate: select se1_0.id from shelter_entity se1_0 where se1_0.email=? fetch first ? rows only Hibernate: delete from pet_entity pe1_0 Hibernate: delete from shelter_event_entity see1_0 Hibernate: delete from shelter_entity se1_0 Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) Hibernate: insert into shelter_event_entity (date,description,location,shelter_id,status,title,id) values (?,?,?,?,?,?,default) 2026-03-21T14:25:21.917Z INFO 71 --- [ main] c.e.u.mdp.pets.services.ShelterService : Starting deletion process for shelter ID: 13 2026-03-21T14:25:21.917Z WARN 71 --- [ main] c.e.u.mdp.pets.services.ShelterService : Attempted to delete shelter 13 but it has active events Hibernate: delete from pet_entity pe1_0 Hibernate: delete from shelter_event_entity see1_0 Hibernate: delete from shelter_entity se1_0 Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) 2026-03-21T14:25:21.930Z INFO 71 --- [ main] c.e.u.mdp.pets.services.ShelterService : Starting process to consult shelter with id = 999 Hibernate: select se1_0.id,se1_0.city,se1_0.description,se1_0.email,se1_0.gallery,se1_0.name from shelter_entity se1_0 where se1_0.id=? 2026-03-21T14:25:21.931Z ERROR 71 --- [ main] c.e.u.mdp.pets.services.ShelterService : Shelter with id 999 not found Hibernate: delete from pet_entity pe1_0 Hibernate: delete from shelter_event_entity see1_0 Hibernate: delete from shelter_entity se1_0 Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) 2026-03-21T14:25:21.943Z INFO 71 --- [ main] c.e.u.mdp.pets.services.ShelterService : Starting deletion process for shelter ID: 17 2026-03-21T14:25:21.944Z INFO 71 --- [ main] c.e.u.mdp.pets.services.ShelterService : Shelter with ID: 17 deleted successfully Hibernate: delete from pet_entity pe1_0 Hibernate: delete from shelter_event_entity see1_0 Hibernate: delete from shelter_entity se1_0 Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) Hibernate: insert into pet_entity (activity_level,age,breed,description,good_with_kids,good_with_pets,name,origin,photos,sex,shelter_id,size,space_required,special_needs,species,status,temperament,id) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,default) 2026-03-21T14:25:21.961Z INFO 71 --- [ main] c.e.u.mdp.pets.services.ShelterService : Starting deletion process for shelter ID: 20 2026-03-21T14:25:21.961Z WARN 71 --- [ main] c.e.u.mdp.pets.services.ShelterService : Attempted to delete shelter 20 but it has pets Hibernate: delete from pet_entity pe1_0 Hibernate: delete from shelter_event_entity see1_0 Hibernate: delete from shelter_entity se1_0 Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) 2026-03-21T14:25:21.975Z INFO 71 --- [ main] c.e.u.mdp.pets.services.ShelterService : Starting creation process for shelter: Shelter 0 Hibernate: select se1_0.id from shelter_entity se1_0 where se1_0.name=? fetch first ? rows only Hibernate: delete from pet_entity pe1_0 Hibernate: delete from shelter_event_entity see1_0 Hibernate: delete from shelter_entity se1_0 Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) 2026-03-21T14:25:22.011Z INFO 71 --- [ main] c.e.u.mdp.pets.services.ShelterService : Starting process to consult all shelters Hibernate: select se1_0.id,se1_0.city,se1_0.description,se1_0.email,se1_0.gallery,se1_0.name from shelter_entity se1_0 Hibernate: delete from pet_entity pe1_0 Hibernate: delete from shelter_event_entity see1_0 Hibernate: delete from shelter_entity se1_0 Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) 2026-03-21T14:25:22.026Z INFO 71 --- [ main] c.e.u.mdp.pets.services.ShelterService : Starting creation process for shelter: New Unique Shelter Hibernate: select se1_0.id from shelter_entity se1_0 where se1_0.name=? fetch first ? rows only Hibernate: select se1_0.id from shelter_entity se1_0 where se1_0.email=? fetch first ? rows only 2026-03-21T14:25:22.030Z INFO 71 --- [ main] c.e.u.mdp.pets.services.ShelterService : Shelter created successfully: New Unique Shelter Hibernate: insert into shelter_entity (city,description,email,gallery,name,id) values (?,?,?,?,?,default) [INFO] Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.807 s -- in co.edu.udistrital.mdp.pets.services.ShelterServiceTest [INFO] Running co.edu.udistrital.mdp.pets.services.PetServiceTest 2026-03-21T14:25:22.037Z INFO 71 --- [ main] t.c.s.AnnotationConfigContextLoaderUtils : Could not detect default configuration classes for test class [co.edu.udistrital.mdp.pets.services.PetServiceTest]: PetServiceTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration. 2026-03-21T14:25:22.049Z INFO 71 --- [ main] .b.t.c.SpringBootTestContextBootstrapper : Found @SpringBootConfiguration co.edu.udistrital.mdp.pets.MainApplication for test class co.edu.udistrital.mdp.pets.services.PetServiceTest . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v3.5.10) 2026-03-21T14:25:22.075Z INFO 71 --- [ main] c.e.u.mdp.pets.services.PetServiceTest : Starting PetServiceTest using Java 21.0.4 with PID 71 (started by root in /home/cecaduser/workspace/MP_202610_G81_E1_Back) 2026-03-21T14:25:22.076Z INFO 71 --- [ main] c.e.u.mdp.pets.services.PetServiceTest : No active profile set, falling back to 1 default profile: "default" 2026-03-21T14:25:22.143Z INFO 71 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode. 2026-03-21T14:25:22.165Z INFO 71 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 21 ms. Found 19 JPA repository interfaces. 2026-03-21T14:25:22.183Z INFO 71 --- [ main] beddedDataSourceBeanFactoryPostProcessor : Replacing 'dataSource' DataSource bean with embedded version 2026-03-21T14:25:22.196Z INFO 71 --- [ main] o.s.j.d.e.EmbeddedDatabaseFactory : Starting embedded database: url='jdbc:h2:mem:d5f51512-6a01-43ff-81fc-09b92daa9a86;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=false', username='sa' 2026-03-21T14:25:22.215Z INFO 71 --- [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default] 2026-03-21T14:25:22.217Z INFO 71 --- [ main] o.h.c.internal.RegionFactoryInitiator : HHH000026: Second-level cache disabled 2026-03-21T14:25:22.224Z INFO 71 --- [ main] o.s.o.j.p.SpringPersistenceUnitInfo : No LoadTimeWeaver setup: ignoring JPA class transformer 2026-03-21T14:25:22.226Z WARN 71 --- [ main] org.hibernate.orm.deprecation : HHH90000025: H2Dialect does not need to be specified explicitly using 'hibernate.dialect' (remove the property setting and it will be selected by default) 2026-03-21T14:25:22.226Z INFO 71 --- [ main] org.hibernate.orm.connections.pooling : HHH10001005: Database info: Database JDBC URL [Connecting through datasource 'org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactory$EmbeddedDataSourceProxy@56e898b6'] Database driver: undefined/unknown Database version: 2.3.232 Autocommit mode: undefined/unknown Isolation level: undefined/unknown Minimum pool size: undefined/unknown Maximum pool size: undefined/unknown Hibernate: create global temporary table HT_user_entity(id bigint not null, primary key (id)) TRANSACTIONAL Hibernate: create global temporary table HTE_user_entity(has_children boolean, has_other_pets boolean, HTE_IDENTITY bigint generated by default as identity, id bigint, availability varchar(255), email varchar(255), housing_type varchar(255), name varchar(255), password varchar(255), phone varchar(255), specialty varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL Hibernate: create global temporary table HTE_mock_user(HTE_IDENTITY bigint generated by default as identity, id bigint, email varchar(255), name varchar(255), password varchar(255), phone varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL Hibernate: create global temporary table HTE_veterinarian_entity(HTE_IDENTITY bigint generated by default as identity, id bigint, shelter_id bigint, availability varchar(255), email varchar(255), name varchar(255), password varchar(255), phone varchar(255), specialty varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL Hibernate: create global temporary table HTE_adopter_entity(has_children boolean, has_other_pets boolean, HTE_IDENTITY bigint generated by default as identity, id bigint, email varchar(255), housing_type varchar(255), name varchar(255), password varchar(255), phone varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL 2026-03-21T14:25:22.366Z INFO 71 --- [ main] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000489: No JTA platform available (set 'hibernate.transaction.jta.platform' to enable JTA platform integration) Hibernate: drop table if exists adopter_entity cascade Hibernate: drop table if exists adoption_entity cascade Hibernate: drop table if exists adoption_follow_up_entity cascade Hibernate: drop table if exists adoption_request_entity cascade Hibernate: drop table if exists approval_strategy_entity cascade Hibernate: drop table if exists medical_event_entity cascade Hibernate: drop table if exists medical_history_entity cascade Hibernate: drop table if exists message_entity cascade Hibernate: drop table if exists mock_user cascade Hibernate: drop table if exists notification_entity cascade Hibernate: drop table if exists notification_strategy_entity cascade Hibernate: drop table if exists pet_entity cascade Hibernate: drop table if exists report_entity cascade Hibernate: drop table if exists report_strategy_entity cascade Hibernate: drop table if exists review_entity cascade Hibernate: drop table if exists shelter_entity cascade Hibernate: drop table if exists shelter_event_entity cascade Hibernate: drop table if exists trial_cohabitation_entity cascade Hibernate: drop table if exists user_entity cascade Hibernate: drop table if exists vaccination_record_entity cascade Hibernate: drop table if exists vaccine_entity cascade Hibernate: drop table if exists veterinarian_entity cascade Hibernate: create table adopter_entity (has_children boolean, has_other_pets boolean, id bigint not null, housing_type varchar(255), primary key (id)) Hibernate: create table adoption_entity (adoption_date date, adopter_id bigint, id bigint generated by default as identity, pet_id bigint, status enum ('CANCELLED','COMPLETED','CREATED','IN_PROGRESS','PENDING'), primary key (id)) Hibernate: create table adoption_follow_up_entity (adoption_id bigint, id bigint generated by default as identity, pet_id bigint, veterinarian_id bigint, frequency varchar(255), notes varchar(255), primary key (id)) Hibernate: create table adoption_request_entity (request_date date, adopter_id bigint, id bigint generated by default as identity, pet_id bigint, strategy_id bigint, trial_cohabitation_id bigint unique, status varchar(255), primary key (id)) Hibernate: create table approval_strategy_entity (id bigint generated by default as identity, approval_type varchar(31) not null, primary key (id)) Hibernate: create table medical_event_entity (event_date date, id bigint generated by default as identity, medical_history_id bigint, veterinarian_id bigint, diagnosis varchar(255), event_type varchar(255), treatment varchar(255), primary key (id)) Hibernate: create table medical_history_entity (id bigint generated by default as identity, pet_id bigint unique, description varchar(255), primary key (id)) Hibernate: create table message_entity (is_read boolean, adopter_id bigint, id bigint generated by default as identity, shelter_id bigint, timestamp timestamp(6), content TEXT, primary key (id)) Hibernate: create table mock_user (id bigint not null, primary key (id)) Hibernate: create table notification_entity (is_read boolean, date timestamp(6), id bigint generated by default as identity, strategy_id bigint unique, user_id bigint, message varchar(255), primary key (id)) Hibernate: create table notification_strategy_entity (id bigint generated by default as identity, primary key (id)) Hibernate: create table pet_entity (age integer, good_with_kids boolean, good_with_pets boolean, id bigint generated by default as identity, shelter_id bigint, activity_level varchar(255), breed varchar(255), description varchar(255), name varchar(255), origin varchar(255), photos varchar(255), sex varchar(255), size varchar(255), space_required varchar(255), special_needs varchar(255), species varchar(255), temperament varchar(255), status enum ('ADOPTED','AVAILABLE','IN_TRIAL','MEDICAL_TREATMENT','RESERVED'), primary key (id)) Hibernate: create table report_entity (generate_date date, event_id bigint, id bigint generated by default as identity, shelter_id bigint, strategy_id bigint, primary key (id)) Hibernate: create table report_strategy_entity (id bigint generated by default as identity, primary key (id)) Hibernate: create table review_entity (date date, rating integer, adopter_id bigint, id bigint generated by default as identity, pet_id bigint, comment TEXT, primary key (id)) Hibernate: create table shelter_entity (id bigint generated by default as identity, city varchar(255), description varchar(255), email varchar(255), gallery varchar(255), name varchar(255), primary key (id)) Hibernate: create table shelter_event_entity (date date, id bigint generated by default as identity, shelter_id bigint, description varchar(255), location varchar(255), title varchar(255), status enum ('CANCELLED','COMPLETED','CREATED','IN_PROGRESS','PENDING'), primary key (id)) Hibernate: create table trial_cohabitation_entity (end_date date, start_date date, adoption_id bigint unique, id bigint generated by default as identity, pet_id bigint, result varchar(255), status enum ('CANCELLED','COMPLETED','CREATED','IN_PROGRESS','PENDING'), primary key (id)) Hibernate: create table user_entity (id bigint generated by default as identity, email varchar(255), name varchar(255), password varchar(255), phone varchar(255), primary key (id)) Hibernate: create table vaccination_record_entity (application_date date, next_due_date date, id bigint generated by default as identity, medical_history_id bigint, vaccine_id bigint, veterinarian_id bigint, primary key (id)) Hibernate: create table vaccine_entity (validity_months integer, id bigint generated by default as identity, description varchar(255), name varchar(255), primary key (id)) Hibernate: create table veterinarian_entity (id bigint not null, shelter_id bigint, availability varchar(255), specialty varchar(255), primary key (id)) Hibernate: alter table if exists adopter_entity add constraint FKitj2sdxcctxrw6ql04jny7l9y foreign key (id) references user_entity Hibernate: alter table if exists adoption_entity add constraint FK224d1qenh6y54c9lq828mmgx foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists adoption_entity add constraint FKqmviggw0khaskxup4cg7bvqku foreign key (pet_id) references pet_entity Hibernate: alter table if exists adoption_follow_up_entity add constraint FKkxibwn0r1ep7bgevg86seymmc foreign key (adoption_id) references adoption_entity Hibernate: alter table if exists adoption_follow_up_entity add constraint FKkqclwmvja9dll86u1bn9ycwn0 foreign key (pet_id) references pet_entity Hibernate: alter table if exists adoption_follow_up_entity add constraint FKsump3rviut1cvfr8iv6vogfp4 foreign key (veterinarian_id) references veterinarian_entity Hibernate: alter table if exists adoption_request_entity add constraint FK90j2qmgnqst03l9x6fpwf0aab foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists adoption_request_entity add constraint FKpdxe7jyb75mwugces1axydwtg foreign key (strategy_id) references approval_strategy_entity Hibernate: alter table if exists adoption_request_entity add constraint FKhanslcvxoi0t9cq07vsyerx7d foreign key (pet_id) references pet_entity Hibernate: alter table if exists adoption_request_entity add constraint FKad0m44984i6frcsd86susx3df foreign key (trial_cohabitation_id) references trial_cohabitation_entity Hibernate: alter table if exists medical_event_entity add constraint FKloam0wk3hbpns9awx08v8ttty foreign key (medical_history_id) references medical_history_entity Hibernate: alter table if exists medical_event_entity add constraint FKmx3l6boot15lqesauq3y2k5t9 foreign key (veterinarian_id) references veterinarian_entity Hibernate: alter table if exists medical_history_entity add constraint FKfqo1kwpy0eom46u48u9i9ob79 foreign key (pet_id) references pet_entity Hibernate: alter table if exists message_entity add constraint FK1bx2fv4ukgy2ruq9gclvehfjw foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists message_entity add constraint FKc1jilfk3teueg8wfilq0u9h0y foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists mock_user add constraint FK1t7datqqs96rej2yoo133loxs foreign key (id) references user_entity Hibernate: alter table if exists notification_entity add constraint FKpsofie2xkbprbd9jo128ocuy9 foreign key (strategy_id) references notification_strategy_entity Hibernate: alter table if exists notification_entity add constraint FKgemicmmtfy225vqj5li4u96lk foreign key (user_id) references user_entity Hibernate: alter table if exists pet_entity add constraint FK57h1lsq9l67lcsx43ftwwto1c foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists report_entity add constraint FK6c18c90k2vnskwos9leqbmxrv foreign key (strategy_id) references report_strategy_entity Hibernate: alter table if exists report_entity add constraint FKoa7u6l3jn2ueixs49yy8nrap3 foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists report_entity add constraint FK33bibp5ycbkys4c6g1dxm410t foreign key (event_id) references shelter_event_entity Hibernate: alter table if exists review_entity add constraint FK8w6fpunff42r2ytatsjbb4o96 foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists review_entity add constraint FKhtmwv0o4w6vp5k7w088xwk0yt foreign key (pet_id) references pet_entity Hibernate: alter table if exists shelter_event_entity add constraint FKjj4fox0olnc8o73kdgso782es foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists trial_cohabitation_entity add constraint FK608jf01b64pwvg12957nbsfsj foreign key (adoption_id) references adoption_entity Hibernate: alter table if exists trial_cohabitation_entity add constraint FKrxpesflvao88mgm4bmys2c3k1 foreign key (pet_id) references pet_entity Hibernate: alter table if exists vaccination_record_entity add constraint FKfo5r2fgxn4ltp9oubgnilaq41 foreign key (medical_history_id) references medical_history_entity Hibernate: alter table if exists vaccination_record_entity add constraint FKdahievfho7baue5s1sayxwom2 foreign key (vaccine_id) references vaccine_entity Hibernate: alter table if exists vaccination_record_entity add constraint FKe2aflnq4dp8kne3km9enr1mt9 foreign key (veterinarian_id) references veterinarian_entity Hibernate: alter table if exists veterinarian_entity add constraint FKe8xa1wxe967urrvxsxpdm8y8r foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists veterinarian_entity add constraint FKl5lutaqpbd2jrfrerhn6a9g69 foreign key (id) references user_entity 2026-03-21T14:25:22.412Z INFO 71 --- [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default' 2026-03-21T14:25:22.577Z INFO 71 --- [ main] c.e.u.mdp.pets.services.PetServiceTest : Started PetServiceTest in 0.522 seconds (process running for 12.516) Hibernate: delete from trial_cohabitation_entity tce1_0 Hibernate: delete from medical_history_entity mhe1_0 Hibernate: delete from pet_entity pe1_0 Hibernate: insert into pet_entity (activity_level,age,breed,description,good_with_kids,good_with_pets,name,origin,photos,sex,shelter_id,size,space_required,special_needs,species,status,temperament,id) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,default) Hibernate: insert into pet_entity (activity_level,age,breed,description,good_with_kids,good_with_pets,name,origin,photos,sex,shelter_id,size,space_required,special_needs,species,status,temperament,id) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,default) Hibernate: insert into pet_entity (activity_level,age,breed,description,good_with_kids,good_with_pets,name,origin,photos,sex,shelter_id,size,space_required,special_needs,species,status,temperament,id) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,default) 2026-03-21T14:25:22.598Z INFO 71 --- [ main] c.e.u.mdp.pets.services.PetService : Creating pet: hn7ZXClqf5 Hibernate: insert into pet_entity (activity_level,age,breed,description,good_with_kids,good_with_pets,name,origin,photos,sex,shelter_id,size,space_required,special_needs,species,status,temperament,id) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,default) Hibernate: insert into medical_history_entity (description,pet_id,id) values (?,?,default) Hibernate: delete from trial_cohabitation_entity tce1_0 Hibernate: delete from medical_history_entity mhe1_0 Hibernate: delete from pet_entity pe1_0 Hibernate: insert into pet_entity (activity_level,age,breed,description,good_with_kids,good_with_pets,name,origin,photos,sex,shelter_id,size,space_required,special_needs,species,status,temperament,id) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,default) Hibernate: insert into pet_entity (activity_level,age,breed,description,good_with_kids,good_with_pets,name,origin,photos,sex,shelter_id,size,space_required,special_needs,species,status,temperament,id) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,default) Hibernate: insert into pet_entity (activity_level,age,breed,description,good_with_kids,good_with_pets,name,origin,photos,sex,shelter_id,size,space_required,special_needs,species,status,temperament,id) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) 2026-03-21T14:25:22.618Z INFO 71 --- [ main] c.e.u.mdp.pets.services.PetService : Deleting pet with id = 6 Hibernate: delete from trial_cohabitation_entity tce1_0 Hibernate: delete from medical_history_entity mhe1_0 Hibernate: delete from pet_entity pe1_0 Hibernate: insert into pet_entity (activity_level,age,breed,description,good_with_kids,good_with_pets,name,origin,photos,sex,shelter_id,size,space_required,special_needs,species,status,temperament,id) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,default) Hibernate: insert into pet_entity (activity_level,age,breed,description,good_with_kids,good_with_pets,name,origin,photos,sex,shelter_id,size,space_required,special_needs,species,status,temperament,id) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,default) Hibernate: insert into pet_entity (activity_level,age,breed,description,good_with_kids,good_with_pets,name,origin,photos,sex,shelter_id,size,space_required,special_needs,species,status,temperament,id) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,default) 2026-03-21T14:25:22.634Z INFO 71 --- [ main] c.e.u.mdp.pets.services.PetService : Processing return for pet with id = 8 Hibernate: delete from trial_cohabitation_entity tce1_0 Hibernate: delete from medical_history_entity mhe1_0 Hibernate: delete from pet_entity pe1_0 Hibernate: insert into pet_entity (activity_level,age,breed,description,good_with_kids,good_with_pets,name,origin,photos,sex,shelter_id,size,space_required,special_needs,species,status,temperament,id) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,default) Hibernate: insert into pet_entity (activity_level,age,breed,description,good_with_kids,good_with_pets,name,origin,photos,sex,shelter_id,size,space_required,special_needs,species,status,temperament,id) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,default) Hibernate: insert into pet_entity (activity_level,age,breed,description,good_with_kids,good_with_pets,name,origin,photos,sex,shelter_id,size,space_required,special_needs,species,status,temperament,id) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,default) 2026-03-21T14:25:22.649Z INFO 71 --- [ main] c.e.u.mdp.pets.services.PetService : Creating pet: gl4a2BfpJZ Hibernate: delete from trial_cohabitation_entity tce1_0 Hibernate: delete from medical_history_entity mhe1_0 Hibernate: delete from pet_entity pe1_0 Hibernate: insert into pet_entity (activity_level,age,breed,description,good_with_kids,good_with_pets,name,origin,photos,sex,shelter_id,size,space_required,special_needs,species,status,temperament,id) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,default) Hibernate: insert into pet_entity (activity_level,age,breed,description,good_with_kids,good_with_pets,name,origin,photos,sex,shelter_id,size,space_required,special_needs,species,status,temperament,id) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,default) Hibernate: insert into pet_entity (activity_level,age,breed,description,good_with_kids,good_with_pets,name,origin,photos,sex,shelter_id,size,space_required,special_needs,species,status,temperament,id) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,default) Hibernate: update pet_entity set activity_level=?,age=?,breed=?,description=?,good_with_kids=?,good_with_pets=?,name=?,origin=?,photos=?,sex=?,shelter_id=?,size=?,space_required=?,special_needs=?,species=?,status=?,temperament=? where id=? 2026-03-21T14:25:22.677Z INFO 71 --- [ main] c.e.u.mdp.pets.services.PetService : Processing return for pet with id = 14 Hibernate: delete from trial_cohabitation_entity tce1_0 Hibernate: delete from medical_history_entity mhe1_0 Hibernate: delete from pet_entity pe1_0 Hibernate: insert into pet_entity (activity_level,age,breed,description,good_with_kids,good_with_pets,name,origin,photos,sex,shelter_id,size,space_required,special_needs,species,status,temperament,id) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,default) Hibernate: insert into pet_entity (activity_level,age,breed,description,good_with_kids,good_with_pets,name,origin,photos,sex,shelter_id,size,space_required,special_needs,species,status,temperament,id) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,default) Hibernate: insert into pet_entity (activity_level,age,breed,description,good_with_kids,good_with_pets,name,origin,photos,sex,shelter_id,size,space_required,special_needs,species,status,temperament,id) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) 2026-03-21T14:25:22.695Z INFO 71 --- [ main] c.e.u.mdp.pets.services.PetService : Updating pet with id = 17 Hibernate: delete from trial_cohabitation_entity tce1_0 Hibernate: delete from medical_history_entity mhe1_0 Hibernate: delete from pet_entity pe1_0 Hibernate: insert into pet_entity (activity_level,age,breed,description,good_with_kids,good_with_pets,name,origin,photos,sex,shelter_id,size,space_required,special_needs,species,status,temperament,id) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,default) Hibernate: insert into pet_entity (activity_level,age,breed,description,good_with_kids,good_with_pets,name,origin,photos,sex,shelter_id,size,space_required,special_needs,species,status,temperament,id) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,default) Hibernate: insert into pet_entity (activity_level,age,breed,description,good_with_kids,good_with_pets,name,origin,photos,sex,shelter_id,size,space_required,special_needs,species,status,temperament,id) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,default) 2026-03-21T14:25:22.712Z INFO 71 --- [ main] c.e.u.mdp.pets.services.PetService : Updating pet with id = 20 [INFO] Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.680 s -- in co.edu.udistrital.mdp.pets.services.PetServiceTest [INFO] Running co.edu.udistrital.mdp.pets.services.VeterinarianServiceTest 2026-03-21T14:25:22.718Z INFO 71 --- [ main] t.c.s.AnnotationConfigContextLoaderUtils : Could not detect default configuration classes for test class [co.edu.udistrital.mdp.pets.services.VeterinarianServiceTest]: VeterinarianServiceTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration. 2026-03-21T14:25:22.721Z INFO 71 --- [ main] .b.t.c.SpringBootTestContextBootstrapper : Found @SpringBootConfiguration co.edu.udistrital.mdp.pets.MainApplication for test class co.edu.udistrital.mdp.pets.services.VeterinarianServiceTest . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v3.5.10) 2026-03-21T14:25:22.749Z INFO 71 --- [ main] c.e.u.m.p.s.VeterinarianServiceTest : Starting VeterinarianServiceTest using Java 21.0.4 with PID 71 (started by root in /home/cecaduser/workspace/MP_202610_G81_E1_Back) 2026-03-21T14:25:22.750Z INFO 71 --- [ main] c.e.u.m.p.s.VeterinarianServiceTest : No active profile set, falling back to 1 default profile: "default" 2026-03-21T14:25:22.829Z INFO 71 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode. 2026-03-21T14:25:22.851Z INFO 71 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 20 ms. Found 19 JPA repository interfaces. 2026-03-21T14:25:22.868Z INFO 71 --- [ main] beddedDataSourceBeanFactoryPostProcessor : Replacing 'dataSource' DataSource bean with embedded version 2026-03-21T14:25:22.880Z INFO 71 --- [ main] o.s.j.d.e.EmbeddedDatabaseFactory : Starting embedded database: url='jdbc:h2:mem:00ea161b-18a1-4e19-973b-4f03bd63b6f9;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=false', username='sa' 2026-03-21T14:25:22.897Z INFO 71 --- [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default] 2026-03-21T14:25:22.898Z INFO 71 --- [ main] o.h.c.internal.RegionFactoryInitiator : HHH000026: Second-level cache disabled 2026-03-21T14:25:22.906Z INFO 71 --- [ main] o.s.o.j.p.SpringPersistenceUnitInfo : No LoadTimeWeaver setup: ignoring JPA class transformer 2026-03-21T14:25:22.907Z WARN 71 --- [ main] org.hibernate.orm.deprecation : HHH90000025: H2Dialect does not need to be specified explicitly using 'hibernate.dialect' (remove the property setting and it will be selected by default) 2026-03-21T14:25:22.908Z INFO 71 --- [ main] org.hibernate.orm.connections.pooling : HHH10001005: Database info: Database JDBC URL [Connecting through datasource 'org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactory$EmbeddedDataSourceProxy@3b74fc81'] Database driver: undefined/unknown Database version: 2.3.232 Autocommit mode: undefined/unknown Isolation level: undefined/unknown Minimum pool size: undefined/unknown Maximum pool size: undefined/unknown Hibernate: create global temporary table HT_user_entity(id bigint not null, primary key (id)) TRANSACTIONAL Hibernate: create global temporary table HTE_user_entity(has_children boolean, has_other_pets boolean, HTE_IDENTITY bigint generated by default as identity, id bigint, availability varchar(255), email varchar(255), housing_type varchar(255), name varchar(255), password varchar(255), phone varchar(255), specialty varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL Hibernate: create global temporary table HTE_mock_user(HTE_IDENTITY bigint generated by default as identity, id bigint, email varchar(255), name varchar(255), password varchar(255), phone varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL Hibernate: create global temporary table HTE_veterinarian_entity(HTE_IDENTITY bigint generated by default as identity, id bigint, shelter_id bigint, availability varchar(255), email varchar(255), name varchar(255), password varchar(255), phone varchar(255), specialty varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL Hibernate: create global temporary table HTE_adopter_entity(has_children boolean, has_other_pets boolean, HTE_IDENTITY bigint generated by default as identity, id bigint, email varchar(255), housing_type varchar(255), name varchar(255), password varchar(255), phone varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL 2026-03-21T14:25:23.038Z INFO 71 --- [ main] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000489: No JTA platform available (set 'hibernate.transaction.jta.platform' to enable JTA platform integration) Hibernate: drop table if exists adopter_entity cascade Hibernate: drop table if exists adoption_entity cascade Hibernate: drop table if exists adoption_follow_up_entity cascade Hibernate: drop table if exists adoption_request_entity cascade Hibernate: drop table if exists approval_strategy_entity cascade Hibernate: drop table if exists medical_event_entity cascade Hibernate: drop table if exists medical_history_entity cascade Hibernate: drop table if exists message_entity cascade Hibernate: drop table if exists mock_user cascade Hibernate: drop table if exists notification_entity cascade Hibernate: drop table if exists notification_strategy_entity cascade Hibernate: drop table if exists pet_entity cascade Hibernate: drop table if exists report_entity cascade Hibernate: drop table if exists report_strategy_entity cascade Hibernate: drop table if exists review_entity cascade Hibernate: drop table if exists shelter_entity cascade Hibernate: drop table if exists shelter_event_entity cascade Hibernate: drop table if exists trial_cohabitation_entity cascade Hibernate: drop table if exists user_entity cascade Hibernate: drop table if exists vaccination_record_entity cascade Hibernate: drop table if exists vaccine_entity cascade Hibernate: drop table if exists veterinarian_entity cascade Hibernate: create table adopter_entity (has_children boolean, has_other_pets boolean, id bigint not null, housing_type varchar(255), primary key (id)) Hibernate: create table adoption_entity (adoption_date date, adopter_id bigint, id bigint generated by default as identity, pet_id bigint, status enum ('CANCELLED','COMPLETED','CREATED','IN_PROGRESS','PENDING'), primary key (id)) Hibernate: create table adoption_follow_up_entity (adoption_id bigint, id bigint generated by default as identity, pet_id bigint, veterinarian_id bigint, frequency varchar(255), notes varchar(255), primary key (id)) Hibernate: create table adoption_request_entity (request_date date, adopter_id bigint, id bigint generated by default as identity, pet_id bigint, strategy_id bigint, trial_cohabitation_id bigint unique, status varchar(255), primary key (id)) Hibernate: create table approval_strategy_entity (id bigint generated by default as identity, approval_type varchar(31) not null, primary key (id)) Hibernate: create table medical_event_entity (event_date date, id bigint generated by default as identity, medical_history_id bigint, veterinarian_id bigint, diagnosis varchar(255), event_type varchar(255), treatment varchar(255), primary key (id)) Hibernate: create table medical_history_entity (id bigint generated by default as identity, pet_id bigint unique, description varchar(255), primary key (id)) Hibernate: create table message_entity (is_read boolean, adopter_id bigint, id bigint generated by default as identity, shelter_id bigint, timestamp timestamp(6), content TEXT, primary key (id)) Hibernate: create table mock_user (id bigint not null, primary key (id)) Hibernate: create table notification_entity (is_read boolean, date timestamp(6), id bigint generated by default as identity, strategy_id bigint unique, user_id bigint, message varchar(255), primary key (id)) Hibernate: create table notification_strategy_entity (id bigint generated by default as identity, primary key (id)) Hibernate: create table pet_entity (age integer, good_with_kids boolean, good_with_pets boolean, id bigint generated by default as identity, shelter_id bigint, activity_level varchar(255), breed varchar(255), description varchar(255), name varchar(255), origin varchar(255), photos varchar(255), sex varchar(255), size varchar(255), space_required varchar(255), special_needs varchar(255), species varchar(255), temperament varchar(255), status enum ('ADOPTED','AVAILABLE','IN_TRIAL','MEDICAL_TREATMENT','RESERVED'), primary key (id)) Hibernate: create table report_entity (generate_date date, event_id bigint, id bigint generated by default as identity, shelter_id bigint, strategy_id bigint, primary key (id)) Hibernate: create table report_strategy_entity (id bigint generated by default as identity, primary key (id)) Hibernate: create table review_entity (date date, rating integer, adopter_id bigint, id bigint generated by default as identity, pet_id bigint, comment TEXT, primary key (id)) Hibernate: create table shelter_entity (id bigint generated by default as identity, city varchar(255), description varchar(255), email varchar(255), gallery varchar(255), name varchar(255), primary key (id)) Hibernate: create table shelter_event_entity (date date, id bigint generated by default as identity, shelter_id bigint, description varchar(255), location varchar(255), title varchar(255), status enum ('CANCELLED','COMPLETED','CREATED','IN_PROGRESS','PENDING'), primary key (id)) Hibernate: create table trial_cohabitation_entity (end_date date, start_date date, adoption_id bigint unique, id bigint generated by default as identity, pet_id bigint, result varchar(255), status enum ('CANCELLED','COMPLETED','CREATED','IN_PROGRESS','PENDING'), primary key (id)) Hibernate: create table user_entity (id bigint generated by default as identity, email varchar(255), name varchar(255), password varchar(255), phone varchar(255), primary key (id)) Hibernate: create table vaccination_record_entity (application_date date, next_due_date date, id bigint generated by default as identity, medical_history_id bigint, vaccine_id bigint, veterinarian_id bigint, primary key (id)) Hibernate: create table vaccine_entity (validity_months integer, id bigint generated by default as identity, description varchar(255), name varchar(255), primary key (id)) Hibernate: create table veterinarian_entity (id bigint not null, shelter_id bigint, availability varchar(255), specialty varchar(255), primary key (id)) Hibernate: alter table if exists adopter_entity add constraint FKitj2sdxcctxrw6ql04jny7l9y foreign key (id) references user_entity Hibernate: alter table if exists adoption_entity add constraint FK224d1qenh6y54c9lq828mmgx foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists adoption_entity add constraint FKqmviggw0khaskxup4cg7bvqku foreign key (pet_id) references pet_entity Hibernate: alter table if exists adoption_follow_up_entity add constraint FKkxibwn0r1ep7bgevg86seymmc foreign key (adoption_id) references adoption_entity Hibernate: alter table if exists adoption_follow_up_entity add constraint FKkqclwmvja9dll86u1bn9ycwn0 foreign key (pet_id) references pet_entity Hibernate: alter table if exists adoption_follow_up_entity add constraint FKsump3rviut1cvfr8iv6vogfp4 foreign key (veterinarian_id) references veterinarian_entity Hibernate: alter table if exists adoption_request_entity add constraint FK90j2qmgnqst03l9x6fpwf0aab foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists adoption_request_entity add constraint FKpdxe7jyb75mwugces1axydwtg foreign key (strategy_id) references approval_strategy_entity Hibernate: alter table if exists adoption_request_entity add constraint FKhanslcvxoi0t9cq07vsyerx7d foreign key (pet_id) references pet_entity Hibernate: alter table if exists adoption_request_entity add constraint FKad0m44984i6frcsd86susx3df foreign key (trial_cohabitation_id) references trial_cohabitation_entity Hibernate: alter table if exists medical_event_entity add constraint FKloam0wk3hbpns9awx08v8ttty foreign key (medical_history_id) references medical_history_entity Hibernate: alter table if exists medical_event_entity add constraint FKmx3l6boot15lqesauq3y2k5t9 foreign key (veterinarian_id) references veterinarian_entity Hibernate: alter table if exists medical_history_entity add constraint FKfqo1kwpy0eom46u48u9i9ob79 foreign key (pet_id) references pet_entity Hibernate: alter table if exists message_entity add constraint FK1bx2fv4ukgy2ruq9gclvehfjw foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists message_entity add constraint FKc1jilfk3teueg8wfilq0u9h0y foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists mock_user add constraint FK1t7datqqs96rej2yoo133loxs foreign key (id) references user_entity Hibernate: alter table if exists notification_entity add constraint FKpsofie2xkbprbd9jo128ocuy9 foreign key (strategy_id) references notification_strategy_entity Hibernate: alter table if exists notification_entity add constraint FKgemicmmtfy225vqj5li4u96lk foreign key (user_id) references user_entity Hibernate: alter table if exists pet_entity add constraint FK57h1lsq9l67lcsx43ftwwto1c foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists report_entity add constraint FK6c18c90k2vnskwos9leqbmxrv foreign key (strategy_id) references report_strategy_entity Hibernate: alter table if exists report_entity add constraint FKoa7u6l3jn2ueixs49yy8nrap3 foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists report_entity add constraint FK33bibp5ycbkys4c6g1dxm410t foreign key (event_id) references shelter_event_entity Hibernate: alter table if exists review_entity add constraint FK8w6fpunff42r2ytatsjbb4o96 foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists review_entity add constraint FKhtmwv0o4w6vp5k7w088xwk0yt foreign key (pet_id) references pet_entity Hibernate: alter table if exists shelter_event_entity add constraint FKjj4fox0olnc8o73kdgso782es foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists trial_cohabitation_entity add constraint FK608jf01b64pwvg12957nbsfsj foreign key (adoption_id) references adoption_entity Hibernate: alter table if exists trial_cohabitation_entity add constraint FKrxpesflvao88mgm4bmys2c3k1 foreign key (pet_id) references pet_entity Hibernate: alter table if exists vaccination_record_entity add constraint FKfo5r2fgxn4ltp9oubgnilaq41 foreign key (medical_history_id) references medical_history_entity Hibernate: alter table if exists vaccination_record_entity add constraint FKdahievfho7baue5s1sayxwom2 foreign key (vaccine_id) references vaccine_entity Hibernate: alter table if exists vaccination_record_entity add constraint FKe2aflnq4dp8kne3km9enr1mt9 foreign key (veterinarian_id) references veterinarian_entity Hibernate: alter table if exists veterinarian_entity add constraint FKe8xa1wxe967urrvxsxpdm8y8r foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists veterinarian_entity add constraint FKl5lutaqpbd2jrfrerhn6a9g69 foreign key (id) references user_entity 2026-03-21T14:25:23.078Z INFO 71 --- [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default' 2026-03-21T14:25:23.231Z INFO 71 --- [ main] c.e.u.m.p.s.VeterinarianServiceTest : Started VeterinarianServiceTest in 0.507 seconds (process running for 13.17) Hibernate: delete from medical_event_entity mee1_0 Hibernate: delete from vaccination_record_entity vre1_0 Hibernate: delete from adoption_follow_up_entity afue1_0 Hibernate: insert into HT_user_entity(id) select ve1_0.id from veterinarian_entity ve1_0 Hibernate: delete from veterinarian_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from user_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from HT_user_entity Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into veterinarian_entity (availability,shelter_id,specialty,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into veterinarian_entity (availability,shelter_id,specialty,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into veterinarian_entity (availability,shelter_id,specialty,id) values (?,?,?,?) Hibernate: insert into medical_event_entity (diagnosis,event_date,event_type,medical_history_id,treatment,veterinarian_id,id) values (?,?,?,?,?,?,default) 2026-03-21T14:25:23.252Z INFO 71 --- [ main] c.e.u.mdp.pets.services.UserService : Deleting user with id = 1 2026-03-21T14:25:23.254Z WARN 71 --- [ main] c.e.u.m.p.services.VeterinarianService : Attempted to delete veterinarian 1 with medical history records Hibernate: delete from medical_event_entity mee1_0 Hibernate: delete from vaccination_record_entity vre1_0 Hibernate: delete from adoption_follow_up_entity afue1_0 Hibernate: insert into HT_user_entity(id) select ve1_0.id from veterinarian_entity ve1_0 Hibernate: delete from veterinarian_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from user_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from HT_user_entity Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into veterinarian_entity (availability,shelter_id,specialty,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into veterinarian_entity (availability,shelter_id,specialty,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into veterinarian_entity (availability,shelter_id,specialty,id) values (?,?,?,?) 2026-03-21T14:25:23.268Z INFO 71 --- [ main] c.e.u.mdp.pets.services.UserService : Deleting user with id = 4 Hibernate: delete from medical_event_entity mee1_0 Hibernate: delete from vaccination_record_entity vre1_0 Hibernate: delete from adoption_follow_up_entity afue1_0 Hibernate: insert into HT_user_entity(id) select ve1_0.id from veterinarian_entity ve1_0 Hibernate: delete from veterinarian_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from user_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from HT_user_entity Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into veterinarian_entity (availability,shelter_id,specialty,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into veterinarian_entity (availability,shelter_id,specialty,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into veterinarian_entity (availability,shelter_id,specialty,id) values (?,?,?,?) 2026-03-21T14:25:23.284Z INFO 71 --- [ main] c.e.u.m.p.services.VeterinarianService : Starting creation process for veterinarian: nuevo_vet@test.com 2026-03-21T14:25:23.284Z INFO 71 --- [ main] c.e.u.mdp.pets.services.UserService : Starting creation process for user: nuevo_vet@test.com Hibernate: select ue1_0.id,case when ue1_1.id is not null then 1 when ue1_2.id is not null then 2 when ue1_3.id is not null then 3 end,ue1_0.email,ue1_0.name,ue1_0.password,ue1_0.phone,ue1_1.has_children,ue1_1.has_other_pets,ue1_1.housing_type,ue1_2.availability,ue1_2.shelter_id,ue1_2.specialty from user_entity ue1_0 left join adopter_entity ue1_1 on ue1_0.id=ue1_1.id left join veterinarian_entity ue1_2 on ue1_0.id=ue1_2.id left join mock_user ue1_3 on ue1_0.id=ue1_3.id where ue1_0.email=? Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into veterinarian_entity (availability,shelter_id,specialty,id) values (?,?,?,?) Hibernate: delete from medical_event_entity mee1_0 Hibernate: delete from vaccination_record_entity vre1_0 Hibernate: delete from adoption_follow_up_entity afue1_0 Hibernate: insert into HT_user_entity(id) select ve1_0.id from veterinarian_entity ve1_0 Hibernate: delete from veterinarian_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from user_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from HT_user_entity Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into veterinarian_entity (availability,shelter_id,specialty,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into veterinarian_entity (availability,shelter_id,specialty,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into veterinarian_entity (availability,shelter_id,specialty,id) values (?,?,?,?) Hibernate: insert into adoption_follow_up_entity (adoption_id,frequency,notes,pet_id,veterinarian_id,id) values (?,?,?,?,?,default) 2026-03-21T14:25:23.305Z INFO 71 --- [ main] c.e.u.mdp.pets.services.UserService : Deleting user with id = 12 2026-03-21T14:25:23.306Z WARN 71 --- [ main] c.e.u.m.p.services.VeterinarianService : Attempted to delete veterinarian 12 with active adoption follow-ups Hibernate: delete from medical_event_entity mee1_0 Hibernate: delete from vaccination_record_entity vre1_0 Hibernate: delete from adoption_follow_up_entity afue1_0 Hibernate: insert into HT_user_entity(id) select ve1_0.id from veterinarian_entity ve1_0 Hibernate: delete from veterinarian_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from user_entity to_delete_ where to_delete_.id in (select temptable_.id from HT_user_entity temptable_) Hibernate: delete from HT_user_entity Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into veterinarian_entity (availability,shelter_id,specialty,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into veterinarian_entity (availability,shelter_id,specialty,id) values (?,?,?,?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into veterinarian_entity (availability,shelter_id,specialty,id) values (?,?,?,?) 2026-03-21T14:25:23.321Z INFO 71 --- [ main] c.e.u.m.p.services.VeterinarianService : Starting creation process for veterinarian: qZpgn8mFhJ [INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.608 s -- in co.edu.udistrital.mdp.pets.services.VeterinarianServiceTest [INFO] Running co.edu.udistrital.mdp.pets.services.UserServiceTest 2026-03-21T14:25:23.328Z INFO 71 --- [ main] t.c.s.AnnotationConfigContextLoaderUtils : Could not detect default configuration classes for test class [co.edu.udistrital.mdp.pets.services.UserServiceTest]: UserServiceTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration. 2026-03-21T14:25:23.330Z INFO 71 --- [ main] .b.t.c.SpringBootTestContextBootstrapper : Found @SpringBootConfiguration co.edu.udistrital.mdp.pets.MainApplication for test class co.edu.udistrital.mdp.pets.services.UserServiceTest . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v3.5.10) 2026-03-21T14:25:23.348Z INFO 71 --- [ main] c.e.u.mdp.pets.services.UserServiceTest : Starting UserServiceTest using Java 21.0.4 with PID 71 (started by root in /home/cecaduser/workspace/MP_202610_G81_E1_Back) 2026-03-21T14:25:23.349Z INFO 71 --- [ main] c.e.u.mdp.pets.services.UserServiceTest : No active profile set, falling back to 1 default profile: "default" 2026-03-21T14:25:23.408Z INFO 71 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode. 2026-03-21T14:25:23.427Z INFO 71 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 18 ms. Found 19 JPA repository interfaces. 2026-03-21T14:25:23.443Z INFO 71 --- [ main] beddedDataSourceBeanFactoryPostProcessor : Replacing 'dataSource' DataSource bean with embedded version 2026-03-21T14:25:23.454Z INFO 71 --- [ main] o.s.j.d.e.EmbeddedDatabaseFactory : Starting embedded database: url='jdbc:h2:mem:deb7d4a1-3de4-4db3-bd3d-96c5c817392a;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=false', username='sa' 2026-03-21T14:25:23.469Z INFO 71 --- [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default] 2026-03-21T14:25:23.470Z INFO 71 --- [ main] o.h.c.internal.RegionFactoryInitiator : HHH000026: Second-level cache disabled 2026-03-21T14:25:23.479Z INFO 71 --- [ main] o.s.o.j.p.SpringPersistenceUnitInfo : No LoadTimeWeaver setup: ignoring JPA class transformer 2026-03-21T14:25:23.480Z WARN 71 --- [ main] org.hibernate.orm.deprecation : HHH90000025: H2Dialect does not need to be specified explicitly using 'hibernate.dialect' (remove the property setting and it will be selected by default) 2026-03-21T14:25:23.481Z INFO 71 --- [ main] org.hibernate.orm.connections.pooling : HHH10001005: Database info: Database JDBC URL [Connecting through datasource 'org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactory$EmbeddedDataSourceProxy@707172a8'] Database driver: undefined/unknown Database version: 2.3.232 Autocommit mode: undefined/unknown Isolation level: undefined/unknown Minimum pool size: undefined/unknown Maximum pool size: undefined/unknown Hibernate: create global temporary table HT_user_entity(id bigint not null, primary key (id)) TRANSACTIONAL Hibernate: create global temporary table HTE_user_entity(has_children boolean, has_other_pets boolean, HTE_IDENTITY bigint generated by default as identity, id bigint, availability varchar(255), email varchar(255), housing_type varchar(255), name varchar(255), password varchar(255), phone varchar(255), specialty varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL Hibernate: create global temporary table HTE_mock_user(HTE_IDENTITY bigint generated by default as identity, id bigint, email varchar(255), name varchar(255), password varchar(255), phone varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL Hibernate: create global temporary table HTE_veterinarian_entity(HTE_IDENTITY bigint generated by default as identity, id bigint, shelter_id bigint, availability varchar(255), email varchar(255), name varchar(255), password varchar(255), phone varchar(255), specialty varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL Hibernate: create global temporary table HTE_adopter_entity(has_children boolean, has_other_pets boolean, HTE_IDENTITY bigint generated by default as identity, id bigint, email varchar(255), housing_type varchar(255), name varchar(255), password varchar(255), phone varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL 2026-03-21T14:25:23.628Z INFO 71 --- [ main] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000489: No JTA platform available (set 'hibernate.transaction.jta.platform' to enable JTA platform integration) Hibernate: drop table if exists adopter_entity cascade Hibernate: drop table if exists adoption_entity cascade Hibernate: drop table if exists adoption_follow_up_entity cascade Hibernate: drop table if exists adoption_request_entity cascade Hibernate: drop table if exists approval_strategy_entity cascade Hibernate: drop table if exists medical_event_entity cascade Hibernate: drop table if exists medical_history_entity cascade Hibernate: drop table if exists message_entity cascade Hibernate: drop table if exists mock_user cascade Hibernate: drop table if exists notification_entity cascade Hibernate: drop table if exists notification_strategy_entity cascade Hibernate: drop table if exists pet_entity cascade Hibernate: drop table if exists report_entity cascade Hibernate: drop table if exists report_strategy_entity cascade Hibernate: drop table if exists review_entity cascade Hibernate: drop table if exists shelter_entity cascade Hibernate: drop table if exists shelter_event_entity cascade Hibernate: drop table if exists trial_cohabitation_entity cascade Hibernate: drop table if exists user_entity cascade Hibernate: drop table if exists vaccination_record_entity cascade Hibernate: drop table if exists vaccine_entity cascade Hibernate: drop table if exists veterinarian_entity cascade Hibernate: create table adopter_entity (has_children boolean, has_other_pets boolean, id bigint not null, housing_type varchar(255), primary key (id)) Hibernate: create table adoption_entity (adoption_date date, adopter_id bigint, id bigint generated by default as identity, pet_id bigint, status enum ('CANCELLED','COMPLETED','CREATED','IN_PROGRESS','PENDING'), primary key (id)) Hibernate: create table adoption_follow_up_entity (adoption_id bigint, id bigint generated by default as identity, pet_id bigint, veterinarian_id bigint, frequency varchar(255), notes varchar(255), primary key (id)) Hibernate: create table adoption_request_entity (request_date date, adopter_id bigint, id bigint generated by default as identity, pet_id bigint, strategy_id bigint, trial_cohabitation_id bigint unique, status varchar(255), primary key (id)) Hibernate: create table approval_strategy_entity (id bigint generated by default as identity, approval_type varchar(31) not null, primary key (id)) Hibernate: create table medical_event_entity (event_date date, id bigint generated by default as identity, medical_history_id bigint, veterinarian_id bigint, diagnosis varchar(255), event_type varchar(255), treatment varchar(255), primary key (id)) Hibernate: create table medical_history_entity (id bigint generated by default as identity, pet_id bigint unique, description varchar(255), primary key (id)) Hibernate: create table message_entity (is_read boolean, adopter_id bigint, id bigint generated by default as identity, shelter_id bigint, timestamp timestamp(6), content TEXT, primary key (id)) Hibernate: create table mock_user (id bigint not null, primary key (id)) Hibernate: create table notification_entity (is_read boolean, date timestamp(6), id bigint generated by default as identity, strategy_id bigint unique, user_id bigint, message varchar(255), primary key (id)) Hibernate: create table notification_strategy_entity (id bigint generated by default as identity, primary key (id)) Hibernate: create table pet_entity (age integer, good_with_kids boolean, good_with_pets boolean, id bigint generated by default as identity, shelter_id bigint, activity_level varchar(255), breed varchar(255), description varchar(255), name varchar(255), origin varchar(255), photos varchar(255), sex varchar(255), size varchar(255), space_required varchar(255), special_needs varchar(255), species varchar(255), temperament varchar(255), status enum ('ADOPTED','AVAILABLE','IN_TRIAL','MEDICAL_TREATMENT','RESERVED'), primary key (id)) Hibernate: create table report_entity (generate_date date, event_id bigint, id bigint generated by default as identity, shelter_id bigint, strategy_id bigint, primary key (id)) Hibernate: create table report_strategy_entity (id bigint generated by default as identity, primary key (id)) Hibernate: create table review_entity (date date, rating integer, adopter_id bigint, id bigint generated by default as identity, pet_id bigint, comment TEXT, primary key (id)) Hibernate: create table shelter_entity (id bigint generated by default as identity, city varchar(255), description varchar(255), email varchar(255), gallery varchar(255), name varchar(255), primary key (id)) Hibernate: create table shelter_event_entity (date date, id bigint generated by default as identity, shelter_id bigint, description varchar(255), location varchar(255), title varchar(255), status enum ('CANCELLED','COMPLETED','CREATED','IN_PROGRESS','PENDING'), primary key (id)) Hibernate: create table trial_cohabitation_entity (end_date date, start_date date, adoption_id bigint unique, id bigint generated by default as identity, pet_id bigint, result varchar(255), status enum ('CANCELLED','COMPLETED','CREATED','IN_PROGRESS','PENDING'), primary key (id)) Hibernate: create table user_entity (id bigint generated by default as identity, email varchar(255), name varchar(255), password varchar(255), phone varchar(255), primary key (id)) Hibernate: create table vaccination_record_entity (application_date date, next_due_date date, id bigint generated by default as identity, medical_history_id bigint, vaccine_id bigint, veterinarian_id bigint, primary key (id)) Hibernate: create table vaccine_entity (validity_months integer, id bigint generated by default as identity, description varchar(255), name varchar(255), primary key (id)) Hibernate: create table veterinarian_entity (id bigint not null, shelter_id bigint, availability varchar(255), specialty varchar(255), primary key (id)) Hibernate: alter table if exists adopter_entity add constraint FKitj2sdxcctxrw6ql04jny7l9y foreign key (id) references user_entity Hibernate: alter table if exists adoption_entity add constraint FK224d1qenh6y54c9lq828mmgx foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists adoption_entity add constraint FKqmviggw0khaskxup4cg7bvqku foreign key (pet_id) references pet_entity Hibernate: alter table if exists adoption_follow_up_entity add constraint FKkxibwn0r1ep7bgevg86seymmc foreign key (adoption_id) references adoption_entity Hibernate: alter table if exists adoption_follow_up_entity add constraint FKkqclwmvja9dll86u1bn9ycwn0 foreign key (pet_id) references pet_entity Hibernate: alter table if exists adoption_follow_up_entity add constraint FKsump3rviut1cvfr8iv6vogfp4 foreign key (veterinarian_id) references veterinarian_entity Hibernate: alter table if exists adoption_request_entity add constraint FK90j2qmgnqst03l9x6fpwf0aab foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists adoption_request_entity add constraint FKpdxe7jyb75mwugces1axydwtg foreign key (strategy_id) references approval_strategy_entity Hibernate: alter table if exists adoption_request_entity add constraint FKhanslcvxoi0t9cq07vsyerx7d foreign key (pet_id) references pet_entity Hibernate: alter table if exists adoption_request_entity add constraint FKad0m44984i6frcsd86susx3df foreign key (trial_cohabitation_id) references trial_cohabitation_entity Hibernate: alter table if exists medical_event_entity add constraint FKloam0wk3hbpns9awx08v8ttty foreign key (medical_history_id) references medical_history_entity Hibernate: alter table if exists medical_event_entity add constraint FKmx3l6boot15lqesauq3y2k5t9 foreign key (veterinarian_id) references veterinarian_entity Hibernate: alter table if exists medical_history_entity add constraint FKfqo1kwpy0eom46u48u9i9ob79 foreign key (pet_id) references pet_entity Hibernate: alter table if exists message_entity add constraint FK1bx2fv4ukgy2ruq9gclvehfjw foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists message_entity add constraint FKc1jilfk3teueg8wfilq0u9h0y foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists mock_user add constraint FK1t7datqqs96rej2yoo133loxs foreign key (id) references user_entity Hibernate: alter table if exists notification_entity add constraint FKpsofie2xkbprbd9jo128ocuy9 foreign key (strategy_id) references notification_strategy_entity Hibernate: alter table if exists notification_entity add constraint FKgemicmmtfy225vqj5li4u96lk foreign key (user_id) references user_entity Hibernate: alter table if exists pet_entity add constraint FK57h1lsq9l67lcsx43ftwwto1c foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists report_entity add constraint FK6c18c90k2vnskwos9leqbmxrv foreign key (strategy_id) references report_strategy_entity Hibernate: alter table if exists report_entity add constraint FKoa7u6l3jn2ueixs49yy8nrap3 foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists report_entity add constraint FK33bibp5ycbkys4c6g1dxm410t foreign key (event_id) references shelter_event_entity Hibernate: alter table if exists review_entity add constraint FK8w6fpunff42r2ytatsjbb4o96 foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists review_entity add constraint FKhtmwv0o4w6vp5k7w088xwk0yt foreign key (pet_id) references pet_entity Hibernate: alter table if exists shelter_event_entity add constraint FKjj4fox0olnc8o73kdgso782es foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists trial_cohabitation_entity add constraint FK608jf01b64pwvg12957nbsfsj foreign key (adoption_id) references adoption_entity Hibernate: alter table if exists trial_cohabitation_entity add constraint FKrxpesflvao88mgm4bmys2c3k1 foreign key (pet_id) references pet_entity Hibernate: alter table if exists vaccination_record_entity add constraint FKfo5r2fgxn4ltp9oubgnilaq41 foreign key (medical_history_id) references medical_history_entity Hibernate: alter table if exists vaccination_record_entity add constraint FKdahievfho7baue5s1sayxwom2 foreign key (vaccine_id) references vaccine_entity Hibernate: alter table if exists vaccination_record_entity add constraint FKe2aflnq4dp8kne3km9enr1mt9 foreign key (veterinarian_id) references veterinarian_entity Hibernate: alter table if exists veterinarian_entity add constraint FKe8xa1wxe967urrvxsxpdm8y8r foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists veterinarian_entity add constraint FKl5lutaqpbd2jrfrerhn6a9g69 foreign key (id) references user_entity 2026-03-21T14:25:23.663Z INFO 71 --- [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default' 2026-03-21T14:25:23.809Z INFO 71 --- [ main] c.e.u.mdp.pets.services.UserServiceTest : Started UserServiceTest in 0.476 seconds (process running for 13.748) Hibernate: delete from mock_user to_delete_ Hibernate: delete from veterinarian_entity to_delete_ Hibernate: delete from adopter_entity to_delete_ Hibernate: delete from user_entity ue1_0 Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) Hibernate: select ue1_0.id,case when ue1_1.id is not null then 1 when ue1_2.id is not null then 2 when ue1_3.id is not null then 3 end,ue1_0.email,ue1_0.name,ue1_0.password,ue1_0.phone,ue1_1.has_children,ue1_1.has_other_pets,ue1_1.housing_type,ue1_2.availability,ue1_2.shelter_id,ue1_2.specialty from user_entity ue1_0 left join adopter_entity ue1_1 on ue1_0.id=ue1_1.id left join veterinarian_entity ue1_2 on ue1_0.id=ue1_2.id left join mock_user ue1_3 on ue1_0.id=ue1_3.id Hibernate: delete from mock_user to_delete_ Hibernate: delete from veterinarian_entity to_delete_ Hibernate: delete from adopter_entity to_delete_ Hibernate: delete from user_entity ue1_0 Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) 2026-03-21T14:25:23.842Z INFO 71 --- [ main] c.e.u.mdp.pets.services.UserService : Updating user with id = 4 Hibernate: select ue1_0.id,case when ue1_1.id is not null then 1 when ue1_2.id is not null then 2 when ue1_3.id is not null then 3 end,ue1_0.email,ue1_0.name,ue1_0.password,ue1_0.phone,ue1_1.has_children,ue1_1.has_other_pets,ue1_1.housing_type,ue1_2.availability,ue1_2.shelter_id,ue1_2.specialty from user_entity ue1_0 left join adopter_entity ue1_1 on ue1_0.id=ue1_1.id left join veterinarian_entity ue1_2 on ue1_0.id=ue1_2.id left join mock_user ue1_3 on ue1_0.id=ue1_3.id where ue1_0.email=? Hibernate: delete from mock_user to_delete_ Hibernate: delete from veterinarian_entity to_delete_ Hibernate: delete from adopter_entity to_delete_ Hibernate: delete from user_entity ue1_0 Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) Hibernate: delete from mock_user to_delete_ Hibernate: delete from veterinarian_entity to_delete_ Hibernate: delete from adopter_entity to_delete_ Hibernate: delete from user_entity ue1_0 Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) 2026-03-21T14:25:23.868Z INFO 71 --- [ main] c.e.u.mdp.pets.services.UserService : Updating user with id = 10 Hibernate: select ue1_0.id,case when ue1_1.id is not null then 1 when ue1_2.id is not null then 2 when ue1_3.id is not null then 3 end,ue1_0.email,ue1_0.name,ue1_0.password,ue1_0.phone,ue1_1.has_children,ue1_1.has_other_pets,ue1_1.housing_type,ue1_2.availability,ue1_2.shelter_id,ue1_2.specialty from user_entity ue1_0 left join adopter_entity ue1_1 on ue1_0.id=ue1_1.id left join veterinarian_entity ue1_2 on ue1_0.id=ue1_2.id left join mock_user ue1_3 on ue1_0.id=ue1_3.id where ue1_0.email=? Hibernate: delete from mock_user to_delete_ Hibernate: delete from veterinarian_entity to_delete_ Hibernate: delete from adopter_entity to_delete_ Hibernate: delete from user_entity ue1_0 Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) 2026-03-21T14:25:23.881Z INFO 71 --- [ main] c.e.u.mdp.pets.services.UserService : Deleting user with id = 13 Hibernate: select count(ae1_0.id) from adoption_entity ae1_0 where ae1_0.adopter_id=? Hibernate: delete from mock_user to_delete_ Hibernate: delete from veterinarian_entity to_delete_ Hibernate: delete from adopter_entity to_delete_ Hibernate: delete from user_entity ue1_0 Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) 2026-03-21T14:25:23.979Z INFO 71 --- [ main] c.e.u.mdp.pets.services.UserService : Starting creation process for user: nuevo@correo.com Hibernate: select ue1_0.id,case when ue1_1.id is not null then 1 when ue1_2.id is not null then 2 when ue1_3.id is not null then 3 end,ue1_0.email,ue1_0.name,ue1_0.password,ue1_0.phone,ue1_1.has_children,ue1_1.has_other_pets,ue1_1.housing_type,ue1_2.availability,ue1_2.shelter_id,ue1_2.specialty from user_entity ue1_0 left join adopter_entity ue1_1 on ue1_0.id=ue1_1.id left join veterinarian_entity ue1_2 on ue1_0.id=ue1_2.id left join mock_user ue1_3 on ue1_0.id=ue1_3.id where ue1_0.email=? Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) Hibernate: delete from mock_user to_delete_ Hibernate: delete from veterinarian_entity to_delete_ Hibernate: delete from adopter_entity to_delete_ Hibernate: delete from user_entity ue1_0 Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into adopter_entity (has_children,has_other_pets,housing_type,id) values (?,?,?,?) Hibernate: insert into adoption_entity (adopter_id,adoption_date,pet_id,status,id) values (?,?,?,?,default) 2026-03-21T14:25:23.997Z INFO 71 --- [ main] c.e.u.mdp.pets.services.UserService : Deleting user with id = 23 Hibernate: select count(ae1_0.id) from adoption_entity ae1_0 where ae1_0.adopter_id=? Hibernate: delete from mock_user to_delete_ Hibernate: delete from veterinarian_entity to_delete_ Hibernate: delete from adopter_entity to_delete_ Hibernate: delete from user_entity ue1_0 Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) 2026-03-21T14:25:24.011Z INFO 71 --- [ main] c.e.u.mdp.pets.services.UserService : Starting creation process for user: correo-sin-arroba.com Hibernate: delete from mock_user to_delete_ Hibernate: delete from veterinarian_entity to_delete_ Hibernate: delete from adopter_entity to_delete_ Hibernate: delete from user_entity ue1_0 Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) 2026-03-21T14:25:24.021Z INFO 71 --- [ main] c.e.u.mdp.pets.services.UserService : Starting creation process for user: CycN_pKj8_ Hibernate: delete from mock_user to_delete_ Hibernate: delete from veterinarian_entity to_delete_ Hibernate: delete from adopter_entity to_delete_ Hibernate: delete from user_entity ue1_0 Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) Hibernate: insert into user_entity (email,name,password,phone,id) values (?,?,?,?,default) Hibernate: insert into mock_user (id) values (?) 2026-03-21T14:25:24.033Z INFO 71 --- [ main] c.e.u.mdp.pets.services.UserService : Starting creation process for user: user0@test.com [INFO] Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.710 s -- in co.edu.udistrital.mdp.pets.services.UserServiceTest [INFO] Running co.edu.udistrital.mdp.pets.services.TrialCohabitationServiceTest 2026-03-21T14:25:24.038Z INFO 71 --- [ main] t.c.s.AnnotationConfigContextLoaderUtils : Could not detect default configuration classes for test class [co.edu.udistrital.mdp.pets.services.TrialCohabitationServiceTest]: TrialCohabitationServiceTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration. 2026-03-21T14:25:24.044Z INFO 71 --- [ main] .b.t.c.SpringBootTestContextBootstrapper : Found @SpringBootConfiguration co.edu.udistrital.mdp.pets.MainApplication for test class co.edu.udistrital.mdp.pets.services.TrialCohabitationServiceTest . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v3.5.10) 2026-03-21T14:25:24.062Z INFO 71 --- [ main] c.e.u.m.p.s.TrialCohabitationServiceTest : Starting TrialCohabitationServiceTest using Java 21.0.4 with PID 71 (started by root in /home/cecaduser/workspace/MP_202610_G81_E1_Back) 2026-03-21T14:25:24.062Z INFO 71 --- [ main] c.e.u.m.p.s.TrialCohabitationServiceTest : No active profile set, falling back to 1 default profile: "default" 2026-03-21T14:25:24.118Z INFO 71 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode. 2026-03-21T14:25:24.138Z INFO 71 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 18 ms. Found 19 JPA repository interfaces. 2026-03-21T14:25:24.154Z INFO 71 --- [ main] beddedDataSourceBeanFactoryPostProcessor : Replacing 'dataSource' DataSource bean with embedded version 2026-03-21T14:25:24.166Z INFO 71 --- [ main] o.s.j.d.e.EmbeddedDatabaseFactory : Starting embedded database: url='jdbc:h2:mem:8dd9c9cc-adcb-4b05-9a57-ca2f182fe6c7;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=false', username='sa' 2026-03-21T14:25:24.181Z INFO 71 --- [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default] 2026-03-21T14:25:24.183Z INFO 71 --- [ main] o.h.c.internal.RegionFactoryInitiator : HHH000026: Second-level cache disabled 2026-03-21T14:25:24.190Z INFO 71 --- [ main] o.s.o.j.p.SpringPersistenceUnitInfo : No LoadTimeWeaver setup: ignoring JPA class transformer 2026-03-21T14:25:24.191Z WARN 71 --- [ main] org.hibernate.orm.deprecation : HHH90000025: H2Dialect does not need to be specified explicitly using 'hibernate.dialect' (remove the property setting and it will be selected by default) 2026-03-21T14:25:24.191Z INFO 71 --- [ main] org.hibernate.orm.connections.pooling : HHH10001005: Database info: Database JDBC URL [Connecting through datasource 'org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactory$EmbeddedDataSourceProxy@5e284484'] Database driver: undefined/unknown Database version: 2.3.232 Autocommit mode: undefined/unknown Isolation level: undefined/unknown Minimum pool size: undefined/unknown Maximum pool size: undefined/unknown Hibernate: create global temporary table HT_user_entity(id bigint not null, primary key (id)) TRANSACTIONAL Hibernate: create global temporary table HTE_user_entity(has_children boolean, has_other_pets boolean, HTE_IDENTITY bigint generated by default as identity, id bigint, availability varchar(255), email varchar(255), housing_type varchar(255), name varchar(255), password varchar(255), phone varchar(255), specialty varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL Hibernate: create global temporary table HTE_mock_user(HTE_IDENTITY bigint generated by default as identity, id bigint, email varchar(255), name varchar(255), password varchar(255), phone varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL Hibernate: create global temporary table HTE_veterinarian_entity(HTE_IDENTITY bigint generated by default as identity, id bigint, shelter_id bigint, availability varchar(255), email varchar(255), name varchar(255), password varchar(255), phone varchar(255), specialty varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL Hibernate: create global temporary table HTE_adopter_entity(has_children boolean, has_other_pets boolean, HTE_IDENTITY bigint generated by default as identity, id bigint, email varchar(255), housing_type varchar(255), name varchar(255), password varchar(255), phone varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL 2026-03-21T14:25:24.335Z INFO 71 --- [ main] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000489: No JTA platform available (set 'hibernate.transaction.jta.platform' to enable JTA platform integration) Hibernate: drop table if exists adopter_entity cascade Hibernate: drop table if exists adoption_entity cascade Hibernate: drop table if exists adoption_follow_up_entity cascade Hibernate: drop table if exists adoption_request_entity cascade Hibernate: drop table if exists approval_strategy_entity cascade Hibernate: drop table if exists medical_event_entity cascade Hibernate: drop table if exists medical_history_entity cascade Hibernate: drop table if exists message_entity cascade Hibernate: drop table if exists mock_user cascade Hibernate: drop table if exists notification_entity cascade Hibernate: drop table if exists notification_strategy_entity cascade Hibernate: drop table if exists pet_entity cascade Hibernate: drop table if exists report_entity cascade Hibernate: drop table if exists report_strategy_entity cascade Hibernate: drop table if exists review_entity cascade Hibernate: drop table if exists shelter_entity cascade Hibernate: drop table if exists shelter_event_entity cascade Hibernate: drop table if exists trial_cohabitation_entity cascade Hibernate: drop table if exists user_entity cascade Hibernate: drop table if exists vaccination_record_entity cascade Hibernate: drop table if exists vaccine_entity cascade Hibernate: drop table if exists veterinarian_entity cascade Hibernate: create table adopter_entity (has_children boolean, has_other_pets boolean, id bigint not null, housing_type varchar(255), primary key (id)) Hibernate: create table adoption_entity (adoption_date date, adopter_id bigint, id bigint generated by default as identity, pet_id bigint, status enum ('CANCELLED','COMPLETED','CREATED','IN_PROGRESS','PENDING'), primary key (id)) Hibernate: create table adoption_follow_up_entity (adoption_id bigint, id bigint generated by default as identity, pet_id bigint, veterinarian_id bigint, frequency varchar(255), notes varchar(255), primary key (id)) Hibernate: create table adoption_request_entity (request_date date, adopter_id bigint, id bigint generated by default as identity, pet_id bigint, strategy_id bigint, trial_cohabitation_id bigint unique, status varchar(255), primary key (id)) Hibernate: create table approval_strategy_entity (id bigint generated by default as identity, approval_type varchar(31) not null, primary key (id)) Hibernate: create table medical_event_entity (event_date date, id bigint generated by default as identity, medical_history_id bigint, veterinarian_id bigint, diagnosis varchar(255), event_type varchar(255), treatment varchar(255), primary key (id)) Hibernate: create table medical_history_entity (id bigint generated by default as identity, pet_id bigint unique, description varchar(255), primary key (id)) Hibernate: create table message_entity (is_read boolean, adopter_id bigint, id bigint generated by default as identity, shelter_id bigint, timestamp timestamp(6), content TEXT, primary key (id)) Hibernate: create table mock_user (id bigint not null, primary key (id)) Hibernate: create table notification_entity (is_read boolean, date timestamp(6), id bigint generated by default as identity, strategy_id bigint unique, user_id bigint, message varchar(255), primary key (id)) Hibernate: create table notification_strategy_entity (id bigint generated by default as identity, primary key (id)) Hibernate: create table pet_entity (age integer, good_with_kids boolean, good_with_pets boolean, id bigint generated by default as identity, shelter_id bigint, activity_level varchar(255), breed varchar(255), description varchar(255), name varchar(255), origin varchar(255), photos varchar(255), sex varchar(255), size varchar(255), space_required varchar(255), special_needs varchar(255), species varchar(255), temperament varchar(255), status enum ('ADOPTED','AVAILABLE','IN_TRIAL','MEDICAL_TREATMENT','RESERVED'), primary key (id)) Hibernate: create table report_entity (generate_date date, event_id bigint, id bigint generated by default as identity, shelter_id bigint, strategy_id bigint, primary key (id)) Hibernate: create table report_strategy_entity (id bigint generated by default as identity, primary key (id)) Hibernate: create table review_entity (date date, rating integer, adopter_id bigint, id bigint generated by default as identity, pet_id bigint, comment TEXT, primary key (id)) Hibernate: create table shelter_entity (id bigint generated by default as identity, city varchar(255), description varchar(255), email varchar(255), gallery varchar(255), name varchar(255), primary key (id)) Hibernate: create table shelter_event_entity (date date, id bigint generated by default as identity, shelter_id bigint, description varchar(255), location varchar(255), title varchar(255), status enum ('CANCELLED','COMPLETED','CREATED','IN_PROGRESS','PENDING'), primary key (id)) Hibernate: create table trial_cohabitation_entity (end_date date, start_date date, adoption_id bigint unique, id bigint generated by default as identity, pet_id bigint, result varchar(255), status enum ('CANCELLED','COMPLETED','CREATED','IN_PROGRESS','PENDING'), primary key (id)) Hibernate: create table user_entity (id bigint generated by default as identity, email varchar(255), name varchar(255), password varchar(255), phone varchar(255), primary key (id)) Hibernate: create table vaccination_record_entity (application_date date, next_due_date date, id bigint generated by default as identity, medical_history_id bigint, vaccine_id bigint, veterinarian_id bigint, primary key (id)) Hibernate: create table vaccine_entity (validity_months integer, id bigint generated by default as identity, description varchar(255), name varchar(255), primary key (id)) Hibernate: create table veterinarian_entity (id bigint not null, shelter_id bigint, availability varchar(255), specialty varchar(255), primary key (id)) Hibernate: alter table if exists adopter_entity add constraint FKitj2sdxcctxrw6ql04jny7l9y foreign key (id) references user_entity Hibernate: alter table if exists adoption_entity add constraint FK224d1qenh6y54c9lq828mmgx foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists adoption_entity add constraint FKqmviggw0khaskxup4cg7bvqku foreign key (pet_id) references pet_entity Hibernate: alter table if exists adoption_follow_up_entity add constraint FKkxibwn0r1ep7bgevg86seymmc foreign key (adoption_id) references adoption_entity Hibernate: alter table if exists adoption_follow_up_entity add constraint FKkqclwmvja9dll86u1bn9ycwn0 foreign key (pet_id) references pet_entity Hibernate: alter table if exists adoption_follow_up_entity add constraint FKsump3rviut1cvfr8iv6vogfp4 foreign key (veterinarian_id) references veterinarian_entity Hibernate: alter table if exists adoption_request_entity add constraint FK90j2qmgnqst03l9x6fpwf0aab foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists adoption_request_entity add constraint FKpdxe7jyb75mwugces1axydwtg foreign key (strategy_id) references approval_strategy_entity Hibernate: alter table if exists adoption_request_entity add constraint FKhanslcvxoi0t9cq07vsyerx7d foreign key (pet_id) references pet_entity Hibernate: alter table if exists adoption_request_entity add constraint FKad0m44984i6frcsd86susx3df foreign key (trial_cohabitation_id) references trial_cohabitation_entity Hibernate: alter table if exists medical_event_entity add constraint FKloam0wk3hbpns9awx08v8ttty foreign key (medical_history_id) references medical_history_entity Hibernate: alter table if exists medical_event_entity add constraint FKmx3l6boot15lqesauq3y2k5t9 foreign key (veterinarian_id) references veterinarian_entity Hibernate: alter table if exists medical_history_entity add constraint FKfqo1kwpy0eom46u48u9i9ob79 foreign key (pet_id) references pet_entity Hibernate: alter table if exists message_entity add constraint FK1bx2fv4ukgy2ruq9gclvehfjw foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists message_entity add constraint FKc1jilfk3teueg8wfilq0u9h0y foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists mock_user add constraint FK1t7datqqs96rej2yoo133loxs foreign key (id) references user_entity Hibernate: alter table if exists notification_entity add constraint FKpsofie2xkbprbd9jo128ocuy9 foreign key (strategy_id) references notification_strategy_entity Hibernate: alter table if exists notification_entity add constraint FKgemicmmtfy225vqj5li4u96lk foreign key (user_id) references user_entity Hibernate: alter table if exists pet_entity add constraint FK57h1lsq9l67lcsx43ftwwto1c foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists report_entity add constraint FK6c18c90k2vnskwos9leqbmxrv foreign key (strategy_id) references report_strategy_entity Hibernate: alter table if exists report_entity add constraint FKoa7u6l3jn2ueixs49yy8nrap3 foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists report_entity add constraint FK33bibp5ycbkys4c6g1dxm410t foreign key (event_id) references shelter_event_entity Hibernate: alter table if exists review_entity add constraint FK8w6fpunff42r2ytatsjbb4o96 foreign key (adopter_id) references adopter_entity Hibernate: alter table if exists review_entity add constraint FKhtmwv0o4w6vp5k7w088xwk0yt foreign key (pet_id) references pet_entity Hibernate: alter table if exists shelter_event_entity add constraint FKjj4fox0olnc8o73kdgso782es foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists trial_cohabitation_entity add constraint FK608jf01b64pwvg12957nbsfsj foreign key (adoption_id) references adoption_entity Hibernate: alter table if exists trial_cohabitation_entity add constraint FKrxpesflvao88mgm4bmys2c3k1 foreign key (pet_id) references pet_entity Hibernate: alter table if exists vaccination_record_entity add constraint FKfo5r2fgxn4ltp9oubgnilaq41 foreign key (medical_history_id) references medical_history_entity Hibernate: alter table if exists vaccination_record_entity add constraint FKdahievfho7baue5s1sayxwom2 foreign key (vaccine_id) references vaccine_entity Hibernate: alter table if exists vaccination_record_entity add constraint FKe2aflnq4dp8kne3km9enr1mt9 foreign key (veterinarian_id) references veterinarian_entity Hibernate: alter table if exists veterinarian_entity add constraint FKe8xa1wxe967urrvxsxpdm8y8r foreign key (shelter_id) references shelter_entity Hibernate: alter table if exists veterinarian_entity add constraint FKl5lutaqpbd2jrfrerhn6a9g69 foreign key (id) references user_entity 2026-03-21T14:25:24.374Z INFO 71 --- [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default' 2026-03-21T14:25:24.539Z INFO 71 --- [ main] c.e.u.m.p.s.TrialCohabitationServiceTest : Started TrialCohabitationServiceTest in 0.491 seconds (process running for 14.478) Hibernate: delete from trial_cohabitation_entity tce1_0 Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) 2026-03-21T14:25:24.553Z INFO 71 --- [ main] c.e.u.m.p.s.TrialCohabitationService : Starting creation process for trial cohabitation Hibernate: delete from trial_cohabitation_entity tce1_0 Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) 2026-03-21T14:25:24.564Z INFO 71 --- [ main] c.e.u.m.p.s.TrialCohabitationService : Starting process to consult trial cohabitation with id = 999 Hibernate: select tce1_0.id,a1_0.id,a2_0.id,a2_1.email,a2_1.name,a2_1.password,a2_1.phone,a2_0.has_children,a2_0.has_other_pets,a2_0.housing_type,a1_0.adoption_date,p1_0.id,p1_0.activity_level,p1_0.age,p1_0.breed,p1_0.description,p1_0.good_with_kids,p1_0.good_with_pets,mh1_0.id,mh1_0.description,p1_0.name,p1_0.origin,p1_0.photos,p1_0.sex,p1_0.shelter_id,p1_0.size,p1_0.space_required,p1_0.special_needs,p1_0.species,p1_0.status,p1_0.temperament,a1_0.status,tce1_0.end_date,tce1_0.pet_id,tce1_0.result,tce1_0.start_date,tce1_0.status from trial_cohabitation_entity tce1_0 left join adoption_entity a1_0 on a1_0.id=tce1_0.adoption_id left join adopter_entity a2_0 on a2_0.id=a1_0.adopter_id left join user_entity a2_1 on a2_0.id=a2_1.id left join pet_entity p1_0 on p1_0.id=a1_0.pet_id left join medical_history_entity mh1_0 on p1_0.id=mh1_0.pet_id where tce1_0.id=? 2026-03-21T14:25:24.566Z ERROR 71 --- [ main] c.e.u.m.p.s.TrialCohabitationService : Trial cohabitation with id 999 not found Hibernate: delete from trial_cohabitation_entity tce1_0 Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) 2026-03-21T14:25:24.576Z INFO 71 --- [ main] c.e.u.m.p.s.TrialCohabitationService : Starting creation process for trial cohabitation Hibernate: delete from trial_cohabitation_entity tce1_0 Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) 2026-03-21T14:25:24.586Z INFO 71 --- [ main] c.e.u.m.p.s.TrialCohabitationService : Starting update process for trial cohabitation with id = 999 Hibernate: select tce1_0.id,a1_0.id,a2_0.id,a2_1.email,a2_1.name,a2_1.password,a2_1.phone,a2_0.has_children,a2_0.has_other_pets,a2_0.housing_type,a1_0.adoption_date,p1_0.id,p1_0.activity_level,p1_0.age,p1_0.breed,p1_0.description,p1_0.good_with_kids,p1_0.good_with_pets,mh1_0.id,mh1_0.description,p1_0.name,p1_0.origin,p1_0.photos,p1_0.sex,p1_0.shelter_id,p1_0.size,p1_0.space_required,p1_0.special_needs,p1_0.species,p1_0.status,p1_0.temperament,a1_0.status,tce1_0.end_date,tce1_0.pet_id,tce1_0.result,tce1_0.start_date,tce1_0.status from trial_cohabitation_entity tce1_0 left join adoption_entity a1_0 on a1_0.id=tce1_0.adoption_id left join adopter_entity a2_0 on a2_0.id=a1_0.adopter_id left join user_entity a2_1 on a2_0.id=a2_1.id left join pet_entity p1_0 on p1_0.id=a1_0.pet_id left join medical_history_entity mh1_0 on p1_0.id=mh1_0.pet_id where tce1_0.id=? Hibernate: delete from trial_cohabitation_entity tce1_0 Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) 2026-03-21T14:25:24.597Z INFO 71 --- [ main] c.e.u.m.p.s.TrialCohabitationService : Starting deletion process for trial cohabitation ID: 13 2026-03-21T14:25:24.598Z INFO 71 --- [ main] c.e.u.m.p.s.TrialCohabitationService : Trial cohabitation with ID: 13 deleted successfully Hibernate: delete from trial_cohabitation_entity tce1_0 Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) 2026-03-21T14:25:24.608Z INFO 71 --- [ main] c.e.u.m.p.s.TrialCohabitationService : Starting update process for trial cohabitation with id = 19 Hibernate: delete from trial_cohabitation_entity tce1_0 Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) 2026-03-21T14:25:24.618Z INFO 71 --- [ main] c.e.u.m.p.s.TrialCohabitationService : Starting process to consult all trial cohabitations Hibernate: select tce1_0.id,tce1_0.adoption_id,tce1_0.end_date,tce1_0.pet_id,tce1_0.result,tce1_0.start_date,tce1_0.status from trial_cohabitation_entity tce1_0 Hibernate: delete from trial_cohabitation_entity tce1_0 Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) 2026-03-21T14:25:24.630Z INFO 71 --- [ main] c.e.u.m.p.s.TrialCohabitationService : Starting creation process for trial cohabitation Hibernate: delete from trial_cohabitation_entity tce1_0 Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) 2026-03-21T14:25:24.640Z INFO 71 --- [ main] c.e.u.m.p.s.TrialCohabitationService : Starting creation process for trial cohabitation Hibernate: delete from trial_cohabitation_entity tce1_0 Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) 2026-03-21T14:25:24.649Z INFO 71 --- [ main] c.e.u.m.p.s.TrialCohabitationService : Starting update process for trial cohabitation with id = 29 Hibernate: delete from trial_cohabitation_entity tce1_0 Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) 2026-03-21T14:25:24.658Z INFO 71 --- [ main] c.e.u.m.p.s.TrialCohabitationService : Starting creation process for trial cohabitation 2026-03-21T14:25:24.659Z INFO 71 --- [ main] c.e.u.m.p.s.TrialCohabitationService : Trial cohabitation created successfully Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: delete from trial_cohabitation_entity tce1_0 Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) 2026-03-21T14:25:24.669Z INFO 71 --- [ main] c.e.u.m.p.s.TrialCohabitationService : Starting deletion process for trial cohabitation ID: 39 2026-03-21T14:25:24.669Z WARN 71 --- [ main] c.e.u.m.p.s.TrialCohabitationService : Attempted to delete trial cohabitation 39 but it is in progress Hibernate: delete from trial_cohabitation_entity tce1_0 Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) 2026-03-21T14:25:24.678Z INFO 71 --- [ main] c.e.u.m.p.s.TrialCohabitationService : Starting process to consult trial cohabitation with id = 40 Hibernate: delete from trial_cohabitation_entity tce1_0 Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) 2026-03-21T14:25:24.687Z INFO 71 --- [ main] c.e.u.m.p.s.TrialCohabitationService : Starting deletion process for trial cohabitation ID: 999 Hibernate: select tce1_0.id,a1_0.id,a2_0.id,a2_1.email,a2_1.name,a2_1.password,a2_1.phone,a2_0.has_children,a2_0.has_other_pets,a2_0.housing_type,a1_0.adoption_date,p1_0.id,p1_0.activity_level,p1_0.age,p1_0.breed,p1_0.description,p1_0.good_with_kids,p1_0.good_with_pets,mh1_0.id,mh1_0.description,p1_0.name,p1_0.origin,p1_0.photos,p1_0.sex,p1_0.shelter_id,p1_0.size,p1_0.space_required,p1_0.special_needs,p1_0.species,p1_0.status,p1_0.temperament,a1_0.status,tce1_0.end_date,tce1_0.pet_id,tce1_0.result,tce1_0.start_date,tce1_0.status from trial_cohabitation_entity tce1_0 left join adoption_entity a1_0 on a1_0.id=tce1_0.adoption_id left join adopter_entity a2_0 on a2_0.id=a1_0.adopter_id left join user_entity a2_1 on a2_0.id=a2_1.id left join pet_entity p1_0 on p1_0.id=a1_0.pet_id left join medical_history_entity mh1_0 on p1_0.id=mh1_0.pet_id where tce1_0.id=? Hibernate: delete from trial_cohabitation_entity tce1_0 Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) 2026-03-21T14:25:24.697Z INFO 71 --- [ main] c.e.u.m.p.s.TrialCohabitationService : Starting creation process for trial cohabitation 2026-03-21T14:25:24.697Z INFO 71 --- [ main] c.e.u.m.p.s.TrialCohabitationService : Trial cohabitation created successfully Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: delete from trial_cohabitation_entity tce1_0 Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) Hibernate: insert into trial_cohabitation_entity (adoption_id,end_date,pet_id,result,start_date,status,id) values (?,?,?,?,?,?,default) 2026-03-21T14:25:24.706Z INFO 71 --- [ main] c.e.u.m.p.s.TrialCohabitationService : Starting update process for trial cohabitation with id = 50 2026-03-21T14:25:24.707Z INFO 71 --- [ main] c.e.u.m.p.s.TrialCohabitationService : Trial cohabitation with id = 50 updated successfully [INFO] Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.672 s -- in co.edu.udistrital.mdp.pets.services.TrialCohabitationServiceTest [INFO] [INFO] Results: [INFO] [INFO] Tests run: 74, Failures: 0, Errors: 0, Skipped: 0 [INFO] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 16.360 s [INFO] Finished at: 2026-03-21T14:25:24Z [INFO] ------------------------------------------------------------------------ [Pipeline] } $ docker stop --time=1 4c31854fcd7df957a9ba2bac3c9921d7e8faddc943a024caa8487d9a8a91d0aa $ docker rm -f --volumes 4c31854fcd7df957a9ba2bac3c9921d7e8faddc943a024caa8487d9a8a91d0aa [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Static Analysis) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh + docker inspect -f . citools-isis2603:latest . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer Slave2 does not seem to be running inside a container $ docker run -t -d -u 1000:1000 -v $HOME/.m2:/root/.m2:z -u root -w /home/cecaduser/workspace/MP_202610_G81_E1_Back -v /home/cecaduser/workspace/MP_202610_G81_E1_Back:/home/cecaduser/workspace/MP_202610_G81_E1_Back:rw,z -v /home/cecaduser/workspace/MP_202610_G81_E1_Back@tmp:/home/cecaduser/workspace/MP_202610_G81_E1_Back@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** citools-isis2603:latest cat $ docker top ab75ee2f122c40e6240e8e95bccbcc18587b624a5813e549846b645dda23011a -eo pid,comm [Pipeline] { [Pipeline] sh + mvn sonar:sonar -Dsonar.token=**** -Dsonar.host.url=http://10.20.84.26:8082/sonar [INFO] Scanning for projects... [WARNING] The artifact org.codehaus.mojo:sonar-maven-plugin:jar:4.0.0.4121 has been relocated to org.sonarsource.scanner.maven:sonar-maven-plugin:jar:4.0.0.4121: SonarQube plugin was moved to SonarSource organisation [INFO] [INFO] ------------< co.edu.udistrital.mdp:MP_202610_G81_E1_Back >------------- [INFO] Building MP_202610_G81_E1_Back 0.0.1-SNAPSHOT [INFO] from pom.xml [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- sonar:4.0.0.4121:sonar (default-cli) @ MP_202610_G81_E1_Back --- [WARNING] 14:25:29.838 Using an unspecified version instead of an explicit plugin version may introduce breaking analysis changes at an unwanted time. It is highly recommended to use an explicit version, e.g. 'org.sonarsource.scanner.maven:sonar-maven-plugin:4.0.0.4121'. [INFO] 14:25:29.848 Java 21.0.4 Eclipse Adoptium (64-bit) [INFO] 14:25:29.848 Linux 6.17.0-14-generic (amd64) [INFO] 14:25:30.017 User cache: /root/.sonar/cache [INFO] 14:25:30.758 Communicating with SonarQube Server 25.3.0.104237 [INFO] 14:25:30.776 Default locale: "en_US", source code encoding: "UTF-8" [INFO] 14:25:31.659 Load global settings [INFO] 14:25:31.746 Load global settings (done) | time=88ms [INFO] 14:25:31.763 Server id: 243B8A4D-AZWSB3madBdjq_cKUIEO [INFO] 14:25:31.776 Loading required plugins [INFO] 14:25:31.776 Load plugins index [INFO] 14:25:31.837 Load plugins index (done) | time=61ms [INFO] 14:25:31.838 Load/download plugins [INFO] 14:25:32.117 Load/download plugins (done) | time=279ms [INFO] 14:25:32.470 Process project properties [INFO] 14:25:32.485 Process project properties (done) | time=15ms [INFO] 14:25:32.508 Project key: co.edu.udistrital.mdp:MP_202610_G81_E1_Back [INFO] 14:25:32.508 Base dir: /home/cecaduser/workspace/MP_202610_G81_E1_Back [INFO] 14:25:32.508 Working dir: /home/cecaduser/workspace/MP_202610_G81_E1_Back/target/sonar [INFO] 14:25:32.517 Load project settings for component key: 'co.edu.udistrital.mdp:MP_202610_G81_E1_Back' [INFO] 14:25:32.537 Load project settings for component key: 'co.edu.udistrital.mdp:MP_202610_G81_E1_Back' (done) | time=21ms [INFO] 14:25:32.569 Load quality profiles [INFO] 14:25:32.617 Load quality profiles (done) | time=48ms [INFO] 14:25:32.632 Auto-configuring with CI 'Jenkins' [INFO] 14:25:32.670 Load active rules [INFO] 14:25:32.976 Load active rules (done) | time=306ms [INFO] 14:25:32.984 Load analysis cache [INFO] 14:25:33.007 Load analysis cache (3.2 kB) | time=23ms [INFO] 14:25:33.082 Preprocessing files... [INFO] 14:25:33.271 2 languages detected in 68 preprocessed files [INFO] 14:25:33.277 0 files ignored because of scm ignore settings [INFO] 14:25:33.280 Loading plugins for detected languages [INFO] 14:25:33.280 Load/download plugins [INFO] 14:25:33.561 Load/download plugins (done) | time=281ms [INFO] 14:25:33.690 Load project repositories [INFO] 14:25:33.805 Load project repositories (done) | time=116ms [INFO] 14:25:33.825 Indexing files... [INFO] 14:25:33.825 Project configuration: [INFO] 14:25:33.826 Excluded sources for coverage: **/controllers/**, **/exceptions/**, **/podam/**, **/dto/** [INFO] 14:25:33.846 68 files indexed [INFO] 14:25:33.848 Quality profile for java: Sonar way MP [INFO] 14:25:33.848 Quality profile for xml: Sonar way [INFO] 14:25:33.848 ------------- Run sensors on module MP_202610_G81_E1_Back [INFO] 14:25:33.913 Load metrics repository [INFO] 14:25:33.936 Load metrics repository (done) | time=23ms [INFO] 14:25:34.786 Sensor JavaSensor [java] [INFO] 14:25:34.790 Configured Java source version (sonar.java.source): 21, preview features enabled (sonar.java.enablePreview): false [INFO] 14:25:34.818 Server-side caching is enabled. The Java analyzer will not try to leverage data from a previous analysis. [INFO] 14:25:34.820 Using ECJ batch to parse 60 Main java source files with batch size 104 KB. [INFO] 14:25:35.187 Starting batch processing. [INFO] 14:25:35.799 The Java analyzer cannot skip unchanged files in this context. A full analysis is performed for all files. [INFO] 14:25:37.785 100% analyzed [INFO] 14:25:37.785 Batch processing: Done. [INFO] 14:25:37.787 Did not optimize analysis for any files, performed a full analysis for all 60 files. [WARNING] 14:25:37.789 Use of preview features have been detected during analysis. Enable DEBUG mode to see them. [INFO] 14:25:37.789 Using ECJ batch to parse 7 Test java source files with batch size 104 KB. [INFO] 14:25:37.799 Starting batch processing. [INFO] 14:25:38.298 100% analyzed [INFO] 14:25:38.298 Batch processing: Done. [INFO] 14:25:38.302 Did not optimize analysis for any files, performed a full analysis for all 7 files. [INFO] 14:25:38.302 No "Generated" source files to scan. [INFO] 14:25:38.302 Sensor JavaSensor [java] (done) | time=3517ms [INFO] 14:25:38.302 Sensor SurefireSensor [java] [INFO] 14:25:38.304 parsing [/home/cecaduser/workspace/MP_202610_G81_E1_Back/target/surefire-reports] [INFO] 14:25:38.409 Sensor SurefireSensor [java] (done) | time=107ms [INFO] 14:25:38.409 Sensor XML Sensor [xml] [INFO] 14:25:38.414 1 source file to be analyzed [INFO] 14:25:38.602 1/1 source file has been analyzed [INFO] 14:25:38.603 Sensor XML Sensor [xml] (done) | time=194ms [INFO] 14:25:38.603 Sensor JaCoCo XML Report Importer [jacoco] [WARNING] 14:25:38.605 No coverage report can be found with sonar.coverage.jacoco.xmlReportPaths='/home/cecaduser/workspace/MP_202610_G81_E1_Back/../target/jacoco-report/jacoco.xml'. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml [INFO] 14:25:38.608 Importing 1 report(s). Turn your logs in debug mode in order to see the exhaustive list. [INFO] 14:25:38.664 Sensor JaCoCo XML Report Importer [jacoco] (done) | time=61ms [INFO] 14:25:38.664 Sensor Java Config Sensor [iac] [INFO] 14:25:38.688 0 source files to be analyzed [INFO] 14:25:38.689 0/0 source files have been analyzed [INFO] 14:25:38.689 Sensor Java Config Sensor [iac] (done) | time=25ms [INFO] 14:25:38.689 Sensor IaC Docker Sensor [iac] [INFO] 14:25:38.771 0 source files to be analyzed [INFO] 14:25:38.771 0/0 source files have been analyzed [INFO] 14:25:38.771 Sensor IaC Docker Sensor [iac] (done) | time=82ms [INFO] 14:25:38.772 Sensor TextAndSecretsSensor [text] [INFO] 14:25:38.772 Available processors: 4 [INFO] 14:25:38.772 Using 4 threads for analysis. [INFO] 14:25:39.177 Using git CLI to retrieve untracked files [WARNING] 14:25:39.185 Analyzing only language associated files, make sure to run the analysis inside a git repository to make use of inclusions specified via "sonar.text.inclusions" [INFO] 14:25:39.205 68 source files to be analyzed [INFO] 14:25:39.375 68/68 source files have been analyzed [INFO] 14:25:39.376 Sensor TextAndSecretsSensor [text] (done) | time=604ms [INFO] 14:25:39.382 ------------- Run sensors on project [INFO] 14:25:39.525 Sensor Zero Coverage Sensor [INFO] 14:25:39.526 Sensor Zero Coverage Sensor (done) | time=1ms [INFO] 14:25:39.526 Sensor Java CPD Block Indexer [INFO] 14:25:39.581 Sensor Java CPD Block Indexer (done) | time=55ms [INFO] 14:25:39.582 ------------- Gather SCA dependencies on project [INFO] 14:25:39.595 SCM Publisher SCM provider for this project is: git [INFO] 14:25:39.597 SCM Publisher 1 source file to be analyzed [INFO] 14:25:39.856 SCM Publisher 1/1 source file have been analyzed (done) | time=258ms [INFO] 14:25:39.863 CPD Executor 28 files had no CPD blocks [INFO] 14:25:39.863 CPD Executor Calculating CPD for 32 files [INFO] 14:25:39.873 CPD Executor CPD calculation finished (done) | time=10ms [INFO] 14:25:39.878 SCM revision ID '12c34a593ba4c456b0f6b9d4ec5ecca109a2e58d' [INFO] 14:25:40.015 Analysis report generated in 126ms, dir size=478.2 kB [INFO] 14:25:40.171 Analysis report compressed in 156ms, zip size=187.6 kB [INFO] 14:25:40.228 Analysis report uploaded in 57ms [INFO] 14:25:40.230 ANALYSIS SUCCESSFUL, you can find the results at: http://10.20.84.26:8082/sonar/dashboard?id=co.edu.udistrital.mdp%3AMP_202610_G81_E1_Back [INFO] 14:25:40.230 Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report [INFO] 14:25:40.230 More about the report processing at http://10.20.84.26:8082/sonar/api/ce/task?id=9977c89b-522a-4809-979e-dcd35e76843c [INFO] 14:25:40.271 Analysis total time: 8.102 s [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 11.610 s [INFO] Finished at: 2026-03-21T14:25:40Z [INFO] ------------------------------------------------------------------------ [Pipeline] } $ docker stop --time=1 ab75ee2f122c40e6240e8e95bccbcc18587b624a5813e549846b645dda23011a $ docker rm -f --volumes ab75ee2f122c40e6240e8e95bccbcc18587b624a5813e549846b645dda23011a [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Declarative: Post Actions) [Pipeline] cleanWs [WS-CLEANUP] Deleting project workspace... [WS-CLEANUP] Deferred wipeout is used... [WS-CLEANUP] done [Pipeline] deleteDir [Pipeline] dir Running in /home/cecaduser/workspace/MP_202610_G81_E1_Back/MP_202610_G81_E1_Back@tmp [Pipeline] { [Pipeline] deleteDir [Pipeline] } [Pipeline] // dir [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline Finished: SUCCESS