auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testGetAllForUserGroupWithInvalidUserGroup ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.tags > result = dao.getAllForUserGroups ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) . toString ( ) ) ; assertNotNull ( result ) ; assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForUserGroup ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.tags > result = dao.getAllForUserGroups ( "b399944a-81ab-4ec5-8266-e19ba7c3c9d1" ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.ad_groups lookupGroupById ( org.ovirt.engine.core.compat.Guid id ) { return getEntity ( org.ovirt.engine.core.common.businessentities.ad_groups.class , VdcQueryType.GetAdGroupById , new org.ovirt.engine.core.common.queries.GetAdGroupByIdParameters ( id ) , id.toString ( ) , true ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.LdapGroup lookupGroupById ( org.ovirt.engine.core.compat.Guid id ) { return getEntity ( org.ovirt.engine.core.common.businessentities.LdapGroup.class , VdcQueryType.GetAdGroupById , new org.ovirt.engine.core.common.queries.GetAdGroupByIdParameters ( id ) , id.toString ( ) , true ) ; }
Source:
public void setName ( java.lang.String name ) { this . name = name ; }

Target:
public void setFilterCommand ( java.lang.String filterCommand ) { this . filterCommand = filterCommand ; }
Source:
public int compareTo ( ovirt_engine_dwh.configurationsync_3_2.ConfigurationSync.delete_dc_storage_connectionStruct other ) { int returnValue = - 1 ; return returnValue ; }

Target:
public void copyDataTo ( ovirt_engine_dwh.configurationsync_3_2.ConfigurationSync.delete_dc_storage_connectionStruct other ) { other.storage_domain_id = this . storage_domain_id ; other.datacenter_id = this . datacenter_id ; other.attach_date = this . attach_date ; other.detach_date = this . detach_date ; }
Source:
public void testValidateNetworkExclusiveOnNicAtMostOneNonVmNetwork ( ) throws java.lang.Exception { checkVmNetworkIsSoleAssignedInterface ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , vlanNetwork , nonVmNetwork1 ) ; }

Target:
public void testValidateNetworkExclusiveOnNicAtMostOneNonVmNetwork ( ) throws java.lang.Exception { checkVmNetworkIsSoleAssignedInterface ( true , java.util.Arrays.asList ( NetworkType.VLAN , NetworkType.NON_VM ) , vlanNetwork , nonVmNetwork1 ) ; }
Source:
public void onFailed ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { getCommand ( cmdId ) . onFailed ( ) ; org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.removeAllCommandsInHierarchy ( cmdId ) ; }

Target:
public void onFailed ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { getCommand ( cmdId ) . onFailed ( ) ; getCommand ( cmdId ) . endAction ( ) ; commandCoordinatorUtil.removeAllCommandsInHierarchy ( cmdId ) ; }
Source:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.v3.types.V3VM vm ) { return adaptAdd ( delegate :: add , vm ) ; }

Target:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.v3.types.V3VM vm ) { return adaptAdd ( getDelegate ( ) :: add , vm ) ; }
Source:
public void getManagementNetworkName ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { getConfigFromCache ( new org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ( org.ovirt.engine.core.common.queries.ConfigurationValues.ManagementNetwork , getDefaultConfigurationVersion ( ) ) , aQuery ) ; }

Target:
public void getManagementNetworkName ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { getConfigFromCache ( new org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ( org.ovirt.engine.core.common.queries.ConfigurationValues.DefaultManagementNetwork , getDefaultConfigurationVersion ( ) ) , aQuery ) ; }
Source:
protected java.lang.Double getRate ( org.ovirt.engine.core.common.businessentities.VmNetworkInterface object ) { return object.getStatistics ( ) . getReceiveRate ( ) ; }

Target:
protected java.lang.Double getRate ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface object ) { return object.getStatistics ( ) . getReceiveRate ( ) ; }
Source:
protected void doChangeDefaultHost ( java.util.List < org.ovirt.engine.core.compat.Guid > hostGuid ) { }

Target:
protected void doChangeDefaultHost ( java.util.List < org.ovirt.engine.core.compat.Guid > hostGuids ) { super . doChangeDefaultHost ( hostGuids ) ; }
Source:
public void testValidModifiedBondsFailsWhenInsufficientNumberOfSlaves ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Bond bond = createBond ( ) ; doTestValidModifiedBonds ( bond , ValidationResult.VALID , ValidationResult.VALID , new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.NETWORK_BONDS_INVALID_SLAVE_COUNT , org.ovirt.engine.core.utils.ReplacementUtils.createSetVariableString ( HostSetupNetworksValidator.VAR_NETWORK_BONDS_INVALID_SLAVE_COUNT_LIST , bond.getName ( ) ) ) , ValidationResult.VALID ) ; }

Target:
public void testValidModifiedBondsFailsWhenReferencingExistingNonBondInterface ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Bond bond = createBond ( ) ; doTestValidModifiedBonds ( bond , ValidationResult.VALID , new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.NETWORK_INTERFACE_IS_NOT_BOND ) , new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.NETWORK_INTERFACE_IS_NOT_BOND ) , ValidationResult.VALID ) ; }
Source:
public org.ovirt.engine.api.resource.aaa.DomainUsersResource getDomainUsersResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.aaa.BackendDomainUsersResource ( id , this ) ) ; }

Target:
public org.ovirt.engine.api.resource.aaa.DomainUsersResource getUsersResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.aaa.BackendDomainUsersResource ( id , this ) ) ; }
Source:
private org.ovirt.engine.core.vdsbroker.vdsbroker.VmInfoBuilderBase createBuilder ( ) { if ( org.ovirt.engine.core.common.utils.VmDeviceCommonUtils.isOldClusterVersion ( vm.getvds_group_compatibility_version ( ) ) ) { return new org.ovirt.engine.core.vdsbroker.vdsbroker.VmOldInfoBuilder ( vm , createInfo ) ; } else { return new org.ovirt.engine.core.vdsbroker.vdsbroker.VmInfoBuilder ( vm , createInfo ) ; } }

