auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void executionFailure ( ) { org.junit.Assert.assertEquals ( AuditLogType.NETWORK_UPDATE_NIC_FILTER_PARAMETER_FAILED , executeFailure ( ) ) ; }

Target:
public void executionFailure ( ) { org.junit.jupiter.api.Assertions.assertEquals ( AuditLogType.NETWORK_UPDATE_NIC_FILTER_PARAMETER_FAILED , executeFailure ( ) ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.network.NetworkQoS object ) { return ( object.getInboundAverage ( ) ) == null ? constants.UnlimitedNetworkQoS ( ) : object.getInboundAverage ( ) . toString ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.network.NetworkQoS object ) { return ( object.getInboundAverage ( ) ) == null ? org.ovirt.engine.ui.webadmin.section.main.view.tab.datacenter.SubTabDataCenterNetworkQoSView.constants.UnlimitedNetworkQoS ( ) : object.getInboundAverage ( ) . toString ( ) ; }
Source:
public void setDisplayType ( org.ovirt.engine.core.common.businessentities.DisplayType value ) { this . displayType = value ; }

Target:
public void setGuestOsCodename ( java.lang.String guestOsCodename ) { this . guestOsCodename = guestOsCodename ; }
Source:
public void setValue ( org.ovirt.engine.core.common.vdscommands.VDSReturnValue value ) { this . value = value ; }

Target:
protected abstract org.ovirt.engine.core.common.vdscommands.VDSFenceReturnValue fenceConcurrently ( java.util.List < org.ovirt.engine.core.common.businessentities.FenceAgent > agents ) ;
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; }

Target:
public void getPoolById ( org.ovirt.engine.ui.frontend.AsyncQuery < org.ovirt.engine.core.common.businessentities.VmPool > aQuery , org.ovirt.engine.core.compat.Guid poolId ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.CastingConverter < > ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetVmPoolById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( poolId ) , aQuery ) ; }
Source:
protected org.ovirt.engine.core.dao.VdsStaticDAO getVdsStaticDAO ( ) { return org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getDbFacade ( ) . getVdsStaticDao ( ) ; }

