auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void validateFailureOnCopyingCinderDisk ( ) { initializeCommand ( ImageOperation.Copy , new org.ovirt.engine.core.common.businessentities.storage.CinderDisk ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_NOT_SUPPORTED_DISK_STORAGE_TYPE ) ; }

Target:
public void validateFailureOnMovingCinderDisk ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.CinderDisk ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_NOT_SUPPORTED_DISK_STORAGE_TYPE ) ; }
Source:
protected org.ovirt.engine.core.bll.provider.OpenstackImageProviderProxy getProviderProxy ( ) { if ( ( providerProxy ) == null ) { providerProxy = org.ovirt.engine.core.bll.provider.OpenstackImageProviderProxy.getFromStorageDomainId ( org.ovirt.engine.core.bll.ExportRepoImageCommand.getParameters ( ) . getDestinationDomainId ( ) ) ; } return providerProxy ; }

Target:
protected org.ovirt.engine.core.bll.provider.OpenStackImageProviderProxy getProviderProxy ( ) { if ( ( providerProxy ) == null ) { providerProxy = org.ovirt.engine.core.bll.provider.OpenStackImageProviderProxy.getFromStorageDomainId ( org.ovirt.engine.core.bll.ExportRepoImageCommand.getParameters ( ) . getDestinationDomainId ( ) ) ; } return providerProxy ; }
Source:
protected org.ovirt.engine.core.dao.gluster.GlusterBrickDao getGlusterBrickDao ( ) { return org.ovirt.engine.core.bll.RemoveVdsCommand.getDbFacade ( ) . getGlusterBrickDao ( ) ; }

