auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testGetAllForStoragePoolWithPermissionsDisabledUnprivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllForStoragePool ( org.ovirt.engine.core.dao.StorageDomainDaoTest.EXISTING_STORAGE_POOL_ID , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , false ) ; org.ovirt.engine.core.dao.StorageDomainDaoTest.assertGetAllForStoragePoolResult ( result , org.ovirt.engine.core.dao.StorageDomainDaoTest.EXISTING_STORAGE_POOL_ID ) ; }

Target:
public void testGetAllForStoragePoolWithPermissionsPrivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllForStoragePool ( FixturesTool.DATA_CENTER , org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , true ) ; org.ovirt.engine.core.dao.StorageDomainDaoTest.assertGetAllForStoragePoolResult ( result , FixturesTool.DATA_CENTER ) ; }
Source:
private static void mapCpuQosToModel ( org.ovirt.engine.core.common.businessentities.qos.QosBase entity , org.ovirt.engine.api.model.QoS model ) { org.ovirt.engine.core.common.businessentities.qos.CpuQos cpuQos = org.ovirt.engine.api.restapi.types.QosMapper.verifyAndCast ( entity , org.ovirt.engine.core.common.businessentities.qos.CpuQos.class ) ; if ( cpuQos != null ) { model.setCpuLimit ( cpuQos.getCpuLimit ( ) ) ; } }

Target:
private static void mapCpuQosToModel ( org.ovirt.engine.core.common.businessentities.qos.QosBase entity , org.ovirt.engine.api.model.Qos model ) { org.ovirt.engine.core.common.businessentities.qos.CpuQos cpuQos = org.ovirt.engine.api.restapi.types.QosMapper.verifyAndCast ( entity , org.ovirt.engine.core.common.businessentities.qos.CpuQos.class ) ; if ( cpuQos != null ) { model.setCpuLimit ( cpuQos.getCpuLimit ( ) ) ; } }
Source:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { return org.ovirt.engine.core.bll.UpdateVmPoolCommand.isAddVmsSucceded ( ) ? org.ovirt.engine.core.common.AuditLogType.USER_UPDATE_VM_POOL_WITH_VMS : org.ovirt.engine.core.common.AuditLogType.USER_UPDATE_VM_POOL_WITH_VMS_FAILED ; }

Target:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { return org.ovirt.engine.core.bll.UpdateVmPoolCommand.isAllAddVmsSucceeded ( ) ? org.ovirt.engine.core.common.AuditLogType.USER_UPDATE_VM_POOL_WITH_VMS : org.ovirt.engine.core.common.AuditLogType.USER_UPDATE_VM_POOL_WITH_VMS_FAILED ; }
Source:
public org.ovirt.engine.core.common.businessentities.DiskImage mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { org.ovirt.engine.core.common.businessentities.DiskImage entity = super . mapRow ( rs , rowNum ) ; mapEntity ( rs , entity ) ; return entity ; }

Target:
public org.ovirt.engine.core.common.businessentities.storage.CinderDisk mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { org.ovirt.engine.core.common.businessentities.storage.CinderDisk cinderDisk = super . mapRow ( rs , rowNum ) ; org.ovirt.engine.core.dao.DiskImageDAODbFacadeImpl.DiskImageRowMapper.instance.mapEntity ( rs , cinderDisk ) ; mapEntity ( rs , cinderDisk ) ; return cinderDisk ; }
Source:
protected void auditFenceActionFailure ( org.ovirt.engine.core.common.businessentities.pm.FenceActionType action , org.ovirt.engine.core.common.businessentities.FenceAgent realAgent , org.ovirt.engine.core.common.businessentities.VDS proxyHost ) { getAuditLogDirector ( ) . log ( createAuditLogObject ( action , realAgent , proxyHost ) , AuditLogType.FENCE_OPERATION_USING_AGENT_AND_PROXY_FAILED ) ; }

Target:
protected void auditFenceActionFailure ( org.ovirt.engine.core.common.businessentities.pm.FenceActionType action , org.ovirt.engine.core.common.businessentities.pm.FenceAgent realAgent , org.ovirt.engine.core.common.businessentities.VDS proxyHost ) { getAuditLogDirector ( ) . log ( createAuditLogObject ( action , realAgent , proxyHost ) , AuditLogType.FENCE_OPERATION_USING_AGENT_AND_PROXY_FAILED ) ; }
Source:
public void validateFails ( ) { setVolumeId ( volumeId1 ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFails ( ) { setVolumeId ( volumeId1 ) ; org.junit.jupiter.api.Assertions.assertFalse ( cmd.validate ( ) ) ; }
Source:
public void shouldAllowUpgradeForVM ( ) { org.hamcrest.MatcherAssert.assertThat ( validator.isVmReadyForUpgrade ( validVM ) , org.hamcrest.core.Is.is ( org.hamcrest.Matchers.empty ( ) ) ) ; }

Target:
public void shouldAllowUpgradeForVM ( ) { org.hamcrest.MatcherAssert.assertThat ( validator.checkVmReadyForUpgrade ( validVM ) , org.hamcrest.core.Is.is ( org.hamcrest.Matchers.empty ( ) ) ) ; }
Source:
public void setDeviceInfoVisibility ( boolean isVisiable ) { deviceSelectionInfo.setVisible ( isVisiable ) ; }

Target:
public void setRaidParamsVisibility ( boolean isVisiable ) { deviceSelectionInfo.setVisible ( isVisiable ) ; stripeSizeWithInfo.setVisible ( isVisiable ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.network.Network getNetwork ( ) { if ( ( network ) == null ) { network = org.ovirt.engine.core.bll.network.dc.RemoveNetworkCommand.getNetworkDAO ( ) . get ( org.ovirt.engine.core.bll.network.dc.RemoveNetworkCommand.getParameters ( ) . getId ( ) ) ; } return network ; }

Target:
protected org.ovirt.engine.core.common.businessentities.network.Network getNetwork ( ) { if ( ( network ) == null ) { network = org.ovirt.engine.core.bll.network.dc.RemoveNetworkCommand.getNetworkDao ( ) . get ( org.ovirt.engine.core.bll.network.dc.RemoveNetworkCommand.getParameters ( ) . getId ( ) ) ; } return network ; }
Source:
public void onSuccess ( final org.ovirt.engine.core.common.action.VdcReturnValueBase result ) { loginOperation.getCallback ( ) . onSuccess ( loginOperation , result ) ; }

Target:
public void onSuccess ( final org.ovirt.engine.core.common.action.VdcReturnValueBase result ) { xsrfRequestBuilder.setXsrfToken ( null ) ; loginOperation.getCallback ( ) . onSuccess ( loginOperation , result ) ; }
Source:
public static org.ovirt.engine.ui.userportal.gin.ClientGinjector instance ( ) { return org.ovirt.engine.ui.userportal.gin.ClientGinjectorProvider.ginjector ; }

Target:
public static org.ovirt.engine.ui.common.uicommon.ClientAgentType getClientAgentType ( ) { return org.ovirt.engine.ui.userportal.gin.ClientGinjectorProvider.clientAgentTypeProvider.get ( ) ; }
Source:
public void testGetAllForRoleAndAdElementAndObjectWithInvalidAdElement ( ) { org.ovirt.engine.core.common.businessentities.Permission result = dao.getForRoleAndAdElementAndObject ( org.ovirt.engine.core.dao.PermissionDaoTest.ROLE_ID , org.ovirt.engine.core.compat.Guid.newGuid ( ) , org.ovirt.engine.core.dao.PermissionDaoTest.VM_ENTITY_ID ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetAllForRoleAndAdElementAndObjectWithInvalidAdElement ( ) { org.ovirt.engine.core.common.businessentities.Permission result = dao.getForRoleAndAdElementAndObject ( org.ovirt.engine.core.dao.PermissionDaoTest.ROLE_ID , org.ovirt.engine.core.compat.Guid.newGuid ( ) , org.ovirt.engine.core.dao.PermissionDaoTest.VM_ENTITY_ID ) ; org.junit.jupiter.api.Assertions.assertNull ( result ) ; }
Source:
public void setcpu_user ( java.lang.Double value ) { this . mVmStatistics.setcpu_user ( value ) ; }

Target:
public java.lang.Integer getGuestRequestedMemory ( ) { return this . vmDynamic.getguest_requested_memory ( ) ; }
Source:
public java.lang.Integer getUsageMemPercent ( ) { return this . mVdsStatistics.getusage_mem_percent ( ) ; }

Target:
public void setKsmState ( java.lang.Boolean value ) { this . mVdsStatistics.setKsmState ( value ) ; }
Source:
public java.lang.Integer getusage_network_percent ( ) { return this . mVmStatistics.getusage_network_percent ( ) ; }

Target:
public void setElapsedTime ( java.lang.Double value ) { this . vmStatistics.setelapsed_time ( value ) ; }
Source:
public void testSendReceive ( ) throws java.lang.Exception { client.sendFile ( org.ovirt.engine.core.uutils.ssh.TransferTest.local1.getAbsolutePath ( ) , remote ) ; client.receiveFile ( remote , local2.getAbsolutePath ( ) ) ; org.junit.Assert.assertArrayEquals ( digestFile ( org.ovirt.engine.core.uutils.ssh.TransferTest.local1 ) , digestFile ( local2 ) ) ; }

Target:
public void testSendReceive ( ) throws java.lang.Exception { client.sendFile ( org.ovirt.engine.core.uutils.ssh.TransferTest.local1.getAbsolutePath ( ) , remote ) ; client.receiveFile ( remote , local2.getAbsolutePath ( ) ) ; org.junit.jupiter.api.Assertions.assertArrayEquals ( digestFile ( org.ovirt.engine.core.uutils.ssh.TransferTest.local1 ) , digestFile ( local2 ) ) ; }
Source:
public int getAnonymousHugePages ( ) { return this . mVdsDynamic.getAnonymousHugePages ( ) ; }

Target:
public int getAnonymousHugePages ( ) { return this . mVdsStatistics.getAnonymousHugePages ( ) ; }
Source:
protected void ItemPropertyChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { }

Target:
protected void itemPropertyChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { }
Source:
protected void onRunOnce ( ) { org.ovirt.engine.ui.frontend.Frontend.RunAction ( VdcActionType.RunVmOnce , createRunVmOnceParams ( ) , null , this ) ; commandTarget.executeCommand ( runOnceCommand ) ; }

Target:
protected void onRunOnce ( ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runAction ( VdcActionType.RunVmOnce , createRunVmOnceParams ( ) , null , this ) ; commandTarget.executeCommand ( runOnceCommand ) ; }
Source:
void handleUiMode ( ) { org.ovirt.engine.ui.webadmin.uimode.UiModeData uiModeData = org.ovirt.engine.ui.webadmin.uimode.UiModeData.instance ( ) ; if ( uiModeData != null ) { org.ovirt.engine.core.common.mode.ApplicationMode uiMode = uiModeData.getUiMode ( ) ; org.ovirt.engine.ui.uicommonweb.models.ApplicationModeHelper.setUiMode ( uiMode ) ; } }

Target:
public void execute ( ) { restApiSessionManager.reuseCurrentSession ( ) ; }
Source:
protected void findGroups ( java.lang.String searchString , org.ovirt.engine.ui.frontend.AsyncQuery query ) { org.ovirt.engine.ui.uicommonweb.models.users.AdElementListModel adElementListModel = ( ( org.ovirt.engine.ui.uicommonweb.models.users.AdElementListModel ) ( query.getModel ( ) ) ) ; adElementListModel.setgroups ( new java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.EntityModel > ( ) ) ; super . onUserAndAdGroupsLoaded ( adElementListModel ) ; }

Target:
protected void findGroups ( java.lang.String searchString , org.ovirt.engine.ui.frontend.AsyncQuery query ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetAllDbGroups , getParameters ( ) , query ) ; }
Source:
private void setFocusTraversalOrder ( ) { dialogPanel.setTabIndexes ( popupWidget.setTabIndexes ( 1 ) ) ; }

Target:
public int setTabIndexes ( int nextTabIndex ) { nextTabIndex = popupWidget.setTabIndexes ( nextTabIndex ) ; return nextTabIndex ; }
Source:
public java.lang.String getQuotaName ( ) { return this . mVmStatic.getQuotaName ( ) ; }

Target:
public void setQuotaName ( java.lang.String value ) { this . vmStatic.setQuotaName ( value ) ; }
Source:
public void onUncaughtException ( java.lang.Throwable t ) { rootLogger.log ( java.util.logging.Level.SEVERE , "Uncaught exception: " , t ) ; remoteLogger.log ( java.util.logging.Level.SEVERE , "Uncaught exception: " , t ) ; if ( org.ovirt.engine.ui.common.DisplayUncaughtUIExceptions.getValue ( ) ) { alertManager.showUncaughtExceptionAlert ( t ) ; } }

Target:
public void onUncaughtException ( java.lang.Throwable t ) { applicationLogManager.logUncaughtException ( t ) ; if ( org.ovirt.engine.ui.common.DisplayUncaughtUIExceptions.getValue ( ) ) { alertManager.showUncaughtExceptionAlert ( t ) ; } }
Source:
public void testJsonDiskDescription ( ) throws java.io.IOException { disk.setDiskAlias ( "DiskAlias" ) ; disk.setDiskDescription ( "DiskDescription" ) ; assertDiskDescriptionMap ( disk ) ; }

Target:
public void testJsonEmptyDiskDescription ( ) throws java.io.IOException { disk.setDiskAlias ( "DiskAlias" ) ; disk.setDiskDescription ( "" ) ; assertDiskDescriptionMap ( disk , org.ovirt.engine.core.bll.MetadataDiskDescriptionHandlerTest.generateDiskAliasJsonEntry ( "DiskAlias" ) , org.ovirt.engine.core.bll.MetadataDiskDescriptionHandlerTest.generateDiskDescriptionJsonEntry ( "" ) ) ; }
Source:
protected org.ovirt.engine.api.model.VM setUpVm ( org.ovirt.engine.core.compat.Guid id ) { org.ovirt.engine.api.model.VM vm = control.createMock ( org.ovirt.engine.api.model.VM.class ) ; org.easymock.EasyMock.expect ( vm.getId ( ) ) . andReturn ( id ) . anyTimes ( ) ; return vm ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VM setUpVm ( org.ovirt.engine.core.compat.Guid id ) { org.ovirt.engine.api.restapi.resource.VM vm = control.createMock ( org.ovirt.engine.core.common.businessentities.VM.class ) ; org.easymock.EasyMock.expect ( vm.getId ( ) ) . andReturn ( id ) . anyTimes ( ) ; return vm ; }
Source:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; setAsyncResult ( org.ovirt.engine.ui.frontend.Frontend.RegisterSearch ( getSearchString ( ) , SearchType.VmPools , getSearchPageSize ( ) ) ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }

Target:
protected void onSelectedItemChanged ( ) { super . onSelectedItemChanged ( ) ; updateActionAvailability ( ) ; }
Source:
public void testRemoveAllOfTypeForVds ( ) throws java.lang.Exception { dao.removeAllOfTypeForVds ( org.ovirt.engine.core.dao.AuditLogDAOTest.VDS_ID , AuditLogType.IRS_DISK_SPACE_LOW_ERROR.getValue ( ) ) ; java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > result = dao.getAll ( ) ; org.junit.Assert.assertEquals ( 2 , result.size ( ) ) ; }

Target:
public void testRemoveAllForVds ( ) throws java.lang.Exception { dao.removeAllForVds ( org.ovirt.engine.core.dao.AuditLogDAOTest.VDS_ID , true ) ; java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > result = dao.getAll ( ) ; org.junit.Assert.assertEquals ( 5 , result.size ( ) ) ; }
Source:
protected org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.String > createGhostValue ( ) { org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.String > value = new org.ovirt.engine.ui.uicommonweb.models.EntityModel ( ) ; value.setEntity ( "" ) ; return value ; }

Target:
protected org.ovirt.engine.ui.uicommonweb.models.dnsconfiguration.NameServerModel createGhostValue ( ) { return new org.ovirt.engine.ui.uicommonweb.models.dnsconfiguration.NameServerModel ( ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.Snapshot addActiveSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId , org.ovirt.engine.core.common.businessentities.VM vm , org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotStatus snapshotStatus , final org.ovirt.engine.core.bll.context.CompensationContext compensationContext ) { return addSnapshot ( snapshotId , "Active VM" , snapshotStatus , SnapshotType.ACTIVE , vm , false , compensationContext ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.Snapshot addActiveSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId , org.ovirt.engine.core.common.businessentities.VM vm , org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotStatus snapshotStatus , final org.ovirt.engine.core.bll.context.CompensationContext compensationContext ) { return addSnapshot ( snapshotId , "Active VM" , snapshotStatus , SnapshotType.ACTIVE , vm , false , StringUtils.EMPTY , compensationContext ) ; }
Source:
protected void executeCommand ( ) { if ( ( org.ovirt.engine.core.bll.InstallVdsInternalCommand.getVds ( ) ) == null ) { return ; } installHost ( ) ; }

Target:
protected void executeCommand ( ) { if ( ( org.ovirt.engine.core.bll.InstallVdsInternalCommand.getVds ( ) ) == null ) { return ; } vdsInitialStatus = org.ovirt.engine.core.bll.InstallVdsInternalCommand.getVds ( ) . getStatus ( ) ; installHost ( ) ; }
Source:
protected org.ovirt.engine.core.compat.Version getClusterVersion ( ) { return getVdsGroup ( ) . getCompatibilityVersion ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Version getClusterVersion ( ) { return getCluster ( ) . getCompatibilityVersion ( ) ; }
Source:
public org.ovirt.engine.api.v3.types.V3Disk get ( ) { return adaptGet ( getDelegate ( ) :: get ) ; }

Target:
public org.ovirt.engine.api.v3.types.V3Disk get ( ) { org.ovirt.engine.api.v3.types.V3Disk disk = adaptGet ( getDelegate ( ) :: get ) ; org.ovirt.engine.api.v3.helpers.V3VmHelper.fixDiskLinks ( vmId , disk ) ; return disk ; }
Source:
public void setStatus ( org.ovirt.engine.ui.uicommonweb.models.EntityModel statusLabel ) { this . status = statusLabel ; }

Target:
public void setStopTime ( org.ovirt.engine.ui.uicommonweb.models.EntityModel stopTime ) { this . stopTime = stopTime ; }
Source:
public void finishSshSoftFencingExecution ( org.ovirt.engine.core.common.businessentities.VDS vds ) { mUnrespondedAttempts.set ( 0 ) ; setStatus ( VDSStatus.Connecting , vds ) ; UpdateDynamicData ( vds.getDynamicData ( ) ) ; }

Target:
public void finishSshSoftFencingExecution ( org.ovirt.engine.core.common.businessentities.VDS vds ) { mUnrespondedAttempts.set ( 0 ) ; setStatus ( VDSStatus.Connecting , vds ) ; updateDynamicData ( vds.getDynamicData ( ) ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getVdssByUniqueId ( ) { if ( ( _vdssByUniqueId ) == null ) { org.ovirt.engine.core.bll.VdsInstaller.UpdateUniqueId ( getStrippedVdsUniqueId ( ) ) ; _vdssByUniqueId = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDAO ( ) . getAllWithUniqueId ( getStrippedVdsUniqueId ( ) ) ; } return _vdssByUniqueId ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getVdssByUniqueId ( ) { if ( ( _vdssByUniqueId ) == null ) { _vdssByUniqueId = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDao ( ) . getAllWithUniqueId ( getStrippedVdsUniqueId ( ) ) ; } return _vdssByUniqueId ; }
Source:
private void initTables ( org.ovirt.engine.ui.webadmin.ApplicationConstants constants ) { initQuotaClusterTable ( constants ) ; initQuotaStorageTable ( constants ) ; }

Target:
private void initTables ( org.ovirt.engine.ui.webadmin.ApplicationConstants constants , org.ovirt.engine.ui.webadmin.ApplicationMessages messages ) { initQuotaClusterTable ( constants , messages ) ; initQuotaStorageTable ( constants , messages ) ; }
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.AddVdsSpmIdCommand.getVds ( ) . getStoragePoolId ( ) . toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.REGISTER_VDS , VdcBllMessages.ACTION_TYPE_FAILED_OBJECT_LOCKED ) ) ; }

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.AddVdsSpmIdCommand.getVds ( ) . getStoragePoolId ( ) . toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.REGISTER_VDS , EngineMessage.ACTION_TYPE_FAILED_OBJECT_LOCKED ) ) ; }
Source:
public void stopConnection ( ) { resourceManager.RemoveVds ( this . vds.getId ( ) ) ; }

Target:
public void stopConnection ( ) { resourceManager.removeVds ( this . vds.getId ( ) ) ; }
Source:
public void testIsDomainExistAndActiveDomainNotUp ( ) { domain.setstatus ( StorageDomainStatus.InActive ) ; org.junit.Assert.assertEquals ( "Wrong failure for inactive domain" , VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAIN_STATUS_ILLEGAL , validator.isDomainExistAndActive ( ) . getMessage ( ) ) ; }

Target:
public void testIsDomainExistAndActiveDomainNotUp ( ) { domain.setStatus ( StorageDomainStatus.InActive ) ; org.junit.Assert.assertEquals ( "Wrong failure for inactive domain" , VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAIN_STATUS_ILLEGAL , validator.isDomainExistAndActive ( ) . getMessage ( ) ) ; }
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.hostdeploy.UpgradeHostInternalCommand.getVdsId ( ) . toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.VDS , VdcBllMessages.ACTION_TYPE_FAILED_OBJECT_LOCKED ) ) ; }

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.hostdeploy.UpgradeHostInternalCommand.getVdsId ( ) . toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.VDS , EngineMessage.ACTION_TYPE_FAILED_OBJECT_LOCKED ) ) ; }
Source:
protected boolean canEdit ( org.ovirt.engine.ui.uicommonweb.models.EntityModel model ) { return ( ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel ) ( model ) ) . isAttached ( ) ; }

