auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void AttachStorage ( ) { AttachInternal ( StorageDomainType.Data , org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) . attachStorageTitle ( ) , "attach_storage" ) ; }

Target:
public void attachStorage ( ) { attachInternal ( StorageDomainType.Data , org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) . attachStorageTitle ( ) , "attach_storage" ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.storage.RepoImage > getUserRequestForStorageDomainRepoFileList ( org.ovirt.engine.core.compat.Guid storageDomainId , org.ovirt.engine.core.common.businessentities.storage.ImageFileType imageType , boolean forceRefresh ) { if ( ! ( isStorageDomainValid ( storageDomainId , imageType , forceRefresh ) ) ) { throw new org.ovirt.engine.core.common.errors.VdcBLLException ( org.ovirt.engine.core.common.errors.VdcBllErrors.GetIsoListError ) ; } return getCachedIsoListByDomainId ( storageDomainId , imageType ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.storage.RepoImage > getUserRequestForStorageDomainRepoFileList ( org.ovirt.engine.core.compat.Guid storageDomainId , org.ovirt.engine.core.common.businessentities.storage.ImageFileType imageType , boolean forceRefresh ) { if ( ! ( isStorageDomainValid ( storageDomainId , imageType , forceRefresh ) ) ) { throw new org.ovirt.engine.core.common.errors.EngineException ( org.ovirt.engine.core.common.errors.EngineError.GetIsoListError ) ; } return getCachedIsoListByDomainId ( storageDomainId , imageType ) ; }
Source:
public void setRunOnce ( boolean value ) { runOnce = value ; }

Target:
public void setCpuShares ( int value ) { this . vmStatic.setCpuShares ( value ) ; }
Source:
public boolean DisconnectStorageFromLunByVdsId ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain , org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.common.businessentities.LUNs lun ) { return RunConnectionStorageToDomain ( storageDomain , vdsId , VDSCommandType.DisconnectStorageServer.getValue ( ) , lun , Guid.Empty ) ; }

Target:
public boolean DisconnectStorageFromLunByVdsId ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain , org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.common.businessentities.LUNs lun ) { return runConnectionStorageToDomain ( storageDomain , vdsId , VDSCommandType.DisconnectStorageServer.getValue ( ) , lun , Guid.Empty ) ; }
Source:
public void setPrincipalRecord ( java.lang.String engineSessionId , org.ovirt.engine.api.extensions.ExtMap principalRecord ) { setData ( engineSessionId , org.ovirt.engine.core.bll.aaa.SessionDataContainer.PRINCIPAL_RECORD_PARAMETER_NAME , principalRecord ) ; }

Target:
public void setSsoAccessToken ( java.lang.String engineSessionId , java.lang.String ssoToken ) { setData ( engineSessionId , org.ovirt.engine.core.bll.aaa.SessionDataContainer.SSO_ACCESS_TOKEN_PARAMETER_NAME , ssoToken ) ; }
Source:
public void testSaveDetails ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSessionDetails sessionDetails = getGlusterGeoRepSessionDetails ( ) ; dao.saveDetails ( sessionDetails ) ; java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSessionDetails > fetchedSessionDetails = dao.getGeoRepSessionDetails ( FixturesTool.GLUSTER_GEOREP_SESSION_ID ) ; org.junit.Assert.assertEquals ( sessionDetails , fetchedSessionDetails.get ( 0 ) ) ; }

Target:
public void testSaveDetails ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSessionDetails sessionDetails = getGlusterGeoRepSessionDetails ( ) ; dao.saveDetails ( sessionDetails ) ; java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSessionDetails > fetchedSessionDetails = dao.getGeoRepSessionDetails ( FixturesTool.GLUSTER_GEOREP_SESSION_ID ) ; org.junit.jupiter.api.Assertions.assertEquals ( sessionDetails , fetchedSessionDetails.get ( 0 ) ) ; }
Source:
public void listOfMigrationPoliciesIsValid ( ) { org.junit.Assert.assertEquals ( helper.validate ( null , "[{\"id\":{\"uuid\":\"80554327-0569-496b-bdeb-fcbbf52b827b\"},\"maxMigrations\":2,\"name\":\"Safe but not may not converge\",\"description\":\"A safe policy which in typical situations lets the VM converge. The user of the VM should not notice any significant slowdown of the VM. If the VM is not converging for a longer time, the migration will be aborted.\",\"config\":{\"convergenceItems\":[{\"stallingLimit\":1,\"convergenceItem\":{\"action\":\"setDowntime\",\"params\":[\"150\"]}},{\"stallingLimit\":2,\"convergenceItem\":{\"action\":\"setDowntime\",\"params\":[\"200\"]}},{\"stallingLimit\":3,\"convergenceItem\":{\"action\":\"setDowntime\",\"params\":[\"300\"]}},{\"stallingLimit\":4,\"convergenceItem\":{\"action\":\"setDowntime\",\"params\":[\"400\"]}},{\"stallingLimit\":6,\"convergenceItem\":{\"action\":\"setDowntime\",\"params\":[\"500\"]}}],\"initialItems\":[{\"action\":\"setDowntime\",\"params\":[\"100\"]}],\"lastItems\":[{\"action\":\"abort\",\"params\":[]}]}},{\"id\":{\"uuid\":\"80554327-0569-496b-bdeb-fcbbf52b827c\"},\"maxMigrations\":1,\"name\":\"Should converge but guest may notice a pause\",\"description\":\"A safe policy which makes also a highly loaded VM converge in most situations. On the other hand, the user may notice a slowdown. If the VM is still not converging, the migration is aborted.\",\"config\":{\"convergenceItems\":[{\"stallingLimit\":1,\"convergenceItem\":{\"action\":\"setDowntime\",\"params\":[\"150\"]}},{\"stallingLimit\":2,\"convergenceItem\":{\"action\":\"setDowntime\",\"params\":[\"200\"]}},{\"stallingLimit\":3,\"convergenceItem\":{\"action\":\"setDowntime\",\"params\":[\"300\"]}},{\"stallingLimit\":4,\"convergenceItem\":{\"action\":\"setDowntime\",\"params\":[\"400\"]}},{\"stallingLimit\":6,\"convergenceItem\":{\"action\":\"setDowntime\",\"params\":[\"500\"]}}],\"initialItems\":[{\"action\":\"setDowntime\",\"params\":[\"100\"]}],\"lastItems\":[{\"action\":\"setDowntime\",\"params\":[\"5000\"]},{\"action\":\"abort\",\"params\":[]}]}}]" ) . isOk ( ) , true ) ; }

