auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected boolean isConsoleEnabled ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel model ) { org.ovirt.engine.ui.userportal.widget.basic.ConsoleProtocol protocol = consoleUtils.determineDefaultProtocol ( model ) ; return consoleUtils.canShowConsole ( protocol , model ) ; }

Target:
protected boolean isConsoleEnabled ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel model ) { org.ovirt.engine.ui.uicommonweb.models.userportal.ConsoleProtocol protocol = consoleUtils.determineConnectionProtocol ( model ) ; return consoleUtils.canShowConsole ( protocol , model ) ; }
Source:
public void ExecuteCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { Test ( ) ; }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand , java.lang.Object ... parameters ) { test ( ) ; }
Source:
protected int getMaxNameLength ( ) { return isWindows ( ) ? org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel.WINDOWS_VM_NAME_MAX_LIMIT : org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel.NON_WINDOWS_VM_NAME_MAX_LIMIT ; }

Target:
protected int getMaxNameLength ( ) { return isWindows ( ) ? org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getMaxVmNameLengthWin ( ) : org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getMaxVmNameLengthNonWin ( ) ; }
Source:
java.lang.String assignNicsToProfilesPlural ( int numOfNics ) ;

Target:
java.lang.String nextRunConfigurationExists ( ) ;
Source:
public void setVdsGroupSupportsVirtService ( java.lang.Boolean value ) { this . vdsGroupVirtService = value ; }

Target:
public void setVdsGroupSupportsGlusterService ( java.lang.Boolean value ) { vdsGroupGlusterService = value ; }
Source:
public void parametersWithSecureDeletionAreNotFixedOnFileDomainWhenPostZeroIsFalse ( ) { org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandlerTest.ParametersWithPostDeleteAction parameters = postDeleteActionHandler.fixParameters ( new org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandlerTest.ParametersWithPostDeleteAction ( false ) , true ) ; assertPostZeroValue ( parameters , false ) ; }

Target:
public void parametersWithSecureDeletionAreNotFixedOnFileDomainWhenPostZeroIsFalse ( ) { org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandlerTest.ParametersWithPostDeleteAction parameters = postDeleteActionHandler.fixPostZeroField ( new org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandlerTest.ParametersWithPostDeleteAction ( false , false ) , true ) ; assertPostZeroValue ( parameters , false ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VdsNetworkInterface newBond ( java.lang.String name ) { org.ovirt.engine.core.common.businessentities.VdsNetworkInterface bond = new org.ovirt.engine.core.common.businessentities.VdsNetworkInterface ( ) ; bond.setBonded ( java.lang.Boolean.TRUE ) ; bond.setBondOptions ( "options" ) ; bond.setName ( name ) ; return bond ; }

Target:
private org.ovirt.engine.core.common.businessentities.VdsNetworkInterface createBond ( java.lang.String name , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) , name , true , null , null , networkName ) ; }
Source:
protected boolean isDisksAliasNotEmpty ( ) { for ( org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage : diskInfoDestinationMap.values ( ) ) { if ( org.apache.commons.lang.StringUtils.isEmpty ( diskImage.getDiskAlias ( ) ) ) { return failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_TEMPLATE_CANNOT_BE_CREATED_WITH_EMPTY_DISK_ALIAS ) ; } } return true ; }

Target:
protected boolean isDisksAliasNotEmpty ( ) { for ( org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage : diskInfoDestinationMap.values ( ) ) { if ( org.apache.commons.lang.StringUtils.isEmpty ( diskImage.getDiskAlias ( ) ) ) { return failValidation ( EngineMessage.ACTION_TYPE_FAILED_TEMPLATE_CANNOT_BE_CREATED_WITH_EMPTY_DISK_ALIAS ) ; } } return true ; }
Source:
protected org.ovirt.engine.core.common.businessentities.ImageOperation getMoveOrCopyImageOperation ( ) { return org.ovirt.engine.core.common.businessentities.ImageOperation.Copy ; }

Target:
protected org.ovirt.engine.core.common.businessentities.storage.ImageOperation getMoveOrCopyImageOperation ( ) { return org.ovirt.engine.core.common.businessentities.storage.ImageOperation.Copy ; }
Source:
public void testIpConfiguredForStaticBootProtocol_WhenIpConfigurationIsNotNullAndBootProtocolIsStaticAndAddressAndNetmaskIsNotNull ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment = createNetworkAttachmentWithIpConfiguration ( NetworkBootProtocol.STATIC_IP , "" , "" ) ; org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.validator.NetworkAttachmentValidator ( attachment , new org.ovirt.engine.core.common.businessentities.VDS ( ) ) . ipConfiguredForStaticBootProtocol ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
private void doTestIpConfiguredForStaticBootProtocol ( java.lang.String address , java.lang.String netmask , org.hamcrest.Matcher < org.ovirt.engine.core.bll.ValidationResult > matcher ) { org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment = createNetworkAttachmentWithIpConfiguration ( NetworkBootProtocol.STATIC_IP , address , netmask ) ; org.junit.Assert.assertThat ( createNetworkAttachmentValidator ( attachment ) . ipConfiguredForStaticBootProtocol ( ) , matcher ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.storage.ImageTransfer > searchImageTransfer ( ) { return genericSearch ( org.ovirt.engine.core.bll.SearchQuery.getDbFacade ( ) . getImageTransferDao ( ) , false ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.storage.ImageTransfer > searchImageTransfer ( ) { return genericSearch ( imageTransferDao , false ) ; }
Source:
public static void GetGlusterHosts ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , java.lang.String hostAddress , java.lang.String rootPassword , java.lang.String fingerprint ) { org.ovirt.engine.core.common.queries.gluster.GlusterServersQueryParameters parameters = new org.ovirt.engine.core.common.queries.gluster.GlusterServersQueryParameters ( hostAddress , rootPassword ) ; parameters.setFingerprint ( fingerprint ) ; org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.GetGlusterServers , parameters , aQuery ) ; }

Target:
public static void GetGlusterHosts ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , java.lang.String hostAddress , java.lang.String rootPassword , java.lang.String fingerprint ) { org.ovirt.engine.core.common.queries.gluster.GlusterServersQueryParameters parameters = new org.ovirt.engine.core.common.queries.gluster.GlusterServersQueryParameters ( hostAddress , rootPassword ) ; parameters.setFingerprint ( fingerprint ) ; org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.GetGlusterServersForImport , parameters , aQuery ) ; }
Source:
public org.ovirt.engine.api.resource.WatchdogResource getDeviceSubResource ( java.lang.String watchdogId ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendWatchdogResource ( parentIsVm , parentId , asGuidOr404 ( watchdogId ) , this , updateType , getUpdateParametersProvider ( ) , getRequiredUpdateFields ( ) ) ) ; }

