auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void setVmIdOnVfsDevices ( org.ovirt.engine.core.compat.Guid hostId , org.ovirt.engine.core.compat.Guid vmId , java.util.Set < org.ovirt.engine.core.common.businessentities.HostDevice > vfs ) { for ( org.ovirt.engine.core.common.businessentities.HostDevice vf : vfs ) { hostDeviceDao.setVmIdOnHostDevice ( vf.getId ( ) , vmId ) ; } }

Target:
private void setVmIdOnVfsDevices ( org.ovirt.engine.core.compat.Guid vmId , java.util.Set < org.ovirt.engine.core.common.businessentities.HostDevice > vfs ) { for ( org.ovirt.engine.core.common.businessentities.HostDevice vf : vfs ) { hostDeviceDao.setVmIdOnHostDevice ( vf.getId ( ) , vmId ) ; } }
Source:
public void setvm_mem_size_mb ( int value ) { this . mVmStatic.setmem_size_mb ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "vm_mem_size_mb" ) ) ; }

Target:
public void setvm_mem_size_mb ( int value ) { this . mVmStatic.setmem_size_mb ( value ) ; }
Source:
public int compare ( org.ovirt.engine.core.common.businessentities.VDS o1 , org.ovirt.engine.core.common.businessentities.VDS o2 ) { return java.lang.Integer.valueOf ( org.ovirt.engine.core.bll.scheduling.utils.VdsCpuUsageComparator.calculateCpuUsage ( o1 ) ) . compareTo ( org.ovirt.engine.core.bll.scheduling.utils.VdsCpuUsageComparator.calculateCpuUsage ( o2 ) ) ; }

Target:
public int compare ( org.ovirt.engine.core.common.businessentities.VDS o1 , org.ovirt.engine.core.common.businessentities.VDS o2 ) { return java.lang.Integer.valueOf ( calculateCpuUsage ( o1 ) ) . compareTo ( calculateCpuUsage ( o2 ) ) ; }
Source:
public static void removeMemoryBalloons ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.removeVmDevices ( org.ovirt.engine.core.bll.utils.VmDeviceUtils.getMemoryBalloons ( vmId ) , 1 ) ; }

Target:
public void removeMemoryBalloons ( org.ovirt.engine.core.compat.Guid vmId ) { removeVmDevices ( getMemoryBalloons ( vmId ) , 1 ) ; }
Source:
public void isNetworkDeviceNonNetworkFree ( ) { freeVfCommon ( 0 , 0 , 0 , 1 , 0 ) ; org.ovirt.engine.core.common.businessentities.HostDevice hostDevice = getSingleMockedNonFreeDevice ( ) ; org.junit.Assert.assertFalse ( networkDeviceHelper.isDeviceNetworkFree ( hostDevice ) ) ; }

Target:
public void isNetworkDeviceNonNetworkFree ( ) { freeVfCommon ( 0 , 0 , 0 , 1 , 0 , 0 ) ; org.ovirt.engine.core.common.businessentities.HostDevice hostDevice = getSingleMockedNonFreeDevice ( ) ; org.junit.Assert.assertFalse ( networkDeviceHelper.isDeviceNetworkFree ( hostDevice ) ) ; }
Source:
public static org.ovirt.engine.core.compat.Guid asGuid ( byte [ ] guid , boolean keepByteOrder ) { try { return new org.ovirt.engine.core.compat.Guid ( guid , keepByteOrder ) ; } catch ( java.lang.IllegalArgumentException e ) { throw new org.ovirt.engine.api.restapi.utils.MalformedIdException ( e ) ; } }

Target:
public static org.ovirt.engine.core.compat.Guid asGuid ( byte [ ] guid ) { try { return new org.ovirt.engine.core.compat.Guid ( guid ) ; } catch ( java.lang.IllegalArgumentException e ) { throw new org.ovirt.engine.api.restapi.utils.MalformedIdException ( e ) ; } }
Source:
private void removeVmSnapshots ( ) { org.ovirt.engine.core.compat.Guid vmId = getVmId ( ) ; java.util.Set < java.lang.String > memoryStates = snapshotsManager.removeSnapshots ( vmId ) ; for ( java.lang.String memoryState : memoryStates ) { removeMemoryVolumes ( memoryState , vmId ) ; } }

Target:
protected void removeVmSnapshots ( ) { org.ovirt.engine.core.compat.Guid vmId = getVmId ( ) ; java.util.Set < java.lang.String > memoryStates = snapshotsManager.removeSnapshots ( vmId ) ; for ( java.lang.String memoryState : memoryStates ) { removeMemoryVolumes ( memoryState , vmId ) ; } }
Source:
protected org.ovirt.engine.core.common.vdscommands.VDSReturnValue runVdsCommand ( org.ovirt.engine.core.common.vdscommands.VDSCommandType commandType , org.ovirt.engine.core.common.vdscommands.VDSParametersBase parameters ) throws org.ovirt.engine.core.common.errors.EngineException { return org.ovirt.engine.core.bll.Backend.getInstance ( ) . getResourceManager ( ) . RunVdsCommand ( commandType , parameters ) ; }

Target:
protected org.ovirt.engine.core.common.vdscommands.VDSReturnValue runVdsCommand ( org.ovirt.engine.core.common.vdscommands.VDSCommandType commandType , org.ovirt.engine.core.common.vdscommands.VDSParametersBase parameters ) throws org.ovirt.engine.core.common.errors.EngineException { return org.ovirt.engine.core.bll.Backend.getInstance ( ) . getResourceManager ( ) . runVdsCommand ( commandType , parameters ) ; }
Source:
public org.ovirt.engine.core.aaa.AuthenticationResult authenticate ( java.lang.String name , java.lang.String password ) { return new org.ovirt.engine.core.aaa.nop.NopAuthenticationResult ( ) ; }

