Commit 7972b7f6 authored by Kaio Oliveira's avatar Kaio Oliveira
Browse files

Change VM type from VmWithMetadata to VmSimple on test

parent 976e08a4
......@@ -8,14 +8,13 @@ import java.util.List;
import org.apache.commons.lang3.NotImplementedException;
import org.cloudbus.cloudsim.allocationpolicies.VmAllocationPolicy;
import org.cloudbus.cloudsim.allocationpolicies.VmAllocationPolicySimple;
import org.cloudbus.cloudsim.allocationpolicies.migration.VmAllocationPolicyMigrationSla;
import org.cloudbus.cloudsim.datacenters.Datacenter;
import org.cloudbus.cloudsim.hosts.Host;
import org.cloudbus.cloudsim.resources.Bandwidth;
import org.cloudbus.cloudsim.resources.Iops;
import org.cloudbus.cloudsim.resources.Ram;
import org.cloudbus.cloudsim.vms.Vm;
import org.cloudbus.cloudsim.vms.VmWithMetadata;
import org.cloudbus.cloudsim.vms.VmSimple;
import org.easymock.EasyMock;
import org.junit.Before;
import org.junit.Test;
......@@ -77,7 +76,7 @@ public class VmAllocationPolicyMigrationSlaTest {
}
private Vm createMockedVm(int id, double cpuUsage, double ramUsage, double iopsUsage, double bwUsage) {
VmWithMetadata vm = EasyMock.createMock(VmWithMetadata.class);
VmSimple vm = EasyMock.createMock(VmSimple.class);
EasyMock.expect(vm.getId()).andReturn(id).anyTimes();
EasyMock.expect(vm.getCpuPercentUsage()).andReturn(cpuUsage).anyTimes();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment