File tree Expand file tree Collapse file tree
plugins/network-elements/nicira-nvp/test/com/cloud/network/guru Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -252,6 +252,7 @@ public void testImplement() throws InsufficientVirtualNetworkCapcityException {
252252 NetworkVO network = mock (NetworkVO .class );
253253 when (network .getName ()).thenReturn ("testnetwork" );
254254 when (network .getState ()).thenReturn (State .Implementing );
255+ when (network .getPhysicalNetworkId ()).thenReturn (42L );
255256
256257 DeployDestination dest = mock (DeployDestination .class );
257258
@@ -308,7 +309,7 @@ public void testImplementWithCidr() throws InsufficientVirtualNetworkCapcityExce
308309 when (network .getState ()).thenReturn (State .Implementing );
309310 when (network .getGateway ()).thenReturn ("10.1.1.1" );
310311 when (network .getCidr ()).thenReturn ("10.1.1.0/24" );
311-
312+ when ( network . getPhysicalNetworkId ()). thenReturn ( 42L );
312313
313314 DeployDestination dest = mock (DeployDestination .class );
314315
@@ -365,6 +366,7 @@ public void testImplementURIException() throws InsufficientVirtualNetworkCapcity
365366 NetworkVO network = mock (NetworkVO .class );
366367 when (network .getName ()).thenReturn ("testnetwork" );
367368 when (network .getState ()).thenReturn (State .Implementing );
369+ when (network .getPhysicalNetworkId ()).thenReturn (42L );
368370
369371 DeployDestination dest = mock (DeployDestination .class );
370372
You can’t perform that action at this time.
0 commit comments