auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void RemoveVdsStatisticsFromDb ( ) { getVdsStatisticsDao ( ) . remove ( org.ovirt.engine.core.bll.RemoveVdsCommand.getVdsId ( ) ) ; }

Target:
private void removeVdsStatisticsFromDb ( ) { getVdsStatisticsDao ( ) . remove ( org.ovirt.engine.core.bll.RemoveVdsCommand.getVdsId ( ) ) ; }
Source:
public org.ovirt.engine.api.v3.servers.V3ActionServer getActionResource ( @ javax.ws.rs.PathParam ( value = "action" ) java.lang.String action , @ javax.ws.rs.PathParam ( value = "oid" ) java.lang.String oid ) { return new org.ovirt.engine.api.v3.servers.V3ActionServer ( delegate.getActionResource ( action , oid ) ) ; }

Target:
public org.ovirt.engine.api.v3.servers.V3ActionServer getActionResource ( @ javax.ws.rs.PathParam ( value = "action" ) java.lang.String action , @ javax.ws.rs.PathParam ( value = "oid" ) java.lang.String oid ) { return new org.ovirt.engine.api.v3.servers.V3ActionServer ( getDelegate ( ) . getActionResource ( action , oid ) ) ; }
Source:
private void ReturnVm ( ) { org.ovirt.engine.core.common.businessentities.VM entity = ( ( org.ovirt.engine.core.common.businessentities.VM ) ( getItem ( ) . getEntity ( ) ) ) ; org.ovirt.engine.ui.frontend.Frontend.RunAction ( VdcActionType.ShutdownVm , new org.ovirt.engine.core.common.action.ShutdownVmParameters ( entity.getId ( ) , false ) , null , null ) ; }

Target:
private void returnVm ( ) { org.ovirt.engine.core.common.businessentities.VM entity = ( ( org.ovirt.engine.core.common.businessentities.VM ) ( getItem ( ) . getEntity ( ) ) ) ; org.ovirt.engine.ui.frontend.Frontend.RunAction ( VdcActionType.ShutdownVm , new org.ovirt.engine.core.common.action.ShutdownVmParameters ( entity.getId ( ) , false ) , null , null ) ; }
Source:
public int getVmsCountByClusterId ( org.ovirt.engine.core.compat.Guid clusterId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "cluster_id" , clusterId ) ; return getCallsHandler ( ) . executeRead ( "GetNumberOfVmsInCluster" , getIntegerMapper ( ) , parameterSource ) ; }

Target:
public int getVmsCountByClusterId ( org.ovirt.engine.core.compat.Guid clusterId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "cluster_id" , clusterId ) ; return getCallsHandler ( ) . executeRead ( "GetNumberOfVmsInCluster" , org.springframework.jdbc.core.SingleColumnRowMapper.newInstance ( java.lang.Integer.class ) , parameterSource ) ; }
Source:
private void convertFailed ( ) { removeVm ( ) ; deleteV2VJob ( ) ; }

Target:
private void clearProgress ( ) { updateProgress ( null , ( - 1 ) ) ; }
Source:
private void filterAllStorageDomainsExceptOne ( java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > storageDomains , org.ovirt.engine.core.common.businessentities.StorageDomain expectedStorageDomain ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > filteredStorageDomains = new java.util.ArrayList ( memoryStorageHandler.filterStorageDomains ( storageDomains , memoryDisks ) ) ; org.junit.Assert.assertEquals ( filteredStorageDomains , java.util.Collections.singletonList ( expectedStorageDomain ) ) ; }