Target:
private org.ovirt.engine.core.vdsbroker.vdsbroker.VmInfoBuilderBase createBuilder ( ) { if ( org.ovirt.engine.core.common.utils.VmDeviceCommonUtils.isOldClusterVersion ( vm.getVdsGroupCompatibilityVersion ( ) ) ) { return new org.ovirt.engine.core.vdsbroker.vdsbroker.VmOldInfoBuilder ( vm , createInfo ) ; } else { return new org.ovirt.engine.core.vdsbroker.vdsbroker.VmInfoBuilder ( vm , createInfo ) ; } }
Source:
public static org.ovirt.engine.core.common.businessentities.network.Network FindNetworkByName ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.Network > items , java.lang.String name ) { for ( org.ovirt.engine.core.common.businessentities.network.Network n : items ) { if ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( n.getName ( ) , name ) ) { return n ; } } return null ; }

Target:
public static org.ovirt.engine.core.common.businessentities.network.Network findNetworkByName ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.Network > items , java.lang.String name ) { for ( org.ovirt.engine.core.common.businessentities.network.Network n : items ) { if ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( n.getName ( ) , name ) ) { return n ; } } return null ; }
Source:
public void updateCallBackNotified ( org.ovirt.engine.core.compat.Guid commandId ) { org.ovirt.engine.core.common.businessentities.CommandEntity cmdEntity = get ( commandId ) ; if ( cmdEntity != null ) { cmdEntity.setCallBackNotified ( true ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getCommandEntityDao ( ) . updateNotified ( commandId ) ; } }

Target:
public java.lang.Void runInTransaction ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getCommandEntityDao ( ) . updateNotified ( commandId ) ; return null ; }
Source:
public void vmTemplateIdRefDefault ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; final org.ovirt.engine.core.compat.Guid g = b.getVmTemplateIdRef ( ) ; org.junit.Assert.assertNull ( g ) ; }

Target:
public void vmIdRefNullVmId ( ) { b.setVmId ( null ) ; final org.ovirt.engine.core.compat.Guid g = b.getVmIdRef ( ) ; org.junit.Assert.assertNull ( g ) ; }
Source:
public java.lang.String getGlusterHookContent ( org.ovirt.engine.core.compat.Guid hookId ) { return getCallsHandler ( ) . executeRead ( "GetGlusterHookContentById" , org.ovirt.engine.core.dao.gluster.GlusterHooksDaoImpl.GlusterHookContentRowMapper , createIdParameterMapper ( hookId ) ) ; }

Target:
public java.lang.String getGlusterHookContent ( org.ovirt.engine.core.compat.Guid hookId ) { return getCallsHandler ( ) . executeRead ( "GetGlusterHookContentById" , org.springframework.jdbc.core.SingleColumnRowMapper.newInstance ( java.lang.String.class ) , createIdParameterMapper ( hookId ) ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase runInternalAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { return runActionImpl ( actionType , parameters , true , null ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase runInternalAction ( org.ovirt.engine.core.common.action.ActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { return runActionImpl ( actionType , parameters , true , null ) ; }
Source:
protected void preSearchCalled ( org.ovirt.engine.core.common.businessentities.VmTemplate template ) { setSearchString ( org.ovirt.engine.core.compat.StringFormat.format ( "Events:event_template=%1$s" , template.getname ( ) ) ) ; }

Target:
protected void preSearchCalled ( org.ovirt.engine.core.common.businessentities.VmTemplate template ) { setSearchString ( ( "Events:event_template=" + ( template.getname ( ) ) ) ) ; }
Source:
protected void executeCommand ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.storage.LUNs > deviceList = org.ovirt.engine.core.bll.storage.pool.SyncAllUsedLunsCommand.getDeviceList ( ) ; syncStorageDomainsLuns ( deviceList ) ; syncAttachedDirectLuns ( deviceList ) ; org.ovirt.engine.core.bll.storage.pool.SyncAllUsedLunsCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.storage.LUNs > deviceList = org.ovirt.engine.core.bll.storage.pool.SyncAllUsedLunsCommand.getDeviceList ( ) ; syncStorageDomainsLuns ( deviceList ) ; syncDirectLunsAttachedToVmsInPool ( deviceList ) ; org.ovirt.engine.core.bll.storage.pool.SyncAllUsedLunsCommand.setSucceeded ( true ) ; }
Source:
public void testQueryWithoutHostId ( ) { getQuery ( ) . setInternalExecution ( true ) ; getQuery ( ) . executeCommand ( ) ; org.ovirt.engine.core.bll.CommandAssertUtils.checkSucceeded ( getQuery ( ) , true ) ; org.ovirt.engine.core.bll.GetoVirtISOsTest.checkReturnValue ( getQuery ( ) ) ; }

Target:
public void testQueryWithoutHostId ( ) { getQuery ( ) . setInternalExecution ( true ) ; getQuery ( ) . executeCommand ( ) ; org.ovirt.engine.core.bll.CommandAssertUtils.checkSucceeded ( getQuery ( ) , true ) ; org.ovirt.engine.core.bll.GetoVirtISOsTest.checkReturnValueEmpty ( getQuery ( ) ) ; }
Source:
protected org.ovirt.engine.core.utils.linq.Predicate < org.ovirt.engine.core.common.businessentities.StorageDomain > getPredicate ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > disksList ) { return new org.ovirt.engine.core.utils.linq.Predicate < org.ovirt.engine.core.common.businessentities.StorageDomain > ( ) { @ java.lang.Override public boolean eval ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { return storageDomain.getStorageDomainType ( ) . isDataDomain ( ) ; } } ; }

Target:
protected org.ovirt.engine.core.utils.linq.Predicate < org.ovirt.engine.core.common.businessentities.StorageDomain > getPredicate ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > memoryDisks ) { return new org.ovirt.engine.core.utils.linq.Predicate < org.ovirt.engine.core.common.businessentities.StorageDomain > ( ) { @ java.lang.Override public boolean eval ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { return storageDomain.getStorageDomainType ( ) . isDataDomain ( ) ; } } ; }
Source:
private org.ovirt.engine.core.bll.ValidationResult validateStatus ( org.ovirt.engine.core.common.businessentities.VDSStatus hostStatus ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.ACTION_TYPE_FAILED_VDS_STATUS_ILLEGAL ) . unless ( ( hostStatus == ( host.getStatus ( ) ) ) ) ; }

Target:
private org.ovirt.engine.core.bll.ValidationResult validateStatus ( org.ovirt.engine.core.common.businessentities.VDSStatus hostStatus ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.ACTION_TYPE_FAILED_VDS_STATUS_ILLEGAL , org.ovirt.engine.core.utils.ReplacementUtils.createSetVariableString ( "hostStatus" , hostStatus.name ( ) ) ) . unless ( ( hostStatus == ( host.getStatus ( ) ) ) ) ; }
Source:
public void testSubResourceLocator ( ) throws java.lang.Exception { java.lang.String id = java.util.UUID.nameUUIDFromBytes ( org.ovirt.engine.api.restapi.resource.BackendStatisticsResourceTest.STATISTICS [ 1 ] . getBytes ( ) ) . toString ( ) ; assertTrue ( ( ( collection.getStatisticResource ( id ) ) instanceof org.ovirt.engine.api.resource.StatisticResource ) ) ; }

