From 6191916af3815902359244c2c155b4310e2160a9 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Sun, 26 Jul 2026 16:19:04 +0000
Subject: [PATCH 1/2] Initial plan
From 9c6a68c87c497803acf1fe0725bc7d0afbe44711 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Sun, 26 Jul 2026 16:23:03 +0000
Subject: [PATCH 2/2] Fix CI JDK mismatch and stabilize tests with in-memory DB
---
.github/workflows/maven.yml | 4 ++--
pom.xml | 5 +++++
src/test/resources/application.properties | 6 ++++++
3 files changed, 13 insertions(+), 2 deletions(-)
create mode 100644 src/test/resources/application.properties
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index c6bb036..1a6afc6 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -21,10 +21,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- - name: Set up JDK 17
+ - name: Set up JDK 21
uses: actions/setup-java@v4
with:
- java-version: '17'
+ java-version: '21'
distribution: 'temurin'
cache: maven
- name: Build with Maven
diff --git a/pom.xml b/pom.xml
index d2de167..52733a6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -72,6 +72,11 @@
spring-boot-starter-test
test
+
+ com.h2database
+ h2
+ test
+
diff --git a/src/test/resources/application.properties b/src/test/resources/application.properties
new file mode 100644
index 0000000..7a8d092
--- /dev/null
+++ b/src/test/resources/application.properties
@@ -0,0 +1,6 @@
+spring.datasource.url=jdbc:h2:mem:testdb;MODE=PostgreSQL;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
+spring.datasource.driver-class-name=org.h2.Driver
+spring.datasource.username=sa
+spring.datasource.password=
+spring.jpa.hibernate.ddl-auto=create-drop
+spring.jpa.database-platform=org.hibernate.dialect.H2Dialect