auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector getAuditLogDirector ( ) { return new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector ( ) ; }

Target:
protected org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector getAuditLogDirector ( ) { return org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.class ) ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { _result = org.ovirt.engine.core.vdsbroker.vdsbroker.HSMGetAllTasksStatusesVDSCommand.getBroker ( ) . getAllTasksStatuses ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.HSMGetAllTasksStatusesVDSCommand.ProceedProxyReturnValue ( ) ; setReturnValue ( ParseTaskStatusList ( _result.TaskStatusList ) ) ; }

Target:
protected void ExecuteVdsBrokerCommand ( ) { _result = org.ovirt.engine.core.vdsbroker.vdsbroker.HSMGetAllTasksStatusesVDSCommand.getBroker ( ) . getAllTasksStatuses ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.HSMGetAllTasksStatusesVDSCommand.proceedProxyReturnValue ( ) ; setReturnValue ( ParseTaskStatusList ( _result.TaskStatusList ) ) ; }
Source:
public void testEvalNegative ( ) { org.mockito.Mockito.doReturn ( true ) . when ( mockExternalNetworkPredicate ) . test ( mockNetwork ) ; org.junit.Assert.assertFalse ( underTest.test ( mockNetwork ) ) ; }

Target:
public void testEvalNegative ( ) { org.mockito.Mockito.doReturn ( true ) . when ( mockExternalNetworkPredicate ) . test ( mockNetwork ) ; org.junit.jupiter.api.Assertions.assertFalse ( underTest.test ( mockNetwork ) ) ; }
Source:
public void stringToVCpupinIntervalsList ( ) { org.ovirt.engine.api.model.VCpuPin pin = org.ovirt.engine.api.restapi.types.VmMapper.stringToVCpupin ( "1#1-4,6" ) ; assertEquals ( 1 , ( ( int ) ( pin.getVcpu ( ) ) ) ) ; assertEquals ( "1-4,6" , pin.getCpuSet ( ) ) ; }

Target:
public void stringToVCpupinIntervalsList ( ) { org.ovirt.engine.api.model.VcpuPin pin = org.ovirt.engine.api.restapi.types.VmMapper.stringToVCpupin ( "1#1-4,6" ) ; assertEquals ( 1 , ( ( int ) ( pin.getVcpu ( ) ) ) ) ; assertEquals ( "1-4,6" , pin.getCpuSet ( ) ) ; }
Source:
org.ovirt.engine.core.bll.validator.NetworkAttachmentsValidator.NetworkType determineNetworkType ( org.ovirt.engine.core.common.businessentities.network.Network network ) { return org.ovirt.engine.core.utils.NetworkUtils.isVlan ( network ) ? org.ovirt.engine.core.bll.validator.NetworkAttachmentsValidator.NetworkType.VLAN : network.isVmNetwork ( ) ? org.ovirt.engine.core.bll.validator.NetworkAttachmentsValidator.NetworkType.VM : org.ovirt.engine.core.bll.validator.NetworkAttachmentsValidator.NetworkType.NON_VM ; }

Target:
org.ovirt.engine.core.bll.validator.network.NetworkType determineNetworkType ( org.ovirt.engine.core.common.businessentities.network.Network network ) { return org.ovirt.engine.core.utils.NetworkUtils.isVlan ( network ) ? org.ovirt.engine.core.bll.validator.network.NetworkType.VLAN : network.isVmNetwork ( ) ? org.ovirt.engine.core.bll.validator.network.NetworkType.VM : org.ovirt.engine.core.bll.validator.network.NetworkType.NON_VM ; }
Source:
public void setAllowConsoleReconnect ( boolean value ) { this . mVmStatic.setAllowConsoleReconnect ( value ) ; }

Target:
public void setAllowConsoleReconnect ( boolean value ) { this . vmStatic.setAllowConsoleReconnect ( value ) ; }
Source:
public void search ( ) { if ( ( getEntityStronglyTyped ( ) ) != null ) { super . search ( ) ; } }

