use of org.ovirt.engine.core.dao.network.VmNicDao in project ovirt-engine by oVirt.
the class RunVmValidatorTest method testBootFromNetworkNoNetwork.
@Test
public void testBootFromNetworkNoNetwork() {
VmNicDao dao = mock(VmNicDao.class);
doReturn(dao).when(runVmValidator).getVmNicDao();
VM vm = new VM();
vm.setBootSequence(BootSequence.N);
validateResult(runVmValidator.validateBootSequence(vm, new ArrayList<>()), false, EngineMessage.VM_CANNOT_RUN_FROM_NETWORK_WITHOUT_NETWORK);
}