mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-16 10:32:34 +01:00
fix test
This commit is contained in:
parent
60e5ffc3ac
commit
3dac8291be
@ -143,7 +143,6 @@ public class KVMGuruTest {
|
|||||||
@Test
|
@Test
|
||||||
public void testSetVmQuotaPercentageNullHost() {
|
public void testSetVmQuotaPercentageNullHost() {
|
||||||
Mockito.when(hostDao.findById(hostId)).thenReturn(null);
|
Mockito.when(hostDao.findById(hostId)).thenReturn(null);
|
||||||
Mockito.when(vm.getLastHostId()).thenReturn(null);
|
|
||||||
guru.setVmQuotaPercentage(vmTO, vmProfile);
|
guru.setVmQuotaPercentage(vmTO, vmProfile);
|
||||||
Mockito.verify(vmTO, Mockito.never()).setCpuQuotaPercentage(Mockito.anyDouble());
|
Mockito.verify(vmTO, Mockito.never()).setCpuQuotaPercentage(Mockito.anyDouble());
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user