Target:
protected void syncSearch ( ) { if ( ( getEntity ( ) ) == null ) { return ; } super . syncSearch ( VdcQueryType.GetVmTemplatesDisks , new org.ovirt.engine.core.common.queries.IdQueryParameters ( getEntity ( ) . getId ( ) ) ) ; }
Source:
public java.lang.Void runInTransaction ( ) { compensationContext.snapshotEntityStatus ( vm , vm.getstatus ( ) ) ; org.ovirt.engine.core.bll.VmHandler.UnLockVm ( vm ) ; compensationContext.stateChanged ( ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { compensationContext.snapshotEntityStatus ( vm.getDynamicData ( ) , vm.getstatus ( ) ) ; org.ovirt.engine.core.bll.VmHandler.UnLockVm ( vm ) ; compensationContext.stateChanged ( ) ; return null ; }
Source:
public static org.ovirt.engine.core.common.businessentities.StorageDomain setUpStorageDomain ( org.ovirt.engine.core.common.businessentities.StorageDomainType domainType ) { org.ovirt.engine.api.restapi.resource.StorageDomain entity = new org.ovirt.engine.api.restapi.resource.StorageDomain ( ) ; entity.setId ( org.ovirt.engine.api.restapi.resource.BackendStorageDomainVmsResourceTest.STORAGE_DOMAIN_ID ) ; entity.setstorage_domain_type ( domainType ) ; return entity ; }

Target:
public static org.ovirt.engine.core.common.businessentities.StorageDomain setUpStorageDomain ( org.ovirt.engine.core.common.businessentities.StorageDomainType domainType ) { org.ovirt.engine.api.restapi.resource.StorageDomain entity = new org.ovirt.engine.api.restapi.resource.StorageDomain ( ) ; entity.setId ( org.ovirt.engine.api.restapi.resource.BackendStorageDomainVmsResourceTest.STORAGE_DOMAIN_ID ) ; entity.setStorageDomainType ( domainType ) ; return entity ; }
Source:
public void testBeanValidations ( ) { initializeMock ( 1 ) ; org.junit.Assert.assertTrue ( cmd.validateInputs ( ) ) ; }

Target:
public void testPatternBasedNameFails ( ) { initializeMock ( ) ; cmd.getParameters ( ) . getVm ( ) . setName ( "aa-??bb" ) ; org.junit.Assert.assertFalse ( "Pattern-based name should not be supported for VM" , cmd.validateInputs ( ) ) ; }
Source:
public void testGetAllVdsNumaNodeByVdsId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VdsNumaNode > result = vdsNumaNodeDao.getAllVdsNumaNodeByVdsId ( org.ovirt.engine.core.dao.VdsNumaNodeDaoTest.EXISTING_VDS_ID ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( 2 , result.size ( ) ) ; }

Target:
public void testGetAllVdsNumaNodeByVdsId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VdsNumaNode > result = vdsNumaNodeDao.getAllVdsNumaNodeByVdsId ( FixturesTool.VDS_RHEL6_NFS_SPM ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( 2 , result.size ( ) ) ; }
Source:
public static void deserialize ( com.google.gwt.user.client.rpc.SerializationStreamReader streamReader , org.ovirt.engine.core.common.action.VdcReturnValueBase instance ) throws com.google.gwt.user.client.rpc.SerializationException { }

Target:
public static org.ovirt.engine.core.common.action.VdcReturnValueBase instantiate ( com.google.gwt.user.client.rpc.SerializationStreamReader streamReader ) throws com.google.gwt.user.client.rpc.SerializationException { return new org.ovirt.engine.core.common.action.VdcReturnValueBase ( ) ; }
Source:
public void testDisksUsages ( ) { java.lang.Object [ ] disksUsages = org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilderTest.initDisksUsageData ( ) ; java.util.Map < java.lang.String , java.lang.Object > map = org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilderTest.setDisksUsage ( disksUsages ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilderTest.validateDisksUsagesList ( org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilderTest.getVmStatistics ( ) , disksUsages , map ) ; }

Target:
public void testEmptyDisksUsages ( ) { java.lang.Object [ ] disksUsages = new java.lang.Object [ 0 ] ; java.util.Map < java.lang.String , java.lang.Object > xml = org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilderTest.setDisksUsage ( disksUsages ) ; validateDisksUsagesList ( org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilderTest.getVmStatistics ( ) , disksUsages , xml ) ; }
Source:
public void setUsePatternFly ( boolean use ) { super . setUsePatternFly ( use ) ; if ( use ) { contentWidget.addStyleName ( ColumnSize.LG_1.getCssName ( ) ) ; } }

Target:
public void setUsePatternFly ( boolean use ) { super . setUsePatternFly ( use ) ; if ( use ) { contentWidget.addStyleName ( ColumnSize.SM_1.getCssName ( ) ) ; } }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAllRunningVdssInPool ( ) { return org.ovirt.engine.core.bll.storage.StorageHandlingCommandBase.getVdsDAO ( ) . getAllForStoragePoolAndStatus ( org.ovirt.engine.core.bll.storage.StorageHandlingCommandBase.getStoragePool ( ) . getId ( ) , VDSStatus.Up ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAllRunningVdssInPool ( ) { return org.ovirt.engine.core.bll.storage.StorageHandlingCommandBase.getVdsDao ( ) . getAllForStoragePoolAndStatus ( org.ovirt.engine.core.bll.storage.StorageHandlingCommandBase.getStoragePool ( ) . getId ( ) , VDSStatus.Up ) ; }
Source:
public void testGetAllForDiskProfile ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > result = dao.getAllForDiskProfile ( FixturesTool.DISK_PROFILE_1 ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( 2 , result.size ( ) ) ; }

Target:
public void testGetAllForDiskProfiles ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > result = dao.getAllForDiskProfiles ( java.util.Collections.singleton ( FixturesTool.DISK_PROFILE_1 ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( 2 , result.size ( ) ) ; }
Source:
public void vnicProfileNull ( ) throws java.lang.Exception { validator = new org.ovirt.engine.core.bll.validator.VnicProfileValidator ( vmDao , null ) ; org.junit.Assert.assertThat ( validator.vnicProfileIsSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_VNIC_PROFILE_NOT_EXISTS ) ) ; }

Target:
public void vnicProfileNull ( ) throws java.lang.Exception { validator = new org.ovirt.engine.core.bll.validator.VnicProfileValidator ( null , vmDao , dcDao , networkFilterDao ) ; org.junit.Assert.assertThat ( validator.vnicProfileIsSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_VNIC_PROFILE_NOT_EXISTS ) ) ; }
Source:
private void setStorageDomainStatus ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus status ) { org.ovirt.engine.core.common.businessentities.StorageDomain domain = new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ; domain.setstatus ( status ) ; org.mockito.Mockito.when ( cmd.getStorageDomain ( ) ) . thenReturn ( domain ) ; }

Target:
private void setStorageDomainStatus ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus status ) { org.ovirt.engine.core.common.businessentities.StorageDomain domain = new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ; domain.setStatus ( status ) ; org.mockito.Mockito.when ( cmd.getStorageDomain ( ) ) . thenReturn ( domain ) ; }
Source:
public abstract void Execute ( int iterationId ) ;

Target:
public abstract void execute ( int iterationId ) ;
Source:
public void testChangeClusterForbidden ( ) { prepareVmToPassCanDoAction ( ) ; vmStatic.setvds_group_id ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; junit.framework.Assert.assertFalse ( "canDoAction should have failed with cant change cluster." , command.canDoAction ( ) ) ; assertCanDoActionMessage ( VdcBllMessages.VM_CANNOT_UPDATE_CLUSTER ) ; }

Target:
public void testChangeClusterForbidden ( ) { prepareVmToPassCanDoAction ( ) ; vmStatic.setVdsGroupId ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; junit.framework.Assert.assertFalse ( "canDoAction should have failed with cant change cluster." , command.canDoAction ( ) ) ; assertCanDoActionMessage ( VdcBllMessages.VM_CANNOT_UPDATE_CLUSTER ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.DiskImage diskImage ) { return diskImage.getImageId ( ) . equals ( guid ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage ) { return diskImage.getImageId ( ) . equals ( guid ) ; }
Source:
public void testNotDescetor ( ) { org.ovirt.engine.core.common.businessentities.Tags tag1 = createTag ( "tag1" , "desc1" ) ; org.ovirt.engine.core.common.businessentities.Tags tag2 = createTag ( "tag2" , "desc2" ) ; org.junit.Assert.assertFalse ( tagsDirector.isTagDescestorOfTag ( tag1.gettag_id ( ) , tag2.gettag_id ( ) ) ) ; }

Target:
public void testNotDescetor ( ) { org.ovirt.engine.core.common.businessentities.Tags tag1 = createTag ( "tag1" , "desc1" ) ; org.ovirt.engine.core.common.businessentities.Tags tag2 = createTag ( "tag2" , "desc2" ) ; org.junit.Assert.assertFalse ( tagsDirector.isTagDescestorOfTag ( tag1.getTagId ( ) , tag2.getTagId ( ) ) ) ; }
Source:
public void invalidVdsGroup ( ) { createSimpleCommand ( ) ; org.mockito.Mockito.when ( vdsGroupDao.get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( null ) ; validateFailedWithReason ( EngineMessage.VDS_CLUSTER_IS_NOT_VALID ) ; }

Target:
public void invalidCluster ( ) { createSimpleCommand ( ) ; org.mockito.Mockito.when ( clusterDao.get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( null ) ; validateFailedWithReason ( EngineMessage.VDS_CLUSTER_IS_NOT_VALID ) ; }
Source:
protected void syncSearch ( ) { super . syncSearch ( ) ; asyncSearch ( ) ; }

Target:
protected void syncSearch ( ) { super . syncSearch ( ) ; updateOptionsAsync ( ( ( getPrefix ( ) ) + ( getSearchString ( ) ) ) ) ; }
Source:
public static int getOptimizeSchedulerForSpeedPendingRequests ( ) { return ( ( java.lang.Integer ) ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getConfigValuePreConverted ( ConfigurationValues.OptimizeSchedulerForSpeedPendingRequests , org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getDefaultConfigurationVersion ( ) ) ) ) ; }

Target:
public static int getOptimizeSchedulerForSpeedPendingRequests ( ) { return ( ( java.lang.Integer ) ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getConfigValuePreConverted ( ConfigurationValues.SpeedOptimizationSchedulingThreshold , org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getDefaultConfigurationVersion ( ) ) ) ) ; }
Source:
public void setUsbPolicy ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( usbPolicy , value ) ) ) { usbPolicy = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "UsbPolicy" ) ) ; } }