Target:
public void authenticate ( java.lang.String name , java.lang.String password ) { }
Source:
public void testRemoveNotFound ( ) throws java.lang.Exception { setUpEntityQueryExpectations ( 1 , 0 , true ) ; control.replay ( ) ; try { resource.remove ( ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testRemoveNotFound ( ) throws java.lang.Exception { setUpEntityQueryExpectations ( 1 , 0 , true ) ; try { resource.remove ( ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }
Source:
public org.ovirt.engine.core.compat.Guid getVmtGuid ( ) { return this . vmStatic.getvmt_guid ( ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getVmtGuid ( ) { return this . vmStatic.getVmtGuid ( ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.storage.DiskImage createPreallocDiskImage ( ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage image = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; image.setVolumeType ( VolumeType.Preallocated ) ; image.setDiskInterface ( DiskInterface.IDE ) ; image.setSizeInGigabytes ( 5 ) ; return image ; }

Target:
private static org.ovirt.engine.core.common.businessentities.storage.DiskImage createPreallocDiskImage ( ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage image = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; image.setVolumeType ( VolumeType.Preallocated ) ; image.setSizeInGigabytes ( 5 ) ; return image ; }
Source:
public org.ovirt.engine.core.compat.Guid getId ( ) { return this . id ; }

Target:
public org.ovirt.engine.core.compat.Guid getId ( ) { return id ; }
Source:
protected void selectionChanged ( java.lang.Boolean value ) { for ( org.ovirt.engine.ui.uicommonweb.models.datacenters.NetworkClusterModel networkClusterModel : getClustersTableItems ( ) ) { if ( networkClusterModel.getIsChangable ( ) ) { networkClusterModel.setRequired ( value ) ; } } refreshClustersTable ( ) ; }

Target:
protected void selectionChanged ( java.lang.Boolean value ) { for ( org.ovirt.engine.ui.uicommonweb.models.datacenters.NetworkClusterModel networkClusterModel : getClustersTableItems ( ) ) { networkClusterModel.setRequired ( value ) ; } refreshClustersTable ( ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.network.Network object ) { return object.getname ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.network.Network object ) { return object.getName ( ) ; }
Source:
void vdsNotResponding ( org.ovirt.engine.core.common.businessentities.VDS vds , long lastUpdate ) ;

Target:
void vdsNotResponding ( org.ovirt.engine.core.common.businessentities.VDS vds ) ;
Source:
private void processVmPoolOnStopVm ( ) { org.ovirt.engine.core.bll.VmPoolHandler.ProcessVmPoolOnStopVm ( org.ovirt.engine.core.bll.RunVmCommandBase.getVm ( ) . getId ( ) , org.ovirt.engine.core.bll.job.ExecutionHandler.createDefaultContexForTasks ( org.ovirt.engine.core.bll.RunVmCommandBase.getExecutionContext ( ) ) ) ; }

Target:
private void processVmPoolOnStopVm ( ) { org.ovirt.engine.core.bll.VmPoolHandler.processVmPoolOnStopVm ( org.ovirt.engine.core.bll.RunVmCommandBase.getVm ( ) . getId ( ) , org.ovirt.engine.core.bll.job.ExecutionHandler.createDefaultContexForTasks ( org.ovirt.engine.core.bll.RunVmCommandBase.getExecutionContext ( ) ) ) ; }
Source:
public void initConfiguredWithDefaultMinValue ( ) { org.ovirt.engine.core.common.config.IConfigUtilsInterface configUtils = initConfigUtils ( ) ; org.mockito.Mockito.when ( configUtils.GetValue ( ConfigValues.ConnectToServerTimeoutInSeconds , ConfigCommon.defaultConfigurationVersion ) ) . thenReturn ( org.ovirt.engine.core.common.utils.ConfiguredRangeValidatorTest.TEST_MIN_RANGE ) ; org.ovirt.engine.core.common.config.Config.setConfigUtils ( configUtils ) ; }

Target:
public void initConfiguredWithDefaultMinValue ( ) { org.ovirt.engine.core.common.config.IConfigUtilsInterface configUtils = initConfigUtils ( ) ; org.mockito.Mockito.when ( configUtils.getValue ( ConfigValues.ConnectToServerTimeoutInSeconds , ConfigCommon.defaultConfigurationVersion ) ) . thenReturn ( org.ovirt.engine.core.common.utils.ConfiguredRangeValidatorTest.TEST_MIN_RANGE ) ; org.ovirt.engine.core.common.config.Config.setConfigUtils ( configUtils ) ; }
Source:
public org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient createClient ( java.lang.String hostname , int port , org.ovirt.vdsm.jsonrpc.client.reactors.SSLClient.CertCallback certCallback ) throws org.ovirt.vdsm.jsonrpc.client.ClientConnectionException { return createClient ( this , this . selector , hostname , port , certCallback ) ; }

Target:
public org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient createClient ( java.lang.String hostname , int port ) throws org.ovirt.vdsm.jsonrpc.client.ClientConnectionException { return createClient ( this , this . selector , hostname , port ) ; }
Source:
protected boolean canDoAction ( ) { return getQuotaHelper ( ) . checkQuotaValidationForAdd ( org.ovirt.engine.core.bll.AddQuotaCommand.getParameters ( ) . getQuota ( ) , org.ovirt.engine.core.bll.AddQuotaCommand.getReturnValue ( ) . getCanDoActionMessages ( ) ) ; }

Target:
protected boolean canDoAction ( ) { return checkQuotaValidationForAdd ( getParameters ( ) . getQuota ( ) , getReturnValue ( ) . getCanDoActionMessages ( ) ) ; }
Source:
public java.lang.Object runInTransaction ( ) { org.ovirt.engine.core.common.businessentities.storage_pool pool = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStoragePoolDao ( ) . get ( storagePool.getId ( ) ) ; pool.setspm_vds_id ( null ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStoragePoolDao ( ) . update ( pool ) ; return null ; }

Target:
public java.lang.Object runInTransaction ( ) { org.ovirt.engine.core.common.businessentities.StoragePool pool = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStoragePoolDao ( ) . get ( storagePool.getId ( ) ) ; pool.setspm_vds_id ( null ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStoragePoolDao ( ) . update ( pool ) ; return null ; }
Source:
public void update ( ) { T model = getModel ( ) ; doEdit ( model ) ; formBuilder.showForm ( model ) ; }

Target:
public void update ( ) { T model = getModel ( ) ; doEdit ( model ) ; formBuilder.update ( model ) ; }
Source:
private void mockNullVm ( ) { org.mockito.Mockito.when ( vmDao.get ( command.getParameters ( ) . getVmId ( ) ) ) . thenReturn ( null ) ; createVirtIODisk ( ) ; }

Target:
private void mockNullVm ( ) { createVirtIODisk ( ) ; }
Source:
protected boolean canDoAction ( ) { return ( super . canDoAction ( ) ) && ( validate ( getVfsConfigValidator ( ) . settingSpecificNetworksAllowed ( ) ) ) ; }

Target:
protected boolean validate ( ) { return ( super . validate ( ) ) && ( validate ( getVfsConfigValidator ( ) . settingSpecificNetworksAllowed ( ) ) ) ; }
Source:
protected void preSearchCalled ( org.ovirt.engine.core.common.businessentities.VM vm ) { setSearchString ( ( ( "events: vm.name=" + ( vm.getName ( ) ) ) + " and vm.name != \"\"" ) ) ; }

Target:
protected void preSearchCalled ( org.ovirt.engine.core.common.businessentities.VM vm ) { setSearchString ( ( "events: vm.name=" + ( vm.getName ( ) ) ) ) ; }
Source:
public void nameAvailable ( ) throws java.lang.Exception { org.mockito.Mockito.when ( providerDao.getByName ( provider.getName ( ) ) ) . thenReturn ( null ) ; org.junit.Assert.assertThat ( validator.nameAvailable ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void nameAvailable ( ) throws java.lang.Exception { org.junit.Assert.assertThat ( validator.nameAvailable ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void testGetAsyncTaskIdsByEntity ( ) { java.util.List < org.ovirt.engine.core.compat.Guid > guids = dao.getAsyncTaskIdsByEntity ( FixturesTool.ENTITY_WITH_TASKS_ID ) ; org.junit.Assert.assertNotNull ( guids ) ; org.junit.Assert.assertEquals ( guids.size ( ) , 1 ) ; }

Target:
public void testGetAsyncTaskIdsByEntity ( ) { java.util.List < org.ovirt.engine.core.compat.Guid > guids = dao.getAsyncTaskIdsByEntity ( FixturesTool.ENTITY_WITH_TASKS_ID ) ; org.junit.Assert.assertNotNull ( guids ) ; org.junit.Assert.assertEquals ( 1 , guids.size ( ) ) ; }
Source:
public void showStatus ( java.lang.String status ) { if ( refreshManager.getModelTimer ( ) . isActive ( ) ) { setTitle ( status ) ; } }

Target:
public void showStatus ( java.lang.String status ) { setTitle ( status ) ; }
Source:
public void setId ( org.ovirt.engine.core.common.businessentities.EngineBackupLogId id ) { scope = id.getScope ( ) ; doneAt = id.getDoneAt ( ) ; }

Target:
public void setId ( org.ovirt.engine.core.common.businessentities.EngineBackupLogId id ) { doneAt = id.getDoneAt ( ) ; scope = id.getScope ( ) ; }
Source:
public org.ovirt.engine.core.compat.Guid eval ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomainStatic ) { return storageDomainStatic.getId ( ) ; }

Target:
public org.ovirt.engine.core.compat.Guid eval ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomainStatic ) { return storageDomainStatic.getId ( ) ; }
Source:
protected org.ovirt.engine.api.model.Disk doPopulate ( org.ovirt.engine.api.model.Disk model , org.ovirt.engine.api.model.Disk entity ) { return ( ( org.ovirt.engine.api.restapi.resource.BackendVmDisksResource ) ( collection ) ) . doPopulate ( model , entity ) ; }

Target:
protected org.ovirt.engine.api.model.Disk doPopulate ( org.ovirt.engine.api.model.Disk model , org.ovirt.engine.api.model.Disk entity ) { return collection.doPopulate ( model , entity ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.NetworkStatus getStatus ( ) { return ( cluster ) == null ? null : org.ovirt.engine.core.common.businessentities.NetworkStatus.forValue ( cluster.getstatus ( ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.NetworkStatus getStatus ( ) { return ( cluster ) == null ? null : cluster.getstatus ( ) ; }
Source:
protected org.ovirt.engine.core.common.queries.VdcQueryReturnValue getAllDisksByStorageDomain ( org.ovirt.engine.core.compat.Guid domainId ) { return org.ovirt.engine.core.bll.storage.GetVmsByStorageDomainQuery.getBackend ( ) . RunQuery ( VdcQueryType.GetAllDisksByStorageDomainId , new org.ovirt.engine.core.common.queries.StorageDomainQueryParametersBase ( domainId ) ) ; }

Target:
protected org.ovirt.engine.core.common.queries.VdcQueryReturnValue getAllDisksByStorageDomain ( org.ovirt.engine.core.compat.Guid domainId ) { return org.ovirt.engine.core.bll.storage.GetVmsByStorageDomainQuery.getBackend ( ) . RunQuery ( VdcQueryType.GetAllDisksByStorageDomainId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( domainId ) ) ; }
Source:
public static void adjustPopupLocationToFitScreenAndShow ( final com.google.gwt.user.client.ui.PopupPanel popup , int left , int top ) { org.ovirt.engine.ui.common.utils.PopupUtils.adjustPopupLocationToFitScreenAndShow ( popup , left , top , 0 , 0 ) ; }

Target:
public static void adjustPopupLocationToFitScreenAndShow ( final com.google.gwt.user.client.ui.PopupPanel popup , int left , int top ) { org.ovirt.engine.ui.common.utils.PopupUtils.adjustPopupLocationToFitScreenAndShow ( popup , left , top , 0 , 0 , 0 ) ; }
Source:
public java.lang.Object call ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.VDSGroup vdsGroup = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsGroupDao ( ) . get ( _vds.getVdsGroupId ( ) ) ; _parser.cliEnvironmentSet ( VirtEnv.ENABLE , vdsGroup.supportsVirtService ( ) ) ; return null ; }

Target:
public java.lang.Boolean call ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.VDSGroup vdsGroup = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsGroupDao ( ) . get ( _vds.getVdsGroupId ( ) ) ; _parser.cliEnvironmentSet ( VirtEnv.ENABLE , vdsGroup.supportsVirtService ( ) ) ; return true ; }
Source:
protected void buildVmSoundDevices ( ) { buildVmDevicesFromDb ( VmDeviceGeneralType.SOUND , true ) ; }

Target:
protected void buildVmSoundDevices ( ) { buildVmDevicesFromDb ( VmDeviceGeneralType.SOUND , true , null ) ; }
Source:
public void update ( int index , org.ovirt.engine.core.common.businessentities.VmPool pool , java.lang.String value ) { transitionHandler.handlePlaceTransition ( ) ; }

Target:
public void update ( int index , org.ovirt.engine.core.common.businessentities.VmPool pool , java.lang.String value ) { transitionHandler.handlePlaceTransition ( true ) ; }
Source:
public synchronized void clear ( ) { factoriesByType.clear ( ) ; objectsByName.clear ( ) ; }

Target:
public void clear ( ) { factoriesByType.clear ( ) ; objectsByName.clear ( ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { setSupportedVnicTypes ( ( ( java.util.Collection < org.ovirt.engine.core.common.businessentities.network.VmInterfaceType > ) ( returnValue ) ) ) ; postNicInit ( ) ; }

Target:
public void onSuccess ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VmInterfaceType > returnValue ) { setSupportedVnicTypes ( returnValue ) ; postNicInit ( ) ; }
Source:
private void reboot ( ) { org.ovirt.engine.ui.uicompat.UIConstants constants = org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) ; powerAction ( org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel.REBOOT , constants.rebootVirtualMachinesTitle ( ) , constants.areYouSureYouWantToRebootTheFollowingVirtualMachinesMsg ( ) ) ; }

Target:
private void reboot ( ) { org.ovirt.engine.ui.uicompat.UIConstants constants = org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) ; powerAction ( org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel.REBOOT , constants.rebootVirtualMachinesTitle ( ) , constants.areYouSureYouWantToRebootTheFollowingVirtualMachinesMsg ( ) , false ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getDefaultConfigurationVersion ( target ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { getDefaultConfigurationVersion ( target ) ; }
Source:
public void setDomainMap ( java.util.Map < java.lang.String , java.lang.Object > domainMap ) { this . domainMap = domainMap ; }

Target:
public void setDomainMap ( java.util.Map < java.lang.String , java.lang.String > domainMap ) { this . domainMap = domainMap ; }
Source:
public void setUp ( ) { org.mockito.Mockito.doReturn ( mockClusterDao ) . when ( underTest ) . getClusterDao ( ) ; org.mockito.Mockito.doReturn ( mockNetworkClusterDao ) . when ( underTest ) . getNetworkClusterDao ( ) ; org.mockito.Mockito.doReturn ( mockNetworkDao ) . when ( underTest ) . getNetworkDao ( ) ; }

Target:
public void setUp ( ) { org.mockito.Mockito.doReturn ( mockNetworkClusterDao ) . when ( underTest ) . getNetworkClusterDao ( ) ; org.mockito.Mockito.doReturn ( mockNetworkDao ) . when ( underTest ) . getNetworkDao ( ) ; }
Source:
private void deleteV2VJob ( ) { getVdsManager ( ) . removeV2VJobInfoForVm ( org.ovirt.engine.core.bll.ConvertVmCommand.getVmId ( ) ) ; getVmManager ( ) . setConvertProxyHostId ( null ) ; runVdsCommand ( VDSCommandType.DeleteV2VJob , new org.ovirt.engine.core.common.vdscommands.VdsAndVmIDVDSParametersBase ( org.ovirt.engine.core.bll.ConvertVmCommand.getVdsId ( ) , org.ovirt.engine.core.bll.ConvertVmCommand.getVmId ( ) ) ) ; }

Target:
private void deleteV2VJob ( ) { getVdsManager ( ) . removeV2VJobInfoForVm ( org.ovirt.engine.core.bll.ConvertVmCommand.getVmId ( ) ) ; runVdsCommand ( VDSCommandType.DeleteV2VJob , new org.ovirt.engine.core.common.vdscommands.VdsAndVmIDVDSParametersBase ( org.ovirt.engine.core.bll.ConvertVmCommand.getVdsId ( ) , org.ovirt.engine.core.bll.ConvertVmCommand.getVmId ( ) ) ) ; }
Source:
private void mockDiskDao ( final org.ovirt.engine.core.dao.DiskDao diskDao ) { org.ovirt.engine.core.searchbackend.SearchObjectAutoCompleter search = new org.ovirt.engine.core.searchbackend.SearchObjectAutoCompleter ( ) ; org.mockito.Mockito.when ( diskDao.getAllWithQuery ( org.mockito.Matchers.matches ( org.ovirt.engine.core.bll.SearchQueryTest.getDiskImageRegexString ( search ) ) ) ) . thenReturn ( diskImageResultList ) ; }

Target:
public void mockDiskDao ( ) { org.ovirt.engine.core.searchbackend.SearchObjectAutoCompleter search = new org.ovirt.engine.core.searchbackend.SearchObjectAutoCompleter ( ) ; org.mockito.Mockito.when ( diskDao.getAllWithQuery ( org.mockito.Matchers.matches ( org.ovirt.engine.core.bll.SearchQueryTest.getDiskImageRegexString ( search ) ) ) ) . thenReturn ( diskImageResultList ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetJobByJobIdQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.job.JobRepositoryFactory.getJobRepository ( ) . getJobWithSteps ( org.ovirt.engine.core.bll.GetJobByJobIdQuery.getParameters ( ) . getJobId ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetJobByJobIdQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.job.JobRepositoryFactory.getJobRepository ( ) . getJobWithSteps ( org.ovirt.engine.core.bll.GetJobByJobIdQuery.getParameters ( ) . getId ( ) ) ) ; }
Source:
protected void processResponse ( com.google.gwt.http.client.Response response ) { java.lang.String sessionIdFromHeader = org.ovirt.engine.ui.common.utils.HttpUtils.getHeader ( response , org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.SESSION_ID_HEADER ) ; if ( sessionIdFromHeader != null ) { setSessionId ( sessionIdFromHeader ) ; } reuseSession ( ) ; }

Target:
protected void processResponse ( com.google.gwt.http.client.Response response ) { java.lang.String sessionIdFromHeader = org.ovirt.engine.ui.common.utils.HttpUtils.getHeader ( response , org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.SESSION_ID_HEADER ) ; if ( sessionIdFromHeader != null ) { setSessionId ( sessionIdFromHeader , true ) ; } reuseSession ( ) ; }
Source:
protected void createQosWidget ( ) { qosWidget = new org.ovirt.engine.ui.webadmin.section.main.view.popup.qos.StorageQosWidget ( constants ) ; }

Target:
protected void createQosWidget ( ) { qosWidget = new org.ovirt.engine.ui.webadmin.section.main.view.popup.qos.StorageQosWidget ( ) ; }
Source:
protected java.lang.String renderNullSafe ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.network.Network ) ( object ) ) . getname ( ) ; }

Target:
protected java.lang.String renderNullSafe ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.network.Network ) ( object ) ) . getName ( ) ; }
Source:
public void nameAcceptableLength ( ) { createValidStoragePool ( ) ; org.ovirt.engine.core.bll.storage.StorageHandlingCommandBaseTest.setAcceptableNameLength ( 255 ) ; checkStoragePoolNameLengthFails ( ) ; }

Target:
public void nameAcceptableLength ( ) { org.ovirt.engine.core.bll.storage.StorageHandlingCommandBaseTest.setAcceptableNameLength ( 255 ) ; checkStoragePoolNameLengthFails ( ) ; }
Source:
protected org.ovirt.engine.core.common.queries.VdcQueryReturnValue getAllDisksByStorageDomain ( org.ovirt.engine.core.compat.Guid domainId ) { return org.ovirt.engine.core.bll.storage.GetVmsByStorageDomainQuery.getBackend ( ) . runInternalQuery ( VdcQueryType.GetAllDisksByStorageDomainId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( domainId ) ) ; }

Target:
protected org.ovirt.engine.core.common.queries.VdcQueryReturnValue getAllDisksByStorageDomain ( org.ovirt.engine.core.compat.Guid domainId ) { return runInternalQuery ( VdcQueryType.GetAllDisksByStorageDomainId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( domainId ) ) ; }
Source:
protected java.util.Map < org.ovirt.engine.core.compat.Guid , java.lang.String > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( getAdUserId ( ) , getClass ( ) . getName ( ) ) ; }

Target:
protected java.util.Map < java.lang.String , java.lang.String > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( getAdUserId ( ) . toString ( ) , getClass ( ) . getName ( ) ) ; }
Source:
public void storagePoolId ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; b.setStoragePoolId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; final org.ovirt.engine.core.compat.Guid n = b.getStoragePoolId ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID , n ) ; }

Target:
public void storagePoolId ( ) { b.setStoragePoolId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; final org.ovirt.engine.core.compat.Guid n = b.getStoragePoolId ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID , n ) ; }
Source:
protected org.ovirt.engine.api.model.Host deprecatedPopulate ( org.ovirt.engine.api.model.Host model , org.ovirt.engine.core.common.businessentities.VDS entity ) { parent.addStatistics ( model , entity ) ; parent.addCertificateInfo ( model ) ; return model ; }

Target:
protected org.ovirt.engine.api.model.Host deprecatedPopulate ( org.ovirt.engine.api.model.Host model , org.ovirt.engine.core.common.businessentities.VDS entity ) { parent.addStatistics ( model , entity ) ; return model ; }
Source:
public void testList ( ) throws java.lang.Exception { collection.setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpEntityQueryExpectations ( null ) ; control.replay ( ) ; verifyCollection ( getCollection ( ) ) ; }

Target:
public void testList ( ) throws java.lang.Exception { collection.setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpEntityQueryExpectations ( null ) ; verifyCollection ( getCollection ( ) ) ; }
Source:
public void setId ( org.ovirt.engine.core.compat.Guid id ) { this . vm_guidField = id ; }

Target:
public void setId ( org.ovirt.engine.core.compat.Guid id ) { this . vmId = id ; }
Source:
private void oldGroupIsDetachedDefault ( ) { org.powermock.api.mockito.PowerMockito.when ( vdsGroupDAO.get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.createDetachedDefaultVdsGroup ( ) ) ; }

Target:
private void oldGroupIsDetachedDefault ( ) { org.mockito.Mockito.when ( vdsGroupDAO.get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.createDetachedDefaultVdsGroup ( ) ) ; }
Source:
public void updateStoragePool ( ) { createCommandWithDifferentPool ( ) ; org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.cpuExists ( ) ; org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.cpuManufacturersMatch ( ) ; clusterHasVds ( ) ; org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.cpuFlagsNotMissing ( ) ; canDoActionFailedWithReason ( VdcBllMessages.VDS_GROUP_CANNOT_CHANGE_STORAGE_POOL ) ; }

Target:
public void updateStoragePool ( ) { createCommandWithDifferentPool ( ) ; cpuExists ( ) ; cpuManufacturersMatch ( ) ; clusterHasVds ( ) ; cpuFlagsNotMissing ( ) ; canDoActionFailedWithReason ( VdcBllMessages.VDS_GROUP_CANNOT_CHANGE_STORAGE_POOL ) ; }
Source:
private org.ovirt.engine.ui.frontend.server.dashboard.Dashboard getDashboard ( final javax.servlet.http.HttpServletRequest request ) throws org.ovirt.engine.ui.frontend.server.dashboard.DashboardDataException { org.ovirt.engine.ui.frontend.server.dashboard.Dashboard dashboard = new org.ovirt.engine.ui.frontend.server.dashboard.Dashboard ( ) ; dashboard.setGlobalUtilization ( lookupGlobalUtilization ( ) ) ; dashboard.setHeatMapData ( lookupClusterUtilization ( ) ) ; return dashboard ; }

Target:
private org.ovirt.engine.ui.frontend.server.dashboard.Dashboard getDashboard ( ) throws org.ovirt.engine.ui.frontend.server.dashboard.DashboardDataException { org.ovirt.engine.ui.frontend.server.dashboard.Dashboard dashboard = new org.ovirt.engine.ui.frontend.server.dashboard.Dashboard ( ) ; dashboard.setGlobalUtilization ( lookupGlobalUtilization ( ) ) ; dashboard.setHeatMapData ( lookupClusterUtilization ( ) ) ; return dashboard ; }
Source:
protected void setHeaderTooltipStyle ( com.google.gwt.safehtml.shared.SafeHtml tooltipText ) { if ( ( tooltipText == null ) || ( tooltipText.asString ( ) . isEmpty ( ) ) ) { renderedHeaderText = this . headerText ; } else { renderedHeaderText = templates.hasTooltip ( headerText ) ; } }

Target:
protected void setHeaderTooltipStyle ( java.lang.String tooltipText ) { if ( ( tooltipText == null ) || ( tooltipText.isEmpty ( ) ) ) { renderedHeaderText = this . headerText ; } else { renderedHeaderText = templates.hasTooltip ( headerText ) ; } }
Source:
public void setactual_size ( long size ) { this . actualSize = size ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "actual_size" ) ) ; }

Target:
public void setactual_size ( long size ) { this . actualSize = size ; }
Source:
public void validateFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.ManageGlusterServiceCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterServiceParameters ( null , null , org.ovirt.engine.core.common.businessentities.gluster.ServiceType.NFS , org.ovirt.engine.core.common.constants.gluster.GlusterConstants.MANAGE_GLUSTER_SERVICE_ACTION_TYPE_START ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.ManageGlusterServiceCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterServiceParameters ( null , null , org.ovirt.engine.core.common.businessentities.gluster.ServiceType.NFS , org.ovirt.engine.core.common.constants.gluster.GlusterConstants.MANAGE_GLUSTER_SERVICE_ACTION_TYPE_START ) , null ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
public void testGetVolumesSupportedAsStorageDomain ( ) { dao.updateReplicaCount ( org.ovirt.engine.core.dao.gluster.GlusterVolumeDaoTest.EXISTING_VOL_REPL_ID , 3 ) ; java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity > vols = dao.getVolumesSupportedAsStorageDomain ( ) ; org.junit.Assert.assertEquals ( 1 , vols.size ( ) ) ; }

Target:
public void testGetVolumesSupportedAsStorageDomain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity > vols = dao.getVolumesSupportedAsStorageDomain ( ) ; org.junit.Assert.assertEquals ( 1 , vols.size ( ) ) ; }
Source:
public void initTable ( ) { org.ovirt.engine.ui.common.widget.uicommon.permissions.PermissionListModelTable.getTable ( ) . enableColumnResizing ( ) ; addTypeColumn ( ) ; addUserColumn ( ) ; addAuthzColumn ( ) ; addNameSpaceColumn ( ) ; addRoleColumn ( ) ; addCreationDateColum ( ) ; addAddPermissionsButton ( ) ; addRemovePermissionsButton ( ) ; }

Target:
public void initTable ( ) { org.ovirt.engine.ui.common.widget.uicommon.permissions.PermissionListModelTable.getTable ( ) . enableColumnResizing ( ) ; addTypeColumn ( ) ; addUserColumn ( ) ; addAuthzColumn ( ) ; addNameSpaceColumn ( ) ; addRoleColumn ( ) ; addCreationDateColum ( ) ; }
Source:
public org.ovirt.engine.api.model.Host get ( ) { org.ovirt.engine.api.model.Host host = getVdsByVdsId ( ) ; deprecatedAddLinksToAgents ( host ) ; return host ; }

Target:
public org.ovirt.engine.api.model.Host get ( ) { return getVdsByVdsId ( ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getId ( ) { return this . getStorageStaticData ( ) . getId ( ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getId ( ) { return ( getStorageStaticData ( ) ) == null ? null : getStorageStaticData ( ) . getId ( ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getstorage_pool_id ( ) { return this . storage_pool_idField ; }

Target:
public org.ovirt.engine.core.compat.Guid getStoragePoolId ( ) { return this . storage_pool_idField ; }
Source:
public java.lang.String renderNullSafe ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.compat.Version ) ( object ) ) . toString ( ) ; }

Target:
public java.lang.String renderNullSafe ( org.ovirt.engine.core.compat.Version object ) { return object.toString ( ) ; }
Source:
public void forceAddMac ( java.lang.String mac ) { org.ovirt.engine.core.bll.network.macpool.MacPoolUsingRanges.log.debug ( "Forcibly allocating custom mac address from {}" , mac , this ) ; macsStorage.useMacNoDuplicityCheck ( org.ovirt.engine.core.utils.MacAddressRangeUtils.macToLong ( mac ) ) ; logWhenMacPoolIsEmpty ( ) ; }

Target:
private void forceAddMac ( java.lang.String mac ) { org.ovirt.engine.core.bll.network.macpool.MacPoolUsingRanges.log.debug ( "Forcibly allocating custom mac address from {}" , mac , this ) ; macsStorage.useMacNoDuplicityCheck ( org.ovirt.engine.core.utils.MacAddressRangeUtils.macToLong ( mac ) ) ; logWhenMacPoolIsEmpty ( ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { setProviders ( ( ( java.util.List < org.ovirt.engine.core.common.businessentities.Provider > ) ( returnValue ) ) ) ; org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getDataCenterList ( dcQuery ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { setProviders ( ( ( java.util.List < org.ovirt.engine.core.common.businessentities.Provider > ) ( returnValue ) ) ) ; }
Source:
public static void getManagementNetworkName ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getConfigFromCache ( new org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ( org.ovirt.engine.core.common.queries.ConfigurationValues.ManagementNetwork , org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getDefaultConfigurationVersion ( ) ) , aQuery ) ; }

Target:
public void getManagementNetworkName ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { getConfigFromCache ( new org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ( org.ovirt.engine.core.common.queries.ConfigurationValues.ManagementNetwork , getDefaultConfigurationVersion ( ) ) , aQuery ) ; }
Source:
protected java.lang.Integer getStoragePoolNameSizeLimit ( ) { return org.ovirt.engine.core.common.config.Config.< java.lang.Integer > GetValue ( ConfigValues.StoragePoolNameSizeLimit ) ; }

Target:
protected java.lang.Integer getStoragePoolNameSizeLimit ( ) { return org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.StoragePoolNameSizeLimit ) ; }
Source:
public void getFreeVfNoVfs ( ) { freeVfCommon ( 0 , 0 , 0 , 0 , 0 ) ; org.junit.Assert.assertNull ( networkDeviceHelper.getFreeVf ( nic , null ) ) ; }

Target:
public void getFreeVfNoVfs ( ) { freeVfCommon ( 0 , 0 , 0 , 0 , 0 , 0 ) ; org.junit.Assert.assertNull ( networkDeviceHelper.getFreeVf ( nic , null ) ) ; }
Source:
public void canDoActionFailsOnNull ( ) { cmd = createTestCommand ( null ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }

Target:
public void canDoActionFailsOnNull ( ) { cmd = createTestCommand ( null , 0 ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { getIso ( ) . setIsChangeable ( getAttachDrivers ( ) . getEntity ( ) ) ; updateWindowsWarningMessage ( ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { updateWindowsWarningMessage ( ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeSnapshotEntity getById ( org.ovirt.engine.core.compat.Guid id ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeSnapshotEntity snapshot = getCallsHandler ( ) . executeRead ( "GetGlusterVolumeSnapshotById" , org.ovirt.engine.core.dao.gluster.GlusterVolumeSnapshotDaoImpl.snapshotRowMapper , createSnapshotIdParams ( id ) ) ; return snapshot ; }

Target:
public org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeSnapshotEntity getById ( org.ovirt.engine.core.compat.Guid id ) { return getCallsHandler ( ) . executeRead ( "GetGlusterVolumeSnapshotById" , org.ovirt.engine.core.dao.gluster.GlusterVolumeSnapshotDaoImpl.snapshotRowMapper , createSnapshotIdParams ( id ) ) ; }
Source:
public boolean Validate ( ) { return super . Validate ( ) ; }

Target:
public boolean validate ( ) { return super . validate ( ) ; }
Source:
public void removeForExistingVds ( ) { org.ovirt.engine.core.compat.Guid vdsId = new org.ovirt.engine.core.compat.Guid ( "11111111-1111-1111-1111-111111111112" ) ; dbFacade.getVdsKdumpStatusDao ( ) . remove ( vdsId ) ; org.ovirt.engine.core.common.businessentities.VdsKdumpStatus found = dbFacade.getVdsKdumpStatusDao ( ) . get ( vdsId ) ; org.junit.Assert.assertNull ( found ) ; }

Target:
public void removeForExistingVds ( ) { org.ovirt.engine.core.compat.Guid vdsId = new org.ovirt.engine.core.compat.Guid ( "11111111-1111-1111-1111-111111111112" ) ; dao.remove ( vdsId ) ; org.ovirt.engine.core.common.businessentities.VdsKdumpStatus found = dao.get ( vdsId ) ; org.junit.Assert.assertNull ( found ) ; }
Source:
void loadFromLocalStorage ( org.ovirt.engine.ui.uicommonweb.models.HasConsoleModel model , org.ovirt.engine.ui.uicommonweb.ConsoleOptionsFrontendPersister.ConsoleContext context ) ;

Target:
void loadFromLocalStorage ( org.ovirt.engine.ui.uicommonweb.models.HasConsoleModel model ) ;
Source:
private void updateProperties ( ) { org.ovirt.engine.core.common.businessentities.aaa.DbUser user = ( ( org.ovirt.engine.core.common.businessentities.aaa.DbUser ) ( getEntity ( ) ) ) ; setDomain ( user.getDomain ( ) ) ; setEmail ( user.getEmail ( ) ) ; setActive ( user.isActive ( ) ) ; }

Target:
private void updateProperties ( ) { org.ovirt.engine.core.common.businessentities.aaa.DbUser user = getEntity ( ) ; setDomain ( user.getDomain ( ) ) ; setEmail ( user.getEmail ( ) ) ; }
Source:
public void hideAndUnbind ( ) { super . hideAndUnbind ( ) ; org.ovirt.engine.ui.common.presenter.AbstractModelBoundPopupPresenterWidget.getView ( ) . cleanup ( ) ; this . model.cleanup ( ) ; this . model = null ; }

Target:
public void hideAndUnbind ( ) { super . hideAndUnbind ( ) ; org.ovirt.engine.ui.common.presenter.AbstractModelBoundPopupPresenterWidget.getView ( ) . cleanup ( ) ; if ( ( this . model ) != null ) { this . model.cleanup ( ) ; this . model = null ; } }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel model ) { org.ovirt.engine.ui.webadmin.section.main.view.popup.cluster.ClusterNetworkPopupView.Driver.driver.edit ( model ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel object ) { org.ovirt.engine.ui.webadmin.section.main.view.popup.cluster.ClusterNetworkPopupView.Driver.driver.edit ( object ) ; }
Source:
public void testForValue ( ) { org.junit.Assert.assertEquals ( "wrong value" , org.ovirt.engine.core.common.queries.VdcQueryType.forValue ( VdcQueryType.GetAgentFenceOptions.getValue ( ) ) , VdcQueryType.GetAgentFenceOptions ) ; }

Target:
public void testForValue ( ) { org.junit.Assert.assertEquals ( "wrong value" , VdcQueryType.GetAgentFenceOptions , org.ovirt.engine.core.common.queries.VdcQueryType.forValue ( VdcQueryType.GetAgentFenceOptions.getValue ( ) ) ) ; }
Source:
public void clusterAlreadyInLocalFs ( ) { prepareManagementNetworkMocks ( ) ; createCommandWithDefaultCluster ( ) ; oldGroupIsDetachedDefault ( ) ; storagePoolIsLocalFS ( ) ; setupCpu ( ) ; allQueriesForVms ( ) ; storagePoolAlreadyHasCluster ( ) ; architectureIsUpdatable ( ) ; validateFailedWithReason ( EngineMessage.CLUSTER_CANNOT_ADD_MORE_THEN_ONE_HOST_TO_LOCAL_STORAGE ) ; }

Target:
public void clusterAlreadyInLocalFs ( ) { prepareManagementNetworkMocks ( ) ; createCommandWithDefaultCluster ( ) ; oldGroupIsDetachedDefault ( ) ; storagePoolIsLocalFS ( ) ; setupCpu ( ) ; storagePoolAlreadyHasCluster ( ) ; architectureIsUpdatable ( ) ; validateFailedWithReason ( EngineMessage.CLUSTER_CANNOT_ADD_MORE_THEN_ONE_HOST_TO_LOCAL_STORAGE ) ; }
Source:
public java.lang.String getSysprepPath ( int osId , org.ovirt.engine.core.compat.Version version ) ;

Target:
java.lang.String getSysprepPath ( int osId , org.ovirt.engine.core.compat.Version version ) ;
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.core.common.businessentities.StoragePool dc ) { java.lang.String tooltipContent = org.ovirt.engine.ui.uicompat.EnumTranslator.getInstance ( ) . translate ( dc.getStatus ( ) ) ; return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromString ( tooltipContent ) ; }

Target:
public java.lang.String getTooltip ( org.ovirt.engine.core.common.businessentities.StoragePool dc ) { java.lang.String tooltipContent = org.ovirt.engine.ui.uicompat.EnumTranslator.getInstance ( ) . translate ( dc.getStatus ( ) ) ; return tooltipContent ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( ) { return org.ovirt.engine.ui.webadmin.section.main.view.popup.host.VfsConfigPopupView.templates.textForCheckBoxHeader ( org.ovirt.engine.ui.webadmin.section.main.view.popup.host.VfsConfigPopupView.constants.attachAll ( ) ) ; }

Target:
public java.lang.String getTooltip ( ) { return org.ovirt.engine.ui.webadmin.section.main.view.popup.host.VfsConfigPopupView.constants.attachAll ( ) ; }
Source:
private void initVds ( ) { vds = new org.ovirt.engine.core.common.businessentities.VDS ( ) ; vds.setId ( new org.ovirt.engine.core.compat.Guid ( "00000000-0000-0000-0000-000000000012" ) ) ; }

Target:
public void initVds ( ) { org.mockito.Mockito.when ( vds.getId ( ) ) . thenReturn ( new org.ovirt.engine.core.compat.Guid ( "00000000-0000-0000-0000-000000000012" ) ) ; }
Source:
public org.ovirt.engine.api.model.HostNIC get ( ) { return parent.lookupNic ( id ) ; }

Target:
public org.ovirt.engine.api.model.HostNIC get ( ) { return parent.lookupNic ( id , false ) ; }
Source:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { return org.ovirt.engine.core.bll.AddQuotaCommand.getSucceeded ( ) ? org.ovirt.engine.core.common.AuditLogType.USER_ADD_QUOTA : org.ovirt.engine.core.common.AuditLogType.USER_FAILED_ADD_QUOTA ; }

Target:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { return getSucceeded ( ) ? org.ovirt.engine.core.common.AuditLogType.USER_ADD_QUOTA : org.ovirt.engine.core.common.AuditLogType.USER_FAILED_ADD_QUOTA ; }
Source:
protected void updateDataProvider ( java.util.List < org.ovirt.engine.core.common.businessentities.Bookmark > items ) { super . updateDataProvider ( items ) ; clearSelection ( ) ; }

Target:
protected void updateDataProvider ( java.util.List < org.ovirt.engine.core.common.businessentities.Bookmark > items ) { super . updateDataProvider ( items ) ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.compat.Guid secretUuid = getParameters ( ) . getLibvirtSecret ( ) . getId ( ) ; addCustomValue ( "LibvirtSecretUUID" , secretUuid.toString ( ) ) ; getReturnValue ( ) . setActionReturnValue ( secretUuid ) ; }

Target:
protected void executeCommand ( ) { getReturnValue ( ) . setActionReturnValue ( getParameters ( ) . getLibvirtSecret ( ) . getId ( ) ) ; }
Source:
public void testValidateNoUniqueId ( ) { validator = mockHostForUniqueId ( StringUtils.EMPTY ) ; org.junit.Assert.assertThat ( validator.validateUniqueId ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.VDS_NO_UUID ) ) ; }

Target:
public void testValidateNoUniqueId ( ) { mockHostForUniqueId ( StringUtils.EMPTY ) ; org.junit.Assert.assertThat ( validator.validateUniqueId ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.VDS_NO_UUID ) ) ; }
Source:
public void initialize ( org.ovirt.engine.ui.uicommonweb.models.SystemTreeItemModel systemTreeSelectedItem ) { super . initialize ( systemTreeSelectedItem ) ; getModel ( ) . setIsCustomPropertiesTabAvailable ( false ) ; }

Target:
public void initialize ( ) { super . initialize ( ) ; getModel ( ) . setIsCustomPropertiesTabAvailable ( false ) ; }
Source:
public void testGetWithPermissionsPrivilegedUser ( ) { org.ovirt.engine.core.common.businessentities.storage_domains result = dao.get ( existingDomain.getId ( ) , org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , true ) ; assertGetResult ( result ) ; }

Target:
public void testGetWithPermissionsPrivilegedUser ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain result = dao.get ( existingDomain.getId ( ) , org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , true ) ; assertGetResult ( result ) ; }
Source:
protected org.ovirt.engine.api.model.VM getVmPreview ( org.ovirt.engine.api.model.Snapshot snapshot ) { org.ovirt.engine.api.model.VM vm = getEntity ( org.ovirt.engine.api.model.VM.class , VdcQueryType.GetVmConfigurationBySnapshot , new org.ovirt.engine.core.common.queries.GetVmConfigurationBySnapshotQueryParams ( asGuid ( snapshot.getId ( ) ) ) , null ) ; return vm ; }

Target:
protected org.ovirt.engine.api.model.VM getVmPreview ( org.ovirt.engine.api.model.Snapshot snapshot ) { org.ovirt.engine.api.model.VM vm = getEntity ( org.ovirt.engine.api.model.VM.class , VdcQueryType.GetVmConfigurationBySnapshot , new org.ovirt.engine.core.common.queries.IdQueryParameters ( asGuid ( snapshot.getId ( ) ) ) , null ) ; return vm ; }
Source:
public org.ovirt.engine.api.resource.WatchdogsResource getWatchdogsResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendWatchdogsResource ( guid , org.ovirt.engine.core.common.queries.VdcQueryType.GetWatchdog , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ) ; }

Target:
public org.ovirt.engine.api.resource.WatchdogsResource getWatchdogsResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendWatchdogsResource ( true , guid , org.ovirt.engine.core.common.queries.VdcQueryType.GetWatchdog , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.ExternalComputeResource > getComputeResources ( ) { org.apache.commons.httpclient.HttpMethod method = new org.apache.commons.httpclient.methods.GetMethod ( org.ovirt.engine.core.bll.host.provider.foreman.ForemanHostProviderProxy.COMPUTE_RESOURCES_HOSTS_ENTRY_POINT ) ; return runComputeResourceMethod ( method ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.ExternalComputeResource > getComputeResources ( ) { return runComputeResourceMethod ( org.ovirt.engine.core.bll.host.provider.foreman.ForemanHostProviderProxy.COMPUTE_RESOURCES_HOSTS_ENTRY_POINT ) ; }
Source:
public org.ovirt.engine.api.resource.DiskResource getDeviceSubResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendStorageDomainDiskResource ( id , this . storageDomainId.toString ( ) ) ) ; }

Target:
public org.ovirt.engine.api.resource.DiskResource getDeviceSubResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendStorageDomainDiskResource ( id , this ) ) ; }