Target:
public void testSubResourceLocator ( ) throws java.lang.Exception { java.lang.String id = java.util.UUID.nameUUIDFromBytes ( org.ovirt.engine.api.restapi.resource.BackendStatisticsResourceTest.STATISTICS [ 1 ] . getBytes ( ) ) . toString ( ) ; org.junit.Assert.assertTrue ( ( ( collection.getStatisticResource ( id ) ) instanceof org.ovirt.engine.api.resource.StatisticResource ) ) ; }
Source:
public void ExecuteCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { sourceListModel.setConfirmWindow ( null ) ; }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { sourceListModel.setConfirmWindow ( null ) ; }
Source:
private void initTemplateDiskImage ( ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; diskImage.setVmEntityType ( VmEntityType.TEMPLATE ) ; org.mockito.Mockito.when ( diskImageDao.get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( diskImage ) ; }

Target:
private void initTemplateDiskImage ( ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; diskImage.setVmEntityType ( VmEntityType.TEMPLATE ) ; org.mockito.Mockito.when ( diskImageDao.get ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( diskImage ) ; }
Source:
protected void doEdit ( org.ovirt.engine.ui.uicommonweb.models.vms.VmGeneralModel model ) { driver.edit ( model ) ; monitorCount.setText ( java.lang.Integer.toString ( getModel ( ) . getMonitorCount ( ) ) ) ; defaultHost.setTitle ( getModel ( ) . getDefaultHost ( ) ) ; }

Target:
protected void doEdit ( org.ovirt.engine.ui.uicommonweb.models.vms.VmGeneralModel model ) { driver.edit ( model ) ; monitorCount.setValue ( java.lang.Integer.toString ( getModel ( ) . getMonitorCount ( ) ) ) ; defaultHost.setTitle ( getModel ( ) . getDefaultHost ( ) ) ; }
Source:
public void testGetBynameAndVersion ( ) { org.ovirt.engine.core.common.businessentities.VdcOption result = dao.getByNameAndVersion ( existingOption.getOptionName ( ) , existingOption.getVersion ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingOption , result ) ; }

Target:
public void testGetBynameAndVersion ( ) { org.ovirt.engine.core.common.businessentities.VdcOption result = dao.getByNameAndVersion ( existingOption.getOptionName ( ) , existingOption.getVersion ( ) ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertEquals ( existingOption , result ) ; }
Source:
public org.ovirt.engine.api.resource.AssignedPermissionsResource getPermissionsResource ( ) { return org.ovirt.engine.api.restapi.resource.BackendClusterResource.inject ( new org.ovirt.engine.api.restapi.resource.BackendAssignedPermissionsResource ( guid , org.ovirt.engine.core.common.queries.VdcQueryType.GetPermissionsForObject , new org.ovirt.engine.core.common.queries.GetPermissionsForObjectParameters ( guid ) , org.ovirt.engine.core.common.businessentities.Cluster.class , org.ovirt.engine.core.common.VdcObjectType.Cluster ) ) ; }

Target:
public org.ovirt.engine.api.resource.AssignedPermissionsResource getPermissionsResource ( ) { return org.ovirt.engine.api.restapi.resource.BackendClusterResource.inject ( new org.ovirt.engine.api.restapi.resource.BackendAssignedPermissionsResource ( guid , org.ovirt.engine.core.common.queries.QueryType.GetPermissionsForObject , new org.ovirt.engine.core.common.queries.GetPermissionsForObjectParameters ( guid ) , org.ovirt.engine.core.common.businessentities.Cluster.class , org.ovirt.engine.core.common.VdcObjectType.Cluster ) ) ; }
Source:
protected boolean canDoAction ( ) { boolean retValue = true ; if ( org.apache.commons.lang.StringUtils.isBlank ( org.ovirt.engine.core.bll.AddExternalJobCommand.getParameters ( ) . getDescription ( ) ) ) { addCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_EMPTY_DESCRIPTION ) ; retValue = false ; } return retValue ; }

Target:
protected void executeCommand ( ) { createJob ( VdcActionType.AddExternalJob , true ) ; }
Source:
public void testGet ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpEntityQueryExpectations ( 1 ) ; control.replay ( ) ; org.ovirt.engine.api.model.CdRom cdrom = resource.get ( ) ; org.ovirt.engine.api.restapi.resource.AbstractBackendCdRomsResourceTest.verifyModelSpecific ( cdrom , 1 ) ; verifyLinks ( cdrom ) ; }

Target:
public void testGetCurrent ( ) throws java.lang.Exception { setUriInfo ( setUpUriMatrixExpectations ( null ) ) ; setUpEntityQueryExpectations ( 1 ) ; control.replay ( ) ; org.ovirt.engine.api.model.CdRom cdrom = resource.get ( ) ; verifyModelWithCurrentCd ( cdrom ) ; }
Source:
public void preventRollback ( ) { getParameters ( ) . setExecutionIndex ( 0 ) ; }

Target:
public void preventRollback ( ) { org.ovirt.engine.core.bll.storage.repoimage.ImportRepoImageCommand.getParameters ( ) . setExecutionIndex ( 0 ) ; }
Source:
public org.ovirt.engine.api.model.InstanceTypes list ( ) { if ( isFiltered ( ) ) { return mapCollection ( getBackendCollection ( VdcQueryType.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.VdcQueryParametersBase ( ) ) ) ; } else { return mapCollection ( getBackendCollection ( SearchType.InstanceType ) ) ; } }
Source:
public void checkRemoveConnectionEmptyId ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections newNFSConnection = createNFSConnection ( "multipass.my.domain.tlv.company.com:/export/allstorage/data2" , StorageType.NFS , NfsVersion.V4 , 300 , 0 ) ; newNFSConnection.setid ( "" ) ; parameters.setStorageServerConnection ( newNFSConnection ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_CONNECTION_ID_EMPTY ) ; }

