Search in sources :

Example 6 with OriginType

use of org.ovirt.engine.core.common.businessentities.OriginType in project ovirt-engine by oVirt.

the class VmBaseMapperTest method testMapOriginTypeOvirt.

@Test
public void testMapOriginTypeOvirt() {
    String s = VmBaseMapper.map(OriginType.OVIRT, null);
    assertEquals("ovirt", s);
    OriginType s2 = VmMapper.map(s, OriginType.OVIRT);
    assertEquals(OriginType.OVIRT, s2);
}
Also used : OriginType(org.ovirt.engine.core.common.businessentities.OriginType) Test(org.junit.Test)

Aggregations

OriginType (org.ovirt.engine.core.common.businessentities.OriginType)6 Test (org.junit.Test)3 ArrayList (java.util.ArrayList)1 List (java.util.List)1 DisplayDisconnectAction (org.ovirt.engine.api.model.DisplayDisconnectAction)1 VM (org.ovirt.engine.core.common.businessentities.VM)1 QueryReturnValue (org.ovirt.engine.core.common.queries.QueryReturnValue)1 Guid (org.ovirt.engine.core.compat.Guid)1 UIConstants (org.ovirt.engine.ui.uicompat.UIConstants)1 UIMessages (org.ovirt.engine.ui.uicompat.UIMessages)1