@Test public void toVm() { Vm convertedVm = vmToBeEstimated.toVm(); assertEquals("testId", convertedVm.getName()); assertEquals("", convertedVm.getImage()); assertEquals(1, convertedVm.getCpus()); assertEquals(1024, convertedVm.getRamMb()); assertEquals(10, convertedVm.getDiskGb()); assertEquals(512, convertedVm.getSwapMb()); assertNull(convertedVm.getInitScript()); assertEquals("", convertedVm.getApplicationId()); }
public Vm toVm() { return new Vm(id, "", vcpus, ramMb, diskGb, swapMb, null, ""); }
VmToBeEstimated { public Vm toVm() { return new Vm(id, "", vcpus, ramMb, diskGb, swapMb, null, ""); } }
VmToBeEstimated { public Vm toVm() { return new Vm(id, "", vcpus, ramMb, diskGb, swapMb, null, ""); } VmToBeEstimated(String id, int vcpus, int cpuFreq, int ramMb, int diskGb, int swapMb); }
VmToBeEstimated { public Vm toVm() { return new Vm(id, "", vcpus, ramMb, diskGb, swapMb, null, ""); } VmToBeEstimated(String id, int vcpus, int cpuFreq, int ramMb, int diskGb, int swapMb); String getId(); int getVcpus(); int getCpuFreq(); int getRamMb(); int getDiskGb(); int getSwapMb(); Vm toVm(); }
VmToBeEstimated { public Vm toVm() { return new Vm(id, "", vcpus, ramMb, diskGb, swapMb, null, ""); } VmToBeEstimated(String id, int vcpus, int cpuFreq, int ramMb, int diskGb, int swapMb); String getId(); int getVcpus(); int getCpuFreq(); int getRamMb(); int getDiskGb(); int getSwapMb(); Vm toVm();  }