auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void nameIsNullForUpdate ( ) throws java.lang.Exception { assertNicValidation ( createNic ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_MAC_ADDRESS , null , org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_NIC_TYPE ) , org.ovirt.engine.core.common.validation.group.CreateEntity.class , true , VmNetworkInterface.VALIDATION_MESSAGE_NAME_NOT_NULL ) ; }

Target:
public void nameIsNullForUpdate ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.assertNicValidation ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.createNic ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_MAC_ADDRESS , null , org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_NIC_TYPE ) , org.ovirt.engine.core.common.validation.group.CreateEntity.class , true , VmNetworkInterface.VALIDATION_MESSAGE_NAME_NOT_NULL ) ; }
Source:
public boolean isMigrationNetwork ( ) { return getEntity ( ) . getCluster ( ) . isMigration ( ) ; }

Target:
public boolean isExternal ( ) { return getEntity ( ) . isExternal ( ) ; }
Source:
public static org.ovirt.engine.api.model.DisplayType map ( org.ovirt.engine.api.model.DisplayType type , org.ovirt.engine.api.model.DisplayType incoming ) { switch ( type ) { case VNC : return org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.DisplayType ; case SPICE : return org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.DisplayType ; default : return null ; } }

Target:
public static org.ovirt.engine.api.model.GraphicsType map ( org.ovirt.engine.api.model.GraphicsType graphicsType , org.ovirt.engine.api.model.GraphicsType template ) { if ( graphicsType != null ) { switch ( graphicsType ) { case SPICE : return org.ovirt.engine.api.model.GraphicsType.SPICE ; case VNC : return org.ovirt.engine.api.model.GraphicsType.VNC ; } } return null ; }
Source:
public void testGetEventNotificationMethodsById ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.EventNotificationMethod > result = dao.getEventNotificationMethodsById ( 1 ) ; assertNotNull ( result ) ; assertFalse ( result.isEmpty ( ) ) ; assertEquals ( 1 , result.size ( ) ) ; }

Target:
public void testGetAllForSubscriberWithNoSubscriptions ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.event_subscriber > result = dao.getAllForSubscriber ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public java.lang.String getRoleName ( ) { org.ovirt.engine.core.common.businessentities.Role role = org.ovirt.engine.core.bll.PermissionsCommandBase.getRoleDao ( ) . get ( org.ovirt.engine.core.bll.PermissionsCommandBase.getParameters ( ) . getPermission ( ) . getrole_id ( ) ) ; return role == null ? null : role.getName ( ) ; }

Target:
public java.lang.String getRoleName ( ) { org.ovirt.engine.core.common.businessentities.Role role = org.ovirt.engine.core.bll.PermissionsCommandBase.getRoleDao ( ) . get ( org.ovirt.engine.core.bll.PermissionsCommandBase.getParameters ( ) . getPermission ( ) . getRoleId ( ) ) ; return role == null ? null : role.getName ( ) ; }
Source:
public void update ( org.ovirt.engine.core.common.businessentities.storage_server_connections connection ) { getCallsHandler ( ) . executeModification ( "Updatestorage_server_connections" , getFullParameterSource ( connection ) ) ; }

Target:
public void update ( org.ovirt.engine.core.common.businessentities.StorageServerConnections connection ) { getCallsHandler ( ) . executeModification ( "Updatestorage_server_connections" , getFullParameterSource ( connection ) ) ; }
Source:
private void handleInterruptException ( org.ovirt.engine.core.bll.adbroker.LdapSearchExceptionHandlingResponse response , java.lang.Throwable cause ) { response.setServerScore ( Score.HIGH ) . setTranslatedException ( ( ( java.lang.Exception ) ( cause ) ) ) . setTryNextServer ( false ) ; }

Target:
private void handleInterruptException ( org.ovirt.engine.core.bll.adbroker.LdapSearchExceptionHandlingResponse response , java.lang.Throwable cause ) { response.setOrderingAlgorithm ( OrderingAlgorithmType.NO_OP ) . setTranslatedException ( ( ( java.lang.Exception ) ( cause ) ) ) . setTryNextServer ( false ) ; }
Source:
protected org.ovirt.engine.core.bll.adbroker.Domain mockDomainObject ( java.util.List < java.net.URI > urls ) { final org.ovirt.engine.core.bll.adbroker.Domain domain = new org.ovirt.engine.core.bll.adbroker.Domain ( "" ) ; domain.setLdapServers ( urls ) ; domain.setLdapServers ( urls ) ; domain.setLdapProviderType ( LdapProviderType.general ) ; return domain ; }

Target:
protected org.ovirt.engine.core.bll.adbroker.Domain mockDomainObject ( java.util.List < java.net.URI > urls ) { final org.ovirt.engine.core.bll.adbroker.Domain domain = new org.ovirt.engine.core.bll.adbroker.Domain ( "" ) ; domain.setLdapServers ( urls ) ; domain.setLdapServers ( urls ) ; domain.setLdapProviderType ( LdapProviderType.openLdap ) ; return domain ; }
Source:
public void testRemove ( ) { dao.remove ( existingVdsSpmIdMap.getId ( ) ) ; org.ovirt.engine.core.common.businessentities.vds_spm_id_map result = dao.get ( existingVdsSpmIdMap.getId ( ) ) ; assertNull ( result ) ; }

Target:
public void testRemove ( ) { dao.remove ( existingVdsSpmIdMap.getId ( ) ) ; org.ovirt.engine.core.common.businessentities.vds_spm_id_map result = dao.get ( existingVdsSpmIdMap.getId ( ) ) ; org.junit.Assert.assertNull ( result ) ; }
Source:
public void updateFCPUnsupportedConnectionType ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections dummyFCPConn = createISCSIConnection ( "10.35.16.25" , StorageType.FCP , "" , "3260" , "user1" , "mypassword123" ) ; parameters.setStorageServerConnection ( dummyFCPConn ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.ACTION_TYPE_FAILED_STORAGE_CONNECTION_UNSUPPORTED_ACTION_FOR_STORAGE_TYPE ) ; }