Target:
private void filterAllStorageDomainsExceptOne ( java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > storageDomains , org.ovirt.engine.core.common.businessentities.StorageDomain expectedStorageDomain ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > filteredStorageDomains = new java.util.ArrayList ( memoryStorageHandler.filterStorageDomains ( storageDomains , memoryDisks ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( filteredStorageDomains , java.util.Collections.singletonList ( expectedStorageDomain ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc startSpice ( java.lang.String vdsIp , int port , java.lang.String ticket ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterGeoRepMountBrokerSetup ( java.lang.String remoteVolumeName , java.lang.String userName , java.lang.String remoteGroupName , java.lang.Boolean partial ) ;
Source:
public org.ovirt.engine.core.vdsbroker.gluster.StorageDeviceListReturnForXmlRpc getStorageDeviceList ( ) { java.util.Map < java.lang.String , java.lang.Object > xmlRpcReturnValue = vdsServer.glusterStorageDevicesList ( ) ; org.ovirt.engine.core.vdsbroker.gluster.StorageDeviceListReturnForXmlRpc wrapper = new org.ovirt.engine.core.vdsbroker.gluster.StorageDeviceListReturnForXmlRpc ( xmlRpcReturnValue ) ; return wrapper ; }

Target:
public org.ovirt.engine.core.vdsbroker.gluster.StorageDeviceListReturnForXmlRpc getStorageDeviceList ( ) { try { java.util.Map < java.lang.String , java.lang.Object > xmlRpcReturnValue = vdsServer.glusterStorageDevicesList ( ) ; org.ovirt.engine.core.vdsbroker.gluster.StorageDeviceListReturnForXmlRpc wrapper = new org.ovirt.engine.core.vdsbroker.gluster.StorageDeviceListReturnForXmlRpc ( xmlRpcReturnValue ) ; return wrapper ; } catch ( java.lang.reflect.UndeclaredThrowableException ute ) { throw new org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcRunTimeException ( ute ) ; } }
Source:
public int getvm_count ( ) { return this . mVdsDynamic.getvm_count ( ) ; }

Target:
public int getVmCount ( ) { return this . mVdsDynamic.getvm_count ( ) ; }
Source:
protected java.lang.String getNodeDisabledTooltip ( ) { return constants.differentStorageDomainWarning ( ) ; }

Target:
protected java.lang.String getNodeDisabledTooltip ( ) { return org.ovirt.engine.ui.webadmin.widget.storage.VMsTree.constants.differentStorageDomainWarning ( ) ; }
Source:
public void testRemove ( ) { dao.remove ( existingAuditLog.getaudit_log_id ( ) ) ; org.ovirt.engine.core.common.businessentities.AuditLog result = dao.get ( existingAuditLog.getaudit_log_id ( ) ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testRemove ( ) { dao.remove ( existingAuditLog.getaudit_log_id ( ) ) ; org.ovirt.engine.core.common.businessentities.AuditLog result = dao.get ( existingAuditLog.getaudit_log_id ( ) ) ; org.junit.Assert.assertTrue ( result.isDeleted ( ) ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.StoragePool createNewStoragePool ( ) { org.ovirt.engine.core.common.businessentities.StoragePool pool = org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommandTest.createBasicPool ( ) ; pool.setStorageType ( StorageType.NFS ) ; pool.setcompatibility_version ( org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommandTest.VERSION_1_1 ) ; return pool ; }

Target:
private static org.ovirt.engine.core.common.businessentities.StoragePool createNewStoragePool ( ) { org.ovirt.engine.core.common.businessentities.StoragePool pool = org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommandTest.createBasicPool ( ) ; pool.setIsLocal ( false ) ; pool.setcompatibility_version ( org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommandTest.VERSION_1_1 ) ; return pool ; }
Source:
private void addAlert ( org.ovirt.engine.core.compat.Guid hostId , org.ovirt.engine.core.common.AuditLogType auditMessage ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AlertDirector.AddVdsAlert ( hostId , auditMessage ) ; }

Target:
private void addAlert ( org.ovirt.engine.core.compat.Guid hostId , org.ovirt.engine.core.common.AuditLogType auditMessage ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AlertDirector.AddVdsAlert ( hostId , auditMessage , auditLogDirector ) ; }
Source:
public void testCDAVdsSPMPrioritySetToNever ( ) { vds.setVdsSpmPriority ( BusinessEntitiesDefinitions.HOST_MIN_SPM_PRIORITY ) ; org.junit.Assert.assertFalse ( "canDoAction did not fail on a VDS that is set to never be elected as SPM" , command.canDoAction ( ) ) ; org.ovirt.engine.core.bll.CommandAssertUtils.checkMessagesContains ( command , VdcBllMessages.CANNOT_FORCE_SELECT_SPM_VDS_MARKED_AS_NEVER_SPM ) ; }

Target:
public void testCDAVdsSPMPrioritySetToNever ( ) { vds.setVdsSpmPriority ( BusinessEntitiesDefinitions.HOST_MIN_SPM_PRIORITY ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( "canDoAction did not fail on a VDS that is set to never be elected as SPM" , command , VdcBllMessages.CANNOT_FORCE_SELECT_SPM_VDS_MARKED_AS_NEVER_SPM ) ; }
Source:
public void externalNetworkDescriptionChanged ( ) { org.ovirt.engine.core.common.businessentities.network.Network externalNetwork = createExternalNetwork ( ) ; externalNetwork.setDescription ( "aaa" ) ; network.setDescription ( "bbb" ) ; org.junit.Assert.assertThat ( validator.externalNetworkDetailsUnchanged ( externalNetwork ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void externalNetworkDescriptionChanged ( ) { org.ovirt.engine.core.common.businessentities.network.Network externalNetwork = createExternalNetwork ( ) ; externalNetwork.setDescription ( "aaa" ) ; network.setDescription ( "bbb" ) ; org.hamcrest.MatcherAssert.assertThat ( validator.externalNetworkDetailsUnchanged ( externalNetwork ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void cancel ( ) { cancelConfirmation ( ) ; setGuideContext ( null ) ; org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel.setWindow ( null ) ; updateActionAvailability ( ) ; }

Target:
public void cancel ( ) { cancelConfirmation ( ) ; setGuideContext ( null ) ; org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel.setWindow ( null ) ; updateActionsAvailability ( ) ; }
Source:
public void setHeader ( com.google.gwt.user.client.ui.Widget widget ) { tabHeaderContainer.getElement ( ) . getStyle ( ) . setDisplay ( Display.BLOCK ) ; tabHeaderContainer.add ( widget ) ; }

Target:
public void setHeader ( com.google.gwt.user.client.ui.Widget widget ) { tabHeaderContainer.getElement ( ) . getStyle ( ) . setDisplay ( Display.BLOCK ) ; tabHeaderContainer.setWidget ( widget ) ; tabHeaderContainer.addStyleName ( style.headerSeparator ( ) ) ; }
Source:
protected void startPollingAsyncTasks ( java.util.Collection < org.ovirt.engine.core.compat.Guid > taskIds ) { for ( org.ovirt.engine.core.compat.Guid taskID : taskIds ) { org.ovirt.engine.core.bll.tasks.TaskManagerUtil.startPollingTask ( taskID ) ; } }

Target:
protected void startPollingAsyncTasks ( java.util.Collection < org.ovirt.engine.core.compat.Guid > taskIds ) { for ( org.ovirt.engine.core.compat.Guid taskID : taskIds ) { org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.startPollingTask ( taskID ) ; } }
Source:
public void prepareMessage ( java.lang.String hostName , org.ovirt.engine.core.common.businessentities.event_audit_log_subscriber eventData , boolean isBodyHtml ) { prepareMessageSubject ( hostName , eventData ) ; prepareMessageBody ( eventData , isBodyHtml ) ; }

Target:
public void prepareMessage ( java.lang.String hostName , org.ovirt.engine.core.common.businessentities.EventAuditLogSubscriber eventData , boolean isBodyHtml ) { prepareMessageSubject ( hostName , eventData ) ; prepareMessageBody ( eventData , isBodyHtml ) ; }
Source:
public static org.ovirt.engine.core.common.asynctasks.gluster.GlusterAsyncTaskStatus from ( java.lang.String status ) { for ( org.ovirt.engine.core.common.asynctasks.gluster.GlusterAsyncTaskStatus taskStatus : org.ovirt.engine.core.common.asynctasks.gluster.GlusterAsyncTaskStatus.values ( ) ) { if ( taskStatus.value ( ) . equalsIgnoreCase ( status ) ) { return taskStatus ; } } return null ; }

Target:
public static org.ovirt.engine.core.common.asynctasks.gluster.GlusterAsyncTaskStatus from ( java.lang.String status ) { for ( org.ovirt.engine.core.common.asynctasks.gluster.GlusterAsyncTaskStatus taskStatus : org.ovirt.engine.core.common.asynctasks.gluster.GlusterAsyncTaskStatus.values ( ) ) { if ( taskStatus.value ( ) . equalsIgnoreCase ( status ) ) { return taskStatus ; } } return org.ovirt.engine.core.common.asynctasks.gluster.GlusterAsyncTaskStatus.UNKNOWN ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { super . ExecuteVdsBrokerCommand ( ) ; updateNetConfigDirtyFlag ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.CollectVdsNetworkDataVDSCommand.persistAndEnforceNetworkCompliance ( getVds ( ) , skipManagementNetwork ( ) ) ; proceedProxyReturnValue ( ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { super . executeVdsBrokerCommand ( ) ; updateNetConfigDirtyFlag ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.CollectVdsNetworkDataVDSCommand.persistAndEnforceNetworkCompliance ( getVds ( ) , skipManagementNetwork ( ) ) ; proceedProxyReturnValue ( ) ; }
Source:
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 ) ; }

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 ProceedOnFail ( ) { getQueryReturnValue ( ) . setIsSearchValid ( false ) ; }

Target:
protected void proceedOnFail ( ) { getQueryReturnValue ( ) . setIsSearchValid ( false ) ; }
Source:
public boolean Match ( org.ovirt.engine.core.common.businessentities.StorageDomain source ) { return name.equals ( source.getstorage_name ( ) ) ; }

Target:
public boolean Match ( org.ovirt.engine.core.common.businessentities.StorageDomain source ) { return name.equals ( source.getStorageName ( ) ) ; }
Source:
public void testDefaultRouteNonDefaultRouteNetwork ( ) { iface.setIpv4DefaultRoute ( true ) ; network.setDnsResolverConfiguration ( sampleDnsResolverConfiguration ) ; org.junit.Assert.assertThat ( createTestedInstance ( false , sampleDnsResolverConfiguration ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( false ) ) ; }

Target:
public void testDefaultRouteWhenInSync ( ) { iface.setIpv4DefaultRoute ( true ) ; network.setDnsResolverConfiguration ( sampleDnsResolverConfiguration ) ; org.hamcrest.MatcherAssert.assertThat ( createTestedInstance ( true , sampleDnsResolverConfiguration ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity > getReplicateVolumes ( org.ovirt.engine.core.compat.Guid clusterId , java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeType > volumeTypes ) { return org.ovirt.engine.core.bll.gluster.GetGlusterVolumeAdvancedDetailsQuery.getGlusterVolumeDao ( ) . getVolumesByStatusAndTypes ( clusterId , GlusterStatus.UP , volumeTypes ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity > getReplicateVolumes ( org.ovirt.engine.core.compat.Guid clusterId , java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeType > volumeTypes ) { return glusterVolumeDao.getVolumesByStatusAndTypes ( clusterId , GlusterStatus.UP , volumeTypes ) ; }
Source:
public boolean apply ( org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfig config ) { return config.isDetachable ( ) ; }

Target:
public org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfigMap getDetachables ( ) { return filter ( ( config ) -> config.isDetachable ( ) ) ; }
Source:
protected void removeVmUsers ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.TagsVmMap > all = tagDao.getTagVmMapByVmIdAndDefaultTag ( org.ovirt.engine.core.bll.VmCommand.getVmId ( ) ) ; for ( org.ovirt.engine.core.common.businessentities.TagsVmMap tagVm : all ) { tagDao.detachVmFromTag ( tagVm.getTagId ( ) , org.ovirt.engine.core.bll.VmCommand.getVmId ( ) ) ; } }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNic > getInterfaces ( ) { if ( ( interfaces ) == null ) { interfaces = vmNicDao.getAllForVm ( org.ovirt.engine.core.bll.VmCommand.getVmId ( ) ) ; } return interfaces ; }
Source:
public static org.ovirt.engine.core.common.businessentities.VDS findHostById ( java.util.Collection < org.ovirt.engine.core.common.businessentities.VDS > items , org.ovirt.engine.core.compat.Guid hostId ) { for ( org.ovirt.engine.core.common.businessentities.VDS host : items ) { if ( host.getId ( ) . equals ( hostId ) ) { return host ; } } return null ; }

Target:
public static org.ovirt.engine.core.common.businessentities.VDS findHostByIdFromIdList ( java.util.Collection < org.ovirt.engine.core.common.businessentities.VDS > items , java.util.List < org.ovirt.engine.core.compat.Guid > hostIdList ) { for ( org.ovirt.engine.core.common.businessentities.VDS host : items ) { if ( hostIdList.contains ( host.getId ( ) ) ) { return host ; } } return null ; }
Source:
public boolean apply ( org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfig config ) { return ( config.isVisibleOnlyInAdvanced ( ) ) && ( config.isApplicationLevelVisible ( ) ) ; }

Target:
public org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfigMap getVisibleInAdvanceMode ( ) { return filter ( ( config ) -> ( config.isVisibleOnlyInAdvanced ( ) ) && ( config.isApplicationLevelVisible ( ) ) ) ; }
Source:
public void testGetBaseNicBaseNicIsSimplyReturned ( ) { org.mockito.Mockito.verifyNoMoreInteractions ( interfaceDao ) ; org.junit.Assert.assertThat ( calculateBaseNic.getBaseNic ( baseNic , null ) , org.hamcrest.CoreMatchers.is ( baseNic ) ) ; }

Target:
public void testGetBaseNicBaseNicIsSimplyReturned ( ) { org.mockito.Mockito.verifyNoMoreInteractions ( interfaceDao ) ; org.hamcrest.MatcherAssert.assertThat ( calculateBaseNic.getBaseNic ( baseNic , null ) , org.hamcrest.CoreMatchers.is ( baseNic ) ) ; }
Source:
public void testParseStrayColons ( ) { org.ovirt.engine.api.restapi.util.FenceOptionsParser.parse ( "foo:::one=1,two=2,three=3" , "one=bool,two=int,three=bool" ) ; }

Target:
public void testParseStrayColons ( ) { java.util.List < org.ovirt.engine.api.model.PowerManagement > ret = org.ovirt.engine.api.restapi.util.FenceOptionsParser.parse ( "foo:::one=1,two=2,three=3" , "one=bool,two=int,three=bool" ) ; assertNotNull ( ret ) ; assertEquals ( 0 , ret.size ( ) ) ; }
Source:
private static java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getUsbRedirectDevices ( org.ovirt.engine.core.common.businessentities.VmBase vm ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > list = org.ovirt.engine.core.bll.utils.VmDeviceUtils.dao.getVmDeviceByVmIdTypeAndDevice ( vm.getId ( ) , VmDeviceGeneralType.CHANNEL , VmDeviceType.SPICEVMC.getName ( ) ) ; return list ; }

Target:
private static java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getUsbRedirectDevices ( org.ovirt.engine.core.common.businessentities.VmBase vm ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > list = org.ovirt.engine.core.bll.utils.VmDeviceUtils.dao.getVmDeviceByVmIdTypeAndDevice ( vm.getId ( ) , VmDeviceGeneralType.REDIR , VmDeviceType.SPICEVMC.getName ( ) ) ; return list ; }
Source:
private void prepareMessageSubject ( java.lang.String hostName , org.ovirt.engine.core.common.businessentities.event_audit_log_subscriber eventData ) { subject = org.ovirt.engine.core.notifier.utils.sender.mail.MessageHelper.prepareMessageSubject ( eventData.getevent_type ( ) , hostName , eventData.getmessage ( ) ) ; }

Target:
private void prepareMessageSubject ( java.lang.String hostName , org.ovirt.engine.core.common.businessentities.EventAuditLogSubscriber eventData ) { subject = org.ovirt.engine.core.notifier.utils.sender.mail.MessageHelper.prepareMessageSubject ( eventData.getevent_type ( ) , hostName , eventData.getmessage ( ) ) ; }
Source:
public synchronized void lockAndAddTaskToManager ( org.ovirt.engine.core.bll.tasks.SPMAsyncTask task ) { addTaskToManager ( task ) ; }

Target:
public synchronized void lockAndAddTaskToManager ( org.ovirt.engine.core.bll.tasks.interfaces.SPMTask task ) { addTaskToManager ( task ) ; }
Source:
public void auditLog ( org.ovirt.engine.core.common.AuditLogType auditLogType , org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase auditLogable ) { if ( auditLogType != null ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( auditLogable , auditLogType ) ; } }

Target:
public void auditLog ( org.ovirt.engine.core.common.AuditLogType auditLogType , org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase auditLogable ) { if ( auditLogType != null ) { new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector ( ) . log ( auditLogable , auditLogType ) ; } }
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 ) { updateSysprepVisibility ( object ) ; updateInitialRunTabVisibility ( object ) ; }

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 ) { updateSysprepVisibility ( object ) ; if ( java.lang.Boolean.TRUE.equals ( object.getIsSysprepEnabled ( ) . getEntity ( ) ) ) { runOnceModel.autoSetVmHostname ( ) ; } }
Source:
private void saveTaskAndPutInMap ( java.lang.String taskKey , org.ovirt.engine.core.common.businessentities.AsyncTasks task ) { org.ovirt.engine.core.bll.CommandBase.getAsyncTaskDao ( ) . save ( task ) ; taskKeyToTaskIdMap.put ( taskKey , task.getTaskId ( ) ) ; }

Target:
private void saveTaskAndPutInMap ( java.lang.String taskKey , org.ovirt.engine.core.common.businessentities.AsyncTask task ) { org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.saveAsyncTaskToDb ( task ) ; taskKeyToTaskIdMap.put ( taskKey , task.getTaskId ( ) ) ; }
Source:
public void setvm_os ( org.ovirt.engine.core.common.businessentities.VmOsType value ) { this . mVmStatic.setos ( value ) ; }

Target:
public java.util.Date getVmCreationDate ( ) { return this . vmStatic.getcreation_date ( ) ; }
Source:
public void invalidProviderType ( ) { org.mockito.Mockito.when ( provider.getType ( ) ) . thenReturn ( org.ovirt.engine.core.bll.provider.NetworkProviderValidatorTest.NON_NETWORK_PROVIDER_TYPE ) ; org.junit.Assert.assertThat ( validator.providerTypeIsOpenstack ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_PROVIDER_TYPE_MISMATCH ) ) ; }

Target:
public void invalidOpenstackProviderType ( ) { org.mockito.Mockito.when ( provider.getType ( ) ) . thenReturn ( org.ovirt.engine.core.bll.provider.NetworkProviderValidatorTest.NON_NETWORK_PROVIDER_TYPE ) ; org.junit.Assert.assertThat ( validator.providerTypeIsOpenstack ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_PROVIDER_TYPE_MISMATCH ) ) ; }
Source:
private void setImportedVms ( org.ovirt.engine.ui.uicommonweb.models.ListModel < org.ovirt.engine.ui.uicommonweb.models.vms.ExternalVm > importedVms ) { this . importedVms = importedVms ; }

Target:
private void setImportedVmModels ( org.ovirt.engine.ui.uicommonweb.models.ListModel < org.ovirt.engine.ui.uicommonweb.models.EntityModel < org.ovirt.engine.core.common.businessentities.VM > > importedVmModels ) { this . importedVmModels = importedVmModels ; }
Source:
public void addEvent ( java.lang.String path , java.lang.String type , org.ovirt.engine.core.compat.Event event ) { eventMap.put ( getKey ( path , type ) , event ) ; }

Target:
public void addEvent ( java.lang.String path , java.lang.String type , org.ovirt.engine.ui.uicompat.Event event ) { eventMap.put ( getKey ( path , type ) , event ) ; }
Source:
public void failCreateMoreNumaNodesThanVirtualCoresWithVmFromDb ( ) { final org.ovirt.engine.core.bll.numa.vm.AddVmNumaNodesCommand command = mockedCommandWithVmFromDb ( ) ; vm.setNumOfSockets ( 1 ) ; vm.setCpuPerSocket ( 3 ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.VM_NUMA_NODE_MORE_NODES_THAN_CPUS ) ; }

Target:
public void failCreateMoreNumaNodesThanVirtualCoresWithVmFromDb ( ) { final org.ovirt.engine.core.bll.numa.vm.AddVmNumaNodesCommand command = mockedCommandWithVmFromDb ( ) ; vm.setNumOfSockets ( 1 ) ; vm.setCpuPerSocket ( 3 ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.VM_NUMA_NODE_MORE_NODES_THAN_CPUS ) ; }
Source:
public java.nio.channels.SelectionKey call ( ) throws java.nio.channels.ClosedChannelException { return channel.register ( selector , java.nio.channels.SelectionKey.OP_READ , client ) ; }

Target:
public java.nio.channels.SelectionKey call ( ) throws java.nio.channels.ClosedChannelException { if ( ! ( this . isOpen ( ) ) ) { throw new java.nio.channels.ClosedChannelException ( ) ; } return channel.register ( selector , java.nio.channels.SelectionKey.OP_READ , client ) ; }
Source:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s, dstDomainId = %s, vmId = %s, op = %s, postZero = %s, force = %s" , super . toString ( ) , getDstDomainId ( ) , getVmId ( ) , getOp ( ) , getPostZero ( ) , getForce ( ) ) ; }

Target:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s, vmId = %s, op = %s, postZero = %s, force = %s" , super . toString ( ) , getVmId ( ) , getOp ( ) , getPostZero ( ) , getForce ( ) ) ; }
Source:
protected void initSelectedType ( ) { getNicType ( ) . setSelectedItem ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.GetDefaultNicType ( getVm ( ) . getOs ( ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { getNicType ( ) . setItems ( ( ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VmInterfaceType > ) ( returnValue ) ) ) ; postNicInit ( ) ; }
Source:
public void cancel ( ) { cancelConfirmation ( ) ; setGuideContext ( null ) ; setWindow ( null ) ; updateActionAvailability ( ) ; }

Target:
public void cancel ( ) { cancelConfirmation ( ) ; setGuideContext ( null ) ; org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel.setWindow ( null ) ; updateActionsAvailability ( ) ; }
Source:
protected void createDiskWrongPlug ( boolean plugged ) { createVirtIODisk ( ) ; mockVmDevice ( plugged ) ; }

Target:
protected void createDiskWrongPlug ( boolean plugged ) { createVirtIODisk ( ) ; vmDevice.setIsPlugged ( plugged ) ; }
Source:
public int getHeartbeat ( ) { return this . heartbeat ; }

Target:
public boolean isIncomingHeartbeat ( ) { return this . isIncomingHeartbeat.get ( ) ; }
Source:
protected org.ovirt.engine.api.model.Host doPopulate ( org.ovirt.engine.api.model.Host model , org.ovirt.engine.core.common.businessentities.VDS entity ) { return model ; }

Target:
protected org.ovirt.engine.api.model.Host doPopulate ( org.ovirt.engine.api.model.Host model , org.ovirt.engine.core.common.businessentities.VDS entity ) { org.ovirt.engine.api.model.Host host = parent.addHostedEngineIfConfigured ( model , entity ) ; return host ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.StorageDomain , org.ovirt.engine.ui.uicommonweb.models.templates.TemplateListModel , org.ovirt.engine.ui.uicommonweb.models.templates.TemplateStorageListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.template.SubTabTemplateStoragePresenter.constants.templateStorageSubTabLabel ( ) , 4 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( ) { return new org.ovirt.engine.ui.common.uicommon.model.GroupedTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.template.SubTabTemplateStoragePresenter.constants.templateStorageSubTabLabel ( ) , 4 ) ; }
Source:
public void areAllVfsFreeFalseMix ( ) { freeVfCommon ( 1 , 2 , 3 , 4 , 5 ) ; org.junit.Assert.assertFalse ( networkDeviceHelper.areAllVfsFree ( nic ) ) ; }

Target:
public void areAllVfsFreeFalseMix ( ) { freeVfCommon ( 1 , 2 , 3 , 4 , 5 , 6 ) ; org.junit.Assert.assertFalse ( networkDeviceHelper.areAllVfsFree ( nic ) ) ; }
Source:
public java.lang.String getHost ( ) { return this . host ; }

Target:
public java.lang.String getHost ( ) { return _host ; }
Source:
protected void SelectedItemPropertyChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . SelectedItemPropertyChanged ( sender , e ) ; if ( ( e.PropertyName.equals ( "status" ) ) || ( e.PropertyName.equals ( "pm_enabled" ) ) ) { UpdateActionAvailability ( ) ; } }

Target:
protected void selectedItemPropertyChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . selectedItemPropertyChanged ( sender , e ) ; if ( ( e.PropertyName.equals ( "status" ) ) || ( e.PropertyName.equals ( "pm_enabled" ) ) ) { updateActionAvailability ( ) ; } }
Source:
public final boolean IsUpdateValid ( java.lang.Object source , java.lang.Object destination , java.lang.Enum < ? > status ) { return IsUpdateValid ( source , destination , status , false ) ; }

Target:
public final boolean isUpdateValid ( java.lang.Object source , java.lang.Object destination , java.lang.Enum < ? > status ) { return isUpdateValid ( source , destination , status , false ) ; }
Source:
public org.ovirt.engine.api.model.Network addParents ( org.ovirt.engine.api.model.Network network ) { network.setCluster ( new org.ovirt.engine.core.common.businessentities.Cluster ( ) ) ; network.getCluster ( ) . setId ( clusterId ) ; return network ; }

Target:
public org.ovirt.engine.api.model.Network addParents ( org.ovirt.engine.api.model.Network model ) { model = org.ovirt.engine.api.restapi.resource.BackendNetworkHelper.addParents ( model ) ; model.setCluster ( new org.ovirt.engine.core.common.businessentities.Cluster ( ) ) ; model.getCluster ( ) . setId ( clusterId.toString ( ) ) ; return model ; }
Source:
public void testSendInvalidDestination ( ) throws java.lang.Exception { client.sendFile ( org.ovirt.engine.core.uutils.ssh.TransferTest.local1.getAbsolutePath ( ) , "/none/exist/path/file" ) ; }

Target:
public void testSendInvalidDestination ( ) { org.junit.jupiter.api.Assertions.assertThrows ( java.io.IOException.class , ( ) -> client.sendFile ( org.ovirt.engine.core.uutils.ssh.TransferTest.local1.getAbsolutePath ( ) , "/none/exist/path/file" ) ) ; }
Source:
public void isManagementNetwork ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid networkId ) { runBooleanQueryByEntityId ( VdcQueryType.IsManagementNetwork , aQuery , networkId ) ; }

Target:
public void getManagementNetwork ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid clusterId ) { runQueryByIdParameter ( VdcQueryType.GetManagementNetwork , aQuery , clusterId ) ; }
Source:
public void checkIfJobHasNoTasks ( ) { org.junit.Assert.assertFalse ( "Job has no steps for VDSM tasks" , dao.checkIfJobHasTasks ( org.ovirt.engine.core.dao.JobDaoTest.NO_VDSM_TASKS_JOB_ID ) ) ; }

Target:
public void checkIfJobHasNoTasks ( ) { org.junit.jupiter.api.Assertions.assertFalse ( dao.checkIfJobHasTasks ( org.ovirt.engine.core.dao.JobDaoTest.NO_VDSM_TASKS_JOB_ID ) , "Job has no steps for VDSM tasks" ) ; }
Source:
public void onUiCommonInit ( org.ovirt.engine.ui.common.uicommon.model.UiCommonInitEvent event ) { updateDocumentationBaseURL ( ) ; }

Target:
public void onUiCommonInit ( org.ovirt.engine.ui.common.uicommon.model.UiCommonInitEvent event ) { fetchDocumentationFile ( ) ; }
Source:
public void setParentModel ( org.ovirt.engine.ui.uicommonweb.models.Model parentModel ) { this . parentModel = parentModel ; }

Target:
public abstract boolean canBeSelected ( ) ;
Source:
public void testAllLunsSupportDiscardSucceeds ( ) { org.junit.Assert.assertTrue ( discardHelper.allLunsSupportDiscard ( java.util.Arrays.asList ( createLunWithDiscardSupport ( 1024L ) , createLunWithDiscardSupport ( 2048L ) ) ) ) ; }

Target:
public void testAllLunsSupportDiscardSucceeds ( ) { org.junit.jupiter.api.Assertions.assertTrue ( discardHelper.allLunsSupportDiscard ( java.util.Arrays.asList ( createLunWithDiscardSupport ( 1024L ) , createLunWithDiscardSupport ( 2048L ) ) ) ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > registerSecrets ( java.util.Map < java.lang.String , java.lang.String > [ ] libvirtSecrets ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > verifyUntrustedVolume ( java.lang.String sdID , java.lang.String spID , java.lang.String imageID , java.lang.String volumeID ) ;
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > getBackendCollection ( ) { if ( isFiltered ( ) ) { return getBackendCollection ( QueryType.GetAllEventMessages , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ; } else { return getBackendCollection ( SearchType.AuditLog ) ; } }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > getBackendCollection ( ) { if ( isFiltered ( ) ) { return getBackendCollection ( QueryType.GetAllEventMessages , new org.ovirt.engine.core.common.queries.QueryParametersBase ( ) ) ; } else { return getBackendCollection ( SearchType.AuditLog ) ; } }
Source:
private void initManualWidgets ( boolean allowMultipleSelection ) { isPluggedEditor = new org.ovirt.engine.ui.common.widget.editor.generic.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; imageDiskTable = new org.ovirt.engine.ui.common.widget.editor.EntityModelCellTable ( allowMultipleSelection ) ; lunDiskTable = new org.ovirt.engine.ui.common.widget.editor.EntityModelCellTable ( allowMultipleSelection ) ; }

Target:
private void initManualWidgets ( boolean allowMultipleSelection ) { isPluggedEditor = new org.ovirt.engine.ui.common.widget.editor.generic.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; imageDiskTable = new org.ovirt.engine.ui.common.widget.editor.EntityModelCellTable ( allowMultipleSelection ) ; lunDiskTable = new org.ovirt.engine.ui.common.widget.editor.EntityModelCellTable ( allowMultipleSelection ) ; cinderDiskTable = new org.ovirt.engine.ui.common.widget.editor.EntityModelCellTable ( allowMultipleSelection ) ; }
Source:
protected java.lang.String composeMessage ( ) { return org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) . i18NNameValidationMsg ( ) ; }

Target:
protected java.lang.String end ( ) { return "]+$" ; }
Source:
public void hostnameNormalPort ( ) { org.junit.Assert.assertTrue ( validation.validate ( "someHostname:4040" ) . getSuccess ( ) ) ; }

Target:
public void hostnameNormalPort ( ) { org.junit.jupiter.api.Assertions.assertTrue ( validation.validate ( "someHostname:4040" ) . getSuccess ( ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult validateVmStatusUsingMatrix ( org.ovirt.engine.core.common.businessentities.VM vm ) { if ( ! ( org.ovirt.engine.core.common.VdcActionUtils.CanExecute ( java.util.Arrays.asList ( vm ) , org.ovirt.engine.core.common.businessentities.VM.class , VdcActionType.RunVm ) ) ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_VM_STATUS_ILLEGAL ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult validateVmStatusUsingMatrix ( org.ovirt.engine.core.common.businessentities.VM vm ) { if ( ! ( org.ovirt.engine.core.common.VdcActionUtils.canExecute ( java.util.Arrays.asList ( vm ) , org.ovirt.engine.core.common.businessentities.VM.class , VdcActionType.RunVm ) ) ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_VM_STATUS_ILLEGAL ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
protected java.lang.String mapType ( org.ovirt.engine.core.common.businessentities.StorageType type ) { return getMapper ( org.ovirt.engine.core.common.businessentities.StorageType.class , java.lang.String.class ) . map ( type , null ) ; }

Target:
protected java.lang.String mapType ( org.ovirt.engine.core.common.businessentities.storage.StorageType type ) { return getMapper ( org.ovirt.engine.core.common.businessentities.storage.StorageType.class , java.lang.String.class ) . map ( type , null ) ; }
Source:
public java.lang.String getNetworkName ( ) { return getNetwork ( ) . getName ( ) ; }

Target:
public java.lang.String getNetworkName ( ) { return ( getPersistedNetwork ( ) ) == null ? null : getPersistedNetwork ( ) . getName ( ) ; }
Source:
private void initDiskImage ( org.ovirt.engine.core.compat.Guid diskImageId ) { org.ovirt.engine.core.common.businessentities.DiskImage diskImage = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; diskImage.setId ( diskImageId ) ; org.mockito.Mockito.when ( diskImageDao.getAncestor ( diskImageId ) ) . thenReturn ( diskImage ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.DiskImage mockDiskImage ( org.ovirt.engine.core.compat.Guid diskImageId ) { org.ovirt.engine.core.common.businessentities.DiskImage diskImage = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; diskImage.setId ( diskImageId ) ; return diskImage ; }
Source:
public abstract org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface generateVdsNetworkInterface ( java.lang.String value ) ;

Target:
protected abstract void setIfaceProperty ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface , java.lang.String value ) ;
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VmTemplate > ( ) ; } return source ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VM > ( ) ; } return source ; }
Source:
public void testGetFullPath_SaneParameter ( ) { java.io.File file = testServlet.getFile ( mockFile , "/branding/test" ) ; org.junit.Assert.assertNotNull ( "Path should not be null" , file ) ; org.junit.Assert.assertEquals ( "Path should be '/abs/test/branding/test'" , "/abs/test/branding/test" , file.getAbsolutePath ( ) ) ; }

Target:
public void testGetFullPathSaneParameter ( ) { java.io.File file = testServlet.getFile ( mockFile , "/branding/test" ) ; org.junit.Assert.assertNotNull ( "Path should not be null" , file ) ; org.junit.Assert.assertEquals ( "Path should be '/abs/test/branding/test'" , "/abs/test/branding/test" , file.getAbsolutePath ( ) ) ; }
Source:
public void setMemoryVolume ( java.lang.String memoryVolume ) { this . memoryVolume = memoryVolume ; }

Target:
public void setMemoryConf ( org.ovirt.engine.core.common.businessentities.storage.DiskImage memoryConf ) { this . memoryConf = memoryConf ; }
Source:
public org.ovirt.optimizer.solver.test.TestOptimizer addVm ( org.ovirt.engine.sdk.entities.VM vm ) { bestSolution.getVms ( ) . add ( vm ) ; return this ; }

Target:
public org.ovirt.optimizer.solver.test.TestOptimizer addMigration ( org.ovirt.engine.sdk.entities.VM vm , org.ovirt.engine.sdk.entities.Host destination ) { return addMigration ( primaryInstances.get ( vm ) , destination ) ; }
Source:
public void writeStartElement ( java.lang.String name ) { try { writer.writeStartElement ( name ) ; } catch ( javax.xml.stream.XMLStreamException exception ) { throw new org.ovirt.api.metamodel.tool.XmlWriterException ( ( ( "Can\'t write start element for tag \"" + name ) + "\"" ) , exception ) ; } }

Target:
public void writeStartElement ( java.lang.String name ) { try { writer.writeStartElement ( name ) ; } catch ( javax.xml.stream.XMLStreamException exception ) { throw new org.ovirt.api.metamodel.runtime.xml.XmlException ( ( ( "Can\'t write start element for tag \"" + name ) + "\"" ) , exception ) ; } }
Source:
private static boolean supportsHostDevicePassthrough ( org.ovirt.engine.core.common.businessentities.VM vm ) { return org.ovirt.engine.core.common.FeatureSupported.hostDevicePassthrough ( vm.getVdsGroupCompatibilityVersion ( ) ) ; }

Target:
private static boolean supportsHostDevicePassthrough ( org.ovirt.engine.core.common.businessentities.VM vm ) { return org.ovirt.engine.core.common.FeatureSupported.hostDevicePassthrough ( vm.getCompatibilityVersion ( ) ) ; }
Source:
public void testGetByName ( ) { org.ovirt.engine.core.common.businessentities.aaa.DbGroup result = dao.getByName ( existingGroup.getName ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingGroup , result ) ; }

Target:
public void testGetByName ( ) { org.ovirt.engine.core.common.businessentities.aaa.DbGroup result = dao.getByName ( existingGroup.getName ( ) ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertEquals ( existingGroup , result ) ; }
Source:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; if ( getIsAvailable ( ) ) { getSearchCommand ( ) . Execute ( ) ; } }

Target:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; if ( getIsAvailable ( ) ) { getSearchCommand ( ) . execute ( ) ; } }
Source:
public void testGetWithNonExistingId ( ) { org.ovirt.engine.core.common.businessentities.network.VmNicFilterParameter result = dao.get ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid generateNonExistingId ( ) { return org.ovirt.engine.core.compat.Guid.newGuid ( ) ; }
Source:
public java.util.Map < org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkOperation , java.util.List < org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkCommand > > commandsFor ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > item ) { return operationFactory.commandsFor ( item , allNics ) ; }

Target:
public java.util.Map < org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkOperation , java.util.List < org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkCommand > > commandsFor ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > item ) { return operationFactory.commandsFor ( item , hostSetupNetworksParametersData ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.DiskImage createDiskImage ( ) { org.ovirt.engine.core.common.businessentities.DiskImage disk = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; disk.setId ( diskImageGuid ) ; disk.setSize ( 100000L ) ; return disk ; }

Target:
private org.ovirt.engine.core.common.businessentities.DiskImage createDiskImage ( ) { org.ovirt.engine.core.common.businessentities.DiskImage disk = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; disk.setId ( diskImageGuid ) ; disk.setSize ( 100000L ) ; disk.setDiskInterface ( DiskInterface.VirtIO ) ; return disk ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.IpConfiguration createIpConfiguration ( org.ovirt.engine.core.common.businessentities.network.NetworkBootProtocol ipv4BootProtocol , org.ovirt.engine.core.common.businessentities.network.NetworkBootProtocol ipv6BootProtocol ) { return populateIpConfiguration ( new org.ovirt.engine.core.common.businessentities.network.IpConfiguration ( ) , ipv4BootProtocol , ipv6BootProtocol ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.IpConfiguration createIpConfiguration ( org.ovirt.engine.core.common.businessentities.network.Ipv4BootProtocol ipv4BootProtocol , org.ovirt.engine.core.common.businessentities.network.Ipv4BootProtocol ipv6BootProtocol ) { return populateIpConfiguration ( new org.ovirt.engine.core.common.businessentities.network.IpConfiguration ( ) , ipv4BootProtocol , ipv6BootProtocol ) ; }
Source:
public java.lang.String getUserName ( ) { if ( ( org.ovirt.engine.core.compat.StringHelper.isNullOrEmpty ( mUserName ) ) && ( ( getCurrentUser ( ) ) != null ) ) { mUserName = getCurrentUser ( ) . getUserName ( ) ; } return mUserName ; }

Target:
public java.lang.String getUserName ( ) { if ( ( org.apache.commons.lang.StringUtils.isEmpty ( mUserName ) ) && ( ( getCurrentUser ( ) ) != null ) ) { mUserName = getCurrentUser ( ) . getUserName ( ) ; } return mUserName ; }
Source:
public void testEvalPositive ( ) { org.mockito.Mockito.when ( mockOtherIface.getName ( ) ) . thenReturn ( org.ovirt.engine.core.vdsbroker.vdsbroker.predicates.DisplayInterfaceEqualityPredicateTest.TEST_INTERFACE_NAME ) ; org.mockito.Mockito.when ( mockOtherIface.getIpv4Address ( ) ) . thenReturn ( org.ovirt.engine.core.vdsbroker.vdsbroker.predicates.DisplayInterfaceEqualityPredicateTest.TEST_INTERFACE_ADDRESS ) ; org.junit.Assert.assertTrue ( underTest.test ( mockOtherIface ) ) ; }

Target:
public void testEvalPositive ( ) { org.mockito.Mockito.when ( mockOtherIface.getName ( ) ) . thenReturn ( org.ovirt.engine.core.vdsbroker.vdsbroker.predicates.DisplayInterfaceEqualityPredicateTest.TEST_INTERFACE_NAME ) ; org.mockito.Mockito.when ( mockOtherIface.getIpv4Address ( ) ) . thenReturn ( org.ovirt.engine.core.vdsbroker.vdsbroker.predicates.DisplayInterfaceEqualityPredicateTest.TEST_INTERFACE_ADDRESS ) ; org.junit.jupiter.api.Assertions.assertTrue ( underTest.test ( mockOtherIface ) ) ; }
Source:
public void labelBeingAttachedToValidBondExistingBondNotValid ( ) { org.ovirt.engine.core.common.businessentities.network.Bond bond = new org.ovirt.engine.core.common.businessentities.network.Bond ( "bond" ) ; bond.setSlaves ( java.util.Arrays.asList ( "slave1" ) ) ; assertLabelBeingAttachedToValidBondFailed ( createHostSetupNetworksParams ( ) , bond ) ; }

Target:
public void labelBeingAttachedToValidBondExistingBondNotValid ( ) { org.ovirt.engine.core.common.businessentities.network.Bond bond = new org.ovirt.engine.core.common.businessentities.network.Bond ( "bond" ) ; bond.setSlaves ( java.util.Collections.singletonList ( "slave1" ) ) ; assertLabelBeingAttachedToValidBondFailed ( createHostSetupNetworksParams ( ) , bond ) ; }
Source:
protected org.ovirt.engine.core.dao.VmDynamicDAO getVmDynamicDao ( ) { return org.ovirt.engine.core.bll.VmCommand.getDbFacade ( ) . getVmDynamicDao ( ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.Snapshot getActiveSnapshot ( ) { return org.ovirt.engine.core.bll.VmCommand.getSnapshotDao ( ) . get ( org.ovirt.engine.core.bll.VmCommand.getVm ( ) . getId ( ) , SnapshotType.ACTIVE ) ; }
Source:
public int getvmt_mem_size_mb ( ) { return this . vmt_mem_size_mbField ; }

Target:
public void setVmtGuid ( org.ovirt.engine.core.compat.Guid value ) { this . vmStatic.setvmt_guid ( value ) ; }
Source:
protected boolean prepareFailureMessageForDomainsAndDisks ( java.lang.String domainNames , java.lang.String diskNames ) { org.ovirt.engine.core.bll.storage.RemoveStorageServerConnectionCommand.addCanDoActionMessageVariable ( "domainNames" , domainNames ) ; org.ovirt.engine.core.bll.storage.RemoveStorageServerConnectionCommand.addCanDoActionMessageVariable ( "diskNames" , diskNames ) ; return failCanDoAction ( VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_CONNECTION_BELONGS_TO_SEVERAL_STORAGE_DOMAINS_AND_DISKS ) ; }

Target:
protected boolean prepareFailureMessageForDomainsAndDisks ( java.lang.String domainNames , java.lang.String diskNames ) { org.ovirt.engine.core.bll.storage.RemoveStorageServerConnectionCommand.addCanDoActionMessageVariable ( "domainNames" , domainNames ) ; org.ovirt.engine.core.bll.storage.RemoveStorageServerConnectionCommand.addCanDoActionMessageVariable ( "diskNames" , diskNames ) ; return failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_STORAGE_CONNECTION_BELONGS_TO_SEVERAL_STORAGE_DOMAINS_AND_DISKS ) ; }