This is an automated email from the ASF dual-hosted git repository.

singhpk234 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/polaris.git


The following commit(s) were added to refs/heads/main by this push:
     new 5d77feb2e Use mainstream PostgreSQLContainer (#3345)
5d77feb2e is described below

commit 5d77feb2e6699cacf229b56a45c615a247b5c43f
Author: Dmitri Bourlatchkov <[email protected]>
AuthorDate: Wed Dec 31 20:06:20 2025 -0500

    Use mainstream PostgreSQLContainer (#3345)
    
    Migrate from the deprecated PostgreSQLContainer class to the
    mainstream one as suggested by javadoc.
---
 .../test/commons/PostgresRelationalJdbcLifeCycleManagement.java     | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/runtime/test-common/src/main/java/org/apache/polaris/test/commons/PostgresRelationalJdbcLifeCycleManagement.java
 
b/runtime/test-common/src/main/java/org/apache/polaris/test/commons/PostgresRelationalJdbcLifeCycleManagement.java
index 17993fd27..95a491a16 100644
--- 
a/runtime/test-common/src/main/java/org/apache/polaris/test/commons/PostgresRelationalJdbcLifeCycleManagement.java
+++ 
b/runtime/test-common/src/main/java/org/apache/polaris/test/commons/PostgresRelationalJdbcLifeCycleManagement.java
@@ -23,13 +23,13 @@ import static 
org.apache.polaris.containerspec.ContainerSpecHelper.containerSpec
 import io.quarkus.test.common.DevServicesContext;
 import io.quarkus.test.common.QuarkusTestResourceLifecycleManager;
 import java.util.Map;
-import org.testcontainers.containers.PostgreSQLContainer;
+import org.testcontainers.postgresql.PostgreSQLContainer;
 
 public class PostgresRelationalJdbcLifeCycleManagement
     implements QuarkusTestResourceLifecycleManager, 
DevServicesContext.ContextAware {
   public static final String INIT_SCRIPT = "init-script";
 
-  private PostgreSQLContainer<?> postgres;
+  private PostgreSQLContainer postgres;
   private String initScript;
   private DevServicesContext context;
 
@@ -42,7 +42,7 @@ public class PostgresRelationalJdbcLifeCycleManagement
   @SuppressWarnings("resource")
   public Map<String, String> start() {
     postgres =
-        new PostgreSQLContainer<>(
+        new PostgreSQLContainer(
                 containerSpecHelper("postgres", 
PostgresRelationalJdbcLifeCycleManagement.class)
                     .dockerImageName(null)
                     .asCompatibleSubstituteFor("postgres"))

Reply via email to