use of org.ovirt.engine.core.common.businessentities.VmPoolMap in project ovirt-engine by oVirt.
the class AddVmToPoolCommand method executeCommand.
@Override
protected void executeCommand() {
vmPoolDao.addVmToPool(new VmPoolMap(getVmId(), getVmPoolId()));
setSucceeded(true);
}
use of org.ovirt.engine.core.common.businessentities.VmPoolMap in project ovirt-engine by oVirt.
the class VmPoolDaoTest method setUp.
@Override
public void setUp() throws Exception {
super.setUp();
dao = dbFacade.getVmPoolDao();
vmDao = dbFacade.getVmDao();
existingVmPool = dao.get(EXISTING_VM_POOL_ID);
deletableVmPool = dao.get(DELETABLE_VM_POOL_ID);
newVmPool = new VmPool();
newVmPool.setName("New VM Pool");
newVmPool.setVmPoolDescription("This is a new VM pool.");
newVmPool.setClusterId(FixturesTool.CLUSTER);
newVmPoolMap = new VmPoolMap(FREE_VM_ID, EXISTING_VM_POOL_ID);
}