@Test public void generateUnknownDevice() throws Throwable { OvaTestModule ova = OvaTestModule.generateOva(OvaTestModule.BAD_OVF_UNKNOWN_CONTROLLER); inputStream = ova.getOvaStream(); try { EsxCloudVmxGenerator.generate(new OvfFile( new TarFileStreamReader(inputStream).iterator().next().content)); } catch (InvalidOvfException e) { return; } finally { ova.clean(); } fail("Exception expected."); }
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);  }