Skip to content

Console Output

+ mvn test
[INFO] Scanning for projects...
[INFO] 
[INFO] ------------< co.edu.udistrital.mdp:MP_202610_G81_E2_Back >-------------
[INFO] Building MP_202610_G81_E2_Back 0.0.1-SNAPSHOT
[INFO]   from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- jacoco:0.8.11:prepare-agent (jacoco-initialize) @ MP_202610_G81_E2_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_E2_Back/target/jacoco.exec
[INFO] 
[INFO] --- resources:3.3.1:resources (default-resources) @ MP_202610_G81_E2_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_E2_Back ---
[INFO] Nothing to compile - all classes are up to date.
[INFO] 
[INFO] --- resources:3.3.1:testResources (default-testResources) @ MP_202610_G81_E2_Back ---
[INFO] skip non existing resourceDirectory /home/cecaduser/workspace/MP_202610_G81_E2_Back/src/test/resources
[INFO] 
[INFO] --- compiler:3.14.1:testCompile (default-testCompile) @ MP_202610_G81_E2_Back ---
[INFO] Nothing to compile - all classes are up to date.
[INFO] 
[INFO] --- surefire:2.22.1:test (default-test) @ MP_202610_G81_E2_Back ---
[INFO] 
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running co.edu.udistrital.mdp.pets.entities.ShelterEntityTest
02:55:15.125 [main] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils -- Could not detect default configuration classes for test class [co.edu.udistrital.mdp.pets.entities.ShelterEntityTest]: ShelterEntityTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
02:55:15.370 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper -- Found @SpringBootConfiguration co.edu.udistrital.mdp.pets.MainApplication for test class co.edu.udistrital.mdp.pets.entities.ShelterEntityTest

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/

 :: Spring Boot ::               (v3.5.10)