Target:
public void checkRemoveConnectionEmptyId ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections newNFSConnection = createNFSConnection ( "multipass.my.domain.tlv.company.com:/export/allstorage/data2" , StorageType.NFS , NfsVersion.V4 , 300 , 0 ) ; newNFSConnection.setid ( "" ) ; parameters.setStorageServerConnection ( newNFSConnection ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.ACTION_TYPE_FAILED_STORAGE_CONNECTION_ID_EMPTY ) ; }
Source:
protected void onReveal ( ) { super . onReveal ( ) ; setInSlot ( org.ovirt.engine.ui.webadmin.section.main.presenter.MainSectionPresenter.TYPE_SetHeader , header ) ; }

Target:
protected void onReveal ( ) { super . onReveal ( ) ; setInSlot ( org.ovirt.engine.ui.webadmin.section.main.presenter.MainSectionPresenter.TYPE_SetHeader , header ) ; pluginManager.enablePluginInvocation ( ) ; }
Source:
private void assertLunShouldBeUpdatedDueToFieldChange ( ) { setLunsSameLunAndPvIds ( ) ; java.util.List < org.ovirt.engine.core.common.businessentities.storage.LUNs > existingLunsToUpdateInDb = getLunsToUpdateInDb ( ) . get ( command.updateExistingLuns ) ; assertLunIdInList ( existingLunsToUpdateInDb , lunFromVg.getLUNId ( ) ) ; }

Target:
private void assertLunShouldBeUpdatedDueToFieldChange ( ) { setLunsSameLunAndPvIds ( ) ; java.util.List < org.ovirt.engine.core.common.businessentities.storage.LUNs > existingLunsToUpdateInDb = getLunsToUpdateInDb ( ) . get ( command.updateLunsHandler ) ; assertLunIdInList ( existingLunsToUpdateInDb , lunFromVg.getLUNId ( ) ) ; }
Source:
private void removeAllNetworksByVfsConfigId ( org.ovirt.engine.core.compat.Guid vfsConfigId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = createVfsConfigIdParameter ( vfsConfigId ) ; getCallsHandler ( ) . executeModification ( "DeleteAllvfsConfigNetworks" , parameterSource ) ; }

Target:
private void removeAllNetworksByVfsConfigId ( org.ovirt.engine.core.compat.Guid vfsConfigId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = createVfsConfigIdParameter ( vfsConfigId ) ; getCallsHandler ( ) . executeModification ( "DeleteAllVfsConfigNetworks" , parameterSource ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getDiskProfileId ( ) { if ( ( ( diskProfileIds ) == null ) || ( diskProfileIds.isEmpty ( ) ) ) { return null ; } return diskProfileIds.get ( 0 ) ; }

Target:
public void setDiskProfileId ( org.ovirt.engine.core.compat.Guid diskProfileId ) { diskProfileIds = new java.util.ArrayList < > ( ) ; diskProfileIds.add ( diskProfileId ) ; }
Source:
public void run ( ) { executeValidatedCommands ( command ) ; }

Target:
public void run ( ) { executeValidatedCommand ( command ) ; }
Source:
public void testGetAllForStoragePoolAndStatus ( ) { org.junit.Assert.assertNotNull ( existingVds.getStatus ( ) ) ; java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result = dao.getAllForStoragePoolAndStatus ( existingVds.getStoragePoolId ( ) , existingVds.getStatus ( ) ) ; assertCorrectGetAllResult ( result ) ; }

Target:
private void prepareHostWithDifferentStatus ( ) { dbFacade.getVdsDynamicDao ( ) . updateStatus ( existingVds.getId ( ) , VDSStatus.Maintenance ) ; existingVds.setStatus ( VDSStatus.Maintenance ) ; org.junit.Assert.assertNotEquals ( existingVds.getStatus ( ) , existingVds2.getStatus ( ) ) ; }
Source:
public void clearAllEvents ( ) { getCallsHandler ( ) . executeModification ( "ClearAllAuditLogs" , getCustomMapSqlParameterSource ( ) ) ; }

Target:
public void clearAllEvents ( ) { getCallsHandler ( ) . executeModification ( "ClearAllAuditLogEvents" , getCustomMapSqlParameterSource ( ) . addValue ( "severity" , AuditLogSeverity.ALERT ) ) ; }
Source:
public void testBackwardCompatibility ( ) { org.junit.Assert.assertEquals ( 20 , OsRepositoryImpl.INSTANCE.getOsIdByUniqueName ( "Windows8" ) ) ; org.junit.Assert.assertEquals ( 20 , OsRepositoryImpl.INSTANCE.getOsIdByUniqueName ( "windows_8" ) ) ; }

Target:
public void testBackwardCompatibility ( ) { org.junit.jupiter.api.Assertions.assertEquals ( 20 , OsRepositoryImpl.INSTANCE.getOsIdByUniqueName ( "Windows8" ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( 20 , OsRepositoryImpl.INSTANCE.getOsIdByUniqueName ( "windows_8" ) ) ; }
Source:
public boolean isSetAllowDuplicates ( ) { return true ; }

Target:
public boolean isSetAllowDuplicates ( ) { return ( this . allowDuplicates ) != null ; }
Source:
public void testGetWithInvalidId ( ) { org.ovirt.engine.core.common.businessentities.VdsStatic result = dao.get ( org.ovirt.engine.core.compat.NGuid.NewGuid ( ) ) ; assertNull ( result ) ; }

Target:
public void testGetWithInvalidId ( ) { org.ovirt.engine.core.common.businessentities.VdsStatic result = dao.get ( org.ovirt.engine.core.compat.NGuid.NewGuid ( ) ) ; org.junit.Assert.assertNull ( result ) ; }
Source:
public void addActionButton ( org.ovirt.engine.ui.common.widget.action.ActionButton actionButton ) { kebabMenu.add ( actionButton ) ; }

Target:
public void addMenuItem ( org.ovirt.engine.ui.common.widget.action.ActionButton actionButton ) { kebabMenu.add ( actionButton ) ; }
Source:
public void rollback ( ) { super . rollback ( ) ; org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolPerDcSingleton.getInstance ( ) . createPool ( getOldMacPool ( ) ) ; }

Target:
public void rollback ( ) { super . rollback ( ) ; poolPerDc.createPool ( getOldMacPool ( ) ) ; }
Source:
protected void preSearchCalled ( org.ovirt.engine.core.common.businessentities.VM vm ) { setSearchString ( ( "events: vm.name=" + ( vm.getvm_name ( ) ) ) ) ; }

Target:
protected void preSearchCalled ( org.ovirt.engine.core.common.businessentities.VM vm ) { setSearchString ( ( "events: vm.name=" + ( vm.getVmName ( ) ) ) ) ; }
Source:
public void getUserProfile ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetUserProfile , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , aQuery ) ; }

Target:
public void getUserProfile ( org.ovirt.engine.ui.frontend.AsyncQuery < org.ovirt.engine.core.common.queries.VdcQueryReturnValue > aQuery ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetUserProfile , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) . withoutRefresh ( ) , aQuery ) ; }
Source:
public void update ( org.ovirt.engine.core.common.businessentities.AuditLog event ) { getCallsHandler ( ) . executeModification ( "UpdateAuditLog" , getSqlMapper ( event ) ) ; }

