danepitkin commented on code in PR #37125:
URL: https://github.com/apache/arrow/pull/37125#discussion_r1291654081


##########
java/flight/flight-sql-jdbc-core/src/test/java/org/apache/arrow/driver/jdbc/client/utils/ClientAuthenticationUtilsTest.java:
##########
@@ -158,7 +158,7 @@ private MockedStatic<KeyStore> createKeyStoreStaticMock() {
           if (method.getName().equals("getInstance")) {
             return invocationOnMock.callRealMethod();
           }
-          return invocationOnMock.getMock();

Review Comment:
   If we supply a lambda (`invocationOnMock`), we need to return the method 
result. Previously, we were just returning the Mock object without invoking the 
mocked method.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to