@Test public void initScriptPathHasToBeValid() { exception.expect(IllegalArgumentException.class); vmDesc.setInitScript("fakePathForInitScript"); }
public void setInitScript(String initScript) { if (initScript != null && !initScript.equals("")) { File f = new File(initScript); if (!f.isFile() || !f.canRead()) { throw new IllegalArgumentException("The path for the init script is not valid"); } this.initScript = initScript; } }
Vm { public void setInitScript(String initScript) { if (initScript != null && !initScript.equals("")) { File f = new File(initScript); if (!f.isFile() || !f.canRead()) { throw new IllegalArgumentException("The path for the init script is not valid"); } this.initScript = initScript; } } }
Vm { public void setInitScript(String initScript) { if (initScript != null && !initScript.equals("")) { File f = new File(initScript); if (!f.isFile() || !f.canRead()) { throw new IllegalArgumentException("The path for the init script is not valid"); } this.initScript = initScript; } } Vm(String name, String image, int cpus, int ramMb, int diskGb, int swapMb,
              String initScript, String applicationId);  Vm(String name, String image, int cpus, int ramMb, int diskGb, String initScript, String applicationId);  Vm(String name, String image, int cpus, int ramMb, int diskGb, String initScript, String applicationId,
              String ovfId, String slaId, boolean needsFloatingIp);  Vm(String name, String image, int cpus, int ramMb, int diskGb, String initScript, String applicationId,
              String ovfId, String slaId, String preferredHost); }
Vm { public void setInitScript(String initScript) { if (initScript != null && !initScript.equals("")) { File f = new File(initScript); if (!f.isFile() || !f.canRead()) { throw new IllegalArgumentException("The path for the init script is not valid"); } this.initScript = initScript; } } Vm(String name, String image, int cpus, int ramMb, int diskGb, int swapMb,
              String initScript, String applicationId);  Vm(String name, String image, int cpus, int ramMb, int diskGb, String initScript, String applicationId);  Vm(String name, String image, int cpus, int ramMb, int diskGb, String initScript, String applicationId,
              String ovfId, String slaId, boolean needsFloatingIp);  Vm(String name, String image, int cpus, int ramMb, int diskGb, String initScript, String applicationId,
              String ovfId, String slaId, String preferredHost); String getName(); String getImage(); int getCpus(); int getRamMb(); int getDiskGb(); int getSwapMb(); String getInitScript(); void setInitScript(String initScript); String getApplicationId(); void setApplicationId(String applicationId); String getOvfId(); void setOvfId(String ovfId); String getSlaId(); void setSlaId(String slaId); String getPreferredHost(); boolean needsFloatingIp(); boolean belongsToAnApp(); @Override String toString(); }
Vm { public void setInitScript(String initScript) { if (initScript != null && !initScript.equals("")) { File f = new File(initScript); if (!f.isFile() || !f.canRead()) { throw new IllegalArgumentException("The path for the init script is not valid"); } this.initScript = initScript; } } Vm(String name, String image, int cpus, int ramMb, int diskGb, int swapMb,
              String initScript, String applicationId);  Vm(String name, String image, int cpus, int ramMb, int diskGb, String initScript, String applicationId);  Vm(String name, String image, int cpus, int ramMb, int diskGb, String initScript, String applicationId,
              String ovfId, String slaId, boolean needsFloatingIp);  Vm(String name, String image, int cpus, int ramMb, int diskGb, String initScript, String applicationId,
              String ovfId, String slaId, String preferredHost); String getName(); String getImage(); int getCpus(); int getRamMb(); int getDiskGb(); int getSwapMb(); String getInitScript(); void setInitScript(String initScript); String getApplicationId(); void setApplicationId(String applicationId); String getOvfId(); void setOvfId(String ovfId); String getSlaId(); void setSlaId(String slaId); String getPreferredHost(); boolean needsFloatingIp(); boolean belongsToAnApp(); @Override String toString();  }