use of org.ovirt.engine.core.common.businessentities.VmWatchdog in project ovirt-engine by oVirt.
the class WatchdogMapperTest method mapVmWatchdog.
@Test
public void mapVmWatchdog() {
VmWatchdog entity = new VmWatchdog();
entity.setAction(VmWatchdogAction.RESET);
entity.setModel(VmWatchdogType.i6300esb);
entity.setId(Guid.Empty);
Watchdog model = WatchdogMapper.map(entity, null);
assertNotNull(model);
assertEquals(WatchdogAction.RESET, model.getAction());
assertEquals(WatchdogModel.I6300ESB, model.getModel());
}
use of org.ovirt.engine.core.common.businessentities.VmWatchdog in project ovirt-engine by oVirt.
the class WatchdogMapperTest method mapWatchdog.
@Test
public void mapWatchdog() {
Watchdog model = new Watchdog();
model.setAction(WatchdogAction.RESET);
model.setModel(WatchdogModel.I6300ESB);
model.setId(Guid.Empty.toString());
VmWatchdog entity = WatchdogMapper.map(model, null);
assertNotNull(entity);
assertEquals(VmWatchdogAction.RESET, entity.getAction());
assertEquals(VmWatchdogType.i6300esb, entity.getModel());
}
Aggregations