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

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


The following commit(s) were added to refs/heads/main by this push:
     new 27bbc3c281 GH-42208: [Java] Fix the Test in flight-sql-jdbc-driver 
Module (#42217)
27bbc3c281 is described below

commit 27bbc3c281856baade5161b46b717188f0441ed7
Author: Hyunseok Seo <[email protected]>
AuthorDate: Fri Jun 21 08:46:52 2024 +0900

    GH-42208: [Java] Fix the Test in flight-sql-jdbc-driver Module (#42217)
    
    
    
    ### Rationale for this change
    
    Adjust assertion message order for JUnit 5 compatibility.
    
    ### What changes are included in this PR?
    
    - Reordering the arguments of `assertEquals(expected, actual, message)`
    
    ### Are these changes tested?
    
    Yes.
    
    ### Are there any user-facing changes?
    
    No.
    
    * GitHub Issue: #42208
    
    Authored-by: Hyunseok Seo <[email protected]>
    Signed-off-by: David Li <[email protected]>
---
 .../test/java/org/apache/arrow/driver/jdbc/ITDriverJarValidation.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/java/flight/flight-sql-jdbc-driver/src/test/java/org/apache/arrow/driver/jdbc/ITDriverJarValidation.java
 
b/java/flight/flight-sql-jdbc-driver/src/test/java/org/apache/arrow/driver/jdbc/ITDriverJarValidation.java
index c258b56811..b45845485a 100644
--- 
a/java/flight/flight-sql-jdbc-driver/src/test/java/org/apache/arrow/driver/jdbc/ITDriverJarValidation.java
+++ 
b/java/flight/flight-sql-jdbc-driver/src/test/java/org/apache/arrow/driver/jdbc/ITDriverJarValidation.java
@@ -70,7 +70,7 @@ public class ITDriverJarValidation {
 
     assertNotNull(driverClassURL, "Driver jar was not detected in the 
classpath");
     assertEquals(
-        "Driver jar was not detected in the classpath", "jar", 
driverClassURL.getProtocol());
+        "jar", driverClassURL.getProtocol(), "Driver jar was not detected in 
the classpath");
 
     JarURLConnection connection = (JarURLConnection) 
driverClassURL.openConnection();
     return connection.getJarFile();

Reply via email to