@Override public Bios adapt(V3Bios from) { Bios to = new Bios(); if (from.isSetBootMenu()) { to.setBootMenu(adaptIn(from.getBootMenu())); } return to; } }
@Override public V3Bios adapt(Bios from) { V3Bios to = new V3Bios(); if (from.isSetBootMenu()) { to.setBootMenu(adaptOut(from.getBootMenu())); } return to; } }
model.setBios(new Bios()); model.getBios().setBootMenu(new BootMenu()); model.getBios().getBootMenu().setEnabled(entity.isBootMenuEnabled()); model.getBios().setType(map(entity.getBiosType(), null));
@Test public void testStartWithBootMenu() { setUpWindowsGetEntityExpectations(1, false); setUriInfo(setUpActionExpectations(ActionType.RunVmOnce, RunVmOnceParams.class, new String[] { "VmId", "BootMenuEnabled" }, new Object[] { GUIDS[0], true })); Action action = new Action(); action.setVm(new Vm()); action.getVm().setBios(new Bios()); action.getVm().getBios().setBootMenu(new BootMenu()); action.getVm().getBios().getBootMenu().setEnabled(true); verifyActionResponse(resource.start(action)); }
if (model.getBios().isSetBootMenu()) { entity.setBootMenuEnabled(model.getBios().getBootMenu().isEnabled()); if (model.getBios().isSetType()) { entity.setBiosType(map(model.getBios().getType(), null));
assertEquals(model.getCpu().getTopology().getSockets(), transform.getCpu().getTopology().getSockets()); assertEquals(model.getBios().getBootMenu().isEnabled(), transform.getBios().getBootMenu().isEnabled()); assertNotNull(transform.getOs()); assertTrue(transform.getOs().isSetBoot());
/** * Create an instance of {@link Bios } * */ public Bios createBios() { return new Bios(); }
transform.getCpu().getTopology().getSockets()); assertNotNull(transform.isSetOs()); assertEquals(model.getBios().getBootMenu().isEnabled(), transform.getBios().getBootMenu().isEnabled()); assertTrue(transform.getOs().isSetBoot()); assertEquals(model.getOs().getBoot().getDevices().getDevices(),
if (vm.getBios().isSetBootMenu()) { params.setBootMenuEnabled(vm.getBios().getBootMenu().isEnabled());