2026-03-07T02:55:16.078Z  INFO 76 --- [           main] c.e.u.m.pets.entities.ShelterEntityTest  : Starting ShelterEntityTest using Java 21.0.4 with PID 76 (started by root in /home/cecaduser/workspace/MP_202610_G81_E2_Back)
2026-03-07T02:55:16.079Z  INFO 76 --- [           main] c.e.u.m.pets.entities.ShelterEntityTest  : No active profile set, falling back to 1 default profile: "default"
2026-03-07T02:55:16.729Z  INFO 76 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2026-03-07T02:55:16.832Z  INFO 76 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 82 ms. Found 1 JPA repository interface.
2026-03-07T02:55:16.927Z  INFO 76 --- [           main] beddedDataSourceBeanFactoryPostProcessor : Replacing 'dataSource' DataSource bean with embedded version
2026-03-07T02:55:17.075Z  INFO 76 --- [           main] o.s.j.d.e.EmbeddedDatabaseFactory        : Starting embedded database: url='jdbc:h2:mem:df936679-5022-4662-bcef-68ccb24334ed;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=false', username='sa'
2026-03-07T02:55:17.769Z  INFO 76 --- [           main] o.hibernate.jpa.internal.util.LogHelper  : HHH000204: Processing PersistenceUnitInfo [name: default]
2026-03-07T02:55:17.865Z  INFO 76 --- [           main] org.hibernate.Version                    : HHH000412: Hibernate ORM core version 6.6.41.Final
2026-03-07T02:55:17.930Z  INFO 76 --- [           main] o.h.c.internal.RegionFactoryInitiator    : HHH000026: Second-level cache disabled
2026-03-07T02:55:18.452Z  INFO 76 --- [           main] o.s.o.j.p.SpringPersistenceUnitInfo      : No LoadTimeWeaver setup: ignoring JPA class transformer
2026-03-07T02:55:18.541Z  WARN 76 --- [           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-07T02:55:18.580Z  INFO 76 --- [           main] org.hibernate.orm.connections.pooling    : HHH10001005: Database info:
	Database JDBC URL [Connecting through datasource 'org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactory$EmbeddedDataSourceProxy@2b867623']
	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_adoption_process_entity(id bigint not null, primary key (id)) TRANSACTIONAL
Hibernate: create global temporary table HTE_adoption_process_entity(approved boolean, creation_date date, end_date date, start_date date, HTE_IDENTITY bigint generated by default as identity, adoption_request_id bigint, id bigint, status varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL
Hibernate: create global temporary table HTE_trial_cohabitation_entity(approved boolean, creation_date date, end_date date, start_date date, HTE_IDENTITY bigint generated by default as identity, adoption_request_id bigint, id bigint, status varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL
Hibernate: create global temporary table HTE_user_entity(HTE_IDENTITY bigint generated by default as identity, id bigint, register_date timestamp(6), shelter_id bigint, address varchar(255), availability_schedule varchar(255), city varchar(255), email varchar(255), housing_type varchar(255), license_number varchar(255), name varchar(255), password varchar(255), phone_number varchar(255), profile_image_url varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL
Hibernate: create global temporary table HT_veterinarian_entity(id bigint not null, primary key (id)) TRANSACTIONAL
Hibernate: create global temporary table HTE_veterinarian_entity(HTE_IDENTITY bigint generated by default as identity, id bigint, register_date timestamp(6), shelter_id bigint, availability_schedule varchar(255), email varchar(255), license_number varchar(255), name varchar(255), password varchar(255), phone_number varchar(255), profile_image_url varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL
Hibernate: create global temporary table HT_adopter_entity(id bigint not null, primary key (id)) TRANSACTIONAL
Hibernate: create global temporary table HTE_adopter_entity(HTE_IDENTITY bigint generated by default as identity, id bigint, register_date timestamp(6), address varchar(255), city varchar(255), email varchar(255), housing_type varchar(255), password varchar(255), phone_number varchar(255), profile_image_url varchar(255), primary key (HTE_IDENTITY)) TRANSACTIONAL
Hibernate: create global temporary table HT_user_entity(id bigint not null, primary key (id)) TRANSACTIONAL
2026-03-07T02:55:20.817Z  INFO 76 --- [           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_process_entity cascade 
Hibernate: drop table if exists adoption_request_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 notification_entity cascade 
Hibernate: drop table if exists pet_entity cascade 
Hibernate: drop table if exists return_case_entity cascade 
Hibernate: drop table if exists review_entity cascade 
Hibernate: drop table if exists shelter_entity cascade 
Hibernate: drop table if exists shelter_media_entity cascade 
Hibernate: drop table if exists trial_cohabitation_entity cascade 
Hibernate: drop table if exists user_entity cascade 
Hibernate: drop table if exists vaccine_entry_entity cascade 
Hibernate: drop table if exists vet_speciality_relation cascade 
Hibernate: drop table if exists veterinarian_entity cascade 
Hibernate: drop table if exists vet_speciality_entity cascade 
Hibernate: create table adopter_entity (id bigint not null, address varchar(255), city varchar(255), housing_type varchar(255), primary key (id))
Hibernate: create table adoption_entity (contract_signed boolean, id bigint generated by default as identity, official_date timestamp(6), pet_id bigint, trial_cohabitation_id bigint unique, primary key (id))
Hibernate: create table adoption_process_entity (creation_date date, adoption_request_id bigint unique, id bigint generated by default as identity, status varchar(255), primary key (id))
Hibernate: create table adoption_request_entity (request_date date, adopter_id bigint, id bigint generated by default as identity, comments varchar(255), status varchar(255), primary key (id))
Hibernate: create table medical_event_entity (event_date date, id bigint generated by default as identity, medical_history_id bigint, description varchar(255), event_type varchar(255), primary key (id))
Hibernate: create table medical_history_entity (created_date date, last_updated date, id bigint generated by default as identity, pet_id bigint unique, primary key (id))
Hibernate: create table message_entity (is_read boolean, id bigint generated by default as identity, receiver_id bigint, sender_id bigint, sent_at timestamp(6), content varchar(255), primary key (id))
Hibernate: create table notification_entity (is_read boolean, created_at timestamp(6), id bigint generated by default as identity, user_id bigint, content varchar(255), title varchar(255), primary key (id))
Hibernate: create table pet_entity (born_date date, is_rescued boolean not null, id bigint generated by default as identity, shelter_id bigint, breed varchar(255), name varchar(255), sex varchar(255), size varchar(255), species varchar(255), specific_needs varchar(255), status varchar(255), temperament varchar(255), primary key (id))
Hibernate: create table return_case_entity (return_date date, adoption_process_id bigint unique, id bigint generated by default as identity, details varchar(255), reason varchar(255), primary key (id))
Hibernate: create table review_entity (is_success_story boolean, rating integer, adopter_id bigint, id bigint generated by default as identity, shelter_id bigint, comment varchar(255), primary key (id))
Hibernate: create table shelter_entity (id bigint generated by default as identity, city varchar(255), description varchar(255), location_details varchar(255), shelter_name varchar(255), website_url varchar(255), primary key (id))
Hibernate: create table shelter_media_entity (id bigint generated by default as identity, shelter_id bigint, description varchar(255), media_type varchar(255), media_url varchar(255), primary key (id))
Hibernate: create table trial_cohabitation_entity (approved boolean, end_date date, start_date date, id bigint not null, primary key (id))
Hibernate: create table user_entity (id bigint generated by default as identity, register_date timestamp(6), email varchar(255), password varchar(255), phone_number varchar(255), profile_image_url varchar(255), primary key (id))
Hibernate: create table vaccine_entry_entity (admin_date date, next_due_date date, id bigint generated by default as identity, medical_history_id bigint, vaccine_name varchar(255), primary key (id))
Hibernate: create table vet_speciality_relation (speciality_id bigint not null, vet_id bigint not null)
Hibernate: create table veterinarian_entity (id bigint not null, shelter_id bigint, availability_schedule varchar(255), license_number varchar(255), name varchar(255), primary key (id))
Hibernate: create table vet_speciality_entity (id bigint generated by default as identity, description varchar(255), name 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 FKqmviggw0khaskxup4cg7bvqku foreign key (pet_id) references pet_entity
Hibernate: alter table if exists adoption_entity add constraint FK8x0rs5b3npfj9w92mh30nhdd5 foreign key (trial_cohabitation_id) references trial_cohabitation_entity
Hibernate: alter table if exists adoption_process_entity add constraint FK1wpy6iv96dq7w9my6g9bl77gi foreign key (adoption_request_id) references adoption_request_entity
Hibernate: alter table if exists adoption_request_entity add constraint FK90j2qmgnqst03l9x6fpwf0aab foreign key (adopter_id) references adopter_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_history_entity add constraint FKfqo1kwpy0eom46u48u9i9ob79 foreign key (pet_id) references pet_entity
Hibernate: alter table if exists message_entity add constraint FKf1eboma4d9p0wlj48qwpd2ban foreign key (receiver_id) references user_entity
Hibernate: alter table if exists message_entity add constraint FKchngvnhlot2wncosjrnmd1qjp foreign key (sender_id) references user_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 return_case_entity add constraint FKq5oky202hvs0kv9upfkolmn88 foreign key (adoption_process_id) references adoption_process_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 FKrt9pkjnacboa4fc7ug82wm7cw foreign key (shelter_id) references shelter_entity
Hibernate: alter table if exists shelter_media_entity add constraint FK6couwlbflod3yxf2r9yu7augk foreign key (shelter_id) references shelter_entity
Hibernate: alter table if exists trial_cohabitation_entity add constraint FK15m52vl1kqpw9j5fsv1osa8jx foreign key (id) references adoption_process_entity
Hibernate: alter table if exists vaccine_entry_entity add constraint FKiljjk4cjlbiilp7fohur5nf5g foreign key (medical_history_id) references medical_history_entity
Hibernate: alter table if exists vet_speciality_relation add constraint FK6hx84a5ij49rxm81pmx8t6mq7 foreign key (speciality_id) references vet_speciality_entity
Hibernate: alter table if exists vet_speciality_relation add constraint FKco5ttqfls718a193w5l2np2oe foreign key (vet_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-07T02:55:20.950Z  INFO 76 --- [           main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2026-03-07T02:55:21.346Z  INFO 76 --- [           main] c.e.u.m.pets.entities.ShelterEntityTest  : Started ShelterEntityTest in 5.859 seconds (process running for 7.562)
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
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: insert into shelter_entity (city,description,location_details,shelter_name,website_url,id) values (?,?,?,?,?,default)
Hibernate: insert into shelter_entity (city,description,location_details,shelter_name,website_url,id) values (?,?,?,?,?,default)
Hibernate: insert into shelter_entity (city,description,location_details,shelter_name,website_url,id) values (?,?,?,?,?,default)
Hibernate: insert into shelter_entity (city,description,location_details,shelter_name,website_url,id) values (?,?,?,?,?,default)
Hibernate: insert into shelter_entity (city,description,location_details,shelter_name,website_url,id) values (?,?,?,?,?,default)
Hibernate: insert into shelter_entity (city,description,location_details,shelter_name,website_url,id) values (?,?,?,?,?,default)
Hibernate: insert into shelter_entity (city,description,location_details,shelter_name,website_url,id) values (?,?,?,?,?,default)
[INFO] Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.252 s - in co.edu.udistrital.mdp.pets.entities.ShelterEntityTest
[INFO] Running co.edu.udistrital.mdp.pets.config.ApplicationConfigTest
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.012 s - in co.edu.udistrital.mdp.pets.config.ApplicationConfigTest
2026-03-07T02:55:22.310Z  INFO 76 --- [ionShutdownHook] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default'
Hibernate: drop table if exists adopter_entity cascade 
Hibernate: drop table if exists adoption_entity cascade 
Hibernate: drop table if exists adoption_process_entity cascade 
Hibernate: drop table if exists adoption_request_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 notification_entity cascade 
Hibernate: drop table if exists pet_entity cascade 
Hibernate: drop table if exists return_case_entity cascade 
Hibernate: drop table if exists review_entity cascade 
Hibernate: drop table if exists shelter_entity cascade 
Hibernate: drop table if exists shelter_media_entity cascade 
Hibernate: drop table if exists trial_cohabitation_entity cascade 
Hibernate: drop table if exists user_entity cascade 
Hibernate: drop table if exists vaccine_entry_entity cascade 
Hibernate: drop table if exists vet_speciality_relation cascade 
Hibernate: drop table if exists veterinarian_entity cascade 
Hibernate: drop table if exists vet_speciality_entity cascade 
[INFO] 
[INFO] Results:
[INFO] 
[INFO] Tests run: 10, Failures: 0, Errors: 0, Skipped: 0
[INFO] 
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  10.333 s
[INFO] Finished at: 2026-03-07T02:55:22Z
[INFO] ------------------------------------------------------------------------