@Test(dataProvider = "GenerateECVSimpleData") public void generateECVSimple(String label, String content) throws Throwable { setUpSimpleOva(content); EsxCloudVmx ecv = EsxCloudVmxGenerator.generate(ovaFile.getOvf()); assertEquals(ecv.configuration.size(), 6); assertEquals(ecv.configuration.get("scsi0.virtualDev"), "lsilogic"); assertEquals(ecv.configuration.get("scsi1.virtualDev"), "buslogic"); assertEquals(ecv.configuration.get("scsi2.virtualDev"), "lsisas1068"); assertEquals(ecv.configuration.get("scsi3.virtualDev"), "pvscsi"); assertEquals(ecv.configuration.get("ethernet0.virtualDev"), "e1000"); assertEquals(ecv.configuration.get("ethernet1.virtualDev"), "e1000e"); assertEquals(ecv.parameters.size(), 0); }
public static EsxCloudVmx generate(OvfFile ovfFile) throws InvalidOvfException { EsxCloudVmxGenerator esxCloudVmxGenerator = new EsxCloudVmxGenerator(ovfFile); esxCloudVmxGenerator.addDeviceOptions(); esxCloudVmxGenerator.addConfigOptions("", extraConfigurations, ovfFile.getExtraConfig()); return esxCloudVmxGenerator.esxCloudVmx; }
EsxCloudVmxGenerator { public static EsxCloudVmx generate(OvfFile ovfFile) throws InvalidOvfException { EsxCloudVmxGenerator esxCloudVmxGenerator = new EsxCloudVmxGenerator(ovfFile); esxCloudVmxGenerator.addDeviceOptions(); esxCloudVmxGenerator.addConfigOptions("", extraConfigurations, ovfFile.getExtraConfig()); return esxCloudVmxGenerator.esxCloudVmx; } }
EsxCloudVmxGenerator { public static EsxCloudVmx generate(OvfFile ovfFile) throws InvalidOvfException { EsxCloudVmxGenerator esxCloudVmxGenerator = new EsxCloudVmxGenerator(ovfFile); esxCloudVmxGenerator.addDeviceOptions(); esxCloudVmxGenerator.addConfigOptions("", extraConfigurations, ovfFile.getExtraConfig()); return esxCloudVmxGenerator.esxCloudVmx; } EsxCloudVmxGenerator(OvfFile ovfFile); }
EsxCloudVmxGenerator { public static EsxCloudVmx generate(OvfFile ovfFile) throws InvalidOvfException { EsxCloudVmxGenerator esxCloudVmxGenerator = new EsxCloudVmxGenerator(ovfFile); esxCloudVmxGenerator.addDeviceOptions(); esxCloudVmxGenerator.addConfigOptions("", extraConfigurations, ovfFile.getExtraConfig()); return esxCloudVmxGenerator.esxCloudVmx; } EsxCloudVmxGenerator(OvfFile ovfFile); static EsxCloudVmx generate(OvfFile ovfFile); String getVmwScsiControllerName(Device device); String getVmwNetworkAdapterName(Device device); String getVmwSerialPortName(Device device); }
EsxCloudVmxGenerator { public static EsxCloudVmx generate(OvfFile ovfFile) throws InvalidOvfException { EsxCloudVmxGenerator esxCloudVmxGenerator = new EsxCloudVmxGenerator(ovfFile); esxCloudVmxGenerator.addDeviceOptions(); esxCloudVmxGenerator.addConfigOptions("", extraConfigurations, ovfFile.getExtraConfig()); return esxCloudVmxGenerator.esxCloudVmx; } EsxCloudVmxGenerator(OvfFile ovfFile); static EsxCloudVmx generate(OvfFile ovfFile); String getVmwScsiControllerName(Device device); String getVmwNetworkAdapterName(Device device); String getVmwSerialPortName(Device device);  }