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

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


The following commit(s) were added to refs/heads/main by this push:
     new 53f9a91d94 Build: Upgrade mockito from 4.11.0 to 5.24.0 (#19083)
53f9a91d94 is described below

commit 53f9a91d94ecd743b25df93d67a4264c7754be33
Author: Yuya Ebihara <[email protected]>
AuthorDate: Mon Nov 23 17:26:22 2026 +0900

    Build: Upgrade mockito from 4.11.0 to 5.24.0 (#19083)
    
    Remove mockito-inline, which is merged into mockito-core since 5.0.
---
 build.gradle                                                     | 1 -
 gradle/libs.versions.toml                                        | 3 +--
 .../java/org/apache/iceberg/snowflake/JdbcSnowflakeClient.java   | 4 ++--
 .../org/apache/iceberg/snowflake/TestJdbcSnowflakeClient.java    | 9 +++------
 4 files changed, 6 insertions(+), 11 deletions(-)

diff --git a/build.gradle b/build.gradle
index 4c1a66763c..4d7b4d0665 100644
--- a/build.gradle
+++ b/build.gradle
@@ -248,7 +248,6 @@ subprojects {
     testImplementation libs.junit.platform.launcher
     testImplementation libs.slf4j.simple
     testImplementation libs.mockito.core
-    testImplementation libs.mockito.inline
     testImplementation libs.assertj.core
   }
 
diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml
index 91a348dee6..8d9b40e577 100644
--- a/gradle/libs.versions.toml
+++ b/gradle/libs.versions.toml
@@ -72,7 +72,7 @@ junit-pioneer = "2.3.0"
 kafka = "3.9.2"
 lz4Java = "1.14.0"
 microprofile-openapi-api = "4.2"
-mockito = "4.11.0"
+mockito = "5.24.0"
 mockserver = "5.15.0"
 nessie = "0.110.0"
 netty-buffer = "4.2.20.Final"
@@ -202,7 +202,6 @@ junit-platform-launcher = { module = 
"org.junit.platform:junit-platform-launcher
 junit-suite-api = { module = "org.junit.platform:junit-platform-suite-api", 
version.ref = "junit" }
 junit-suite-engine = { module = 
"org.junit.platform:junit-platform-suite-engine", version.ref = "junit" }
 mockito-core = { module = "org.mockito:mockito-core", version.ref = "mockito" }
-mockito-inline = { module = "org.mockito:mockito-inline", version.ref = 
"mockito" }
 mockito-junit-jupiter = { module = "org.mockito:mockito-junit-jupiter", 
version.ref = "mockito" }
 mockserver-netty = { module = "org.mock-server:mockserver-netty", version.ref 
= "mockserver" }
 nessie-jaxrs-testextension = { module = 
"org.projectnessie.nessie:nessie-jaxrs-testextension", version.ref = "nessie" }
diff --git 
a/snowflake/src/main/java/org/apache/iceberg/snowflake/JdbcSnowflakeClient.java 
b/snowflake/src/main/java/org/apache/iceberg/snowflake/JdbcSnowflakeClient.java
index e947db362a..e3a46a722e 100644
--- 
a/snowflake/src/main/java/org/apache/iceberg/snowflake/JdbcSnowflakeClient.java
+++ 
b/snowflake/src/main/java/org/apache/iceberg/snowflake/JdbcSnowflakeClient.java
@@ -236,7 +236,7 @@ class JdbcSnowflakeClient implements SnowflakeClient {
   @Override
   public List<SnowflakeIdentifier> listSchemas(SnowflakeIdentifier scope) {
     StringBuilder baseQuery = new StringBuilder("SHOW SCHEMAS");
-    String[] queryParams = null;
+    String[] queryParams = new String[0];
     switch (scope.type()) {
       case ROOT:
         // account-level listing
@@ -281,7 +281,7 @@ class JdbcSnowflakeClient implements SnowflakeClient {
   @Override
   public List<SnowflakeIdentifier> listIcebergTables(SnowflakeIdentifier 
scope) {
     StringBuilder baseQuery = new StringBuilder("SHOW ICEBERG TABLES");
-    String[] queryParams = null;
+    String[] queryParams = new String[0];
     switch (scope.type()) {
       case ROOT:
         // account-level listing
diff --git 
a/snowflake/src/test/java/org/apache/iceberg/snowflake/TestJdbcSnowflakeClient.java
 
b/snowflake/src/test/java/org/apache/iceberg/snowflake/TestJdbcSnowflakeClient.java
index b327ac4661..3ab28c985e 100644
--- 
a/snowflake/src/test/java/org/apache/iceberg/snowflake/TestJdbcSnowflakeClient.java
+++ 
b/snowflake/src/test/java/org/apache/iceberg/snowflake/TestJdbcSnowflakeClient.java
@@ -42,7 +42,6 @@ import org.apache.iceberg.jdbc.UncheckedSQLException;
 import org.junit.jupiter.api.BeforeEach;
 import org.junit.jupiter.api.Test;
 import org.junit.jupiter.api.extension.ExtendWith;
-import org.mockito.ArgumentMatchers;
 import org.mockito.Mock;
 import org.mockito.junit.jupiter.MockitoExtension;
 import org.mockito.junit.jupiter.MockitoSettings;
@@ -75,7 +74,7 @@ public class TestJdbcSnowflakeClient {
             any(Connection.class),
             any(String.class),
             any(JdbcSnowflakeClient.ResultSetParser.class),
-            ArgumentMatchers.<String>any());
+            any(String[].class));
   }
 
   @Test
@@ -337,8 +336,7 @@ public class TestJdbcSnowflakeClient {
         .query(
             eq(mockConnection),
             eq("SHOW SCHEMAS IN ACCOUNT"),
-            any(JdbcSnowflakeClient.ResultSetParser.class),
-            eq(null));
+            any(JdbcSnowflakeClient.ResultSetParser.class));
 
     assertThat(actualList)
         .containsExactly(
@@ -496,8 +494,7 @@ public class TestJdbcSnowflakeClient {
         .query(
             eq(mockConnection),
             eq("SHOW ICEBERG TABLES IN ACCOUNT"),
-            any(JdbcSnowflakeClient.ResultSetParser.class),
-            eq(null));
+            any(JdbcSnowflakeClient.ResultSetParser.class));
 
     assertThat(actualList)
         .containsExactly(

Reply via email to