Skip to content

Commit d306749

Browse files
committed
remove un-necessary stubbings
1 parent 60eaad7 commit d306749

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

server/src/test/java/org/apache/cloudstack/vm/UnmanagedVMsManagerImplTest.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)