Search in sources :

Example 1 with WatchdogModel

use of org.ovirt.engine.api.model.WatchdogModel in project ovirt-engine by oVirt.

the class WatchdogMapperTest method mapModel.

@Test
public void mapModel() {
    for (WatchdogModel model : WatchdogModel.values()) {
        VmWatchdogType backendModel = WatchdogMapper.map(model);
        assertNotNull(backendModel);
        assertEquals(backendModel.name().toLowerCase(), model.name().toLowerCase());
    }
}
Also used : WatchdogModel(org.ovirt.engine.api.model.WatchdogModel) VmWatchdogType(org.ovirt.engine.core.common.businessentities.VmWatchdogType) Test(org.junit.Test)

Example 2 with WatchdogModel

use of org.ovirt.engine.api.model.WatchdogModel in project ovirt-engine by oVirt.

the class WatchdogMapperTest method mapBackendModel.

@Test
public void mapBackendModel() {
    for (VmWatchdogType type : VmWatchdogType.values()) {
        WatchdogModel model = WatchdogMapper.map(type);
        assertNotNull(model);
        assertEquals(model.name().toLowerCase(), type.name().toLowerCase());
    }
}
Also used : WatchdogModel(org.ovirt.engine.api.model.WatchdogModel) VmWatchdogType(org.ovirt.engine.core.common.businessentities.VmWatchdogType) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)2 WatchdogModel (org.ovirt.engine.api.model.WatchdogModel)2 VmWatchdogType (org.ovirt.engine.core.common.businessentities.VmWatchdogType)2