use of org.ovirt.engine.core.common.businessentities.VmPayload in project ovirt-engine by oVirt.
the class VmMapperTest method testPayloadMapToVmPaylod.
@Test
public void testPayloadMapToVmPaylod() {
Payload payload = new Payload();
payload.setType(VmDeviceType.CDROM);
payload.setVolumeId("CD-VOL");
VmPayload vmPayload = VmMapper.map(payload, null);
assertEquals(payload.getType().name(), vmPayload.getDeviceType().name());
assertEquals(payload.getVolumeId(), vmPayload.getVolumeId());
}
use of org.ovirt.engine.core.common.businessentities.VmPayload in project ovirt-engine by oVirt.
the class VmMapperTest method testVmPayloadMapToPaylod.
@Test
public void testVmPayloadMapToPaylod() {
VmPayload vmPayload = new VmPayload();
vmPayload.setDeviceType(org.ovirt.engine.core.common.utils.VmDeviceType.CDROM);
vmPayload.setVolumeId("CD-VOL");
Payload payload = VmMapper.map(vmPayload, null);
assertEquals(vmPayload.getDeviceType().name(), payload.getType().name());
assertEquals(vmPayload.getVolumeId(), payload.getVolumeId());
}
Aggregations