Target:
protected boolean canEdit ( org.ovirt.engine.ui.uicommonweb.models.EntityModel model ) { org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel clusterNetworkModel = ( ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel ) ( model ) ) ; return ( clusterNetworkModel.isAttached ( ) ) && ( ! ( clusterNetworkModel.isExternal ( ) ) ) ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { infoReturn = org.ovirt.engine.core.vdsbroker.vdsbroker.GetCapabilitiesVDSCommand.getBroker ( ) . getCapabilities ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.GetCapabilitiesVDSCommand.ProceedProxyReturnValue ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.updateVDSDynamicData ( org.ovirt.engine.core.vdsbroker.vdsbroker.GetCapabilitiesVDSCommand.getVds ( ) , infoReturn.mInfo ) ; }

Target:
protected void ExecuteVdsBrokerCommand ( ) { infoReturn = org.ovirt.engine.core.vdsbroker.vdsbroker.GetCapabilitiesVDSCommand.getBroker ( ) . getCapabilities ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.GetCapabilitiesVDSCommand.proceedProxyReturnValue ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.updateVDSDynamicData ( org.ovirt.engine.core.vdsbroker.vdsbroker.GetCapabilitiesVDSCommand.getVds ( ) , infoReturn.mInfo ) ; }
Source:
protected void SyncSearch ( ) { if ( ( getEntity ( ) ) == null ) { return ; } org.ovirt.engine.core.common.businessentities.VM vm = getEntity ( ) ; super . SyncSearch ( VdcQueryType.GetAllDisksByVmId , new org.ovirt.engine.core.common.queries.GetAllDisksByVmIdParameters ( vm.getId ( ) ) ) ; }