Target:
public org.ovirt.engine.api.resource.WatchdogResource getDeviceResource ( java.lang.String watchdogId ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendWatchdogResource ( parentIsVm , parentId , asGuidOr404 ( watchdogId ) , this , updateType , getUpdateParametersProvider ( ) , getRequiredUpdateFields ( ) ) ) ; }
Source:
public void testValidateSnapshotNotActiveFalse ( ) { mockSnapshot ( SnapshotType.ACTIVE ) ; org.junit.Assert.assertFalse ( "validation should fail" , cmd.validateSnapshotType ( ) ) ; }

Target:
public void testValidateSnapshotNotActiveFalse ( ) { mockSnapshot ( SnapshotType.ACTIVE ) ; org.junit.jupiter.api.Assertions.assertFalse ( cmd.validateSnapshotType ( ) , "validation should fail" ) ; }
Source:
public void canRemoveBrickEmptyList ( ) { org.ovirt.engine.core.bll.ValidationResult validationResult = brickValidator.canRemoveBrick ( java.util.Collections.emptyList ( ) , getDistributedVolume ( volumeId1 , 1 ) , 3 , false ) ; org.junit.Assert.assertThat ( validationResult , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_BRICKS_REQUIRED ) ) ; }

Target:
public void canRemoveBrickEmptyList ( ) { org.ovirt.engine.core.bll.ValidationResult validationResult = brickValidator.canRemoveBrick ( java.util.Collections.emptyList ( ) , getDistributedVolume ( volumeId1 , 1 ) , 3 , false ) ; org.hamcrest.MatcherAssert.assertThat ( validationResult , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_BRICKS_REQUIRED ) ) ; }
Source:
public void setAdvancedMode ( org.ovirt.engine.ui.uicommonweb.models.EntityModel advancedMode ) { this . advancedMode = advancedMode ; }

Target:
public void setNicsWithLogicalNetworks ( org.ovirt.engine.ui.uicommonweb.models.ListModel nicsWithLogicalNetworks ) { this . nicsWithLogicalNetworks = nicsWithLogicalNetworks ; }
Source:
private java.lang.String render ( java.lang.Object obj ) { return obj == null ? null : obj.toString ( ) ; }

Target:
private java.lang.Integer parseInteger ( java.lang.String str ) { return ( str == null ) || ( str.isEmpty ( ) ) ? null : java.lang.Integer.parseInt ( str ) ; }
Source:
public static java.util.Map < java.lang.String , java.lang.Object > getSessionData ( javax.servlet.ServletContext ctx , java.lang.String token ) { return ( ( java.util.Map < java.lang.String , java.util.Map < java.lang.String , java.lang.Object > > ) ( ctx.getAttribute ( org.ovirt.engine.core.sso.utils.SSOUtils.SSO_SESSIONS ) ) ) . get ( token ) ; }

Target:
public static org.ovirt.engine.core.sso.utils.SSOSession getSsoSessionFromRequest ( javax.servlet.http.HttpServletRequest request , java.lang.String token ) { return org.ovirt.engine.core.sso.utils.SSOUtils.getSsoSession ( request , null , token , false ) ; }
Source:
public void dump ( org.ovirt.engine.api.extensions.ExtMap map , java.lang.String indent ) { dumpFormat.dump ( map , indent ) ; }