Target:
org.ovirt.engine.core.bll.network.cluster.UpdateClusterNetworkClusterValidator createManagementNetworkClusterValidator ( ) { return new org.ovirt.engine.core.bll.network.cluster.UpdateClusterNetworkClusterValidator ( managementNetworkCluster , org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getCompatibilityVersion ( ) ) ; }
Source:
public void testCanDoActionVdsNotFound ( ) { org.mockito.Mockito.when ( vdsDao.getAllForVdsGroupWithStatus ( groupId , VDSStatus.Up ) ) . thenReturn ( java.util.Collections.< org.ovirt.engine.core.common.businessentities.VDS > emptyList ( ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , VdcBllMessages.ACTION_TYPE_FAILED_NO_VDS_IN_POOL ) ; }

Target:
public void testCanDoActionVdsNotFound ( ) { org.mockito.Mockito.when ( vdsDao.getAllForVdsGroupWithStatus ( groupId , VDSStatus.Up ) ) . thenReturn ( java.util.Collections.< org.ovirt.engine.core.common.businessentities.VDS > emptyList ( ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_NO_VDS_IN_POOL ) ; }
Source:
protected java.util.ArrayList < org.ovirt.engine.core.compat.Guid > getTaskIdList ( ) { return ( getParameters ( ) . getParentCommand ( ) ) != ( org.ovirt.engine.core.common.action.VdcActionType.Unknown ) ? getReturnValue ( ) . getInternalVdsmTaskIdList ( ) : getReturnValue ( ) . getVdsmTaskIdList ( ) ; }

Target:
protected java.util.ArrayList < org.ovirt.engine.core.compat.Guid > getTaskIdList ( ) { return ( getParentCommandType ( ) ) != ( org.ovirt.engine.core.common.action.VdcActionType.Unknown ) ? getReturnValue ( ) . getInternalVdsmTaskIdList ( ) : getReturnValue ( ) . getVdsmTaskIdList ( ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.IVdsEventListener getVdsEventListener ( ) { return org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . getEventListener ( ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.IVdsEventListener getVdsEventListener ( ) { return getResourceManager ( ) . getEventListener ( ) ; }
Source:
public void setCreateQuotaStorageCommand ( org.ovirt.engine.ui.uicommonweb.UICommand createQuotaCommand ) { this . createQuotaStorageCommand = createQuotaCommand ; }

Target:
public void setCreateQuotaCommand ( org.ovirt.engine.ui.uicommonweb.UICommand createQuotaCommand ) { this . createQuotaCommand = createQuotaCommand ; }
Source:
private void mockDiskSao ( final org.ovirt.engine.core.dao.DiskDao diskDao ) { org.ovirt.engine.core.searchbackend.SearchObjectAutoCompleter search = new org.ovirt.engine.core.searchbackend.SearchObjectAutoCompleter ( ) ; org.mockito.Mockito.when ( diskDao.getAllWithQuery ( org.mockito.Matchers.matches ( org.ovirt.engine.core.bll.SearchQueryTest.getDiskImageRegexString ( search ) ) ) ) . thenReturn ( diskImageResultList ) ; }

Target:
private void mockDiskDao ( final org.ovirt.engine.core.dao.DiskDao diskDao ) { org.ovirt.engine.core.searchbackend.SearchObjectAutoCompleter search = new org.ovirt.engine.core.searchbackend.SearchObjectAutoCompleter ( ) ; org.mockito.Mockito.when ( diskDao.getAllWithQuery ( org.mockito.Matchers.matches ( org.ovirt.engine.core.bll.SearchQueryTest.getDiskImageRegexString ( search ) ) ) ) . thenReturn ( diskImageResultList ) ; }
Source:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { return org.ovirt.engine.core.bll.RemoveVdsGroupCommand.getSucceeded ( ) ? org.ovirt.engine.core.common.AuditLogType.USER_REMOVE_VDS_GROUP : org.ovirt.engine.core.common.AuditLogType.USER_REMOVE_VDS_GROUP_FAILED ; }

Target:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { return org.ovirt.engine.core.bll.RemoveClusterCommand.getSucceeded ( ) ? org.ovirt.engine.core.common.AuditLogType.USER_REMOVE_CLUSTER : org.ovirt.engine.core.common.AuditLogType.USER_REMOVE_CLUSTER_FAILED ; }
Source:
protected abstract boolean validateUploadToImage ( org.ovirt.engine.core.compat.Guid imageId ) ;

Target:
protected abstract boolean validateImageTransfer ( org.ovirt.engine.core.compat.Guid imageId ) ;
Source:
public void existsForNonExistingVmDevice ( ) throws java.lang.Exception { org.junit.Assert.assertFalse ( dao.exists ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) , org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ) ) ; }

Target:
public void existsForNonExistingVmDevice ( ) throws java.lang.Exception { org.junit.Assert.assertFalse ( dao.exists ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ) ) ; }
Source:
public void testQueryWithoutHostId ( ) { getQuery ( ) . setInternalExecution ( true ) ; getQuery ( ) . ExecuteCommand ( ) ; org.ovirt.engine.core.bll.CommandAssertUtils.checkSucceeded ( getQuery ( ) , true ) ; org.ovirt.engine.core.bll.GetoVirtISOsTest.checkReturnValue ( getQuery ( ) ) ; }

Target:
public void testQueryWithoutHostId ( ) { getQuery ( ) . setInternalExecution ( true ) ; getQuery ( ) . executeCommand ( ) ; org.ovirt.engine.core.bll.CommandAssertUtils.checkSucceeded ( getQuery ( ) , true ) ; org.ovirt.engine.core.bll.GetoVirtISOsTest.checkReturnValue ( getQuery ( ) ) ; }
Source:
public void setHost ( java.lang.String host ) { this . host = host ; }

Target:
public void setGuestHostName ( java.lang.String guestHostName ) { this . consoleOptions.setGuestHostName ( guestHostName ) ; }
Source:
protected void initAllowConsoleReconnect ( ) { getAllowConsoleReconnect ( ) . setEntity ( ( ( getVmType ( ) ) == ( org.ovirt.engine.core.common.businessentities.VmType.Server ) ) ) ; }

Target:
private void vmTypeChanged ( ) { behavior.vmTypeChanged ( ( ( org.ovirt.engine.core.common.businessentities.VmType ) ( getVmType ( ) . getSelectedItem ( ) ) ) ) ; }
Source:
public void statusNotMatch ( ) { storageDomainIsInactive ( ) ; org.junit.Assert.assertFalse ( cmd.checkStorageDomainStatus ( StorageDomainStatus.Active ) ) ; org.junit.Assert.assertTrue ( commandHasInvalidStatusMessage ( ) ) ; }

Target:
public void statusNotMatch ( ) { setStorageDomainStatus ( StorageDomainStatus.InActive ) ; org.junit.Assert.assertFalse ( cmd.checkStorageDomainStatus ( StorageDomainStatus.Active ) ) ; org.junit.Assert.assertTrue ( commandHasInvalidStatusMessage ( ) ) ; }
Source:
protected boolean extractBoolean ( org.ovirt.engine.ui.uicommonweb.models.vms.IVnc vnc ) { return vnc.isRemapCtrlAltDelete ( ) ; }

Target:
protected boolean extractBoolean ( org.ovirt.engine.ui.uicommonweb.models.vms.IVnc vnc ) { return vnc.getOptions ( ) . isRemapCtrlAltDelete ( ) ; }
Source:
protected static java.util.List < org.ovirt.engine.core.common.businessentities.vm_pool_map > getListOfVmsInPool ( org.ovirt.engine.core.compat.NGuid poolId ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmPoolDAO ( ) . getVmPoolsMapByVmPoolId ( poolId ) ; }

Target:
protected static java.util.List < org.ovirt.engine.core.common.businessentities.vm_pool_map > getListOfVmsInPool ( org.ovirt.engine.core.compat.NGuid poolId ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmPoolDao ( ) . getVmPoolsMapByVmPoolId ( poolId ) ; }
Source:
public org.ovirt.engine.api.resource.AttachedStorageDomainResource getAttachedStorageDomainSubResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendAttachedStorageDomainResource ( id , dataCenterId ) ) ; }

Target:
public org.ovirt.engine.api.resource.AttachedStorageDomainResource getAttachedStorageDomainSubResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendAttachedStorageDomainResource ( id , dataCenterId , org.ovirt.engine.api.restapi.resource.BackendAttachedStorageDomainsResource.SUB_COLLECTIONS ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.HypervisorType gethypervisor_type ( ) { return mVdsDynamic.gethypervisor_type ( ) ; }

Target:
public java.lang.String getlibvirt_version ( ) { return this . mVdsDynamic.getlibvirt_version ( ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VmNetworkInterface createNewInterface ( ) { org.ovirt.engine.core.common.businessentities.VmNetworkInterface iface = new org.ovirt.engine.core.common.businessentities.VmNetworkInterface ( ) ; iface.setId ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; iface.setMacAddress ( org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextString ( 10 ) ) ; return iface ; }

Target:
protected org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface createNewInterface ( ) { org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface iface = new org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface ( ) ; iface.setId ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; iface.setMacAddress ( org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextString ( 10 ) ) ; return iface ; }
Source:
protected org.springframework.jdbc.core.namedparam.MapSqlParameterSource createIdParameterMapper ( org.ovirt.engine.core.common.businessentities.DiskLunMapId id ) { return getCustomMapSqlParameterSource ( ) . addValue ( "disk_id" , id.getDiskId ( ) ) . addValue ( "lun_id" , id.getLunId ( ) ) ; }

Target:
protected org.springframework.jdbc.core.namedparam.MapSqlParameterSource createIdParameterMapper ( org.ovirt.engine.core.common.businessentities.storage.DiskLunMapId id ) { return getCustomMapSqlParameterSource ( ) . addValue ( "disk_id" , id.getDiskId ( ) ) . addValue ( "lun_id" , id.getLunId ( ) ) ; }
Source:
protected void freeCustomLocks ( ) { releaseHostDevicesLock ( ) ; }

Target:
protected boolean hasMaximumNumberOfDisks ( ) { return org.ovirt.engine.core.utils.archstrategy.ArchStrategyFactory.getStrategy ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getClusterArch ( ) ) . run ( new org.ovirt.engine.core.bll.architecture.HasMaximumNumberOfDisks ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getId ( ) ) ) . returnValue ( ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > getClusters ( ) { return getBackendCollection ( VdcQueryType.GetClustersByStoragePoolId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( dataCenterId ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > getClusters ( ) { return getBackendCollection ( QueryType.GetClustersByStoragePoolId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( dataCenterId ) ) ; }
Source:
public void shouldDetectSuspendedVM ( ) { invalidVM.setStatus ( VMStatus.Suspended ) ; org.assertj.core.api.Assertions.assertThat ( validator.isVmReadyForUpgrade ( invalidVM ) ) . contains ( UPGRADE_ERROR.VM_SUSPENDED ) ; }

Target:
public void shouldDetectSuspendedVM ( ) { invalidVM.setStatus ( VMStatus.Suspended ) ; org.assertj.core.api.Assertions.assertThat ( validator.checkVmReadyForUpgrade ( invalidVM ) ) . contains ( UpgradeError.VM_SUSPENDED ) ; }
Source:
public void add ( java.lang.Class < ? > resourceType , java.lang.Class < ? > collectionType , java.lang.Class < ? extends org.ovirt.engine.api.model.BaseResource > parentType ) { put ( parentType , new org.ovirt.engine.api.restapi.util.LinkHelper.Collection ( resourceType , collectionType , parentType ) ) ; }

Target:
public void add ( java.lang.Class < ? > resourceType , java.lang.Class < ? > collectionType , java.lang.Class < ? extends org.ovirt.engine.api.model.BaseResource > parentType ) { put ( parentType , new org.ovirt.engine.api.restapi.util.LinkHelper.ApiLocationMetadata ( resourceType , collectionType , parentType ) ) ; }
Source:
protected boolean isStorageWithSameNameExists ( ) { return ( org.ovirt.engine.core.bll.storage.domain.StorageDomainManagementCommandBase.getStorageDomainStaticDao ( ) . getByName ( getStorageDomain ( ) . getStorageName ( ) ) ) != null ; }

Target:
protected boolean isStorageWithSameNameExists ( ) { return ( storageDomainStaticDao.getByName ( getStorageDomain ( ) . getStorageName ( ) ) ) != null ; }
Source:
public void testNoStringSubstitutionWithoutSuffix ( ) { doTestNoStringSubstitution ( "AppErrors" ) ; }

Target:
public void testNoStringSubstitutionWithSuffix ( ) { doTestNoStringSubstitution ( org.ovirt.engine.core.utils.ErrorTranslatorTest.FILENAME_WITH_SUFFIX ) ; }
Source:
protected org.ovirt.engine.core.common.action.VdcActionParametersBase getRemoveParameters ( java.lang.String id ) { org.ovirt.engine.core.common.action.WatchdogParameters watchdogParameters = new org.ovirt.engine.core.common.action.WatchdogParameters ( ) ; watchdogParameters.setId ( parentId ) ; watchdogParameters.setVm ( isVm ( parentId ) ) ; return watchdogParameters ; }

Target:
protected org.ovirt.engine.core.common.action.VdcActionParametersBase getRemoveParameters ( java.lang.String id ) { org.ovirt.engine.core.common.action.WatchdogParameters watchdogParameters = new org.ovirt.engine.core.common.action.WatchdogParameters ( ) ; watchdogParameters.setId ( parentId ) ; watchdogParameters.setVm ( parentIsVm ) ; return watchdogParameters ; }
Source:
public static org.ovirt.engine.api.model.DiskInterface map ( org.ovirt.engine.api.model.DiskInterface diskInterface , org.ovirt.engine.api.model.DiskInterface template ) { switch ( diskInterface ) { case IDE : return org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.DiskInterface ; case VIRTIO : return org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.DiskInterface ; default : return null ; } }

Target:
public static org.ovirt.engine.api.model.DiskInterface map ( org.ovirt.engine.api.model.DiskInterface diskInterface , org.ovirt.engine.api.model.DiskInterface template ) { switch ( diskInterface ) { case IDE : return org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.DiskInterface ; case VIRTIO : return org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.DiskInterface ; case VIRTIO_SCSI : return org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.DiskInterface ; default : return null ; } }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.SessionsListReturnForXmlRpc getSessionList ( ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterHookEnable ( java.lang.String glusterCommand , java.lang.String stage , java.lang.String hookName ) ;
Source:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getSharedLocks ( ) { return java.util.Collections.singletonMap ( getParameters ( ) . getContainerId ( ) . toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.REMOTE_VM , getVmIsBeingImportedMessage ( ) ) ) ; }

Target:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getSharedLocks ( ) { return java.util.Collections.singletonMap ( getParameters ( ) . getContainerId ( ) . toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.REMOTE_VM , org.ovirt.engine.core.bll.ImportVmCommand.getVmIsBeingImportedMessage ( ) ) ) ; }
Source:
protected org.ovirt.engine.core.bll.validator.storage.DiskValidator getDiskValidator ( org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage ) { return new org.ovirt.engine.core.bll.validator.storage.DiskValidator ( diskImage , org.ovirt.engine.core.bll.storage.disk.image.UploadDiskImageCommand.getVmDeviceUtils ( ) ) ; }

Target:
protected org.ovirt.engine.core.bll.validator.storage.DiskImagesValidator getDiskImagesValidator ( org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage ) { return new org.ovirt.engine.core.bll.validator.storage.DiskImagesValidator ( diskImage ) ; }
Source:
public final int [ ] getRequiredTokens ( ) { return getDefaultTokens ( ) ; }

Target:
public int [ ] getAcceptableTokens ( ) { return getDefaultTokens ( ) ; }
Source:
protected org.ovirt.engine.core.common.vdscommands.StorageServerConnectionManagementVDSParameters createParametersForVdsm ( org.ovirt.engine.core.compat.Guid vdsmId , org.ovirt.engine.core.compat.Guid storagePoolId , org.ovirt.engine.core.common.businessentities.StorageType storageType , org.ovirt.engine.core.common.businessentities.StorageServerConnections storageServerConnection ) { org.ovirt.engine.core.common.vdscommands.StorageServerConnectionManagementVDSParameters newConnectionParametersForVdsm = new org.ovirt.engine.core.common.vdscommands.StorageServerConnectionManagementVDSParameters ( vdsmId , storagePoolId , storageType , new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageServerConnections > ( java.util.Arrays.asList ( storageServerConnection ) ) ) ; return newConnectionParametersForVdsm ; }

Target:
protected org.ovirt.engine.core.common.vdscommands.StorageServerConnectionManagementVDSParameters createParametersForVdsm ( org.ovirt.engine.core.compat.Guid vdsmId , org.ovirt.engine.core.compat.Guid storagePoolId , org.ovirt.engine.core.common.businessentities.storage.StorageType storageType , org.ovirt.engine.core.common.businessentities.StorageServerConnections storageServerConnection ) { org.ovirt.engine.core.common.vdscommands.StorageServerConnectionManagementVDSParameters newConnectionParametersForVdsm = new org.ovirt.engine.core.common.vdscommands.StorageServerConnectionManagementVDSParameters ( vdsmId , storagePoolId , storageType , new java.util.ArrayList ( java.util.Arrays.asList ( storageServerConnection ) ) ) ; return newConnectionParametersForVdsm ; }
Source:
protected void failedToRunVm ( ) { if ( memoryFromSnapshotIrrelevant ) { removeMemoryFromActiveSnapshot ( ) ; } super . failedToRunVm ( ) ; }

Target:
protected void runningFailed ( ) { if ( memoryFromSnapshotIrrelevant ) { removeMemoryFromActiveSnapshot ( ) ; } super . runningFailed ( ) ; }
Source:
protected boolean validateVmArchitecture ( ) { return ( org.ovirt.engine.core.bll.ImportVmCommandBase.getVm ( ) . getClusterArch ( ) ) == ( org.ovirt.engine.core.common.businessentities.ArchitectureType.undefined ) ? failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_VM_CANNOT_IMPORT_VM_WITH_NOT_SUPPORTED_ARCHITECTURE ) : true ; }

Target:
protected boolean validateVmArchitecture ( ) { return ( org.ovirt.engine.core.bll.ImportVmCommandBase.getVm ( ) . getClusterArch ( ) ) == ( org.ovirt.engine.core.common.businessentities.ArchitectureType.undefined ) ? failValidation ( EngineMessage.ACTION_TYPE_FAILED_VM_CANNOT_IMPORT_VM_WITH_NOT_SUPPORTED_ARCHITECTURE ) : true ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.QuotaVdsGroup > getQuotaVdsGroupByQuotaGuidWithGeneralDefault ( org.ovirt.engine.core.compat.Guid quotaId ) ;

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.QuotaCluster > getQuotaClusterByQuotaGuidWithGeneralDefault ( org.ovirt.engine.core.compat.Guid quotaId ) ;
Source:
public void testGetTreeForEntityWithRoleTypeFilteredWithPermissions ( ) { baseTestGetTreeForEntityFiltered ( org.ovirt.engine.core.dao.PermissionDAOTest.STORAGE_ENTITY_ID , VdcObjectType.Storage , org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , true ) ; }

Target:
public void testGetTreeForEntityWithRoleTypeFilteredWithPermissions ( ) { baseTestGetTreeForEntityFiltered ( org.ovirt.engine.core.dao.PermissionDAOTest.STORAGE_ENTITY_ID , VdcObjectType.Storage , org.ovirt.engine.core.dao.PRIVILEGED_USER_SESSION_ID , true ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VmPool mockVmPools ( ) { org.ovirt.engine.core.common.businessentities.VmPool pool = new org.ovirt.engine.core.common.businessentities.VmPool ( ) ; pool.setvm_pool_name ( "simplePoolName" ) ; pool.setvds_group_id ( vdsGroupId ) ; pool.setvm_pool_id ( vmPoolId ) ; return pool ; }

Target:
private org.ovirt.engine.core.common.businessentities.VmPool mockVmPools ( ) { org.ovirt.engine.core.common.businessentities.VmPool pool = new org.ovirt.engine.core.common.businessentities.VmPool ( ) ; pool.setVmPoolName ( "simplePoolName" ) ; pool.setVdsGroupId ( vdsGroupId ) ; pool.setVmPoolId ( vmPoolId ) ; return pool ; }
Source:
public void execute ( ) { initAllPlugins ( ) ; }

Target:
public void setPluginsReadyCallback ( org.ovirt.engine.ui.webadmin.plugin.PluginManager.PluginsReadyCallback callback ) { this . pluginsReadyCallback = callback ; }
Source:
public static boolean osNameExists ( java.lang.Integer osId ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.osNames.keySet ( ) . contains ( osId ) ; }

Target:
public int compare ( java.lang.Integer o1 , java.lang.Integer o2 ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.osNames.get ( o1 ) . compareTo ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.osNames.get ( o2 ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.network.VnicProfile > getAllForNetwork ( org.ovirt.engine.core.compat.Guid networkId ) { return getAllForNetwork ( networkId , null , false ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.network.VnicProfile createVnicProfileEntity ( ) { return new org.ovirt.engine.core.common.businessentities.network.VnicProfile ( ) ; }
Source:
public java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runInternalMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < 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:
protected org.ovirt.engine.core.common.queries.QueryReturnValue runQueryImpl ( org.ovirt.engine.core.common.queries.QueryType actionType , org.ovirt.engine.core.common.queries.QueryParametersBase parameters , boolean isPerformUserCheck ) { return runQueryImpl ( actionType , parameters , isPerformUserCheck , null ) ; }
Source:
private void numOfVfsInValidRange ( boolean isValid ) { org.mockito.Mockito.when ( validator.numOfVfsInValidRange ( param.getNumOfVfs ( ) ) ) . thenReturn ( ( isValid ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_NUM_OF_VFS_NOT_IN_VALID_RANGE ) ) ) ; }

Target:
private void numOfVfsInValidRange ( boolean isValid ) { org.mockito.Mockito.when ( validator.numOfVfsInValidRange ( param.getNumOfVfs ( ) ) ) . thenReturn ( ( isValid ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_NUM_OF_VFS_NOT_IN_VALID_RANGE ) ) ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { cpuPinningLabel.setVisible ( vm.getCpuPinning ( ) . getIsAvailable ( ) ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { cpuPinningLabel.setVisible ( vm.getCpuPinning ( ) . getIsChangable ( ) ) ; }
Source:
public void testGetAllRolesForUserAndGroupByAdElement ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.roles > result = dao.getAllForAdElement ( org.ovirt.engine.core.dao.RoleDAOTest.AD_ELEMENT_ID ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllRolesForUserAndGroupByAdElement ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.roles > result = dao.getAllForAdElement ( org.ovirt.engine.core.dao.RoleDAOTest.USER_ID ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }
Source:
protected abstract java.lang.String getAdditionalInformation ( ) ;

Target:
protected java.lang.String getAdditionalInformation ( ) { return "" ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { removeListeners ( model ) ; hideAndUnbind ( ) ; }

Target:
public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { getView ( ) . edit ( model ) ; }
Source:
public void testGetAllVmTagsWithIds ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.tags > result = dao.getAllVmTagsWithIds ( existingTag.gettag_id ( ) . toString ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllVmTagsWithIds ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Tags > result = dao.getAllVmTagsWithIds ( existingTag.gettag_id ( ) . toString ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }
Source:
private java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runMultipleActionsImpl ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , boolean isInternal , boolean isRunOnlyIfAllCanDoPass ) { return runMultipleActionsImpl ( actionType , parameters , isInternal , isRunOnlyIfAllCanDoPass , null ) ; }

Target:
public java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runInternalMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , org.ovirt.engine.core.bll.job.ExecutionContext executionContext ) { return runMultipleActionsImpl ( actionType , parameters , true , false , false , executionContext ) ; }
Source:
public org.ovirt.engineextensions.aaa.ldap.ASN1OctetString decode ( java.lang.String value , org.ovirt.engineextensions.aaa.ldap.MapProperties props ) { try { return new org.ovirt.engineextensions.aaa.ldap.ASN1OctetString ( java.util.Base64.decode ( value ) ) ; } catch ( java.text.ParseException e ) { throw new java.lang.RuntimeException ( e ) ; } }

Target:
public com.unboundid.asn1.ASN1OctetString decode ( java.lang.String value , org.ovirt.engineextensions.aaa.ldap.MapProperties props ) { try { return new com.unboundid.asn1.ASN1OctetString ( com.unboundid.util.Base64.decode ( value ) ) ; } catch ( java.text.ParseException e ) { throw new java.lang.RuntimeException ( e ) ; } }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { updateTooltips ( model ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { updateTooltips ( model ) ; clusterPolicyPropertiesZone.setVisible ( showClusterPolicyPropertiesZone ( model ) ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid getSourceDomainId ( org.ovirt.engine.core.common.businessentities.storage.DiskImage image ) { return getParameters ( ) . getSourceDomainId ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid getSourceDomainId ( org.ovirt.engine.core.common.businessentities.storage.DiskImage image ) { return org.ovirt.engine.core.bll.ImportVmCommand.getParameters ( ) . getSourceDomainId ( ) ; }
Source:
public org.ovirt.engine.api.resource.StatisticResource getStatisticSubResource ( java.lang.String id ) { return org.ovirt.engine.api.restapi.resource.BackendStatisticsResource.inject ( new org.ovirt.engine.api.restapi.resource.BackendStatisticResource < R , Q > ( id , entityType , subjectId , query ) ) ; }

Target:
public org.ovirt.engine.api.resource.StatisticResource getStatisticResource ( java.lang.String id ) { return org.ovirt.engine.api.restapi.resource.BackendStatisticsResource.inject ( new org.ovirt.engine.api.restapi.resource.BackendStatisticResource < R , Q > ( id , entityType , subjectId , query ) ) ; }
Source:
public org.ovirt.engine.ui.common.idhandler.CellWithElementId < C > getCell ( ) { return ( ( org.ovirt.engine.ui.common.idhandler.CellWithElementId < C > ) ( getCell ( ) ) ) ; }

Target:
public java.lang.String getSortBy ( ) { return sortBy ; }
Source:
public org.ovirt.engine.core.common.queries.VdcQueryReturnValue runQuery ( org.ovirt.engine.core.common.queries.VdcQueryType actionType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters ) { return runQueryImpl ( actionType , parameters , true , null ) ; }

Target:
public org.ovirt.engine.core.common.queries.QueryReturnValue runInternalQuery ( org.ovirt.engine.core.common.queries.QueryType actionType , org.ovirt.engine.core.common.queries.QueryParametersBase parameters , org.ovirt.engine.core.bll.context.EngineContext engineContext ) { return runQueryImpl ( actionType , parameters , false , engineContext ) ; }
Source:
public T flush ( ) { profilesEditor.flush ( ) ; return null ; }

Target:
public T flush ( ) { profilesEditor.flush ( ) ; subnetWidget.flush ( ) ; return null ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult notLabeled ( ) { return ! ( org.ovirt.engine.core.utils.NetworkUtils.isLabeled ( network ) ) ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_NETWORK_ALREADY_LABELED ) ; }

Target:
private org.ovirt.engine.core.common.errors.VdcBllMessages getNetworkInUseValidationMessage ( int numberOfEntities ) { boolean singular = numberOfEntities == 1 ; if ( singular ) { return org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_NETWORK_IN_ONE_USE ; } else { return org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_NETWORK_IN_MANY_USES ; } }
Source:
public boolean isWipeAfterDelete ( ) { return wipeAfterDelete ; }

Target:
public boolean isWipeAfterDelete ( ) { if ( isWipeAfterDeleteSet ( ) ) { return wipeAfterDelete ; } return false ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.Network createNetwork ( org.ovirt.engine.core.compat.Guid managementNetworkId ) { org.ovirt.engine.core.common.businessentities.network.Network network = new org.ovirt.engine.core.common.businessentities.network.Network ( ) ; network.setId ( managementNetworkId ) ; return network ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.Network createNetwork ( org.ovirt.engine.core.compat.Guid networkId ) { org.ovirt.engine.core.common.businessentities.network.Network network = new org.ovirt.engine.core.common.businessentities.network.Network ( ) ; network.setId ( networkId ) ; return network ; }
Source:
public void lowerVersionHostsAndNetwork ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addHostsToCluster ( ) ; addNonManagementNetworkToPool ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_CANNOT_DECREASE_DATA_CENTER_COMPATIBILITY_VERSION ) ; }

Target:
public void lowerVersionHostsNoNetwork ( ) { cmd.getStoragePool ( ) . setCompatibilityVersion ( org.ovirt.engine.core.bll.storage.pool.UpdateStoragePoolCommandTest.VERSION_1_0 ) ; addNonDefaultClusterToPool ( ) ; addHostsToCluster ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( cmd ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetTagUserGroupMapByTagNameQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getTagDAO ( ) . getTagUserGroupMapsForTagName ( org.ovirt.engine.core.bll.GetTagUserGroupMapByTagNameQuery.getParameters ( ) . getTagName ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetTagUserGroupMapByTagNameQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getTagDao ( ) . getTagUserGroupMapsForTagName ( org.ovirt.engine.core.bll.GetTagUserGroupMapByTagNameQuery.getParameters ( ) . getTagName ( ) ) ) ; }
Source:
public java.lang.Integer getMaxVmNameLength ( ) { java.lang.Integer maxVmNameLengthNonWindows = ( ( java.lang.Integer ) ( getConfigValuePreConverted ( ConfigurationValues.MaxVmNameLength ) ) ) ; if ( maxVmNameLengthNonWindows == null ) { return 64 ; } return maxVmNameLengthNonWindows ; }

Target:
public java.lang.Integer getMaxVmNameLength ( ) { java.lang.Integer maxVmNameLength = ( ( java.lang.Integer ) ( getConfigValuePreConverted ( ConfigurationValues.MaxVmNameLength ) ) ) ; if ( maxVmNameLength == null ) { return 64 ; } return maxVmNameLength ; }
Source:
public java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.VM > runInTransaction ( ) { return getDbFacade ( ) . getVmDAO ( ) . getAllRunningByVds ( _vds.getId ( ) ) ; }

Target:
public java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.VM > runInTransaction ( ) { return getDbFacade ( ) . getVmDao ( ) . getAllRunningByVds ( _vds.getId ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VDS getEntity ( ) { return getEntity ( org.ovirt.engine.core.common.businessentities.VDS.class , VdcQueryType.GetVdsByVdsId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) , id ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VDS getEntity ( ) { return getEntity ( org.ovirt.engine.core.common.businessentities.VDS.class , QueryType.GetVdsByVdsId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) , id ) ; }
Source:
public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { PostPrepareSanStorageForEdit ( model , true ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { PostPrepareSanStorageForEdit ( model , true ) ; }
Source:
protected boolean matchEntity ( org.ovirt.engine.core.common.businessentities.VmNetworkInterface entity , java.lang.String name ) { return ( name != null ) && ( name.equals ( entity.getName ( ) ) ) ; }

Target:
protected boolean matchEntity ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface entity , java.lang.String name ) { return ( name != null ) && ( name.equals ( entity.getName ( ) ) ) ; }
Source:
public void OnSuccess ( java.lang.Object model , java.lang.Object returnValue ) { java.util.List < org.ovirt.engine.core.common.businessentities.Network > networks = ( ( java.util.List < org.ovirt.engine.core.common.businessentities.Network > ) ( returnValue ) ) ; allNetworks = networks ; initNetworkModels ( ) ; queryInterfaces ( ) ; }

Target:
public void OnSuccess ( java.lang.Object model , java.lang.Object returnValue ) { java.util.List < org.ovirt.engine.core.common.businessentities.Network > networks = ( ( java.util.List < org.ovirt.engine.core.common.businessentities.Network > ) ( returnValue ) ) ; allNetworks = networks ; initNetworkModels ( ) ; initDcNetworkParams ( ) ; queryInterfaces ( ) ; }
Source:
private org.ovirt.engine.core.dao.EngineSessionDAODbFacadeImpl.EngineSessionParameterSource getEngineSessionParameterSource ( org.ovirt.engine.core.common.businessentities.EngineSession session ) { return new org.ovirt.engine.core.dao.EngineSessionDAODbFacadeImpl.EngineSessionParameterSource ( dialect , session ) ; }

Target:
private org.ovirt.engine.core.dao.EngineSessionDAODbFacadeImpl.EngineSessionParameterSource getEngineSessionParameterSource ( org.ovirt.engine.core.common.businessentities.EngineSession session ) { return new org.ovirt.engine.core.dao.EngineSessionDAODbFacadeImpl.EngineSessionParameterSource ( getDialect ( ) , session ) ; }
Source:
private java.util.List < org.ovirt.engine.api.model.PowerManagement > getPowerManagers ( org.ovirt.engine.api.model.Version version ) { return org.ovirt.engine.api.restapi.util.FenceOptionsParser.parse ( getConfigurationValue ( java.lang.String.class , ConfigurationValues.VdsFenceOptionMapping , version ) , getConfigurationValue ( java.lang.String.class , ConfigurationValues.VdsFenceOptionTypes , version ) , true ) ; }

Target:
private java.util.List < org.ovirt.engine.api.model.PowerManagement > getPowerManagers ( org.ovirt.engine.api.model.Version version ) { return org.ovirt.engine.api.restapi.util.FenceOptionsParser.parse ( getFenceConfigurationValue ( java.lang.String.class , ConfigurationValues.VdsFenceOptionMapping , version ) , getConfigurationValue ( java.lang.String.class , ConfigurationValues.VdsFenceOptionTypes , version ) , true ) ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult a ) { stopProgress ( a.getState ( ) ) ; }

Target:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult a ) { stopProgress ( a.getState ( ) ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase RunAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue = notAllowToRunAction ( actionType ) ; if ( returnValue != null ) { return returnValue ; } return runActionImpl ( actionType , parameters , false , null ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase runAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue = notAllowToRunAction ( actionType ) ; if ( returnValue != null ) { return returnValue ; } return runActionImpl ( actionType , parameters , false , null ) ; }
Source:
public void setTextAndStyle ( java.lang.String text , java.lang.String backgroundStyle , java.lang.String foregroundStyle ) { this . backgroundStyle = backgroundStyle ; this . foregroundStyle = foregroundStyle ; setFadeText ( text ) ; }

Target:
public void setTextAndStyle ( java.lang.String text , java.lang.String backgroundStyle , java.lang.String foregroundStyle ) { this . backgroundStyle = backgroundStyle ; this . foregroundStyle = foregroundStyle ; statusLabel.setFadeText ( text ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { getConnectivityTimeout ( ) . setEntity ( ( ( java.lang.Integer ) ( returnValue ) ) ) ; postOnSetupNetworks ( ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { allNetworks = ( ( java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > ) ( returnValue ) ) ; queryInterfaces ( ) ; }
Source:
private org.ovirt.engine.core.dao.VdsDao mockVdsDao ( ) { org.ovirt.engine.core.dao.VdsDao mock = org.mockito.Mockito.mock ( org.ovirt.engine.core.dao.VdsDao.class ) ; org.mockito.Mockito.when ( mock.getFirstUpRhelForCluster ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( vdsFromDb ) ; return mock ; }

Target:
private org.ovirt.engine.core.dao.VdsDao mockVdsDao ( ) { org.ovirt.engine.core.dao.VdsDao mock = org.mockito.Mockito.mock ( org.ovirt.engine.core.dao.VdsDao.class ) ; org.mockito.Mockito.when ( mock.getFirstUpRhelForCluster ( clusterId ) ) . thenReturn ( vdsFromDb ) ; return mock ; }
Source:
public void validateGenerateVmNameEndsWithMask ( ) { junit.framework.Assert.assertEquals ( "mypool170" , org.ovirt.engine.core.utils.NameForVmInPoolGenerator.generateVmName ( "mypool???" . replace ( '?' , VmPool.MASK_CHARACTER ) , 170 ) ) ; }

Target:
public void validateGenerateVmNameEndsWithMask ( ) { org.ovirt.engine.core.utils.NameForVmInPoolGenerator generator = createNameForVmInPoolGenerator ( "mypool???" ) ; for ( int i = 1 ; i < 101 ; ++ i ) { generator.generateVmName ( ) ; } junit.framework.Assert.assertEquals ( "mypool101" , generator.generateVmName ( ) ) ; }
Source:
protected void EntityPropertyChanged ( java.lang.Object sender , org.ovirt.engine.core.compat.PropertyChangedEventArgs e ) { super . EntityPropertyChanged ( sender , e ) ; if ( e.PropertyName.equals ( "status" ) ) { UpdateActionAvailability ( ) ; } }

Target:
protected void EntityPropertyChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . EntityPropertyChanged ( sender , e ) ; if ( e.PropertyName.equals ( "status" ) ) { UpdateActionAvailability ( ) ; } }
Source:
public void setHasReinstallAlertInstallFailed ( boolean value ) { if ( ( hasReinstallAlertInstallFailed ) != value ) { hasReinstallAlertInstallFailed = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "HasReinstallAlertInstallFailed" ) ) ; } }

Target:
public void setHasReinstallAlertInstallFailed ( boolean value ) { if ( ( hasReinstallAlertInstallFailed ) != value ) { hasReinstallAlertInstallFailed = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "HasReinstallAlertInstallFailed" ) ) ; } }
Source:
public final void removeSessionOnLogout ( java.lang.String sessionId ) { removeSessionImpl ( sessionId , Acct.ReportReason.PRINCIPAL_LOGOUT , "Prinicial %1$s has performed logout" , getPrincipalName ( sessionId ) ) ; }

Target:
public final void removeSessionOnLogout ( java.lang.String sessionId ) { removeSessionImpl ( sessionId , Acct.ReportReason.PRINCIPAL_LOGOUT , "Prinicial %1$s has performed logout" , getUserName ( sessionId ) ) ; }
Source:
public void persistCommand ( org.ovirt.engine.core.common.businessentities.CommandEntity cmdEntity , org.ovirt.engine.core.bll.context.CommandContext cmdContext ) { initChildHierarchy ( ) ; if ( org.ovirt.engine.core.compat.Guid.isNullOrEmpty ( cmdEntity.getId ( ) ) ) { return ; } persistCommand ( cmdEntity ) ; saveCommandContext ( cmdEntity.getId ( ) , cmdContext ) ; }

Target:
public void persistCommandAssociatedEntities ( java.util.Collection < org.ovirt.engine.core.common.businessentities.CommandAssociatedEntity > cmdAssociatedEntities ) { commandsRepository.getCommandsCache ( ) . persistCommandAssociatedEntities ( cmdAssociatedEntities ) ; }
Source:
public java.lang.String toString ( ) { return getQualifiedName ( ) ; }

Target:
public java.lang.String toString ( ) { return ( ( ( getQualifiedName ( ) ) + "(" ) + ( serverName ) ) + ")" ; }
Source:
public void replaceWithSingleItem ( ) { java.util.List < java.lang.Object > items = java.util.Collections.< java.lang.Object > singletonList ( org.ovirt.engine.core.utils.ReplacementUtilsTest.PROPERTY_VALUE ) ; java.lang.String [ ] messageItems = org.ovirt.engine.core.utils.ReplacementUtils.replaceWith ( org.ovirt.engine.core.utils.ReplacementUtilsTest.PROPERTY_NAME , items ) ; validateMessageItems ( messageItems , items ) ; }

Target:
public void replaceWithSingleItem ( ) { java.util.List < java.lang.Object > items = java.util.Collections.< java.lang.Object > singletonList ( org.ovirt.engine.core.utils.ReplacementUtilsTest.PROPERTY_VALUE ) ; validateReplacements ( org.ovirt.engine.core.utils.ReplacementUtils.replaceWith ( org.ovirt.engine.core.utils.ReplacementUtilsTest.PROPERTY_NAME , items ) , items ) ; }
Source:
private void assertGetResult ( org.ovirt.engine.core.common.businessentities.VM result ) { org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( result , existingVm ) ; }

Target:
private void assertGetResult ( org.ovirt.engine.core.common.businessentities.VM result ) { org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( "Vm db generation wasn't loaded as expected" , 1 , result.getDbGeneration ( ) ) ; org.junit.Assert.assertEquals ( result , existingVm ) ; }
Source:
public void updateAllDiskImageDynamicWithDiskId ( java.util.Collection < org.ovirt.engine.core.common.businessentities.DiskImageDynamic > diskImageDynamic ) ;

Target:
public void updateAllDiskImageDynamicWithDiskIdByVmId ( java.util.Collection < org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.DiskImageDynamic > > diskImageDynamic ) ;
Source:
protected int getRerties ( ) { return org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.FenceStopStatusRetries ) ; }

Target:
protected int getWaitForStatusRerties ( ) { return org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.FenceStopStatusRetries ) ; }
Source:
java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > RunMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , boolean isRunOnlyIfAllCanDoPass ) ;

Target:
java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , boolean isRunOnlyIfAllCanDoPass ) ;
Source:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand ) { setWindow ( null ) ; setWindow ( importVmsModel ) ; }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand ) { model.onRestoreVms ( new org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback ( ) { @ java.lang.Override public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { setWindow ( null ) ; } } ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.OriginType getRawValue ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.VmTemplate ) ( object ) ) . getorigin ( ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.OriginType getRawValue ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.VmTemplate ) ( object ) ) . getOrigin ( ) ; }