Target:
public void setUsbPolicy ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( usbPolicy , value ) ) ) { usbPolicy = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "UsbPolicy" ) ) ; } }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc setVmTicket ( java.lang.String vmId , java.lang.String otp64 , java.lang.String sec , java.lang.String connectionAction , java.util.Map < java.lang.String , java.lang.String > params ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.HostJobsReturnForXmlRpc getHostJobs ( java.lang.String jobType , java.util.List < java.lang.String > jobIds ) ;
Source:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; if ( ( getEntity ( ) ) != null ) { getSearchCommand ( ) . Execute ( ) ; UpdateIsDiskHotPlugAvailable ( ) ; UpdateLiveStorageMigrationEnabled ( ) ; } UpdateActionAvailability ( ) ; }

Target:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; if ( ( getEntity ( ) ) != null ) { getSearchCommand ( ) . execute ( ) ; updateIsDiskHotPlugAvailable ( ) ; updateLiveStorageMigrationEnabled ( ) ; } updateActionAvailability ( ) ; }
Source:
public org.ovirt.engine.api.model.Labels list ( ) { return mapCollection ( getHostNicLabels ( nicId ) ) ; }

Target:
protected javax.ws.rs.core.Response performCreate ( java.lang.String labelId ) { return performCreate ( VdcActionType.LabelNic , new org.ovirt.engine.core.common.action.LabelNicParameters ( nicId , labelId ) , new org.ovirt.engine.api.restapi.resource.NetworkLabelIdResolver ( nicId ) ) ; }
Source:
public org.ovirt.engine.api.resource.DataCenterNetworksResource getNetworksResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendDataCenterNetworksResource ( guid ) ) ; }

Target:
public org.ovirt.engine.api.resource.NetworksResource getNetworksResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendDataCenterNetworksResource ( id ) ) ; }
Source:
public static java.lang.Boolean isMigrationSupported ( org.ovirt.engine.core.common.businessentities.ArchitectureType architecture , org.ovirt.engine.core.compat.Version version ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.migrationSupport.get ( architecture ) . get ( version ) ; }

Target:
public java.lang.Boolean isSuspendSupportedByArchitecture ( org.ovirt.engine.core.common.businessentities.ArchitectureType architecture , org.ovirt.engine.core.compat.Version version ) { return suspendSupport.get ( architecture ) . get ( version ) ; }
Source:
public static java.lang.Object GetConfigValuePreConverted ( org.ovirt.engine.core.common.queries.ConfigurationValues configValue , java.lang.String version ) { org.ovirt.engine.core.compat.KeyValuePairCompat < org.ovirt.engine.core.common.queries.ConfigurationValues , java.lang.String > key = new org.ovirt.engine.core.compat.KeyValuePairCompat < org.ovirt.engine.core.common.queries.ConfigurationValues , java.lang.String > ( configValue , version ) ; return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.cachedConfigValuesPreConvert.get ( key ) ; }

