Prachi's commit 20a747601c introduced a

new call to network.getPhysicalNetworkId() which wasn't mocked yet in
the nvp plugin unittests.
This commit is contained in:
Hugo Trippaers 2013-02-21 12:27:18 +01:00
parent 8b2aabe687
commit aea5b268b4
1 changed files with 3 additions and 1 deletions

View File

@ -252,6 +252,7 @@ public class NiciraNvpGuestNetworkGuruTest {
NetworkVO network = mock(NetworkVO.class);
when(network.getName()).thenReturn("testnetwork");
when(network.getState()).thenReturn(State.Implementing);
when(network.getPhysicalNetworkId()).thenReturn(42L);
DeployDestination dest = mock(DeployDestination.class);
@ -308,7 +309,7 @@ public class NiciraNvpGuestNetworkGuruTest {
when(network.getState()).thenReturn(State.Implementing);
when(network.getGateway()).thenReturn("10.1.1.1");
when(network.getCidr()).thenReturn("10.1.1.0/24");
when(network.getPhysicalNetworkId()).thenReturn(42L);
DeployDestination dest = mock(DeployDestination.class);
@ -365,6 +366,7 @@ public class NiciraNvpGuestNetworkGuruTest {
NetworkVO network = mock(NetworkVO.class);
when(network.getName()).thenReturn("testnetwork");
when(network.getState()).thenReturn(State.Implementing);
when(network.getPhysicalNetworkId()).thenReturn(42L);
DeployDestination dest = mock(DeployDestination.class);