File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed
server/src/test/java/org/apache/cloudstack/vm Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -504,8 +504,6 @@ public void testImportFromExternalTest() throws InsufficientServerCapacityExcept
504504 when (cmd .getPassword ()).thenReturn ("pass" );
505505 when (cmd .getImportSource ()).thenReturn ("external" );
506506 when (cmd .getDomainId ()).thenReturn (null );
507- VMTemplateVO template = Mockito .mock (VMTemplateVO .class );
508- when (templateDao .findByName (anyString ())).thenReturn (template );
509507 HostVO host = Mockito .mock (HostVO .class );
510508 when (userVmDao .getNextInSequence (Long .class , "id" )).thenReturn (1L );
511509 DeployDestination mockDest = Mockito .mock (DeployDestination .class );
@@ -738,8 +736,6 @@ private void importFromDisk(String source) throws InsufficientServerCapacityExce
738736 when (cmd .getImportSource ()).thenReturn (source );
739737 when (cmd .getDiskPath ()).thenReturn ("/var/lib/libvirt/images/test.qcow2" );
740738 when (cmd .getDomainId ()).thenReturn (null );
741- VMTemplateVO template = Mockito .mock (VMTemplateVO .class );
742- when (templateDao .findByName (anyString ())).thenReturn (template );
743739 HostVO host = Mockito .mock (HostVO .class );
744740 when (hostDao .findById (anyLong ())).thenReturn (host );
745741 NetworkOffering netOffering = Mockito .mock (NetworkOffering .class );
You can’t perform that action at this time.
0 commit comments