auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void run ( ) { try { monitorEngineServerStatus ( ) ; } catch ( java.lang.Throwable e ) { if ( ! ( java.lang.Thread.interrupted ( ) ) ) { org.ovirt.engine.core.notifier.EngineMonitorService.log.error ( "Error while trying to report engine server status" , e ) ; } isServerUp = true ; } }

Target:
private void mainLogic ( ) { try { monitorEngineServerStatus ( ) ; } catch ( java.lang.Throwable e ) { if ( ! ( java.lang.Thread.interrupted ( ) ) ) { org.ovirt.engine.core.notifier.EngineMonitorService.log.error ( "Error while trying to report engine server status" , e ) ; } isServerUp = true ; } }
Source:
public void runMultipleAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , final org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback callback , final boolean showErrorDialog ) { runMultipleAction ( actionType , parameters , false , callback , null , showErrorDialog ) ; }

Target:
public void runMultipleAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , final org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback callback , final boolean showErrorDialog , final boolean waitForResult ) { runMultipleAction ( actionType , parameters , false , callback , null , showErrorDialog , waitForResult ) ; }
Source:
public void setmigrating_to_vds ( org.ovirt.engine.core.compat.NGuid value ) { this . mVmDynamic.setmigrating_to_vds ( value ) ; }

Target:
public void setVmHost ( java.lang.String value ) { this . vmDynamic.setvm_host ( value ) ; }
Source:
public java.util.Date getGuestLastLoginTime ( ) { return this . guestLastLoginTime ; }

Target:
public java.util.Map < org.ovirt.engine.core.common.businessentities.GraphicsType , org.ovirt.engine.core.common.businessentities.GraphicsInfo > getGraphicsInfos ( ) { return graphicsInfos ; }
Source:
protected void setStyles ( ) { super . setStyles ( ) ; connectAutomaticallyEditor.setContentWidgetContainerStyleName ( "connect-automatically-checkbox" ) ; connectAutomaticallyEditor.addContentWidgetContainerStyleName ( "connect-automatically-checkbox_pfly_fix" ) ; motdPanel.setVisible ( false ) ; }

Target:
protected void setStyles ( ) { super . setStyles ( ) ; connectAutomaticallyEditor.setContentWidgetContainerStyleName ( "connect-automatically-checkbox" ) ; connectAutomaticallyEditor.addContentWidgetContainerStyleName ( "connect-automatically-checkbox_pfly_fix" ) ; connectAutomaticallyEditor.setContentWidgetStyleName ( "" ) ; motdPanel.setVisible ( false ) ; }
Source:
protected org.ovirt.engine.core.dao.qos.QosDao < org.ovirt.engine.core.common.businessentities.network.NetworkQoS > getQosDao ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getNetworkQosDao ( ) ; }

Target:
protected org.ovirt.engine.core.dao.qos.QosDao < org.ovirt.engine.core.common.businessentities.network.NetworkQoS > getQosDao ( ) { return org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.dao.network.NetworkQoSDao.class ) ; }
Source:
private void template_SelectedItemChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { behavior.template_SelectedItemChanged ( ) ; }

