From f53422fa8cd52b721cea69e14208ddf7c1ca7efe Mon Sep 17 00:00:00 2001 From: Ksan Date: Thu, 4 Jun 2026 00:03:07 +0200 Subject: [PATCH] added test application.properties --- backend/build.gradle | 2 +- backend/src/test/resources/application.properties | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 backend/src/test/resources/application.properties diff --git a/backend/build.gradle b/backend/build.gradle index 67d1e05..4d8acd3 100644 --- a/backend/build.gradle +++ b/backend/build.gradle @@ -45,7 +45,7 @@ dependencies { - + testRuntimeOnly 'com.h2database:h2' testImplementation 'org.springframework.boot:spring-boot-starter-test' testImplementation("org.testcontainers:postgresql:1.21.3") testImplementation("org.testcontainers:junit-jupiter:1.21.4") diff --git a/backend/src/test/resources/application.properties b/backend/src/test/resources/application.properties new file mode 100644 index 0000000..d3c2bf6 --- /dev/null +++ b/backend/src/test/resources/application.properties @@ -0,0 +1,7 @@ +spring.datasource.url=jdbc:h2:mem:etfo-db;MODE=PostgreSQL;DATABASE_TO_LOWER=TRUE +spring.datasource.driver-class-name=org.h2.Driver +spring.datasource.username=test +spring.datasource.password=test +spring.jpa.hibernate.ddl-auto=create-drop +spring.jpa.database-platform=org.hibernate.dialect.H2Dialect +firebase.enabled=false \ No newline at end of file