From 23c854c1f216a121d29b8fcaf29639dbbc63f2e0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 1 May 2026 14:08:26 +0000 Subject: [PATCH 1/2] chore(deps): bump org.testcontainers:testcontainers-bom in /backend Bumps [org.testcontainers:testcontainers-bom](https://github.com/testcontainers/testcontainers-java) from 1.21.4 to 2.0.5. - [Release notes](https://github.com/testcontainers/testcontainers-java/releases) - [Changelog](https://github.com/testcontainers/testcontainers-java/blob/main/CHANGELOG.md) - [Commits](https://github.com/testcontainers/testcontainers-java/compare/1.21.4...2.0.5) --- updated-dependencies: - dependency-name: org.testcontainers:testcontainers-bom dependency-version: 2.0.5 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- backend/build.gradle | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/build.gradle b/backend/build.gradle index 5d66840..806d22a 100644 --- a/backend/build.gradle +++ b/backend/build.gradle @@ -33,9 +33,9 @@ dependencies { testImplementation 'io.projectreactor:reactor-test' // Add this for StepVerifier // Test containers - testImplementation platform('org.testcontainers:testcontainers-bom:1.21.4') - testImplementation 'org.testcontainers:junit-jupiter:1.21.4' - testImplementation 'org.testcontainers:mongodb:1.21.4' + testImplementation platform('org.testcontainers:testcontainers-bom:2.0.5') + testImplementation 'org.testcontainers:junit-jupiter:2.0.5' + testImplementation 'org.testcontainers:mongodb:2.0.5' // end::tests[] testRuntimeOnly 'org.junit.platform:junit-platform-launcher' From c5a9fc73a59aab93aa6d0b4f74144aed5e191dca Mon Sep 17 00:00:00 2001 From: psytraxx Date: Sun, 2 Aug 2026 18:55:28 +0200 Subject: [PATCH 2/2] fix(test): use renamed Testcontainers 2.x artifact ids Testcontainers 2.0 renamed the module artifacts: mongodb -> testcontainers-mongodb and junit-jupiter -> testcontainers-junit-jupiter. Dependabot bumped only the versions, so dependency resolution failed. Versions now come from the BOM, and MongoDBContainer is imported from its new org.testcontainers.mongodb package instead of the deprecated shim. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01QgVgdk4CKJRu2MyrLVK4Wx --- backend/build.gradle | 4 ++-- .../com/ssechat/controller/ChatMessageControllerTest.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/build.gradle b/backend/build.gradle index 806d22a..64be97d 100644 --- a/backend/build.gradle +++ b/backend/build.gradle @@ -34,8 +34,8 @@ dependencies { // Test containers testImplementation platform('org.testcontainers:testcontainers-bom:2.0.5') - testImplementation 'org.testcontainers:junit-jupiter:2.0.5' - testImplementation 'org.testcontainers:mongodb:2.0.5' + testImplementation 'org.testcontainers:testcontainers-junit-jupiter' + testImplementation 'org.testcontainers:testcontainers-mongodb' // end::tests[] testRuntimeOnly 'org.junit.platform:junit-platform-launcher' diff --git a/backend/src/test/java/com/ssechat/controller/ChatMessageControllerTest.java b/backend/src/test/java/com/ssechat/controller/ChatMessageControllerTest.java index 2067750..4280b15 100755 --- a/backend/src/test/java/com/ssechat/controller/ChatMessageControllerTest.java +++ b/backend/src/test/java/com/ssechat/controller/ChatMessageControllerTest.java @@ -14,7 +14,7 @@ import org.springframework.test.context.junit.jupiter.SpringExtension; import org.springframework.test.web.reactive.server.WebTestClient; import org.springframework.web.reactive.function.BodyInserters; -import org.testcontainers.containers.MongoDBContainer; +import org.testcontainers.mongodb.MongoDBContainer; import org.testcontainers.junit.jupiter.Container; import org.testcontainers.junit.jupiter.Testcontainers; import org.testcontainers.utility.DockerImageName;