Target:
public void updateFCPUnsupportedConnectionType ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections dummyFCPConn = createISCSIConnection ( "10.35.16.25" , StorageType.FCP , "" , "3260" , "user1" , "mypassword123" ) ; parameters.setStorageServerConnection ( dummyFCPConn ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_STORAGE_CONNECTION_UNSUPPORTED_ACTION_FOR_STORAGE_TYPE ) ; }
Source:
public void setPmSecondaryType ( java.lang.String value ) { mVdsStatic.setPmSecondaryType ( value ) ; }

Target:
public void setNumaSupport ( boolean numaSupport ) { mVdsDynamic.setNumaSupport ( numaSupport ) ; }
Source:
public void Cancel ( ) { setWindow ( null ) ; }

Target:
public void cancel ( ) { setWindow ( null ) ; org.ovirt.engine.ui.frontend.Frontend.Unsubscribe ( ) ; }
Source:
protected void endWithFailure ( ) { org.ovirt.engine.core.bll.RemoveDiskSnapshotsCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { if ( isLiveMerge ( ) ) { org.ovirt.engine.core.bll.RemoveDiskSnapshotsCommand.getParameters ( ) . setLiveMerge ( true ) ; persistCommand ( org.ovirt.engine.core.bll.RemoveDiskSnapshotsCommand.getParameters ( ) . getParentCommand ( ) , true ) ; } org.ovirt.engine.core.bll.RemoveDiskSnapshotsCommand.setSucceeded ( true ) ; }
Source:
public void logVolumeMessage ( final org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity volume , final org.ovirt.engine.core.common.AuditLogType logType ) { logAuditMessage ( volume.getClusterId ( ) , volume , null , logType , null ) ; }

Target:
public void logVolumeMessage ( final org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity volume , final org.ovirt.engine.core.common.AuditLogType logType ) { logAuditMessage ( volume.getClusterId ( ) , volume , null , logType , java.util.Collections.< java.lang.String , java.lang.String > emptyMap ( ) ) ; }
Source:
public boolean isNetworkExclusive ( java.util.List < org.ovirt.engine.core.bll.validator.network.NetworkType > networksOnIface ) { final int untaggedNetworkCount = org.apache.commons.collections.CollectionUtils.countMatches ( networksOnIface , untaggedNetworkPredicate ) ; return untaggedNetworkCount <= 1 ; }

Target:
public boolean isNetworkExclusive ( java.util.List < org.ovirt.engine.core.bll.validator.network.NetworkType > networksOnIface ) { return ( networksOnIface.stream ( ) . filter ( untaggedNetworkPredicate ) . count ( ) ) <= 1 ; }
Source:
private void setUpGetBallooningExpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.IsBalloonEnabled , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , true ) ; }

