Skip to content

Commit 7fec4f5

Browse files
remove Unnecessary Stubbing
1 parent b7e560e commit 7fec4f5

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

server/src/test/java/com/cloud/network/firewall/FirewallManagerTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,11 +357,9 @@ public void testValidateFirewallRuleVpcWithoutAssociatedNetworkUsesVpcCapabiliti
357357
firewallCaps.put(Capability.SupportedEgressProtocols, "tcp,udp,icmp");
358358
capabilities.put(Service.Firewall, firewallCaps);
359359

360-
when(ipAddress.getAssociatedWithNetworkId()).thenReturn(null);
361360
when(ipAddress.getVpcId()).thenReturn(10L);
362361
when(_networkModel.getNetwork(2L)).thenReturn(network);
363362
when(network.getVpcId()).thenReturn(10L);
364-
when(network.getDataCenterId()).thenReturn(1L);
365363
when(routedIpv4Manager.isVirtualRouterGateway(network)).thenReturn(false);
366364
when(firewallServiceProvider.getProvider()).thenReturn(Network.Provider.VPCVirtualRouter);
367365
when(firewallServiceProvider.getCapabilities()).thenReturn(capabilities);

0 commit comments

Comments
 (0)