@Test public void testToImageSettings() { assertThat(EsxCloudVmx.toImageSettings(createEsxCloudVmx()), is(createImageSettings())); }
public static Map<String, String> toImageSettings(EsxCloudVmx ecv) { Map<String, String> imageSettings = new HashMap<>(); imageSettings.putAll(ecv.configuration); for (EsxCloudVmx.Property property : ecv.parameters) { imageSettings.put(property.name, null); } return imageSettings; }
EsxCloudVmx { public static Map<String, String> toImageSettings(EsxCloudVmx ecv) { Map<String, String> imageSettings = new HashMap<>(); imageSettings.putAll(ecv.configuration); for (EsxCloudVmx.Property property : ecv.parameters) { imageSettings.put(property.name, null); } return imageSettings; } }
EsxCloudVmx { public static Map<String, String> toImageSettings(EsxCloudVmx ecv) { Map<String, String> imageSettings = new HashMap<>(); imageSettings.putAll(ecv.configuration); for (EsxCloudVmx.Property property : ecv.parameters) { imageSettings.put(property.name, null); } return imageSettings; } EsxCloudVmx(); }
EsxCloudVmx { public static Map<String, String> toImageSettings(EsxCloudVmx ecv) { Map<String, String> imageSettings = new HashMap<>(); imageSettings.putAll(ecv.configuration); for (EsxCloudVmx.Property property : ecv.parameters) { imageSettings.put(property.name, null); } return imageSettings; } EsxCloudVmx(); static Map<String, String> toImageSettings(EsxCloudVmx ecv); static EsxCloudVmx fromImageSettings(Map<String, String> imageSettings); @Override boolean equals(Object o); @Override int hashCode(); }
EsxCloudVmx { public static Map<String, String> toImageSettings(EsxCloudVmx ecv) { Map<String, String> imageSettings = new HashMap<>(); imageSettings.putAll(ecv.configuration); for (EsxCloudVmx.Property property : ecv.parameters) { imageSettings.put(property.name, null); } return imageSettings; } EsxCloudVmx(); static Map<String, String> toImageSettings(EsxCloudVmx ecv); static EsxCloudVmx fromImageSettings(Map<String, String> imageSettings); @Override boolean equals(Object o); @Override int hashCode(); final Map<String, String> configuration; final List<Property> parameters; }