From 555e5edecac7af4a648d6ffb0e62744b9e6d394a Mon Sep 17 00:00:00 2001 From: Raja Kolli Date: Fri, 10 May 2024 13:29:56 +0000 Subject: [PATCH] fix : sync with other declarations --- .../com/example/bootbatchjpa/common/TestContainersConfig.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/batch-boot-jpa-sample/src/test/java/com/example/bootbatchjpa/common/TestContainersConfig.java b/batch-boot-jpa-sample/src/test/java/com/example/bootbatchjpa/common/TestContainersConfig.java index abc374381..fd0d02d97 100644 --- a/batch-boot-jpa-sample/src/test/java/com/example/bootbatchjpa/common/TestContainersConfig.java +++ b/batch-boot-jpa-sample/src/test/java/com/example/bootbatchjpa/common/TestContainersConfig.java @@ -2,9 +2,11 @@ import org.springframework.boot.testcontainers.service.connection.ServiceConnection; import org.testcontainers.containers.PostgreSQLContainer; +import org.testcontainers.utility.DockerImageName; public interface TestContainersConfig { @ServiceConnection - PostgreSQLContainer postgreSQLContainer = new PostgreSQLContainer<>("postgres:16.3-alpine"); + PostgreSQLContainer postgreSQLContainer = + new PostgreSQLContainer<>(DockerImageName.parse("postgres:16.3-alpine")); }