use of org.ovirt.engine.core.bll.utils.VmOverheadCalculatorImpl in project ovirt-engine by oVirt.
the class CPUPolicyUnitTest method setUp.
@Before
public void setUp() {
SlaValidator slaValidator = new SlaValidator();
slaValidator.setVmOverheadCalculator(new VmOverheadCalculatorImpl());
cpuPolicyUnit.setSlaValidator(slaValidator);
vm = new VM();
vm.setCpuPerSocket(2);
vm.setNumOfSockets(2);
vdsWithInvalidCpuInfo = new VDS();
vdsWithInvalidCpuInfo.setId(Guid.newGuid());
vdsWithInvalidCpuInfo.setCpuCores(0);
vdsWithInvalidCpuInfo.setCpuThreads(0);
vdsWithCores = new VDS();
vdsWithCores.setId(Guid.newGuid());
vdsWithCores.setCpuCores(2);
vdsWithCores.setCpuThreads(4);
cluster = new Cluster();
cluster.setId(Guid.newGuid());
}
Aggregations