Target:
private void template_SelectedItemChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { behavior.template_SelectedItemChanged ( ) ; behavior.updateMigrationForLocalSD ( ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > getAllInterfacesWithIpAddress ( org.ovirt.engine.core.compat.Guid clusterId , java.lang.String ipAddress ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "addr" , ipAddress ) . addValue ( "cluster_id" , clusterId ) ; return getCallsHandler ( ) . executeReadList ( "Getinterface_viewByAddr" , org.ovirt.engine.core.dao.network.InterfaceDaoDbFacadeImpl.vdsNetworkInterfaceRowMapper , parameterSource ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > getAllInterfacesWithIpAddress ( org.ovirt.engine.core.compat.Guid clusterId , java.lang.String ipAddress ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "addr" , ipAddress ) . addValue ( "cluster_id" , clusterId ) ; return getCallsHandler ( ) . executeReadList ( "Getinterface_viewByAddr" , vdsNetworkInterfaceRowMapper , parameterSource ) ; }
Source:
public void New ( ) { commandType = org.ovirt.engine.ui.uicommonweb.models.configure.roles_ui.RoleListModel.CommandType.New ; org.ovirt.engine.core.common.businessentities.Role role = new org.ovirt.engine.core.common.businessentities.Role ( ) ; InitRoleDialog ( role ) ; }

Target:
public void edit ( ) { commandType = org.ovirt.engine.ui.uicommonweb.models.configure.roles_ui.RoleListModel.CommandType.Edit ; org.ovirt.engine.core.common.businessentities.Role role = ( ( org.ovirt.engine.core.common.businessentities.Role ) ( getSelectedItem ( ) ) ) ; initRoleDialog ( role ) ; }
Source:
private void sortNics ( ) { java.util.Collections.sort ( getOriginalItems ( ) , new org.ovirt.engine.ui.uicommonweb.Linq.InterfaceComparator ( ) ) ; }

Target:
private void sortNics ( ) { java.util.Collections.sort ( getOriginalItems ( ) , new org.ovirt.engine.core.common.businessentities.comparators.LexoNumericNameableComparator ( ) ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { disk.getIsInternal ( ) . setEntity ( false ) ; revealStorageView ( disk ) ; revealDiskPanel ( disk ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { disk.getDiskStorageType ( ) . setEntity ( DiskStorageType.IMAGE ) ; revealDiskPanel ( disk ) ; }
Source:
void handleVdsMaintenanceTimeout ( org.ovirt.engine.core.common.businessentities.VDS vds ) ;

Target:
void handleVdsMaintenanceTimeout ( org.ovirt.engine.core.compat.Guid vdsId ) ;
Source:
public org.ovirt.engine.core.vdsbroker.ResourceManager getResourceManager ( ) { return org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) ; }

Target:
private org.ovirt.engine.core.dal.dbbroker.DbFacade getDbFacade ( ) { return dbFacade ; }
Source:
public void canDoActionFailureOnMovingCinderDisk ( ) { initializeCommand ( ImageOperation.Move , new org.ovirt.engine.core.common.businessentities.storage.CinderDisk ( ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.ACTION_TYPE_FAILED_NOT_SUPPORTED_DISK_STORAGE_TYPE ) ; }

Target:
public void validateFailureOnMovingCinderDisk ( ) { initializeCommand ( ImageOperation.Move , new org.ovirt.engine.core.common.businessentities.storage.CinderDisk ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_NOT_SUPPORTED_DISK_STORAGE_TYPE ) ; }
Source:
public javax.ws.rs.core.Response migrate ( org.ovirt.engine.api.model.Action action ) { validateParameters ( action , "bricks" ) ; validateBrickNames ( action ) ; org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters params = toParameters ( action.getBricks ( ) ) ; return performAction ( VdcActionType.StartRemoveGlusterVolumeBricks , params , action , false ) ; }

Target:
public javax.ws.rs.core.Response migrate ( org.ovirt.engine.api.model.Action action ) { validateParameters ( action , "bricks" ) ; validateBrickNames ( action ) ; org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters params = toParameters ( action.getBricks ( ) ) ; return performAction ( ActionType.StartRemoveGlusterVolumeBricks , params , action , false ) ; }
Source:
public void testMapConfigurationType ( ) { org.ovirt.engine.api.model.ConfigurationType configurationTypeBll = org.ovirt.engine.api.restapi.types.VmMapper.map ( ConfigurationType.OVF , null ) ; assertEquals ( org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.ConfigurationType , configurationTypeBll ) ; org.ovirt.engine.api.model.ConfigurationType configurationTypeApi = org.ovirt.engine.api.restapi.types.VmMapper.map ( org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.ConfigurationType , null ) ; assertEquals ( ConfigurationType.OVF , configurationTypeApi ) ; }

Target:
public void testMapConfigurationType ( ) { org.ovirt.engine.api.model.ConfigurationType configurationTypeBll = org.ovirt.engine.api.restapi.types.VmMapper.map ( ConfigurationType.OVF , null ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.ConfigurationType , configurationTypeBll ) ; org.ovirt.engine.api.model.ConfigurationType configurationTypeApi = org.ovirt.engine.api.restapi.types.VmMapper.map ( org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.ConfigurationType , null ) ; org.junit.Assert.assertEquals ( ConfigurationType.OVF , configurationTypeApi ) ; }
Source:
public javax.ws.rs.core.Response deactivate ( org.ovirt.engine.api.model.Action action ) { org.ovirt.engine.core.common.action.HotPlugUnplugVmNicParameters params = new org.ovirt.engine.core.common.action.HotPlugUnplugVmNicParameters ( guid , org.ovirt.engine.core.common.action.PlugAction.UNPLUG ) ; params.setVmId ( ( ( org.ovirt.engine.api.restapi.resource.BackendNicsResource ) ( collection ) ) . parentId ) ; return performAction ( VdcActionType.HotPlugUnplugVmNic , params ) ; }

Target:
public javax.ws.rs.core.Response activate ( org.ovirt.engine.api.model.Action action ) { org.ovirt.engine.core.common.action.HotPlugUnplugVmNicParameters params = new org.ovirt.engine.core.common.action.HotPlugUnplugVmNicParameters ( guid , org.ovirt.engine.core.common.action.PlugAction.PLUG ) ; org.ovirt.engine.api.restapi.resource.BackendNicsResource parent = ( ( org.ovirt.engine.api.restapi.resource.BackendNicsResource ) ( collection ) ) ; params.setVmId ( parent.parentId ) ; return doAction ( VdcActionType.HotPlugUnplugVmNic , params , action ) ; }
Source:
public void testDnsResolverConfigurationNonDefaultRouteNetworkIsIgnored ( ) { network.setDnsResolverConfiguration ( sampleDnsResolverConfiguration ) ; testedNetworkAttachment.setDnsResolverConfiguration ( sampleDnsResolverConfiguration2 ) ; org.junit.Assert.assertThat ( createTestedInstance ( false , sampleDnsResolverConfiguration ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testDefaultRouteNonDefaultRouteNetwork ( ) { iface.setIpv4DefaultRoute ( true ) ; network.setDnsResolverConfiguration ( sampleDnsResolverConfiguration ) ; org.junit.Assert.assertThat ( createTestedInstance ( false , sampleDnsResolverConfiguration ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( false ) ) ; }
Source:
protected boolean canDoAction ( ) { return org.ovirt.engine.core.bll.aaa.SessionDataContainer.getInstance ( ) . isSessionExists ( org.ovirt.engine.core.bll.aaa.LogoutSessionCommand.getParameters ( ) . getSessionId ( ) ) ; }

Target:
protected boolean canDoAction ( ) { return sessionDataContainer.isSessionExists ( org.ovirt.engine.core.bll.aaa.LogoutSessionCommand.getParameters ( ) . getSessionId ( ) ) ; }
Source:
private java.lang.String getTemplateSharedLockMessage ( ) { return new java.lang.StringBuilder ( VdcBllMessages.ACTION_TYPE_FAILED_TEMPLATE_IS_USED_FOR_CREATE_VM.name ( ) ) . append ( java.lang.String.format ( "$VmName %1$s" , org.ovirt.engine.core.bll.AddVmCommand.getVmName ( ) ) ) . toString ( ) ; }

Target:
private java.lang.String getTemplateSharedLockMessage ( ) { return new java.lang.StringBuilder ( EngineMessage.ACTION_TYPE_FAILED_TEMPLATE_IS_USED_FOR_CREATE_VM.name ( ) ) . append ( java.lang.String.format ( "$VmName %1$s" , org.ovirt.engine.core.bll.AddVmCommand.getVmName ( ) ) ) . toString ( ) ; }
Source:
public void Dispose ( ) { if ( ( _writer ) != null ) { CloseElements ( ) ; _writer.close ( ) ; _document.Load ( _fileName ) ; } deleteTmpFile ( ) ; }

Target:
public void dispose ( ) { if ( ( _writer ) != null ) { CloseElements ( ) ; _writer.close ( ) ; _document.Load ( _fileName ) ; } deleteTmpFile ( ) ; }
Source:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.model.Nic nic ) { validateParameters ( nic , "name" ) ; return performCreate ( VdcActionType.AddVmTemplateInterface , new org.ovirt.engine.core.common.action.AddVmTemplateInterfaceParameters ( templateId , map ( nic ) ) , new org.ovirt.engine.api.restapi.resource.NicResolver ( nic.getName ( ) ) ) ; }

Target:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.model.Nic nic ) { validateParameters ( nic , "name" ) ; return performCreate ( ActionType.AddVmTemplateInterface , new org.ovirt.engine.core.common.action.AddVmTemplateInterfaceParameters ( templateId , map ( nic ) ) , new org.ovirt.engine.api.restapi.resource.NicResolver ( nic.getName ( ) ) ) ; }
Source:
protected void AsyncSearch ( ) { super . AsyncSearch ( ) ; setAsyncResult ( org.ovirt.engine.ui.frontend.Frontend.RegisterQuery ( VdcQueryType.GetSystemPermissions , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }

Target:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; setAsyncResult ( org.ovirt.engine.ui.frontend.Frontend.RegisterQuery ( VdcQueryType.GetSystemPermissions , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }
Source:
public void shouldCreateLessNumaNodesAsVirtualCores ( ) { vm.setNumOfSockets ( 1 ) ; vm.setCpuPerSocket ( 3 ) ; org.junit.Assert.assertTrue ( org.ovirt.engine.core.bll.numa.vm.NumaValidator.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) . isValid ( ) ) ; }

Target:
public void shouldCreateLessNumaNodesAsVirtualCores ( ) { vm.setNumOfSockets ( 1 ) ; vm.setCpuPerSocket ( 3 ) ; org.junit.Assert.assertTrue ( underTest.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) . isValid ( ) ) ; }
Source:
public void testInvalidNumberOfMonitors ( ) { prepareVmToPassCanDoAction ( ) ; vmStatic.setNumOfMonitors ( 99 ) ; org.junit.Assert.assertFalse ( "canDoAction should have failed with invalid number of monitors." , command.canDoAction ( ) ) ; assertCanDoActionMessage ( EngineMessage.ACTION_TYPE_FAILED_ILLEGAL_NUM_OF_MONITORS ) ; }

Target:
public void testInvalidNumberOfMonitors ( ) { prepareVmToPassValidate ( ) ; vmStatic.setNumOfMonitors ( 99 ) ; org.junit.Assert.assertFalse ( "validate should have failed with invalid number of monitors." , command.validate ( ) ) ; assertValidateMessage ( EngineMessage.ACTION_TYPE_FAILED_ILLEGAL_NUM_OF_MONITORS ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyNativeGotNullUsb ( ) { org.ovirt.engine.api.model.Usb usb = null ; org.ovirt.engine.core.common.businessentities.UsbPolicy currentPolicy = org.ovirt.engine.core.common.businessentities.UsbPolicy.ENABLED_NATIVE ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , currentPolicy , null ) , currentPolicy ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotEnabledNotSetLegacyPolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setType ( "legacy" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED ) , UsbPolicy.DISABLED ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity brick ) { return brick.getQualifiedName ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity brick ) { java.lang.String qualifiedName = brick.getQualifiedName ( ) ; if ( brick.getIsArbiter ( ) ) { qualifiedName += ( " (" + ( org.ovirt.engine.ui.webadmin.section.main.view.tab.gluster.SubTabVolumeBrickView.constants.arbiter ( ) ) ) + ")" ; } return qualifiedName ; }
Source:
public void RemoveVds ( org.ovirt.engine.core.compat.Guid vdsId ) { org.ovirt.engine.core.vdsbroker.VdsManager vdsManager = GetVdsManager ( vdsId ) ; if ( vdsManager != null ) { vdsManager.dispose ( ) ; vdsManagersDict.remove ( vdsId ) ; } }

Target:
public void RemoveVds ( org.ovirt.engine.core.compat.Guid vdsId , boolean newHost ) { org.ovirt.engine.core.vdsbroker.VdsManager vdsManager = GetVdsManager ( vdsId , newHost ) ; if ( vdsManager != null ) { vdsManager.dispose ( ) ; vdsManagersDict.remove ( vdsId ) ; } }
Source:
public static boolean vmDeviceChanged ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.common.businessentities.VmDeviceGeneralType deviceType , boolean deviceEnabled ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.vmDeviceChanged ( vmId , deviceType , null , deviceEnabled ) ; }

Target:
public static boolean canCopyHostDevices ( org.ovirt.engine.core.compat.Guid srcId , org.ovirt.engine.core.common.businessentities.VmBase dstVm ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.canCopyHostDevices ( org.ovirt.engine.core.bll.utils.VmDeviceUtils.getVmBase ( srcId ) , dstVm ) ; }
Source:
public void interfaceBasedOnNotAVlanAtAll ( ) { org.junit.Assert.assertFalse ( org.ovirt.engine.core.utils.NetworkUtils.interfaceBasedOn ( ( ( org.ovirt.engine.core.utils.NetworkUtilsTest.IFACE_NAME ) + "1" ) , org.ovirt.engine.core.utils.NetworkUtilsTest.IFACE_NAME ) ) ; }

Target:
public void interfaceBasedOnNotAVlanAtAll ( ) { org.junit.Assert.assertFalse ( org.ovirt.engine.core.utils.NetworkUtils.interfaceBasedOn ( createNic ( ( ( org.ovirt.engine.core.utils.NetworkUtilsTest.IFACE_NAME ) + "1" ) ) , org.ovirt.engine.core.utils.NetworkUtilsTest.IFACE_NAME ) ) ; }
Source:
private org.ovirt.engine.ui.uicommonweb.action.LabelUnlabelUiAction getLabelUnlabelUiAction ( ) { return new org.ovirt.engine.ui.uicommonweb.action.LabelUnlabelUiAction ( hostSetupNetworksParametersData.addedLabels , hostSetupNetworksParametersData.removedLabels , hostSetupNetworksParametersData.removedBonds , getEntity ( ) . getId ( ) , this ) ; }

Target:
private void commitLabelChanges ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > srcIfaces , org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface dstIface ) { org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkOperation.moveLabels ( srcIfaces , dstIface , hostSetupNetworksParametersData ) ; }
Source:
protected void SortCommands ( ) { java.util.Collections.sort ( getCommands ( ) , new org.ovirt.engine.core.bll.storage.StorageDomainsByTypeComparer ( ) ) ; }

Target:
protected void sortCommands ( ) { java.util.Collections.sort ( getCommands ( ) , new org.ovirt.engine.core.bll.storage.StorageDomainsByTypeComparer ( ) ) ; }
Source:
public boolean isWarnEnabled ( ) { return log.isWarnEnabled ( ) ; }

Target:
public void trace ( java.lang.Object msg , java.lang.Throwable t ) { if ( log.isTraceEnabled ( ) ) { log.trace ( addPrefixToLogMessage ( msg ) , t ) ; } }
Source:
private void initEditors ( org.ovirt.engine.ui.webadmin.ApplicationConstants constants , org.ovirt.engine.ui.webadmin.ApplicationResources resources , org.ovirt.engine.ui.webadmin.ApplicationTemplates templates ) { migrateEditor = new org.ovirt.engine.ui.common.widget.editor.generic.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; migrateInfoIcon = new org.ovirt.engine.ui.common.widget.dialog.InfoIcon ( templates.italicText ( constants.removeBricksMigrateDataInfo ( ) ) , resources ) ; }

Target:
private void initEditors ( ) { migrateEditor = new org.ovirt.engine.ui.common.widget.editor.generic.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; migrateInfoIcon = new org.ovirt.engine.ui.common.widget.dialog.InfoIcon ( org.ovirt.engine.ui.webadmin.section.main.view.popup.gluster.RemoveBrickPopupView.templates.italicText ( org.ovirt.engine.ui.webadmin.section.main.view.popup.gluster.RemoveBrickPopupView.constants.removeBricksMigrateDataInfo ( ) ) ) ; }
Source:
public void UpdateVdsStatisticsData ( org.ovirt.engine.core.common.businessentities.VdsStatistics vdsStatistics ) { org.ovirt.engine.core.vdsbroker.VdsManager vdsManager = GetVdsManager ( vdsStatistics.getId ( ) ) ; if ( vdsManager != null ) { vdsManager.UpdateStatisticsData ( vdsStatistics ) ; } }

Target:
public void UpdateVdsStatisticsData ( org.ovirt.engine.core.common.businessentities.VdsStatistics vdsStatistics ) { org.ovirt.engine.core.vdsbroker.VdsManager vdsManager = GetVdsManager ( vdsStatistics.getId ( ) ) ; if ( vdsManager != null ) { vdsManager.updateStatisticsData ( vdsStatistics ) ; } }
Source:
protected void changeDomainStatusWithCompensation ( org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap map , org.ovirt.engine.core.common.businessentities.StorageDomainStatus compensateStatus , org.ovirt.engine.core.common.businessentities.StorageDomainStatus newStatus ) { map.setStatus ( compensateStatus ) ; changeStorageDomainStatusInTransaction ( map , newStatus ) ; }

Target:
protected void changeDomainStatusWithCompensation ( org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap map , org.ovirt.engine.core.common.businessentities.StorageDomainStatus compensateStatus , org.ovirt.engine.core.common.businessentities.StorageDomainStatus newStatus , org.ovirt.engine.core.bll.context.CompensationContext context ) { map.setStatus ( compensateStatus ) ; changeStorageDomainStatusInTransaction ( map , newStatus , context ) ; }
Source:
public void InitTest ( ) { mockCpuFlagsManagerHandler ( ) ; mockOsRepository ( ) ; org.ovirt.engine.core.common.utils.SimpleDependencyInjector.getInstance ( ) . bind ( org.ovirt.engine.core.dal.dbbroker.DbFacade.class , dbFacade ) ; }

Target:
public void initTest ( ) { mockCpuFlagsManagerHandler ( ) ; mockOsRepository ( ) ; org.ovirt.engine.core.common.utils.SimpleDependencyInjector.getInstance ( ) . bind ( org.ovirt.engine.core.dal.dbbroker.DbFacade.class , dbFacade ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { com.google.gwt.event.logical.shared.ValueChangeEvent.fire ( this , null ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { selectedLabelsChanged ( ) ; }
Source:
public void setStyle ( final org.ovirt.engine.ui.webadmin.section.main.view.popup.host.panels.NetworkPanelsStyle style ) { super . setStyle ( style ) ; stylePanel ( requiredPanel , constants.requiredNetwork ( ) ) ; stylePanel ( nonRequiredPanel , constants.nonRequiredNetwork ( ) ) ; }

Target:
public void setStyle ( final org.ovirt.engine.ui.webadmin.section.main.view.popup.host.panels.NetworkPanelsStyle style ) { super . setStyle ( style ) ; stylePanel ( requiredPanel ) ; stylePanel ( nonRequiredPanel ) ; requiredTitlePanel = initTitlePanel ( constants.requiredNetwork ( ) ) ; nonRequiredTitlePanel = initTitlePanel ( constants.nonRequiredNetwork ( ) ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; config = new org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils ( false ) ; config.refreshVdcOptionCache ( dbFacade ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; config = new org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils ( false ) ; config.refreshVdcOptionCache ( dbFacade ) ; org.ovirt.engine.core.common.config.Config.setConfigUtils ( config ) ; }
Source:
public org.ovirt.engine.api.resource.TemplateDiskResource getDeviceSubResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendTemplateDiskResource ( asGuidOr404 ( id ) , this ) ) ; }

Target:
public org.ovirt.engine.api.resource.TemplateDiskResource getDeviceResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendTemplateDiskResource ( asGuidOr404 ( id ) , this ) ) ; }
Source:
public void setConfirmWindow ( org.ovirt.engine.ui.uicommonweb.models.Model value ) { if ( ( confirmWindow ) != value ) { confirmWindow = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "ConfirmWindow" ) ) ; } }

Target:
public void setConfirmWindow ( org.ovirt.engine.ui.uicommonweb.models.Model value ) { if ( ( confirmWindow ) != value ) { confirmWindow = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( org.ovirt.engine.ui.uicommonweb.models.Model.PROP_CONFIRM_WINDOW ) ) ; } }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getTagDao ( ) . updateDefaultDisplayForVmTag ( org.ovirt.engine.core.bll.UpdateTagsVmMapDefaultDisplayTypeCommand.getParameters ( ) . getTagsVmMap ( ) ) ; org.ovirt.engine.core.bll.UpdateTagsVmMapDefaultDisplayTypeCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { tagDao.updateDefaultDisplayForVmTag ( org.ovirt.engine.core.bll.UpdateTagsVmMapDefaultDisplayTypeCommand.getParameters ( ) . getTagsVmMap ( ) ) ; org.ovirt.engine.core.bll.UpdateTagsVmMapDefaultDisplayTypeCommand.setSucceeded ( true ) ; }
Source:
public void testAddGroupWithExplicitDirectoryName ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( ( ( ( "ADGROUP@" + ( DOMAIN ) ) + ": allnames=" ) + ( NAMES [ 0 ] ) ) , SearchType.AdGroup , getDirectoryGroup ( 0 ) ) ; setUpCreationExpectations ( VdcActionType.AddGroup , org.ovirt.engine.core.common.action.DirectoryIdParameters.class , new java.lang.String [ ] { "Directory" , "Id" } , new java.lang.Object [ ] { DOMAIN , GUIDS [ 0 ] } , true , true , null , VdcQueryType.GetDbGroupById , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , getEntity ( 0 ) ) ; org.ovirt.engine.api.model.Domain domain = new org.ovirt.engine.api.model.Domain ( ) ; domain.setName ( org.ovirt.engine.api.restapi.resource.DOMAIN ) ; org.ovirt.engine.api.model.Group model = new org.ovirt.engine.api.model.Group ( ) ; model.setName ( NAMES [ 0 ] ) ; model.setDomain ( domain ) ; javax.ws.rs.core.Response response = collection.add ( model ) ; assertEquals ( 201 , response.getStatus ( ) ) ; assertTrue ( ( ( response.getEntity ( ) ) instanceof org.ovirt.engine.api.model.Group ) ) ; verifyModel ( ( ( org.ovirt.engine.api.model.Group ) ( response.getEntity ( ) ) ) , 0 ) ; }

Target:
public void testAddGroupWithExplicitDirectoryName ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( ( ( ( "ADGROUP@" + ( DOMAIN ) ) + ": allnames=" ) + ( NAMES [ 0 ] ) ) , SearchType.AdGroup , getDirectoryGroup ( 0 ) ) ; setUpCreationExpectations ( VdcActionType.AddGroup , org.ovirt.engine.core.common.action.DirectoryIdParameters.class , new java.lang.String [ ] { "Directory" , "Id" } , new java.lang.Object [ ] { DOMAIN , EXTERNAL_IDS [ 0 ] } , true , true , GUIDS [ 0 ] , VdcQueryType.GetDbGroupById , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , getEntity ( 0 ) ) ; org.ovirt.engine.api.model.Domain domain = new org.ovirt.engine.api.model.Domain ( ) ; domain.setName ( org.ovirt.engine.api.restapi.resource.DOMAIN ) ; org.ovirt.engine.api.model.Group model = new org.ovirt.engine.api.model.Group ( ) ; model.setName ( NAMES [ 0 ] ) ; model.setDomain ( domain ) ; javax.ws.rs.core.Response response = collection.add ( model ) ; assertEquals ( 201 , response.getStatus ( ) ) ; assertTrue ( ( ( response.getEntity ( ) ) instanceof org.ovirt.engine.api.model.Group ) ) ; verifyModel ( ( ( org.ovirt.engine.api.model.Group ) ( response.getEntity ( ) ) ) , 0 ) ; }
Source:
public void addColumn ( com.google.gwt.user.cellview.client.Column < T , ? > column , java.lang.String headerText ) { addColumn ( column , getHeader ( column , headerText , false ) ) ; }

Target:
public void addColumn ( com.google.gwt.user.cellview.client.Column < T , ? > column , java.lang.String headerText ) { table.addColumn ( column , headerText ) ; tableHeader.addColumn ( column , headerText ) ; }
Source:
public void unsetBoot ( ) { this . boot = null ; }

Target:
public void setBoot ( org.ovirt.engine.sdk.entities.Boot value ) { this . boot = value ; }
Source:
protected void updateBootOrderInVmDevice ( ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.updateBootOrder ( org.ovirt.engine.core.bll.storage.disk.AttachDiskToVmCommand.getVm ( ) . getId ( ) ) ; }

Target:
protected void updateBootOrderInVmDevice ( ) { org.ovirt.engine.core.bll.storage.disk.AttachDiskToVmCommand.getVmDeviceUtils ( ) . updateBootOrder ( org.ovirt.engine.core.bll.storage.disk.AttachDiskToVmCommand.getVm ( ) . getId ( ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > filter ( java.util.List < org.ovirt.engine.core.common.businessentities.VDS > hosts , org.ovirt.engine.core.common.businessentities.VM vm , java.util.Map < java.lang.String , java.lang.String > parameters , org.ovirt.engine.core.common.scheduling.PerHostMessages messages ) { return org.ovirt.engine.core.bll.scheduling.policyunits.VmAffinityFilterPolicyUnit.getAcceptableHosts ( true , hosts , vm , messages ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > filter ( java.util.List < org.ovirt.engine.core.common.businessentities.VDS > hosts , org.ovirt.engine.core.common.businessentities.VM vm , java.util.Map < java.lang.String , java.lang.String > parameters , org.ovirt.engine.core.common.scheduling.PerHostMessages messages ) { return org.ovirt.engine.core.bll.scheduling.policyunits.VmAffinityFilterPolicyUnit.getAcceptableHosts ( true , hosts , vm , messages , getPendingResourceManager ( ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getVmDevicesAttachedToHost ( org.ovirt.engine.core.compat.Guid hostId ) { return getCallsHandler ( ) . executeReadList ( "GetVmDevicesAttachedToHost" , VmDeviceDaoImpl.VmDeviceRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "host_id" , hostId ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getVmDevicesAttachedToHost ( org.ovirt.engine.core.compat.Guid hostId ) { return getCallsHandler ( ) . executeReadList ( "GetVmDevicesAttachedToHost" , VmDeviceDaoImpl.vmDeviceRowMapper , getCustomMapSqlParameterSource ( ) . addValue ( "host_id" , hostId ) ) ; }
Source:
public void testIsNetworkInSyncWhenNetworkQosIsNull ( ) throws java.lang.Exception { networkQos = null ; org.junit.Assert.assertThat ( createTestedInstanceWithSameNonQosValues ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testIsNetworkInSyncWhenNetworkQosIsNull ( ) { networkQos = null ; org.hamcrest.MatcherAssert.assertThat ( createTestedInstanceWithSameNonQosValues ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
protected boolean setAndValidateCpuProfile ( ) { return validate ( org.ovirt.engine.core.bll.profiles.CpuProfileHelper.setAndValidateCpuProfile ( getVmTemplate ( ) , getVdsGroup ( ) . getcompatibility_version ( ) ) ) ; }

Target:
protected boolean setAndValidateCpuProfile ( ) { getVmTemplate ( ) . setVdsGroupId ( getVdsGroupId ( ) ) ; return validate ( org.ovirt.engine.core.bll.profiles.CpuProfileHelper.setAndValidateCpuProfile ( getVmTemplate ( ) , getVdsGroup ( ) . getcompatibility_version ( ) ) ) ; }
Source:
public boolean AddAsyncRunningVm ( org.ovirt.engine.core.compat.Guid vmId ) { return asyncRunningVms.add ( vmId ) ; }

Target:
public boolean addAsyncRunningVm ( org.ovirt.engine.core.compat.Guid vmId ) { return asyncRunningVms.add ( vmId ) ; }
Source:
private void addErrataForHostsFeature ( org.ovirt.engine.api.model.Features features ) { org.ovirt.engine.api.model.Feature feature = new org.ovirt.engine.api.model.Feature ( ) ; feature.setName ( "Katello Host Errata" ) ; feature.setDescription ( "View available Katello Errata for hosts." ) ; features.getFeature ( ) . add ( feature ) ; }

Target:
private void addErrataForHostsFeature ( org.ovirt.engine.api.model.Features features ) { org.ovirt.engine.api.model.Feature feature = new org.ovirt.engine.api.model.Feature ( ) ; feature.setName ( "Katello Errata" ) ; feature.setDescription ( "View available Katello Errata for hosts and system." ) ; features.getFeature ( ) . add ( feature ) ; }
Source:
public org.ovirt.engine.core.bll.quota.QuotaManager getQuotaManager ( ) { return quotaManager ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.Quota > searchQuota ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Quota > quotaList = genericSearch ( quotaDao , true ) ; quotaManager.updateUsage ( quotaList ) ; return quotaList ; }
Source:
java.util.List < org.ovirt.engine.core.common.businessentities.VM > getAllRunningForStorageDomain ( org.ovirt.engine.core.compat.Guid storageDomain ) ;

Target:
java.util.List < org.ovirt.engine.core.common.businessentities.VM > getAllActiveForStorageDomain ( org.ovirt.engine.core.compat.Guid storageDomain ) ;
Source:
public void setis_auto_suspend ( boolean value ) { this . mVmStatic.setis_auto_suspend ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "is_auto_suspend" ) ) ; }

Target:
public void setAutoStartup ( boolean value ) { vmStatic.setAutoStartup ( value ) ; }
Source:
public void setGuid ( org.ovirt.engine.core.compat.Guid guid ) { this . guid = guid ; }

Target:
public void setId ( org.ovirt.engine.core.common.utils.ExternalId id ) { this . id = id ; }
Source:
public void testAllLunsSupportDiscardFailsOneLunDoesNotSupport ( ) { junit.framework.Assert.assertFalse ( discardHelper.allLunsSupportDiscard ( java.util.Arrays.asList ( createLunWithDiscardFunctionality ( 1024L , true ) , createLunWithDiscardFunctionality ( 2048L , false ) , createLunWithDiscardFunctionality ( 0L , true ) ) ) ) ; }

Target:
public void testAllLunsSupportDiscardFailsOneLunDoesNotSupport ( ) { org.junit.Assert.assertFalse ( discardHelper.allLunsSupportDiscard ( java.util.Arrays.asList ( createLunWithDiscardFunctionality ( 1024L , true ) , createLunWithDiscardFunctionality ( 2048L , false ) , createLunWithDiscardFunctionality ( 0L , true ) ) ) ) ; }
Source:
public void run ( ) { org.ovirt.engine.core.bll.InitBackendServicesOnStartupBean.log.infoFormat ( "MacPoolManager started: {0}" , new java.util.Date ( ) ) ; org.ovirt.engine.core.bll.MacPoolManager.getInstance ( ) . initialize ( ) ; org.ovirt.engine.core.bll.InitBackendServicesOnStartupBean.log.infoFormat ( "MacPoolManager finished: {0}" , new java.util.Date ( ) ) ; }

Target:
public void run ( ) { org.ovirt.engine.core.bll.InitBackendServicesOnStartupBean.log.infoFormat ( "MacPoolManager started: {0}" , new java.util.Date ( ) ) ; org.ovirt.engine.core.bll.network.MacPoolManager.getInstance ( ) . initialize ( ) ; org.ovirt.engine.core.bll.InitBackendServicesOnStartupBean.log.infoFormat ( "MacPoolManager finished: {0}" , new java.util.Date ( ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.utils.vmproperties.VmPropertiesUtils.ValidationError > validateVMProperties ( org.ovirt.engine.core.compat.Version version , org.ovirt.engine.core.common.businessentities.VmStatic vmStatic ) { java.util.List < org.ovirt.engine.core.utils.vmproperties.VmPropertiesUtils.ValidationError > errors = validateProperties ( version , vmStatic.getCustomProperties ( ) ) ; return errors ; }

Target:
public java.util.List < org.ovirt.engine.core.utils.customprop.ValidationError > validateVMProperties ( org.ovirt.engine.core.compat.Version version , org.ovirt.engine.core.common.businessentities.VmStatic vmStatic ) { java.util.List < org.ovirt.engine.core.utils.customprop.ValidationError > errors = validateProperties ( version , vmStatic.getCustomProperties ( ) ) ; return errors ; }
Source:
private void IsTemplatePrivate_EntityChanged ( java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { getIsTemplatePublic ( ) . setEntity ( ( ! ( ( java.lang.Boolean ) ( getIsTemplatePrivate ( ) . getEntity ( ) ) ) ) ) ; }

Target:
private void CoresPerSocket_EntityChanged ( java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { behavior.coresPerSocketChanged ( ) ; }
Source:
public javax.ws.rs.core.Response deactivate ( org.ovirt.engine.api.model.Action action ) { return doAction ( VdcActionType.MaintenanceNumberOfVdss , new org.ovirt.engine.core.common.action.MaintenanceNumberOfVdssParameters ( asList ( guid ) , false ) , action ) ; }

Target:
public javax.ws.rs.core.Response deactivate ( org.ovirt.engine.api.model.Action action ) { return doAction ( VdcActionType.MaintenanceNumberOfVdss , new org.ovirt.engine.core.common.action.MaintenanceNumberOfVdssParameters ( asList ( guid ) , false , false , getBooleanMatrixParam ( org.ovirt.engine.api.restapi.resource.BackendHostResource.STOP_GLUSTER_SERVICE ) ) , action ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Boolean ) ( source ) ) . booleanValue ( ) : true ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Boolean ) ( source ) ) . booleanValue ( ) : true ; }
Source:
public void getFreeVfNoVfs ( ) { freeVfCommon ( 0 , 0 , 0 , 0 , 0 ) ; org.junit.Assert.assertNull ( hostNicVfsConfigHelper.getFreeVf ( nic ) ) ; }

Target:
public void removeVmIdFromVfsNoVfsWithVmIdTest ( ) { removeVmIdFromVfsCommonTest ( 0 , 2 ) ; }
Source:
public org.ovirt.engine.api.v3.types.V3VM update ( org.ovirt.engine.api.v3.types.V3VM vm ) { return adaptUpdate ( delegate :: update , vm ) ; }

Target:
public javax.ws.rs.core.Response previewSnapshot ( org.ovirt.engine.api.v3.types.V3Action action ) { return adaptAction ( getDelegate ( ) :: previewSnapshot , action ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.network.Network object ) { return object.getProvidedBy ( ) . getExternalId ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.network.NetworkView object ) { return object.getProvidedBy ( ) . getExternalId ( ) ; }
Source:
public org.ovirt.engine.api.resource.externalhostproviders.SystemKatelloErrataResource getKatelloErrataResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.externalhostproviders.BackendSystemKatelloErrataResource ( ) ) ; }

Target:
public org.ovirt.engine.api.resource.externalhostproviders.EngineKatelloErrataResource getKatelloErrataResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.externalhostproviders.BackendEngineKatelloErrataResource ( ) ) ; }
Source:
public boolean DisconnectStorageFromLunByVdsId ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain , org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.common.businessentities.LUNs lun ) { return runConnectionStorageToDomain ( storageDomain , vdsId , VDSCommandType.DisconnectStorageServer.getValue ( ) , lun , Guid.Empty ) ; }

Target:
public boolean disconnectStorageFromLunByVdsId ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain , org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.common.businessentities.LUNs lun ) { return runConnectionStorageToDomain ( storageDomain , vdsId , VDSCommandType.DisconnectStorageServer.getValue ( ) , lun , Guid.Empty ) ; }
Source:
public int getAnonymousHugePages ( ) { return this . anonymousHugePages ; }

Target:
public boolean isPowerManagementControlledByPolicy ( ) { return powerManagementControlledByPolicy ; }
Source:
public void testMacIsContainedInRange ( ) { org.junit.Assert.assertThat ( rangeOf10Macs.contains ( org.ovirt.engine.core.bll.network.macpool.RangeTest.MAC_FROM_RANGE ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testMacIsContainedInRange ( ) { org.hamcrest.MatcherAssert.assertThat ( rangeOf10Macs.contains ( org.ovirt.engine.core.bll.network.macpool.RangeTest.MAC_FROM_RANGE ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
protected void verifyModel ( org.ovirt.engine.api.model.User model , int index ) { assertEquals ( GUIDS [ index ] . toString ( ) , model.getId ( ) ) ; assertEquals ( ( ( ( NAMES [ index ] ) + "@" ) + ( DOMAIN ) ) , model.getUserName ( ) ) ; assertNotNull ( model.getDomain ( ) ) ; assertEquals ( new org.ovirt.engine.core.compat.Guid ( org.ovirt.engine.api.restapi.resource.aaa.DOMAIN.getBytes ( ) , true ) . toString ( ) , model.getDomain ( ) . getId ( ) ) ; assertTrue ( model.isSetGroups ( ) ) ; assertEquals ( org.ovirt.engine.api.restapi.resource.aaa.BackendUsersResourceTest.PARSED_GROUPS.length , model.getGroups ( ) . getGroups ( ) . size ( ) ) ; java.util.HashSet < java.lang.String > groupNames = new java.util.HashSet < > ( ) ; for ( org.ovirt.engine.api.model.Group group : model.getGroups ( ) . getGroups ( ) ) { groupNames.add ( group.getName ( ) ) ; } assertEquals ( new java.util.HashSet < java.lang.String > ( java.util.Arrays.asList ( org.ovirt.engine.api.restapi.resource.aaa.BackendUsersResourceTest.PARSED_GROUPS ) ) , groupNames ) ; verifyLinks ( model ) ; }

Target:
protected void verifyModel ( org.ovirt.engine.api.model.User model , int index ) { assertEquals ( GUIDS [ index ] . toString ( ) , model.getId ( ) ) ; assertEquals ( ( ( ( NAMES [ index ] ) + "@" ) + ( DOMAIN ) ) , model.getUserName ( ) ) ; assertNotNull ( model.getDomain ( ) ) ; assertEquals ( new org.ovirt.engine.core.compat.Guid ( org.ovirt.engine.api.restapi.resource.aaa.DOMAIN.getBytes ( java.nio.charset.Charset.forName ( "UTF-8" ) ) , true ) . toString ( ) , model.getDomain ( ) . getId ( ) ) ; assertTrue ( model.isSetGroups ( ) ) ; assertEquals ( org.ovirt.engine.api.restapi.resource.aaa.BackendUsersResourceTest.PARSED_GROUPS.length , model.getGroups ( ) . getGroups ( ) . size ( ) ) ; java.util.HashSet < java.lang.String > groupNames = new java.util.HashSet < > ( ) ; for ( org.ovirt.engine.api.model.Group group : model.getGroups ( ) . getGroups ( ) ) { groupNames.add ( group.getName ( ) ) ; } assertEquals ( new java.util.HashSet < java.lang.String > ( java.util.Arrays.asList ( org.ovirt.engine.api.restapi.resource.aaa.BackendUsersResourceTest.PARSED_GROUPS ) ) , groupNames ) ; verifyLinks ( model ) ; }
Source:
public void testGetGlusterVolumeSnapshotConfigByVolumeIdAndName ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeSnapshotConfig config = dao.getConfigByVolumeIdAndName ( org.ovirt.engine.core.dao.gluster.GlusterVolumeSnapshotConfigDaoTest.CLUSTER_ID , org.ovirt.engine.core.dao.gluster.GlusterVolumeSnapshotConfigDaoTest.VOLUME_ID , org.ovirt.engine.core.dao.gluster.GlusterVolumeSnapshotConfigDaoTest.PARAM_NAME_2 ) ; org.junit.Assert.assertNotNull ( config ) ; org.junit.Assert.assertEquals ( config , existingConfig2 ) ; }

Target:
public void testGetGlusterVolumeSnapshotConfigByVolumeIdAndName ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeSnapshotConfig config = dao.getConfigByVolumeIdAndName ( org.ovirt.engine.core.dao.gluster.GlusterVolumeSnapshotConfigDaoTest.CLUSTER_ID , org.ovirt.engine.core.dao.gluster.GlusterVolumeSnapshotConfigDaoTest.VOLUME_ID , org.ovirt.engine.core.dao.gluster.GlusterVolumeSnapshotConfigDaoTest.PARAM_NAME_2 ) ; org.junit.jupiter.api.Assertions.assertNotNull ( config ) ; org.junit.jupiter.api.Assertions.assertEquals ( config , existingConfig2 ) ; }
Source:
protected void executeVdsBrokerCommand ( ) { _result = org.ovirt.engine.core.vdsbroker.vdsbroker.HSMGetTaskStatusVDSCommand.getBroker ( ) . getTaskStatus ( org.ovirt.engine.core.vdsbroker.vdsbroker.HSMGetTaskStatusVDSCommand.getParameters ( ) . getTaskId ( ) . toString ( ) ) ; proceedProxyReturnValue ( ) ; setReturnValue ( parseTaskStatus ( _result.TaskStatus ) ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { _result = org.ovirt.engine.core.vdsbroker.vdsbroker.HSMGetTaskStatusVDSCommand.getBroker ( ) . getTaskStatus ( org.ovirt.engine.core.vdsbroker.vdsbroker.HSMGetTaskStatusVDSCommand.getParameters ( ) . getTaskId ( ) . toString ( ) ) ; proceedProxyReturnValue ( ) ; setReturnValue ( parseTaskStatus ( _result.taskStatus ) ) ; }
Source:
public org.ovirt.engine.core.bll.job.ExecutionContext getExecutionContext ( ) { return super . getExecutionContext ( ) ; }

Target:
private boolean verifyDisksIfNeeded ( ) { if ( ( ! ( getParameters ( ) . isImportAsNewEntity ( ) ) ) && ( ! ( org.ovirt.engine.core.bll.ImportVmCommand.isImagesAlreadyOnTarget ( ) ) ) ) { return checkIfDisksExist ( imageList ) ; } return true ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetDbUserByUserIdQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getDbUserDAO ( ) . get ( org.ovirt.engine.core.bll.GetDbUserByUserIdQuery.getParameters ( ) . getUserId ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetDbUserByUserIdQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getDbUserDao ( ) . get ( org.ovirt.engine.core.bll.GetDbUserByUserIdQuery.getParameters ( ) . getUserId ( ) ) ) ; }
Source:
protected void executeCommand ( ) { InitOldParentTagName ( ) ; org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . MoveTag ( org.ovirt.engine.core.bll.MoveTagCommand.getParameters ( ) . getTagId ( ) , org.ovirt.engine.core.bll.MoveTagCommand.getParameters ( ) . getNewParentId ( ) ) ; org.ovirt.engine.core.bll.MoveTagCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { InitOldParentTagName ( ) ; org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . moveTag ( org.ovirt.engine.core.bll.MoveTagCommand.getParameters ( ) . getTagId ( ) , org.ovirt.engine.core.bll.MoveTagCommand.getParameters ( ) . getNewParentId ( ) ) ; org.ovirt.engine.core.bll.MoveTagCommand.setSucceeded ( true ) ; }
Source:
public java.lang.String getAddress ( ) { return nic.getAddress ( ) ; }

Target:
public java.lang.String getAddress ( ) { return nic.getIpv4Address ( ) ; }
Source:
private void setRngDeviceToParams ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel model , org.ovirt.engine.core.common.action.VmManagementParametersBase parameters ) { parameters.setUpdateRngDevice ( true ) ; parameters.setRngDevice ( ( model.getIsRngEnabled ( ) . getEntity ( ) ? model.generateRngDevice ( ) : null ) ) ; }

Target:
protected java.lang.String composeMessage ( ) { return org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getMessages ( ) . newNameWithSuffixCannotContainBlankOrSpecialChars ( maxClonedNameLength ) ; }
Source:
public void getUsbPolicyUsbTypeNative ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; usb.setType ( UsbType.NATIVE ) ; assertEquals ( UsbPolicy.ENABLED_NATIVE , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledNotSetNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setType ( UsbType.NATIVE ) ; org.junit.Assert.assertEquals ( UsbPolicy.ENABLED_NATIVE , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE ) ) ; }
Source:
private void setUpGetEntityExpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.GetVmByVmId , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , new org.ovirt.engine.api.model.VM ( ) ) ; }

Target:
private void setUpGetEntityExpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.GetVmByVmId , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , new org.ovirt.engine.api.restapi.resource.VM ( ) ) ; }