use of org.ovirt.engine.api.model.Watchdog in project ovirt-engine by oVirt.
the class BackendTemplateWatchdogResourceTest method testGet.
@Test
public void testGet() throws Exception {
setUriInfo(setUpBasicUriExpectations());
setUpEntityQueryExpectations(1);
Watchdog watchdog = resource.get();
verifyModel(watchdog);
}
use of org.ovirt.engine.api.model.Watchdog in project ovirt-engine by oVirt.
the class BackendTemplateWatchdogsResourceTest method getModel.
private Watchdog getModel() {
Watchdog watchDog = new Watchdog();
watchDog.setAction(WatchdogAction.RESET);
watchDog.setModel(WatchdogModel.I6300ESB);
watchDog.setId(WATCHDOG_ID.toString());
return watchDog;
}
use of org.ovirt.engine.api.model.Watchdog 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.api.model.Watchdog 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