erickalendra commented on code in PR #10686:
URL: https://github.com/apache/cloudstack/pull/10686#discussion_r2037790103


##########
server/src/test/java/com/cloud/resourcelimit/ResourceLimitManagerImplTest.java:
##########
@@ -288,6 +283,7 @@ public void testCheckVmResourceLimit() {
         Mockito.when(template.getTemplateTag()).thenReturn(hostTags.get(0));
         Account account = Mockito.mock(Account.class);
         try {
+            
Mockito.doNothing().when(resourceLimitManager).checkResourceLimitWithTag(Mockito.any(),
 Mockito.any(), Mockito.any());

Review Comment:
   Different method signature match.
   
   Without the line the tests fails due to `checkResourceLimitWithTag` not 
being mocked when the varargs is empty.
   
   It appears to be a change with varargs matching being slightly different in 
Mockito 5.



-- 
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