Target:
public void save ( org.ovirt.engine.core.common.businessentities.AuditLog event ) { if ( event.isExternal ( ) ) { getCallsHandler ( ) . executeModification ( "InsertExternalAuditLog" , getExternalEventSqlMapper ( event ) ) ; } else { getCallsHandler ( ) . executeModification ( "InsertAuditLog" , getSqlMapper ( event ) ) ; } }
Source:
public java.util.List < ? > findAll ( org.ovirt.engine.extensions.aaa.builtin.kerberosldap.LdapQueryData ldapQueryData ) { java.util.List < ? > returnValue = find ( ldapQueryData , 0 ) ; if ( returnValue == null ) { returnValue = java.util.Collections.EMPTY_LIST ; } return returnValue ; }

Target:
public java.util.List < ? > findAll ( org.ovirt.engine.extensions.aaa.builtin.kerberosldap.LdapQueryData ldapQueryData ) { java.util.List < ? > returnValue = find ( ldapQueryData , 0 ) ; if ( returnValue == null ) { returnValue = java.util.Collections.emptyList ( ) ; } return returnValue ; }
Source:
public abstract void onVmAndPoolLoad ( ) ;

Target:
protected abstract boolean fetchLargeIcons ( ) ;
Source:
public void lowerVersion ( ) { storagePoolWithLowerVersion ( ) ; canDoActionFailed ( VdcBllMessages.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION.toString ( ) ) ; }

Target:
public void lowerVersionNoHostsWithNetwork ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addNetworkToPool ( ) ; canDoActionFailed ( VdcBllMessages.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION.toString ( ) ) ; }
Source:
private void writeEnumType ( org.ovirt.api.metamodel.concepts.EnumType type ) { writeStartElement ( "enum" ) ; writeCommon ( type ) ; type.values ( ) . forEach ( this :: writeEnumValue ) ; writeEndElement ( ) ; }

Target:
private void writeEnumType ( org.ovirt.api.metamodel.concepts.EnumType type ) { writer.writeStartElement ( "enum" ) ; writeCommon ( type ) ; type.values ( ) . forEach ( this :: writeEnumValue ) ; writer.writeEndElement ( ) ; }
Source:
public void postDataCenterWithClusterSelectedItemChanged ( ) { updateDefaultHost ( ) ; updateNumOfSockets ( ) ; updateQuotaByCluster ( template.getQuotaId ( ) , template.getQuotaName ( ) ) ; updateMemoryBalloon ( ) ; updateCpuSharesAvailability ( ) ; }