Target:
private void setUpGetBallooningExpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( QueryType.IsBalloonEnabled , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , true ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.StoragePool getByName ( java.lang.String name ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "name" , name ) ; return getCallsHandler ( ) . executeRead ( "Getstorage_poolByName" , org.ovirt.engine.core.dao.StoragePoolDAODbFacadeImpl.mapper , parameterSource ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.StoragePool getByName ( java.lang.String name ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "name" , name ) . addValue ( "is_case_sensitive" , true ) ; return getCallsHandler ( ) . executeRead ( "Getstorage_poolByName" , org.ovirt.engine.core.dao.StoragePoolDAODbFacadeImpl.mapper , parameterSource ) ; }
Source:
public java.lang.Integer getguest_requested_memory ( ) { return this . guest_requested_memory ; }

Target:
public void setUtcDiff ( java.lang.Integer value ) { this . utcDiff = value ; }
Source:
private void InitHandlers ( ) { mTagsHandler = org.ovirt.engine.core.bll.HandlersFactory.createTagsHandler ( ) ; org.ovirt.engine.core.searchbackend.BaseConditionFieldAutoCompleter.TagsHandler = mTagsHandler ; org.ovirt.engine.core.bll.VmHandler.Init ( ) ; org.ovirt.engine.core.bll.VdsHandler.Init ( ) ; org.ovirt.engine.core.bll.VmTemplateHandler.Init ( ) ; org.ovirt.engine.core.bll.Backend.log.info ( "Completed initializing handlers" ) ; }

Target:
private void initHandlers ( ) { mTagsHandler = org.ovirt.engine.core.bll.HandlersFactory.createTagsHandler ( ) ; org.ovirt.engine.core.searchbackend.BaseConditionFieldAutoCompleter.TagsHandler = mTagsHandler ; org.ovirt.engine.core.bll.VmHandler.init ( ) ; org.ovirt.engine.core.bll.VdsHandler.Init ( ) ; org.ovirt.engine.core.bll.VmTemplateHandler.Init ( ) ; org.ovirt.engine.core.bll.Backend.log.info ( "Completed initializing handlers" ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetJobByJobIdQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.job.JobRepositoryFactory.getJobRepository ( ) . getJob ( org.ovirt.engine.core.bll.GetJobByJobIdQuery.getParameters ( ) . getId ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetJobByJobIdQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.job.JobRepositoryFactory.getJobRepository ( ) . getJobWithSteps ( org.ovirt.engine.core.bll.GetJobByJobIdQuery.getParameters ( ) . getId ( ) ) ) ; }
Source:
protected void connectAllHostsToPool ( ) { runSynchronizeOperation ( new org.ovirt.engine.core.bll.storage.ConnectSingleAsyncOperationFactory ( ) ) ; }

Target:
protected void changeStorageDomainStatusInTransaction ( final org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap map , final org.ovirt.engine.core.common.businessentities.StorageDomainStatus status ) { changeStorageDomainStatusInTransaction ( map , status , org.ovirt.engine.core.bll.storage.StorageDomainCommandBase.getCompensationContext ( ) ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( getBootProtocol ( ) , getAddress ( ) , getNetmask ( ) , getGateway ( ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.network.IPv4Address getPrimaryAddress ( ) { if ( ! ( hasPrimaryAddressSet ( ) ) ) { throw new java.lang.IllegalStateException ( "IpConfiguration does not have IPv4 address set." ) ; } return getIPv4Addresses ( ) . get ( 0 ) ; }
Source:
public void testGetMessageNullKey ( ) { java.lang.String testKey = null ; java.lang.String result = testManager.getMessage ( testKey ) ; org.junit.Assert.assertEquals ( "The result should be a blank string" , "" , result ) ; }

Target:
public void testGetMessageNullKey ( ) { java.lang.String testKey = null ; java.lang.String result = testManager.getMessage ( testKey ) ; org.junit.jupiter.api.Assertions.assertEquals ( "" , result , "The result should be a blank string" ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.Tags getRootTag ( ) { return getEntity ( org.ovirt.engine.core.common.businessentities.Tags.class , QueryType.GetRootTag , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , "root" ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.Tags getRootTag ( ) { return getEntity ( org.ovirt.engine.core.common.businessentities.Tags.class , QueryType.GetRootTag , new org.ovirt.engine.core.common.queries.QueryParametersBase ( ) , "root" ) ; }
Source:
protected void saveImage ( org.ovirt.engine.core.common.businessentities.DiskImage disk ) { org.ovirt.engine.core.bll.BaseImagesCommand.saveImage ( disk ) ; }

Target:
protected void saveImage ( org.ovirt.engine.core.common.businessentities.storage.DiskImage disk ) { org.ovirt.engine.core.bll.BaseImagesCommand.saveImage ( disk ) ; }
Source:
public void testInstanceTypes ( ) { testValidSql ( "instancetype: " , "SELECT * FROM ((SELECT instance_types_view.* FROM instance_types_view ) ORDER BY name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; }

Target:
public void testInstanceType ( ) { testValidSql ( "instancetype: " , "SELECT * FROM ((SELECT distinct instance_types_view.* FROM instance_types_view ) ORDER BY name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; }
Source:
private org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase createLoggable ( ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase loggable = org.ovirt.engine.core.di.Injector.injectMembers ( new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ) ; loggable.setClusterId ( networkCluster.getClusterId ( ) ) ; loggable.addCustomValue ( "NetworkName" , networkName ) ; return loggable ; }

Target:
private java.lang.String getClusterName ( ) { final org.ovirt.engine.core.common.businessentities.Cluster cluster = clusterDao.get ( networkCluster.getClusterId ( ) ) ; return cluster == null ? null : cluster.getName ( ) ; }
Source:
protected java.lang.String getJsonDiskDescription ( org.ovirt.engine.core.common.businessentities.storage.Disk disk ) { try { return org.ovirt.engine.core.bll.MetadataDiskDescriptionHandler.getInstance ( ) . getJsonDiskDescription ( disk ) ; } catch ( java.io.IOException e ) { log.error ( "Exception while generating json for disk. ERROR: '{}'" , e ) ; return org.apache.commons.lang.StringUtils.EMPTY ; } }

Target:
protected java.lang.String getJsonDiskDescription ( org.ovirt.engine.core.common.businessentities.storage.Disk disk ) { try { return org.ovirt.engine.core.bll.MetadataDiskDescriptionHandler.getInstance ( ) . generateJsonDiskDescription ( disk ) ; } catch ( java.io.IOException e ) { log.error ( "Exception while generating json for disk. ERROR: '{}'" , e ) ; return org.apache.commons.lang.StringUtils.EMPTY ; } }
Source:
public org.ovirt.engine.api.model.Clusters list ( ) { return mapCollection ( getBackendCollection ( SearchType.Cluster ) ) ; }

Target:
public org.ovirt.engine.api.model.Clusters list ( ) { if ( isFiltered ( ) ) return mapCollection ( getBackendCollection ( VdcQueryType.GetAllVdsGroups , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ) ; else return mapCollection ( getBackendCollection ( SearchType.Cluster ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VmTemplate mockVmTemplate ( ) { org.ovirt.engine.core.common.businessentities.VmTemplate vmTemplate = new org.ovirt.engine.core.common.businessentities.VmTemplate ( ) ; vmTemplate.setId ( vmTemplateId ) ; vmTemplate.setstorage_pool_id ( storagePoolId ) ; setDiskList ( vmTemplate ) ; return vmTemplate ; }

Target:
private org.ovirt.engine.core.common.businessentities.VDSGroup mockVdsGroup ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup group = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; group.setvds_group_id ( vdsGroupId ) ; group.setcompatibility_version ( new org.ovirt.engine.core.compat.Version ( ) ) ; group.setstorage_pool_id ( storagePoolId ) ; return group ; }
Source:
public org.ovirt.engine.api.model.InstanceTypes list ( ) { if ( isFiltered ( ) ) { return mapCollection ( getBackendCollection ( QueryType.GetAllInstanceTypes , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ) ; } else { return mapCollection ( getBackendCollection ( SearchType.InstanceType ) ) ; } }

Target:
public org.ovirt.engine.api.model.InstanceTypes list ( ) { if ( isFiltered ( ) ) { return mapCollection ( getBackendCollection ( QueryType.GetAllInstanceTypes , new org.ovirt.engine.core.common.queries.QueryParametersBase ( ) ) ) ; } else { return mapCollection ( getBackendCollection ( SearchType.InstanceType ) ) ; } }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > searchAuditLogEvents ( ) { return genericSearch ( org.ovirt.engine.core.bll.SearchQuery.getDbFacade ( ) . getAuditLogDao ( ) , false ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.aaa.DbGroup > searchDbGroups ( ) { return genericSearch ( dbGroupDao , true ) ; }
Source:
public void log ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase auditLogable ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( auditLogable ) ; }

Target:
public void log ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase auditLogable ) { auditLogDirector.log ( auditLogable ) ; }
Source:
public void testExtractProperIpv6AddressWithPrefix ( ) { org.junit.Assert.assertThat ( org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.extractIpv6Address ( "::/123" ) , org.hamcrest.Matchers.is ( "::" ) ) ; }

Target:
public void testExtractProperIpv6AddressMultipleSlashes ( ) { org.junit.Assert.assertThat ( vdsBrokerObjectsBuilder.extractIpv6Address ( ":/:/123" ) , org.hamcrest.Matchers.is ( ":/:/123" ) ) ; }
Source:
public void poolUpdateOvfStoreOnAnyDomainSupported ( ) throws java.lang.Exception { org.mockito.Mockito.doReturn ( true ) . when ( ovfDataUpdater ) . ovfOnAnyDomainSupported ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.StoragePool.class ) ) ; ovfDataUpdater.ovfUpdate_timer ( ) ; verify ( java.lang.Boolean.TRUE ) ; }

Target:
public void poolUpdateOvfStoreOnAnyDomainSupported ( ) throws java.lang.Exception { org.mockito.Mockito.doReturn ( true ) . when ( ovfDataUpdater ) . ovfOnAnyDomainSupported ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.StoragePool.class ) ) ; ovfDataUpdater.ovfUpdateTimer ( ) ; verify ( java.lang.Boolean.TRUE ) ; }
Source:
public void testRemoveBadGuid ( ) throws java.lang.Exception { control.replay ( ) ; try { collection.remove ( "foo" ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testRemoveBadGuid ( ) throws java.lang.Exception { control.replay ( ) ; try { collection.remove ( "foo" ) ; org.ovirt.engine.api.restapi.resource.AbstractBackendNetworksResourceTest.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }
Source:
public void testUpdateFieldsQutoaDefault ( ) { vm.setIsQuotaDefault ( true ) ; vmStatic.setQuotaDefault ( false ) ; junit.framework.Assert.assertTrue ( "Quota default should be updatable" , command.areUpdatedFieldsLegal ( ) ) ; }

Target:
public void testUpdateFieldsQuotaEnforcementType ( ) { vm.setQuotaEnforcementType ( QuotaEnforcementTypeEnum.DISABLED ) ; vmStatic.setQuotaEnforcementType ( QuotaEnforcementTypeEnum.SOFT_ENFORCEMENT ) ; org.junit.Assert.assertTrue ( "Quota enforcement type should be updatable" , command.areUpdatedFieldsLegal ( ) ) ; }
Source:
protected void updateCurrentCd ( java.lang.String cdPath ) { cdPath = ( org.apache.commons.lang.StringUtils.isEmpty ( cdPath ) ) ? null : cdPath ; org.ovirt.engine.core.bll.VmHandler.updateCurrentCd ( org.ovirt.engine.core.bll.RunVmCommand.getVdsId ( ) , org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) , cdPath ) ; }

Target:
protected void updateCurrentCd ( java.lang.String cdPath ) { cdPath = ( org.apache.commons.lang.StringUtils.isEmpty ( cdPath ) ) ? null : cdPath ; vmHandler.updateCurrentCd ( org.ovirt.engine.core.bll.RunVmCommand.getVdsId ( ) , org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) , cdPath ) ; }
Source:
private void adjustRemoveExternalOptions ( java.util.Set < org.ovirt.engine.core.compat.Guid > externalProviderIds ) { if ( externalProviderIds.isEmpty ( ) ) { return ; } org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetAllProviders , new org.ovirt.engine.core.common.queries.GetAllProvidersParameters ( org.ovirt.engine.core.common.businessentities.ProviderType.EXTERNAL_NETWORK ) , createProviderReadOnlyCallback ( externalProviderIds ) ) ; }

Target:
private void adjustRemoveExternalOptions ( java.util.Set < org.ovirt.engine.core.compat.Guid > externalProviderIds ) { if ( externalProviderIds.isEmpty ( ) ) { return ; } org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetAllProviders , new org.ovirt.engine.core.common.queries.GetAllProvidersParameters ( org.ovirt.engine.core.common.businessentities.ProviderType.EXTERNAL_NETWORK , org.ovirt.engine.core.common.businessentities.ProviderType.OPENSTACK_NETWORK ) , createProviderReadOnlyCallback ( externalProviderIds ) ) ; }
Source:
public org.ovirt.engine.api.resource.WatchdogsResource getWatchdogsResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendTemplateWatchdogsResource ( guid , org.ovirt.engine.core.common.queries.VdcQueryType.GetWatchdog , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ) ; }

Target:
public org.ovirt.engine.api.resource.InstanceTypeWatchdogsResource getWatchdogsResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendInstanceTypeWatchdogsResource ( guid ) ) ; }
Source:
private org.ovirt.engine.core.common.queries.VdcQueryReturnValue getCACertificate ( ) { return org.ovirt.engine.core.bll.ConfigureConsoleOptionsQuery.getBackend ( ) . runInternalQuery ( VdcQueryType.GetCACertificate , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ; }

Target:
private org.ovirt.engine.core.common.queries.VdcQueryReturnValue getCACertificate ( ) { return backend.runInternalQuery ( VdcQueryType.GetCACertificate , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ; }
Source:
public void testGetVdsSpmIdMapForStoragePoolAndVdsId ( ) { org.ovirt.engine.core.common.businessentities.vds_spm_id_map result = dao.get ( existingVdsSpmIdMap.getstorage_pool_id ( ) , existingVdsSpmIdMap.getvds_spm_id ( ) ) ; assertNotNull ( result ) ; assertEquals ( existingVdsSpmIdMap , result ) ; }

Target:
public void testGetVdsSpmIdMapForStoragePoolAndVdsId ( ) { org.ovirt.engine.core.common.businessentities.vds_spm_id_map result = dao.get ( existingVdsSpmIdMap.getstorage_pool_id ( ) , existingVdsSpmIdMap.getvds_spm_id ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingVdsSpmIdMap , result ) ; }
Source:
protected void logErrorOneOrMoreActiveDomainsAreMissing ( ) { log.errorFormat ( "Can not found any default active domain for one of the disks of snapshot with id : {0}" , oldVmId ) ; }

Target:
protected void logErrorOneOrMoreActiveDomainsAreMissing ( ) { log.error ( "Can not found any default active domain for one of the disks of snapshot with id '{}'" , oldVmId ) ; }
Source:
protected org.ovirt.engine.api.model.StorageDomain getStorageDomainEntity ( ) { org.ovirt.engine.api.model.StorageDomain entity = control.createMock ( org.ovirt.engine.api.model.StorageDomain.class ) ; return org.ovirt.engine.api.restapi.resource.BackendTemplateDiskResourceTest.setUpStorageDomainEntityExpectations ( entity , StorageType.NFS ) ; }

Target:
protected org.ovirt.engine.api.model.StorageDomain getStorageDomainEntity ( ) { org.ovirt.engine.api.model.StorageDomain entity = org.mockito.Mockito.mock ( org.ovirt.engine.api.model.StorageDomain.class ) ; return org.ovirt.engine.api.restapi.resource.BackendTemplateDiskResourceTest.setUpStorageDomainEntityExpectations ( entity , StorageType.NFS ) ; }
Source:
private void discover ( ) { if ( ( getWindow ( ) ) != null ) { return ; } org.ovirt.engine.ui.uicommonweb.models.providers.DiscoverNetworksModel discoverModel = new org.ovirt.engine.ui.uicommonweb.models.providers.DiscoverNetworksModel ( this , getEntity ( ) ) ; setWindow ( discoverModel ) ; discoverModel.discoverNetworks ( ) ; }

Target:
private void discover ( ) { if ( ( getWindow ( ) ) != null ) { return ; } org.ovirt.engine.ui.uicommonweb.models.providers.DiscoverNetworksModel discoverModel = new org.ovirt.engine.ui.uicommonweb.models.providers.DiscoverNetworksModel ( this , getEntity ( ) , commonModelProvider ) ; setWindow ( discoverModel ) ; discoverModel.discoverNetworks ( ) ; }
Source:
private void mockVdsCommand ( org.ovirt.engine.core.common.vdscommands.VDSCommandType cmdType , org.ovirt.engine.core.common.vdscommands.VDSReturnValue returnValue ) { org.mockito.Mockito.doReturn ( returnValue ) . when ( resourceManager ) . runVdsCommand ( org.mockito.Matchers.eq ( cmdType ) , org.mockito.Matchers.any ( org.ovirt.engine.core.common.vdscommands.VDSParametersBase.class ) ) ; }

Target:
private void mockVdsCommand ( org.ovirt.engine.core.common.vdscommands.VDSCommandType cmdType , org.ovirt.engine.core.common.vdscommands.VDSReturnValue returnValue ) { org.mockito.Mockito.doReturn ( returnValue ) . when ( resourceManager ) . runVdsCommand ( org.mockito.ArgumentMatchers.eq ( cmdType ) , org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.common.vdscommands.VDSParametersBase.class ) ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledLegacyPolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; usb.setType ( "legacy" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE ) , UsbPolicy.ENABLED_LEGACY ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledLegacyPolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; usb.setType ( UsbType.LEGACY ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE ) , UsbPolicy.ENABLED_LEGACY ) ; }
Source:
public void shouldElectActiveDataDomain ( ) { final org.ovirt.engine.core.common.businessentities.StorageDomain domain = prepareStorageDomainForElection ( StorageDomainStatus.Active , "not he domain name" , false ) ; org.junit.Assert.assertEquals ( domain , cmd.electNewMaster ( ) ) ; }

Target:
public void shouldElectActiveDataDomain ( ) { final org.ovirt.engine.core.common.businessentities.StorageDomain domain = prepareStorageDomainForElection ( StorageDomainStatus.Active , "not he domain name" , false ) ; org.junit.jupiter.api.Assertions.assertEquals ( domain , cmd.electNewMaster ( ) ) ; }
Source:
public void init ( final org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel model ) { super . init ( model ) ; addUpdateHostsListener ( model ) ; addPowerManagementListener ( model ) ; addHostProviderListener ( model ) ; addRadioButtonsListeners ( model ) ; }

Target:
public void init ( final org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel model ) { super . init ( model ) ; addUpdateHostsListener ( model ) ; addPowerManagementListener ( model ) ; addHostProviderListener ( model ) ; addRadioButtonsListeners ( model ) ; addKernelCmdlineResetListener ( model ) ; }
Source:
public void validateDisksPassDiscardSucceeds ( ) { mockPassDiscardSupport ( ValidationResult.VALID ) ; org.ovirt.engine.core.common.businessentities.VM vm = new org.ovirt.engine.core.common.businessentities.VM ( ) ; vm.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertThat ( runVmValidator.validateDisksPassDiscard ( vm ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void validateDisksPassDiscardSucceeds ( ) { mockPassDiscardSupport ( ValidationResult.VALID ) ; org.ovirt.engine.core.common.businessentities.VM vm = new org.ovirt.engine.core.common.businessentities.VM ( ) ; vm.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.hamcrest.MatcherAssert.assertThat ( runVmValidator.validateDisksPassDiscard ( vm ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void setHashName ( java.lang.String value ) { sethashName ( value ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "HashName" ) ) ; }

Target:
public void setHashName ( java.lang.String value ) { hashName = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "HashName" ) ) ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { mVmListReturn = org.ovirt.engine.core.vdsbroker.vdsbroker.GetVmStatsVDSCommand.getBroker ( ) . getVmStats ( org.ovirt.engine.core.vdsbroker.vdsbroker.GetVmStatsVDSCommand.getParameters ( ) . getVmId ( ) . toString ( ) ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.GetVmStatsVDSCommand.ProceedProxyReturnValue ( ) ; setReturnValue ( createVmInternalData ( mVmListReturn.mInfoList [ 0 ] ) ) ; }

Target:
protected void ExecuteVdsBrokerCommand ( ) { mVmListReturn = org.ovirt.engine.core.vdsbroker.vdsbroker.GetVmStatsVDSCommand.getBroker ( ) . getVmStats ( org.ovirt.engine.core.vdsbroker.vdsbroker.GetVmStatsVDSCommand.getParameters ( ) . getVmId ( ) . toString ( ) ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.GetVmStatsVDSCommand.proceedProxyReturnValue ( ) ; setReturnValue ( createVmInternalData ( mVmListReturn.mInfoList [ 0 ] ) ) ; }
Source:
public static org.ovirt.engine.core.bll.quota.QuotaManager getInstance ( ) { return org.ovirt.engine.core.bll.quota.QuotaManager.INSTANCE ; }

Target:
private void init ( ) { int quotaCacheIntervalInMinutes = org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.QuotaCacheIntervalInMinutes ) ; schedulerUtil.scheduleAFixedDelayJob ( this , "updateQuotaCache" , new java.lang.Class [ ] { } , new java.lang.Object [ ] { } , 1 , quotaCacheIntervalInMinutes , java.util.concurrent.TimeUnit.MINUTES ) ; }
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 parametersWithSecureDeletionAreNotFixedOnBlockDomainWhenPostZeroIsFalse ( ) { org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandlerTest.ParametersWithPostDeleteAction parameters = postDeleteActionHandler.fixPostZeroField ( new org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandlerTest.ParametersWithPostDeleteAction ( false , false ) , false ) ; assertPostZeroValue ( parameters , false ) ; }
Source:
public void testDefaultPoolFlagIsNotSetValidUsage ( ) throws java.lang.Exception { macPool.setDefaultPool ( false ) ; org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.MacPoolValidator ( macPool ) . defaultPoolFlagIsNotSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testDefaultPoolFlagIsNotSetValidUsage ( ) throws java.lang.Exception { macPool.setDefaultPool ( false ) ; org.junit.Assert.assertThat ( macPoolValidator.defaultPoolFlagIsNotSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void testUpdate ( ) throws java.lang.Exception { setUpGetGraphicsExpectations ( 0 ) ; super . testUpdate ( ) ; }

Target:
public void testBadGuid ( ) throws java.lang.Exception { control.replay ( ) ; try { new org.ovirt.engine.api.restapi.resource.BackendTemplateResource ( "foo" ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }
Source:
public void testGetAllForClusterWithInvalidCluster ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > result = dao.getAllForCluster ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForClusterWithInvalidCluster ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > result = dao.getAllForCluster ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public void addLocator ( org.ovirt.api.metamodel.concepts.Locator newLocator ) { locators.add ( newLocator ) ; }

Target:
public void addLocator ( org.ovirt.api.metamodel.concepts.Locator newLocator ) { locators.add ( newLocator ) ; locators.sort ( java.util.Comparator.comparing ( Locator :: getName ) ) ; }
Source:
public void testGetClusterByClusterPolicyIdNegative ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > result = dao.getClustersByClusterPolicyId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertEquals ( 0 , result.size ( ) ) ; }

Target:
public void testGetClusterByClusterPolicyIdNegative ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > result = dao.getClustersByClusterPolicyId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( 0 , result.size ( ) ) ; }
Source:
protected org.ovirt.engine.core.bll.FenceExecutor createExecutorForProxyCheck ( ) { return new org.ovirt.engine.core.bll.FenceExecutor ( org.ovirt.engine.core.bll.VdsNotRespondingTreatmentCommand.getVds ( ) , org.ovirt.engine.core.bll.VdsNotRespondingTreatmentCommand.getParameters ( ) . getAction ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.action.LockProperties applyLockProperties ( org.ovirt.engine.core.common.action.LockProperties lockProperties ) { return lockProperties.withScope ( Scope.Execution ) ; }
Source:
public long getSnapshotMemorySizeInBytes ( org.ovirt.engine.core.common.businessentities.VM vm ) { long videoRam = ( ( long ) ( org.ovirt.engine.core.bll.utils.VideoDeviceSettings.totalVideoRAMSizeMb ( vm ) ) ) ; return ( ( ( ( vm.getVmMemSizeMb ( ) ) + 200 ) + videoRam ) * 1024 ) * 1024 ; }

Target:
public long getSnapshotMemorySizeInBytes ( org.ovirt.engine.core.common.businessentities.VM vm ) { long videoRam = ( ( long ) ( videoDeviceSettings.totalVideoRAMSizeMb ( vm ) ) ) ; return ( ( ( ( vm.getVmMemSizeMb ( ) ) + 200 ) + videoRam ) * 1024 ) * 1024 ; }
Source:
public void canDoActionSucceeds ( ) { cmd = createTestCommand ( stoppedVolumeId ) ; org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }

Target:
public void canDoActionFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.DeleteGlusterVolumeCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeActionParameters ( null , false ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }
Source:
public static void getIrsImageList ( org.ovirt.engine.ui.frontend.AsyncQuery < java.util.List < java.lang.String > > aQuery , org.ovirt.engine.core.compat.Guid storagePoolId , boolean forceRefresh ) { org.ovirt.engine.core.common.businessentities.storage.ImageFileType imageFileType = org.ovirt.engine.core.common.businessentities.storage.ImageFileType.ISO ; org.ovirt.engine.ui.uicommonweb.dataprovider.ImagesDataProvider.getIrsImageList ( aQuery , storagePoolId , forceRefresh , imageFileType ) ; }

Target:
public static void getISOImagesList ( org.ovirt.engine.ui.frontend.AsyncQuery < java.util.List < java.lang.String > > aQuery , org.ovirt.engine.core.compat.Guid storagePoolId , boolean forceRefresh ) { org.ovirt.engine.core.common.businessentities.storage.ImageFileType imageFileType = org.ovirt.engine.core.common.businessentities.storage.ImageFileType.ISO ; org.ovirt.engine.ui.uicommonweb.dataprovider.ImagesDataProvider.getIrsImageList ( aQuery , storagePoolId , forceRefresh , imageFileType ) ; }
Source:
protected boolean canPerformRollbackUsingCommand ( org.ovirt.engine.core.common.action.VdcActionType commandType , org.ovirt.engine.core.common.action.VdcActionParametersBase params ) { return ( org.ovirt.engine.core.bll.storage.disk.image.CopyImageGroupCommand.getDiskImageDao ( ) . get ( org.ovirt.engine.core.bll.storage.disk.image.CopyImageGroupCommand.getParameters ( ) . getDestinationImageId ( ) ) ) != null ; }

Target:
protected boolean canPerformRollbackUsingCommand ( org.ovirt.engine.core.common.action.VdcActionType commandType , org.ovirt.engine.core.common.action.VdcActionParametersBase params ) { return ( diskImageDao.get ( org.ovirt.engine.core.bll.storage.disk.image.CopyImageGroupCommand.getParameters ( ) . getDestinationImageId ( ) ) ) != null ; }
Source:
protected void AddInvalidIdErrorMessages ( org.ovirt.engine.core.dal.VdcBllMessages messageActionTypeParameter ) { AddErrorMessages ( messageActionTypeParameter , VdcBllMessages.ACTION_TYPE_FAILED_BOOKMARK_INVALID_ID ) ; }

Target:
protected void AddInvalidIdErrorMessages ( org.ovirt.engine.core.common.errors.VdcBllMessages messageActionTypeParameter ) { AddErrorMessages ( messageActionTypeParameter , VdcBllMessages.ACTION_TYPE_FAILED_BOOKMARK_INVALID_ID ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object ret ) { java.util.ArrayList < org.ovirt.engine.core.common.businessentities.IscsiBond > items = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( ret ) ) . getReturnValue ( ) ; setItems ( items ) ; }

Target:
protected void syncSearch ( ) { org.ovirt.engine.core.common.queries.IdQueryParameters params = new org.ovirt.engine.core.common.queries.IdQueryParameters ( getEntity ( ) . getId ( ) ) ; params.setRefresh ( getIsQueryFirstTime ( ) ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetIscsiBondsByStoragePoolId , params , new org.ovirt.engine.ui.uicommonweb.models.datacenters.SetItemsAsyncQuery ( ) ) ; }
Source:
public int getServerCount ( org.ovirt.engine.core.compat.Guid clusterId ) { return getVdsDao ( ) . getAllForCluster ( clusterId ) . size ( ) ; }

Target:
public int getServerCount ( org.ovirt.engine.core.compat.Guid clusterId ) { return vdsDao.getAllForCluster ( clusterId ) . size ( ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.QuotaVdsGroup > getQuotaVdsGroupByQuotaGuidWithGeneralDefault ( org.ovirt.engine.core.compat.Guid quotaId ) { return getQuotaVdsGroupByVdsGroupGuid ( null , quotaId , false ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.QuotaCluster > getQuotaClusterByQuotaGuidWithGeneralDefault ( org.ovirt.engine.core.compat.Guid quotaId ) { return getQuotaClusterByClusterGuid ( null , quotaId , false ) ; }
Source:
public void Search ( ) { if ( ( getEntity ( ) ) != null ) { setSearchString ( org.ovirt.engine.core.compat.StringFormat.format ( "hosts: network=%1$s" , getEntity ( ) . getname ( ) ) ) ; super . Search ( ) ; } }

Target:
public void setViewFilterType ( org.ovirt.engine.ui.uicommonweb.models.networks.NetworkHostFilter viewFilterType ) { this . viewFilterType = viewFilterType ; Search ( ) ; }
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:
public java.util.Map < java.lang.String , java.lang.Object > prepareImage ( java.lang.String sdID , java.lang.String spID , java.lang.String imageID , java.lang.String volumeID , boolean allowIllegal ) ;
Source:
private org.ovirt.engine.core.bll.ValidationResult validateMinimumVersionSupport ( ) { return org.ovirt.engine.core.common.FeatureSupported.momPolicyOnHost ( getVdsGroup ( ) . getCompatibilityVersion ( ) ) ? ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_MOM_UPDATE_VDS_VERSION ) ; }

Target:
private org.ovirt.engine.core.bll.ValidationResult validateMinimumVersionSupport ( ) { return org.ovirt.engine.core.common.FeatureSupported.momPolicyOnHost ( getCluster ( ) . getCompatibilityVersion ( ) ) ? ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_MOM_UPDATE_VDS_VERSION ) ; }
Source:
public static java.lang.Object getConfigValuePreConverted ( org.ovirt.engine.core.common.queries.ConfigurationValues configValue , java.lang.String version ) { org.ovirt.engine.core.compat.KeyValuePairCompat < org.ovirt.engine.core.common.queries.ConfigurationValues , java.lang.String > key = new org.ovirt.engine.core.compat.KeyValuePairCompat < org.ovirt.engine.core.common.queries.ConfigurationValues , java.lang.String > ( configValue , version ) ; return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.cachedConfigValuesPreConvert.get ( key ) ; }

Target:
public java.lang.Object getConfigValuePreConverted ( org.ovirt.engine.core.common.queries.ConfigurationValues configValue , java.lang.String version ) { org.ovirt.engine.core.compat.KeyValuePairCompat < org.ovirt.engine.core.common.queries.ConfigurationValues , java.lang.String > key = new org.ovirt.engine.core.compat.KeyValuePairCompat < org.ovirt.engine.core.common.queries.ConfigurationValues , java.lang.String > ( configValue , version ) ; return cachedConfigValuesPreConvert.get ( key ) ; }
Source:
protected void beforeTask ( ) { }

Target:
protected void beforeTask ( ) { org.ovirt.engine.core.bll.ImagesHandler.updateImageStatus ( getEnclosingCommand ( ) . getParameters ( ) . getDestinationImageId ( ) , ImageStatus.LOCKED ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { setIsUsbEnabled ( ( ( java.lang.Boolean ) ( returnValue ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { spice.getOptions ( ) . setUsbAutoShare ( ( ( java.lang.Boolean ) ( returnValue ) ) ) ; }
Source:
public static void attachNetworks ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkInterfaceModel nic , java.util.List < org.ovirt.engine.ui.uicommonweb.models.hosts.network.LogicalNetworkModel > networks , java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > allNics ) { for ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.LogicalNetworkModel networkModel : networks ) { org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkOperation.ATTACH_NETWORK.getCommand ( networkModel , nic , allNics ) . Execute ( ) ; } }

Target:
public static void attachNetworks ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkInterfaceModel nic , java.util.List < org.ovirt.engine.ui.uicommonweb.models.hosts.network.LogicalNetworkModel > networks , java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > allNics ) { for ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.LogicalNetworkModel networkModel : networks ) { org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkOperation.ATTACH_NETWORK.getCommand ( networkModel , nic , allNics ) . execute ( ) ; } }
Source:
public void succededToRunVm ( org.ovirt.engine.core.compat.Guid vmId ) { mUnrespondedAttempts.set ( 0 ) ; sshSoftFencingExecuted.set ( false ) ; org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . succededToRunVm ( vmId , getVdsId ( ) ) ; }

Target:
public void succeededToRunVm ( org.ovirt.engine.core.compat.Guid vmId ) { mUnrespondedAttempts.set ( 0 ) ; sshSoftFencingExecuted.set ( false ) ; org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . succededToRunVm ( vmId , getVdsId ( ) ) ; }
Source:
public boolean isClientWindownsExplorer ( ) { return ( clientOsType ( ) . equalsIgnoreCase ( "Windows" ) ) && ( clientBrowserType ( ) . equalsIgnoreCase ( "Explorer" ) ) ; }

Target:
public boolean isClientWindows ( ) { return clientOsType ( ) . equalsIgnoreCase ( "Windows" ) ; }
Source:
protected com.google.gwt.user.cellview.client.CellTable.Resources getTableHeaderlessResources ( ) { return com.google.gwt.core.client.GWT.create ( org.ovirt.engine.ui.common.SubTableHeaderlessResources.class ) ; }

Target:
public com.google.gwt.event.shared.HandlerRegistration addWindowResizeHandler ( com.google.gwt.event.logical.shared.ResizeHandler handler ) { return com.google.gwt.user.client.Window.addResizeHandler ( handler ) ; }
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 ) { updateProvisionedHosts ( ) ; }
Source:
public void setTargets ( java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.storage.SanTargetModel > value ) { if ( ( targets ) != value ) { targets = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Targets" ) ) ; getTargetsList ( ) . setItems ( targets ) ; } }

Target:
public void setTargets ( java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.storage.SanTargetModel > value ) { if ( ( targets ) != value ) { targets = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Targets" ) ) ; getTargetsList ( ) . setItems ( targets ) ; } }
Source:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepStatus ( ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepSessionStart ( java.lang.String volumeName , java.lang.String remoteHost , java.lang.String remoteVolumeName , java.lang.Boolean force ) ;
Source:
public org.ovirt.engine.core.common.eventqueue.EventResult call ( ) { org.ovirt.engine.core.vdsbroker.irsbroker.IrsBrokerCommand.clearVdsFromCache ( vds.getStoragePoolId ( ) , vds.getId ( ) , vds.getvds_name ( ) ) ; return new org.ovirt.engine.core.common.eventqueue.EventResult ( true , org.ovirt.engine.core.common.eventqueue.EventType.VDSCLEARCACHE ) ; }

Target:
public org.ovirt.engine.core.common.eventqueue.EventResult call ( ) { org.ovirt.engine.core.vdsbroker.irsbroker.IrsBrokerCommand.clearVdsFromCache ( vds.getStoragePoolId ( ) , vds.getId ( ) , vds.getVdsName ( ) ) ; return new org.ovirt.engine.core.common.eventqueue.EventResult ( true , org.ovirt.engine.core.common.eventqueue.EventType.VDSCLEARCACHE ) ; }