Target:
protected void syncSearch ( ) { if ( ( getEntity ( ) ) == null ) { return ; } org.ovirt.engine.core.common.businessentities.VM vm = getEntity ( ) ; super . syncSearch ( VdcQueryType.GetAllDisksByVmId , new org.ovirt.engine.core.common.queries.GetAllDisksByVmIdParameters ( vm.getId ( ) ) ) ; }
Source:
protected void orderListOfRunningVmsOnVds ( org.ovirt.engine.core.compat.Guid vdsId ) { vms = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDao ( ) . getAllRunningForVds ( vdsId ) ; java.util.Collections.sort ( vms , java.util.Collections.reverseOrder ( new org.ovirt.engine.core.common.businessentities.comparators.VmsComparer ( ) ) ) ; }

Target:
protected void orderListOfRunningVmsOnVds ( org.ovirt.engine.core.compat.Guid vdsId ) { vms = org.ovirt.engine.core.bll.MaintenanceVdsCommand.getVmDao ( ) . getAllRunningForVds ( vdsId ) ; java.util.Collections.sort ( vms , java.util.Collections.reverseOrder ( new org.ovirt.engine.core.common.businessentities.comparators.VmsComparer ( ) ) ) ; }
Source:
public void legalArchitectureChange ( ) { createCommandWithDefaultCluster ( ) ; cpuExists ( ) ; architectureIsUpdatable ( ) ; org.junit.Assert.assertTrue ( cmd.validate ( ) ) ; }

