auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public org.ovirt.engine.core.bll.ValidationResult linkedCorrectly ( ) { return ( ! ( org.ovirt.engine.core.common.FeatureSupported.networkLinking ( version ) ) ) && ( ! ( nic.isLinked ( ) ) ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.UNLINKING_IS_NOT_SUPPORTED , clusterVersion ( ) ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult linkedCorrectly ( ) { return ( ! ( org.ovirt.engine.core.common.FeatureSupported.networkLinking ( version ) ) ) && ( ! ( nic.isLinked ( ) ) ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.UNLINKING_IS_NOT_SUPPORTED , clusterVersion ( ) ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
public void getAllRunningOnOrMigratingToVds ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > result = dao.getAllRunningOnOrMigratingToVds ( FixturesTool.VDS_RHEL6_NFS_SPM ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }

Target:
public void getAllRunningOnOrMigratingToVds ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > result = dao.getAllRunningOnOrMigratingToVds ( FixturesTool.VDS_RHEL6_NFS_SPM ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertFalse ( result.isEmpty ( ) ) ; }
Source:
public void testGetByName ( ) { org.ovirt.engine.core.common.scheduling.AffinityGroup affinityGroup = dao.getByName ( org.ovirt.engine.core.dao.AffinityGroupDaoTest.AFFINITY_GROUP_NAME ) ; org.junit.Assert.assertNotNull ( affinityGroup ) ; affinityGroup = dao.getByName ( ( ( org.ovirt.engine.core.dao.AffinityGroupDaoTest.AFFINITY_GROUP_NAME ) + "A" ) ) ; org.junit.Assert.assertNull ( affinityGroup ) ; }

Target:
public void testGetByName ( ) { org.ovirt.engine.core.common.scheduling.AffinityGroup affinityGroup = dao.getByName ( org.ovirt.engine.core.dao.AffinityGroupDaoTest.AFFINITY_GROUP_NAME ) ; org.junit.jupiter.api.Assertions.assertNotNull ( affinityGroup ) ; affinityGroup = dao.getByName ( ( ( org.ovirt.engine.core.dao.AffinityGroupDaoTest.AFFINITY_GROUP_NAME ) + "A" ) ) ; org.junit.jupiter.api.Assertions.assertNull ( affinityGroup ) ; }
Source:
public void OnFinish ( org.ovirt.engine.ui.uicompat.TaskContext context , boolean isSucceeded , org.ovirt.engine.ui.uicommonweb.models.storage.IStorageModel model ) { OnFinish ( context , isSucceeded , model , null ) ; }

Target:
public void onFinish ( org.ovirt.engine.ui.uicompat.TaskContext context , boolean isSucceeded , org.ovirt.engine.ui.uicommonweb.models.storage.IStorageModel model ) { onFinish ( context , isSucceeded , model , null ) ; }
Source:
protected org.ovirt.engine.api.model.ExternalHostGroup getEntity ( int index ) { org.ovirt.engine.api.model.ExternalHostGroup group = control.createMock ( org.ovirt.engine.api.model.ExternalHostGroup.class ) ; org.easymock.EasyMock.expect ( group.getName ( ) ) . andReturn ( NAMES [ index ] ) . anyTimes ( ) ; return group ; }

Target:
protected org.ovirt.engine.api.model.ExternalHostGroup getEntity ( int index ) { org.ovirt.engine.api.model.ExternalHostGroup group = org.mockito.Mockito.mock ( org.ovirt.engine.api.model.ExternalHostGroup.class ) ; org.mockito.Mockito.when ( group.getName ( ) ) . thenReturn ( NAMES [ index ] ) ; return group ; }
Source:
public java.lang.Integer getusage_mem_percent ( ) { return this . mVdsStatistics.getusage_mem_percent ( ) ; }

Target:
public java.lang.Integer getUsageMemPercent ( ) { return this . mVdsStatistics.getusage_mem_percent ( ) ; }
Source:
public void setAuthn ( org.ovirt.engine.core.extensions.mgr.ExtensionProxy authn ) { setData ( org.ovirt.engine.core.bll.session.SessionDataContainer.AUTHN_PARAMETER_NAME , authn ) ; }

Target:
public void setAuthn ( java.lang.String sessionId , org.ovirt.engine.core.extensions.mgr.ExtensionProxy authn ) { setData ( sessionId , org.ovirt.engine.core.bll.session.SessionDataContainer.AUTHN_PARAMETER_NAME , authn ) ; }
Source:
public void setSelectionNodeList ( java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.common.SelectionTreeNodeModel > value ) { if ( ( selectionNodeList ) != value ) { selectionNodeList = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "SelectionNodeList" ) ) ; } }

Target:
public void setSelectionNodeList ( java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.common.SelectionTreeNodeModel > value ) { if ( ( selectionNodeList ) != value ) { selectionNodeList = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "SelectionNodeList" ) ) ; } }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { getView ( ) . flush ( ) ; getView ( ) . getTestButton ( ) . getCommand ( ) . Execute ( ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { getView ( ) . flush ( ) ; getView ( ) . getTestButton ( ) . getCommand ( ) . execute ( ) ; }
Source:
public void validateFailedVirtIODisk ( ) throws java.lang.Exception { mockVmStatusUp ( ) ; mockInterfaceList ( ) ; org.mockito.Mockito.when ( org.ovirt.engine.core.bll.storage.disk.HotPlugDiskToVmCommandTest.osRepository.getOsName ( 0 ) ) . thenReturn ( "RHEL6" ) ; createNotVirtIODisk ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.HOT_PLUG_IDE_DISK_IS_NOT_SUPPORTED ) ; }

Target:
public void validateFailedVirtIODisk ( ) throws java.lang.Exception { mockVmStatusUp ( ) ; mockInterfaceList ( ) ; org.mockito.Mockito.when ( osRepository.getOsName ( 0 ) ) . thenReturn ( "RHEL6" ) ; createNotVirtIODisk ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.HOT_PLUG_IDE_DISK_IS_NOT_SUPPORTED ) ; }
Source:
public void testGigasToBytes ( ) { int gigabytes = 3 ; long bytes = org.ovirt.engine.api.common.util.SizeConverter.gigasToBytes ( gigabytes ) ; assertEquals ( bytes , 3221225472L ) ; }

