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());
}
}
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());
}
}
Aggregations