Target:
private void initAndAssertValidation ( boolean value ) { cmd.init ( ) ; org.junit.Assert.assertThat ( cmd.validate ( ) , org.hamcrest.CoreMatchers.is ( value ) ) ; }
Source:
public void modifiedAttachmentNotRemovedAttachmentModifiedButNotRemovedValid ( ) { org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator validator = new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorTest.HostSetupNetworksValidatorBuilder ( ) . build ( ) ; org.ovirt.engine.core.common.businessentities.network.NetworkAttachment modifiedAttachment = createNetworkAttachment ( new org.ovirt.engine.core.common.businessentities.network.Network ( ) ) ; org.junit.Assert.assertThat ( validator.modifiedAttachmentNotRemoved ( modifiedAttachment ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void modifiedAttachmentNotRemovedAttachmentModifiedButNotRemovedValid ( ) { org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator validator = new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorTest.HostSetupNetworksValidatorBuilder ( ) . build ( ) ; org.ovirt.engine.core.common.businessentities.network.NetworkAttachment modifiedAttachment = createNetworkAttachment ( new org.ovirt.engine.core.common.businessentities.network.Network ( ) ) ; org.hamcrest.MatcherAssert.assertThat ( validator.modifiedAttachmentNotRemoved ( modifiedAttachment ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
private static boolean canPlugInterface ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface iface ) { org.ovirt.engine.core.bll.network.VmInterfaceManager vmIfaceManager = new org.ovirt.engine.core.bll.network.VmInterfaceManager ( ) ; if ( vmIfaceManager.existsPluggedInterfaceWithSameMac ( iface ) ) { vmIfaceManager.auditLogMacInUseUnplug ( iface ) ; return false ; } else { return true ; } }

Target:
private static boolean canPlugInterface ( org.ovirt.engine.core.common.businessentities.network.VmNic iface ) { org.ovirt.engine.core.bll.network.VmInterfaceManager vmIfaceManager = new org.ovirt.engine.core.bll.network.VmInterfaceManager ( ) ; if ( vmIfaceManager.existsPluggedInterfaceWithSameMac ( iface ) ) { vmIfaceManager.auditLogMacInUseUnplug ( iface ) ; return false ; } else { return true ; } }
Source:
public void testGetAllExternalNetworksLinkedToPhysicalNetworkNonEmpty ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > linkedNetworks = dao.getAllExternalNetworksLinkedToPhysicalNetwork ( FixturesTool.NETWORK_ENGINE_2 ) ; org.junit.Assert.assertFalse ( linkedNetworks.isEmpty ( ) ) ; }

Target:
public void testGetAllExternalNetworksLinkedToPhysicalNetworkNonEmpty ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > linkedNetworks = dao.getAllExternalNetworksLinkedToPhysicalNetwork ( FixturesTool.NETWORK_ENGINE_2 ) ; org.junit.jupiter.api.Assertions.assertFalse ( linkedNetworks.isEmpty ( ) ) ; }
Source:
public void testGetTreeForEntityWithRoleTypeFilteredWithNoPermissions ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Permissions > result = dao.getTreeForEntity ( org.ovirt.engine.core.dao.PermissionDAOTest.STORAGE_ENTITY_ID , VdcObjectType.Storage , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.ovirt.engine.core.dao.PermissionDAOTest.assertInvalidGetPermissionList ( result ) ; }

Target:
public void testGetTreeForEntityWithRoleTypeFilteredWithNoPermissions ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Permissions > result = dao.getTreeForEntity ( org.ovirt.engine.core.dao.PermissionDAOTest.STORAGE_ENTITY_ID , VdcObjectType.Storage , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_SESSION_ID , true ) ; org.ovirt.engine.core.dao.PermissionDAOTest.assertInvalidGetPermissionList ( result ) ; }
Source:
public static void createNewVmId ( ) { org.ovirt.engine.core.dao.VdsDaoTest.newVmId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getVdsDao ( ) ; existingVds = dao.get ( org.ovirt.engine.core.dao.VdsDaoTest.EXISTING_VDS_ID ) ; existingVds2 = dao.get ( org.ovirt.engine.core.dao.VdsDaoTest.EXISTING_VDS_ID_2 ) ; newVmId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; }
Source:
public void testBootProtocolSetForDisplayNetworkWhenIpConfigurationIsNull ( ) { doTestBootProtocolSetForDisplayNetworkWhenNullValuedIpConfigurationAndWhenNetworkClusterDisplay ( true , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_DISPLAY_NETWORK_HAS_NO_BOOT_PROTOCOL ) ) ; }

Target:
public void testBootProtocolSetForDisplayNetworkWhenIpConfigurationIsNull ( ) { org.ovirt.engine.core.common.businessentities.network.Network network = createNetwork ( ) ; doTestBootProtocolSetForDisplayNetworkWhenNullValuedIpConfigurationAndWhenNetworkClusterDisplay ( true , network , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_DISPLAY_NETWORK_HAS_NO_BOOT_PROTOCOL , org.ovirt.engine.core.utils.ReplacementUtils.createSetVariableString ( NetworkAttachmentValidator.VAR_ACTION_TYPE_FAILED_DISPLAY_NETWORK_HAS_NO_BOOT_PROTOCOL_ENTITY , network.getName ( ) ) ) ) ; }
Source:
java.lang.String geoRepForceTitle ( java.lang.String action ) ;