Target:
public void listOfMigrationPoliciesIsValid ( ) { org.junit.Assert.assertEquals ( helper.validate ( null , helper.getExamplePolicy ( ) ) . isOk ( ) , true ) ; }
Source:
public void setdisplay_secure_port ( java.lang.Integer value ) { this . mVmDynamic.setdisplay_secure_port ( value ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.BootSequence getBootSequence ( ) { return this . vmDynamic.getboot_sequence ( ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( externalId , providerId ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( externalId , providerId , physicalNetworkId ) ; }
Source:
public void setHardwareSerialNumber ( java.lang.String value ) { this . mVdsDynamic.setHardwareSerialNumber ( value ) ; }

Target:
public void setHardwareUUID ( java.lang.String value ) { vdsDynamic.setHardwareUUID ( value ) ; }
Source:
public void forceAddMac ( java.lang.String mac ) { macPool.forceAddMac ( mac ) ; }

Target:
public java.util.List < java.lang.String > addMacs ( java.util.List < java.lang.String > macs ) { return macPool.addMacs ( macs ) ; }
Source:
public void externalNetworkIsNotNewInDataCenter ( ) { externalNetworkNewInDataCenterTestSetup ( true ) ; org.junit.Assert.assertThat ( validator.externalNetworkNewInDataCenter ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_EXTERNAL_NETWORK_ALREADY_EXISTS ) ) ; }

Target:
public void externalNetworkIsNotNewInDataCenter ( ) { externalNetworkNewInDataCenterTestSetup ( true ) ; org.hamcrest.MatcherAssert.assertThat ( validator.externalNetworkNewInDataCenter ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_EXTERNAL_NETWORK_ALREADY_EXISTS ) ) ; }
Source:
protected static org.ovirt.engine.api.restapi.resource.BackendVmNicsResource getCollection ( ) { return new org.ovirt.engine.api.restapi.resource.BackendVmNicsResource ( org.ovirt.engine.api.restapi.resource.AbstractBackendNicsResourceTest.PARENT_ID ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface setUpEntityExpectations ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface entity , org.ovirt.engine.core.common.businessentities.network.VmNetworkStatistics statistics , int index ) { return setUpEntityExpectations ( entity , statistics , index , NAMES [ 2 ] ) ; }
Source:
private void verifyActionResponse ( javax.ws.rs.core.Response r ) throws java.lang.Exception { verifyActionResponse ( r , ( "/disks/" + ( org.ovirt.engine.api.restapi.resource.AbstractBackendDisksResourceTest.PARENT_ID ) ) , false ) ; }

Target:
private void verifyActionResponse ( javax.ws.rs.core.Response r ) throws java.lang.Exception { verifyActionResponse ( r , ( "/disks/" + ( org.ovirt.engine.api.restapi.resource.BackendStorageDomainDiskResourceTest.DISK_ID ) ) , false ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.ServerCpu > getServerCpuList ( org.ovirt.engine.api.model.Version version ) { return org.ovirt.engine.api.restapi.util.ServerCpuParser.parseCpus ( getConfigurationValue ( java.lang.String.class , ConfigurationValues.ServerCPUList , version ) ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.ServerCpu > getServerCpuList ( org.ovirt.engine.api.model.Version version ) { return getEntity ( java.util.List.class , VdcQueryType.GetAllServerCpuList , new org.ovirt.engine.core.common.queries.GetAllServerCpuListParameters ( new org.ovirt.engine.api.model.Version ( asString ( version ) ) ) , "List<ServerCpu>" ) ; }
Source:
protected org.ovirt.engine.core.bll.utils.GlusterGeoRepUtil getGeoRepUtilInstance ( ) { return org.ovirt.engine.core.bll.utils.Injector.get ( org.ovirt.engine.core.bll.utils.GlusterGeoRepUtil.class ) ; }

Target:
protected org.ovirt.engine.core.bll.utils.GlusterGeoRepUtil getGeoRepUtilInstance ( ) { return org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.bll.utils.GlusterGeoRepUtil.class ) ; }
Source:
public void shouldNotElectActiveHostedEngineDomain ( ) { prepareStorageDomainForElection ( StorageDomainStatus.Active , org.ovirt.engine.core.bll.storage.domain.StorageDomainCommandBaseTest.HE_STORAGE_DOMAIN_NAME ) ; org.mockito.Mockito.when ( hostedEngineHelper.isHostedEngineStorageDomain ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.StorageDomain.class ) ) ) . thenReturn ( true ) ; org.junit.Assert.assertNull ( cmd.electNewMaster ( ) ) ; }

Target:
public void shouldNotElectUnknownHostedEngineDomain ( ) { prepareStorageDomainForElection ( StorageDomainStatus.Unknown , org.ovirt.engine.core.bll.storage.domain.StorageDomainCommandBaseTest.HE_STORAGE_DOMAIN_NAME , true ) ; org.junit.Assert.assertNull ( cmd.electNewMaster ( ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { allNetworks = ( ( java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > ) ( returnValue ) ) ; initNetworkModels ( ) ; initDcNetworkParams ( ) ; queryInterfaces ( ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { getConnectivityTimeout ( ) . setEntity ( ( ( java.lang.Integer ) ( returnValue ) ) ) ; postOnSetupNetworks ( ) ; }
Source:
public void testDeleteByPoolvds_spm_id_map ( ) { dao.removeByVdsAndStoragePool ( existingVdsSpmIdMap.getId ( ) , existingVdsSpmIdMap.getstorage_pool_id ( ) ) ; org.ovirt.engine.core.common.businessentities.vds_spm_id_map result = dao.get ( existingVdsSpmIdMap.getId ( ) ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testDeleteByPoolvds_spm_id_map ( ) { dao.removeByVdsAndStoragePool ( existingVdsSpmIdMap.getId ( ) , existingVdsSpmIdMap.getStoragePoolId ( ) ) ; org.ovirt.engine.core.common.businessentities.VdsSpmIdMap result = dao.get ( existingVdsSpmIdMap.getId ( ) ) ; org.junit.Assert.assertNull ( result ) ; }
Source:
public void NameTaken ( ) { qos.setName ( "foo" ) ; nameNotChangedOrNotTakenTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_QOS_NAME_EXIST ) ) ; }

Target:
public void nameTaken ( ) { qos.setName ( "foo" ) ; nameNotChangedOrNotTakenTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_QOS_NAME_EXIST ) ) ; }
Source:
public org.ovirt.engine.api.resource.VmNicResource getNicResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendVmNicResource ( parentId , id , this , updateType , getUpdateParametersProvider ( ) , getRequiredUpdateFields ( ) , subCollections ) ) ; }

Target:
protected org.ovirt.engine.api.model.Nic addParents ( org.ovirt.engine.api.model.Nic nic ) { org.ovirt.engine.api.model.Vm vm = new org.ovirt.engine.api.model.Vm ( ) ; vm.setId ( vmId.toString ( ) ) ; nic.setVm ( vm ) ; return nic ; }
Source:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand ) { actionButtonInterface.onClick ( ) . invoke ( org.ovirt.engine.ui.webadmin.plugin.entity.EntityObject.arrayFrom ( table.getSelectedItems ( ) ) , null ) ; }

Target:
public void onClick ( java.util.List < T > selectedItems ) { actionButtonInterface.onClick ( ) . invoke ( org.ovirt.engine.ui.webadmin.plugin.entity.EntityObject.arrayFrom ( selectedItems ) , null ) ; }
Source:
public void testAttachVmToTag ( ) { dao.attachVmToTag ( newVmTag ) ; org.ovirt.engine.core.common.businessentities.TagsVmMap result = dao.getTagVmByTagIdAndByVmId ( newVmTag.getTagId ( ) , newVmTag.getVmId ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; assertEqualsTagsVmMap ( newVmTag , result ) ; }

Target:
public void testAttachVmToTag ( ) { dao.attachVmToTag ( newVmTag ) ; org.ovirt.engine.core.common.businessentities.TagsVmMap result = dao.getTagVmByTagIdAndByVmId ( newVmTag.getTagId ( ) , newVmTag.getVmId ( ) ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; assertEqualsTagsVmMap ( newVmTag , result ) ; }
Source:
public java.util.Map getOKStatus ( ) { return getStatusMap ( "OK" , 0 ) ; }

Target:
public java.util.Map getOKStatus ( ) { return org.ovirt.vdsmfake.service.AbstractService.getStatusMap ( "OK" , 0 ) ; }
Source:
public java.lang.String render ( java.lang.Number object ) { java.lang.String formattedNumber = super . render ( object ) ; return new org.ovirt.engine.ui.common.widget.renderer.EmptyValueRenderer < java.lang.String > ( org.ovirt.engine.ui.webadmin.gin.ClientGinjectorProvider.instance ( ) . getApplicationConstants ( ) . unAvailablePropertyLabel ( ) ) . render ( formattedNumber ) ; }

Target:
public java.lang.String render ( java.lang.Number object ) { java.lang.String formattedNumber = super . render ( object ) ; return new org.ovirt.engine.ui.common.widget.renderer.EmptyValueRenderer < java.lang.String > ( nullString ) . render ( formattedNumber ) ; }
Source:
public int getNumOfCpus ( ) { return ( ( this . getCpuPerSocket ( ) ) * ( this . getNumOfSockets ( ) ) ) * ( this . getThreadsPerCpu ( ) ) ; }

Target:
public int getNumOfCpus ( boolean countThreadsAsCPU ) { return ( ( this . getCpuPerSocket ( ) ) * ( this . getNumOfSockets ( ) ) ) * ( countThreadsAsCPU ? this . getThreadsPerCpu ( ) : 1 ) ; }
Source:
private void mockNullVm ( ) { org.mockito.Mockito.when ( vmDao.get ( command.getParameters ( ) . getVmId ( ) ) ) . thenReturn ( null ) ; createVirtIODisk ( ) ; }

Target:
protected org.ovirt.engine.core.common.action.VmDiskOperationParameterBase createParameters ( ) { return new org.ovirt.engine.core.common.action.VmDiskOperationParameterBase ( diskVmElement ) ; }
Source:
public org.ovirt.engine.api.resource.VmGraphicsConsolesResource getVmGraphicsConsolesResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendVmGraphicsConsolesResource ( guid ) ) ; }

Target:
public org.ovirt.engine.api.resource.GraphicsConsolesResource getGraphicsConsolesResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendTemplateGraphicsConsolesResource ( guid ) ) ; }
Source:
public void updateStatus ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.common.businessentities.VDSStatus status ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "vds_guid" , id ) . addValue ( "status" , status ) ; getCallsHandler ( ) . executeModification ( "UpdateVdsDynamicStatus" , parameterSource ) ; }