Target:
private void removeOtherKnowAddressesForGlusterServer ( org.ovirt.engine.core.compat.Guid lastServerId ) { org.ovirt.engine.core.bll.RemoveVdsCommand.getDbFacade ( ) . getGlusterServerDao ( ) . updateKnownAddresses ( lastServerId , null ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VdsStatic getVdsStatic ( ) { org.ovirt.engine.core.common.businessentities.VdsStatic vds = new org.ovirt.engine.core.common.businessentities.VdsStatic ( ) ; vds.setVdsGroupId ( clusterId ) ; vds.setHostName ( serverName ) ; return vds ; }

Target:
private org.ovirt.engine.core.common.businessentities.VdsStatic getVdsStatic ( ) { org.ovirt.engine.core.common.businessentities.VdsStatic vds = new org.ovirt.engine.core.common.businessentities.VdsStatic ( ) ; vds.setVdsGroupId ( clusterId ) ; vds.setHostName ( org.ovirt.engine.core.bll.gluster.CreateGlusterVolumeCommandTest.serverName ) ; return vds ; }
Source:
public void init ( boolean security , boolean bugs , boolean enhancements ) { securityCheckbox.setValue ( security ) ; bugCheckbox.setValue ( bugs ) ; enhancementCheckbox.setValue ( enhancements ) ; }

Target:
public void init ( boolean security , boolean bugs , boolean enhancements ) { securityCheckbox.setValue ( security ) ; bugCheckbox.setValue ( bugs ) ; enhancementCheckbox.setValue ( enhancements ) ; showPanelItems ( true ) ; }
Source:
public java.lang.String getDuration ( ) { return java.lang.String.valueOf ( ( ( ( ( new java.util.Date ( ) . getTime ( ) ) - ( org.ovirt.engine.core.bll.MigrateVmCommand.getParameters ( ) . getStartTime ( ) . getTime ( ) ) ) / 1000 ) % 60 ) ) ; }

Target:
public java.lang.String getDuration ( ) { return org.apache.commons.lang.time.DurationFormatUtils.formatDurationWords ( ( ( new java.util.Date ( ) . getTime ( ) ) - ( org.ovirt.engine.core.bll.MigrateVmCommand.getParameters ( ) . getStartTime ( ) . getTime ( ) ) ) , true , true ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VM > getVmsByIds ( java.util.List < org.ovirt.engine.core.compat.Guid > vmsIds ) { return getCallsHandler ( ) . executeReadList ( "GetVmsByIds" , org.ovirt.engine.core.dao.VmDaoImpl.VMRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "vms_ids" , org.apache.commons.lang.StringUtils.join ( vmsIds , ',' ) ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VM > getVmsByIds ( java.util.List < org.ovirt.engine.core.compat.Guid > vmsIds ) { return getCallsHandler ( ) . executeReadList ( "GetVmsByIds" , org.ovirt.engine.core.dao.VmDaoImpl.VMRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "vms_ids" , createArrayOfUUIDs ( vmsIds ) ) ) ; }
Source:
private void unlockAllDiskSnapshots ( ) { for ( org.ovirt.engine.core.common.action.LiveMigrateDiskParameters parameters : enclosingCommand.getParameters ( ) . getParametersList ( ) ) { org.ovirt.engine.core.bll.ImagesHandler.updateAllDiskImageSnapshotsStatus ( parameters.getImageGroupID ( ) , ImageStatus.OK ) ; } }

Target:
private void unlockAllDiskSnapshots ( ) { for ( org.ovirt.engine.core.common.action.LiveMigrateDiskParameters parameters : enclosingCommand.getParameters ( ) . getParametersList ( ) ) { org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.updateAllDiskImageSnapshotsStatus ( parameters.getImageGroupID ( ) , ImageStatus.OK ) ; } }
Source:
public void clearEnvironment ( ) { org.ovirt.engine.core.utils.ThreadLocalParamsContainer.clean ( ) ; org.ovirt.engine.core.bll.session.SessionDataContainer.getInstance ( ) . removeSession ( ) ; org.ovirt.engine.core.bll.session.SessionDataContainer.getInstance ( ) . removeSession ( session ) ; }

Target:
public void clearEnvironment ( ) { org.ovirt.engine.core.utils.ThreadLocalParamsContainer.clean ( ) ; org.ovirt.engine.core.bll.session.SessionDataContainer.getInstance ( ) . removeSessionOnLogout ( session ) ; }
Source:
public void testIsNetworkInSyncWhenStaticBootProtocolNetmaskEqual ( ) throws java.lang.Exception { initIpConfigurationBootProtocolNetmask ( org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterfaceTest.BOOT_PROTOCOL , true ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testIsNetworkInSyncWhenIpv4GatewayEqual ( ) { initIpv4ConfigurationBootProtocolGateway ( Ipv4BootProtocol.STATIC_IP , true ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
public void addLabelStyleName ( java.lang.String styleName ) { getLabelElement ( ) . addClassName ( styleName ) ; }

Target:
public void setLabelTooltip ( java.lang.String tooltipText ) { labelConfiguredTooltip = tooltipText ; labelTooltip.setText ( tooltipText ) ; labelTooltip.reconfigure ( ) ; }
Source:
public void Search ( ) { if ( ( getEntity ( ) ) != null ) { super . Search ( ) ; } }

Target:
public void search ( ) { if ( ( getEntity ( ) ) != null ) { super . search ( ) ; } }
Source:
private void assertGetResult ( org.ovirt.engine.core.common.businessentities.VmPool result ) { org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingVmPool , result ) ; }

Target:
private void assertGetResult ( org.ovirt.engine.core.common.businessentities.VmPool result ) { org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertEquals ( existingVmPool , result ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid getPoolId ( ) { org.ovirt.engine.core.bll.UpdateVmPoolWithVmsCommand.getVmPoolDAO ( ) . update ( org.ovirt.engine.core.bll.UpdateVmPoolWithVmsCommand.getVmPool ( ) ) ; return org.ovirt.engine.core.bll.UpdateVmPoolWithVmsCommand.getVmPool ( ) . getVmPoolId ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid getPoolId ( ) { org.ovirt.engine.core.bll.UpdateVmPoolWithVmsCommand.getVmPoolDao ( ) . update ( org.ovirt.engine.core.bll.UpdateVmPoolWithVmsCommand.getVmPool ( ) ) ; return org.ovirt.engine.core.bll.UpdateVmPoolWithVmsCommand.getVmPool ( ) . getVmPoolId ( ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.storage.ImageTransfer updateEntity ( org.ovirt.engine.core.common.businessentities.storage.ImageTransferUpdates updates ) { return org.ovirt.engine.core.bll.storage.disk.image.UploadImageCommand.updateEntity ( updates , org.ovirt.engine.core.bll.storage.disk.image.UploadImageCommand.getCommandId ( ) ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.storage.ImageTransfer updateEntity ( org.ovirt.engine.core.common.businessentities.storage.ImageTransferUpdates updates ) { return imageTransferUpdater.updateEntity ( updates , org.ovirt.engine.core.bll.storage.disk.image.UploadImageCommand.getCommandId ( ) ) ; }
Source:
public void testCanDoActionPoolInMaintenance ( ) { getStoragePool ( ) . setStatus ( StoragePoolStatus.Maintenance ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , VdcBllMessages.ACTION_TYPE_FAILED_IMAGE_REPOSITORY_NOT_FOUND ) ; }

Target:
public void testCanDoActionPoolInMaintenance ( ) { getStoragePool ( ) . setStatus ( StoragePoolStatus.Maintenance ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_IMAGE_REPOSITORY_NOT_FOUND ) ; }
Source:
private org.ovirt.engine.api.model.Clusters listVirtOnly ( ) { if ( isFiltered ( ) ) { return mapVirtOnlyCollection ( getBackendCollection ( QueryType.GetAllClusters , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ) ; } else { return mapVirtOnlyCollection ( getBackendCollection ( SearchType.Cluster ) ) ; } }

Target:
private org.ovirt.engine.api.model.Clusters listVirtOnly ( ) { if ( isFiltered ( ) ) { return mapVirtOnlyCollection ( getBackendCollection ( QueryType.GetAllClusters , new org.ovirt.engine.core.common.queries.QueryParametersBase ( ) ) ) ; } else { return mapVirtOnlyCollection ( getBackendCollection ( SearchType.Cluster ) ) ; } }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VM object ) { return object.getVmIp ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VM object ) { return object.getIp ( ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.RoleGroupMap > getAllForRole ( org.ovirt.engine.core.compat.Guid id ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "role_id" , id ) ; return getCallsHandler ( ) . executeReadList ( "Get_role_groups_By_role_id" , RoleGroupMapRowMapper.instance , parameterSource ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.RoleGroupMap > getAllForRole ( org.ovirt.engine.core.compat.Guid id ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "role_id" , id ) ; return getCallsHandler ( ) . executeReadList ( "Get_role_groups_By_role_id" , org.ovirt.engine.core.dao.RoleGroupMapDAODbFacadeImpl.RoleGroupMapRowMapper.instance , parameterSource ) ; }
Source:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( org.ovirt.engine.core.common.businessentities.AuditLog value ) { modelProvider.getModel ( ) . setSelectedItem ( value ) ; return modelProvider.getModel ( ) . getDismissCommand ( ) ; }

Target:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommandOnClick ( org.ovirt.engine.core.common.businessentities.AuditLog value ) { modelProvider.getModel ( ) . setSelectedItem ( value ) ; return resolveCommand ( value ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.Network createNetwork ( java.lang.Integer vlanId ) { return new org.ovirt.engine.core.common.businessentities.network.Network ( "" , "" , org.ovirt.engine.core.compat.Guid.NewGuid ( ) , org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextString ( 10 ) , "" , "" , 0 , vlanId , false , 0 , true ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.Network createNetwork ( java.lang.Integer vlanId ) { return new org.ovirt.engine.core.common.businessentities.network.Network ( "" , "" , org.ovirt.engine.core.compat.Guid.newGuid ( ) , org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextString ( 10 ) , "" , "" , 0 , vlanId , false , 0 , true ) ; }
Source:
public java.lang.Object runInTransaction ( ) { invokeCallable ( callable ) ; return null ; }

Target:
public java.lang.Object call ( ) { org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap storagePoolIsoMap = new org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap ( storageDomainId , storagePoolId , org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Maintenance ) ; getStoragePoolIsoMapDao ( ) . save ( storagePoolIsoMap ) ; return null ; }
Source:
public void addTabWidget ( com.google.gwt.user.client.ui.IsWidget tabWidget , int index ) { mainTabContainer.insert ( tabWidget , index ) ; }

Target:
public void removeTabWidget ( com.google.gwt.user.client.ui.IsWidget tabWidget ) { mainTabContainer.removeChild ( tabWidget.asWidget ( ) . getElement ( ) ) ; }
Source:
void verifyProcessFieldReturns ( boolean expected ) { boolean processField = tested.processField ( field ) ; org.junit.Assert.assertThat ( processField , org.hamcrest.CoreMatchers.is ( org.hamcrest.CoreMatchers.equalTo ( expected ) ) ) ; }

Target:
void verifyProcessFieldReturns ( boolean expected ) { boolean processField = tested.processField ( field ) ; org.hamcrest.MatcherAssert.assertThat ( processField , org.hamcrest.CoreMatchers.is ( org.hamcrest.CoreMatchers.equalTo ( expected ) ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VM mockVm ( ) { vm = new org.ovirt.engine.core.common.businessentities.VM ( ) ; vm.setId ( vmId ) ; vm.setName ( VM_NAME ) ; vm.setDiskMap ( new java.util.HashMap < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.storage.Disk > ( ) ) ; return vm ; }

Target:
private org.ovirt.engine.core.common.businessentities.VM mockVm ( ) { vm = new org.ovirt.engine.core.common.businessentities.VM ( ) ; vm.setId ( org.ovirt.engine.core.bll.GetNextAvailableDiskAliasNameByVMIdQueryTest.vmId ) ; vm.setName ( org.ovirt.engine.core.bll.GetNextAvailableDiskAliasNameByVMIdQueryTest.VM_NAME ) ; vm.setDiskMap ( new java.util.HashMap < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.storage.Disk > ( ) ) ; return vm ; }
Source:
public static void GetGlusterVolumeBrickDetails ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid clusterId , org.ovirt.engine.core.compat.Guid volumeId , org.ovirt.engine.core.compat.Guid brickId ) { org.ovirt.engine.core.common.queries.gluster.GlusterVolumeAdvancedDetailsParameters parameters = new org.ovirt.engine.core.common.queries.gluster.GlusterVolumeAdvancedDetailsParameters ( clusterId , volumeId , brickId , true ) ; org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.GetGlusterVolumeAdvancedDetails , parameters , aQuery ) ; }

Target:
public static void getGlusterVolumeBrickDetails ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid clusterId , org.ovirt.engine.core.compat.Guid volumeId , org.ovirt.engine.core.compat.Guid brickId ) { org.ovirt.engine.core.common.queries.gluster.GlusterVolumeAdvancedDetailsParameters parameters = new org.ovirt.engine.core.common.queries.gluster.GlusterVolumeAdvancedDetailsParameters ( clusterId , volumeId , brickId , true ) ; org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.GetGlusterVolumeAdvancedDetails , parameters , aQuery ) ; }
Source:
public void testExistingDiscardAfterDeleteFunctionalityPreservedNoDiscardAfterDeleteFunctionality ( ) { storageDomain.setDiscardAfterDelete ( false ) ; org.junit.Assert.assertTrue ( discardHelper.isExistingDiscardAfterDeleteFunctionalityPreserved ( java.util.Arrays.asList ( createLunWithDiscardSupport ( 0L ) , createLunWithDiscardSupport ( 0L ) ) , storageDomain ) ) ; }

Target:
public void testExistingDiscardAfterDeleteFunctionalityPreservedNoDiscardAfterDeleteFunctionality ( ) { storageDomain.setDiscardAfterDelete ( false ) ; org.junit.jupiter.api.Assertions.assertTrue ( discardHelper.isExistingDiscardAfterDeleteFunctionalityPreserved ( java.util.Arrays.asList ( createLunWithDiscardSupport ( 0L ) , createLunWithDiscardSupport ( 0L ) ) , storageDomain ) ) ; }
Source:
private void cancelTasks ( ) { org.ovirt.engine.core.bll.tasks.TaskManagerUtil.cancelTasks ( this ) ; }

Target:
protected void revertTasks ( ) { org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.revertTasks ( this ) ; }
Source:
private org.ovirt.engine.core.bll.ValidationResult networkNameNotUsed ( java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > networks ) { org.ovirt.engine.core.common.businessentities.network.Network networkWithSameName = getOtherNetworkWithSameName ( networks ) ; return networkWithSameName != null ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.NETWORK_IN_USE ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
private org.ovirt.engine.core.bll.ValidationResult networkNameNotUsed ( ) { org.ovirt.engine.core.common.businessentities.network.Network networkWithSameName = getOtherNetworkWithSameName ( org.ovirt.engine.core.bll.network.dc.UpdateNetworkCommand.getNetworks ( ) ) ; return networkWithSameName != null ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.NETWORK_IN_USE ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
public void addTabWidget ( com.google.gwt.user.client.ui.Widget tabWidget , int index ) { if ( ( tabWidgetHandler ) != null ) { tabWidgetHandler.addTabWidget ( tabWidget , index ) ; } }

Target:
public void removeTabWidget ( com.google.gwt.user.client.ui.IsWidget tabWidget ) { if ( ( tabWidgetHandler ) != null ) { tabWidgetHandler.removeTabWidget ( tabWidget ) ; } }
Source:
public java.lang.Boolean getksm_state ( ) { return this . ksm_state ; }

Target:
public java.lang.Boolean getKsmState ( ) { return this . ksmState ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.aaa.DbUser > searchDbUsers ( ) { return genericSearch ( org.ovirt.engine.core.bll.SearchQuery.getDbFacade ( ) . getDbUserDao ( ) , true ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.aaa.DbUser > searchDbUsers ( ) { return genericSearch ( dbUserDao , true ) ; }
Source:
public java.lang.Boolean getValue ( org.ovirt.engine.core.common.businessentities.VmDevice object ) { return object.getIsPlugged ( ) ; }

Target:
public java.lang.Boolean getValue ( org.ovirt.engine.core.common.businessentities.VmDevice object ) { return object.isPlugged ( ) ; }
Source:
public void disable ( java.util.List < java.lang.String > disabilityHints ) { setEnabled ( false ) ; updateWidgetTitle ( getDisabilityTitle ( disabilityHints ) ) ; }

Target:
public void disable ( java.lang.String disabilityHint ) { setEnabled ( false ) ; updateWidgetTitle ( disabilityHint ) ; }
Source:
public void vnicProfileNull ( ) { validator = new org.ovirt.engine.core.bll.validator.VnicProfileValidator ( 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 vnicProfileDoesNotExist ( ) { org.mockito.Mockito.when ( vnicProfileDao.get ( org.mockito.ArgumentMatchers.any ( ) ) ) . thenReturn ( null ) ; org.hamcrest.MatcherAssert.assertThat ( validator.vnicProfileExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_VNIC_PROFILE_NOT_EXISTS ) ) ; }
Source:
java.util.Map < java.lang.String , java.lang.Object > snapshot ( java.lang.String vmId , java.util.Map < java.lang.String , java.lang.String > [ ] snapParams ) ;

Target:
java.util.Map < java.lang.String , java.lang.Object > snapshot ( java.lang.String vmId , java.util.Map < java.lang.String , java.lang.String > [ ] disks ) ;
Source:
public boolean isLsmBetweenMixedStorageDomainsSupported ( org.ovirt.engine.core.compat.Version version ) { return ( ( java.lang.Boolean ) ( getConfigValuePreConverted ( ConfigurationValues.LiveStorageMigrationBetweenDifferentStorageTypes , version.toString ( ) ) ) ) ; }

Target:
public java.lang.Boolean isMemoryHotUnplugSupportedByArchitecture ( org.ovirt.engine.core.common.businessentities.ArchitectureType architecture , org.ovirt.engine.core.compat.Version version ) { return memoryHotUnplugSupport.get ( architecture ) . get ( version ) ; }
Source:
public void updateGlusterServerHookChecksum ( org.ovirt.engine.core.compat.Guid hookId , org.ovirt.engine.core.compat.Guid hostId , java.lang.String checksum ) { getCallsHandler ( ) . executeModification ( "UpdateGlusterServerHookChecksum" , getCustomMapSqlParameterSource ( ) . addValue ( "hook_id" , hookId ) . addValue ( "host_id" , hostId ) . addValue ( "checksum" , checksum ) ) ; }

Target:
public void updateGlusterServerHookChecksum ( org.ovirt.engine.core.compat.Guid hookId , org.ovirt.engine.core.compat.Guid serverId , java.lang.String checksum ) { getCallsHandler ( ) . executeModification ( "UpdateGlusterServerHookChecksum" , getCustomMapSqlParameterSource ( ) . addValue ( "hook_id" , hookId ) . addValue ( "server_id" , serverId ) . addValue ( "checksum" , checksum ) ) ; }
Source:
public static org.ovirt.engine.api.model.NfsVersion map ( org.ovirt.engine.api.model.NfsVersion version , org.ovirt.engine.api.model.NfsVersion outgoing ) { switch ( version ) { case V3 : return org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.NfsVersion ; case V4 : return org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.NfsVersion ; case V4_1 : return org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.NfsVersion ; case AUTO : return org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.NfsVersion ; default : return null ; } }

Target:
public static org.ovirt.engine.api.model.NfsVersion map ( org.ovirt.engine.api.model.NfsVersion version , org.ovirt.engine.api.model.NfsVersion outgoing ) { switch ( version ) { case V3 : return org.ovirt.engine.api.model.NfsVersion.V3 ; case V4 : return org.ovirt.engine.api.model.NfsVersion.V4 ; case V4_1 : return org.ovirt.engine.api.model.NfsVersion.V4_1 ; case AUTO : return org.ovirt.engine.api.model.NfsVersion.AUTO ; default : return null ; } }
Source:
public void execute ( ) { final java.lang.String domainToken = "@" ; restApiSessionManager.acquireSession ( ( userName.contains ( domainToken ) ? userName : ( userName + domainToken ) + domain ) , password ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { java.lang.String engineAuthToken = ( ( java.lang.String ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ) ) ; restApiSessionManager.acquireSession ( engineAuthToken ) ; }
Source:
public java.lang.String toString ( ) { return org.ovirt.engine.core.common.utils.ToStringBuilder.forInstance ( this ) . append ( "nameServers" , getNameServers ( ) ) . build ( ) ; }

Target:
public java.lang.String toString ( ) { return org.ovirt.engine.core.common.utils.ToStringBuilder.forInstance ( this ) . append ( "id" , getId ( ) ) . append ( "nameServers" , getNameServers ( ) ) . build ( ) ; }
Source:
public void testGetDefaultManagementNetworkName ( ) { org.junit.Assert.assertEquals ( org.ovirt.engine.core.bll.network.cluster.ManagementNetworkUtilImplTest.TEST_NETWORK_NAME , underTest.getDefaultManagementNetworkName ( ) ) ; }

Target:
public void testGetDefaultManagementNetworkName ( ) { org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.core.bll.network.cluster.ManagementNetworkUtilImplTest.TEST_NETWORK_NAME , underTest.getDefaultManagementNetworkName ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.storage.ImageTransfer updateEntityPhase ( org.ovirt.engine.core.common.businessentities.storage.ImageTransferPhase phase ) { org.ovirt.engine.core.common.businessentities.storage.ImageTransfer updates = new org.ovirt.engine.core.common.businessentities.storage.ImageTransfer ( org.ovirt.engine.core.bll.storage.disk.image.UploadImageCommand.getCommandId ( ) ) ; updates.setPhase ( phase ) ; return updateEntity ( updates ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.storage.ImageTransfer updateEntityPhase ( org.ovirt.engine.core.common.businessentities.storage.ImageTransferPhase phase ) { org.ovirt.engine.core.common.businessentities.storage.ImageTransfer updates = new org.ovirt.engine.core.common.businessentities.storage.ImageTransfer ( org.ovirt.engine.core.bll.storage.disk.image.TransferImageCommand.getCommandId ( ) ) ; updates.setPhase ( phase ) ; return updateEntity ( updates ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.OpenstackNetworkPluginType getPluginTypeForDisplayString ( java.lang.String displayString ) { return org.ovirt.engine.ui.uicommonweb.models.providers.NeutronPluginTranslator.pluginForDisplay.get ( displayString ) ; }

Target:
public static boolean isDisplayStringCustom ( java.lang.String displayString ) { return ! ( org.ovirt.engine.ui.uicommonweb.models.providers.NeutronPluginTranslator.pluginForDisplay.containsKey ( displayString.toLowerCase ( ) ) ) ; }
Source:
public void validateSucceedsOnStoppedVolume ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.StartGlusterVolumeProfileCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeParameters ( org.ovirt.engine.core.bll.gluster.StartGlusterVolumeProfileCommandTest.STOPPED_VOLUME_ID ) , null ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertTrue ( cmd.validate ( ) ) ; }

Target:
public void validateSucceedsOnStoppedVolume ( ) { cmd.setGlusterVolumeId ( org.ovirt.engine.core.bll.gluster.StartGlusterVolumeProfileCommandTest.STOPPED_VOLUME_ID ) ; org.junit.Assert.assertTrue ( cmd.validate ( ) ) ; }
Source:
protected org.ovirt.engine.core.utils.linq.Predicate < org.ovirt.engine.core.common.businessentities.StorageDomain > getPredicate ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > memoryDisks ) { return new org.ovirt.engine.core.utils.linq.Predicate < org.ovirt.engine.core.common.businessentities.StorageDomain > ( ) { @ java.lang.Override public boolean eval ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { return storageDomain.getStorageDomainType ( ) . isDataDomain ( ) ; } } ; }

Target:
protected java.util.function.Predicate < org.ovirt.engine.core.common.businessentities.StorageDomain > getPredicate ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > memoryDisks ) { return ( storageDomain ) -> storageDomain.getStorageDomainType ( ) . isDataDomain ( ) ; }
Source:
private void setUpGetGroupExpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.GetAffinityGroupById , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , getGroup ( ) ) ; }

Target:
private void setUpGetGroupExpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( QueryType.GetAffinityGroupById , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , getGroup ( ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult managementNetworkAttachment ( java.lang.String networkName ) { return networkCluster.isRequired ( ) ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.ACTION_TYPE_FAILED_MANAGEMENT_NETWORK_REQUIRED , java.lang.String.format ( org.ovirt.engine.core.bll.network.cluster.NetworkClusterValidator.NETWORK_NAME_REPLACEMENT , networkName ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult managementNetworkAttachment ( java.lang.String networkName ) { return networkCluster.isRequired ( ) ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_MANAGEMENT_NETWORK_REQUIRED , java.lang.String.format ( org.ovirt.engine.core.bll.network.cluster.NetworkClusterValidator.NETWORK_NAME_REPLACEMENT , networkName ) ) ; }
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 ( ) . quotaMainTabLabel ( ) , 10 , ginjector.getMainTabQuotaModelProvider ( ) ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.MainModelProvider < org.ovirt.engine.core.common.businessentities.Quota , org.ovirt.engine.ui.uicommonweb.models.quota.QuotaListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.quotaMainTabLabel ( ) , 10 , modelProvider ) ; }
Source:
public void setId ( org.ovirt.engine.core.compat.Guid value ) { this . mVmStatic.setId ( value ) ; this . mVmDynamic.setId ( value ) ; this . mVmStatistics.setId ( value ) ; }

Target:
public java.lang.String getVmName ( ) { return this . vmStatic.getVmName ( ) ; }
Source:
public int getNumOfCpus ( boolean countThreadsAsCPU ) { return countThreadsAsCPU ? this . getNumOfCpus ( ) : ( getNumOfSockets ( ) ) * ( getCpuPerSocket ( ) ) ; }

Target:
public int getNumOfCpus ( boolean countThreadsAsCPU ) { return this . vmStatic.getNumOfCpus ( countThreadsAsCPU ) ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.profiles.VnicProfileModel object ) { driver.edit ( object ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.profiles.VnicProfileModel model ) { driver.edit ( model ) ; publicInfo.setVisible ( model.getPublicUse ( ) . getIsAvailable ( ) ) ; }
Source:
public void setCloneVMsSuffix ( org.ovirt.engine.ui.uicommonweb.models.EntityModel cloneVMsSuffix ) { this . cloneVMsSuffix = cloneVMsSuffix ; }

Target:
public void setCloseCommand ( org.ovirt.engine.ui.uicommonweb.UICommand closeCommand ) { this . closeCommand = closeCommand ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { updateMtuChangeability ( ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { updateMtuSelectorsChangeability ( ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) . intValue ( ) : 1000 ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) : 1 ; }
Source:
public void setUpContainer ( ) { container = org.mockito.Mockito.spy ( org.ovirt.engine.core.bll.aaa.SessionDataContainer.getInstance ( ) ) ; clearSession ( ) ; }

Target:
public void testGetDataAndSetDataWithEmptySession ( ) { org.junit.Assert.assertNull ( "Get should return null with an empty session" , container.getData ( "" , org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_KEY , false ) ) ; clearSession ( ) ; }
Source:
private boolean liveActionRequired ( ) { return ( ( oldIface.isActive ( ) ) && ( getInterface ( ) . isActive ( ) ) ) && ( ( org.ovirt.engine.core.bll.network.vm.UpdateVmInterfaceCommand.getVm ( ) . getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.Up ) ) ; }

Target:
private boolean liveActionRequired ( ) { return ( ( oldIface.isPlugged ( ) ) && ( getInterface ( ) . isPlugged ( ) ) ) && ( ( org.ovirt.engine.core.bll.network.vm.UpdateVmInterfaceCommand.getVm ( ) . getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.Up ) ) ; }
Source:
private void mockDbFacades ( ) { mockVdsGroupDao ( ) ; mockVmDao ( ) ; mockAuditLogDao ( ) ; mockVdsDao ( ) ; }

Target:
private void mockDbFacades ( ) { mockVdsGroupDao ( ) ; mockVmDao ( ) ; mockAuditLogDao ( ) ; mockVdsDao ( ) ; mockVdsDynamicDao ( ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.Convertible AsConvertible ( ) { return new org.ovirt.engine.ui.uicommonweb.Convertible ( this ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.Convertible asConvertible ( ) { return new org.ovirt.engine.ui.uicommonweb.Convertible ( this ) ; }
Source:
public boolean isSetBlockStatistic ( ) { return ( ( this . blockStatistic ) != null ) && ( ! ( this . blockStatistic.isEmpty ( ) ) ) ; }

Target:
public org.ovirt.engine.sdk.entities.BlockStatistics getBlockStatistics ( ) { return blockStatistics ; }
Source:
public void getAllCpuQosForCpuPool ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.qos.CpuQos > allForCpuPoolId = dao.getAllForStoragePoolId ( FixturesTool.STORAGE_POOL_NFS ) ; org.junit.Assert.assertNotNull ( allForCpuPoolId ) ; org.junit.Assert.assertEquals ( 3 , allForCpuPoolId.size ( ) ) ; }

Target:
public void getAllCpuQosForCpuPool ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.qos.CpuQos > allForCpuPoolId = dao.getAllForStoragePoolId ( FixturesTool.STORAGE_POOL_NFS ) ; org.junit.jupiter.api.Assertions.assertNotNull ( allForCpuPoolId ) ; org.junit.jupiter.api.Assertions.assertEquals ( 3 , allForCpuPoolId.size ( ) ) ; }
Source:
public void testJsonEmptyDiskDescription ( ) throws java.io.IOException { java.lang.String jsonDescription = org.ovirt.engine.core.bll.ImagesHandler.getJsonDiskDescription ( "DiskAlias" , "" ) ; org.junit.Assert.assertEquals ( "Should be map of disk alias and disk description" , "{\"DiskAlias\":\"DiskAlias\",\"DiskDescription\":\"\"}" , jsonDescription ) ; }

Target:
public void testJsonEmptyDiskDescription ( ) throws java.io.IOException { org.ovirt.engine.core.bll.ImagesHandlerTest.assertDiskDescriptionMap ( "DiskAlias" , "" ) ; }
Source:
public void passthroughProfileValidProperties ( ) { passthroughProfileContainsSupportedPropertiesTest ( true , false , null , null ) ; org.junit.Assert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testValidNetworkFilterIdUseDefaultNoFilterId ( ) { org.hamcrest.MatcherAssert.assertThat ( validator.validUseDefaultNetworkFilterFlag ( true ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
int getwrite_rate_kb_per_sec ( ) ;

Target:
int getWriteRateKbPerSec ( ) ;
Source:
private org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator createHostSetupNetworksValidator ( ) { return createHostSetupNetworksValidator ( java.util.Collections.< org.ovirt.engine.core.common.businessentities.network.Network > emptyList ( ) ) ; }

Target:
private org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator createHostSetupNetworksValidator ( java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > networks ) { return createHostSetupNetworksValidator ( networks , new org.ovirt.engine.core.common.action.HostSetupNetworksParameters ( host.getId ( ) ) ) ; }
Source:
public void testGetAllForStoragePoolWithPermissionsUnprivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllForStoragePool ( FixturesTool.STORAGE_POOL_NFS , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForStoragePoolWithPermissionsUnprivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllForStoragePool ( FixturesTool.STORAGE_POOL_NFS , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.jupiter.api.Assertions.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { hideAndUnbind ( ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { removeListeners ( model ) ; hideAndUnbind ( ) ; }
Source:
private void removeMemoryImages ( ) { new org.ovirt.engine.core.bll.memory.MemoryImageRemoverFromExportDomain ( getVm ( ) , this , org.ovirt.engine.core.bll.storage.export.RemoveVmFromImportExportCommand.getParameters ( ) . getStoragePoolId ( ) , org.ovirt.engine.core.bll.storage.export.RemoveVmFromImportExportCommand.getParameters ( ) . getStorageDomainId ( ) ) . remove ( ) ; }

Target:
private void removeMemoryImages ( ) { new org.ovirt.engine.core.bll.memory.MemoryImageRemoverFromExportDomain ( getVm ( ) , this , org.ovirt.engine.core.bll.exportimport.RemoveVmFromImportExportCommand.getParameters ( ) . getStoragePoolId ( ) , org.ovirt.engine.core.bll.exportimport.RemoveVmFromImportExportCommand.getParameters ( ) . getStorageDomainId ( ) ) . remove ( ) ; }
Source:
private void initCheckBoxEditors ( ) { importGlusterConfigurationEditor = new org.ovirt.engine.ui.common.widget.editor.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; countThreadsAsCoresEditor = new org.ovirt.engine.ui.common.widget.editor.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; }

Target:
private void initCheckBoxEditors ( ) { importGlusterConfigurationEditor = new org.ovirt.engine.ui.common.widget.editor.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; countThreadsAsCoresEditor = new org.ovirt.engine.ui.common.widget.editor.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; enableTrustedServiceEditor = new org.ovirt.engine.ui.common.widget.editor.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; }
Source:
protected void init ( ) { super . init ( ) ; snapshot = org.ovirt.engine.core.bll.gluster.GlusterVolumeSnapshotCommandBase.getGlusterVolumeSnapshotDao ( ) . getByName ( org.ovirt.engine.core.bll.gluster.GlusterVolumeSnapshotCommandBase.getGlusterVolumeId ( ) , org.ovirt.engine.core.bll.gluster.GlusterVolumeSnapshotCommandBase.getParameters ( ) . getSnapshotName ( ) ) ; }

Target:
protected void init ( ) { super . init ( ) ; snapshot = glusterVolumeSnapshotDao.getByName ( org.ovirt.engine.core.bll.gluster.GlusterVolumeSnapshotCommandBase.getGlusterVolumeId ( ) , org.ovirt.engine.core.bll.gluster.GlusterVolumeSnapshotCommandBase.getParameters ( ) . getSnapshotName ( ) ) ; }
Source:
private void mockValidators ( ) { org.mockito.Mockito.doReturn ( diskValidator ) . when ( command ) . createDiskValidator ( org.mockito.ArgumentMatchers.any ( ) ) ; }

Target:
private void mockValidators ( ) { org.mockito.Mockito.doReturn ( diskValidator ) . when ( command ) . createDiskValidator ( org.mockito.ArgumentMatchers.any ( ) ) ; org.mockito.Mockito.doReturn ( diskImagesValidator ) . when ( command ) . createDiskImagesValidator ( org.mockito.ArgumentMatchers.any ( ) ) ; }
Source:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.model.NIC device ) { validateParameters ( device , getRequiredAddFields ( ) ) ; return performCreate ( addAction , getAddParameters ( map ( device ) , device ) , getEntityIdResolver ( device.getName ( ) ) ) ; }

Target:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.model.Nic device ) { validateParameters ( device , getRequiredAddFields ( ) ) ; return performCreate ( addAction , getAddParameters ( map ( device ) , device ) , getEntityIdResolver ( device.getName ( ) ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) . intValue ( ) : 1 ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) : 0 ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( C value ) { return null ; }

Target:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( C value ) { return tooltipFallback ; }
Source:
public void testGet ( ) { resource.setParent ( getCollectionResourceMock ( ) ) ; control.replay ( ) ; org.ovirt.engine.api.model.Hook hook = resource.get ( ) ; assertEquals ( hook.getEventName ( ) , org.ovirt.engine.api.restapi.resource.BackendHostHookResourceTest.EVENT_2_NAME ) ; }

Target:
public void testGet ( ) { setUriInfo ( setUpBasicUriExpectations ( ) ) ; resource.setParent ( getCollectionResourceMock ( ) ) ; control.replay ( ) ; org.ovirt.engine.api.model.Hook hook = resource.get ( ) ; assertEquals ( hook.getEventName ( ) , org.ovirt.engine.api.restapi.resource.BackendHostHookResourceTest.EVENT_2_NAME ) ; }
Source:
public void setEnabled ( boolean enabled ) { overrideSerialNumberPolicy.setEnabled ( enabled ) ; serialNumberPolicy.setEnabled ( enabled ) ; customSerialNumber.setEnabled ( enabled ) ; }

Target:
public void setRenderer ( org.ovirt.engine.ui.common.widget.VisibilityRenderer renderer ) { overrideSerialNumberPolicy.setRenderer ( renderer ) ; }
Source:
public void testExtractIpv6PrefixNoPrefix ( ) { org.junit.Assert.assertThat ( org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.extractIpv6Prefix ( "::" ) , org.hamcrest.Matchers.nullValue ( ) ) ; }

Target:
public void testExtractIpv6PrefixNull ( ) { org.junit.Assert.assertThat ( vdsBrokerObjectsBuilder.extractIpv6Prefix ( null ) , org.hamcrest.Matchers.nullValue ( ) ) ; }
Source:
protected boolean isSoundDeviceEnabled ( ) { java.lang.Boolean soundDeviceEnabled = org.ovirt.engine.core.bll.UpdateVmTemplateCommand.getParameters ( ) . isSoundDeviceEnabled ( ) ; return soundDeviceEnabled != null ? soundDeviceEnabled : org.ovirt.engine.core.bll.utils.VmDeviceUtils.isSoundDeviceEnabled ( org.ovirt.engine.core.bll.UpdateVmTemplateCommand.getParameters ( ) . getVmTemplateData ( ) . getId ( ) ) ; }

Target:
protected boolean isSoundDeviceEnabled ( ) { java.lang.Boolean soundDeviceEnabled = org.ovirt.engine.core.bll.UpdateVmTemplateCommand.getParameters ( ) . isSoundDeviceEnabled ( ) ; return soundDeviceEnabled != null ? soundDeviceEnabled : org.ovirt.engine.core.bll.utils.VmDeviceUtils.hasSoundDevice ( org.ovirt.engine.core.bll.UpdateVmTemplateCommand.getParameters ( ) . getVmTemplateData ( ) . getId ( ) ) ; }
Source:
public void validateBlockToFileSupported ( ) { storagePool.setCompatibilityVersion ( Version.v3_6 ) ; validateInvalidDestinationAndSourceDomainOfDifferentStorageSubtypes ( StorageType.ISCSI , StorageType.NFS , true ) ; }

Target:
public void validateFileToBlockSupported ( ) { storagePool.setCompatibilityVersion ( Version.v3_6 ) ; validateInvalidDestinationAndSourceDomainOfDifferentStorageSubtypes ( StorageType.NFS , StorageType.ISCSI ) ; }
Source:
protected void init ( ) { super . init ( ) ; }

Target:
protected void init ( ) { super . init ( ) ; helper = new org.ovirt.engine.api.restapi.resource.gluster.GlusterTestHelper ( control ) ; bricksResourceMock = control.createMock ( org.ovirt.engine.api.restapi.resource.gluster.BackendGlusterBricksResource.class ) ; }
Source:
public void testGetAllForStoragePoolWithPermissionsUnprivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllForStoragePool ( org.ovirt.engine.core.dao.StorageDomainDaoTest.EXISTING_STORAGE_POOL_ID , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetNonePermittedStorageDomains ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getPermittedStorageDomainsByStoragePool ( FixturesTool.USER_EXISTING_ID , ActionGroup.CONSUME_QUOTA , FixturesTool.DATA_CENTER ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public java.util.List < java.lang.String > getVisibleList ( ) { return getLocaleValues ( getValueString ( ) ) ; }

Target:
public static java.util.List < java.lang.String > getVisibleList ( ) { return org.ovirt.engine.ui.common.utils.VisibleLocalesInfoData.getLocaleValues ( getValueFrom ( "visibleLocales" ) ) ; }
Source:
protected java.util.Map < java.lang.String , java.lang.String > getExclusiveLocks ( ) { return org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand.getParameters ( ) . isNeedsLocking ( ) ? java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand.getVmId ( ) . toString ( ) , LockingGroup.VM.name ( ) ) : null ; }

Target:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand.getParameters ( ) . isNeedsLocking ( ) ? java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand.getVmId ( ) . toString ( ) , LockMessagesMatchUtil.VM ) : null ; }
Source:
private void setNonOperational ( org.ovirt.engine.core.common.businessentities.NonOperationalReason reason , org.ovirt.engine.core.common.businessentities.VDS vds ) { vds.setNonOperationalReason ( reason ) ; vds.setStatus ( VDSStatus.NonOperational ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDynamicDao ( ) . update ( vds.getDynamicData ( ) ) ; }

Target:
private void setNonOperational ( org.ovirt.engine.core.common.businessentities.NonOperationalReason reason , org.ovirt.engine.core.common.businessentities.VDS vds ) { vds.setNonOperationalReason ( reason ) ; vds.setStatus ( VDSStatus.NonOperational ) ; dbFacade.getVdsDynamicDao ( ) . update ( vds.getDynamicData ( ) ) ; }
Source:
public void clusterAlreadyInLocalFs ( ) { createCommandWithDefaultVdsGroup ( ) ; oldGroupIsDetachedDefault ( ) ; storagePoolIsLocalFS ( ) ; cpuExists ( ) ; cpuManufacturersMatch ( ) ; allQueriesForVms ( ) ; storagePoolAlreadyHasCluster ( ) ; canDoActionFailedWithReason ( VdcBllMessages.VDS_GROUP_CANNOT_ADD_MORE_THEN_ONE_HOST_TO_LOCAL_STORAGE ) ; }

Target:
public void clusterAlreadyInLocalFs ( ) { createCommandWithDefaultVdsGroup ( ) ; oldGroupIsDetachedDefault ( ) ; storagePoolIsLocalFS ( ) ; cpuExists ( ) ; cpuManufacturersMatch ( ) ; allQueriesForVms ( ) ; storagePoolAlreadyHasCluster ( ) ; architectureIsUpdatable ( ) ; canDoActionFailedWithReason ( VdcBllMessages.VDS_GROUP_CANNOT_ADD_MORE_THEN_ONE_HOST_TO_LOCAL_STORAGE ) ; }
Source:
public org.springframework.jdbc.core.JdbcTemplate getJdbcTemplate ( ) { return jdbcTemplate ; }

Target:
public org.ovirt.engine.core.dal.dbbroker.DbEngineDialect getDbEngineDialect ( ) { return dbEngineDialect ; }
Source:
public void testBadGuid ( ) { try { new org.ovirt.engine.api.restapi.resource.openstack.BackendOpenStackVolumeProviderResource ( "foo" , resource.getParent ( ) ) ; org.junit.Assert.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testBadGuid ( ) { try { new org.ovirt.engine.api.restapi.resource.openstack.BackendOpenStackVolumeProviderResource ( "foo" , resource.getParent ( ) ) ; org.junit.jupiter.api.Assertions.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }
Source:
public org.ovirt.engine.core.common.businessentities.StorageDomain getStorageDomain ( ) { if ( ( cachedStorageDomain ) == null ) { cachedStorageDomain = getStorageDomainDAO ( ) . get ( params.getStorageDomainId ( ) ) ; } return cachedStorageDomain ; }

Target:
protected org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolManagerStrategy getMacPool ( ) { return org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolPerDcSingleton.getInstance ( ) . poolForDataCenter ( params.getStoragePoolId ( ) ) ; }