Target:
public static java.lang.Object getConfigValuePreConverted ( org.ovirt.engine.core.common.queries.ConfigurationValues configValue , java.lang.String version ) { org.ovirt.engine.core.compat.KeyValuePairCompat < org.ovirt.engine.core.common.queries.ConfigurationValues , java.lang.String > key = new org.ovirt.engine.core.compat.KeyValuePairCompat < org.ovirt.engine.core.common.queries.ConfigurationValues , java.lang.String > ( configValue , version ) ; return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.cachedConfigValuesPreConvert.get ( key ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult parentEntityNotChanged ( ) { if ( org.apache.commons.lang.ObjectUtils.equals ( getProfile ( ) . getClusterId ( ) , getProfileFromDb ( ) . getClusterId ( ) ) ) { return org.ovirt.engine.core.bll.ValidationResult.VALID ; } return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_CANNOT_CHANGE_PROFILE ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult parentEntityNotChanged ( ) { if ( java.util.Objects.equals ( getProfile ( ) . getClusterId ( ) , getProfileFromDb ( ) . getClusterId ( ) ) ) { return org.ovirt.engine.core.bll.ValidationResult.VALID ; } return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_CANNOT_CHANGE_PROFILE ) ; }
Source:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( EngineMessage.VAR__ACTION__REMOVE ) ; addCanDoActionMessage ( EngineMessage.VAR__TYPE__GLUSTER_GEOREP_SESSION ) ; addCanDoActionMessageVariable ( "volumeName" , getGlusterVolumeName ( ) ) ; addCanDoActionMessageVariable ( "vdsGroup" , getVdsGroupName ( ) ) ; }

Target:
protected void setActionMessageParameters ( ) { addValidationMessage ( EngineMessage.VAR__ACTION__REMOVE ) ; addValidationMessage ( EngineMessage.VAR__TYPE__GLUSTER_GEOREP_SESSION ) ; addValidationMessageVariable ( "volumeName" , getGlusterVolumeName ( ) ) ; addValidationMessageVariable ( "vdsGroup" , getVdsGroupName ( ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult notRemovingDefaultPool ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.ACTION_TYPE_FAILED_CANNOT_REMOVE_DEFAULT_MAC_POOL ) . when ( macPool.isDefaultPool ( ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult notRemovingDefaultPool ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.ACTION_TYPE_FAILED_CANNOT_REMOVE_DEFAULT_MAC_POOL ) . when ( macPool.isDefaultPool ( ) ) ; }
Source:
public void managementNetworkUnsetInvalid ( ) { testManagementNetworkUnset ( true , false , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_MANAGEMENT_NETWORK_UNSET ) ) ; }

Target:
public void managementNetworkUnsetInvalid ( ) { testManagementNetworkUnset ( true , false , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_MANAGEMENT_NETWORK_UNSET ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > getAllWithQuery ( java.lang.String query ) { return jdbcTemplate.query ( query , org.ovirt.engine.core.dao.StorageDomainDAODbFacadeImpl.StorageDomainRowMapper.instance ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > getAllWithQuery ( java.lang.String query ) { return getJdbcTemplate ( ) . query ( query , org.ovirt.engine.core.dao.StorageDomainDAODbFacadeImpl.StorageDomainRowMapper.instance ) ; }
Source:
public void saveAsyncTaskToDb ( final org.ovirt.engine.core.common.businessentities.AsyncTasks asyncTask ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getAsyncTaskDao ( ) . save ( asyncTask ) ; persistCommand ( copyToCommandEntity ( asyncTask , commandsCache.get ( asyncTask.getCommandId ( ) ) ) ) ; }

Target:
public java.lang.Void runInTransaction ( ) { commandsCache.updateCallBackNotified ( commandId ) ; return null ; }
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.VM > ( ) ; } return source ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.Set < org.ovirt.engine.core.common.businessentities.SupportedAdditionalClusterFeature > ) ( source ) ) : new java.util.HashSet < org.ovirt.engine.core.common.businessentities.SupportedAdditionalClusterFeature > ( ) ; }
Source:
public void canDoActionBlankDescriptionFails ( ) throws java.lang.Exception { setupMock ( ) ; parameters.setDescription ( " " ) ; org.junit.Assert.assertTrue ( ( ! ( commandMock.canDoAction ( ) ) ) ) ; }

Target:
public void validateBlankDescriptionFails ( ) throws java.lang.Exception { setupMock ( ) ; parameters.setDescription ( " " ) ; org.junit.Assert.assertTrue ( ( ! ( commandMock.validate ( ) ) ) ) ; }
Source:
protected boolean validate ( ) { org.ovirt.engine.core.bll.provider.ProviderValidator validator = new org.ovirt.engine.core.bll.provider.ProviderValidator ( getProvider ( ) ) ; return validate ( validator.providerIsSet ( ) ) ; }

Target:
protected boolean validate ( ) { org.ovirt.engine.core.bll.provider.ProviderValidator validator = new org.ovirt.engine.core.bll.provider.ProviderValidator ( getProvider ( ) ) ; return ( validate ( validator.providerIsSet ( ) ) ) && ( validate ( validator.validateReadOnlyActions ( ) ) ) ; }
Source:
public void setItems ( java.lang.Iterable value ) { if ( ( items ) != value ) { itemsChanging ( value , items ) ; items = value ; getItemsChangedEvent ( ) . raise ( this , EventArgs.Empty ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Items" ) ) ; } }

Target:
public void setItems ( java.lang.Iterable value ) { if ( ( items ) != value ) { itemsChanging ( value , items ) ; items = value ; getItemsChangedEvent ( ) . raise ( this , EventArgs.EMPTY ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Items" ) ) ; } }
Source:
public void setDeletesPending ( java.lang.Long deletesPending ) { this . deletesPending = deletesPending ; }

Target:
public void setCheckPointCompletedAt ( java.util.Date checkPointCompletedAt ) { this . checkPointCompletedAt = checkPointCompletedAt ; }
Source:
protected void verifyBuiltTemplate ( org.ovirt.engine.core.common.businessentities.VmTemplate template ) { super . verifyBuiltCommonVm ( template ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.ui.uicommonweb.models.templates.TemplateListModelTest.VERSION_NAME , template.getTemplateVersionName ( ) ) ; }

Target:
protected void verifyBuiltTemplate ( org.ovirt.engine.core.common.businessentities.VmTemplate template ) { super . verifyBuiltCommonVm ( template ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.ui.uicommonweb.models.templates.TemplateListModelTest.VERSION_NAME , template.getTemplateVersionName ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface getEntity ( int index ) { return setUpEntityExpectations ( control.createMock ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface.class ) , control.createMock ( org.ovirt.engine.core.common.businessentities.network.VmNetworkStatistics.class ) , index ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface getEntity ( int index ) { return setUpEntityExpectations ( org.mockito.Mockito.mock ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface.class ) , org.mockito.Mockito.mock ( org.ovirt.engine.core.common.businessentities.network.VmNetworkStatistics.class ) , index ) ; }
Source:
public void testCanDoActionVmMigrating ( ) { prepareForVmValidatorTests ( ) ; cmd.getVm ( ) . setStatus ( VMStatus.MigratingTo ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_VM_IS_NOT_DOWN_OR_UP ) ; }

Target:
public void testValidateVmMigrating ( ) { prepareForVmValidatorTests ( ) ; cmd.getVm ( ) . setStatus ( VMStatus.MigratingTo ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_VM_IS_NOT_DOWN_OR_UP ) ; }
Source:
protected void updateVmGuestAgentVersion ( org.ovirt.engine.core.common.businessentities.VM vm ) { org.ovirt.engine.core.bll.VmHandler.updateVmGuestAgentVersion ( vm ) ; }

Target:
protected void updateDisksFromDB ( org.ovirt.engine.core.common.businessentities.VM vm ) { vmHandler.updateDisksFromDb ( vm ) ; }
Source:
public java.util.Set < org.ovirt.engine.core.compat.Version > getSupportedClusterLevels ( ) { java.util.Set < org.ovirt.engine.core.compat.Version > versions = org.ovirt.engine.core.common.config.Config.< java.util.HashSet < org.ovirt.engine.core.compat.Version > > GetValue ( ConfigValues.SupportedClusterLevels ) ; return versions ; }

Target:
public java.lang.String getVmPropSpec ( ) { return VALIDATION_STR ; }
Source:
public static java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getSoundDevices ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.dao.getVmDeviceByVmIdAndType ( vmId , VmDeviceGeneralType.SOUND ) ; }

Target:
public boolean hasVirtioScsiController ( org.ovirt.engine.core.compat.Guid vmId ) { return ! ( getVirtioScsiControllers ( vmId ) . isEmpty ( ) ) ; }
Source:
boolean DisconnectStorageFromDomainByStoragePoolId ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain , org.ovirt.engine.core.compat.Guid storagePoolId ) ;

Target:
boolean disconnectStorageFromDomainByStoragePoolId ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain , org.ovirt.engine.core.compat.Guid storagePoolId ) ;
Source:
com.google.gwt.safehtml.shared.SafeHtml image ( java.lang.String url , int height , int width ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml image ( com.google.gwt.safecss.shared.SafeStyles imageStyles ) ;
Source:
private void setEnforcing ( org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.Boolean > enforcing ) { this . enforcing = enforcing ; }

Target:
private void setVmAffinityEnforcing ( org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.Boolean > vmAffinityEnforcing ) { this . vmAffinityEnforcing = vmAffinityEnforcing ; }
Source:
private java.util.List < org.ovirt.engine.core.compat.Guid > getRunVdssList ( ) { return getVdsSelector ( ) . getRunVdssList ( ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.compat.Guid > getRunVdssList ( ) { return runVdsList ; }
Source:
protected org.ovirt.engine.ui.uicommonweb.models.vms.TemplateVmModelBehavior createBehavior ( org.ovirt.engine.core.common.businessentities.VmTemplate template ) { return new org.ovirt.engine.ui.uicommonweb.models.vms.TemplateVmModelBehavior ( template ) ; }

Target:
protected org.ovirt.engine.ui.uicommonweb.models.vms.VmModelBehaviorBase createBehavior ( org.ovirt.engine.core.common.businessentities.VmTemplate template ) { if ( ! ( template.isBlank ( ) ) ) { return new org.ovirt.engine.ui.uicommonweb.models.vms.TemplateVmModelBehavior ( template ) ; } return new org.ovirt.engine.ui.uicommonweb.models.templates.ExistingBlankTemplateModelBehavior ( template ) ; }
Source:
public void setOS ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( os , value ) ) ) { os = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "OS" ) ) ; } }

Target:
public void setQuotaName ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( defaultHost , value ) ) ) { this . quotaName = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "QuotaName" ) ) ; } }
Source:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; getSearchCommand ( ) . execute ( ) ; }