Target:
public void dump ( org.ovirt.engine.exttool.aaa.AAAServiceImpl module , org.ovirt.engine.api.extensions.ExtMap map , java.lang.String indent ) { dumpFormat.dump ( module , map , indent ) ; }
Source:
public void testGetAllByStoragePoolAndConnectionWithInvalidConnection ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllByStoragePoolAndConnection ( FixturesTool.STORAGE_POOL_NFS , org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextString ( 10 ) ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllByStoragePoolAndConnectionWithInvalidConnection ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllByStoragePoolAndConnection ( FixturesTool.STORAGE_POOL_NFS , org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextString ( 10 ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public abstract org.ovirt.engine.core.compat.CommandStatus getCommandStatus ( org.ovirt.engine.core.compat.Guid commandId ) ;

Target:
public org.ovirt.engine.core.common.businessentities.CommandEntity getCommandEntity ( org.ovirt.engine.core.compat.Guid commandId ) ;
Source:
public void setnum_of_monitors ( int value ) { this . mVmStatic.setnum_of_monitors ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "num_of_monitors" ) ) ; }

Target:
public void setNumOfMonitors ( int value ) { this . vmStatic.setNumOfMonitors ( value ) ; }
Source:
public boolean getTransparentHugePages ( ) { return this . transparentHugePages ; }

Target:
public boolean isTransparentHugePages ( ) { return this . transparentHugePages ; }
Source:
public void nonZeroMtuWhenSupported ( ) throws java.lang.Exception { mtuValidTest ( ValidationResult.VALID , 1 , true ) ; }

Target:
public void zeroMtuWhenNotSupported ( ) throws java.lang.Exception { mtuValidTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , 0 , false ) ; }
Source:
public void testGetByNameAndVersionWithInvalidVersion ( ) { org.ovirt.engine.core.common.businessentities.VdcOption result = dao.getByNameAndVersion ( existingOption.getOptionName ( ) , "farkle" ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetByNameAndVersionWithInvalidVersion ( ) { org.ovirt.engine.core.common.businessentities.VdcOption result = dao.getByNameAndVersion ( existingOption.getOptionName ( ) , "farkle" ) ; org.junit.jupiter.api.Assertions.assertNull ( result ) ; }
Source:
public void configure ( org.ovirt.engine.ui.uicommonweb.models.vms.ISpice spice ) { super . configure ( spice ) ; spice.setWANDisableEffects ( new java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.vms.WANDisableEffects > ( ) ) ; spice.setWanOptionsEnabled ( false ) ; }

Target:
public void configure ( org.ovirt.engine.ui.uicommonweb.models.vms.ISpice spice ) { super . configure ( spice ) ; spice.getOptions ( ) . setWanDisableEffects ( new java.util.ArrayList < org.ovirt.engine.core.common.console.ConsoleOptions.WanDisableEffects > ( ) ) ; spice.getOptions ( ) . setWanOptionsEnabled ( false ) ; }
Source:
public java.lang.String getDiskAlias ( ) { return oldDisk.getDiskAlias ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid getQuotaId ( ) { if ( ( ( getNewDisk ( ) ) != null ) && ( isQuotaValidationNeeded ( ) ) ) { return ( ( org.ovirt.engine.core.common.businessentities.DiskImage ) ( getNewDisk ( ) ) ) . getQuotaId ( ) ; } return null ; }
Source:
static org.ovirt.engine.core.common.businessentities.StorageServerConnections setUpStorageServerConnection ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections cnx = new org.ovirt.engine.core.common.businessentities.StorageServerConnections ( ) ; cnx.setid ( GUIDS [ 0 ] . toString ( ) ) ; cnx.setconnection ( ( "10.11.12.13" + ( ":" + "/1" ) ) ) ; return cnx ; }

Target:
private org.ovirt.engine.core.common.businessentities.StorageServerConnections setUpConnectionExpectations ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections connection = new org.ovirt.engine.core.common.businessentities.StorageServerConnections ( ) ; connection.setid ( org.ovirt.engine.api.restapi.resource.BackendAttachedStorageDomainResourceTest.STORAGE_CONNECTION_ID.toString ( ) ) ; connection.setconnection ( ( "10.11.12.13" + ( ":" + "/1" ) ) ) ; return connection ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.LUNs lun ) { return ! ( existingStorageDomainIDs.contains ( lun.getStorageDomainId ( ) ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.storage.LUNs lun ) { return ! ( existingStorageDomainIDs.contains ( lun.getStorageDomainId ( ) ) ) ; }
Source:
public org.ovirt.engine.api.model.Network get ( ) { org.ovirt.engine.api.model.Network entity = getNetwork ( ) ; if ( entity == null ) { return notFound ( ) ; } return addLinks ( map ( entity ) ) ; }

Target:
public org.ovirt.engine.api.model.Network update ( org.ovirt.engine.api.model.Network incoming ) { return performUpdate ( incoming , new org.ovirt.engine.api.restapi.resource.BackendDataCenterNetworkResource.UpdatedNetworkResolver ( ) , VdcActionType.UpdateNetwork , new org.ovirt.engine.api.restapi.resource.BackendDataCenterNetworkResource.UpdateParametersProvider ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VmDevice addVirtioScsiController ( org.ovirt.engine.core.compat.Guid vmId ) { return addManagedDevice ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , vmId ) , VmDeviceGeneralType.CONTROLLER , VmDeviceType.VIRTIOSCSI , org.ovirt.engine.core.bll.utils.VmDeviceUtils.EMPTY_SPEC_PARAMS , true , false ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VmDevice addVirtioScsiController ( org.ovirt.engine.core.compat.Guid vmId ) { return addManagedDevice ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , vmId ) , VmDeviceGeneralType.CONTROLLER , VmDeviceType.VIRTIOSCSI , java.util.Collections.emptyMap ( ) , true , false ) ; }
Source:
public static org.ovirt.engine.core.compat.Version getCompatilibilyVersion ( org.ovirt.engine.core.common.businessentities.VmBase vmBase ) { return ( vmBase.getVdsGroupId ( ) ) != null ? org.ovirt.engine.core.bll.utils.ClusterUtils.getInstance ( ) . getVdsGroupDao ( ) . get ( vmBase.getVdsGroupId ( ) ) . getcompatibility_version ( ) : org.ovirt.engine.core.compat.Version.v3_0 ; }

Target:
public static org.ovirt.engine.core.compat.Version getCompatibilityVersion ( org.ovirt.engine.core.common.businessentities.VmBase vmBase ) { return ( vmBase.getVdsGroupId ( ) ) != null ? org.ovirt.engine.core.bll.utils.ClusterUtils.getInstance ( ) . getVdsGroupDao ( ) . get ( vmBase.getVdsGroupId ( ) ) . getcompatibility_version ( ) : org.ovirt.engine.core.compat.Version.v3_0 ; }
Source:
private boolean hostCompliesWithRngDeviceSources ( org.ovirt.engine.core.common.businessentities.VDS vds , org.ovirt.engine.core.common.businessentities.VDSGroup vdsGroup ) { return vds.getSupportedRngSources ( ) . containsAll ( vdsGroup.getRequiredRngSources ( ) ) ; }

Target:
private boolean hostCompliesWithRngDeviceSources ( org.ovirt.engine.core.common.businessentities.VDS vds , org.ovirt.engine.core.common.businessentities.Cluster cluster ) { return vds.getSupportedRngSources ( ) . containsAll ( cluster.getRequiredRngSources ( ) ) ; }
Source:
public void setup ( ) { org.mockito.Mockito.when ( underTest.getActionType ( ) ) . thenReturn ( VdcActionType.ChangeVMCluster ) ; }

Target:
private void initMacToMigrate ( java.lang.String macToMigrate ) { org.mockito.Mockito.when ( vmNicDao.getAllForVm ( existingVm.getId ( ) ) ) . thenReturn ( java.util.Collections.singletonList ( macAddressToVmNic ( macToMigrate ) ) ) ; }
Source:
private org.ovirt.engine.ui.uicommonweb.models.storage.IStorageModel PrepareFcpStorageForEdit ( org.ovirt.engine.core.common.businessentities.StorageDomain storage ) { org.ovirt.engine.ui.uicommonweb.models.storage.FcpStorageModel model = new org.ovirt.engine.ui.uicommonweb.models.storage.FcpStorageModel ( ) ; model.setRole ( storage.getstorage_domain_type ( ) ) ; PrepareSanStorageForEdit ( model ) ; return model ; }

Target:
private org.ovirt.engine.ui.uicommonweb.models.storage.IStorageModel PrepareFcpStorageForEdit ( org.ovirt.engine.core.common.businessentities.StorageDomain storage ) { org.ovirt.engine.ui.uicommonweb.models.storage.FcpStorageModel model = new org.ovirt.engine.ui.uicommonweb.models.storage.FcpStorageModel ( ) ; model.setRole ( storage.getStorageDomainType ( ) ) ; PrepareSanStorageForEdit ( model ) ; return model ; }
Source:
protected void revertTasks ( ) { org.ovirt.engine.core.bll.tasks.TaskManagerUtil.revertTasks ( this ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.AsyncTask createAsyncTask ( org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { return org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.createAsyncTask ( this , asyncTaskCreationInfo , parentCommand ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.Network object ) { return ( object.getvlan_id ( ) ) == null ? "" : object.getvlan_id ( ) . toString ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.NetworkView object ) { return ( object.getNetwork ( ) . getvlan_id ( ) ) == null ? "-" : object.getNetwork ( ) . getvlan_id ( ) . toString ( ) ; }
Source:
protected void setUpGetSnapshotVmConfiguration ( org.ovirt.engine.core.compat.Guid snpashotId ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetVmConfigurationBySnapshot , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { snpashotId } , getVmConfiguration ( ) ) ; }

Target:
protected void setUpGetSnapshotVmConfiguration ( org.ovirt.engine.core.compat.Guid snpashotId ) throws java.lang.Exception { setUpEntityQueryExpectations ( QueryType.GetVmConfigurationBySnapshot , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { snpashotId } , getVmConfiguration ( ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > getClustersHavingHosts ( ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) ; return getCallsHandler ( ) . executeReadList ( "GetClustersHavingHosts" , org.ovirt.engine.core.dao.VdsGroupDaoImpl.VdsGroupRowMapper.instance , parameterSource ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > getClustersHavingHosts ( ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) ; return getCallsHandler ( ) . executeReadList ( "GetClustersHavingHosts" , org.ovirt.engine.core.dao.ClusterDaoImpl.ClusterRowMapper.instance , parameterSource ) ; }
Source:
private void updateHeartbeatPolicy ( boolean isheartbeat ) { org.ovirt.vdsm.jsonrpc.client.utils.retry.RetryPolicy policy = client.getRetryPolicy ( ) ; policy.setHeartbeat ( isheartbeat ) ; client.setRetryPolicy ( policy ) ; }

Target:
private void updateHeartbeatPolicy ( boolean isheartbeat ) { org.ovirt.vdsm.jsonrpc.client.utils.retry.RetryPolicy policy = client.getClientRetryPolicy ( ) ; policy.setHeartbeat ( isheartbeat ) ; client.setClientRetryPolicy ( policy ) ; }
Source:
public void run ( ) { _threadMain ( ) ; }

Target:
protected void postExecute ( ) { if ( _goingToReboot ) { _deployStatus = org.ovirt.engine.core.bll.hostdeploy.VdsDeploy.DeployStatus.Reboot ; } else if ( _installIncomplete ) { _deployStatus = org.ovirt.engine.core.bll.hostdeploy.VdsDeploy.DeployStatus.Incomplete ; } else { _deployStatus = org.ovirt.engine.core.bll.hostdeploy.VdsDeploy.DeployStatus.Complete ; } }
Source:
public java.lang.String getdescription ( ) { return this . getvm_description ( ) ; }

Target:
public java.lang.String getDescription ( ) { return this . getVmDescription ( ) ; }
Source:
private void assertGetAllRelevantQuoatsForVdsGroup ( org.ovirt.engine.core.compat.Guid vdsGroupId , int expectedQuotas ) { java.util.List < org.ovirt.engine.core.common.businessentities.Quota > quotas = dao.getAllRelevantQuotasForVdsGroup ( vdsGroupId , null , false ) ; org.junit.Assert.assertEquals ( "Wrong number of quotas retuend" , expectedQuotas , quotas.size ( ) ) ; }

Target:
private void assertGetAllRelevantQuoatsForVdsGroup ( org.ovirt.engine.core.compat.Guid vdsGroupId , int expectedQuotas ) { java.util.List < org.ovirt.engine.core.common.businessentities.Quota > quotas = dao.getAllRelevantQuotasForVdsGroup ( vdsGroupId , org.ovirt.engine.core.dao.PRIVILEGED_USER_SESSION_ID , false ) ; org.junit.Assert.assertEquals ( "Wrong number of quotas retuend" , expectedQuotas , quotas.size ( ) ) ; }
Source:
protected org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolManagerStrategy getMacPool ( ) { return org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolPerDcSingleton.getInstance ( ) . poolForDataCenter ( org.ovirt.engine.core.bll.CommandBase.getStoragePoolId ( ) ) ; }

Target:
protected org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolManagerStrategy getMacPool ( ) { return poolPerDc.poolForDataCenter ( org.ovirt.engine.core.bll.CommandBase.getStoragePoolId ( ) ) ; }
Source:
public void testGet ( ) { org.ovirt.engine.core.common.businessentities.LUN_storage_server_connection_map result = dao.get ( existingLUNStorageMap.getId ( ) ) ; assertNotNull ( result ) ; assertEquals ( existingLUNStorageMap , result ) ; }

Target:
public void testGet ( ) { org.ovirt.engine.core.common.businessentities.LUN_storage_server_connection_map result = dao.get ( existingLUNStorageMap.getId ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingLUNStorageMap , result ) ; }
Source:
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 ; }

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 = org.mockito.Mockito.mock ( org.ovirt.engine.core.common.businessentities.VM.class ) ; org.mockito.Mockito.when ( vm.getId ( ) ) . thenReturn ( id ) ; return vm ; }
Source:
public org.ovirt.engine.core.bll.adbroker.LdapSearchExceptionHandlingResponse setServerScore ( org.ovirt.engine.core.bll.adbroker.Score serverScore ) { this . serverScore = serverScore ; return this ; }

Target:
public org.ovirt.engine.core.bll.adbroker.LdapSearchExceptionHandlingResponse setOrderingAlgorithm ( org.ovirt.engine.core.bll.adbroker.serverordering.OrderingAlgorithmType orderingAlgorithm ) { this . orderingAlgorithm = orderingAlgorithm ; return this ; }
Source:
public void validateFailsOnNoBrick ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand2 ( volumeId4 ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFailsOnNoBrick ( ) { cmd.setGlusterVolumeId ( volumeId4 ) ; cmd.getParameters ( ) . setNewBrick ( getBricks ( volumeId4 , "" , 1 ) . get ( 0 ) ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
private void mockIsNicActuallyExistsOrReferencesNewBond ( org.ovirt.engine.core.bll.network.host.NicLabelValidator validator , boolean returnValue ) { org.mockito.Mockito.doReturn ( returnValue ) . when ( validator ) . isNicActuallyExistsOrReferencesNewBond ( org.mockito.Matchers.any ( java.lang.String.class ) , org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ; }

Target:
private void mockIsNicActuallyExistsOrReferencesNewBond ( org.ovirt.engine.core.bll.network.host.NicLabelValidator validator , boolean returnValue ) { org.mockito.Mockito.doReturn ( returnValue ) . when ( validator ) . isNicActuallyExistsOrReferencesNewBond ( org.mockito.ArgumentMatchers.any ( ) , org.mockito.ArgumentMatchers.any ( ) ) ; }
Source:
public static boolean IsUpdateValid ( org.ovirt.engine.core.common.businessentities.VmStatic source , org.ovirt.engine.core.common.businessentities.VmStatic destination ) { return org.ovirt.engine.core.bll.VmHandler.mUpdateVmsStatic.IsUpdateValid ( source , destination ) ; }

Target:
public static boolean isUpdateValid ( org.ovirt.engine.core.common.businessentities.VmStatic source , org.ovirt.engine.core.common.businessentities.VmStatic destination ) { return org.ovirt.engine.core.bll.VmHandler.mUpdateVmsStatic.IsUpdateValid ( source , destination ) ; }
Source:
private boolean isDiskNotShareable ( org.ovirt.engine.core.compat.Guid imageId ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage = getDiskImageByImageId ( imageId ) ; if ( diskImage.isShareable ( ) ) { addCanDoActionMessageVariable ( "diskAliases" , diskImage.getDiskAlias ( ) ) ; return failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_SHAREABLE_DISK_NOT_SUPPORTED ) ; } return true ; }

Target:
private boolean isDiskNotShareable ( org.ovirt.engine.core.compat.Guid imageId ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage = getDiskImageByImageId ( imageId ) ; if ( diskImage.isShareable ( ) ) { addValidationMessageVariable ( "diskAliases" , diskImage.getDiskAlias ( ) ) ; return failValidation ( EngineMessage.ACTION_TYPE_FAILED_SHAREABLE_DISK_NOT_SUPPORTED ) ; } return true ; }
Source:
private int calculateStepSize ( java.util.List < java.lang.Integer > points , int drawingAreaWidth ) { if ( ( drawingAreaWidth / ( points.size ( ) ) ) > ( org.ovirt.engine.ui.webadmin.widget.table.column.LineChartProgressBarColumn.stepMax ) ) { return org.ovirt.engine.ui.webadmin.widget.table.column.LineChartProgressBarColumn.stepMax ; } return drawingAreaWidth / ( points.size ( ) ) ; }

Target:
private int calculateStepSize ( java.util.List < java.lang.Integer > points , int drawingAreaWidth ) { if ( ( drawingAreaWidth / ( points.size ( ) ) ) > ( org.ovirt.engine.ui.webadmin.widget.table.column.AbstractLineChartProgressBarColumn.stepMax ) ) { return org.ovirt.engine.ui.webadmin.widget.table.column.AbstractLineChartProgressBarColumn.stepMax ; } return drawingAreaWidth / ( points.size ( ) ) ; }
Source:
protected void onPropertyChanged ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . onPropertyChanged ( e ) ; if ( ( e.propertyName.equals ( "Disks" ) ) || ( e.propertyName.equals ( "VolumeFormat" ) ) ) { updateStorageDomainsAvailability ( ) ; updateQuotaAvailability ( ) ; } }

Target:
protected void onPropertyChanged ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . onPropertyChanged ( e ) ; if ( ( e.propertyName.equals ( "Disks" ) ) || ( e.propertyName.equals ( org.ovirt.engine.ui.uicommonweb.models.storage.DisksAllocationModel.VOLUME_TYPE ) ) ) { updateStorageDomainsAvailability ( ) ; updateQuotaAvailability ( ) ; } }
Source:
public void canDoAction_nonEnforcing_Test ( ) { affinityGroup.setEnforcing ( false ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionSuccess ( command ) ; }

Target:
public void validate_nonEnforcing_Test ( ) { affinityGroup.setEnforcing ( false ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( command ) ; }
Source:
public void onAssignTags ( ) { org.ovirt.engine.ui.uicommonweb.models.tags.TagListModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.tags.TagListModel ) ( getWindow ( ) ) ) ; getAttachedTagsToSelectedHosts ( model ) ; }

Target:
public void onAssignTags ( ) { org.ovirt.engine.ui.uicommonweb.models.tags.TagListModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.tags.TagListModel ) ( org.ovirt.engine.ui.uicommonweb.models.hosts.HostListModel.getWindow ( ) ) ) ; getAttachedTagsToSelectedHosts ( model ) ; }
Source:
public void testGetCurrentWithMatrixFalse ( ) throws java.lang.Exception { setUriInfo ( setUpUriMatrixExpectations ( "false" ) ) ; setUpEntityQueryExpectations ( 1 ) ; control.replay ( ) ; org.ovirt.engine.api.model.CdRom cdrom = resource.get ( ) ; verifyModel ( cdrom ) ; }

Target:
public void testGetCurrentWithMatrixFalse ( ) throws java.lang.Exception { setUriInfo ( setUpUriMatrixExpectations ( "false" ) ) ; setUpEntityQueryExpectations ( 1 ) ; control.replay ( ) ; org.ovirt.engine.api.model.Cdrom cdrom = resource.get ( ) ; verifyModel ( cdrom ) ; }
Source:
public void testQueryWithoutFilter ( ) throws java.lang.Exception { resource.setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( false ) ; control.replay ( ) ; resource.get ( ) ; }

Target:
public void setUp ( ) { super . setUp ( ) ; setUpParentMock ( resource.getParent ( ) ) ; }
Source:
private boolean logicalNetworkExists ( ) { if ( ( org.ovirt.engine.core.bll.AttachNetworkToVdsGroupCommand.getNetworkDAO ( ) . get ( org.ovirt.engine.core.bll.AttachNetworkToVdsGroupCommand.getParameters ( ) . getNetworkCluster ( ) . getnetwork_id ( ) ) ) != null ) { return true ; } addCanDoActionMessage ( VdcBllMessages.NETWROK_NOT_EXISTS ) ; return false ; }

Target:
private boolean logicalNetworkExists ( ) { if ( ( org.ovirt.engine.core.bll.AttachNetworkToVdsGroupCommand.getNetworkDAO ( ) . get ( org.ovirt.engine.core.bll.AttachNetworkToVdsGroupCommand.getParameters ( ) . getNetworkCluster ( ) . getnetwork_id ( ) ) ) != null ) { return true ; } addCanDoActionMessage ( VdcBllMessages.NETWORK_NOT_EXISTS ) ; return false ; }
Source:
public org.ovirt.engine.api.resource.VmNumaNodeResource getVmNumaNodeSubResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendVmNumaNodeResource ( id , this , updateType , getUpdateParametersProvider ( ) , getRequiredUpdateFields ( ) ) ) ; }

Target:
public org.ovirt.engine.api.resource.VmNumaNodeResource getVmNumaNodeResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendVmNumaNodeResource ( id , this , updateType , getUpdateParametersProvider ( ) , getRequiredUpdateFields ( ) ) ) ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { StopProgress ( ) ; commandTarget.ExecuteCommand ( runOnceCommand ) ; }

Target:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { StopProgress ( ) ; commandTarget.executeCommand ( runOnceCommand ) ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.gluster.DetachGlusterHostsModel object ) { hostsTable.edit ( object.getHosts ( ) ) ; driver.edit ( object ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.gluster.DetachGlusterHostsModel object ) { hostsTable.asEditor ( ) . edit ( object.getHosts ( ) ) ; driver.edit ( object ) ; }
Source:
public org.ovirt.engine.core.common.utils.Pair < java.lang.Boolean , java.util.Set < java.lang.String > > acquireLock ( org.ovirt.engine.core.utils.lock.EngineLock lock ) { org.ovirt.engine.core.bll.lock.InMemoryLockManager.log.debugFormat ( "Before acquiring lock {0}" , lock ) ; globalLock.lock ( ) ; try { return acquireLockInternal ( lock ) ; } finally { globalLock.unlock ( ) ; } }

Target:
public org.ovirt.engine.core.common.utils.Pair < java.lang.Boolean , java.util.Set < java.lang.String > > acquireLock ( org.ovirt.engine.core.utils.lock.EngineLock lock ) { org.ovirt.engine.core.bll.lock.InMemoryLockManager.log.debug ( "Before acquiring lock '{}'" , lock ) ; globalLock.lock ( ) ; try { return acquireLockInternal ( lock ) ; } finally { globalLock.unlock ( ) ; } }
Source:
protected void expectGetLunsForVg ( java.lang.String vgId , boolean withDummyLun ) { org.mockito.Mockito.when ( lunDao.getAllForVolumeGroup ( vgId ) ) . thenReturn ( setUpLuns ( withDummyLun ) ) ; }

Target:
private void expectGetLunsForVg ( java.lang.String vgId , boolean withDummyLun ) { org.mockito.Mockito.when ( lunDao.getAllForVolumeGroup ( vgId ) ) . thenReturn ( org.ovirt.engine.core.bll.GetLunsByVgIdQueryTest.setUpLuns ( withDummyLun ) ) ; }
Source:
protected int compareCpuLevels ( org.ovirt.engine.core.common.businessentities.VDSGroup otherGroup ) { return org.ovirt.engine.core.bll.CpuFlagsManagerHandler.compareCpuLevels ( org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getcpu_name ( ) , otherGroup.getcpu_name ( ) , otherGroup.getcompatibility_version ( ) ) ; }

Target:
protected int compareCpuLevels ( org.ovirt.engine.core.common.businessentities.VDSGroup otherGroup ) { return org.ovirt.engine.core.bll.CpuFlagsManagerHandler.compareCpuLevels ( org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getCpuName ( ) , otherGroup.getCpuName ( ) , otherGroup.getCompatibilityVersion ( ) ) ; }
Source:
public static java.util.List < org.ovirt.engine.core.aaa.DirectoryUser > findPrincipalsByQuery ( final org.ovirt.engine.core.extensions.mgr.ExtensionProxy extension , final java.lang.String query ) { return org.ovirt.engine.core.aaa.AuthzUtils.queryPrincipals ( extension , org.ovirt.engine.core.aaa.SearchQueryParsingUtils.generateQueryMap ( query , Authz.QueryEntity.PRINCIPAL ) , false ) ; }

Target:
public static java.util.List < org.ovirt.engine.core.aaa.DirectoryUser > findPrincipalsByQuery ( final org.ovirt.engine.core.extensions.mgr.ExtensionProxy extension , final java.lang.String namespace , final java.lang.String query ) { return org.ovirt.engine.core.aaa.AuthzUtils.queryPrincipals ( extension , namespace , org.ovirt.engine.core.aaa.SearchQueryParsingUtils.generateQueryMap ( query , Authz.QueryEntity.PRINCIPAL ) , false , false ) ; }
Source:
public void testGet ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( 1 ) ; setUpGetPayloadExpectations ( 0 ) ; control.replay ( ) ; verifyModel ( resource.get ( ) , 0 ) ; }

Target:
public void testGet ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( 1 ) ; setUpGetPayloadExpectations ( 0 ) ; setUpGetBallooningExpectations ( ) ; control.replay ( ) ; verifyModel ( resource.get ( ) , 0 ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity getVolumeByNameAndHostId ( java.lang.String volumeName , org.ovirt.engine.core.compat.Guid hostId ) { org.ovirt.engine.core.common.businessentities.VdsStatic vds = getVdsStaticDao ( ) . get ( hostId ) ; org.ovirt.engine.core.compat.Guid vdsGroupId = vds.getVdsGroupId ( ) ; return getGlusterVolumeDao ( ) . getByName ( vdsGroupId , volumeName ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity getVolumeByNameAndHostId ( java.lang.String volumeName , org.ovirt.engine.core.compat.Guid hostId ) { org.ovirt.engine.core.common.businessentities.VdsStatic vds = getVdsStaticDao ( ) . get ( hostId ) ; org.ovirt.engine.core.compat.Guid clusterId = vds.getClusterId ( ) ; return getGlusterVolumeDao ( ) . getByName ( clusterId , volumeName ) ; }
Source:
public void networExists ( ) { simulateNicExists ( ) ; simulateNetworkExists ( ) ; org.junit.Assert.assertThat ( validator.networkExists ( org.ovirt.engine.core.bll.validator.VfsConfigValidatorTest.NETWORK_ID ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void settingSpecificNetworksNotAllowed ( ) { settingSpecificNetworksAllowedTest ( false ) ; org.hamcrest.MatcherAssert.assertThat ( validator.settingSpecificNetworksAllowed ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public java.lang.Boolean getBoolean ( java.lang.String key ) { java.lang.String image = getString ( key ) ; if ( image == null ) { return null ; } return java.lang.Boolean.parseBoolean ( image ) ; }

Target:
public boolean getBoolean ( java.lang.String key , boolean defaultValueIfNull ) { java.lang.String image = getString ( key ) ; if ( image == null ) { return defaultValueIfNull ; } return java.lang.Boolean.parseBoolean ( image ) ; }
Source:
private void appendFunctions ( ) throws java.io.IOException { appendFunction ( new org.ovirt.engine.sdk.generator.python.templates.FindRootClassTemplate ( ) ) ; }

Target:
private void appendFunctions ( ) throws java.io.IOException { appendFunction ( new org.ovirt.engine.sdk.generator.python.templates.FindRootClassTemplate ( ) ) ; appendFunction ( new org.ovirt.engine.sdk.generator.python.templates.ParseClassTemplate ( ) ) ; }
Source:
public void testUnsuccessfulSessionId ( ) { org.mockito.Mockito.when ( params.getSessionId ( ) ) . thenReturn ( "bad_session_id" ) ; getQuery ( ) . execute ( ) ; org.junit.Assert.assertFalse ( getQuery ( ) . getQueryReturnValue ( ) . getSucceeded ( ) ) ; }

Target:
public void testUnsuccessfulSessionId ( ) { org.mockito.Mockito.when ( params.getSessionId ( ) ) . thenReturn ( "bad_session_id" ) ; getQuery ( ) . execute ( ) ; org.junit.jupiter.api.Assertions.assertFalse ( getQuery ( ) . getQueryReturnValue ( ) . getSucceeded ( ) ) ; }
Source:
protected boolean cacheFilterPatternMatches ( javax.servlet.http.HttpServletRequest httpRequest ) { return ( org.ovirt.engine.ui.frontend.server.caching.CachingFilter.cachePattern ) != null ? org.ovirt.engine.ui.frontend.server.caching.CachingFilter.cachePattern.matcher ( httpRequest.getRequestURI ( ) ) . matches ( ) : false ; }

Target:
protected boolean cacheFilterPatternMatches ( javax.servlet.http.HttpServletRequest httpRequest ) { return ( org.ovirt.engine.core.utils.servlet.CachingFilter.cachePattern ) != null ? org.ovirt.engine.core.utils.servlet.CachingFilter.cachePattern.matcher ( httpRequest.getRequestURI ( ) ) . matches ( ) : false ; }
Source:
public java.lang.String getSysprepFileName ( int osId , org.ovirt.engine.core.compat.Version version ) ;

Target:
boolean isLinux ( int osId ) ;
Source:
protected void fillImagesMapBasedOnTemplate ( ) { org.ovirt.engine.core.bll.ImagesHandler.fillImagesMapBasedOnTemplate ( org.ovirt.engine.core.bll.AddVmCommand.getVmTemplate ( ) , org.ovirt.engine.core.bll.AddVmCommand.getStorageDomainDAO ( ) . getAllForStoragePool ( org.ovirt.engine.core.bll.AddVmCommand.getVmTemplate ( ) . getStoragePoolId ( ) ) , diskInfoDestinationMap , destStorages , false ) ; }

Target:
protected void fillImagesMapBasedOnTemplate ( ) { org.ovirt.engine.core.bll.ImagesHandler.fillImagesMapBasedOnTemplate ( vmDisksSource , getPoolDomains ( ) , diskInfoDestinationMap , destStorages , false ) ; }
Source:
private org.ovirt.engine.core.bll.ValidationResult hostExist ( ) { if ( ( host ) == null ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_HOST_NOT_EXIST ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
private org.ovirt.engine.core.bll.ValidationResult hostExist ( ) { if ( ( host ) == null ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_HOST_NOT_EXIST ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
private final org.ovirt.engine.core.common.businessentities.DbUser initUser ( ) { return org.ovirt.engine.core.bll.session.SessionDataContainer.getInstance ( ) . addUserToThreadContext ( parameters.getSessionId ( ) , parameters.getRefresh ( ) ) ; }

Target:
protected final org.ovirt.engine.core.common.businessentities.DbUser initUser ( ) { return org.ovirt.engine.core.bll.session.SessionDataContainer.getInstance ( ) . getUser ( parameters.getSessionId ( ) , parameters.getRefresh ( ) ) ; }
Source:
public void testGet ( ) { org.ovirt.engine.core.common.businessentities.VmStatistics result = dao.get ( org.ovirt.engine.core.dao.VmStatisticsDaoTest.EXISTING_VM_ID ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.VmStatisticsDaoTest.EXISTING_VM_ID , result.getId ( ) ) ; }

Target:
public void testGet ( ) { org.ovirt.engine.core.common.businessentities.VmStatistics result = dao.get ( FixturesTool.VM_RHEL5_POOL_57 ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( FixturesTool.VM_RHEL5_POOL_57 , result.getId ( ) ) ; }
Source:
public org.ovirt.engine.api.model.StorageDomains list ( ) { if ( isFiltered ( ) ) { return mapCollection ( getBackendCollection ( QueryType.GetAllStorageDomains , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , SearchType.StorageDomain ) ) ; } else { return mapCollection ( getBackendCollection ( SearchType.StorageDomain ) ) ; } }

Target:
public org.ovirt.engine.api.model.StorageDomains list ( ) { if ( isFiltered ( ) ) { return mapCollection ( getBackendCollection ( QueryType.GetAllStorageDomains , new org.ovirt.engine.core.common.queries.QueryParametersBase ( ) , SearchType.StorageDomain ) ) ; } else { return mapCollection ( getBackendCollection ( SearchType.StorageDomain ) ) ; } }
Source:
public void snapshotNotBrokenReturnsInvalidResult ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.Snapshot snapshot = new org.ovirt.engine.core.common.businessentities.Snapshot ( ) ; snapshot.setStatus ( SnapshotStatus.BROKEN ) ; validateInvalidResult ( validator.snapshotNotBroken ( snapshot ) , VdcBllMessages.ACTION_TYPE_FAILED_VM_SNAPSHOT_IS_BROKEN ) ; }

Target:
public void snapshotNotBrokenReturnsInvalidResult ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.Snapshot snapshot = new org.ovirt.engine.core.common.businessentities.Snapshot ( ) ; snapshot.setStatus ( SnapshotStatus.BROKEN ) ; org.ovirt.engine.core.bll.snapshots.SnapshotsValidatorTest.validateInvalidResult ( validator.snapshotNotBroken ( snapshot ) , VdcBllMessages.ACTION_TYPE_FAILED_VM_SNAPSHOT_IS_BROKEN ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData importVmData ) { int numOfCpus = importVmData.getVm ( ) . getNumOfCpus ( ) ; return java.lang.String.valueOf ( numOfCpus ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.vms.register.RegisterVmData registerVmData ) { int numOfCpus = registerVmData.getVm ( ) . getNumOfCpus ( ) ; return java.lang.String.valueOf ( numOfCpus ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.storage_domains mockStorageDomain ( org.ovirt.engine.core.compat.Guid storageId ) { return mockStorageDomain ( storageId , 6 , 4 , StorageType.UNKNOWN ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.storage_domains mockStorageDomain ( org.ovirt.engine.core.compat.Guid storageId , int availableSize , int usedSize ) { return mockStorageDomain ( storageId , 6 , 4 , StorageType.UNKNOWN , new org.ovirt.engine.core.compat.Version ( ) ) ; }
Source:
public void hideAndUnbind ( ) { super . hideAndUnbind ( ) ; org.ovirt.engine.ui.common.presenter.AbstractModelBoundPopupPresenterWidget.getView ( ) . cleanup ( ) ; if ( ( this . model ) != null ) { this . model.cleanup ( ) ; this . model = null ; } }

Target:
protected void onReveal ( ) { super . onReveal ( ) ; org.ovirt.engine.ui.common.presenter.AbstractModelBoundPopupPresenterWidget.popupResourcesToCleanup.add ( org.ovirt.engine.ui.common.presenter.AbstractModelBoundPopupPresenterWidget.getView ( ) ) ; org.ovirt.engine.ui.common.presenter.AbstractModelBoundPopupPresenterWidget.popupResourcesToCleanup.add ( model ) ; org.ovirt.engine.ui.common.presenter.AbstractModelBoundPopupPresenterWidget.getView ( ) . focusInput ( ) ; }
Source:
protected void OnSelectedItemChanged ( ) { super . OnSelectedItemChanged ( ) ; UpdateActionAvailability ( ) ; UpdateConsoleModels ( ) ; }

Target:
protected void OnSelectedItemChanged ( ) { super . OnSelectedItemChanged ( ) ; updateConsoleModels ( ) ; UpdateActionAvailability ( ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VDSGroup lookupClusterByName ( java.lang.String name ) { return getEntity ( org.ovirt.engine.core.common.businessentities.VDSGroup.class , VdcQueryType.GetVdsGroupByName , new org.ovirt.engine.core.common.queries.GetVdsGroupByNameParameters ( name ) , "GetVdsGroupByName" ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VDSGroup lookupClusterByName ( java.lang.String name ) { return getEntity ( org.ovirt.engine.core.common.businessentities.VDSGroup.class , VdcQueryType.GetVdsGroupByName , new org.ovirt.engine.core.common.queries.NameQueryParameters ( name ) , "GetVdsGroupByName" ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult diskProfileIsSet ( ) { return ( diskProfile ) == null ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_PROFILE_NOT_EXISTS ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult diskProfileIsSet ( ) { return ( getDiskProfile ( ) ) == null ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_PROFILE_NOT_EXISTS ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
public void testBadGuid ( ) { try { new org.ovirt.engine.api.restapi.resource.BackendDataCenterClusterResource ( new org.ovirt.engine.api.restapi.resource.BackendDataCenterClustersResource ( org.ovirt.engine.api.restapi.resource.BackendDataCenterClusterResourceTest.dataCenterId.toString ( ) ) , "foo" ) ; org.junit.Assert.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testBadGuid ( ) { try { new org.ovirt.engine.api.restapi.resource.BackendDataCenterClusterResource ( new org.ovirt.engine.api.restapi.resource.BackendDataCenterClustersResource ( org.ovirt.engine.api.restapi.resource.BackendDataCenterClusterResourceTest.dataCenterId.toString ( ) ) , "foo" ) ; org.junit.jupiter.api.Assertions.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }