auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public org.ovirt.engine.core.bll.ValidationResult providerTypeValid ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.ACTION_TYPE_FAILED_PROVIDER_TYPE_MISMATCH ) . when ( ( ( provider.getType ( ) ) != ( org.ovirt.engine.core.common.businessentities.ProviderType.OPENSTACK_NETWORK ) ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult providerTypeValid ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.ACTION_TYPE_FAILED_PROVIDER_TYPE_MISMATCH ) . when ( ( ( provider.getType ( ) ) != ( org.ovirt.engine.core.common.businessentities.ProviderType.OPENSTACK_NETWORK ) ) ) ; }
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:
public java.lang.String getValue ( java.lang.Object object ) { return java.lang.String.valueOf ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportTemplateData ) ( object ) ) . getTemplate ( ) . getNumOfCpus ( ) ) ; }
Source:
public javax.ws.rs.core.Response deactivate ( org.ovirt.engine.api.model.Action action ) { return doAction ( VdcActionType.MaintenanceNumberOfVdss , new org.ovirt.engine.core.common.action.MaintenanceNumberOfVdssParameters ( asList ( guid ) , false ) , action ) ; }

Target:
public javax.ws.rs.core.Response deactivate ( org.ovirt.engine.api.model.Action action ) { return doAction ( VdcActionType.MaintenanceNumberOfVdss , new org.ovirt.engine.core.common.action.MaintenanceNumberOfVdssParameters ( asList ( guid ) , false , ( action.isSetReason ( ) ? action.getReason ( ) : null ) ) , action ) ; }
Source:
public void setMainTabSelectedItem ( org.ovirt.engine.core.common.businessentities.VDS selectedItem ) { org.ovirt.engine.ui.webadmin.section.main.view.tab.host.SubTabHostHardwareView.Driver.driver.edit ( getDetailModel ( ) ) ; formBuilder.showForm ( getDetailModel ( ) ) ; }

Target:
public void setMainTabSelectedItem ( org.ovirt.engine.core.common.businessentities.VDS selectedItem ) { driver.edit ( getDetailModel ( ) ) ; formBuilder.showForm ( getDetailModel ( ) ) ; }
Source:
public void lowerVersionNoHostsNoNetwork ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }

Target:
public void unsupportedVersion ( ) { storagePoolWithInvalidVersion ( ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , org.ovirt.engine.core.bll.utils.VersionSupport.getUnsupportedVersionMessage ( ) ) ; }
Source:
public void vmNetworkWhenSupported ( ) throws java.lang.Exception { vmNetworkSetupTest ( ValidationResult.VALID , true , true ) ; }

