xushiyan commented on a change in pull request #1521: [HUDI-798] Migrate to 
Mockito Jupiter for JUnit 5
URL: https://github.com/apache/incubator-hudi/pull/1521#discussion_r409317776
 
 

 ##########
 File path: 
hudi-hadoop-mr/src/test/java/org/apache/hudi/hadoop/realtime/TestHoodieRealtimeFileSplit.java
 ##########
 @@ -140,7 +132,7 @@ public Integer answer(InvocationOnMock invocationOnMock) 
throws Throwable {
 
       @Override
       public Void answer(InvocationOnMock invocation) throws Throwable {
-        byte[] bytes = invocation.getArgumentAt(0, byte[].class);
+        byte[] bytes = invocation.getArgument(0);
 
 Review comment:
   the new API refers getArgument()
   
https://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/invocation/InvocationOnMock.html#getArgument-int-

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to