Target:
public void setVolumeEntity ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity volumeEntity ) { this . volumeEntity = volumeEntity ; updateRemoveBrickActionsAvailability ( volumeEntity ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity getMultiBrickVolume ( org.ovirt.engine.core.compat.Guid volumeId ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity volume = getGlusterVolume ( volumeId ) ; volume.setStatus ( GlusterStatus.UP ) ; volume.setBricks ( getBricks ( volumeId , 2 ) ) ; volume.setClusterId ( clusterId ) ; return volume ; }

Target:
private org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity getMultiBrickVolume ( org.ovirt.engine.core.compat.Guid volumeId , int brickCount ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity volume = getGlusterVolume ( volumeId ) ; volume.setStatus ( GlusterStatus.UP ) ; volume.setBricks ( getBricks ( volumeId , brickCount ) ) ; volume.setClusterId ( clusterId ) ; return volume ; }
Source:
protected void setUpMockQueryParameters ( ) { super . setUpMockQueryParameters ( ) ; org.mockito.Mockito.when ( getQueryParameters ( ) . getStoragePoolId ( ) ) . thenReturn ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; org.mockito.Mockito.when ( getQueryParameters ( ) . getImageType ( ) ) . thenReturn ( expectedType ) ; }

Target:
protected void setUpMockQueryParameters ( ) { super . setUpMockQueryParameters ( ) ; org.mockito.Mockito.when ( getQueryParameters ( ) . getStoragePoolId ( ) ) . thenReturn ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.mockito.Mockito.when ( getQueryParameters ( ) . getImageType ( ) ) . thenReturn ( expectedType ) ; }
Source:
protected void EndSuccessfully ( ) { org.ovirt.engine.core.bll.AddVmToPoolCommand.setSucceeded ( true ) ; }

Target:
protected void endSuccessfully ( ) { org.ovirt.engine.core.bll.AddVmToPoolCommand.setSucceeded ( true ) ; }
Source:
public void testNetworkAttachmentIsSetWhenAttachmentIsNull ( ) { org.ovirt.engine.core.common.errors.EngineMessage engineMessage = org.ovirt.engine.core.common.errors.EngineMessage.NETWORK_ATTACHMENT_NOT_EXISTS ; org.junit.Assert.assertThat ( createNetworkAttachmentValidator ( null ) . networkAttachmentIsSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( engineMessage , org.ovirt.engine.core.utils.ReplacementUtils.getVariableAssignmentString ( engineMessage , null ) ) ) ; }

Target:
public void testNetworkAttachmentIsSetWhenAttachmentIsNull ( ) { org.ovirt.engine.core.common.errors.EngineMessage engineMessage = org.ovirt.engine.core.common.errors.EngineMessage.NULL_PASSED_AS_NETWORK_ATTACHMENT ; org.junit.Assert.assertThat ( createNetworkAttachmentValidator ( null ) . networkAttachmentIsSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( engineMessage , org.ovirt.engine.core.utils.ReplacementUtils.getVariableAssignmentString ( engineMessage , null ) ) ) ; }
Source:
public void setErrorToFetchData ( java.lang.String msg ) { getImportSourceValid ( ) . setMessage ( msg ) ; getImportSourceValid ( ) . setEntity ( false ) ; }

Target:
public void setError ( java.lang.String msg ) { getImportSourceValid ( ) . setMessage ( msg ) ; getImportSourceValid ( ) . setEntity ( false ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid getPredefinedDestinationVdsId ( ) { return org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getDedicatedVmForVds ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid getPredefinedVdsIdToRunOn ( ) { return org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getDedicatedVmForVds ( ) ; }
Source:
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 ) ; diskImage.setImageId ( diskImageId ) ; return diskImage ; }

Target:
private org.ovirt.engine.core.common.businessentities.storage.DiskImage mockDiskImage ( org.ovirt.engine.core.compat.Guid diskImageId ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; diskImage.setId ( diskImageId ) ; diskImage.setImageId ( diskImageId ) ; return diskImage ; }
Source:
protected boolean isImageExclusiveLockNeeded ( ) { return ( ( getDiskType ( ) ) == ( org.ovirt.engine.core.common.businessentities.Disk.DiskStorageType.IMAGE ) ) && ( ( ( ( org.ovirt.engine.core.common.businessentities.DiskImage ) ( getDisk ( ) ) ) . getVolumeFormat ( ) ) != ( org.ovirt.engine.core.common.businessentities.VolumeFormat.RAW ) ) ; }

Target:
protected boolean isImageExclusiveLockNeeded ( ) { return ( ( getDiskType ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.DiskStorageType.IMAGE ) ) && ( ( ( ( org.ovirt.engine.core.common.businessentities.storage.DiskImage ) ( getDisk ( ) ) ) . getVolumeFormat ( ) ) != ( org.ovirt.engine.core.common.businessentities.storage.VolumeFormat.RAW ) ) ; }
Source:
public void testQuery ( ) throws java.lang.Exception { collection.setUriInfo ( setUpUriExpectations ( org.ovirt.engine.api.restapi.resource.gluster.QUERY ) ) ; setUpQueryExpectations ( org.ovirt.engine.api.restapi.resource.gluster.QUERY ) ; collection.setParent ( parentMock ) ; verifyCollection ( getCollection ( ) ) ; }

Target:
public void testQuery ( ) throws java.lang.Exception { collection.setUriInfo ( setUpUriExpectations ( org.ovirt.engine.api.restapi.resource.gluster.QUERY ) ) ; setUpQueryExpectations ( org.ovirt.engine.api.restapi.resource.gluster.QUERY ) ; collection.setParent ( org.ovirt.engine.api.restapi.resource.gluster.BackendGlusterVolumesResourceTest.parentMock ) ; verifyCollection ( getCollection ( ) ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase Logoff ( org.ovirt.engine.core.common.action.LogoutUserParameters parameters ) { return RunAction ( VdcActionType.LogoutUser , parameters ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase logoff ( org.ovirt.engine.core.common.action.LogoutUserParameters parameters ) { return runAction ( VdcActionType.LogoutUser , parameters ) ; }
Source:
public void onDrop ( com.google.gwt.event.dom.client.DropEvent event ) { event.preventDefault ( ) ; doDrag ( event , true ) ; table.getElement ( ) . removeClassName ( style.networkGroupDragOver ( ) ) ; }

Target:
public void onDrop ( com.google.gwt.event.dom.client.DropEvent event ) { eventBus.fireEvent ( new org.ovirt.engine.ui.webadmin.section.main.view.popup.host.AutoScrollDisableEvent ( this ) ) ; event.preventDefault ( ) ; doDrag ( event , true ) ; table.getElement ( ) . removeClassName ( style.networkGroupDragOver ( ) ) ; }
Source:
public java.lang.String getFileStyleName ( org.ovirt.api.metamodel.concepts.Name name ) { return name.words ( ) . map ( java.lang.String :: toLowerCase ) . collect ( java.util.stream.Collectors.joining ( "_" ) ) ; }

Target:
public java.lang.String getConstantStyleName ( org.ovirt.api.metamodel.concepts.Name name ) { return avoidReservedWord ( names.getUpperJoined ( name , "_" ) ) ; }
Source:
private void initAgents ( ) { agent1 = new org.ovirt.engine.core.common.businessentities.FenceAgent ( ) ; agent1.setOrder ( 1 ) ; agent2 = new org.ovirt.engine.core.common.businessentities.FenceAgent ( ) ; agent2.setOrder ( 2 ) ; }

Target:
private void initAgents ( ) { agent1 = new org.ovirt.engine.core.common.businessentities.pm.FenceAgent ( ) ; agent1.setOrder ( 1 ) ; agent2 = new org.ovirt.engine.core.common.businessentities.pm.FenceAgent ( ) ; agent2.setOrder ( 2 ) ; }
Source:
public void activated ( ) { if ( ( getBehavior ( ) . getInstanceTypeManager ( ) ) != null ) { getBehavior ( ) . getInstanceTypeManager ( ) . updateFields ( ) ; } }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { numaSupport ( ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.gin.ClientGinjector ginjector ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( ginjector.getApplicationConstants ( ) . clusterNetworkSubTabLabel ( ) , 2 , ginjector.getSubTabClusterNetworkModelProvider ( ) ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.network.Network , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterListModel , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.clusterNetworkSubTabLabel ( ) , 1 , modelProvider ) ; }
Source:
private boolean hasVms ( java.lang.Object selectedItem ) { if ( selectedItem instanceof org.ovirt.engine.core.common.businessentities.vm_pools ) { return ( ( ( org.ovirt.engine.core.common.businessentities.vm_pools ) ( selectedItem ) ) . getvm_assigned_count ( ) ) != 0 ; } return false ; }

Target:
private boolean hasVms ( java.lang.Object selectedItem ) { if ( selectedItem instanceof org.ovirt.engine.core.common.businessentities.VmPool ) { return ( ( ( org.ovirt.engine.core.common.businessentities.VmPool ) ( selectedItem ) ) . getvm_assigned_count ( ) ) != 0 ; } return false ; }
Source:
public void forceRefresh ( ) { getTimer ( ) . stop ( ) ; setIsQueryFirstTime ( true ) ; syncSearch ( ) ; if ( ! ( getIsTimerDisabled ( ) ) ) { getTimer ( ) . start ( ) ; } }

Target:
private void startRefresh ( ) { if ( ( getTimer ( ) ) != null ) { getTimer ( ) . start ( ) ; } }
Source:
private void cpuFlagsMissing ( ) { java.util.List < java.lang.String > strings = new java.util.ArrayList < > ( ) ; strings.add ( "foo" ) ; org.mockito.Mockito.doReturn ( strings ) . when ( cmd ) . missingServerCpuFlags ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.VDS.class ) ) ; }

Target:
private void cpuFlagsMissing ( ) { java.util.List < java.lang.String > strings = new java.util.ArrayList < > ( ) ; strings.add ( "foo" ) ; org.mockito.Mockito.doReturn ( strings ) . when ( cmd ) . missingServerCpuFlags ( org.mockito.ArgumentMatchers.any ( ) ) ; }
Source:
public static org.ovirt.engine.core.utils.log.Log getLog ( java.lang.Class < ? > loggedClass ) { return new org.ovirt.engine.core.utils.log.Log ( org.apache.commons.logging.LogFactory.getLog ( loggedClass ) ) ; }

Target:
public static org.ovirt.engine.core.utils.log.Log getLog ( java.lang.Class < ? > loggedClass ) { return new org.ovirt.engine.core.utils.log.Log ( org.slf4j.LoggerFactory.getLogger ( loggedClass ) ) ; }
Source:
public void testOnlyLoginNameWhenNoDirectorySet ( ) { org.ovirt.engine.core.common.businessentities.aaa.DbUser user = new org.ovirt.engine.core.common.businessentities.aaa.DbUser ( ) ; user.setLoginName ( "Legolas" ) ; user.setDomain ( "" ) ; command.setCurrentUser ( user ) ; org.junit.Assert.assertEquals ( "Legolas" , command.getConsoleUserName ( ) ) ; }

Target:
public void testOnlyLoginNameWhenNoDirectorySet ( ) { org.ovirt.engine.core.common.businessentities.aaa.DbUser user = new org.ovirt.engine.core.common.businessentities.aaa.DbUser ( ) ; user.setLoginName ( "Legolas" ) ; user.setDomain ( "" ) ; command.setCurrentUser ( user ) ; org.junit.jupiter.api.Assertions.assertEquals ( "Legolas" , command.getConsoleUserName ( ) ) ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.vdsbroker.MigrateBrokerVDSCommand.getBroker ( ) . migrate ( migrationInfo ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.MigrateBrokerVDSCommand.ProceedProxyReturnValue ( ) ; }

Target:
protected void ExecuteVdsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.vdsbroker.MigrateBrokerVDSCommand.getBroker ( ) . migrate ( migrationInfo ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.MigrateBrokerVDSCommand.proceedProxyReturnValue ( ) ; }
Source:
public void testGetAllWithPermissionsUnprivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > result = dao.getAll ( org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllWithPermissionsUnprivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > result = dao.getAll ( org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public void writeElement ( java.lang.String name , java.lang.String content ) { WriteStartElement ( name ) ; WriteRaw ( content ) ; WriteEndElement ( ) ; }

Target:
public void writeElement ( java.lang.String name , java.lang.String content ) { writeStartElement ( name ) ; writeRaw ( content ) ; writeEndElement ( ) ; }
Source:
private boolean isCopyCollapseOrNoSnapshots ( ) { return ! ( isCopyCollapseDisabledWithSnapshots ( ) ) ; }

Target:
private boolean isCopyCollapseOrNoSnapshots ( ) { return ! ( isCopyCollapseDisabledWithSnapshotsOrWithTemplate ( ) ) ; }
Source:
private void verifyCPU ( org.ovirt.engine.api.model.CPU cpu , java.lang.String name , java.lang.Integer level ) { assertNotNull ( cpu ) ; assertEquals ( name , cpu.getId ( ) ) ; assertEquals ( level , cpu.getLevel ( ) ) ; }

Target:
private void verifyCPU ( org.ovirt.engine.api.model.CPU cpu , java.lang.String name , java.lang.Integer level ) { assertNotNull ( cpu ) ; assertEquals ( name , cpu.getType ( ) ) ; assertEquals ( level , cpu.getLevel ( ) ) ; }
Source:
protected boolean isNicSupportedForPlugUnPlug ( ) { if ( osRepository.hasNicHotplugSupport ( org.ovirt.engine.core.bll.VmCommand.getVm ( ) . getOs ( ) , org.ovirt.engine.core.bll.VmCommand.getVm ( ) . getVdsGroupCompatibilityVersion ( ) ) ) { return true ; } return failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_GUEST_OS_VERSION_IS_NOT_SUPPORTED ) ; }

Target:
protected boolean isHotPlugSupported ( ) { if ( org.ovirt.engine.core.common.FeatureSupported.hotPlug ( org.ovirt.engine.core.bll.VmCommand.getVm ( ) . getClusterCompatibilityVersion ( ) ) ) { return true ; } return failValidation ( EngineMessage.HOT_PLUG_IS_NOT_SUPPORTED ) ; }
Source:
public java.lang.Object getEntityId ( ) { return ( _entityId ) == null ? getDbAsyncTask ( ) . getaction_parameters ( ) . getEntityId ( ) : _entityId ; }

Target:
public java.lang.Object getEntityId ( ) { return ( _entityId ) == null ? getDbAsyncTask ( ) . getActionParameters ( ) . getEntityId ( ) : _entityId ; }
Source:
public java.lang.String getVdcUserPassword ( ) { return org.ovirt.engine.ui.frontend.Frontend.getLoginPassword ( ) ; }

Target:
public java.lang.String getUserPassword ( ) { return org.ovirt.engine.ui.frontend.Frontend.getLoginPassword ( ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid createTask ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { return createTask ( taskId , asyncTaskCreationInfo , parentCommand , null , null , org.ovirt.engine.core.bll.CommandBase.EMPTY_GUID_ARRAY ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid createTask ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand , java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.VdcObjectType > entitiesMap ) { return createTask ( taskId , asyncTaskCreationInfo , parentCommand , null , entitiesMap ) ; }
Source:
private org.ovirt.engine.core.bll.tasks.AsyncTaskManager getAsyncTaskManager ( ) { return org.ovirt.engine.core.bll.tasks.AsyncTaskManager.getInstance ( this ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase endAction ( org.ovirt.engine.core.bll.tasks.interfaces.SPMTask task , org.ovirt.engine.core.bll.job.ExecutionContext context ) { return coCoAsyncTaskHelper.endAction ( task , context ) ; }
Source:
protected boolean isHotPlugSupported ( ) { if ( org.ovirt.engine.core.common.FeatureSupported.hotPlug ( org.ovirt.engine.core.bll.VmCommand.getVm ( ) . getVdsGroupCompatibilityVersion ( ) ) ) { return true ; } return failValidation ( EngineMessage.HOT_PLUG_IS_NOT_SUPPORTED ) ; }

Target:
protected boolean isNicSupportedForPlugUnPlug ( ) { if ( osRepository.hasNicHotplugSupport ( org.ovirt.engine.core.bll.VmCommand.getVm ( ) . getOs ( ) , org.ovirt.engine.core.bll.VmCommand.getVm ( ) . getClusterCompatibilityVersion ( ) ) ) { return true ; } return failValidation ( EngineMessage.ACTION_TYPE_FAILED_GUEST_OS_VERSION_IS_NOT_SUPPORTED ) ; }
Source:
public boolean isRunningOrPaused ( ) { return ( ( ( this . isRunning ( ) ) || ( ( this ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.Paused ) ) ) || ( ( this ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.SavingState ) ) ) || ( ( this ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.RestoringState ) ) ; }

Target:
public boolean isRunningOrPaused ( ) { return ( ( ( this . isRunning ( ) ) || ( ( this ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.Paused ) ) ) || ( this . isHibernating ( ) ) ) || ( ( this ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.RestoringState ) ) ; }
Source:
protected void persistCollectedData ( ) { updateNetConfigDirtyFlag ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.CollectVdsNetworkDataVDSCommand.persistAndEnforceNetworkCompliance ( getVds ( ) , skipManagementNetwork ( ) , org.ovirt.engine.core.common.businessentities.Entities.entitiesByName ( getParameters ( ) . getInterfaces ( ) ) ) ; }

Target:
protected void persistCollectedData ( ) { updateNetConfigDirtyFlag ( ) ; hostNetworkTopologyPersister.persistAndEnforceNetworkCompliance ( getVds ( ) , skipManagementNetwork ( ) , org.ovirt.engine.core.common.businessentities.Entities.entitiesByName ( getParameters ( ) . getInterfaces ( ) ) ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.vms.VmImportGeneralModel getModel ( ) { return ( ( org.ovirt.engine.ui.uicommonweb.models.vms.VmImportGeneralModel ) ( importModel.getDetailModels ( ) . get ( 0 ) ) ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.vms.VmImportGeneralModel getModel ( ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmImportGeneralModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.VmImportGeneralModel ) ( importModel.getDetailModels ( ) . get ( 0 ) ) ) ; model.setSource ( ImportSource.EXPORT_DOMAIN ) ; return model ; }