remove Unnecessary Stubbing

This commit is contained in:
Harikrishna Patnala 2026-05-12 16:18:08 +05:30
parent 3ff4cd3103
commit 8efc755476
1 changed files with 0 additions and 2 deletions

View File

@ -357,11 +357,9 @@ public class FirewallManagerTest {
firewallCaps.put(Capability.SupportedEgressProtocols, "tcp,udp,icmp");
capabilities.put(Service.Firewall, firewallCaps);
when(ipAddress.getAssociatedWithNetworkId()).thenReturn(null);
when(ipAddress.getVpcId()).thenReturn(10L);
when(_networkModel.getNetwork(2L)).thenReturn(network);
when(network.getVpcId()).thenReturn(10L);
when(network.getDataCenterId()).thenReturn(1L);
when(routedIpv4Manager.isVirtualRouterGateway(network)).thenReturn(false);
when(firewallServiceProvider.getProvider()).thenReturn(Network.Provider.VPCVirtualRouter);
when(firewallServiceProvider.getCapabilities()).thenReturn(capabilities);