Target:
public void vmNetworkWhenSupported ( ) throws java.lang.Exception { vmNetworkSetupTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , true , true ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.DbUser initUser ( ) { return org.ovirt.engine.core.bll.session.SessionDataContainer.getInstance ( ) . getUser ( engineContext.getSessionId ( ) , parameters.getRefresh ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.DbUser initUser ( ) { return org.ovirt.engine.core.bll.aaa.SessionDataContainer.getInstance ( ) . getUser ( engineContext.getSessionId ( ) , parameters.getRefresh ( ) ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.network.pseudo.NetworkLabel > getHostNicLabels ( org.ovirt.engine.core.compat.Guid hostNicId ) { return getBackendCollection ( VdcQueryType.GetNetworkLabelsByHostNicId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( hostNicId ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.network.pseudo.NetworkLabel > getHostNicLabels ( org.ovirt.engine.core.compat.Guid hostNicId ) { return getBackendCollection ( QueryType.GetNetworkLabelsByHostNicId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( hostNicId ) ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > getVmInterfaces ( ) { if ( ( _vmInterfaces ) == null ) { _vmInterfaces = vmFromConfiguration.getInterfaces ( ) ; } return _vmInterfaces ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNic > getVmInterfaces ( ) { if ( ( _vmInterfaces ) == null ) { _vmInterfaces = org.ovirt.engine.core.common.businessentities.Entities.< org.ovirt.engine.core.common.businessentities.network.VmNic , org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > upcast ( vmFromConfiguration.getInterfaces ( ) ) ; } return _vmInterfaces ; }
Source:
public static void isNextRunConfigurationChanged ( org.ovirt.engine.core.common.businessentities.VM original , org.ovirt.engine.core.common.businessentities.VM updated , org.ovirt.engine.core.common.action.VmManagementParametersBase updateVmParameters , org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetVmUpdatesOnNextRunExists , new org.ovirt.engine.core.common.queries.GetVmUpdatesOnNextRunExistsParameters ( original , updated , updateVmParameters ) , aQuery ) ; }

Target:
public static void getVmChangedFieldsForNextRun ( org.ovirt.engine.core.common.businessentities.VM original , org.ovirt.engine.core.common.businessentities.VM updated , org.ovirt.engine.core.common.action.VmManagementParametersBase updateVmParameters , org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetVmChangedFieldsForNextRun , new org.ovirt.engine.core.common.queries.GetVmChangedFieldsForNextRunParameters ( original , updated , updateVmParameters ) , aQuery ) ; }
Source:
public void onUserPortalModelInit ( org.ovirt.engine.ui.userportal.uicommon.model.UserPortalModelInitEvent event ) { listenOnSelectedItemChanged ( modelProvider ) ; }

Target:
public void onUserPortalModelInit ( org.ovirt.engine.ui.userportal.uicommon.model.UserPortalModelInitEvent event ) { updateListModel ( listModelProvider.getModel ( ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( org.ovirt.engine.core.common.businessentities.VM ) ( source ) ) : null ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; }
Source:
public void testCanDoActionVmNotDown ( ) { vm.setStatus ( VMStatus.Up ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_VM_IS_NOT_DOWN ) ; }

Target:
public void testValidateVmNotDown ( ) { vm.setStatus ( VMStatus.Up ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_VM_IS_NOT_DOWN ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getvm_id ( ) { return this . vmId ; }

Target:
public void setStoragePoolName ( java.lang.String storagePoolName ) { this . storagePoolName = storagePoolName ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) . intValue ( ) : 2047 ; }

Target:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) . intValue ( ) : 1000 ; }
Source:
public void testCDAStoragePoolHasTasks ( ) { java.util.List < org.ovirt.engine.core.compat.Guid > tasks = java.util.Arrays.asList ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.mockito.Mockito.doReturn ( tasks ) . when ( asyncTaskDaoMock ) . getAsyncTaskIdsByStoragePoolId ( storagePoolId ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( "canDoAction did not fail on a Storage Pool with running tasks" , command , VdcBllMessages.CANNOT_FORCE_SELECT_SPM_STORAGE_POOL_HAS_RUNNING_TASKS ) ; }

Target:
public void testCDAStoragePoolHasTasks ( ) { java.util.List < org.ovirt.engine.core.compat.Guid > tasks = java.util.Arrays.asList ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.mockito.Mockito.doReturn ( tasks ) . when ( asyncTaskDaoMock ) . getAsyncTaskIdsByStoragePoolId ( storagePoolId ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( "canDoAction did not fail on a Storage Pool with running tasks" , command , EngineMessage.CANNOT_FORCE_SELECT_SPM_STORAGE_POOL_HAS_RUNNING_TASKS ) ; }
Source:
private void initSearchDependencies ( ) { org.ovirt.engine.core.common.utils.SimpleDependecyInjector.getInstance ( ) . bind ( new org.ovirt.engine.core.searchbackend.OsValueAutoCompleter ( OsRepositoryImpl.INSTANCE.getUniqueOsNames ( ) ) ) ; }

Target:
private void initSearchDependencies ( ) { org.ovirt.engine.core.common.utils.SimpleDependecyInjector.getInstance ( ) . bind ( new org.ovirt.engine.core.searchbackend.OsValueAutoCompleter ( org.ovirt.engine.core.common.utils.SimpleDependecyInjector.getInstance ( ) . get ( org.ovirt.engine.core.common.osinfo.OsRepository.class ) . getUniqueOsNames ( ) ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > getTemplatesUsingProfile ( ) { return getDbFacade ( ) . getVmTemplateDao ( ) . getAllForCpuProfile ( getProfile ( ) . getId ( ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.profiles.CpuProfile > getProfilesByParentEntity ( ) { return cpuProfileDao.getAllForCluster ( getCluster ( ) . getId ( ) ) ; }
Source:
private void architectureIsNotUpdatable ( ) { org.mockito.Mockito.doReturn ( ArchitectureType.ppc64 ) . when ( cmd ) . getArchitecture ( ) ; }

Target:
private void architectureIsNotUpdatable ( ) { org.mockito.Mockito.doReturn ( false ) . when ( cmd ) . isArchitectureUpdatable ( ) ; }
Source:
private void DisconnectStorage ( ) { getStorageHelper ( org.ovirt.engine.core.bll.storage.RemoveStorageDomainCommand.getStorageDomain ( ) ) . DisconnectStorageFromDomainByVdsId ( org.ovirt.engine.core.bll.storage.RemoveStorageDomainCommand.getStorageDomain ( ) , org.ovirt.engine.core.bll.storage.RemoveStorageDomainCommand.getVds ( ) . getId ( ) ) ; }

Target:
private void DisconnectStorage ( ) { getStorageHelper ( org.ovirt.engine.core.bll.storage.RemoveStorageDomainCommand.getStorageDomain ( ) ) . disconnectStorageFromDomainByVdsId ( org.ovirt.engine.core.bll.storage.RemoveStorageDomainCommand.getStorageDomain ( ) , org.ovirt.engine.core.bll.storage.RemoveStorageDomainCommand.getVds ( ) . getId ( ) ) ; }
Source:
public static java.lang.String getDisplayStringForPluginName ( java.lang.String pluginName ) { try { return org.ovirt.engine.ui.uicompat.EnumTranslator.getInstance ( ) . get ( org.ovirt.engine.core.common.businessentities.OpenstackNetworkPluginType.valueOf ( pluginName ) ) ; } catch ( java.lang.Exception e ) { return pluginName == null ? "" : pluginName ; } }

Target:
public static java.lang.String getDisplayStringForPluginName ( java.lang.String pluginName ) { try { return org.ovirt.engine.ui.uicompat.EnumTranslator.getInstance ( ) . translate ( org.ovirt.engine.core.common.businessentities.OpenstackNetworkPluginType.valueOf ( pluginName ) ) ; } catch ( java.lang.Exception e ) { return pluginName == null ? "" : pluginName ; } }
Source:
protected boolean canDoAction ( ) { if ( ( org.ovirt.engine.core.bll.DetachTemplateFromTagCommand.getTagId ( ) ) == null ) { return failCanDoAction ( VdcBllMessages.ACTION_TYPE_FAILED_TAG_ID_REQUIRED ) ; } return true ; }

Target:
protected boolean canDoAction ( ) { if ( ( org.ovirt.engine.core.bll.DetachTemplateFromTagCommand.getTagId ( ) ) == null ) { return failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_TAG_ID_REQUIRED ) ; } return true ; }
Source:
public void testSetup ( ) { org.mockito.Mockito.when ( quotaDao.getById ( org.mockito.ArgumentMatchers.any ( ) ) ) . thenReturn ( mockGeneralStorageQuota ( ) ) ; }

Target:
public void testSetup ( ) { org.mockito.Mockito.when ( quotaDao.getById ( org.mockito.ArgumentMatchers.any ( ) ) ) . thenReturn ( mockGeneralStorageQuota ( ) ) ; command.init ( ) ; }
Source:
public void save ( org.ovirt.engine.core.common.businessentities.Quota quota ) { saveGlobalQuota ( quota ) ; saveStorageSpecificQuotas ( quota ) ; saveVdsGroupSpecificQuotas ( quota ) ; }

Target:
public void save ( org.ovirt.engine.core.common.businessentities.Quota quota ) { saveGlobalQuota ( quota ) ; saveStorageSpecificQuotas ( quota ) ; saveClusterSpecificQuotas ( quota ) ; }
Source:
java.util.List < org.ovirt.engine.core.common.businessentities.VM > getVmsListForDisk ( org.ovirt.engine.core.compat.Guid id ) ;

Target:
java.util.List < org.ovirt.engine.core.common.businessentities.VM > getVmsListForDisk ( org.ovirt.engine.core.compat.Guid id , boolean includeVmsSnapshotAttachedTo ) ;
Source:
protected boolean isPostZero ( ) { if ( ( cachedPostZero ) == null ) { cachedPostZero = isVmContainsWipeAfterDeleteDisk ( ) ; } return cachedPostZero ; }

Target:
protected boolean isPostZero ( ) { if ( ( cachedPostZero ) == null ) { cachedPostZero = isDiskWithWipeAfterDeleteExist ( vm.getDiskMap ( ) . values ( ) ) ; } return cachedPostZero ; }
Source:
public void canDoAction_vdsGroupNull_Test ( ) { org.mockito.Mockito.doReturn ( null ) . when ( command ) . getVdsGroup ( ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , VdcBllMessages.ACTION_TYPE_FAILED_INVALID_CLUSTER_FOR_AFFINITY_GROUP ) ; }

Target:
public void canDoAction_vdsGroupNull_Test ( ) { org.mockito.Mockito.doReturn ( null ) . when ( command ) . getVdsGroup ( ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.ACTION_TYPE_FAILED_INVALID_CLUSTER_FOR_AFFINITY_GROUP ) ; }
Source:
private org.ovirt.engine.api.model.Events mapCollection ( java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > entities ) { org.ovirt.engine.api.model.Events collection = new org.ovirt.engine.api.model.Events ( ) ; for ( org.ovirt.engine.core.common.businessentities.AuditLog entity : entities ) { collection.getEvent ( ) . add ( addLinks ( map ( entity ) ) ) ; } return collection ; }

Target:
private org.ovirt.engine.api.model.Events mapCollection ( java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > entities ) { org.ovirt.engine.api.model.Events collection = new org.ovirt.engine.api.model.Events ( ) ; for ( org.ovirt.engine.core.common.businessentities.AuditLog entity : entities ) { collection.getEvents ( ) . add ( addLinks ( map ( entity ) ) ) ; } return collection ; }
Source:
public void testGetFullPathSaneParameter ( ) { java.io.File file = testServlet.getFile ( mockFile , "/branding/test" ) ; org.junit.Assert.assertNotNull ( "Path should not be null" , file ) ; org.junit.Assert.assertEquals ( "Path should be '/abs/test/branding/test'" , "/abs/test/branding/test" , file.getAbsolutePath ( ) ) ; }

Target:
public void testGetFullPathSaneParameter ( ) { java.io.File file = testServlet.getFile ( mockFile , "/branding/test" ) ; org.junit.jupiter.api.Assertions.assertNotNull ( file , "Path should not be null" ) ; org.junit.jupiter.api.Assertions.assertEquals ( "/abs/test/branding/test" , file.getAbsolutePath ( ) , "Path should be '/abs/test/branding/test'" ) ; }
Source:
private org.ovirt.engine.core.common.action.VdcReturnValueBase createReturnValue ( boolean succeed ) { final org.ovirt.engine.core.common.action.VdcReturnValueBase setupNetsReturnValue = new org.ovirt.engine.core.common.action.VdcReturnValueBase ( ) ; setupNetsReturnValue.setSucceeded ( succeed ) ; return setupNetsReturnValue ; }

Target:
private org.ovirt.engine.core.common.action.ActionReturnValue createReturnValue ( boolean succeed ) { final org.ovirt.engine.core.common.action.ActionReturnValue setupNetsReturnValue = new org.ovirt.engine.core.common.action.ActionReturnValue ( ) ; setupNetsReturnValue.setSucceeded ( succeed ) ; return setupNetsReturnValue ; }
Source:
public boolean isVisible ( ) { return getDetailModel ( ) . getIsNfs ( ) ; }

Target:
public boolean getIsAvailable ( ) { return ( getDetailModel ( ) . getPath ( ) ) != null ; }
Source:
java.lang.String cannotCopyDisks ( java.lang.String disks ) ;

Target:
java.lang.String moveDisksPreallocatedWarning ( java.lang.String disks ) ;
Source:
public org.ovirt.engine.core.common.businessentities.Quota getQuota ( ) { if ( ( quota ) == null ) { setQuota ( getQuotaDao ( ) . getById ( getParameters ( ) . getId ( ) ) ) ; } return quota ; }

Target:
public org.ovirt.engine.core.common.businessentities.Quota getQuota ( ) { if ( ( quota ) == null ) { setQuota ( quotaDao.getById ( getParameters ( ) . getId ( ) ) ) ; } return quota ; }
Source:
public void initTemplate ( ) { setupTemplate ( pool.getVmtGuid ( ) , pool.isUseLatestVersion ( ) ) ; }

Target:
public void initTemplate ( ) { setupReadOnlyTemplateWithVersion ( pool.getVmtGuid ( ) , pool.isUseLatestVersion ( ) ) ; }
Source:
public static synchronized boolean isIsoDomain ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain ) { org.ovirt.engine.api.model.StorageDomainType type = storageDomain.getstorage_domain_type ( ) ; return ( type != null ) && ( type == org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.StorageDomainType ) ? true : false ; }

Target:
public static synchronized boolean isIsoDomain ( org.ovirt.engine.api.model.StorageDomain storageDomain ) { org.ovirt.engine.api.model.StorageDomainType type = storageDomain.getstorage_domain_type ( ) ; return ( type != null ) && ( type == org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.StorageDomainType ) ? true : false ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { this . setItems ( ( ( java.util.List < org.ovirt.engine.core.common.businessentities.network.ExternalSubnet > ) ( returnValue ) ) ) ; }

Target:
private void setNewCommand ( org.ovirt.engine.ui.uicommonweb.UICommand newCommand ) { this . newCommand = newCommand ; }
Source:
public java.lang.String getTemplate ( ) { org.ovirt.engine.sdk.codegen.utils.StringTemplateWrapper templateWrapper = new org.ovirt.engine.sdk.codegen.utils.StringTemplateWrapper ( super . getTemplate ( ) ) ; return templateWrapper.toString ( ) ; }

Target:
public java.lang.String getTemplate ( ) { return getTemplate ( "" , "" , "" , "" ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.VmNetworkInterface > getVmNICs ( ) { if ( ( vmNICs ) == null ) { vmNICs = getVmNetworkInterfaceDAO ( ) . getAllForVm ( getVm ( ) . getId ( ) ) ; } return vmNICs ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > getVmNICs ( ) { if ( ( vmNICs ) == null ) { vmNICs = getVmNetworkInterfaceDao ( ) . getAllForVm ( getVm ( ) . getId ( ) ) ; } return vmNICs ; }
Source:
public void testUpdateNullVmCpuProfileIdForClusterId ( ) { updateCpuProfile ( FixturesTool.VDS_GROUP_RHEL6_ISCSI , null ) ; }

Target:
public void testUpdateNullVmCpuProfileIdForClusterId ( ) { updateCpuProfile ( FixturesTool.CLUSTER_RHEL6_ISCSI , null ) ; }
Source:
public void testRemoveStatisticsForVdsInterface ( ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface before = dao.get ( FixturesTool.VDS_NETWORK_INTERFACE ) ; org.junit.Assert.assertNotNull ( before ) ; dao.removeStatisticsForVds ( FixturesTool.VDS_NETWORK_INTERFACE ) ; org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface after = dao.get ( FixturesTool.VDS_NETWORK_INTERFACE ) ; org.junit.Assert.assertNull ( after ) ; }

Target:
public void testRemoveStatisticsForVdsInterface ( ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface before = dao.get ( FixturesTool.VDS_NETWORK_INTERFACE ) ; org.junit.jupiter.api.Assertions.assertNotNull ( before ) ; dao.removeStatisticsForVds ( FixturesTool.VDS_NETWORK_INTERFACE ) ; org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface after = dao.get ( FixturesTool.VDS_NETWORK_INTERFACE ) ; org.junit.jupiter.api.Assertions.assertNull ( after ) ; }
Source:
public void hostDoesNotExist ( ) { validator = new org.ovirt.engine.core.bll.validator.UpgradeHostValidator ( null ) ; org.junit.Assert.assertThat ( validator.hostExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.VDS_INVALID_SERVER_ID ) ) ; }

Target:
public void hostDoesNotExist ( ) { validator = new org.ovirt.engine.core.bll.validator.UpgradeHostValidator ( null ) ; org.junit.Assert.assertThat ( validator.hostExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.VDS_INVALID_SERVER_ID ) ) ; }
Source:
protected void ExecuteIrsBrokerCommand ( ) { }

Target:
protected void executeIrsBrokerCommand ( ) { }
Source:
private java.util.Map < java.lang.String , org.ovirt.engine.core.common.businessentities.network.Network > getExistingClusterNetworks ( ) { if ( ( existingClusterNetworks ) == null ) { existingClusterNetworks = org.ovirt.engine.core.common.businessentities.Entities.entitiesByName ( getDbFacade ( ) . getNetworkDao ( ) . getAllForCluster ( vds.getVdsGroupId ( ) ) ) ; } return existingClusterNetworks ; }

Target:
private java.util.Map < java.lang.String , org.ovirt.engine.core.common.businessentities.network.Network > getExistingClusterNetworks ( ) { if ( ( existingClusterNetworks ) == null ) { existingClusterNetworks = org.ovirt.engine.core.common.businessentities.Entities.entitiesByName ( networkDao.getAllForCluster ( vds.getVdsGroupId ( ) ) ) ; } return existingClusterNetworks ; }
Source:
public void statusNotMatch ( ) { setStorageDomainStatus ( StorageDomainStatus.Inactive ) ; org.junit.Assert.assertFalse ( cmd.checkStorageDomainStatus ( StorageDomainStatus.Active ) ) ; org.junit.Assert.assertTrue ( commandHasInvalidStatusMessage ( ) ) ; }

Target:
public void statusNotMatch ( ) { setStorageDomainStatus ( StorageDomainStatus.Inactive ) ; org.junit.jupiter.api.Assertions.assertFalse ( cmd.checkStorageDomainStatus ( StorageDomainStatus.Active ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( commandHasInvalidStatusMessage ( ) ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeBrickAdd ( java.lang.String volumeName , java.lang.String [ ] bricks , int replicaCount , int stripeCount ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > getHostJobs ( java.lang.String job_type , java.util.List < java.lang.String > jobIds ) ;
Source:
protected void doNetworkOperation ( org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue , java.util.List < org.ovirt.engine.ui.uicommonweb.models.vms.NicWithLogicalNetworks > nicWithLogicalNetworks ) { networkCreatingManager.createNetworks ( ( ( org.ovirt.engine.core.compat.Guid ) ( returnValue.getActionReturnValue ( ) ) ) , nicWithLogicalNetworks ) ; }

Target:
protected void doNetworkOperation ( org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue , java.util.List < org.ovirt.engine.ui.uicommonweb.models.vms.VnicInstanceType > nicWithLogicalNetworks ) { networkCreatingManager.createVnics ( ( ( org.ovirt.engine.core.compat.Guid ) ( returnValue.getActionReturnValue ( ) ) ) , nicWithLogicalNetworks ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getVdsGroupId ( ) { return clusterId ; }

Target:
public org.ovirt.engine.core.compat.Guid getClusterId ( ) { return clusterId ; }
Source:
public void notAllVfsAreFree ( ) { allVfsAreFree ( false ) ; assertCanDoActionFailure ( VdcBllMessages.ACTION_TYPE_FAILED_NUM_OF_VFS_CANNOT_BE_CHANGED.toString ( ) ) ; }

Target:
public void notAllVfsAreFree ( ) { allVfsAreFree ( false ) ; assertCanDoActionFailure ( EngineMessage.ACTION_TYPE_FAILED_NUM_OF_VFS_CANNOT_BE_CHANGED.toString ( ) ) ; }
Source:
public void lowerVersionHostsAndNetwork ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addHostsToCluster ( ) ; addNonManagementNetworkToPool ( ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION ) ; }

Target:
public void lowerVersionHostsAndNetwork ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addHostsToCluster ( ) ; addNonManagementNetworkToPool ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION ) ; }
Source:
protected org.ovirt.engine.core.dao.network.NetworkClusterDao getNetworkClusterDao ( ) { return mockNetworkClusterDao ; }

Target:
public void setUp ( ) { org.mockito.Mockito.doReturn ( mockClusterDao ) . when ( underTest ) . getClusterDao ( ) ; org.mockito.Mockito.doReturn ( mockNetworkClusterDao ) . when ( underTest ) . getNetworkClusterDao ( ) ; org.mockito.Mockito.doReturn ( mockNetworkDao ) . when ( underTest ) . getNetworkDao ( ) ; }
Source:
protected org.ovirt.engine.core.bll.validator.MultipleStorageDomainsValidator createMultipleStorageDomainsValidator ( java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > disksList ) { return new org.ovirt.engine.core.bll.validator.MultipleStorageDomainsValidator ( org.ovirt.engine.core.bll.MoveOrCopyTemplateCommand.getStoragePoolId ( ) , org.ovirt.engine.core.bll.ImagesHandler.getAllStorageIdsForImageIds ( disksList ) ) ; }

Target:
protected org.ovirt.engine.core.bll.validator.MultipleStorageDomainsValidator createMultipleStorageDomainsValidator ( java.util.Collection < org.ovirt.engine.core.common.businessentities.DiskImage > diskImages ) { return new org.ovirt.engine.core.bll.validator.MultipleStorageDomainsValidator ( org.ovirt.engine.core.bll.MoveOrCopyTemplateCommand.getStoragePoolId ( ) , org.ovirt.engine.core.bll.ImagesHandler.getAllStorageIdsForImageIds ( diskImages ) ) ; }
Source:
public void prepareNetworkClusterExpects ( ) { org.mockito.Mockito.when ( networkCluster.getClusterId ( ) ) . thenReturn ( org.ovirt.engine.core.bll.network.cluster.TEST_CLUSTER_ID ) ; }

Target:
public void setUp ( ) { super . setup ( ) ; org.mockito.Mockito.doReturn ( vdsDao ) . when ( validator ) . getVdsDao ( ) ; }
Source:
public void setaction_parameters ( org.ovirt.engine.core.common.action.VdcActionParametersBase value ) { this . actionParameters = value ; }

Target:
public void setActionParameters ( org.ovirt.engine.core.common.action.VdcActionParametersBase value ) { this . actionParameters = value ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.network.Network object ) { return ( object.getCluster ( ) ) == null ? false : object.getCluster ( ) . getis_display ( ) ? constants.displayNetwork ( ) : constants.empty ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.network.Network object ) { return ( object.getCluster ( ) ) == null ? false : object.getCluster ( ) . isDisplay ( ) ? constants.displayNetwork ( ) : constants.empty ( ) ; }
Source:
protected boolean isPayloadExists ( org.ovirt.engine.core.common.utils.VmDeviceType deviceType ) { return ( ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getVmPayload ( ) ) != null ) && ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getVmPayload ( ) . getDeviceType ( ) . equals ( deviceType ) ) ; }

Target:
protected boolean isPayloadExists ( org.ovirt.engine.core.common.utils.VmDeviceType deviceType ) { return ( ( vmPayload ) != null ) && ( vmPayload.getDeviceType ( ) . equals ( deviceType ) ) ; }
Source:
public void testLocalDcAndMatchingCompatiblityVersion ( ) { storagePool.setcompatibility_version ( Version.v3_0 ) ; storagePool.setstorage_pool_type ( StorageType.LOCALFS ) ; org.junit.Assert.assertTrue ( validator.isPosixDcAndMatchingCompatiblityVersion ( ) ) ; }

Target:
public void testLocalDcAndMatchingCompatiblityVersion ( ) { storagePool.setcompatibility_version ( Version.v3_0 ) ; storagePool.setstorage_pool_type ( StorageType.LOCALFS ) ; org.junit.Assert.assertTrue ( validator.isPosixDcAndMatchingCompatiblityVersion ( ) . isValid ( ) ) ; }
Source:
protected org.ovirt.engine.core.dao.VdsDAO getVdsDAO ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDao ( ) ; }

Target:
protected org.ovirt.engine.core.dao.VdsDao getVdsDao ( ) { return dbFacade.getVdsDao ( ) ; }
Source:
private void oldGroupIsDetachedDefault ( ) { org.mockito.Mockito.when ( vdsGroupDAO.get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.createDetachedDefaultVdsGroup ( ) ) ; }

Target:
private void oldGroupIsDetachedDefault ( ) { org.mockito.Mockito.when ( vdsGroupDAO.get ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.DEFAULT_VDS_GROUP_ID ) ) . thenReturn ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.createDetachedDefaultVdsGroup ( ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) . intValue ( ) : 1 ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( org.ovirt.engine.core.common.businessentities.StorageServerConnections ) ( source ) ) : null ; }
Source:
private synchronized void addRepoFileToProblematicList ( java.util.List < org.ovirt.engine.core.common.businessentities.RepoFileMetaData > repoFileMetaDataList ) { problematicRepoFileList.addAll ( repoFileMetaDataList ) ; }

Target:
private synchronized void addRepoFileToProblematicList ( java.util.List < org.ovirt.engine.core.common.businessentities.RepoImage > repoImageList ) { problematicRepoFileList.addAll ( repoImageList ) ; }
Source:
public void setIsEveryoneSelected ( boolean value ) { if ( ( isEveryoneSelected ) != value ) { isEveryoneSelected = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "IsEveryoneSelected" ) ) ; } }

Target:
public void setIsEveryoneSelected ( boolean value ) { if ( ( isEveryoneSelected ) != value ) { isEveryoneSelected = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "IsEveryoneSelected" ) ) ; } }
Source:
protected void setUpEntityQueryExpectations ( ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetVdsInterfacesByVdsId , org.ovirt.engine.core.common.queries.GetVdsByVdsIdParameters.class , new java.lang.String [ ] { "VdsId" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendHostNicsResourceTest.PARENT_GUID } , org.ovirt.engine.api.restapi.resource.BackendHostNicsResourceTest.setUpInterfaces ( ) ) ; }

Target:
protected void setUpEntityQueryExpectations ( ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetVdsInterfacesByVdsId , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendHostNicsResourceTest.PARENT_GUID } , org.ovirt.engine.api.restapi.resource.BackendHostNicsResourceTest.setUpInterfaces ( ) ) ; }
Source:
public void testGetByServerId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterServerService > services = dao.getByServerId ( FixturesTool.GLUSTER_BRICK_SERVER1 ) ; org.junit.Assert.assertNotNull ( services ) ; org.junit.Assert.assertEquals ( 1 , services.size ( ) ) ; verifyServiceOnServer1 ( services.get ( 0 ) ) ; }

Target:
public void testGetByServerId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterServerService > services = dao.getByServerId ( FixturesTool.GLUSTER_BRICK_SERVER1 ) ; org.junit.jupiter.api.Assertions.assertNotNull ( services ) ; org.junit.jupiter.api.Assertions.assertEquals ( 1 , services.size ( ) ) ; verifyServiceOnServer1 ( services.get ( 0 ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult storageDomainNotChanged ( ) { if ( org.apache.commons.lang.ObjectUtils.equals ( diskProfile.getStorageDomainId ( ) , getOldDiskProfile ( ) . getStorageDomainId ( ) ) ) { return org.ovirt.engine.core.bll.ValidationResult.VALID ; } return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_CANNOT_CHANGE_PROFILE ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult storageDomainNotChanged ( ) { if ( org.apache.commons.lang.ObjectUtils.equals ( getDiskProfile ( ) . getStorageDomainId ( ) , getDiskProfileFromDb ( ) . getStorageDomainId ( ) ) ) { return org.ovirt.engine.core.bll.ValidationResult.VALID ; } return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_CANNOT_CHANGE_PROFILE ) ; }
Source:
protected boolean hasParentCommand ( ) { return ( getParameters ( ) . getParentCommand ( ) ) != ( org.ovirt.engine.core.common.action.VdcActionType.Unknown ) ; }

Target:
protected boolean hasParentCommand ( ) { return ( getParentCommandType ( ) ) != ( org.ovirt.engine.core.common.action.VdcActionType.Unknown ) ; }
Source:
private void addGhostEntry ( ) { T value = createGhostValue ( ) ; addEntry ( value ) ; modelItems.add ( value ) ; }

Target:
protected void onAdd ( T value , V widget ) { modelItems.add ( value ) ; }
Source:
public void testGetWithTrailingSlash ( ) { doTestGet ( ( ( org.ovirt.engine.api.restapi.resource.BackendApiResourceTest.URI_BASE ) + "/" ) ) ; }

Target:
public void testGetWithTrailingSlash ( ) { doTestGet ( ApplicationMode.AllModes , ( ( org.ovirt.engine.api.restapi.resource.BackendApiResourceTest.URI_BASE ) + "/" ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.gluster.GlusterServerHook getGlusterServerHook ( int index ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterServerHook serverHook = new org.ovirt.engine.core.common.businessentities.gluster.GlusterServerHook ( ) ; serverHook.setServerId ( org.ovirt.engine.core.bll.gluster.GlusterHookCommandTest.GUIDS [ index ] ) ; return serverHook ; }

Target:
protected org.ovirt.engine.core.common.businessentities.gluster.GlusterServerHook getGlusterServerHook ( int index , org.ovirt.engine.core.common.businessentities.gluster.GlusterHookStatus status ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterServerHook serverHook = new org.ovirt.engine.core.common.businessentities.gluster.GlusterServerHook ( ) ; serverHook.setServerId ( org.ovirt.engine.core.bll.gluster.GlusterHookCommandTest.GUIDS [ index ] ) ; serverHook.setStatus ( status ) ; serverHook.setChecksum ( "CHECKSUM" ) ; return serverHook ; }
Source:
public void setSearchString ( java.lang.String value ) { setSearchString ( value , true ) ; }

Target:
public void setSearchString ( java.lang.String value ) { if ( ( value == null ) || ( ! ( containsTokens ( value , SyntaxObjectType.SORTBY , SyntaxObjectType.PAGE , SyntaxObjectType.SORT_DIRECTION ) ) ) ) { setSearchString ( value , true ) ; } }
Source:
protected org.ovirt.engine.core.common.businessentities.VDS getSlaveHost ( ) { return getVdsDAO ( ) . getByName ( getParameters ( ) . getSlaveHost ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VDS getSlaveHost ( ) { return getVdsDAO ( ) . get ( getParameters ( ) . getSlaveHostId ( ) ) ; }
Source:
public void testJsonNullDiskDescription ( ) throws java.io.IOException { assertDiskDescriptionMap ( "DiskAlias" , null ) ; }

Target:
public void testJsonDiskDescription ( ) throws java.io.IOException { disk1.setDiskAlias ( "DiskAlias" ) ; disk1.setDiskDescription ( "DiskDescription" ) ; org.ovirt.engine.core.bll.ImagesHandlerTest.assertDiskDescriptionMap ( disk1 ) ; }
Source:
public java.lang.Boolean getValue ( org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.common.businessentities.network_cluster , org.ovirt.engine.core.common.businessentities.VDSGroup > object ) { return ( object.getSecond ( ) ) != null ; }

Target:
public java.lang.Boolean getValue ( org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.VDSGroup , org.ovirt.engine.core.common.businessentities.network_cluster > object ) { return ( object.getSecond ( ) ) != null ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source != null ) { return source ; } return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDS > ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.StorageServerConnections convert ( java.lang.Object source ) { return source != null ? ( ( org.ovirt.engine.core.common.businessentities.StorageServerConnections ) ( source ) ) : null ; }
Source:
private boolean labelAdded ( ) { return ( ( getOldNetwork ( ) . getLabel ( ) ) == null ) && ( ( org.ovirt.engine.core.bll.network.dc.UpdateNetworkCommand.getNetwork ( ) . getLabel ( ) ) != null ) ; }

Target:
private boolean labelAdded ( ) { return ( ! ( org.ovirt.engine.core.utils.NetworkUtils.isLabeled ( getOldNetwork ( ) ) ) ) && ( org.ovirt.engine.core.utils.NetworkUtils.isLabeled ( org.ovirt.engine.core.bll.network.dc.UpdateNetworkCommand.getNetwork ( ) ) ) ; }
Source:
protected org.ovirt.engine.api.model.KatelloErratum addParents ( org.ovirt.engine.api.model.KatelloErratum erratum ) { org.ovirt.engine.api.model.VM vm = new org.ovirt.engine.api.model.VM ( ) ; vm.setId ( vmId ) ; erratum.setVm ( vm ) ; return super . addParents ( erratum ) ; }

Target:
protected org.ovirt.engine.api.model.KatelloErratum addParents ( org.ovirt.engine.api.model.KatelloErratum erratum ) { org.ovirt.engine.api.model.Vm vm = new org.ovirt.engine.api.model.Vm ( ) ; vm.setId ( vmId ) ; erratum.setVm ( vm ) ; return super . addParents ( erratum ) ; }
Source:
public java.util.Map < org.ovirt.engine.core.common.businessentities.VmDevice , java.lang.Integer > getVmDeviceUnitMapForSpaprScsiDisks ( org.ovirt.engine.core.common.businessentities.VM vm ) { return getVmDeviceUnitMapForScsiDisks ( vm , DiskInterface.SPAPR_VSCSI , true ) ; }

Target:
public java.util.Map < org.ovirt.engine.core.common.businessentities.VmDevice , java.lang.Integer > getVmDeviceUnitMapForVirtioScsiDisks ( org.ovirt.engine.core.common.businessentities.VM vm ) { return getVmDeviceUnitMapForScsiDisks ( vm , DiskInterface.VirtIO_SCSI , false ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.FenceAgent > createSingleAgentList ( int order ) { java.util.List < org.ovirt.engine.core.common.businessentities.FenceAgent > fenceAgents = new java.util.ArrayList < > ( ) ; fenceAgents.add ( createFenceAgent ( order ) ) ; return fenceAgents ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.pm.FenceAgent > createSingleAgentList ( int order ) { java.util.List < org.ovirt.engine.core.common.businessentities.pm.FenceAgent > fenceAgents = new java.util.ArrayList < > ( ) ; fenceAgents.add ( createFenceAgent ( order ) ) ; return fenceAgents ; }
Source:
public void canDoActionFailsNullParameterForIsoFile ( ) { mockVdsWithOsVersion ( org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.VALID_OVIRT_VERSION ) ; org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters param = org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.createParameters ( ) ; param.setoVirtIsoFile ( null ) ; org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommand < org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters > command = createCommand ( param ) ; org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.assertFailsWithCanDoActionMessage ( command , VdcBllMessages.VDS_CANNOT_INSTALL_MISSING_IMAGE_FILE ) ; }

Target:
public void canDoActionFailsNullParameterForIsoFile ( ) { mockVdsWithOsVersion ( org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.VALID_OVIRT_VERSION ) ; org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters param = org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.createParameters ( ) ; param.setoVirtIsoFile ( null ) ; org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommand < org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters > command = createCommand ( param ) ; org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.assertFailsWithCanDoActionMessage ( command , EngineMessage.VDS_CANNOT_INSTALL_MISSING_IMAGE_FILE ) ; }
Source:
java.lang.String errorConnectingToConsole ( java.lang.String name , java.lang.String protocol ) ;

Target:
java.lang.String remapCtrlAltDelete ( java.lang.String hotkey ) ;
Source:
private void assertHostNotValid ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > vnics , java.util.List < java.lang.String > exceptedProblematicVnics ) { validateVnics ( vnics , exceptedProblematicVnics ) ; org.junit.Assert.assertEquals ( expectedVnicToVfMap , vfScheduler.getVnicToVfMap ( vmId , hostId ) ) ; }

Target:
private void assertHostValid ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > vnics ) { validateVnics ( vnics , new java.util.ArrayList < java.lang.String > ( ) ) ; validateVnicToVfMap ( ) ; }
Source:
public java.lang.Boolean call ( ) throws java.lang.Exception { _goingToReboot = ( ( java.lang.Boolean ) ( _parser.cliEnvironmentGet ( SysEnv.REBOOT ) ) ) ; if ( _goingToReboot ) { _messages.post ( InstallerMessages.Severity.INFO , "Reboot scheduled" ) ; } return true ; }

Target:
public java.lang.Boolean call ( ) throws java.lang.Exception { _goingToReboot = ( ( java.lang.Boolean ) ( _parser.cliEnvironmentGet ( SysEnv.REBOOT ) ) ) ; if ( _goingToReboot ) { userVisibleLog ( java.util.logging.Level.INFO , "Reboot scheduled" ) ; } return true ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmModelBehaviorBase behavior = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.VmModelBehaviorBase ) ( target ) ) ; cachedMaxPriority = ( ( java.lang.Integer ) ( returnValue ) ) ; behavior.PostUpdatePriority ( ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmModelBehaviorBase behavior = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.VmModelBehaviorBase ) ( target ) ) ; cachedMaxPriority = ( ( java.lang.Integer ) ( returnValue ) ) ; behavior.postUpdatePriority ( ) ; }
Source:
public void testSave ( ) { org.ovirt.engine.core.common.businessentities.gluster.StorageDevice storageDevice = getStorageDevice ( ) ; dao.save ( storageDevice ) ; org.ovirt.engine.core.common.businessentities.gluster.StorageDevice storageDeviceFromDB = dao.get ( storageDevice.getId ( ) ) ; org.junit.Assert.assertEquals ( "Storage device is not saved correctly" , storageDevice , storageDeviceFromDB ) ; }

Target:
public void testSave ( ) { org.ovirt.engine.core.common.businessentities.gluster.StorageDevice storageDevice = getStorageDevice ( ) ; dao.save ( storageDevice ) ; org.ovirt.engine.core.common.businessentities.gluster.StorageDevice storageDeviceFromDB = dao.get ( storageDevice.getId ( ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( storageDevice , storageDeviceFromDB , "Storage device is not saved correctly" ) ; }
Source:
public void setDetailModels ( java.util.List < org.ovirt.engine.ui.uicommonweb.models.EntityModel > value ) { if ( ( detailModels ) != value ) { detailModels = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "DetailModels" ) ) ; } }

Target:
public void setDetailModels ( java.util.List < org.ovirt.engine.ui.uicommonweb.models.EntityModel > value ) { if ( ( detailModels ) != value ) { detailModels = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "DetailModels" ) ) ; } }
Source:
private void failureEventHandler ( final java.lang.String errorMessage ) { failureEventHandler ( null , errorMessage ) ; }

Target:
public void retrieveFromHttpSession ( final java.lang.String key , final org.ovirt.engine.ui.frontend.communication.StorageCallback callback ) { getOperationManager ( ) . retrieveFromHttpSession ( key , callback ) ; }
Source:
private void verifyManagementNetwork ( org.ovirt.engine.core.common.businessentities.Cluster updatedCluster ) { assertEquals ( java.lang.String.format ( "%s/%s/%s/%s/%s" , org.ovirt.engine.api.restapi.resource.BASE_PATH , "clusters" , GUIDS [ 0 ] , "networks" , org.ovirt.engine.api.restapi.resource.BackendDataCenterClusterResourceTest.MANAGEMENT_NETWORK_ID ) , updatedCluster.getManagementNetwork ( ) . getHref ( ) ) ; }

Target:
private void verifyManagementNetwork ( org.ovirt.engine.core.common.businessentities.Cluster updatedCluster ) { org.junit.Assert.assertEquals ( java.lang.String.format ( "%s/%s/%s/%s/%s" , org.ovirt.engine.api.restapi.resource.BASE_PATH , "clusters" , GUIDS [ 0 ] , "networks" , org.ovirt.engine.api.restapi.resource.BackendDataCenterClusterResourceTest.MANAGEMENT_NETWORK_ID ) , updatedCluster.getManagementNetwork ( ) . getHref ( ) ) ; }
Source:
protected boolean isSoundDeviceEnabled ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.isSoundDeviceEnabled ( vmId ) ; }

Target:
protected boolean isVirtioScsiControllerAttached ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.hasVirtioScsiController ( vmId ) ; }
Source:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.UpdateVmTemplateCommand.getVmTemplateId ( ) . toString ( ) , LockMessagesMatchUtil.TEMPLATE ) ; }

Target:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.UpdateVmTemplateCommand.getVmTemplateId ( ) . toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.TEMPLATE , VdcBllMessages.ACTION_TYPE_FAILED_OBJECT_LOCKED ) ) ; }
Source:
public void DestinationStorage_SelectedItemChanged ( org.ovirt.engine.core.common.businessentities.DiskImage disk , java.lang.String storageDomainName ) { org.ovirt.engine.core.common.businessentities.VM item = ( ( org.ovirt.engine.core.common.businessentities.VM ) ( getSelectedItem ( ) ) ) ; addToDiskStorageMap ( item.getId ( ) , disk , getStorageDomainByName ( storageDomainName ) . getId ( ) ) ; }

Target:
public void onDataLoad ( ) { checkIfDefaultStorageApplicableForAllDisks ( ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmModel.ON_DISK_LOAD ) ) ; }
Source:
public java.lang.Object convert ( java.lang.Object returnValue , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { return returnValue == null ? new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepNonEligibilityReason > ( ) : ( ( java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepNonEligibilityReason > ) ( returnValue ) ) ; }

Target:
public void getGlusterVolumeGeoRepRecommendationViolations ( org.ovirt.engine.ui.frontend.AsyncQuery < java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepNonEligibilityReason > > aQuery , org.ovirt.engine.core.compat.Guid masterVolumeId , org.ovirt.engine.core.compat.Guid slaveVolumeId ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.ListConverter < > ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetNonEligibilityReasonsOfVolumeForGeoRepSession , new org.ovirt.engine.core.common.queries.gluster.GlusterVolumeGeoRepEligibilityParameters ( masterVolumeId , slaveVolumeId ) , aQuery ) ; }