itsayushpandey commented on code in PR #7712:
URL: https://github.com/apache/cloudstack/pull/7712#discussion_r1375576076
##########
server/src/test/java/org/apache/cloudstack/vm/UnmanagedVMsManagerImplTest.java:
##########
@@ -278,7 +282,6 @@ public void setUp() throws Exception {
nullable(String.class),
nullable(Hypervisor.HypervisorType.class), nullable(Map.class),
nullable(VirtualMachine.PowerState.class))).thenReturn(userVm);
NetworkVO networkVO = Mockito.mock(NetworkVO.class);
when(networkVO.getGuestType()).thenReturn(Network.GuestType.L2);
-
when(networkVO.getBroadcastUri()).thenReturn(URI.create(String.format("vlan://%d",
instanceNic.getVlan())));
Review Comment:
This mocking was not needed (tests pass after removal) after refactoring in
other PRs (not this PR). So after rebasing, I was getting Mockito failures and
so is not needed anymore.
--
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]