Target:
java.lang.String geoRepActionConfirmationMessage ( java.lang.String action ) ;
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.UpdateRoleCommand.getRoleDao ( ) . update ( org.ovirt.engine.core.bll.UpdateRoleCommand.getRole ( ) ) ; org.ovirt.engine.core.bll.UpdateRoleCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { roleDao.update ( org.ovirt.engine.core.bll.UpdateRoleCommand.getRole ( ) ) ; org.ovirt.engine.core.bll.UpdateRoleCommand.setSucceeded ( true ) ; }
Source:
protected java.util.Collection < org.ovirt.engine.core.common.businessentities.DiskImage > getImagesToCheckDestinationStorageDomains ( ) { return org.ovirt.engine.core.bll.AddVmCommand.getVmTemplate ( ) . getDiskMap ( ) . values ( ) ; }

Target:
protected java.util.Collection < org.ovirt.engine.core.common.businessentities.DiskImage > getImagesToCheckDestinationStorageDomains ( ) { return org.ovirt.engine.core.bll.AddVmCommand.getVmTemplate ( ) . getDiskTemplateMap ( ) . values ( ) ; }
Source:
private void initStorageDomainValidator ( org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator storageDomainValidator , org.ovirt.engine.core.bll.ValidationResult validationResult ) { org.mockito.Mockito.when ( storageDomainValidator.isDomainWithinThresholds ( ) ) . thenReturn ( validationResult ) ; org.mockito.Mockito.when ( storageDomainValidator.hasSpaceForClonedDisks ( disksList ) ) . thenReturn ( validationResult ) ; }

Target:
private void filterAllStorageDomainsExceptOne ( java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > storageDomains , org.ovirt.engine.core.common.businessentities.StorageDomain expectedStorageDomain ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > filteredStorageDomains = new java.util.ArrayList ( memoryStorageHandler.filterStorageDomains ( storageDomains , disksList ) ) ; org.junit.Assert.assertEquals ( filteredStorageDomains , java.util.Arrays.asList ( expectedStorageDomain ) ) ; }
Source:
private void removeRestrictedInfo ( org.ovirt.engine.api.model.VM vm ) { if ( isFiltered ( ) ) { vm.setHost ( null ) ; vm.setPlacementPolicy ( null ) ; } }

Target:
private void removeRestrictedInfo ( org.ovirt.engine.api.model.Vm vm ) { if ( isFiltered ( ) ) { vm.setHost ( null ) ; vm.setPlacementPolicy ( null ) ; } }
Source:
public java.lang.Object runInTransaction ( ) { org.ovirt.engine.core.common.businessentities.Snapshot s = getSnapshotDao ( ) . get ( snapshotId ) ; s = org.ovirt.engine.core.bll.ImagesHandler.prepareSnapshotConfigWithoutImageSingleImage ( s , imageId ) ; getSnapshotDao ( ) . update ( s ) ; return null ; }

Target:
public java.lang.Object runInTransaction ( ) { org.ovirt.engine.core.common.businessentities.Snapshot s = getSnapshotDao ( ) . get ( snapshotId ) ; s = org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.prepareSnapshotConfigWithoutImageSingleImage ( s , imageId ) ; getSnapshotDao ( ) . update ( s ) ; return null ; }
Source:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand ) { setVmTicket ( ) ; }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand ) { invokeConsole ( ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.VDSGroup createVdsGroupWithDifferentName ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup group = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; group.setName ( "BadName" ) ; group.setCompatibilityVersion ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.VERSION_1_1 ) ; return group ; }

Target:
private static org.ovirt.engine.core.common.businessentities.VDSGroup createVdsGroupWithDifferentName ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup group = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; group.setName ( "BadName" ) ; group.setCompatibilityVersion ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.VERSION_1_1 ) ; group.setClusterPolicyId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; return group ; }
Source:
public void lowerVersionHostsAndNetwork ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addHostsToCluster ( ) ; addNonManagementNetworkToPool ( ) ; canDoActionFailed ( EngineMessage.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION ) ; }

Target:
public void lowerVersionHostsAndNetwork ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addHostsToCluster ( ) ; addNonManagementNetworkToPool ( ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION ) ; }
Source:
public void testConnection ( ) { try { getClient ( ) . execute ( new com.woorea.openstack.base.client.OpenStackRequest ( getClient ( ) , com.woorea.openstack.base.client.HttpMethod.GET , "" , null , null ) ) ; } catch ( java.lang.RuntimeException e ) { throw new org.ovirt.engine.core.common.errors.VdcBLLException ( org.ovirt.engine.core.common.errors.VdcBllErrors.PROVIDER_FAILURE , e ) ; } }

Target:
public void onAddition ( ) { addStorageDomain ( StorageType.GLANCE , StorageDomainType.Image ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.storage.GetStorageServerConnectionsQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.storage.DbFacade.getInstance ( ) . getStorageServerConnectionDAO ( ) . getAll ( ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.storage.GetStorageServerConnectionsQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.storage.DbFacade.getInstance ( ) . getStorageServerConnectionDao ( ) . getAll ( ) ) ; }
Source:
public static void validatePropertyMap ( java.util.Map < ? , ? > map , int size ) { org.junit.Assert.assertNotNull ( map ) ; org.junit.Assert.assertEquals ( size , map.size ( ) ) ; }

Target:
public static void validatePropertyMap ( java.util.Map < ? , ? > map , int size ) { org.junit.jupiter.api.Assertions.assertNotNull ( map ) ; org.junit.jupiter.api.Assertions.assertEquals ( size , map.size ( ) ) ; }
Source:
public void testFetchStoragePoolWithNoQuota ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Quota > quotaList = dao.getQuotaByStoragePoolGuid ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertEquals ( 0 , quotaList.size ( ) ) ; }

Target:
public void testFetchStoragePoolWithNoQuota ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Quota > quotaList = dao.getQuotaByStoragePoolGuid ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( 0 , quotaList.size ( ) ) ; }
Source:
protected void ExecuteIrsBrokerCommand ( ) { setReturnValue ( org.ovirt.engine.core.vdsbroker.irsbroker.ResourceManager.getInstance ( ) . runVdsCommand ( VDSCommandType.HsmGetIsoList , new org.ovirt.engine.core.vdsbroker.irsbroker.HSMGetIsoListParameters ( org.ovirt.engine.core.vdsbroker.irsbroker.GetIsoListVDSCommand.getCurrentIrsProxyData ( ) . getCurrentVdsId ( ) , org.ovirt.engine.core.vdsbroker.irsbroker.GetIsoListVDSCommand.getParameters ( ) . getStoragePoolId ( ) ) ) . getReturnValue ( ) ) ; }