Target:
public void postDataCenterWithClusterSelectedItemChanged ( ) { updateDefaultHost ( ) ; updateNumOfSockets ( ) ; updateQuotaByCluster ( template.getQuotaId ( ) , template.getQuotaName ( ) ) ; updateMemoryBalloon ( ) ; updateCpuSharesAvailability ( ) ; updateVirtioScsiAvailability ( ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.IpConfiguration populateIpConfiguration ( org.ovirt.engine.core.common.businessentities.network.IpConfiguration ipConfiguration , org.ovirt.engine.core.common.businessentities.network.Ipv4BootProtocol ipv4BootProtocol , org.ovirt.engine.core.common.businessentities.network.Ipv4BootProtocol ipv6BootProtocol ) { ipConfiguration.setIPv4Addresses ( java.util.Collections.singletonList ( createIpv4Address ( ipv4BootProtocol ) ) ) ; ipConfiguration.setIpV6Addresses ( java.util.Collections.singletonList ( createIpv6Address ( ipv6BootProtocol ) ) ) ; return ipConfiguration ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.IpConfiguration populateIpConfiguration ( org.ovirt.engine.core.common.businessentities.network.IpConfiguration ipConfiguration , org.ovirt.engine.core.common.businessentities.network.Ipv4BootProtocol ipv4BootProtocol , org.ovirt.engine.core.common.businessentities.network.Ipv6BootProtocol ipv6BootProtocol ) { ipConfiguration.setIPv4Addresses ( java.util.Collections.singletonList ( createIpv4Address ( ipv4BootProtocol ) ) ) ; ipConfiguration.setIpV6Addresses ( java.util.Collections.singletonList ( createIpv6Address ( ipv6BootProtocol ) ) ) ; return ipConfiguration ; }
Source:
public void update ( int index , org.ovirt.engine.ui.uicommonweb.models.vms.ImportEntityData < E > object , java.lang.String value ) { object.selectClusterByName ( value ) ; refreshEntityTable ( ) ; }

Target:
public void update ( int index , D object , java.lang.String value ) { object.selectClusterByName ( value ) ; refreshEntityTable ( ) ; }
Source:
private void setUpGetEntityExpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.GetVmByVmId , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , new org.ovirt.engine.api.restapi.resource.VM ( ) ) ; }

Target:
private void setUpGetEntityExpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( QueryType.GetVmByVmId , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , new org.ovirt.engine.api.restapi.resource.VM ( ) ) ; }
Source:
public void addToHistory_nullBefore ( ) { org.junit.Assert.assertEquals ( java.util.Arrays.asList ( 12 ) , statistics.addToHistory ( null , 12 , 100 ) ) ; }

