use of org.ovirt.engine.api.model.ConfigurationType in project ovirt-engine by oVirt.
the class VmMapperTest method ovfConfigurationMap.
@Test
public void ovfConfigurationMap() {
String ovfConfig = "config";
ConfigurationType configurationType = ConfigurationType.OVF;
Vm model = new Vm();
VmMapper.map(ovfConfig, ConfigurationType.OVF, model);
assertNotNull(model.getInitialization());
assertNotNull(model.getInitialization().getConfiguration());
assertEquals(ovfConfig, model.getInitialization().getConfiguration().getData());
assertEquals(model.getInitialization().getConfiguration().getType(), configurationType);
}
use of org.ovirt.engine.api.model.ConfigurationType in project ovirt-engine by oVirt.
the class VmMapperTest method testMapConfigurationType.
@Test
public void testMapConfigurationType() {
org.ovirt.engine.core.common.businessentities.ConfigurationType configurationTypeBll = VmMapper.map(ConfigurationType.OVF, null);
assertEquals(org.ovirt.engine.core.common.businessentities.ConfigurationType.OVF, configurationTypeBll);
ConfigurationType configurationTypeApi = VmMapper.map(org.ovirt.engine.core.common.businessentities.ConfigurationType.OVF, null);
assertEquals(ConfigurationType.OVF, configurationTypeApi);
}
Aggregations