Target:
protected void ExecuteIrsBrokerCommand ( ) { setReturnValue ( org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . runVdsCommand ( VDSCommandType.HsmGetIsoList , new org.ovirt.engine.core.common.vdscommands.HSMGetIsoListParameters ( org.ovirt.engine.core.vdsbroker.irsbroker.GetIsoListVDSCommand.getCurrentIrsProxyData ( ) . getCurrentVdsId ( ) , org.ovirt.engine.core.vdsbroker.irsbroker.GetIsoListVDSCommand.getParameters ( ) . getStoragePoolId ( ) ) ) . getReturnValue ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VDS createBaseVds ( ) { org.ovirt.engine.core.common.businessentities.VDS vds = new org.ovirt.engine.core.common.businessentities.VDS ( ) ; vds.setSupportedEmulatedMachines ( "pc-1.0" ) ; vds.getSupportedRngSources ( ) . add ( VmRngDevice.Source.RANDOM ) ; vds.setStatus ( VDSStatus.Up ) ; return vds ; }

Target:
private org.ovirt.engine.core.common.businessentities.VDS createBaseVds ( ) { org.ovirt.engine.core.common.businessentities.VDS vds = new org.ovirt.engine.core.common.businessentities.VDS ( ) ; vds.setSupportedEmulatedMachines ( "pc-1.0" ) ; vds.getSupportedRngSources ( ) . add ( VmRngDevice.Source.URANDOM ) ; vds.setStatus ( VDSStatus.Up ) ; return vds ; }
Source:
public final void removeSession ( ) { java.lang.String sessionId = org.ovirt.engine.core.utils.ThreadLocalParamsContainer.getHttpSessionId ( ) ; if ( sessionId != null ) { removeSession ( sessionId ) ; } }

Target:
public void setPassword ( java.lang.String sessionId , java.lang.String password ) { setData ( sessionId , org.ovirt.engine.core.bll.session.SessionDataContainer.PASSWORD_PARAMETER_NAME , password ) ; }
Source:
private void updateVolumeFormat ( org.ovirt.engine.core.common.businessentities.VolumeType volumeType , org.ovirt.engine.core.common.businessentities.StorageType storageType ) { setVolumeFormat ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . getDiskVolumeFormat ( volumeType , storageType ) ) ; }

Target:
private void updateVolumeFormat ( org.ovirt.engine.core.common.businessentities.storage.VolumeType volumeType , org.ovirt.engine.core.common.businessentities.storage.StorageType storageType ) { setVolumeFormat ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . getDiskVolumeFormat ( volumeType , storageType ) ) ; }
Source:
public javax.ws.rs.core.Response remove ( ) { return performAction ( VdcActionType.RemoveVmNicFilterParameter , new org.ovirt.engine.core.common.action.RemoveVmNicFilterParameterParameters ( vmId , guid ) ) ; }

Target:
public javax.ws.rs.core.Response remove ( ) { return performAction ( ActionType.RemoveVmNicFilterParameter , new org.ovirt.engine.core.common.action.RemoveVmNicFilterParameterParameters ( vmId , guid ) ) ; }
Source:
public void setManagement ( boolean management ) { this . management = management ; }