Target:
public void addToHistoryNullBefore ( ) { org.junit.Assert.assertEquals ( java.util.Arrays.asList ( 12 ) , statistics.addToHistory ( null , 12 , 100 ) ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid getDestinationStorageDomainId ( ) { return ( mNewCreatedDiskImage.getstorage_ids ( ) ) != null ? mNewCreatedDiskImage.getstorage_ids ( ) . get ( 0 ) . getValue ( ) : org.ovirt.engine.core.compat.Guid.Empty ; }

Target:
protected org.ovirt.engine.core.compat.Guid getDestinationStorageDomainId ( ) { return ( mNewCreatedDiskImage.getStorageIds ( ) ) != null ? mNewCreatedDiskImage.getStorageIds ( ) . get ( 0 ) . getValue ( ) : org.ovirt.engine.core.compat.Guid.Empty ; }
Source:
private void setNonOperational ( org.ovirt.engine.core.common.businessentities.VDS host , org.ovirt.engine.core.common.businessentities.NonOperationalReason reason , java.util.Map < java.lang.String , java.lang.String > customLogValues ) { org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . getEventListener ( ) . vdsNonOperational ( host.getId ( ) , reason , true , Guid.Empty , customLogValues ) ; }

Target:
private void setNonOperational ( org.ovirt.engine.core.common.businessentities.VDS host , org.ovirt.engine.core.common.businessentities.NonOperationalReason reason , java.util.Map < java.lang.String , java.lang.String > customLogValues ) { resourceManager.getEventListener ( ) . vdsNonOperational ( host.getId ( ) , reason , true , Guid.Empty , customLogValues ) ; }
Source:
private boolean networkAttachmentIsBeingRemoved ( java.lang.String interfaceName ) { for ( org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment : params.getRemovedNetworkAttachments ( ) ) { if ( java.util.Objects.equals ( interfaceName , attachment.getNicName ( ) ) ) { return true ; } } return false ; }

Target:
private org.ovirt.engine.core.bll.ValidationResult validateCoherentNicIdentification ( org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment ) { return validateCoherentNicIdentification ( attachment.getId ( ) , attachment.getNicId ( ) , attachment.getNicName ( ) , EngineMessage.NETWORK_ATTACHMENT_REFERENCES_NICS_INCOHERENTLY ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.TaskInfoReturnForXmlRpc getTaskInfo ( java.lang.String taskUUID ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc diskReplicateFinish ( java.lang.String vmUUID , java.util.Map srcDisk , java.util.Map dstDisk ) ;
Source:
public void setuser_name ( java.lang.String value ) { this . username = org.ovirt.engine.core.common.businessentities.StorageServerConnections.getStringValueToSet ( value ) ; }

Target:
public void setUserName ( java.lang.String value ) { this . username = org.ovirt.engine.core.common.businessentities.StorageServerConnections.getStringValueToSet ( value ) ; }
Source:
public void addTabWidget ( com.google.gwt.user.client.ui.Widget tabWidget , int index ) { if ( ( tabWidgetHandler ) != null ) { tabWidgetHandler.addTabWidget ( tabWidget , index ) ; } }

Target:
public void addTabWidget ( com.google.gwt.user.client.ui.IsWidget tabWidget , int index ) { if ( ( tabWidgetHandler ) != null ) { tabWidgetHandler.addTabWidget ( tabWidget , index ) ; } }
Source:
private void assertInvalidVolumeInfoCombination ( org.ovirt.engine.core.common.businessentities.storage.VolumeFormat volumeFormat , org.ovirt.engine.core.common.businessentities.storage.VolumeType volumeType , org.ovirt.engine.core.common.businessentities.storage.StorageType storageType ) { org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( setupVolumeFormatAndTypeTest ( volumeFormat , volumeType , storageType ) , VdcBllMessages.ACTION_TYPE_FAILED_DISK_CONFIGURATION_NOT_SUPPORTED ) ; }

Target:
private void assertInvalidVolumeInfoCombination ( org.ovirt.engine.core.common.businessentities.storage.VolumeFormat volumeFormat , org.ovirt.engine.core.common.businessentities.storage.VolumeType volumeType , org.ovirt.engine.core.common.businessentities.storage.StorageType storageType ) { org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( setupVolumeFormatAndTypeTest ( volumeFormat , volumeType , storageType ) , EngineMessage.ACTION_TYPE_FAILED_DISK_CONFIGURATION_NOT_SUPPORTED ) ; }
Source:
public java.lang.Void runInTransaction ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDao ( ) . saveIsInitialized ( vmId , true ) ; return null ; }

Target:
private void saveSetInitializedToDb ( final org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDao ( ) . saveIsInitialized ( vmId , true ) ; }
Source:
public void Configure ( org.ovirt.engine.ui.uicommonweb.models.vms.ISpice spice ) { super . Configure ( spice ) ; updateWanColorDepthOptions ( spice ) ; updateWANDisableEffects ( spice ) ; spice.setSpiceProxyEnabled ( isSpiceProxyDefined ( ) ) ; }

Target:
public void configure ( org.ovirt.engine.ui.uicommonweb.models.vms.ISpice spice ) { super . configure ( spice ) ; updateWanColorDepthOptions ( spice ) ; updateWANDisableEffects ( spice ) ; spice.setSpiceProxyEnabled ( isSpiceProxyDefined ( ) ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.StorageFormatType getFormatForVersion ( org.ovirt.engine.core.compat.Version v ) { return org.ovirt.engine.core.common.utils.VersionStorageFormatUtil.versionToFormat.get ( v ) ; }

Target:
public static org.ovirt.engine.core.common.businessentities.StorageFormatType getPreferredForVersion ( org.ovirt.engine.core.compat.Version v , org.ovirt.engine.core.common.businessentities.StorageType type ) { return org.ovirt.engine.core.common.utils.VersionStorageFormatUtil.versionToFormat.get ( v ) . getPreferred ( type ) ; }
Source:
public javax.ws.rs.core.Response undelete ( org.ovirt.engine.api.model.Action action ) { return performAction ( VdcActionType.DisplayAllAuditLogAlerts , new org.ovirt.engine.core.common.action.VdcActionParametersBase ( ) , action , false ) ; }

Target:
public javax.ws.rs.core.Response undelete ( org.ovirt.engine.api.model.Action action ) { return performAction ( ActionType.DisplayAllAuditLogAlerts , new org.ovirt.engine.core.common.action.VdcActionParametersBase ( ) , action , false ) ; }
Source:
public void testGetOvirtNodePackagesForCheckUpdate ( ) throws java.lang.Exception { java.util.Collection < java.lang.String > expectedPackages = new java.util.HashSet < > ( java.util.Arrays.asList ( "e" ) ) ; java.util.Collection < java.lang.String > actualPackages = org.ovirt.engine.core.bll.host.HostUpgradeManager.getPackagesForCheckUpdate ( VDSType.oVirtNode ) ; org.junit.Assert.assertEquals ( expectedPackages , actualPackages ) ; }

Target:
public void testGetOvirtNodePackagesForCheckUpdate ( ) throws java.lang.Exception { java.util.Collection < java.lang.String > expectedPackages = new java.util.HashSet < > ( java.util.Collections.singletonList ( "e" ) ) ; java.util.Collection < java.lang.String > actualPackages = org.ovirt.engine.core.bll.host.HostUpgradeManager.getPackagesForCheckUpdate ( VDSType.oVirtNode ) ; org.junit.Assert.assertEquals ( expectedPackages , actualPackages ) ; }
Source:
private java.util.List < java.lang.String > translateError ( final org.ovirt.engine.core.common.action.VdcReturnValueBase error ) { return getAppErrorsTranslator ( ) . translateErrorText ( error.getCanDoActionMessages ( ) ) ; }

Target:
private java.util.List < java.lang.String > translateError ( final org.ovirt.engine.core.common.action.VdcReturnValueBase error ) { return getAppErrorsTranslator ( ) . translateErrorText ( error.getValidationMessages ( ) ) ; }
Source:
public java.lang.String getGuestCurentUserName ( ) { return this . vmDynamic.getguest_cur_user_name ( ) ; }

Target:
public java.lang.String getVmIp ( ) { return this . vmDynamic.getVmIp ( ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( id , volumeId , serverId , brickDirectory , brickOrder , status , asyncTask ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( id , volumeId , serverId , brickDirectory , brickOrder , status , asyncTask , unSyncedEntries , unSyncedEntriesTrend , selfHealEta ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult migrationSupported ( org.ovirt.engine.core.common.businessentities.ArchitectureType arch ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.MIGRATION_ON_ERROR_IS_NOT_SUPPORTED ) . unless ( migrationSupportedForArch ( arch ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult migrationSupported ( org.ovirt.engine.core.common.businessentities.ArchitectureType arch ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.MIGRATION_ON_ERROR_IS_NOT_SUPPORTED ) . unless ( migrationSupportedForArch ( arch ) ) ; }
Source:
public boolean IsSearchStringMatch ( java.lang.String searchString ) { return searchString.trim ( ) . toLowerCase ( ) . startsWith ( "provider" ) ; }

Target:
public boolean isSearchStringMatch ( java.lang.String searchString ) { return searchString.trim ( ) . toLowerCase ( ) . startsWith ( "provider" ) ; }
Source:
public void Cancel ( ) { org.ovirt.engine.ui.frontend.Frontend.Unsubscribe ( ) ; CancelConfirmation ( ) ; setGuideContext ( null ) ; setWindow ( null ) ; UpdateActionAvailability ( ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.HasConsoleModel getSelectedHasConsoleModel ( ) { if ( ( ( selectedHasConsoleModels ) == null ) || ( ( selectedHasConsoleModels.size ( ) ) != 1 ) ) { return null ; } return selectedHasConsoleModels.get ( 0 ) ; }
Source:
public void rerun ( ) { org.ovirt.engine.core.bll.MigrateVmToServerCommand.failedToMigrate ( ) ; }

Target:
public void rerun ( ) { org.ovirt.engine.core.bll.MigrateVmToServerCommand.setVm ( null ) ; org.ovirt.engine.core.bll.MigrateVmToServerCommand.determineMigrationFailureForAuditLog ( ) ; org.ovirt.engine.core.bll.MigrateVmToServerCommand.runningFailed ( ) ; }
Source:
public void warnOnActiveVm ( ) { if ( activeVmAttachedToClusterPredicate.eval ( networkCluster.getClusterId ( ) ) ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase loggable = createLoggable ( ) ; auditLogDirector.log ( loggable , AuditLogType.NETWORK_UPDATE_DISPLAY_FOR_CLUSTER_WITH_ACTIVE_VM ) ; } }

Target:
public void warnOnActiveVm ( ) { if ( activeVmAttachedToClusterPredicate.test ( networkCluster.getClusterId ( ) ) ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase loggable = createLoggable ( ) ; auditLogDirector.log ( loggable , AuditLogType.NETWORK_UPDATE_DISPLAY_FOR_CLUSTER_WITH_ACTIVE_VM ) ; } }
Source:
public void testGetWithInvalidId ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup result = dao.get ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetWithInvalidId ( ) { org.ovirt.engine.core.common.businessentities.Cluster result = dao.get ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertNull ( result ) ; }
Source:
public void testNoCpuProfileAssigned ( ) { diskImage.setDiskProfileId ( null ) ; underTest.handleIoTune ( vmDevice , underTest.loadStorageQos ( diskImage ) ) ; org.junit.Assert.assertNull ( vmDevice.getSpecParams ( ) ) ; }

Target:
public void testNoCpuProfileAssigned ( ) { diskImage.setDiskProfileId ( null ) ; underTest.handleIoTune ( vmDevice , underTest.loadStorageQos ( diskImage ) ) ; org.junit.jupiter.api.Assertions.assertNull ( vmDevice.getSpecParams ( ) ) ; }
Source:
public void init ( ) { super . init ( ) ; org.ovirt.engine.api.restapi.utils.OsTypeMockUtils.mockOsTypes ( ) ; }

Target:
public void init ( ) { super . init ( ) ; org.ovirt.engine.api.restapi.utils.OsTypeMockUtils.mockOsTypes ( ) ; initBackendResource ( vmHelper ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.Network getNetwork ( ) { if ( ( network ) == null ) { network = org.ovirt.engine.core.bll.network.dc.UnlabelNetworkCommand.getNetworkDAO ( ) . get ( org.ovirt.engine.core.bll.network.dc.UnlabelNetworkCommand.getParameters ( ) . getNetworkId ( ) ) ; } return network ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.Network getNetwork ( ) { if ( ( network ) == null ) { network = org.ovirt.engine.core.bll.network.dc.UnlabelNetworkCommand.getNetworkDao ( ) . get ( org.ovirt.engine.core.bll.network.dc.UnlabelNetworkCommand.getParameters ( ) . getNetworkId ( ) ) ; } return network ; }
Source:
public void parametersWithSecureDeletionAreFixedOnFileDomainWhenPostZeroIsTrue ( ) { org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandlerTest.ParametersWithPostDeleteAction parameters = org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandler.fixParameters ( new org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandlerTest.ParametersWithPostDeleteAction ( true ) , true ) ; assertPostZeroValue ( parameters , false ) ; }

Target:
public void parametersWithSecureDeletionAreFixedOnFileDomainWhenPostZeroIsTrue ( ) { org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandlerTest.ParametersWithPostDeleteAction parameters = postDeleteActionHandler.fixParameters ( new org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandlerTest.ParametersWithPostDeleteAction ( true ) , true ) ; assertPostZeroValue ( parameters , false ) ; }
Source:
protected boolean networkNotAttachedToCluster ( final org.ovirt.engine.core.common.businessentities.Network network ) { if ( ! ( org.ovirt.engine.core.bll.network.dc.NetworkCommon.getNetworkClusterDAO ( ) . getAllForNetwork ( network.getId ( ) ) . isEmpty ( ) ) ) { addCanDoActionMessage ( VdcBllMessages.NETWORK_CLUSTER_NETWORK_IN_USE ) ; return false ; } return true ; }

Target:
protected org.ovirt.engine.core.bll.ValidationResult networkNotAttachedToCluster ( final org.ovirt.engine.core.common.businessentities.Network network ) { return org.ovirt.engine.core.bll.network.dc.NetworkCommon.getNetworkClusterDAO ( ) . getAllForNetwork ( network.getId ( ) ) . isEmpty ( ) ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.NETWORK_CLUSTER_NETWORK_IN_USE ) ; }
Source:
protected java.util.List < java.lang.String > missingServerCpuFlags ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return org.ovirt.engine.core.bll.CpuFlagsManagerHandler.missingServerCpuFlags ( org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getcpu_name ( ) , vds.getCpuFlags ( ) , org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getcompatibility_version ( ) ) ; }

Target:
protected boolean checkIfCpusSameManufacture ( org.ovirt.engine.core.common.businessentities.VDSGroup group ) { return org.ovirt.engine.core.bll.CpuFlagsManagerHandler.checkIfCpusSameManufacture ( group.getCpuName ( ) , org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getCpuName ( ) , org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getCompatibilityVersion ( ) ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid createTask ( org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { return org.ovirt.engine.core.bll.tasks.TaskManagerUtil.createTask ( this , asyncTaskCreationInfo , parentCommand , null , null , org.ovirt.engine.core.bll.CommandBase.EMPTY_GUID_ARRAY ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid createTask ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { return createTask ( taskId , asyncTaskCreationInfo , parentCommand , null , null , org.ovirt.engine.core.bll.CommandBase.EMPTY_GUID_ARRAY ) ; }
Source:
protected java.lang.String getAdditionalInformation ( ) { if ( ( getVds ( ) ) != null ) { return java.lang.String.format ( "Vds = %1$s" , getVds ( ) . getvds_name ( ) ) ; } else { return super . getAdditionalInformation ( ) ; } }

Target:
protected java.lang.String getAdditionalInformation ( ) { if ( ( getVds ( ) ) != null ) { return java.lang.String.format ( "HostName = %1$s" , getVds ( ) . getvds_name ( ) ) ; } else { return super . getAdditionalInformation ( ) ; } }