Target:
public void testGigasToBytes ( ) { int gigabytes = 3 ; long bytes = org.ovirt.engine.api.common.util.SizeConverter.gigasToBytes ( gigabytes ) ; org.junit.Assert.assertEquals ( bytes , 3221225472L ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VmPool > getPrivilegedQueryReturnValue ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmPool > returnValue = org.ovirt.engine.core.bll.GetAllVmPoolsAttachedToUserQuery.getDbFacade ( ) . getVmPoolDao ( ) . getAllForUser ( org.ovirt.engine.core.bll.GetAllVmPoolsAttachedToUserQuery.getParameters ( ) . getUserId ( ) ) ; return returnValue ; }

Target:
protected void executeQueryCommand ( ) { setReturnValue ( org.ovirt.engine.core.bll.GetAllVmPoolsAttachedToUserQuery.getDbFacade ( ) . getVmPoolDao ( ) . getAllForUser ( org.ovirt.engine.core.bll.GetAllVmPoolsAttachedToUserQuery.getUserID ( ) ) ) ; }
Source:
public com.google.gwt.event.dom.client.HasClickHandlers getCloseIconButton ( ) { return asWidget ( ) . getCloseIconButton ( ) ; }

Target:
public void setVersion ( java.lang.String text ) { versionText.setText ( text ) ; }
Source:
protected void updateLastHeartbeat ( ) { this . lastHeartbeat = java.lang.System.currentTimeMillis ( ) ; }

Target:
private boolean isIncomingHeartbeatExeeded ( ) { return ( ( this . lastIncomingHeartbeat ) + ( this . policy.getIncomingHeartbeat ( ) ) ) < ( java.lang.System.currentTimeMillis ( ) ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > getDiskImagesForVm ( ) { return org.ovirt.engine.core.bll.ImagesHandler.filterImageDisks ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getDiskDao ( ) . getAllForVm ( org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand.getVmId ( ) ) , true , true , true ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > getDiskImages ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.Disk > disks ) { if ( ( cachedImagesDisks ) == null ) { cachedImagesDisks = org.ovirt.engine.core.bll.ImagesHandler.filterImageDisks ( disks , true , true , true ) ; } return cachedImagesDisks ; }
Source:
public org.ovirt.engine.sdk.entities.VM createVM ( ) { return new org.ovirt.engine.sdk.entities.VM ( ) ; }

Target:
public org.ovirt.engine.sdk.entities.Vm createVm ( ) { return new org.ovirt.engine.sdk.entities.Vm ( ) ; }
Source:
public java.util.Date getVmCreationDate ( ) { return this . vmStatic.getcreation_date ( ) ; }

Target:
public java.util.Date getVmCreationDate ( ) { return this . vmStatic.getCreationDate ( ) ; }
Source:
public org.ovirt.engine.api.model.Watchdog update ( org.ovirt.engine.api.model.Watchdog watchdog ) { return performUpdate ( watchdog , new org.ovirt.engine.api.restapi.resource.BackendTemplateWatchdogResource.WatchdogResolver ( ) , VdcActionType.UpdateWatchdog , new org.ovirt.engine.api.restapi.resource.BackendTemplateWatchdogResource.UpdateParametersProvider ( ) ) ; }

Target:
public org.ovirt.engine.api.model.Watchdog update ( org.ovirt.engine.api.model.Watchdog watchdog ) { return performUpdate ( watchdog , new org.ovirt.engine.api.restapi.resource.BackendTemplateWatchdogResource.WatchdogResolver ( ) , ActionType.UpdateWatchdog , new org.ovirt.engine.api.restapi.resource.BackendTemplateWatchdogResource.UpdateParametersProvider ( ) ) ; }
Source:
public void setWarning ( java.lang.String msg ) { if ( ! ( getInfoMessage ( ) . getIsValid ( ) ) ) { return ; } getInfoMessage ( ) . setIsValid ( true ) ; getInfoMessage ( ) . setEntity ( msg ) ; }

Target:
public void setWarning ( java.lang.String problem ) { if ( ! ( getProblemDescription ( ) . getIsValid ( ) ) ) { return ; } getProblemDescription ( ) . setIsValid ( true ) ; getProblemDescription ( ) . setEntity ( problem ) ; }
Source:
private void updateModel ( org.ovirt.engine.ui.uicommonweb.models.HostErrataCountModel model ) { if ( ( currentSelectedHost ) != null ) { model.setGuid ( currentSelectedHost.getId ( ) ) ; model.runQuery ( currentSelectedHost.getId ( ) ) ; } }

Target:
private void updateModel ( ) { if ( ( currentSelectedHost ) != null ) { errataCountModel.setGuid ( currentSelectedHost.getId ( ) ) ; errataCountModel.setEntity ( currentSelectedHost ) ; errataCountModel.runQuery ( currentSelectedHost.getId ( ) ) ; } }
Source:
protected void assertEqualsTo ( org.ovirt.engine.core.common.businessentities.StorageDomain firstStorageDomain , org.ovirt.engine.core.common.businessentities.StorageDomain secondStorageDomain ) { org.junit.Assert.assertEquals ( 0 , compareStorageDomains ( firstStorageDomain , secondStorageDomain ) ) ; }

Target:
protected void assertEqualsTo ( org.ovirt.engine.core.common.businessentities.StorageDomain firstStorageDomain , org.ovirt.engine.core.common.businessentities.StorageDomain secondStorageDomain ) { org.junit.jupiter.api.Assertions.assertEquals ( 0 , compareStorageDomains ( firstStorageDomain , secondStorageDomain ) ) ; }
Source:
public void Search ( ) { if ( ( getEntity ( ) ) != null ) { preSearchCalled ( getEntity ( ) ) ; super . Search ( ) ; } }

Target:
public void search ( ) { if ( ( getEntity ( ) ) != null ) { preSearchCalled ( getEntity ( ) ) ; super . search ( ) ; } }
Source:
private void initStorageDomainValidator ( ) { org.mockito.Mockito.when ( storageDomainValidator.isDomainWithinThresholds ( ) ) . thenReturn ( ValidationResult.VALID ) ; org.mockito.Mockito.when ( storageDomainValidator.hasSpaceForClonedDisks ( disksList ) ) . thenReturn ( ValidationResult.VALID ) ; }

Target:
private void initStorageDomainValidator ( ) { org.mockito.Mockito.when ( storageDomainValidator.isDomainWithinThresholds ( ) ) . thenReturn ( ValidationResult.VALID ) ; org.mockito.Mockito.when ( storageDomainValidator.hasSpaceForClonedDisks ( memoryDisks ) ) . thenReturn ( ValidationResult.VALID ) ; }
Source:
public void addNFSEmptyConn ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections newPosixConnection = createPosixConnection ( "" , StorageType.POSIXFS , "nfs" , "timeo=30" ) ; parameters.setStorageServerConnection ( newPosixConnection ) ; parameters.setVdsId ( Guid.Empty ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , VdcBllMessages.VALIDATION_STORAGE_CONNECTION_EMPTY_CONNECTION ) ; }

Target:
public void addNFSEmptyConn ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections newPosixConnection = createPosixConnection ( "" , StorageType.POSIXFS , "nfs" , "timeo=30" ) ; parameters.setStorageServerConnection ( newPosixConnection ) ; parameters.setVdsId ( Guid.Empty ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.VALIDATION_STORAGE_CONNECTION_EMPTY_CONNECTION ) ; }
Source:
private void validateFailedWithReason ( final org.ovirt.engine.core.common.errors.EngineMessage message ) { initAndAssertValidation ( false ) ; org.junit.Assert.assertTrue ( cmd.getReturnValue ( ) . getValidationMessages ( ) . contains ( message.toString ( ) ) ) ; }

Target:
private void validateFailedWithReason ( final org.ovirt.engine.core.common.errors.EngineMessage message ) { initAndAssertValidation ( false ) ; org.ovirt.engine.core.bll.ValidateTestUtils.assertValidationMessages ( "Wrong validation message" , cmd , message ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( getNetworkId ( ) , getNicId ( ) ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( networkId , nicId ) ; }
Source:
public java.util.List < org.ovirt.engine.core.bll.utils.PermissionSubject > getPermissionCheckSubjects ( ) { return java.util.Arrays.asList ( new org.ovirt.engine.core.bll.utils.PermissionSubject ( org.ovirt.engine.core.compat.Guid.SYSTEM , org.ovirt.engine.core.common.VdcObjectType.System , org.ovirt.engine.core.bll.storage.pool.AddEmptyStoragePoolCommand.getActionType ( ) . getActionGroup ( ) ) , new org.ovirt.engine.core.bll.utils.PermissionSubject ( calculateMacPoolIdToUse ( ) , org.ovirt.engine.core.common.VdcObjectType.MacPool , org.ovirt.engine.core.common.businessentities.ActionGroup.CONFIGURE_MAC_POOL ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.bll.utils.PermissionSubject > getPermissionCheckSubjects ( ) { return java.util.Collections.singletonList ( new org.ovirt.engine.core.bll.utils.PermissionSubject ( org.ovirt.engine.core.compat.Guid.SYSTEM , org.ovirt.engine.core.common.VdcObjectType.System , org.ovirt.engine.core.bll.storage.pool.AddEmptyStoragePoolCommand.getActionType ( ) . getActionGroup ( ) ) ) ; }
Source:
private void setAllListModelsUnavailable ( ) { for ( org.ovirt.engine.ui.uicommonweb.models.ListModel m : getItems ( ) ) { m.setIsAvailable ( false ) ; } }

Target:
private void setAllListModelsUnavailable ( ) { for ( org.ovirt.engine.ui.uicommonweb.models.ListModel m : getItems ( ) ) { if ( ! ( m instanceof org.ovirt.engine.ui.uicommonweb.models.reports.ReportsListModel ) ) { m.setIsAvailable ( false ) ; } } }
Source:
public java.lang.Object runInTransaction ( ) { org.ovirt.engine.core.common.businessentities.VmDynamic vmDynamic = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDynamicDao ( ) . get ( getParameters ( ) . getVmId ( ) ) ; vmDynamic.setStatus ( VMStatus.SavingState ) ; _vdsManager.UpdateVmDynamic ( vmDynamic ) ; return null ; }

Target:
public java.lang.Object runInTransaction ( ) { org.ovirt.engine.core.common.businessentities.VmDynamic vmDynamic = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDynamicDao ( ) . get ( getParameters ( ) . getVmId ( ) ) ; vmDynamic.setStatus ( VMStatus.SavingState ) ; _vdsManager.updateVmDynamic ( vmDynamic ) ; return null ; }
Source:
public void dump ( org.ovirt.engine.api.extensions.ExtMap map ) { dump ( map , "" ) ; }

Target:
public void dump ( org.ovirt.engine.exttool.aaa.AAAServiceImpl module , org.ovirt.engine.api.extensions.ExtMap map ) { dump ( module , map , "" ) ; }
Source:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( ) { return getMainModel ( ) . getRefreshCapabilitiesCommand ( ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { updateReportsAvailability ( ) ; }
Source:
public void testChangeClusterForbidden ( ) { prepareVmToPassCanDoAction ( ) ; vmStatic.setVdsGroupId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertFalse ( "canDoAction should have failed with can't change cluster." , command.canDoAction ( ) ) ; assertCanDoActionMessage ( EngineMessage.VM_CANNOT_UPDATE_CLUSTER ) ; }

Target:
public void testInvalidNumberOfMonitors ( ) { prepareVmToPassValidate ( ) ; vmStatic.setNumOfMonitors ( 99 ) ; org.junit.Assert.assertFalse ( "validate should have failed with invalid number of monitors." , command.validate ( ) ) ; assertValidateMessage ( EngineMessage.ACTION_TYPE_FAILED_ILLEGAL_NUM_OF_MONITORS ) ; }
Source:
public void setIsChangable ( boolean value ) { if ( ! ( isVmAttachedToPool ( ) ) ) super . setIsChangable ( value ) ; }

Target:
public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { getBehavior ( ) . updateTimeZone ( ) ; }
Source:
public void diskImagesAlreadyExistBothDoesntExist ( ) { org.mockito.Mockito.doReturn ( null ) . when ( validator ) . getExistingDisk ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ; org.junit.Assert.assertEquals ( ValidationResult.VALID , validator.diskImagesAlreadyExist ( ) ) ; }

Target:
public void diskImagesAlreadyExistBothDoesntExist ( ) { org.mockito.Mockito.doReturn ( null ) . when ( validator ) . getExistingDisk ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ; org.junit.Assert.assertThat ( validator.diskImagesAlreadyExist ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void shouldDoNothingWithoutGroups ( ) { org.junit.Assert.assertNull ( enforcer.chooseNextVmToMigrate ( vdsGroup ) ) ; }

Target:
public void shouldDoNothingWithoutGroups ( ) { org.assertj.core.api.Assertions.assertThat ( enforcer.chooseNextVmToMigrate ( vdsGroup ) ) . isNull ( ) ; }
Source:
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 ( ) ) ) ; }

Target:
private static boolean labelAdded ( org.ovirt.engine.core.common.businessentities.network.Network network , org.ovirt.engine.core.common.businessentities.network.Network oldNetwork ) { return ( ! ( org.ovirt.engine.core.utils.NetworkUtils.isLabeled ( oldNetwork ) ) ) && ( org.ovirt.engine.core.utils.NetworkUtils.isLabeled ( network ) ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > getNetworkAttachments ( ) { verifyHostAndNicExistence ( ) ; return getBackendCollection ( VdcQueryType.GetNetworkAttachmentsByHostNicId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( nicId ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > getNetworkAttachments ( ) { verifyHostAndNicExistence ( ) ; return getBackendCollection ( QueryType.GetNetworkAttachmentsByHostNicId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( nicId ) ) ; }
Source:
public void rollback ( ) { super . rollback ( ) ; org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolPerDcSingleton.getInstance ( ) . removePool ( getMacPoolId ( ) ) ; }

Target:
public void onRollback ( ) { org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolPerDcSingleton.getInstance ( ) . removePool ( getMacPoolId ( ) ) ; }
Source:
public void lowerVersionMgmtNetworkSupportedFeatures ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addManagementNetworksToPool ( 2 ) ; setupNetworkValidator ( true ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionSuccess ( cmd ) ; }

Target:
public void lowerVersionMgmtNetworkSupportedFeatures ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addManagementNetworksToPool ( 2 ) ; setupNetworkValidator ( true ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( cmd ) ; }
Source:
public void canNotDoWithTwoPinnedHost ( ) { final org.ovirt.engine.core.bll.numa.vm.AddVmNumaNodesCommand command = mockedCommand ( ) ; vm.setDedicatedVmForVdsList ( java.util.Arrays.asList ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.ACTION_TYPE_FAILED_VM_PINNED_TO_MULTIPLE_HOSTS ) ; }

Target:
public void canNotDoWithTwoPinnedHost ( ) { final org.ovirt.engine.core.bll.numa.vm.AddVmNumaNodesCommand command = mockedCommandWithVmFromDb ( ) ; vm.setDedicatedVmForVdsList ( java.util.Arrays.asList ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.ACTION_TYPE_FAILED_VM_PINNED_TO_MULTIPLE_HOSTS ) ; }
Source:
public void InitTest ( ) { mockOsRepository ( ) ; org.ovirt.engine.core.common.utils.SimpleDependecyInjector.getInstance ( ) . bind ( org.ovirt.engine.core.dal.dbbroker.DbFacade.class , dbFacade ) ; }

Target:
public void InitTest ( ) { mockOsRepository ( ) ; org.ovirt.engine.core.common.utils.SimpleDependecyInjector.getInstance ( ) . bind ( org.ovirt.engine.core.dal.dbbroker.DbFacade.class , dbFacade ) ; org.mockito.Mockito.doReturn ( deviceDao ) . when ( dbFacade ) . getVmDeviceDao ( ) ; org.ovirt.engine.core.bll.utils.VmDeviceUtils.init ( ) ; }
Source:
public void setSelectedKey ( org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.String > value ) { this . selectedKey = value ; }

Target:
public void setOptionsMap ( java.util.HashMap < java.lang.String , org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeOptionInfo > optionsMap ) { this . optionsMap = optionsMap ; getKeyList ( ) . setItems ( new java.util.ArrayList < java.lang.String > ( getOptionsMap ( ) . keySet ( ) ) , getKeyList ( ) . getSelectedItem ( ) ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.DiskImage object ) { return object.getDiskInterface ( ) . toString ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.storage.DiskImage object ) { return object.getDiskInterface ( ) . toString ( ) ; }
Source:
public static int GetMaxVmPriority ( ) { return ( ( java.lang.Integer ) ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.GetConfigValuePreConverted ( ConfigurationValues.VmPriorityMaxValue , org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getDefaultConfigurationVersion ( ) ) ) ) ; }

Target:
public static int getMaxVmPriority ( ) { return ( ( java.lang.Integer ) ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getConfigValuePreConverted ( ConfigurationValues.VmPriorityMaxValue , org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getDefaultConfigurationVersion ( ) ) ) ) ; }
Source:
public void storageDomainWithNullId ( ) { b.setStorageDomainId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID2 ) ; final org.ovirt.engine.core.common.businessentities.StorageDomain s = b.getStorageDomain ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.STORAGE_DOMAIN , s ) ; }

Target:
public void storageDomainWithNullId ( ) { b.setStorageDomainId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID2 ) ; final org.ovirt.engine.core.common.businessentities.StorageDomain s = b.getStorageDomain ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.STORAGE_DOMAIN , s ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.storage_domains storage_domains ) { return ( storage_domains.getstorage_domain_type ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainType.Master ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.StorageDomain storage_domains ) { return ( storage_domains.getStorageDomainType ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainType.Master ) ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml image ( com.google.gwt.safehtml.shared.SafeHtml statusImage , java.lang.String title ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml imageWithId ( com.google.gwt.safehtml.shared.SafeHtml statusImage , java.lang.String id ) ;
Source:
public void setAllowConsoleReconnect ( boolean value ) { this . mVmStatic.setAllowConsoleReconnect ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "allowConsoleReconnect" ) ) ; }

Target:
public int getNumOfSockets ( ) { return this . vmStatic.getNumOfSockets ( ) ; }
Source:
public void parseLunFromXmlRpcReturnsUnknownForFcp ( ) throws java.lang.Exception { testParseLunFromXmlRpcForDevtypeField ( StorageType.UNKNOWN , GetDeviceListVDSCommand.DEVTYPE_VALUE_FCP ) ; }

Target:
public void parseLunFromXmlRpcReturnsUnknownForFcp ( ) throws java.lang.Exception { org.ovirt.engine.core.vdsbroker.vdsbroker.GetDeviceListVDSCommandTest.testParseLunFromXmlRpcForDevtypeField ( StorageType.UNKNOWN , GetDeviceListVDSCommand.DEVTYPE_VALUE_FCP ) ; }
Source:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.String > event ) { handler.onValueChange ( new com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Object > ( event.getValue ( ) ) { } ) ; }

Target:
protected java.lang.Object asEntity ( java.lang.String value ) { return value ; }
Source:
private boolean isSameSourceAndDest ( org.ovirt.engine.core.common.action.LiveMigrateDiskParameters parameters ) { org.ovirt.engine.core.common.businessentities.StorageDomain sourceDomain = getImageSourceDomain ( parameters.getImageId ( ) ) ; if ( sourceDomain.getId ( ) . equals ( parameters.getStorageDomainId ( ) ) ) { return failCanDoAction ( VdcBllMessages.ACTION_TYPE_FAILED_SOURCE_AND_TARGET_SAME ) ; } return true ; }

Target:
private boolean isSameSourceAndDest ( org.ovirt.engine.core.common.action.LiveMigrateDiskParameters parameters ) { org.ovirt.engine.core.common.businessentities.StorageDomain sourceDomain = getImageSourceDomain ( parameters.getImageId ( ) ) ; if ( sourceDomain.getId ( ) . equals ( parameters.getTargetStorageDomainId ( ) ) ) { return failCanDoAction ( VdcBllMessages.ACTION_TYPE_FAILED_SOURCE_AND_TARGET_SAME ) ; } return true ; }
Source:
public void Cluster_SelectedItemChanged ( ) { UpdateDefaultHost ( ) ; UpdateCustomProperties ( ) ; UpdateMinAllocatedMemory ( ) ; UpdateNumOfSockets ( ) ; updateQuotaByCluster ( null ) ; updateCpuPinningVisibility ( ) ; }

Target:
public void Cluster_SelectedItemChanged ( ) { UpdateDefaultHost ( ) ; UpdateCustomProperties ( ) ; UpdateMinAllocatedMemory ( ) ; UpdateNumOfSockets ( ) ; updateQuotaByCluster ( null , "" ) ; updateCpuPinningVisibility ( ) ; }
Source:
public void nameNotEmpty ( ) { org.mockito.Mockito.when ( host.getName ( ) ) . thenReturn ( org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextString ( org.ovirt.engine.core.bll.validator.HostValidatorTest.HOST_NAME_SIZE ) ) ; org.junit.Assert.assertThat ( validator.nameNotEmpty ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void nameNotEmpty ( ) { org.mockito.Mockito.when ( host.getName ( ) ) . thenReturn ( org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextString ( org.ovirt.engine.core.bll.validator.HostValidatorTest.HOST_NAME_SIZE ) ) ; org.hamcrest.MatcherAssert.assertThat ( validator.nameNotEmpty ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
protected org.ovirt.engine.api.model.Storage map ( org.ovirt.engine.api.restapi.resource.StorageDomain entity ) { return getMapper ( org.ovirt.engine.core.common.businessentities.StorageDomain.class , org.ovirt.engine.api.model.Storage.class ) . map ( entity , null ) ; }

Target:
protected org.ovirt.engine.api.model.HostStorage map ( org.ovirt.engine.api.restapi.resource.StorageDomain entity ) { return getMapper ( org.ovirt.engine.core.common.businessentities.StorageDomain.class , org.ovirt.engine.api.model.HostStorage.class ) . map ( entity , null ) ; }
Source:
private static void logException ( final java.lang.RuntimeException ex ) { org.ovirt.engine.core.vdsbroker.VdsManager.log.error ( "ResourceManager::refreshVdsRunTimeInfo" , ex ) ; }

Target:
private void logFailureMessage ( java.lang.RuntimeException ex ) { org.ovirt.engine.core.vdsbroker.VdsManager.log.warn ( "Failed to refresh VDS, continuing, vds ='{}' ('{}'): {}" , vds.getName ( ) , vds.getId ( ) , ex.getMessage ( ) ) ; org.ovirt.engine.core.vdsbroker.VdsManager.log.error ( "Exception" , ex ) ; }
Source:
public final void render ( org.ovirt.engine.ui.common.widget.table.cell.Context context , C value , com.google.gwt.safehtml.shared.SafeHtmlBuilder sb ) { java.lang.String id = org.ovirt.engine.ui.common.utils.ElementIdUtils.createTableCellElementId ( getElementIdPrefix ( ) , getColumnId ( ) , context ) ; render ( context , value , sb , id ) ; }

Target:
public final void render ( org.ovirt.engine.ui.common.widget.table.cell.Cell.Context context , C value , com.google.gwt.safehtml.shared.SafeHtmlBuilder sb ) { java.lang.String id = org.ovirt.engine.ui.common.utils.ElementIdUtils.createTableCellElementId ( getElementIdPrefix ( ) , getColumnId ( ) , context ) ; render ( context , value , sb , id ) ; }
Source:
public org.ovirt.engine.core.common.utils.VmDeviceType getDisplayDevice ( int osId , org.ovirt.engine.core.compat.Version version , org.ovirt.engine.core.common.businessentities.DisplayType displayType ) { org.ovirt.engine.core.common.utils.VmDeviceType vmDeviceType = parseDisplayProtocols ( osId , version ) . get ( displayType ) ; return vmDeviceType == null ? displayType.getDefaultVmDeviceType ( ) : vmDeviceType ; }

Target:
public java.util.Set < java.lang.String > getUnsupportedCpus ( int osId , org.ovirt.engine.core.compat.Version version ) { return new java.util.HashSet ( trimElements ( getValueByVersion ( idToUnameLookup.get ( osId ) , "cpu.unsupported" , version ) . toLowerCase ( ) . split ( "," ) ) ) ; }
Source:
protected void endSuccessfully ( ) { super . endSuccessfully ( ) ; attachDisks ( ) ; }

Target:
protected void removeVmRelatedEntitiesFromDb ( ) { detachDisks ( ) ; super . removeVmRelatedEntitiesFromDb ( ) ; }
Source:
protected javax.ws.rs.core.Response performCreation ( org.ovirt.engine.core.common.action.VdcActionType task , org.ovirt.engine.core.common.action.VdcActionParametersBase taskParams , org.ovirt.engine.api.restapi.resource.EntityIdResolver entityResolver , java.lang.Class < ? extends org.ovirt.engine.api.model.BaseResource > suggestedParentType ) { return performCreation ( task , taskParams , entityResolver , expectBlocking ( ) , suggestedParentType ) ; }

Target:
protected final < T > javax.ws.rs.core.Response performCreate ( org.ovirt.engine.core.common.action.VdcActionType task , org.ovirt.engine.core.common.action.VdcActionParametersBase taskParams , org.ovirt.engine.api.restapi.resource.IResolver < T , Q > entityResolver ) { return performCreate ( task , taskParams , entityResolver , expectBlocking ( ) ) ; }
Source:
public static java.util.List < org.ovirt.engine.core.aaa.DirectoryUser > fetchUsersByIdsRecursively ( final org.ovirt.engine.core.extensions.mgr.ExtensionProxy extension , final java.lang.String namespace , final java.util.List < java.lang.String > ids ) { return org.ovirt.engine.core.aaa.DirectoryUtils.mapPrincipalRecords ( org.ovirt.engine.core.aaa.AuthzUtils.getName ( extension ) , org.ovirt.engine.core.aaa.AuthzUtils.fetchPrincipalsByIdsRecursively ( extension , namespace , ids ) ) ; }

Target:
public static org.ovirt.engine.core.common.businessentities.DbUser mapPrincipalRecordToDbUser ( final java.lang.String authzName , final org.ovirt.engine.api.extensions.ExtMap principalRecord ) { return new org.ovirt.engine.core.common.businessentities.DbUser ( org.ovirt.engine.core.aaa.DirectoryUtils.mapPrincipalRecordToDirectoryUser ( authzName , principalRecord ) ) ; }
Source:
public static org.ovirt.engine.api.restapi.types.WatchdogModel fromValue ( java.lang.String value ) { try { return org.ovirt.engine.api.restapi.types.WatchdogModel.valueOf ( value ) ; } catch ( java.lang.IllegalArgumentException e ) { return null ; } }

Target:
public static org.ovirt.engine.api.restapi.types.WatchdogModel fromValue ( java.lang.String value ) { try { return org.ovirt.engine.api.restapi.types.WatchdogModel.valueOf ( org.apache.commons.lang.StringUtils.upperCase ( value ) ) ; } catch ( java.lang.IllegalArgumentException e ) { return null ; } }
Source:
public void attachUserGroupToTag ( org.ovirt.engine.core.common.businessentities.tags_user_group_map map ) { tagUserGroupMapDAO.save ( map ) ; }

Target:
public void attachUserGroupToTag ( org.ovirt.engine.core.common.businessentities.TagsUserGroupMap map ) { tagUserGroupMapDAO.save ( map ) ; }
Source:
public java.lang.String getDisplayIp ( ) { return this . vmDynamic.getDisplayIp ( ) ; }

Target:
public java.util.List < java.lang.Integer > getMemoryUsageHistory ( ) { return this . vmStatistics.getMemoryUsageHistory ( ) ; }
Source:
public org.ovirt.engine.api.model.NIC update ( org.ovirt.engine.api.model.NIC device ) { validateEnums ( org.ovirt.engine.api.model.NIC.class , device ) ; return super . update ( device ) ; }

Target:
public org.ovirt.engine.api.model.Nic update ( org.ovirt.engine.api.model.Nic device ) { validateEnums ( org.ovirt.engine.api.model.Nic.class , device ) ; return super . update ( device ) ; }
Source:
public java.net.URL getExternalHttpsUrl ( java.lang.String path ) throws java.net.MalformedURLException { return new java.net.URL ( "https" , getHost ( ) , getExternalHttpsPort ( ) , ( ( getEngineURI ( ) ) + path ) ) ; }

Target:
public java.net.URL getExternalHttpsBaseUrl ( java.lang.String path ) throws java.net.MalformedURLException { return new java.net.URL ( "https" , getHost ( ) , getExternalHttpsPort ( ) , path ) ; }
Source:
public java.lang.String getUser ( ) { return this . user ; }

Target:
public java.lang.String getUser ( ) { return _user ; }
Source:
org.ovirt.engine.ui.webadmin.widget.host.BondPanel createBondPanel ( org.ovirt.engine.ui.uicommonweb.models.hosts.HostInterfaceLineModel lineModel ) { org.ovirt.engine.ui.webadmin.widget.host.BondPanel panel = new org.ovirt.engine.ui.webadmin.widget.host.BondPanel ( lineModel ) ; panel.setWidth ( "100%" ) ; panel.setHeight ( "100%" ) ; return panel ; }

Target:
org.ovirt.engine.ui.webadmin.widget.host.BondPanel createBondPanel ( org.ovirt.engine.ui.uicommonweb.models.hosts.HostInterfaceLineModel lineModel ) { org.ovirt.engine.ui.webadmin.widget.host.BondPanel panel = new org.ovirt.engine.ui.webadmin.widget.host.BondPanel ( lineModel ) ; panel.setWidth ( "100%" ) ; panel.setHeight ( "100%" ) ; addClickHandlerToPanel ( panel , lineModel ) ; return panel ; }
Source:
public org.ovirt.engine.api.model.Group get ( ) { return performGet ( VdcQueryType.GetAdGroupById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; }

Target:
public org.ovirt.engine.api.model.Group get ( ) { return performGet ( VdcQueryType.GetAdGroupById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) , org.ovirt.engine.api.model.BaseResource.class ) ; }
Source:
protected org.ovirt.engine.core.common.users.VdcUser map ( org.ovirt.engine.core.common.businessentities.AdUser adUser ) { return getMapper ( org.ovirt.engine.core.common.businessentities.AdUser.class , org.ovirt.engine.core.common.users.VdcUser.class ) . map ( adUser , null ) ; }

Target:
protected org.ovirt.engine.core.common.users.VdcUser map ( org.ovirt.engine.core.common.businessentities.LdapUser adUser ) { return getMapper ( org.ovirt.engine.core.common.businessentities.LdapUser.class , org.ovirt.engine.core.common.users.VdcUser.class ) . map ( adUser , null ) ; }
Source:
private boolean templateExists ( ) { if ( ( ( getVmTemplate ( ) ) == null ) && ( ! ( getParameters ( ) . getCopyCollapse ( ) ) ) ) { addCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_TEMPLATE_DOES_NOT_EXIST ) ; return false ; } return true ; }

Target:
private boolean templateExists ( ) { if ( ( ( getVmTemplate ( ) ) == null ) && ( ! ( getParameters ( ) . getCopyCollapse ( ) ) ) ) { return failCanDoAction ( VdcBllMessages.ACTION_TYPE_FAILED_TEMPLATE_DOES_NOT_EXIST ) ; } return true ; }
Source:
protected java.lang.String generateVmTemplateMetadata ( org.ovirt.engine.core.common.businessentities.VmTemplate template , java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > allTemplateImages ) { return ovfManager.ExportTemplate ( template , allTemplateImages , org.ovirt.engine.core.bll.utils.ClusterUtils.getCompatilibilyVersion ( template ) ) ; }

Target:
protected java.lang.String generateVmTemplateMetadata ( org.ovirt.engine.core.common.businessentities.VmTemplate template , java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > allTemplateImages ) { return ovfManager.ExportTemplate ( template , allTemplateImages , org.ovirt.engine.core.bll.utils.ClusterUtils.getCompatibilityVersion ( template ) ) ; }
Source:
org.ovirt.engine.api.resource.StorageDomainContentsResource < org.ovirt.engine.api.model.Vms , org.ovirt.engine.api.model.Vm > getStorageDomainVmsResource ( ) ;

Target:
org.ovirt.engine.api.resource.StorageDomainVmsResource getVmsResource ( ) ;
Source:
public org.ovirt.engine.core.common.businessentities.SessionState getsession ( ) { return this . mVmDynamic.getsession ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.SessionState getSession ( ) { return this . vmDynamic.getsession ( ) ; }
Source:
public static boolean isNonVmNonVlanNetwork ( org.ovirt.engine.core.common.businessentities.network.Network network ) { return ( ! ( network.isVmNetwork ( ) ) ) && ( ( network.getVlanId ( ) ) == null ) ; }

Target:
public static boolean isVlan ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface nic ) { return ( nic.getVlanId ( ) ) != null ; }
Source:
public java.lang.Boolean getacpi_enable ( ) { return this . acpi_enable ; }

Target:
public java.lang.Boolean getacpi_enable ( ) { return this . acpiEnabled ; }
Source:
private void localize ( ) { masterVolumeEditor.setLabel ( constants.geoRepMasterVolume ( ) ) ; slaveVolumeEditor.setLabel ( constants.geoRepSlaveVolume ( ) ) ; slaveHostEditor.setLabel ( constants.geoRepSlaveHostIp ( ) ) ; }

Target:
private void localize ( ) { masterVolumeEditor.setLabel ( org.ovirt.engine.ui.webadmin.section.main.view.popup.gluster.GeoRepActionConfirmPopUpView.constants.geoRepMasterVolume ( ) ) ; slaveVolumeEditor.setLabel ( org.ovirt.engine.ui.webadmin.section.main.view.popup.gluster.GeoRepActionConfirmPopUpView.constants.geoRepSlaveVolume ( ) ) ; slaveHostEditor.setLabel ( org.ovirt.engine.ui.webadmin.section.main.view.popup.gluster.GeoRepActionConfirmPopUpView.constants.geoRepSlaveHostIp ( ) ) ; }
Source:
public void testGlusterCompatibility ( ) { storageDomain.setStorageType ( StorageType.GLUSTERFS ) ; org.junit.Assert.assertTrue ( "Attaching a GLUSTER domain failed while it should have succeeded" , validator.validateDomainCanBeAttachedToPool ( ) . isValid ( ) ) ; }

Target:
public void testGlusterCompatibility ( ) { storageDomain.setStorageType ( StorageType.GLUSTERFS ) ; org.junit.Assert.assertThat ( "Attaching a GLUSTER domain failed while it should have succeeded" , validator.validateDomainCanBeAttachedToPool ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public java.lang.String toString ( ) { return java.lang.String.format ( "hostId = %s, deviceName = %s" , getHostId ( ) , getDeviceName ( ) ) ; }

Target:
public java.lang.String toString ( ) { return org.ovirt.engine.core.common.utils.ToStringBuilder.forInstance ( this ) . append ( "hostId" , getHostId ( ) ) . append ( "deviceName" , getDeviceName ( ) ) . build ( ) ; }
Source:
public void setUp ( ) { createCommand ( ) ; mockBackend ( ) ; }

Target:
public void setUp ( ) { mockDao ( ) ; mockBackend ( ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.DbUser getUser ( boolean refresh ) { return ( ( org.ovirt.engine.core.common.businessentities.DbUser ) ( GetData ( org.ovirt.engine.core.bll.session.SessionDataContainer.USER_PARAMETER_NAME , refresh ) ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.DbUser getUser ( boolean refresh ) { return ( ( org.ovirt.engine.core.common.businessentities.DbUser ) ( getData ( org.ovirt.engine.core.bll.session.SessionDataContainer.USER_PARAMETER_NAME , refresh ) ) ) ; }
Source:
protected void onSelectedItemChanged ( ) { super . onSelectedItemChanged ( ) ; updateActionAvailability ( ) ; }

Target:
public void onSuccess ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue returnValue ) { java.util.List < T > items = returnValue.getReturnValue ( ) ; java.util.Collections.sort ( items , comparator ) ; setItems ( items ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.network.NetworkStatus getStatus ( ) { return ( getEntity ( ) . getCluster ( ) ) == null ? null : getEntity ( ) . getCluster ( ) . getStatus ( ) ; }

Target:
public java.lang.String getName ( ) { return getNetwork ( ) . getName ( ) ; }
Source:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand ) { getParentModel ( ) . setWindow ( null ) ; }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand ) { logSsoOnDesktopFailedAgentNonResp ( getLogger ( ) , ( logonCommandReturnValue != null ? logonCommandReturnValue.getDescription ( ) : "" ) ) ; invokeClient ( ) ; getParentModel ( ) . setWindow ( null ) ; }
Source:
protected boolean ValidateTag ( java.lang.String tagName ) { boolean retValue = true ; org.ovirt.engine.core.common.businessentities.Tags tag = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getTagDao ( ) . getByName ( tagName ) ; if ( tag == null ) { addCanDoActionMessage ( EngineMessage.EN_UNKNOWN_TAG_NAME ) ; retValue = false ; } return retValue ; }

Target:
protected boolean validateTag ( java.lang.String tagName ) { boolean retValue = true ; org.ovirt.engine.core.common.businessentities.Tags tag = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getTagDao ( ) . getByName ( tagName ) ; if ( tag == null ) { addCanDoActionMessage ( EngineMessage.EN_UNKNOWN_TAG_NAME ) ; retValue = false ; } return retValue ; }
Source:
public void testCheckGlusterQuorumWithoutBricks ( ) { org.ovirt.engine.core.common.businessentities.Cluster cluster = getCluster ( true ) ; java.lang.Iterable < org.ovirt.engine.core.compat.Guid > hostIds = java.util.Arrays.asList ( org.ovirt.engine.core.bll.gluster.GlusterHostValidatorTest.DUMMY_SERVER_ID , org.ovirt.engine.core.bll.gluster.GlusterHostValidatorTest.SERVER_ID_1 ) ; org.junit.Assert.assertTrue ( hostValidator.checkGlusterQuorum ( cluster , hostIds ) . isEmpty ( ) ) ; }

Target:
public void testCheckGlusterQuorumWithoutBricks ( ) { org.ovirt.engine.core.common.businessentities.Cluster cluster = getCluster ( true ) ; java.lang.Iterable < org.ovirt.engine.core.compat.Guid > hostIds = java.util.Arrays.asList ( org.ovirt.engine.core.bll.gluster.GlusterHostValidatorTest.DUMMY_SERVER_ID , org.ovirt.engine.core.bll.gluster.GlusterHostValidatorTest.SERVER_ID_1 ) ; org.junit.jupiter.api.Assertions.assertTrue ( hostValidator.checkGlusterQuorum ( cluster , hostIds ) . isEmpty ( ) ) ; }
Source:
public void execute ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel model ) { getModel ( ) . getEditConsoleCommand ( ) . execute ( ) ; }

Target:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel value ) { return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromSafeConstant ( org.ovirt.engine.ui.userportal.section.main.view.tab.extended.SideTabExtendedVirtualMachineView.constants.editConsoleLabel ( ) ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetTasksStatusesByTasksIDsQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.tasks.TaskManagerUtil.pollTasks ( org.ovirt.engine.core.bll.GetTasksStatusesByTasksIDsQuery.getParameters ( ) . getTasksIDs ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetTasksStatusesByTasksIDsQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.pollTasks ( org.ovirt.engine.core.bll.GetTasksStatusesByTasksIDsQuery.getParameters ( ) . getTasksIDs ( ) ) ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { testProvider = new org.ovirt.engine.ui.frontend.communication.GWTRPCCommunicationProvider ( mockService ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { mockXsrfRpcRequestBuilder = new org.ovirt.engine.ui.frontend.communication.XsrfRpcRequestBuilder ( ) ; testProvider = new org.ovirt.engine.ui.frontend.communication.GWTRPCCommunicationProvider ( mockService , mockXsrfService , mockXsrfRpcRequestBuilder ) ; mockXsrfRpcRequestBuilder.setXsrfToken ( new com.google.gwt.user.client.rpc.XsrfToken ( "Something" ) ) ; }
Source:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( ) { return getMainModel ( ) . getStopRebalanceCommand ( ) ; }

Target:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( ) { return getMainModel ( ) . getBrickListModel ( ) . getCommitRemoveBricksCommand ( ) ; }
Source:
public void setCurrentRefreshRate ( int newRefreshRate ) { saveRefreshRate ( newRefreshRate ) ; getModelTimer ( ) . setRefreshRate ( readRefreshRate ( ) ) ; updateTimer ( ) ; }

Target:
java.lang.String getRefreshRateItemKey ( ) { return ( ( org.ovirt.engine.ui.common.widget.refresh.AbstractRefreshManager.GRID_REFRESH_RATE_PREFIX ) + "_" ) + ( controller.getId ( ) ) ; }
Source:
java.lang.String getParentId ( org.ovirt.engine.api.model.Tag tag ) { return lookupTagByName ( tag.getParent ( ) . getName ( ) ) . gettag_id ( ) . toString ( ) ; }

Target:
java.lang.String getParentId ( org.ovirt.engine.api.model.Tag tag ) { return lookupTagByName ( tag.getParent ( ) . getName ( ) ) . getTagId ( ) . toString ( ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.network.NetworkInterface findInterfaceByName ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > items , java.lang.String name ) { for ( org.ovirt.engine.core.common.businessentities.network.NetworkInterface i : items ) { if ( org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( i.getName ( ) , name ) ) { return i ; } } return null ; }

Target:
public static org.ovirt.engine.core.common.businessentities.network.NetworkInterface findInterfaceByName ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > items , java.lang.String name ) { for ( org.ovirt.engine.core.common.businessentities.network.NetworkInterface i : items ) { if ( java.util.Objects.equals ( i.getName ( ) , name ) ) { return i ; } } return null ; }
Source:
public void existsWithTypeReturnsFalseForNonExistingVm ( ) throws java.lang.Exception { org.junit.Assert.assertFalse ( dao.exists ( new org.ovirt.engine.core.compat.Guid ( ) , SnapshotType.REGULAR ) ) ; }

Target:
public void existsWithTypeReturnsFalseForNonExistingVm ( ) throws java.lang.Exception { org.junit.Assert.assertFalse ( dao.exists ( Guid.Empty , SnapshotType.REGULAR ) ) ; }
Source:
protected void updateCurrentCd ( java.lang.String cdPath ) { org.ovirt.engine.core.bll.VmHandler.updateCurrentCd ( org.ovirt.engine.core.bll.RunVmCommand.getVdsId ( ) , org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) , cdPath ) ; }

Target:
protected void updateCurrentCd ( java.lang.String cdPath ) { cdPath = ( org.apache.commons.lang.StringUtils.isEmpty ( cdPath ) ) ? null : cdPath ; org.ovirt.engine.core.bll.VmHandler.updateCurrentCd ( org.ovirt.engine.core.bll.RunVmCommand.getVdsId ( ) , org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) , cdPath ) ; }