@Test public void testDevicePassthroughMapping() { VDS vds = new VDS(); vds.setId(Guid.Empty); vds.setHostDevicePassthroughEnabled(true); Host host = HostMapper.map(vds, (Host) null); assertNotNull(host); assertNotNull(host.getDevicePassthrough()); assertTrue(host.getDevicePassthrough().isEnabled()); } }
to.setDevicePassthrough(adaptOut(from.getDevicePassthrough()));
HostDevicePassthrough devicePassthrough = model.getDevicePassthrough(); if (devicePassthrough == null) { devicePassthrough = new HostDevicePassthrough();