use of org.ovirt.engine.core.bll.scheduling.pending.PendingResourceManager in project ovirt-engine by oVirt.
the class HugePagesFilterPolicyUnitTest method setUp.
@Before
public void setUp() {
host1 = new VDS();
host1.setId(Guid.newGuid());
host1.setHugePages(new ArrayList<>());
vm = new VM();
vm.setId(Guid.newGuid());
vm.setVmMemSizeMb(1024);
otherVm = new VM();
otherVm.setId(Guid.newGuid());
pendingResourceManager = new PendingResourceManager();
}
use of org.ovirt.engine.core.bll.scheduling.pending.PendingResourceManager in project ovirt-engine by oVirt.
the class EvenDistributionWeightPolicyUnitTest method mockPolicyUnit.
protected <T extends EvenDistributionWeightPolicyUnit> T mockPolicyUnit(Class<T> unitType) throws Exception {
final T policyUnit = unitType.getConstructor(PolicyUnit.class, PendingResourceManager.class).newInstance(null, new PendingResourceManager());
policyUnit.setSlaValidator(slaValidator);
return spy(policyUnit);
}
Aggregations