Target:
private org.springframework.jdbc.core.namedparam.MapSqlParameterSource getStatusSqlParameterSource ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.common.businessentities.VDSStatus status ) { return getCustomMapSqlParameterSource ( ) . addValue ( "vds_guid" , id ) . addValue ( "status" , status ) ; }
Source:
protected java.lang.String getErrorMessage ( java.lang.String msg ) { return org.apache.commons.lang.StringUtils.isEmpty ( msg ) ? org.ovirt.engine.core.bll.VdsCommand.GENERIC_ERROR : msg ; }

Target:
protected java.lang.String getErrorMessage ( java.lang.String msg ) { return ! ( org.apache.commons.lang.StringUtils.isEmpty ( msg ) ) ? msg : java.lang.String.format ( "Please refer to %1$s/engine.log and log logs under %1$s/ovirt-engine/host-deploy/ for further details." , org.ovirt.engine.core.utils.EngineLocalConfig.getInstance ( ) . getLogDir ( ) ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.utils.vmproperties.VmPropertiesUtils.ValidationError > validateCustomProperties ( org.ovirt.engine.core.common.businessentities.VmStatic vmStaticFromParams ) { return org.ovirt.engine.core.utils.vmproperties.VmPropertiesUtils.getInstance ( ) . validateVMProperties ( org.ovirt.engine.core.bll.VmCommand.getVdsGroup ( ) . getcompatibility_version ( ) , vmStaticFromParams ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.utils.customprop.CustomPropertiesUtils.ValidationError > validateCustomProperties ( org.ovirt.engine.core.common.businessentities.VmStatic vmStaticFromParams ) { return org.ovirt.engine.core.utils.customprop.VmPropertiesUtils.getInstance ( ) . validateVMProperties ( org.ovirt.engine.core.bll.VmCommand.getVdsGroup ( ) . getcompatibility_version ( ) , vmStaticFromParams ) ; }
Source:
public void canDoAction_emptyAffinityGroup ( ) { affinityGroup.setEntityIds ( null ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionSuccess ( command ) ; }

Target:
public void validate_emptyAffinityGroup ( ) { affinityGroup.setEntityIds ( null ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( command ) ; }
Source:
public void setPrincipal ( java.lang.String sessionId , java.lang.String principal ) { setData ( sessionId , org.ovirt.engine.core.bll.aaa.SessionDataContainer.PRINCIPAL_PARAMETER_NAME , principal ) ; }

Target:
public boolean getSessionValid ( java.lang.String sessionId , boolean refresh ) { java.lang.Object obj = getData ( sessionId , org.ovirt.engine.core.bll.aaa.SessionDataContainer.SESSION_VALID_PARAMETER_NAME , refresh ) ; return obj == null ? false : ( ( boolean ) ( obj ) ) ; }
Source:
protected void removeVmStatic ( boolean removePermissions ) { vmStaticDao.remove ( org.ovirt.engine.core.bll.VmCommand.getVmId ( ) , removePermissions ) ; }

Target:
protected void removeVmUsers ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.TagsVmMap > all = tagDao.getTagVmMapByVmIdAndDefaultTag ( org.ovirt.engine.core.bll.VmCommand.getVmId ( ) ) ; for ( org.ovirt.engine.core.common.businessentities.TagsVmMap tagVm : all ) { tagDao.detachVmFromTag ( tagVm.getTagId ( ) , org.ovirt.engine.core.bll.VmCommand.getVmId ( ) ) ; } }
Source:
public void validateVmMemoryCantRunOnVdsNotEnoughMem ( ) { vm.setMinAllocatedMem ( 10000 ) ; vm.setVmMemSizeMb ( 10000 ) ; boolean vmPassedMemoryRequirement = org.ovirt.engine.core.bll.scheduling.SlaValidator.getInstance ( ) . hasOvercommitMemoryToRunVM ( vds , vm ) ; org.junit.Assert.assertEquals ( vmPassedMemoryRequirement , false ) ; }

Target:
public void validateVmMemoryCantRunOnVdsNotEnoughMem ( ) { vm.setMinAllocatedMem ( 10000 ) ; vm.setVmMemSizeMb ( 10000 ) ; boolean vmPassedMemoryRequirement = org.ovirt.engine.core.bll.scheduling.SlaValidator.getInstance ( ) . hasOvercommitMemoryToRunVM ( vds , vm ) ; org.junit.Assert.assertFalse ( vmPassedMemoryRequirement ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.PrepareImageReturnForXmlRpc prepareImage ( java.lang.String spID , java.lang.String sdID , java.lang.String imageID , java.lang.String volumeID ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.PrepareImageReturnForXmlRpc prepareImage ( java.lang.String spID , java.lang.String sdID , java.lang.String imageID , java.lang.String volumeID , boolean allowIllegal ) ;
Source:
protected void executeQueryCommand ( ) { setReturnValue ( org.ovirt.engine.core.bll.storage.disk.cinder.GetLibvirtSecretByIdQuery.getDbFacade ( ) . getLibvirtSecretDao ( ) . get ( org.ovirt.engine.core.bll.storage.disk.cinder.GetLibvirtSecretByIdQuery.getParameters ( ) . getId ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { setReturnValue ( libvirtSecretDao.get ( org.ovirt.engine.core.bll.storage.disk.cinder.GetLibvirtSecretByIdQuery.getParameters ( ) . getId ( ) ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object result ) { org.ovirt.engine.ui.uicommonweb.models.vms.RunOnceModel runOnceModel = new org.ovirt.engine.ui.uicommonweb.models.vms.UserPortalRunOnceModel ( ( ( org.ovirt.engine.core.common.businessentities.VM ) ( result ) ) , this ) ; setWindow ( runOnceModel ) ; runOnceModel.init ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { stopProgress ( result.getState ( ) ) ; cancel ( ) ; }
Source:
protected void incrementDbGeneration ( ) { org.ovirt.engine.core.bll.MoveOrCopyTemplateCommand.getVmStaticDAO ( ) . incrementDbGeneration ( org.ovirt.engine.core.bll.MoveOrCopyTemplateCommand.getVmTemplate ( ) . getId ( ) ) ; }

Target:
protected void incrementDbGeneration ( ) { org.ovirt.engine.core.bll.MoveOrCopyTemplateCommand.getVmStaticDao ( ) . incrementDbGeneration ( org.ovirt.engine.core.bll.MoveOrCopyTemplateCommand.getVmTemplate ( ) . getId ( ) ) ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { result = org.ovirt.engine.core.vdsbroker.gluster.GetGlusterVolumeOptionsInfoVDSCommand.getBroker ( ) . glusterVolumeSetOptionsList ( ) ; org.ovirt.engine.core.vdsbroker.gluster.GetGlusterVolumeOptionsInfoVDSCommand.proceedProxyReturnValue ( ) ; setReturnValue ( result.optionsHelpSet ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { result = org.ovirt.engine.core.vdsbroker.gluster.GetGlusterVolumeOptionsInfoVDSCommand.getBroker ( ) . glusterVolumeSetOptionsList ( ) ; org.ovirt.engine.core.vdsbroker.gluster.GetGlusterVolumeOptionsInfoVDSCommand.proceedProxyReturnValue ( ) ; setReturnValue ( result.optionsHelpSet ) ; }
Source:
public void testTooBigRange ( ) { new org.ovirt.engine.core.bll.network.macpool.Range ( 0 , java.lang.Integer.MAX_VALUE ) ; }

Target:
public void testTooBigRange ( ) { org.junit.jupiter.api.Assertions.assertThrows ( java.lang.IllegalArgumentException.class , ( ) -> new org.ovirt.engine.core.bll.network.macpool.Range ( 0 , Integer.MAX_VALUE ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getFiltered ( java.lang.String filter ) { java.lang.String url = ( org.ovirt.engine.core.bll.host.provider.foreman.ForemanHostProviderProxy.HOSTS_ENTRY_POINT ) + ( java.lang.String.format ( org.ovirt.engine.core.bll.host.provider.foreman.ForemanHostProviderProxy.SEARCH_QUERY_FORMAT , filter ) ) ; org.apache.commons.httpclient.HttpMethod method = new org.apache.commons.httpclient.methods.GetMethod ( url ) ; return runHostListMethod ( 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:
private org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSessionConfiguration getGlusterGeoRepSessionConfig ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSessionConfiguration sessionConfig = new org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSessionConfiguration ( ) ; sessionConfig.setId ( FixturesTool.GLUSTER_GEOREP_SESSION_ID ) ; sessionConfig.setKey ( "georep-crawl" ) ; sessionConfig.setDescription ( "Geo-replication session crawl" ) ; sessionConfig.setValue ( "changelog" ) ; return sessionConfig ; }

Target:
private org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSessionConfiguration getGlusterGeoRepSessionConfig ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSessionConfiguration sessionConfig = new org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSessionConfiguration ( ) ; sessionConfig.setId ( FixturesTool.GLUSTER_GEOREP_SESSION_ID ) ; sessionConfig.setKey ( org.ovirt.engine.core.dao.gluster.GlusterGeoRepDaoTest.GEOREP_CONFIG_CRAWL ) ; sessionConfig.setDescription ( "Geo-replication session crawl" ) ; sessionConfig.setValue ( "changelog" ) ; return sessionConfig ; }
Source:
public void testGetAllByVMTemplateNameUnprivilegedUserFiltering ( ) { org.ovirt.engine.core.dao.AuditLogDAOTest.assertGetByNameInvalidResults ( dao.getAllByVMTemplateName ( org.ovirt.engine.core.dao.AuditLogDAOTest.VM_TEMPLATE_NAME , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ) ; }

Target:
public void testGetAllByVMTemplateIdUnprivilegedUserFiltering ( ) { org.ovirt.engine.core.dao.AuditLogDAOTest.assertGetByNameInvalidResults ( dao.getAllByVMTemplateId ( org.ovirt.engine.core.dao.AuditLogDAOTest.VM_TEMPLATE_ID , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.DisplayType getDisplayType ( ) { org.ovirt.engine.ui.uicommonweb.models.EntityModel < org.ovirt.engine.core.common.businessentities.DisplayType > entityModel = getDisplayProtocol ( ) . getSelectedItem ( ) ; if ( entityModel == null ) { return null ; } return entityModel.getEntity ( ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.DisplayType extractSelectedDisplayTypeEntity ( ) { org.ovirt.engine.ui.uicommonweb.models.EntityModel < org.ovirt.engine.core.common.businessentities.DisplayType > entityModel = getDisplayType ( ) . getSelectedItem ( ) ; if ( entityModel == null ) { return null ; } return entityModel.getEntity ( ) ; }
Source:
public java.lang.Void runInTransaction ( ) { org.ovirt.engine.core.bll.AsyncTaskManager.logAndFailTaskOfCommandWithEmptyVdsmId ( task ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { org.ovirt.engine.core.bll.AsyncTaskManager.logAndFailTaskOfCommandWithEmptyVdsmId ( task , "Engine was restarted before all tasks of the command could be submitted to vdsm." ) ; return null ; }
Source:
private void cancelConfirmation ( ) { setConfirmWindow ( null ) ; }

Target:
protected java.lang.String getAlreadyAssignedClonedNameMessage ( ) { return org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getMessages ( ) . alreadyAssignedClonedVmName ( ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult clusterNetworkNotUsedByBricks ( ) { return networkNotUsed ( org.ovirt.engine.core.bll.network.cluster.DetachNetworkFromClusterInternalCommand.DetachNetworkValidator.getGlusterBrickDao ( ) . getAllByClusterAndNetworkId ( networkCluster.getClusterId ( ) , network.getId ( ) ) , EngineMessage.VAR__ENTITIES__GLUSTER_BRICKS , EngineMessage.VAR__ENTITIES__GLUSTER_BRICK ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult clusterNetworkNotUsedByBricks ( ) { return new org.ovirt.engine.core.bll.network.cluster.PluralMessages ( org.ovirt.engine.core.common.errors.EngineMessage.VAR__ENTITIES__GLUSTER_BRICK , org.ovirt.engine.core.common.errors.EngineMessage.VAR__ENTITIES__GLUSTER_BRICKS ) . getNetworkInUse ( getEntitiesNames ( org.ovirt.engine.core.bll.network.cluster.DetachNetworkFromClusterInternalCommand.DetachNetworkValidator.getGlusterBrickDao ( ) . getAllByClusterAndNetworkId ( networkCluster.getClusterId ( ) , network.getId ( ) ) ) ) ; }
Source:
public org.ovirt.engine.core.sso.utils.AuthResult doAuth ( javax.servlet.http.HttpServletRequest request , javax.servlet.http.HttpServletResponse response ) throws java.lang.Exception { org.ovirt.engine.core.sso.utils.NonInteractiveAuth.log.debug ( "Performing Negotiate Auth" ) ; org.ovirt.engine.core.sso.utils.NegotiateAuthUtils negoAuthUtils = org.ovirt.engine.core.sso.utils.SSOUtils.getSsoContext ( request ) . getNegotiateAuthUtils ( ) ; return negoAuthUtils.doAuth ( request , response ) ; }

Target:
public org.ovirt.engine.core.sso.utils.AuthResult doAuth ( javax.servlet.http.HttpServletRequest request , javax.servlet.http.HttpServletResponse response ) throws java.lang.Exception { org.ovirt.engine.core.sso.utils.NonInteractiveAuth.log.debug ( "Performing Negotiate Auth" ) ; org.ovirt.engine.core.sso.utils.NegotiateAuthUtils negoAuthUtils = org.ovirt.engine.core.sso.utils.SsoUtils.getSsoContext ( request ) . getNegotiateAuthUtils ( ) ; return negoAuthUtils.doAuth ( request , response ) ; }
Source:
public static void setLogLevel ( java.lang.String levelName ) { org.ovirt.engine.core.utils.log.JavaLoggingUtils.OVIRT_LOGGER.setLevel ( org.ovirt.engine.core.utils.log.JavaLoggingUtils.parseLevel ( levelName ) ) ; }

Target:
public static void setLogLevel ( java.lang.String levelName ) { org.ovirt.engine.core.logutils.JavaLoggingUtils.OVIRT_LOGGER.setLevel ( org.ovirt.engine.core.logutils.JavaLoggingUtils.parseLevel ( levelName ) ) ; }
Source:
protected boolean canDoAction ( ) { org.ovirt.engine.core.bll.validator.NetworkValidator validatorNew = new org.ovirt.engine.core.bll.validator.NetworkValidator ( vmDao , getNetwork ( ) ) ; return validate ( validatorNew.networkIsSet ( ) ) ; }

Target:
protected boolean validate ( ) { org.ovirt.engine.core.bll.validator.NetworkValidator validatorNew = new org.ovirt.engine.core.bll.validator.NetworkValidator ( vmDao , getNetwork ( ) ) ; return validate ( validatorNew.networkIsSet ( org.ovirt.engine.core.bll.network.dc.UnlabelNetworkCommand.getParameters ( ) . getNetworkId ( ) ) ) ; }
Source:
public void passwordNotEmpty ( ) { org.junit.Assert.assertThat ( validator.passwordNotEmpty ( false , AuthenticationMethod.Password , org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextString ( 10 ) ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void passwordNotEmpty ( ) { org.hamcrest.MatcherAssert.assertThat ( validator.passwordNotEmpty ( false , AuthenticationMethod.Password , org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextString ( 10 ) ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public boolean validateImagesForRunVm ( java.util.List < java.lang.String > message , java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > vmDisks ) { org.ovirt.engine.core.bll.validator.DiskImagesValidator diskImagesValidator = new org.ovirt.engine.core.bll.validator.DiskImagesValidator ( vmDisks ) ; return validate ( diskImagesValidator.diskImagesNotLocked ( ) , message ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult validateImagesForRunVm ( java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > vmDisks ) { return new org.ovirt.engine.core.bll.validator.DiskImagesValidator ( vmDisks ) . diskImagesNotLocked ( ) ; }
Source:
public void setWarning ( java.lang.String msg ) { if ( ! ( getInfoMessage ( ) . getIsValid ( ) ) ) { return ; } getInfoMessage ( ) . setIsValid ( true ) ; getInfoMessage ( ) . setEntity ( msg ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.String > getProblemDescription ( ) { return problemDescription ; }
Source:
public void testLoginNameAtDirectoryWhenDirectorySet ( ) { org.ovirt.engine.core.common.businessentities.DbUser user = new org.ovirt.engine.core.common.businessentities.DbUser ( ) ; user.setLoginName ( "Legolas" ) ; user.setDomain ( "MiddleEarth.com" ) ; command.setCurrentUser ( user ) ; org.junit.Assert.assertEquals ( command.getConsoleUserName ( ) , "Legolas@MiddleEarth.com" ) ; }

Target:
public void testLoginNameAtDirectoryWhenDirectorySet ( ) { org.ovirt.engine.core.common.businessentities.aaa.DbUser user = new org.ovirt.engine.core.common.businessentities.aaa.DbUser ( ) ; user.setLoginName ( "Legolas" ) ; user.setDomain ( "MiddleEarth.com" ) ; command.setCurrentUser ( user ) ; org.junit.Assert.assertEquals ( command.getConsoleUserName ( ) , "Legolas@MiddleEarth.com" ) ; }
Source:
public void testGetNonExitingKey ( ) { final java.lang.String key = "NonExistignKeyDB" ; org.ovirt.engine.core.config.entity.ConfigKey configKey = org.ovirt.engine.core.config.EngineConfigLogicTest.engineConfigLogic.fetchConfigKey ( key , null ) ; org.junit.Assert.assertTrue ( ( ( configKey == null ) || ( ( configKey.getKey ( ) ) == null ) ) ) ; }

Target:
public void testGetNonExitingKey ( ) { final java.lang.String key = "NonExistignKeyDB" ; org.ovirt.engine.core.config.entity.ConfigKey configKey = org.ovirt.engine.core.config.EngineConfigLogicTest.engineConfigLogic.fetchConfigKey ( key , null ) ; org.junit.jupiter.api.Assertions.assertTrue ( ( ( configKey == null ) || ( ( configKey.getKey ( ) ) == null ) ) ) ; }
Source:
protected boolean runConnectionStorageToDomain ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.compat.Guid vdsId , int type , org.ovirt.engine.core.common.businessentities.LUNs lun , org.ovirt.engine.core.compat.Guid storagePoolId ) { return true ; }

Target:
public boolean syncDomainInfo ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.compat.Guid vdsId ) { return true ; }
Source:
public void Init ( org.ovirt.engine.core.common.businessentities.VDS vds ) { mCurrentVdsId = vds.getId ( ) ; setmIrsPort ( vds.getport ( ) ) ; setmCurrentIrsHost ( vds.gethost_name ( ) ) ; }

Target:
public void Init ( org.ovirt.engine.core.common.businessentities.VDS vds ) { mCurrentVdsId = vds.getId ( ) ; setmIrsPort ( vds.getPort ( ) ) ; privatemCurrentIrsHost = vds.getHostName ( ) ; }
Source:
public void testValidateNameSizeImportAsCloned ( ) { checkTemplateName ( true , ( "0987654321" + ( ( ( ( ( ( ( ( "0987654321" + "0987654321" ) + "0987654321" ) + "0987654321" ) + "0987654321" ) + "0987654321" ) + "0987654321" ) + "0987654321" ) + "0987654321" ) ) ) ; }

Target:
public void testValidateNameSizeImportAsCloned ( ) { checkTemplateName ( true , string100 ) ; }
Source:
public void onError ( java.lang.Throwable t ) { }

Target:
public void onError ( java.lang.Throwable t ) { subscription.request ( 1 ) ; }
Source:
public void setItems ( java.lang.Iterable value ) { consoleModelsCache.updateCache ( value ) ; super . setItems ( value ) ; }

Target:
public void setRebootCommand ( org.ovirt.engine.ui.uicommonweb.UICommand value ) { privateRebootCommand = value ; }
Source:
protected void removeVmStatic ( boolean removePermissions ) { org.ovirt.engine.core.bll.VmCommand.getVmStaticDAO ( ) . remove ( org.ovirt.engine.core.bll.VmCommand.getVmId ( ) , removePermissions ) ; }

Target:
protected void removeVmStatic ( boolean removePermissions ) { org.ovirt.engine.core.bll.VmCommand.getVmStaticDao ( ) . remove ( org.ovirt.engine.core.bll.VmCommand.getVmId ( ) , removePermissions ) ; }
Source:
private static void AddEmptyDataCenterToList ( java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > dataCenters ) { org.ovirt.engine.core.common.businessentities.StoragePool tempVar = new org.ovirt.engine.core.common.businessentities.StoragePool ( ) ; tempVar.setId ( org.ovirt.engine.ui.uicommonweb.models.storage.StorageModel.UnassignedDataCenterId ) ; tempVar.setname ( "(none)" ) ; dataCenters.add ( tempVar ) ; }

Target:
private static void addEmptyDataCenterToList ( java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > dataCenters ) { org.ovirt.engine.core.common.businessentities.StoragePool tempVar = new org.ovirt.engine.core.common.businessentities.StoragePool ( ) ; tempVar.setId ( org.ovirt.engine.ui.uicommonweb.models.storage.StorageModel.UnassignedDataCenterId ) ; tempVar.setname ( "(none)" ) ; dataCenters.add ( tempVar ) ; }
Source:
private void setUpGetEntityExpectations ( ) { setUpEntityQueryExpectations ( VdcQueryType.GetAllDisksByVmId , org.ovirt.engine.core.common.queries.GetAllDisksByVmIdParameters.class , new java.lang.String [ ] { "VmId" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.AbstractBackendDisksResourceTest.PARENT_ID } , getEntityList ( ) ) ; }

Target:
private void setUpGetEntityExpectations ( ) { setUpEntityQueryExpectations ( VdcQueryType.GetAllDisksByVmId , org.ovirt.engine.core.common.queries.GetAllDisksByVmIdParameters.class , new java.lang.String [ ] { "VmId" } , new java.lang.Object [ ] { PARENT_ID } , getEntityList ( ) ) ; }
Source:
public void log ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase auditLogable , org.ovirt.engine.core.common.AuditLogType logType ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( auditLogable , logType ) ; }

Target:
public void log ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase auditLogable , org.ovirt.engine.core.common.AuditLogType logType ) { auditLogDirector.log ( auditLogable , logType ) ; }
Source:
public void onSuccess ( java.util.List < org.ovirt.engine.core.common.businessentities.VDS > hosts ) { getPinnedHost ( ) . setItems ( hosts ) ; stopProgress ( ) ; selectCurrentPinnedHost ( ) ; }

Target:
public void onSuccess ( java.util.List < org.ovirt.engine.core.common.businessentities.VDS > hosts ) { getPinnedHost ( ) . setItems ( filterHostDevicePassthroughCapableHosts ( hosts ) ) ; stopProgress ( ) ; selectCurrentPinnedHost ( ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { boolean isConsistent = ( ( java.lang.Boolean ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ) ) ; setConsoleAddressPartiallyOverridden ( ( ! isConsistent ) ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { setNumberOfVms ( ( ( java.lang.Integer ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ) ) ) ; }
Source:
public java.lang.String getName ( ) { return getEntity ( ) . getName ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.network.Network getNetwork ( ) { return network ; }
Source:
private void doFinish ( ) { windowModel.StopProgress ( ) ; Cancel ( ) ; ForceRefresh ( ) ; }

Target:
private void doFinish ( ) { windowModel.stopProgress ( ) ; cancel ( ) ; forceRefresh ( ) ; }
Source:
public void canDetectMissingRequiredHostNumaNodes ( ) { existingNumaNodes.set ( 0 , org.ovirt.engine.core.bll.utils.NumaTestUtils.createVmNumaNode ( 1 , vdsNumaNodes ) ) ; vdsNumaNodes.remove ( 0 ) ; final org.ovirt.engine.core.bll.numa.vm.AddVmNumaNodesCommand command = mockedCommandWithVmFromParams ( ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.VM_NUMA_NODE_HOST_NODE_INVALID_INDEX ) ; }

Target:
public void canDetectMissingRequiredHostNumaNodes ( ) { existingNumaNodes.set ( 0 , org.ovirt.engine.core.bll.utils.NumaTestUtils.createVmNumaNode ( 1 , vdsNumaNodes ) ) ; vdsNumaNodes.remove ( 0 ) ; final org.ovirt.engine.core.bll.numa.vm.AddVmNumaNodesCommand command = mockedCommandWithVmFromParams ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.VM_NUMA_NODE_HOST_NODE_INVALID_INDEX ) ; }
Source:
private org.ovirt.engine.core.compat.Guid getHostUpgradeInternalCmdId ( java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { if ( ( hostUpgradeInternalCmdId ) == null ) { hostUpgradeInternalCmdId = findChildCommandByActionType ( VdcActionType.UpgradeHostInternal , childCmdIds ) ; } return hostUpgradeInternalCmdId ; }

Target:
private boolean isMaintenanceCommandExecuted ( java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { org.ovirt.engine.core.compat.Guid maintenanceCommandId = getMaintenanceCmdId ( childCmdIds ) ; org.ovirt.engine.core.common.businessentities.CommandEntity maintenanceCmd = commandCoordinatorUtil.getCommandEntity ( maintenanceCommandId ) ; return ( maintenanceCmd != null ) && ( maintenanceCmd.isExecuted ( ) ) ; }
Source:
public void testIdIsValid ( ) { org.junit.Assert.assertThat ( validator.parameterHavingIdExists ( usedId ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testIdIsValid ( ) { org.hamcrest.MatcherAssert.assertThat ( validator.parameterHavingIdExists ( usedId ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void testDoGet_NotFound_InvalidPath ( ) throws java.io.IOException , javax.servlet.ServletException { org.mockito.Mockito.when ( mockRequest.getPathInfo ( ) ) . thenReturn ( null ) ; testServlet.doGet ( mockRequest , mockResponse ) ; org.mockito.Mockito.verify ( mockResponse ) . sendError ( HttpServletResponse.SC_NOT_FOUND ) ; }

Target:
public void testDoGetNotFoundInvalidPath ( ) throws java.io.IOException , javax.servlet.ServletException { org.mockito.Mockito.when ( mockRequest.getPathInfo ( ) ) . thenReturn ( null ) ; testServlet.doGet ( mockRequest , mockResponse ) ; org.mockito.Mockito.verify ( mockResponse ) . sendError ( HttpServletResponse.SC_NOT_FOUND ) ; }
Source:
public org.ovirt.engine.core.vdsbroker.irsbroker.GlusterServersListReturnForXmlRpc glusterServersList ( ) { try { java.util.Map < java.lang.String , java.lang.Object > xmlRpcReturnValue = vdsServer.glusterHostsList ( ) ; org.ovirt.engine.core.vdsbroker.irsbroker.GlusterServersListReturnForXmlRpc wrapper = new org.ovirt.engine.core.vdsbroker.irsbroker.GlusterServersListReturnForXmlRpc ( xmlRpcReturnValue ) ; return wrapper ; } catch ( java.lang.reflect.UndeclaredThrowableException ute ) { throw new org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcRunTimeException ( ute ) ; } }

Target:
public org.ovirt.engine.core.vdsbroker.gluster.GlusterServersListReturnForXmlRpc glusterServersList ( ) { try { java.util.Map < java.lang.String , java.lang.Object > xmlRpcReturnValue = vdsServer.glusterHostsList ( ) ; org.ovirt.engine.core.vdsbroker.gluster.GlusterServersListReturnForXmlRpc wrapper = new org.ovirt.engine.core.vdsbroker.gluster.GlusterServersListReturnForXmlRpc ( xmlRpcReturnValue ) ; return wrapper ; } catch ( java.lang.reflect.UndeclaredThrowableException ute ) { throw new org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcRunTimeException ( ute ) ; } }
Source:
public void testNoIsoDomain ( ) { org.ovirt.engine.core.bll.validator.RunVmValidatorTest.validateResult ( runVmValidator.validateBootSequence ( new org.ovirt.engine.core.common.businessentities.VM ( ) , BootSequence.CD , new java.util.ArrayList < > ( ) , null ) , false , EngineMessage.VM_CANNOT_RUN_FROM_CD_WITHOUT_ACTIVE_STORAGE_DOMAIN_ISO ) ; }

Target:
public void testNoIsoDomain ( ) { org.ovirt.engine.core.common.businessentities.VM vm = new org.ovirt.engine.core.common.businessentities.VM ( ) ; vm.setBootSequence ( BootSequence.CD ) ; org.ovirt.engine.core.bll.validator.RunVmValidatorTest.validateResult ( runVmValidator.validateBootSequence ( vm , new java.util.ArrayList < > ( ) , null ) , false , EngineMessage.VM_CANNOT_RUN_FROM_CD_WITHOUT_ACTIVE_STORAGE_DOMAIN_ISO ) ; }
Source:
private boolean isPartiallySubmittedCommand ( java.util.List < org.ovirt.engine.core.common.businessentities.AsyncTasks > tasks ) { for ( org.ovirt.engine.core.common.businessentities.AsyncTasks task : tasks ) { if ( ! ( org.ovirt.engine.core.bll.tasks.AsyncTaskManager.hasEmptyVdsmId ( task ) ) ) { return true ; } } return false ; }

Target:
private boolean isPartiallySubmittedCommand ( java.util.List < org.ovirt.engine.core.common.businessentities.AsyncTask > tasks ) { for ( org.ovirt.engine.core.common.businessentities.AsyncTask task : tasks ) { if ( ! ( org.ovirt.engine.core.bll.tasks.AsyncTaskManager.hasEmptyVdsmId ( task ) ) ) { return true ; } } return false ; }
Source:
public java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > getBackendNetworkAttachments ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > backendAttachments = getBackendCollection ( org.ovirt.engine.core.common.businessentities.network.NetworkAttachment.class , VdcQueryType.GetNetworkAttachmentsByHostId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; return org.ovirt.engine.core.common.businessentities.Entities.businessEntitiesById ( backendAttachments ) ; }

Target:
public java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > getBackendNetworkAttachments ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > backendAttachments = getBackendCollection ( org.ovirt.engine.core.common.businessentities.network.NetworkAttachment.class , QueryType.GetNetworkAttachmentsByHostId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; return org.ovirt.engine.core.common.businessentities.Entities.businessEntitiesById ( backendAttachments ) ; }
Source:
protected org.ovirt.engine.core.common.action.MoveOrCopyImageGroupParameters createParameters ( org.ovirt.engine.core.compat.Guid sourceStorageDomainGuid , org.ovirt.engine.core.compat.Guid destStorageDomainGuid , org.ovirt.engine.core.common.businessentities.DiskImage disk ) { return new org.ovirt.engine.core.common.action.MoveOrCopyImageGroupParameters ( disk.getImageId ( ) , sourceStorageDomainGuid , destStorageDomainGuid , org.ovirt.engine.core.common.businessentities.ImageOperation.Copy ) ; }

Target:
protected org.ovirt.engine.core.common.action.MoveOrCopyImageGroupParameters createParameters ( org.ovirt.engine.core.compat.Guid sourceStorageDomainGuid , org.ovirt.engine.core.compat.Guid destStorageDomainGuid , org.ovirt.engine.core.common.businessentities.storage.DiskImage disk ) { return new org.ovirt.engine.core.common.action.MoveOrCopyImageGroupParameters ( disk.getImageId ( ) , sourceStorageDomainGuid , destStorageDomainGuid , org.ovirt.engine.core.common.businessentities.storage.ImageOperation.Copy ) ; }
Source:
public void setVolumeType ( java.lang.String volumeType ) { this . volumeType = volumeType ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "VolumeType" ) ) ; }

Target:
public void setVolumeType ( java.lang.String volumeType ) { this . volumeType = volumeType ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "VolumeType" ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.compat.Guid > getExternalIdsForRunningSteps ( org.ovirt.engine.core.common.job.ExternalSystemType systemType ) { return multipleResults ( getEntityManager ( ) . createNamedQuery ( "Step.getExternalIdsForRunningSteps" ) . setParameter ( "status" , JobExecutionStatus.STARTED ) . setParameter ( "type" , systemType ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.job.Step > getStepsByJobId ( org.ovirt.engine.core.compat.Guid jobId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "job_id" , jobId ) ; return getCallsHandler ( ) . executeReadList ( "GetStepsByJobId" , createEntityRowMapper ( ) , parameterSource ) ; }
Source:
protected void selectedItemsChanged ( ) { super . selectedItemsChanged ( ) ; }

Target:
protected void selectedItemsChanged ( ) { super . selectedItemsChanged ( ) ; updateActionAvailability ( ) ; }
Source:
java.util.List < org.ovirt.engine.core.common.businessentities.VM > getAllForDedicatedPowerClientByVds ( org.ovirt.engine.core.compat.Guid vds ) ;

Target:
java.util.List < org.ovirt.engine.core.common.businessentities.VM > getAllRunningOnOrMigratingToVds ( org.ovirt.engine.core.compat.Guid vds ) ;