Target:
public void setNetwork ( org.ovirt.engine.core.common.businessentities.network.Network network ) { this . network = network ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > setVmTicket ( java.lang.String vmId , java.lang.String otp64 , java.lang.String sec , java.lang.String connectionAction , java.util.Map < java.lang.String , java.lang.String > params ) ;

Target:
java.util.Map < java.lang.String , java.lang.Object > snapshot ( java.lang.String vmId , java.util.Map < java.lang.String , java.lang.String > [ ] disks , java.lang.String memory , boolean frozen ) ;
Source:
public void canDoActionSucceedsOnDiskDomainCheckWhenStorageGuidInParamsMatches ( ) throws java.lang.Exception { org.ovirt.engine.core.compat.Guid storageId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; initializeCommand ( storageId ) ; mockVmWithDisk ( storageId ) ; mockStorageDomain ( storageId ) ; mockStoragePoolIsoMap ( ) ; runAndAssertCanDoActionSuccess ( ) ; }

Target:
public void canDoActionSucceedsOnDiskDomainCheckWhenStorageGuidInParamsMatches ( ) throws java.lang.Exception { org.ovirt.engine.core.compat.Guid storageId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; initializeCommand ( storageId ) ; mockVmWithDisk ( storageId ) ; mockStorageDomain ( storageId ) ; mockStoragePoolIsoMap ( ) ; mockInterfaceList ( ) ; mockMaxPciSlots ( ) ; runAndAssertCanDoActionSuccess ( ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.Quota > searchQuota ( ) { return genericSearch ( org.ovirt.engine.core.bll.SearchQuery.getDbFacade ( ) . getQuotaDao ( ) , true , null ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.Quota > searchQuota ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Quota > quotaList = genericSearch ( org.ovirt.engine.core.bll.SearchQuery.getDbFacade ( ) . getQuotaDao ( ) , true , null ) ; org.ovirt.engine.core.bll.quota.QuotaManager.getInstance ( ) . updateUsage ( quotaList ) ; return quotaList ; }
Source:
protected org.ovirt.engine.api.model.NIC postPopulate ( org.ovirt.engine.api.model.NIC model ) { model.setInterface ( org.ovirt.engine.api.restapi.types.MappingTestHelper.shuffle ( org.ovirt.engine.api.model.NicInterface.class ) . value ( ) ) ; return model ; }

Target:
protected org.ovirt.engine.api.model.Nic postPopulate ( org.ovirt.engine.api.model.Nic model ) { model.setInterface ( org.ovirt.engine.api.restapi.types.MappingTestHelper.shuffle ( org.ovirt.engine.api.model.NicInterface.class ) . value ( ) ) ; return model ; }
Source:
public void save ( T entity ) { entityManager.persist ( entity ) ; }

Target:
public void save ( T entity ) { entityManager.merge ( entity ) ; }
Source:
protected void setUpQueryExpectations ( java.lang.String query , java.lang.Object failure ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetNetworksByIscsiBondId , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendIscsiBondNetworksResourceTest.ISCSI_BOND_ID } , getEntityList ( ) , failure ) ; }

Target:
protected void setUpQueryExpectations ( java.lang.String query , java.lang.Object failure ) throws java.lang.Exception { setUpEntityQueryExpectations ( QueryType.GetNetworksByIscsiBondId , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendIscsiBondNetworksResourceTest.ISCSI_BOND_ID } , getEntityList ( ) , failure ) ; }
Source:
public void setAlias ( java.lang.String alias ) { this . alias = alias ; }

Target:
public void setAlias ( java.lang.String alias ) { this . alias = ( alias == null ) ? "" : alias ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetVmTemplateCountQuery.getQueryReturnValue ( ) . setReturnValue ( getVmTemplateDao ( ) . getCount ( ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetVmTemplateCountQuery.getQueryReturnValue ( ) . setReturnValue ( vmTemplateDao.getCount ( ) ) ; }
Source:
public void writeStartElement ( java.lang.String name ) { try { writer.writeStartElement ( name ) ; } catch ( javax.xml.stream.XMLStreamException exception ) { throw new org.ovirt.api.metamodel.tool.XmlWriterException ( ( ( "Can\'t write start element for tag \"" + name ) + "\"" ) , exception ) ; } }

Target:
public void writeStartElement ( java.lang.String uri , java.lang.String name ) { try { writer.writeStartElement ( uri , name ) ; } catch ( javax.xml.stream.XMLStreamException exception ) { throw new org.ovirt.api.metamodel.runtime.xml.XmlException ( ( ( "Can\'t write start element for tag \"" + name ) + "\"" ) , exception ) ; } }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( C value ) { return null ; }

Target:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( C value , com.google.gwt.dom.client.Element parent ) { return getTooltip ( value ) ; }
Source:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; CheckStorageStatus ( ) ; UpdateActionAvailability ( ) ; getSearchCommand ( ) . Execute ( ) ; }

Target:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; checkStorageStatus ( ) ; updateActionAvailability ( ) ; getSearchCommand ( ) . execute ( ) ; }
Source:
protected void TestVdsPowerManagementStatus ( org.ovirt.engine.core.common.businessentities.VdsStatic vdsStatic ) { if ( vdsStatic.getpm_enabled ( ) ) { org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalQuery ( VdcQueryType.GetVdsFenceStatus , new org.ovirt.engine.core.common.queries.VdsIdParametersBase ( vdsStatic.getId ( ) ) ) ; } }

Target:
protected void TestVdsPowerManagementStatus ( org.ovirt.engine.core.common.businessentities.VdsStatic vdsStatic ) { if ( vdsStatic.isPmEnabled ( ) ) { org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalQuery ( VdcQueryType.GetVdsFenceStatus , new org.ovirt.engine.core.common.queries.VdsIdParametersBase ( vdsStatic.getId ( ) ) ) ; } }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.EngineSession session ) { return session.getUserId ( ) . toString ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.UserSession session ) { return session.getUserId ( ) . toString ( ) ; }
Source:
org.ovirt.engine.core.bll.validator.NetworkValidator createNetworkValidator ( ) { if ( ( networkValidator ) == null ) { networkValidator = new org.ovirt.engine.core.bll.validator.NetworkValidator ( getNetwork ( ) ) ; } return networkValidator ; }

Target:
org.ovirt.engine.core.bll.validator.NetworkValidator getNetworkValidator ( ) { if ( ( networkValidator ) == null ) { networkValidator = new org.ovirt.engine.core.bll.validator.NetworkValidator ( getNetwork ( ) ) ; } return networkValidator ; }
Source:
private boolean allowDuplicate ( ) { return org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > getValue ( ConfigValues.AllowDuplicateMacAddresses ) ; }

Target:
public java.lang.String allocateNewMac ( ) { return macPoolManagerStrategy.allocateNewMac ( ) ; }
Source:
public void lowerVersionMgmtNetworkSupportedFeatures ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addManagementNetworksToPool ( 2 ) ; setupNetworkValidator ( true ) ; org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }

Target:
public void lowerVersionMgmtNetworkSupportedFeatures ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addManagementNetworksToPool ( 2 ) ; setupNetworkValidator ( true ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionSuccess ( cmd ) ; }
Source:
public void setErrataDetailPanelVisibilty ( boolean visible ) { splitLayoutPanel.clear ( ) ; if ( visible ) { splitLayoutPanel.addSouth ( errataDetailPanel , org.ovirt.engine.ui.webadmin.section.main.view.popup.ErrataListWithDetailsPopupView.SOUTH_SIZE ) ; } splitLayoutPanel.add ( errataTableView ) ; }

Target:
public void hide ( ) { super . hide ( ) ; errataTableView.clearHandlers ( ) ; }
Source:
public int getvm_mem_size_mb ( ) { return this . mVmStatic.getmem_size_mb ( ) ; }

Target:
public int getVmMemSizeMb ( ) { return this . vmStatic.getmem_size_mb ( ) ; }
Source:
public java.lang.Object call ( ) throws java.lang.Exception { _parser.cliEnvironmentSet ( NetEnv.IPTABLES_ENABLE , ( ( _iptables.length ( ) ) > 0 ) ) ; return null ; }

Target:
public void setFirewall ( boolean doFirewall ) { if ( doFirewall ) { _iptables = _getIpTables ( ) ; _customizationConditions.add ( org.ovirt.engine.core.bll.VdsDeploy.CustomizationCondition.IPTABLES_OVERRIDE ) ; } }
Source:
public void updateDynamicData ( org.ovirt.engine.core.common.businessentities.VdsDynamic dynamicData ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDynamicDao ( ) . updateIfNeeded ( dynamicData ) ; cachedVds.setDynamicData ( dynamicData ) ; }

Target:
public void updateDynamicData ( org.ovirt.engine.core.common.businessentities.VdsDynamic dynamicData ) { dbFacade.getVdsDynamicDao ( ) . updateIfNeeded ( dynamicData ) ; cachedVds.setDynamicData ( dynamicData ) ; }