auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void setacpi_enable ( java.lang.Boolean value ) { this . mVmDynamic.setacpi_enable ( value ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VmExitStatus getExitStatus ( ) { return this . vmDynamic.getExitStatus ( ) ; }
Source:
public void poll ( ) { if ( ! ( getRefreshStatistics ( ) ) ) { updateIteration ( ) ; return ; } super . poll ( ) ; }

Target:
private static int getRefreshRate ( ) { return ( VMS_REFRESH_RATE ) * ( NUMBER_VMS_REFRESHES_BEFORE_SAVE ) ; }
Source:
public void testDefaultRouteWhenInSync ( ) { iface.setIpv4DefaultRoute ( true ) ; network.setDnsResolverConfiguration ( sampleDnsResolverConfiguration ) ; org.junit.Assert.assertThat ( createTestedInstance ( true , sampleDnsResolverConfiguration ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testDefaultRouteWhenOutOfSyncOnOlderCluster ( ) { cluster.setCompatibilityVersion ( Version.v4_1 ) ; network.setDnsResolverConfiguration ( sampleDnsResolverConfiguration ) ; org.hamcrest.MatcherAssert.assertThat ( createTestedInstance ( true , sampleDnsResolverConfiguration ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
private org.ovirt.engine.core.bll.network.cluster.AddClusterNetworkClusterValidator createNetworkClusterValidator ( ) { final org.ovirt.engine.core.common.businessentities.network.NetworkCluster networkCluster = createManagementNetworkCluster ( ) ; return new org.ovirt.engine.core.bll.network.cluster.AddClusterNetworkClusterValidator ( interfaceDao , networkDao , networkCluster , org.ovirt.engine.core.bll.AddVdsGroupCommand.getVdsGroup ( ) . getCompatibilityVersion ( ) ) ; }

Target:
private org.ovirt.engine.core.bll.network.cluster.AddClusterNetworkClusterValidator createNetworkClusterValidator ( ) { final org.ovirt.engine.core.common.businessentities.network.NetworkCluster networkCluster = createManagementNetworkCluster ( ) ; return new org.ovirt.engine.core.bll.network.cluster.AddClusterNetworkClusterValidator ( interfaceDao , networkDao , networkCluster , org.ovirt.engine.core.bll.AddClusterCommand.getCluster ( ) . getCompatibilityVersion ( ) ) ; }
Source:
public void testUpdateServerConnection ( ) { existingConnection.setiqn ( "1.2.3.4" ) ; dao.update ( existingConnection ) ; org.ovirt.engine.core.common.businessentities.storage_server_connections result = dao.get ( existingConnection.getid ( ) ) ; org.junit.Assert.assertEquals ( existingConnection , result ) ; }

Target:
public void testUpdateServerConnection ( ) { existingConnection.setiqn ( "1.2.3.4" ) ; dao.update ( existingConnection ) ; org.ovirt.engine.core.common.businessentities.StorageServerConnections result = dao.get ( existingConnection.getid ( ) ) ; org.junit.Assert.assertEquals ( existingConnection , result ) ; }
Source:
public void testGetAllForEntityFilteredWithNoPermissions ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Permissions > result = dao.getAllForEntity ( org.ovirt.engine.core.dao.PermissionDAOTest.VM_ENTITY_ID , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_SESSION_ID , true ) ; org.ovirt.engine.core.dao.PermissionDAOTest.assertInvalidGetPermissionList ( result ) ; }

Target:
public void testGetAllForEntityFilteredWithNoPermissionsFilteringDisabled ( ) { org.junit.Assert.assertNotNull ( unprivilegedUserSession ) ; java.util.List < org.ovirt.engine.core.common.businessentities.Permissions > result = dao.getAllForEntity ( org.ovirt.engine.core.dao.PermissionDAOTest.VM_ENTITY_ID , unprivilegedUserSession.getId ( ) , false ) ; org.ovirt.engine.core.dao.PermissionDAOTest.assertGetAllForEntityResult ( result ) ; }
Source:
public void getOsMaxRam ( int osId , org.ovirt.engine.core.compat.Version version , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.OsRepository , new org.ovirt.engine.core.common.queries.OsQueryParameters ( org.ovirt.engine.core.common.queries.OsQueryParameters.OsRepositoryVerb.GetMaxOsRam , osId , version ) , asyncQuery ) ; }

Target:
public java.lang.Boolean isMemoryHotUnplugSupportedByArchitecture ( org.ovirt.engine.core.common.businessentities.ArchitectureType architecture , org.ovirt.engine.core.compat.Version version ) { return memoryHotUnplugSupport.get ( architecture ) . get ( version ) ; }
Source:
public void setkvm_enable ( java.lang.Boolean value ) { this . kvmEnable = value ; }

Target:
public void setKvmEnable ( java.lang.Boolean value ) { this . kvmEnable = value ; }
Source:
public java.util.List < org.ovirt.engine.core.common.job.Step > getStepsByExternalId ( org.ovirt.engine.core.compat.Guid externalId ) { return multipleResults ( getEntityManager ( ) . createNamedQuery ( "Step.getStepsByExternalId" , org.ovirt.engine.core.common.job.Step.class ) . setParameter ( "externalId" , externalId ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.job.Step > getStepsByExternalId ( org.ovirt.engine.core.compat.Guid externalId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "external_id" , externalId ) ; return getCallsHandler ( ) . executeReadList ( "GetStepsByExternalTaskId" , createEntityRowMapper ( ) , parameterSource ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.storage.DiskImage createHibernationMetadataDisk ( org.ovirt.engine.core.common.businessentities.VM vm ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage image = org.ovirt.engine.core.bll.memory.MemoryUtils.createMetadataDisk ( ) ; image.setDiskAlias ( org.ovirt.engine.core.bll.memory.MemoryUtils.generateHibernationMetadataDiskAlias ( vm.getName ( ) ) ) ; image.setDescription ( org.ovirt.engine.core.bll.memory.MemoryUtils.VM_HIBERNATION_METADATA_DISK_DESCRIPTION ) ; return image ; }

Target:
public static org.ovirt.engine.core.common.businessentities.storage.DiskImage createHibernationMetadataDisk ( org.ovirt.engine.core.common.businessentities.VM vm ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage image = org.ovirt.engine.core.bll.memory.MemoryUtils.createMetadataDisk ( null ) ; image.setDiskAlias ( org.ovirt.engine.core.bll.memory.MemoryUtils.generateHibernationMetadataDiskAlias ( vm.getName ( ) ) ) ; image.setDiskDescription ( org.ovirt.engine.core.bll.memory.MemoryUtils.VM_HIBERNATION_METADATA_DISK_DESCRIPTION ) ; return image ; }
Source:
java.lang.Object Resolve ( java.lang.Class type ) ;

Target:
java.lang.Object resolve ( java.lang.Class type ) ;
Source:
public void lowerVersionNoHostsWithNetwork ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addNetworkToPool ( ) ; canDoActionFailed ( VdcBllMessages.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION ) ; }

Target:
public void lowerVersionMgmtNetworkSupportedFeatures ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addManagementNetworksToPool ( 2 ) ; setupNetworkValidator ( true ) ; org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult requiredValuesPresent ( ) { return ( ( getQos ( ) ) != null ) && ( ( getQos ( ) . getOutAverageLinkshare ( ) ) == null ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_HOST_NETWORK_QOS_MISSING_VALUES ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult requiredValuesPresent ( ) { org.ovirt.engine.core.common.businessentities.network.HostNetworkQos qos = getQos ( ) ; boolean shouldFail = ( qos != null ) && ( ( qos.getOutAverageLinkshare ( ) ) == null ) ; return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.ACTION_TYPE_FAILED_HOST_NETWORK_QOS_MISSING_VALUES ) . when ( shouldFail ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VmStatic get ( org.ovirt.engine.core.compat.Guid id ) { return getCallsHandler ( ) . executeRead ( "GetVmStaticByVmGuid" , org.ovirt.engine.core.dao.VmStaticDAODbFacadeImpl.VMStaticRowMapper.instance , getIdParamterSource ( id ) ) ; }

Target:
protected org.springframework.jdbc.core.RowMapper < org.ovirt.engine.core.common.businessentities.VmStatic > createEntityRowMapper ( ) { return org.ovirt.engine.core.dao.VmStaticDAODbFacadeImpl.VMStaticRowMapper.instance ; }
Source:
public boolean Match ( org.ovirt.engine.core.common.businessentities.StorageDomain source ) { return id.equals ( source.getId ( ) ) ; }

Target:
public boolean match ( org.ovirt.engine.core.common.businessentities.StorageDomain source ) { return id.equals ( source.getId ( ) ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel flush ( ) { priorityEditor.flush ( ) ; return org.ovirt.engine.ui.common.widget.uicommon.popup.AbstractVmPopupWidget.Driver.driver.flush ( ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel flush ( ) { priorityEditor.flush ( ) ; return driver.flush ( ) ; }
Source:
public void shouldDetectDuplicateNodeIndex ( ) { vmNumaNodes.get ( 0 ) . setIndex ( 1 ) ; vmNumaNodes.get ( 1 ) . setIndex ( 1 ) ; assertValidationFailure ( org.ovirt.engine.core.bll.numa.vm.NumaValidator.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) , EngineMessage.VM_NUMA_NODE_INDEX_DUPLICATE ) ; }

Target:
public void shouldDetectDuplicateNodeIndex ( ) { vmNumaNodes.get ( 0 ) . setIndex ( 1 ) ; vmNumaNodes.get ( 1 ) . setIndex ( 1 ) ; assertValidationFailure ( underTest.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) , EngineMessage.VM_NUMA_NODE_INDEX_DUPLICATE ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.action.VdcReturnValueBase > runInternalMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , org.ovirt.engine.core.bll.context.CommandContext commandContext ) { return runMultipleActionsImpl ( actionType , parameters , true , false , false , commandContext ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.action.VdcReturnValueBase > runInternalMultipleActions ( org.ovirt.engine.core.common.action.ActionType actionType , java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , org.ovirt.engine.core.bll.context.CommandContext commandContext ) { return runMultipleActionsImpl ( actionType , parameters , true , false , false , commandContext ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( getBootProtocol ( ) , getAddress ( ) , getNetmask ( ) , getGateway ( ) ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( getBootProtocol ( ) , getIPv4Addresses ( ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc snapshot ( java.lang.String vmId , java.util.Map < java.lang.String , java.lang.String > [ ] snapParams ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc snapshot ( java.lang.String vmId , java.util.Map < java.lang.String , java.lang.String > [ ] disks ) ;
Source:
protected boolean isDiskExist ( org.ovirt.engine.core.common.businessentities.storage.Disk disk ) { org.ovirt.engine.core.bll.validator.storage.DiskValidator diskValidator = getDiskValidator ( disk ) ; return ( validate ( diskValidator.isDiskExists ( ) ) ) && ( validate ( diskValidator.isDiskAttachedToVm ( org.ovirt.engine.core.bll.storage.disk.AbstractDiskVmCommand.getVmId ( ) ) ) ) ; }

Target:
protected boolean isDiskExistAndAttachedToVm ( org.ovirt.engine.core.common.businessentities.storage.Disk disk ) { org.ovirt.engine.core.bll.validator.storage.DiskValidator diskValidator = getDiskValidator ( disk ) ; return ( validate ( diskValidator.isDiskExists ( ) ) ) && ( validate ( diskValidator.isDiskAttachedToVm ( org.ovirt.engine.core.bll.storage.disk.AbstractDiskVmCommand.getVm ( ) ) ) ) ; }
Source:
private void RemoveTagFromHash ( org.ovirt.engine.core.common.businessentities.Tags tag ) { tagsMapByID.remove ( tag.gettag_id ( ) ) ; tagsMapByName.remove ( tag.gettag_name ( ) ) ; }

Target:
private void removeTagFromHash ( org.ovirt.engine.core.common.businessentities.Tags tag ) { tagsMapByID.remove ( tag.gettag_id ( ) ) ; tagsMapByName.remove ( tag.gettag_name ( ) ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid GetPoolId ( ) { org.ovirt.engine.core.common.businessentities.vm_pools vmPool = org.ovirt.engine.core.bll.AddVmPoolWithVmsCommand.getVmPool ( ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmPoolDAO ( ) . save ( vmPool ) ; return vmPool.getvm_pool_id ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid getPoolId ( ) { org.ovirt.engine.core.common.businessentities.vm_pools vmPool = org.ovirt.engine.core.bll.AddVmPoolWithVmsCommand.getVmPool ( ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmPoolDAO ( ) . save ( vmPool ) ; return vmPool.getvm_pool_id ( ) ; }
Source:
public void setvm_type ( org.ovirt.engine.core.common.businessentities.VmType value ) { this . mVmStatic.setvm_type ( value ) ; }

Target:
public void setVmType ( org.ovirt.engine.core.common.businessentities.VmType value ) { this . vmStatic.setVmType ( value ) ; }
Source:
protected void addVmStatic ( ) { super . addVmStatic ( ) ; new org.ovirt.engine.core.bll.snapshots.SnapshotsManager ( ) . addActiveSnapshot ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , org.ovirt.engine.core.bll.exportimport.ImportVmFromExternalProviderCommand.getVm ( ) , "" , org.ovirt.engine.core.bll.exportimport.ImportVmFromExternalProviderCommand.getCompensationContext ( ) ) ; }

Target:
protected void addVmStatic ( ) { super . addVmStatic ( ) ; org.ovirt.engine.core.bll.exportimport.ImportVmFromExternalProviderCommand.getSnapshotsManager ( ) . addActiveSnapshot ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , org.ovirt.engine.core.bll.exportimport.ImportVmFromExternalProviderCommand.getVm ( ) , "" , org.ovirt.engine.core.bll.exportimport.ImportVmFromExternalProviderCommand.getCompensationContext ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.Role getRole ( ) { if ( ( _role ) == null ) { _role = org.ovirt.engine.core.bll.RolesCommandBase.getRoleDao ( ) . get ( org.ovirt.engine.core.bll.RolesCommandBase.getParameters ( ) . getRoleId ( ) ) ; } return _role ; }

Target:
protected org.ovirt.engine.core.common.businessentities.Role getRole ( ) { if ( ( _role ) == null ) { _role = roleDao.get ( org.ovirt.engine.core.bll.RolesCommandBase.getParameters ( ) . getRoleId ( ) ) ; } return _role ; }
Source:
public void canDoActionWrongVersion ( ) { sp.setCompatibilityVersion ( Version.v3_0 ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , VdcBllMessages.ACTION_TYPE_FAILED_REFRESH_LUNS_UNSUPPORTED_ACTION ) ; sp.setCompatibilityVersion ( Version.v3_6 ) ; }

Target:
public void canDoActionWrongVersion ( ) { sp.setCompatibilityVersion ( Version.v3_0 ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_REFRESH_LUNS_UNSUPPORTED_ACTION ) ; sp.setCompatibilityVersion ( Version.v3_6 ) ; }
Source:
private void initIpConfigurationAddress ( ) { getTestedNetworkAttachment ( ) . getIpConfiguration ( ) . getPrimaryAddress ( ) . setAddress ( org.ovirt.engine.core.bll.validator.network.NetworkAttachmentIpConfigurationValidatorTest.ADDRESS ) ; }

Target:
private void initIpConfigurationAddress ( ) { getTestedNetworkAttachment ( ) . getIpConfiguration ( ) . getIpv4PrimaryAddress ( ) . setAddress ( org.ovirt.engine.core.bll.validator.network.NetworkAttachmentIpConfigurationValidatorTest.ADDRESS ) ; }
Source:
public void validateOkSucceeds ( ) { parameters.setId ( org.ovirt.engine.core.bll.EndExternalStepCommandTest.stepId ) ; parameters.setJobId ( org.ovirt.engine.core.bll.EndExternalStepCommandTest.jobId ) ; org.junit.Assert.assertTrue ( command.validate ( ) ) ; }

Target:
public void validateOkSucceeds ( ) { parameters.setId ( org.ovirt.engine.core.bll.EndExternalStepCommandTest.stepId ) ; parameters.setJobId ( org.ovirt.engine.core.bll.EndExternalStepCommandTest.jobId ) ; org.junit.jupiter.api.Assertions.assertTrue ( command.validate ( ) ) ; }
Source:
public void setNetworkList ( org.ovirt.engine.ui.uicommonweb.models.ListModel networkList ) { networksTable.edit ( networkList ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.providers.DiscoverNetworksModel model ) { networksTable.edit ( model.getNetworkList ( ) ) ; dcColumn.edit ( model.getDataCenters ( ) ) ; driver.edit ( model ) ; }
Source:
public void setHostName ( java.lang.String value ) { this . mVdsStatic.setHostName ( value ) ; }

Target:
public void setUniqueId ( java.lang.String value ) { vdsStatic.setUniqueID ( value ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.storage_server_connections > GetStorageServerConnectionsByDomain ( org.ovirt.engine.core.common.businessentities.storage_domain_static storageDomain ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageServerConnectionDao ( ) . getAllForVolumeGroup ( storageDomain.getstorage ( ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > getStorageServerConnectionsByDomain ( org.ovirt.engine.core.common.businessentities.StorageDomainStatic storageDomain ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageServerConnectionDao ( ) . getAllForVolumeGroup ( storageDomain.getstorage ( ) ) ; }
Source:
public void testGetByNameFilteredWithPermissionsNoPermissions ( ) { org.ovirt.engine.core.common.businessentities.VM result = dao.getByNameForDataCenter ( null , existingVm.getName ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetByNameFilteredWithPermissionsNoPermissions ( ) { org.ovirt.engine.core.common.businessentities.VM result = dao.getByNameForDataCenter ( null , existingVm.getName ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.jupiter.api.Assertions.assertNull ( result ) ; }
Source:
private static void mapIPv4Addresses ( org.ovirt.engine.api.model.IpConfiguration entityIpConfiguration , org.ovirt.engine.api.model.IPv4S iPv4Configuration ) { for ( org.ovirt.engine.core.common.businessentities.network.IPv4Address iPv4Address : entityIpConfiguration.getIPv4Addresses ( ) ) { iPv4Configuration.getIPv4Addresses ( ) . add ( org.ovirt.engine.api.restapi.types.NetworkAttachmentMapper.mapIPv4Address ( iPv4Address ) ) ; } }

Target:
private static org.ovirt.engine.api.model.Network getModelNetwork ( org.ovirt.engine.api.model.NetworkAttachment model ) { org.ovirt.engine.api.model.Network network = model.getNetwork ( ) ; if ( network == null ) { network = new org.ovirt.engine.api.model.Network ( ) ; model.setNetwork ( network ) ; } return network ; }
Source:
private boolean foundSrvRecords ( org.ovirt.engine.core.utils.dns.DnsSRVLocator.DnsSRVResult result ) { return ( result != null ) && ( ( result.getNumOfValidAddresses ( ) ) > 0 ) ; }

Target:
private boolean foundSrvRecords ( org.ovirt.engine.extensions.aaa.builtin.kerberosldap.utils.dns.DnsSRVLocator.DnsSRVResult result ) { return ( result != null ) && ( ( result.getNumOfValidAddresses ( ) ) > 0 ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > prepareImage ( java.lang.String sdID , java.lang.String spID , java.lang.String imageID , java.lang.String volumeID ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > prepareImage ( java.lang.String sdID , java.lang.String spID , java.lang.String imageID , java.lang.String volumeID , boolean allowIllegal ) ;
Source:
public org.ovirt.engine.api.model.Disk get ( ) { return super . get ( ) ; }

Target:
public org.ovirt.engine.api.model.Disk get ( ) { return performGet ( VdcQueryType.GetDiskByDiskId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; }
Source:
public void testGlusterDcAndNotMatchingCompatiblityVersion ( ) { storagePool.setcompatibility_version ( Version.v3_1 ) ; storagePool.setIsLocal ( false ) ; org.junit.Assert.assertThat ( validator.isGlusterSupportedInDC ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.DATA_CENTER_GLUSTER_STORAGE_NOT_SUPPORTED_IN_CURRENT_VERSION ) ) ; }

Target:
public void testGlusterDcAndNotMatchingCompatiblityVersion ( ) { storagePool.setcompatibility_version ( org.ovirt.engine.core.bll.storage.StoragePoolValidatorTest.UNSUPPORTED_VERSION ) ; storagePool.setIsLocal ( false ) ; org.junit.Assert.assertThat ( validator.isGlusterSupportedInDC ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.DATA_CENTER_GLUSTER_STORAGE_NOT_SUPPORTED_IN_CURRENT_VERSION ) ) ; }
Source:
protected boolean isStorageDomainWithinThresholds ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain ) { return org.ovirt.engine.core.bll.command.utils.StorageDomainSpaceChecker.isWithinThresholds ( storageDomain ) ; }

Target:
protected boolean isStorageDomainWithinThresholds ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain ) { return validate ( new org.ovirt.engine.core.bll.validator.StorageDomainValidator ( storageDomain ) . isDomainWithinThresholds ( ) ) ; }
Source:
public void testGetAllByStoragePoolAndConnectionWithInvalidStoragePool ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllByStoragePoolAndConnection ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) , org.ovirt.engine.core.dao.StorageDomainDAOTest.EXISTING_CONNECTION ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllByStoragePoolAndConnectionWithInvalidStoragePool ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllByStoragePoolAndConnection ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , org.ovirt.engine.core.dao.StorageDomainDAOTest.EXISTING_CONNECTION ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public void dataCenterDoesntExist ( ) throws java.lang.Exception { org.mockito.Mockito.when ( dataCenterDao.get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( null ) ; org.junit.Assert.assertThat ( validator.dataCenterExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_STORAGE_POOL_NOT_EXIST ) ) ; }

Target:
public void dataCenterDoesntExist ( ) throws java.lang.Exception { org.mockito.Mockito.when ( dataCenterDao.get ( org.mockito.ArgumentMatchers.any ( ) ) ) . thenReturn ( null ) ; org.junit.Assert.assertThat ( validator.dataCenterExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_STORAGE_POOL_NOT_EXIST ) ) ; }
Source:
private void readCdItem ( org.ovirt.engine.core.compat.backendcompat.XmlNode node ) { readManagedVmDevice ( node , org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; }

Target:
private void readCdItem ( org.ovirt.engine.core.utils.ovf.xml.XmlNode node ) { readManagedVmDevice ( node , org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; }
Source:
public void isNotISCSIConnectionAndDomain ( ) { connection.setStorageType ( StorageType.NFS ) ; domain.setStorageType ( StorageType.NFS ) ; org.junit.Assert.assertEquals ( EngineMessage.ACTION_TYPE_FAILED_ACTION_IS_SUPPORTED_ONLY_FOR_ISCSI_DOMAINS , validator.isISCSIConnectionAndDomain ( domain ) . getMessage ( ) ) ; }

Target:
public void isNotISCSIConnectionAndDomain ( ) { connection.setStorageType ( StorageType.NFS ) ; domain.setStorageType ( StorageType.NFS ) ; org.junit.Assert.assertThat ( validator.isISCSIConnectionAndDomain ( domain ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_ACTION_IS_SUPPORTED_ONLY_FOR_ISCSI_DOMAINS ) ) ; }
Source:
protected boolean setAndValidateDiskProfiles ( ) { return validate ( org.ovirt.engine.core.bll.profiles.DiskProfileHelper.setAndValidateDiskProfiles ( java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.RegisterDiskCommand.getParameters ( ) . getDiskImage ( ) , org.ovirt.engine.core.bll.RegisterDiskCommand.getStorageDomainId ( ) ) , org.ovirt.engine.core.bll.RegisterDiskCommand.getStoragePool ( ) . getcompatibility_version ( ) ) ) ; }

Target:
protected boolean setAndValidateDiskProfiles ( ) { return validate ( org.ovirt.engine.core.bll.profiles.DiskProfileHelper.setAndValidateDiskProfiles ( java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.RegisterDiskCommand.getParameters ( ) . getDiskImage ( ) , org.ovirt.engine.core.bll.RegisterDiskCommand.getStorageDomainId ( ) ) , org.ovirt.engine.core.bll.RegisterDiskCommand.getStoragePool ( ) . getCompatibilityVersion ( ) ) ) ; }
Source:
public void testGetAllForCpuProfiles ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > result = dao.getAllForCpuProfiles ( java.util.Collections.singleton ( FixturesTool.CPU_PROFILE_1 ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( 1 , result.size ( ) ) ; }

Target:
public void testGetAllForCpuProfiles ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > result = dao.getAllForCpuProfiles ( java.util.Collections.singleton ( FixturesTool.CPU_PROFILE_1 ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( 6 , result.size ( ) ) ; }
Source:
protected java.lang.Object [ ] getRawValue ( org.ovirt.engine.core.common.businessentities.Permissions object ) { return new java.lang.Object [ ] { object.getObjectType ( ) , object.getObjectName ( ) , getModel ( ) . getEntity ( ) , object.getObjectId ( ) } ; }

Target:
protected java.lang.Object [ ] getRawValue ( org.ovirt.engine.core.common.businessentities.Permission object ) { return new java.lang.Object [ ] { object.getObjectType ( ) , object.getObjectName ( ) , getModel ( ) . getEntity ( ) , object.getObjectId ( ) } ; }
Source:
public void addPermissionsOnVnicProfile ( org.ovirt.engine.core.compat.Guid userId , org.ovirt.engine.core.compat.Guid vnicProfileId , boolean publicUse ) { org.ovirt.engine.core.bll.MultiLevelAdministrationHandler.addPermission ( userId , vnicProfileId , PredefinedRoles.NETWORK_ADMIN , VdcObjectType.VnicProfile ) ; if ( publicUse ) { org.ovirt.engine.core.bll.MultiLevelAdministrationHandler.addPermission ( MultiLevelAdministrationHandler.EVERYONE_OBJECT_ID , vnicProfileId , PredefinedRoles.VNIC_PROFILE_USER , VdcObjectType.VnicProfile ) ; } }

Target:
public void addPermissionsOnVnicProfile ( org.ovirt.engine.core.compat.Guid userId , org.ovirt.engine.core.compat.Guid vnicProfileId , boolean publicUse ) { multiLevelAdministrationHandler.addPermission ( userId , vnicProfileId , PredefinedRoles.NETWORK_ADMIN , VdcObjectType.VnicProfile ) ; if ( publicUse ) { multiLevelAdministrationHandler.addPermission ( MultiLevelAdministrationHandler.EVERYONE_OBJECT_ID , vnicProfileId , PredefinedRoles.VNIC_PROFILE_USER , VdcObjectType.VnicProfile ) ; } }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { }

Target:
private void ReturnVm ( ) { org.ovirt.engine.core.common.businessentities.VM entity = ( ( org.ovirt.engine.core.common.businessentities.VM ) ( getItem ( ) . getEntity ( ) ) ) ; org.ovirt.engine.ui.frontend.Frontend.RunAction ( VdcActionType.ShutdownVm , new org.ovirt.engine.core.common.action.ShutdownVmParameters ( entity.getId ( ) , false ) , null , null ) ; }
Source:
java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > getAllForStoragePool ( org.ovirt.engine.core.compat.Guid pool ) ;

Target:
java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > getAllConnectableStorageSeverConnection ( org.ovirt.engine.core.compat.Guid pool ) ;
Source:
protected boolean runConnectionStorageToDomain ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.compat.Guid vdsId , int type ) { return true ; }

Target:
protected org.ovirt.engine.core.common.utils.Pair < java.lang.Boolean , org.ovirt.engine.core.common.errors.VdcFault > runConnectionStorageToDomain ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.compat.Guid vdsId , int type ) { return new org.ovirt.engine.core.common.utils.Pair ( true , null ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.Permissions getPermissions ( java.lang.String id ) { return getEntity ( org.ovirt.engine.core.common.businessentities.Permissions.class , VdcQueryType.GetPermissionById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( new org.ovirt.engine.core.compat.Guid ( id ) ) , id ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.Permissions getPermissions ( java.lang.String id ) { return getEntity ( org.ovirt.engine.core.common.businessentities.Permissions.class , VdcQueryType.GetPermissionById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( asGuid ( id ) ) , id ) ; }
Source:
private void auditLogDiskFieldTruncated ( java.lang.String diskAlias , java.lang.String fieldName ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogable logable = createDiskEvent ( diskAlias ) ; logable.addCustomValue ( "DiskFieldName" , fieldName ) ; getAuditLogDirector ( ) . log ( logable , AuditLogType.FAILED_TO_STORE_ENTIRE_DISK_FIELD_IN_DISK_DESCRIPTION_METADATA ) ; }

Target:
private void auditLogDiskFieldTruncated ( java.lang.String diskAlias , java.lang.String fieldName ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogable logable = createDiskEvent ( diskAlias ) ; logable.addCustomValue ( "DiskFieldName" , fieldName ) ; auditLogDirector.log ( logable , AuditLogType.FAILED_TO_STORE_ENTIRE_DISK_FIELD_IN_DISK_DESCRIPTION_METADATA ) ; }
Source:
protected boolean validateImageNotActive ( ) { return ( org.ovirt.engine.core.bll.RemoveSnapshotCommand.getDiskImageDao ( ) . get ( getRepresentativeSourceImageId ( ) ) ) == null ; }

Target:
public org.ovirt.engine.core.bll.tasks.interfaces.CommandCallback getCallback ( ) { return org.ovirt.engine.core.bll.RemoveSnapshotCommand.getVm ( ) . isQualifiedForLiveSnapshotMerge ( ) ? new org.ovirt.engine.core.bll.RemoveSnapshotCommandCallback ( ) : null ; }
Source:
public void testIsDomainExistAndActiveDomainUp ( ) { domain.setstatus ( StorageDomainStatus.Active ) ; org.junit.Assert.assertTrue ( "domain should be up" , validator.isDomainExistAndActive ( ) . isValid ( ) ) ; }

Target:
public void testIsDomainExistAndActiveDomainUp ( ) { domain.setStatus ( StorageDomainStatus.Active ) ; org.junit.Assert.assertTrue ( "domain should be up" , validator.isDomainExistAndActive ( ) . isValid ( ) ) ; }
Source:
public boolean isDone ( ) { if ( callable.isDone ( ) ) { updateHeartbeatPolicy ( true ) ; return true ; } return false ; }

Target:
public boolean isDone ( ) { if ( callable.isDone ( ) ) { updateHeartbeatPolicy ( policy , true ) ; return true ; } return false ; }
Source:
public void endWithFailure ( ) { super . endWithFailure ( ) ; }

Target:
public void endWithFailure ( ) { super . endWithFailure ( ) ; revertTask ( ) ; }
Source:
public void validUnlessConditionOccursWithVariableReplacements ( ) { org.junit.Assert.assertThat ( org.ovirt.engine.core.bll.ValidationResult.failWith ( org.ovirt.engine.core.bll.ValidationResultTest.ERROR , variableReplacements ) . unless ( true ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void validUnlessConditionOccursWithVariableReplacements ( ) { org.hamcrest.MatcherAssert.assertThat ( org.ovirt.engine.core.bll.ValidationResult.failWith ( org.ovirt.engine.core.bll.ValidationResultTest.ERROR , variableReplacements ) . unless ( true ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void setFull_messages ( java.lang.String [ ] full_messages ) { this . full_messages = full_messages ; }

Target:
public void setFullMessages ( java.lang.String [ ] fullMessages ) { this . fullMessages = fullMessages ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VDSGroup map ( org.ovirt.engine.core.common.businessentities.StoragePool pool ) { return getMapper ( org.ovirt.engine.core.common.businessentities.StoragePool.class , org.ovirt.engine.core.common.businessentities.VDSGroup.class ) . map ( pool , null ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.Cluster map ( org.ovirt.engine.core.common.businessentities.StoragePool pool ) { return getMapper ( org.ovirt.engine.core.common.businessentities.StoragePool.class , org.ovirt.engine.core.common.businessentities.Cluster.class ) . map ( pool , null ) ; }
Source:
public static java.lang.String resolvePluginConfigPath ( ) { return org.ovirt.engine.core.common.config.ConfigUtil.resolvePath ( org.ovirt.engine.core.utils.LocalConfig.getInstance ( ) . getEtcDir ( ) . getAbsolutePath ( ) , org.ovirt.engine.ui.frontend.server.gwt.plugin.PluginDataManager.UI_PLUGIN_DIR ) ; }

Target:
public static java.lang.String resolvePluginConfigPath ( ) { return org.ovirt.engine.core.common.config.ConfigUtil.resolvePath ( org.ovirt.engine.core.utils.EngineLocalConfig.getInstance ( ) . getEtcDir ( ) . getAbsolutePath ( ) , org.ovirt.engine.ui.frontend.server.gwt.plugin.PluginDataManager.UI_PLUGIN_DIR ) ; }
Source:
protected boolean extractBoolean ( org.ovirt.engine.ui.uicommonweb.models.vms.ISpice spice ) { return spice.isFullScreen ( ) ; }

Target:
protected void updateModel ( org.ovirt.engine.ui.uicommonweb.models.vms.ISpice spice , boolean value ) { spice.getOptions ( ) . setSpiceProxyEnabled ( value ) ; }
Source:
private void template_SelectedItemChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { behavior.template_SelectedItemChanged ( ) ; behavior.updateMigrationForLocalSD ( ) ; }

Target:
private void templateWithVersion_SelectedItemChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { behavior.templateWithVersion_SelectedItemChanged ( ) ; behavior.updateMigrationForLocalSD ( ) ; }
Source:
protected void MoveOrCopyAllImageGroups ( ) { MoveOrCopyAllImageGroups ( org.ovirt.engine.core.bll.MoveVmCommand.getVmId ( ) , org.ovirt.engine.core.bll.MoveVmCommand.getVm ( ) . getDiskList ( ) ) ; }

Target:
protected void moveOrCopyAllImageGroups ( ) { moveOrCopyAllImageGroups ( org.ovirt.engine.core.bll.MoveVmCommand.getVmId ( ) , org.ovirt.engine.core.bll.MoveVmCommand.getVm ( ) . getDiskList ( ) ) ; }
Source:
public void testCheckVmHostDeviceAvailability ( ) { org.junit.Assert.assertTrue ( dao.checkVmHostDeviceAvailability ( org.ovirt.engine.core.dao.HostDeviceDaoTest.EXISTING_VM_ID , FixturesTool.VDS_RHEL6_NFS_SPM ) ) ; }

Target:
public void testCheckVmHostDeviceAvailability ( ) { org.junit.jupiter.api.Assertions.assertTrue ( dao.checkVmHostDeviceAvailability ( org.ovirt.engine.core.dao.HostDeviceDaoTest.EXISTING_VM_ID , FixturesTool.VDS_RHEL6_NFS_SPM ) ) ; }
Source:
public void testWithNoRequiredSpares ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result = policyUnit.filter ( cluster , hosts , vm , parameters , messages ) ; org.junit.Assert.assertEquals ( 5 , result.size ( ) ) ; }

Target:
public void testWithNoRequiredSpares ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result = policyUnit.filter ( cluster , hosts , vm , parameters , messages ) ; org.junit.jupiter.api.Assertions.assertEquals ( 5 , result.size ( ) ) ; }
Source:
public java.lang.Void runInTransaction ( ) { for ( org.ovirt.engine.core.common.businessentities.LUNs lun : luns ) { proceedLUNInDb ( lun , getStorageDomain ( ) . getstorage_type ( ) ) ; } return null ; }

Target:
public java.lang.Void runInTransaction ( ) { for ( org.ovirt.engine.core.common.businessentities.LUNs lun : luns ) { proceedLUNInDb ( lun , getStorageDomain ( ) . getstorage_type ( ) , getStorageDomain ( ) . getstorage ( ) ) ; } return null ; }
Source:
public java.lang.String getIsoDirectory ( ) { java.lang.String tempVar = getmCurrentIrsHost ( ) ; return java.lang.String.format ( "\\\\%1$s\\CD" , ( tempVar != null ? tempVar : gethostFromVds ( ) ) ) ; }

Target:
public java.lang.String getIsoDirectory ( ) { java.lang.String tempVar = privatemCurrentIrsHost ; return java.lang.String.format ( "\\\\%1$s\\CD" , ( tempVar != null ? tempVar : gethostFromVds ( ) ) ) ; }
Source:
private void updateActionButton ( org.ovirt.engine.ui.common.widget.action.ActionButton button , org.ovirt.engine.ui.common.widget.action.ActionButtonDefinition < org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel > buttonDef ) { button.setEnabled ( buttonDef.isEnabled ( null ) ) ; }

Target:
void updateButton ( org.ovirt.engine.ui.userportal.widget.basic.MainTabBasicListItemActionButton button , org.ovirt.engine.ui.uicommonweb.UICommand command ) { button.setEnabled ( ( command != null ? command.getIsExecutionAllowed ( ) : false ) ) ; }
Source:
protected void cancel ( ) { cancelConfirm ( ) ; setWindow ( null ) ; }

Target:
protected void cancel ( ) { cancelConfirm ( ) ; org.ovirt.engine.ui.uicommonweb.models.storage.ManageBackupModel.setWindow ( null ) ; }
Source:
public void removeTabWidget ( com.google.gwt.user.client.ui.Widget tabWidget ) { mainTabContainer.getElement ( ) . removeChild ( tabWidget.getElement ( ) ) ; }

Target:
public void removeTabWidget ( com.google.gwt.user.client.ui.IsWidget tabWidget ) { mainTabContainer.getElement ( ) . removeChild ( tabWidget.asWidget ( ) . getElement ( ) ) ; }
Source:
public static boolean isUpdateValid ( org.ovirt.engine.core.common.businessentities.VdsStatic source , org.ovirt.engine.core.common.businessentities.VdsStatic distination , org.ovirt.engine.core.common.businessentities.VDSStatus status ) { return org.ovirt.engine.core.bll.VdsHandler.mUpdateVdsStatic.IsUpdateValid ( source , distination , status ) ; }

Target:
public static boolean isUpdateValid ( org.ovirt.engine.core.common.businessentities.VdsStatic source , org.ovirt.engine.core.common.businessentities.VdsStatic distination , org.ovirt.engine.core.common.businessentities.VDSStatus status ) { return org.ovirt.engine.core.bll.VdsHandler.updateVdsStatic.IsUpdateValid ( source , distination , status ) ; }
Source:
public void validateSucceedsWithArbiter ( ) { setVolume ( getVolume ( 3 , false , GlusterVolumeType.REPLICATE , 3 , true ) ) ; org.junit.Assert.assertTrue ( cmd.validate ( ) ) ; }

Target:
public void validateSucceedsWithArbiter ( ) { setVolume ( getVolume ( 3 , false , GlusterVolumeType.REPLICATE , 3 , true ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( cmd.validate ( ) ) ; }
Source:
private org.ovirt.engine.core.common.action.ImportVmParameters createParametersWhenImagesExistOnTargetStorageDomain ( ) { org.ovirt.engine.core.common.action.ImportVmParameters params = new org.ovirt.engine.core.common.action.ImportVmParameters ( ) ; params.setContainerId ( vmId ) ; params.setStorageDomainId ( storageDomainId ) ; params.setVdsGroupId ( clusterId ) ; params.setImagesExistOnTargetStorageDomain ( true ) ; return params ; }

Target:
private org.ovirt.engine.core.common.action.ImportVmParameters createParametersWhenImagesExistOnTargetStorageDomain ( ) { org.ovirt.engine.core.common.action.ImportVmParameters params = new org.ovirt.engine.core.common.action.ImportVmParameters ( ) ; params.setContainerId ( vmId ) ; params.setStorageDomainId ( storageDomainId ) ; params.setClusterId ( clusterId ) ; params.setImagesExistOnTargetStorageDomain ( true ) ; return params ; }
Source:
public java.lang.String renderNullSafe ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.VDSGroup ) ( object ) ) . getName ( ) ; }

Target:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( java.lang.Object object ) { return super . getTooltip ( object ) ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Snapshot > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Snapshot > ( ) ; }

Target:
public void getVmSnapshotList ( org.ovirt.engine.ui.frontend.AsyncQuery < java.util.List < org.ovirt.engine.core.common.businessentities.Snapshot > > aQuery , org.ovirt.engine.core.compat.Guid id ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.ListConverter < > ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetAllVmSnapshotsByVmId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) , aQuery ) ; }
Source:
protected void executeVdsBrokerCommand ( ) { vmListReturn = org.ovirt.engine.core.vdsbroker.vdsbroker.GetVmStatsVDSCommand.getBroker ( ) . getVmStats ( org.ovirt.engine.core.vdsbroker.vdsbroker.GetVmStatsVDSCommand.getParameters ( ) . getVmId ( ) . toString ( ) ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.GetVmStatsVDSCommand.proceedProxyReturnValue ( ) ; setReturnValue ( createVmInternalData ( vmListReturn.infoList [ 0 ] ) ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { vmListReturn = org.ovirt.engine.core.vdsbroker.vdsbroker.GetVmStatsVDSCommand.getBroker ( ) . getVmStats ( org.ovirt.engine.core.vdsbroker.vdsbroker.GetVmStatsVDSCommand.getParameters ( ) . getVmId ( ) . toString ( ) ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.GetVmStatsVDSCommand.proceedProxyReturnValue ( ) ; setReturnValue ( createVdsmVm ( vmListReturn.infoList [ 0 ] ) ) ; }
Source:
public void dismissAlert ( ) { org.ovirt.engine.core.common.businessentities.AuditLog auditLog = ( ( org.ovirt.engine.core.common.businessentities.AuditLog ) ( getSelectedItem ( ) ) ) ; org.ovirt.engine.core.common.action.RemoveAuditLogByIdParameters params = new org.ovirt.engine.core.common.action.RemoveAuditLogByIdParameters ( auditLog.getaudit_log_id ( ) ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runAction ( VdcActionType.RemoveAuditLogById , params ) ; }

Target:
public void dismissAlert ( ) { org.ovirt.engine.core.common.businessentities.AuditLog auditLog = ( ( org.ovirt.engine.core.common.businessentities.AuditLog ) ( getSelectedItem ( ) ) ) ; org.ovirt.engine.core.common.action.RemoveAuditLogByIdParameters params = new org.ovirt.engine.core.common.action.RemoveAuditLogByIdParameters ( auditLog.getAuditLogId ( ) ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runAction ( VdcActionType.RemoveAuditLogById , params ) ; }
Source:
public void testGetByClusterIdAndServiceType ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterClusterService service = dao.getByClusterIdAndServiceType ( org.ovirt.engine.core.dao.gluster.GlusterClusterServiceDaoTest.CLUSTER_ID , ServiceType.GLUSTER ) ; org.junit.Assert.assertNotNull ( service ) ; org.junit.Assert.assertEquals ( GlusterServiceStatus.RUNNING , service.getStatus ( ) ) ; }

Target:
public void testGetByClusterIdAndServiceType ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterClusterService service = dao.getByClusterIdAndServiceType ( org.ovirt.engine.core.dao.gluster.GlusterClusterServiceDaoTest.CLUSTER_ID , ServiceType.GLUSTER ) ; org.junit.jupiter.api.Assertions.assertNotNull ( service ) ; org.junit.jupiter.api.Assertions.assertEquals ( GlusterServiceStatus.RUNNING , service.getStatus ( ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterVolumeGeoRepConfigReset ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName , java.lang.String configKey ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterVolumeGeoRepConfigReset ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName , java.lang.String configKey , java.lang.String userName ) ;
Source:
protected void verifyCollection ( java.util.List < org.ovirt.engine.api.model.StorageConnection > collection ) { org.junit.Assert.assertNotNull ( collection ) ; org.junit.Assert.assertEquals ( GUIDS.length , collection.size ( ) ) ; }

Target:
protected void verifyCollection ( java.util.List < org.ovirt.engine.api.model.StorageConnection > collection ) { org.junit.jupiter.api.Assertions.assertNotNull ( collection ) ; org.junit.jupiter.api.Assertions.assertEquals ( GUIDS.length , collection.size ( ) ) ; }
Source:
public void testGetTagIdAndChildrenIdsNotExists ( ) { org.ovirt.engine.core.common.businessentities.tags tag = createTag ( "tag1" , "desc1" ) ; java.lang.String idsStr = tagsDirector.GetTagIdAndChildrenIds ( tag.gettag_id ( ) ) ; org.junit.Assert.assertEquals ( StringUtils.EMPTY , idsStr ) ; }

Target:
public void testGetTagIdAndChildrenIdsNotExists ( ) { org.ovirt.engine.core.common.businessentities.Tags tag = createTag ( "tag1" , "desc1" ) ; java.lang.String idsStr = tagsDirector.GetTagIdAndChildrenIds ( tag.gettag_id ( ) ) ; org.junit.Assert.assertEquals ( StringUtils.EMPTY , idsStr ) ; }
Source:
public org.ovirt.engine.core.dao.DbGroupDAO getAdGroupDAO ( ) { return getDbFacade ( ) . getDbGroupDao ( ) ; }

Target:
public org.ovirt.engine.core.dao.DbGroupDao getAdGroupDao ( ) { return getDbFacade ( ) . getDbGroupDao ( ) ; }
Source:
public void setEntity ( org.ovirt.engine.core.common.businessentities.StorageDomain value ) { super . setEntity ( value ) ; }

Target:
public void setSelectedDataCentersForAttach ( java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > selectedDataCentersForAttach ) { this . selectedDataCentersForAttach = selectedDataCentersForAttach ; }
Source:
public boolean match ( org.ovirt.engine.core.common.businessentities.Disk source ) { return ( source.getDiskStorageType ( ) ) == diskStorageType ; }

Target:
public boolean match ( org.ovirt.engine.core.common.businessentities.storage.Disk source ) { return ( source.getDiskStorageType ( ) ) == diskStorageType ; }
Source:
public void forceRefresh ( ) { super . forceRefresh ( ) ; getvmBasicDiskListModel ( ) . forceRefresh ( ) ; }

Target:
public void forceRefresh ( ) { super . forceRefresh ( ) ; getVmBasicDiskListModel ( ) . forceRefresh ( ) ; }
Source:
int readRefreshRate ( ) { java.lang.String refreshRate = clientStorage.getLocalItem ( getRefreshRateItemKey ( ) ) ; try { return new java.lang.Integer ( refreshRate ) . intValue ( ) ; } catch ( java.lang.NumberFormatException e ) { return org.ovirt.engine.ui.common.widget.refresh.AbstractRefreshManager.DEFAULT_REFRESH_RATE ; } }

Target:
int readRefreshRate ( ) { java.lang.String refreshRate = clientStorage.getLocalItem ( getRefreshRateItemKey ( ) ) ; try { return new java.lang.Integer ( refreshRate ) . intValue ( ) ; } catch ( java.lang.NumberFormatException e ) { return getDefaultRefreshRate ( ) ; } }
Source:
private java.lang.String getHostId ( java.lang.String hostName ) { return getEntity ( org.ovirt.engine.core.common.businessentities.VDS.class , SearchType.VDS , ( "Hosts: name=" + hostName ) ) . getId ( ) . toString ( ) ; }

Target:
private java.lang.String getHostId ( java.lang.String hostName ) { return getEntity ( org.ovirt.engine.core.common.businessentities.VdsStatic.class , VdcQueryType.GetVdsStaticByName , new org.ovirt.engine.core.common.queries.NameQueryParameters ( hostName ) , ( "Hosts: name=" + hostName ) ) . getId ( ) . toString ( ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { dcLabels = ( ( java.util.SortedSet < java.lang.String > ) ( returnValue ) ) ; initLabelModels ( ) ; queryNetworks ( ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { allBonds = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; initNicModels ( ) ; hostSetupNetworksParametersData.allNics = allNics ; hostSetupNetworksParametersData.existingNetworkAttachments = existingNetworkAttachments ; stopProgress ( ) ; }
Source:
public java.lang.String getUserName ( ) { return isLoggedIn ( ) ? loggedUser.getUserName ( ) : null ; }

Target:
public java.lang.String getUserName ( ) { return isLoggedIn ( ) ? loggedUser.getLoginName ( ) : null ; }