auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { getConnectivityTimeout ( ) . setEntity ( ( ( java.lang.Integer ) ( returnValue ) ) ) ; postOnSetupNetworks ( ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { java.util.Collection < org.ovirt.engine.core.common.businessentities.network.HostNetworkQos > qoss = ( ( java.util.Collection < org.ovirt.engine.core.common.businessentities.network.HostNetworkQos > ) ( returnValue ) ) ; qosById = org.ovirt.engine.core.common.businessentities.Entities.businessEntitiesById ( qoss ) ; queryInterfaces ( ) ; }
Source:
public static void removeAllCommandsBeforeDate ( org.ovirt.engine.core.compat.DateTime cutoff ) { org.ovirt.engine.core.bll.tasks.TaskManagerUtil.coco.removeAllCommandsBeforeDate ( cutoff ) ; }

Target:
public static void removeAllCommandsBeforeDate ( org.ovirt.engine.core.compat.DateTime cutoff ) { org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.coco.removeAllCommandsBeforeDate ( cutoff ) ; }
Source:
public void updateCallBackNotified ( final 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 void updateCallbackNotified ( final 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 ) ; } }
Source:
public void setQuotaVdsGroups ( java.util.List < org.ovirt.engine.core.common.businessentities.QuotaVdsGroup > quotaVdsGroups ) { this . quotaVdsGroupList = quotaVdsGroups ; }

Target:
public void setQuotaClusters ( java.util.List < org.ovirt.engine.core.common.businessentities.QuotaCluster > quotaClusters ) { this . quotaClusterList = quotaClusters ; }
Source:
private org.ovirt.engine.core.bll.network.macpool.MacPool getMacPoolById ( org.ovirt.engine.core.compat.Guid macPoolId , java.util.List < org.ovirt.engine.core.bll.network.macpool.MacPoolDecorator > decorators ) { try ( org.ovirt.engine.core.utils.lock.AutoCloseableLock lock = readLockResource ( ) ) { return getMacPoolWithoutLocking ( macPoolId , decorators ) ; } }

Target:
private org.ovirt.engine.core.bll.network.macpool.MacPool getMacPoolById ( org.ovirt.engine.core.compat.Guid macPoolId , java.util.List < org.ovirt.engine.core.bll.network.macpool.MacPoolDecorator > decorators ) { try ( org.ovirt.engine.core.utils.lock.AutoCloseableLock lock = readLockResource ( ) ) { org.ovirt.engine.core.bll.network.macpool.MacPool result = getMacPoolWithoutLocking ( macPoolId , decorators ) ; org.ovirt.engine.core.bll.network.macpool.MacPoolPerCluster.log.debug ( "Returning for requested id={}" , result , macPoolId ) ; return result ; } }
Source:
protected org.ovirt.engine.core.common.businessentities.VDSGroup lookupClusterById ( java.lang.String id ) { return getEntity ( org.ovirt.engine.core.common.businessentities.VDSGroup.class , VdcQueryType.GetVdsGroupById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( org.ovirt.engine.core.compat.Guid.createGuidFromStringDefaultEmpty ( id ) ) , id ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.Cluster lookupClusterById ( java.lang.String id ) { return getEntity ( org.ovirt.engine.core.common.businessentities.Cluster.class , VdcQueryType.GetClusterById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( org.ovirt.engine.core.compat.Guid.createGuidFromStringDefaultEmpty ( id ) ) , id ) ; }
Source:
protected boolean isGhost ( org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.String > value ) { return org.ovirt.engine.ui.uicompat.external.StringUtils.isEmpty ( value.getEntity ( ) ) ; }

Target:
protected boolean isGhost ( org.ovirt.engine.ui.uicommonweb.models.dnsconfiguration.NameServerModel value ) { return org.ovirt.engine.ui.uicompat.external.StringUtils.isEmpty ( value.getEntity ( ) ) ; }
Source:
private void vdsNonOperational ( org.ovirt.engine.core.common.businessentities.VDS vds , org.ovirt.engine.core.common.businessentities.NonOperationalReason reason ) { org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . getEventListener ( ) . vdsNonOperational ( vds.getId ( ) , reason , true , Guid.Empty , null ) ; }

Target:
private void vdsNonOperational ( org.ovirt.engine.core.common.businessentities.VDS vds , org.ovirt.engine.core.common.businessentities.NonOperationalReason reason ) { eventListener.get ( ) . vdsNonOperational ( vds.getId ( ) , reason , true , Guid.Empty , null ) ; }
Source:
protected void generateNewDiskId ( java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > diskImagesList , org.ovirt.engine.core.common.businessentities.DiskImage disk ) { org.ovirt.engine.core.compat.Guid generatedGuid = generateNewDiskId ( disk ) ; for ( org.ovirt.engine.core.common.businessentities.DiskImage diskImage : diskImagesList ) { diskImage.setId ( generatedGuid ) ; } }

Target:
protected void generateNewDiskId ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > diskImagesList , org.ovirt.engine.core.common.businessentities.storage.DiskImage disk ) { org.ovirt.engine.core.compat.Guid generatedGuid = generateNewDiskId ( disk ) ; for ( org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage : diskImagesList ) { diskImage.setId ( generatedGuid ) ; } }
Source:
protected boolean isHotPlugDiskSnapshotSupported ( ) { if ( ! ( org.ovirt.engine.core.common.FeatureSupported.hotPlugDiskSnapshot ( org.ovirt.engine.core.bll.AbstractDiskVmCommand.getVds ( ) . getVdsGroupCompatibilityVersion ( ) ) ) ) { return failCanDoAction ( VdcBllMessages.HOT_PLUG_DISK_SNAPSHOT_IS_NOT_SUPPORTED ) ; } return true ; }

Target:
protected boolean isHotPlugDiskSnapshotSupported ( ) { if ( ! ( org.ovirt.engine.core.common.FeatureSupported.hotPlugDiskSnapshot ( org.ovirt.engine.core.bll.AbstractDiskVmCommand.getVds ( ) . getVdsGroupCompatibilityVersion ( ) ) ) ) { return failCanDoAction ( EngineMessage.HOT_PLUG_DISK_SNAPSHOT_IS_NOT_SUPPORTED ) ; } return true ; }
Source:
protected org.ovirt.engine.core.aaa.DirectoryGroup getEntity ( int index ) { return new org.ovirt.engine.core.aaa.DirectoryGroup ( DOMAIN , NAMESPACE , EXTERNAL_IDS [ index ] , NAMES [ index ] ) ; }

Target:
protected org.ovirt.engine.core.aaa.DirectoryGroup getEntity ( int index ) { return new org.ovirt.engine.core.aaa.DirectoryGroup ( DOMAIN , NAMESPACE , EXTERNAL_IDS [ index ] , NAMES [ index ] , "" ) ; }
Source:
public javax.ws.rs.core.Response upgradeCheck ( org.ovirt.engine.api.model.Action action ) { org.ovirt.engine.core.common.action.VdsActionParameters params = new org.ovirt.engine.core.common.action.VdsActionParameters ( guid ) ; return doAction ( VdcActionType.HostUpgradeCheck , params , action ) ; }

Target:
public javax.ws.rs.core.Response upgradeCheck ( org.ovirt.engine.api.model.Action action ) { org.ovirt.engine.core.common.action.VdsActionParameters params = new org.ovirt.engine.core.common.action.VdsActionParameters ( guid ) ; return doAction ( ActionType.HostUpgradeCheck , params , action ) ; }
Source:
public org.ovirt.engine.core.bll.network.macpool.MacPool getMacPoolForCluster ( org.ovirt.engine.core.compat.Guid clusterId , org.ovirt.engine.core.bll.context.CommandContext commandContext ) { return getMacPoolById ( getMacPoolId ( clusterId ) , commandContext ) ; }

Target:
public org.ovirt.engine.core.bll.network.macpool.MacPool getMacPoolForCluster ( org.ovirt.engine.core.compat.Guid clusterId , org.ovirt.engine.core.bll.context.CommandContext commandContext ) { java.util.Objects.requireNonNull ( commandContext ) ; return getMacPoolById ( getMacPoolId ( clusterId ) , commandContext ) ; }
Source:
public < T > T getOptionalEntity ( java.lang.Class < T > clz , org.ovirt.engine.core.common.queries.QueryType query , org.ovirt.engine.core.common.queries.VdcQueryParametersBase queryParams , java.lang.String identifier , boolean notFoundAs404 ) { return getEntity ( clz , query , queryParams , identifier , notFoundAs404 , false ) ; }

Target:
public < T > T getOptionalEntity ( java.lang.Class < T > clz , org.ovirt.engine.core.common.queries.QueryType query , org.ovirt.engine.core.common.queries.QueryParametersBase queryParams , java.lang.String identifier , boolean notFoundAs404 ) { return getEntity ( clz , query , queryParams , identifier , notFoundAs404 , false ) ; }
Source:
protected void onExecute ( ) { if ( ( this . getProgress ( ) ) != null ) { return ; } if ( ! ( this . validate ( ) ) ) { return ; } startProgress ( null ) ; }

Target:
protected final void onExecute ( ) { if ( ( this . getProgress ( ) ) != null ) { return ; } if ( ! ( this . validate ( ) ) ) { return ; } doExecute ( ) ; }
Source:
public void testVmUnderMinNumOfCpusPerSocket ( ) { setVmCpuValues ( ( - 2 ) , 1 , 1 ) ; org.junit.Assert.assertThat ( org.ovirt.engine.core.bll.validator.VmValidator.validateCpuSockets ( vm.getStaticData ( ) , org.ovirt.engine.core.bll.validator.VmValidatorTest.COMPAT_VERSION_FOR_CPU_SOCKET_TEST ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_MIN_NUM_SOCKETS ) ) ; }

Target:
public void testVmUnderMinNumOfCpusPerSocket ( ) { setVmCpuValues ( ( - 2 ) , 1 , 1 ) ; org.hamcrest.MatcherAssert.assertThat ( org.ovirt.engine.core.bll.validator.VmValidator.validateCpuSockets ( vm.getStaticData ( ) , org.ovirt.engine.core.bll.validator.VmValidatorTest.COMPAT_VERSION_FOR_CPU_SOCKET_TEST ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_MIN_NUM_SOCKETS ) ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( ) { return new com.gwtplatform.mvp.client.TabDataBasic ( org.ovirt.engine.ui.userportal.section.main.presenter.tab.extended.vm.SubTabExtendedVmGuestContainerPresenter.constants.extendedVirtualMachineGuestContainersSubTabLabel ( ) , 9 ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.userportal.uicommon.model.UserPortalSearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.GuestContainer , org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalListModel , org.ovirt.engine.ui.uicommonweb.models.vms.VmGuestContainerListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.userportal.section.main.presenter.tab.extended.vm.SubTabExtendedVmGuestContainerPresenter.constants.extendedVirtualMachineGuestContainersSubTabLabel ( ) , 9 , modelProvider ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { if ( ( ( java.lang.Boolean ) ( object.getOptimizationCustom_IsSelected ( ) . getEntity ( ) ) ) ) { optimizationCustomFormatter ( object ) ; optimizationCustomEditor.setVisible ( true ) ; } }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { boolean isCpuNameBlank = ( object.getCPU ( ) . getSelectedItem ( ) ) == null ; architectureEditor.setVisible ( isCpuNameBlank ) ; }
Source:
public void setUp ( ) { adUser = new org.ovirt.engine.core.common.businessentities.LdapUser ( "UserName" , "password" , org.ovirt.engine.core.compat.Guid.newGuid ( ) , "DomainController" ) ; }

Target:
public void setUp ( ) { adUser = new org.ovirt.engine.core.common.businessentities.LdapUser ( ) ; adUser.setUserName ( "UserName" ) ; adUser.setUserId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; adUser.setDomainControler ( "DomainController" ) ; }
Source:
public java.lang.Void runInTransaction ( ) { dao.updateAll ( procedureName , entities ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { dao.updateAll ( procedureName , sortedList ) ; return null ; }
Source:
protected void failedToRunVm ( ) { if ( memoryFromSnapshotIrrelevant ) { removeMemoryFromSnapshot ( ) ; } super . failedToRunVm ( ) ; }

Target:
public void runningSucceded ( ) { removeMemoryFromActiveSnapshot ( ) ; super . runningSucceded ( ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity > glusterBricks = ( ( java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity > ) ( returnValue ) ) ; setItems ( glusterBricks ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity > glusterBricks = ( ( java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity > ) ( returnValue ) ) ; java.util.Collections.sort ( glusterBricks , new org.ovirt.engine.ui.uicommonweb.Linq.ServerBricksComparer ( ) ) ; setItems ( glusterBricks ) ; }
Source:
public void testVerbosityLevelZero ( ) { java.lang.String command = createCommand ( new org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilder ( ) . verboseLevel ( AnsibleVerbosity.LEVEL0 ) . playbook ( org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilderTest.ANSIBLE_PLAYBOOK ) ) ; org.junit.Assert.assertEquals ( join ( AnsibleCommandBuilder.ANSIBLE_COMMAND , org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilderTest.IGNORE_SSH_CONFIG , org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilderTest.PRIVATE_KEY , org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilderTest.ANSIBLE_PLAYBOOK_FULL_PATH ) , command ) ; }

Target:
public void testVerbosityLevelZero ( ) { java.lang.String command = createCommand ( new org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilder ( ) . verboseLevel ( AnsibleVerbosity.LEVEL0 ) . playbook ( org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilderTest.ANSIBLE_PLAYBOOK ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( join ( AnsibleCommandBuilder.ANSIBLE_COMMAND , org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilderTest.IGNORE_SSH_CONFIG , org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilderTest.PRIVATE_KEY , org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilderTest.ANSIBLE_PLAYBOOK_FULL_PATH ) , command ) ; }
Source:
private boolean isManagementOriginally ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel clusterNetworkModel ) { return ( ( clusterNetworkModel.getOriginalNetworkCluster ( ) ) != null ) && ( clusterNetworkModel.getOriginalNetworkCluster ( ) . isManagement ( ) ) ; }

Target:
protected boolean isRoleSet ( org.ovirt.engine.core.common.businessentities.network.NetworkCluster originalNetworkCluster ) { return originalNetworkCluster.isManagement ( ) ; }
Source:
public boolean isVirtioScsiControllerAttached ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.isVirtioScsiControllerAttached ( vmId ) ; }

Target:
public boolean isVirtioScsiControllerAttached ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.hasVirtioScsiController ( vmId ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object result ) { vmInitLoaded ( ( ( org.ovirt.engine.core.common.businessentities.VM ) ( result ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object result ) { org.ovirt.engine.ui.uicommonweb.models.vms.RunOnceModel runOnceModel = new org.ovirt.engine.ui.uicommonweb.models.vms.UserPortalRunOnceModel ( ( ( org.ovirt.engine.core.common.businessentities.VM ) ( result ) ) , this ) ; setWindow ( runOnceModel ) ; runOnceModel.init ( ) ; }
Source:
private void cancel ( ) { sourceListModel.setWindow ( null ) ; }

Target:
private void onSave ( ) { if ( ! ( validate ( ) ) ) { return ; } flush ( ) ; org.ovirt.engine.ui.frontend.Frontend.RunAction ( action , new org.ovirt.engine.core.common.action.ProviderParameters ( provider ) ) ; cancel ( ) ; }
Source:
public void validPropertyInvalidDeviceType ( ) { org.ovirt.engine.core.utils.customprop.DevicePropertiesUtils utils = mockDevicePropertiesUtils ( ) ; java.util.List < org.ovirt.engine.core.common.utils.customprop.ValidationError > errors = utils.validateProperties ( Version.v3_3 , VmDeviceGeneralType.DISK , utils.convertProperties ( "speed=10;duplex=half" ) ) ; org.ovirt.engine.core.common.utils.customprop.PropertiesUtilsTestHelper.validateFailure ( errors , ValidationFailureReason.KEY_DOES_NOT_EXIST ) ; }

Target:
public void validPropertyUnknownDeviceType ( ) { org.ovirt.engine.core.utils.customprop.DevicePropertiesUtils utils = mockDevicePropertiesUtils ( ) ; java.util.List < org.ovirt.engine.core.common.utils.customprop.ValidationError > errors = utils.validateProperties ( Version.v4_0 , VmDeviceGeneralType.UNKNOWN , utils.convertProperties ( "speed=10;duplex=half" ) ) ; org.ovirt.engine.core.common.utils.customprop.PropertiesUtilsTestHelper.validateFailure ( errors , ValidationFailureReason.INVALID_DEVICE_TYPE ) ; }
Source:
org.ovirt.engine.core.vdsbroker.irsbroker.StatusReturnForXmlRpc prepareMerge ( java.lang.String spUUID , java.lang.String jobUUID , java.util.Map < java.lang.String , java.lang.String > subchainInfo ) ;

Target:
org.ovirt.engine.core.vdsbroker.irsbroker.OneUuidReturn prepareMerge ( java.lang.String spUUID , java.util.Map < java.lang.String , java.lang.String > subchainInfo ) ;
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.vms.MigrateModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.MigrateModel ) ( result.getState ( ) ) ) ; localModel.StopProgress ( ) ; Cancel ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.userportal.AttachCdModel attachCdModel = ( ( org.ovirt.engine.ui.uicommonweb.models.userportal.AttachCdModel ) ( result.getState ( ) ) ) ; attachCdModel.stopProgress ( ) ; cancel ( ) ; }
Source:
public org.ovirt.engine.api.resource.DevicesResource < org.ovirt.engine.api.model.Cdrom , org.ovirt.engine.api.model.Cdroms > getCdRomsResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendCdRomsResource ( guid , org.ovirt.engine.core.common.queries.VdcQueryType.GetVmByVmId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ) ; }

Target:
public org.ovirt.engine.api.resource.VmCdromsResource getCdromsResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendVmCdromsResource ( guid ) ) ; }
Source:
public void setNoTaskMgrExecution ( boolean noTaskMgrExecution ) { this . noTaskMgrExecution = noTaskMgrExecution ; }

Target:
public void setNoTaskMgrExecution ( boolean noTaskMgrExecution ) { this . consoleOptions.setNoTaskMgrExecution ( noTaskMgrExecution ) ; }
Source:
public void vdsMovedToMaintanance ( org.ovirt.engine.core.compat.Guid vdsId ) { org.ovirt.engine.core.common.businessentities.VDS vds = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDAO ( ) . get ( vdsId ) ; org.ovirt.engine.core.bll.MaintananceVdsCommand.ProcessStorageOnVdsInactive ( vds ) ; org.ovirt.engine.core.bll.job.ExecutionHandler.updateSpecificActionJobCompleted ( vdsId , VdcActionType.MaintananceVds , true ) ; }

Target:
public void vdsMovedToMaintanance ( org.ovirt.engine.core.compat.Guid vdsId ) { org.ovirt.engine.core.common.businessentities.VDS vds = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDao ( ) . get ( vdsId ) ; org.ovirt.engine.core.bll.MaintananceVdsCommand.ProcessStorageOnVdsInactive ( vds ) ; org.ovirt.engine.core.bll.job.ExecutionHandler.updateSpecificActionJobCompleted ( vdsId , VdcActionType.MaintananceVds , true ) ; }
Source:
public void warn ( java.lang.Object msg ) { log.warn ( addPrefixToLogMessage ( msg ) ) ; }

Target:
public void warn ( java.lang.Object msg , java.lang.Throwable t ) { log.warn ( convertToString ( msg ) , t ) ; }
Source:
protected org.ovirt.engine.api.model.InstanceType getEntity ( int index ) { return org.ovirt.engine.api.restapi.resource.BackendInstanceTypesResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.core.common.businessentities.VmTemplate.class ) , index ) ; }

Target:
protected org.ovirt.engine.api.model.InstanceType getEntity ( int index ) { return org.ovirt.engine.api.restapi.resource.BackendInstanceTypesResourceTest.setUpEntityExpectations ( org.mockito.Mockito.mock ( org.ovirt.engine.core.common.businessentities.VmTemplate.class ) , index ) ; }
Source:
protected final boolean failCanDoAction ( org.ovirt.engine.core.common.errors.VdcBllMessages message ) { addCanDoActionMessage ( message ) ; return false ; }

Target:
private void freeLockEndAction ( ) { if ( ( getActionState ( ) ) != ( CommandActionState.EXECUTE ) ) { freeLock ( ) ; } }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.storage.domain.GetStorageDomainByIdAndStoragePoolIdQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageDomainDao ( ) . getForStoragePool ( org.ovirt.engine.core.bll.storage.domain.GetStorageDomainByIdAndStoragePoolIdQuery.getParameters ( ) . getStorageDomainId ( ) , org.ovirt.engine.core.bll.storage.domain.GetStorageDomainByIdAndStoragePoolIdQuery.getParameters ( ) . getStoragePoolId ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.storage.domain.GetStorageDomainByIdAndStoragePoolIdQuery.getQueryReturnValue ( ) . setReturnValue ( storageDomainDao.getForStoragePool ( org.ovirt.engine.core.bll.storage.domain.GetStorageDomainByIdAndStoragePoolIdQuery.getParameters ( ) . getStorageDomainId ( ) , org.ovirt.engine.core.bll.storage.domain.GetStorageDomainByIdAndStoragePoolIdQuery.getParameters ( ) . getStoragePoolId ( ) ) ) ; }
Source:
private void valuesPresentTest ( org.hamcrest.Matcher < org.ovirt.engine.core.bll.ValidationResult > matcher ) { org.junit.Assert.assertThat ( validator.allValuesPresent ( ) , matcher ) ; }

Target:
private void valuesPresentTest ( org.hamcrest.Matcher < org.ovirt.engine.core.bll.ValidationResult > matcher ) { org.junit.Assert.assertThat ( validator.requiredValuesPresent ( ) , matcher ) ; }
Source:
public < T > java.util.Map < java.lang.String , T > getValuesForAllVersions ( org.ovirt.engine.core.common.config.ConfigValues configValue ) { return ( ( java.util.Map < java.lang.String , T > ) ( org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils._vdcOptionCache.get ( configValue.toString ( ) ) ) ) ; }

Target:
public < T > java.util.Map < java.lang.String , T > getValuesForAllVersions ( org.ovirt.engine.core.common.config.ConfigValues configValue ) { return ( ( java.util.Map < java.lang.String , T > ) ( _vdcOptionCache.get ( configValue.toString ( ) ) ) ) ; }
Source:
private static java.util.ResourceBundle readMessagesFromBundle ( ) { try { return java.util.ResourceBundle.getBundle ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.APP_ERRORS_MESSAGES_FILE_NAME ) ; } catch ( java.util.MissingResourceException e ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log.error ( ( "Could not load audit log messages from the file " + ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.APP_ERRORS_MESSAGES_FILE_NAME ) ) ) ; throw e ; } }

Target:
private static java.util.ResourceBundle readMessagesFromBundle ( ) { try { return java.util.ResourceBundle.getBundle ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.APP_ERRORS_MESSAGES_FILE_NAME ) ; } catch ( java.util.MissingResourceException e ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log.error ( "Could not load audit log messages from the file '{}'" , org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.APP_ERRORS_MESSAGES_FILE_NAME ) ; throw e ; } }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterGeoRepKeysUpdate ( java.util.List < java.lang.String > geoRepPubKeys , java.lang.String remoteUserName ) ;

Target:
org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatusForXmlRpc glusterVolumeGeoRepSessionList ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName , java.lang.String userName ) ;
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc connectStoragePool ( java.lang.String spUUID , int hostSpmId , java.lang.String SCSIKey , java.lang.String masterdomainId , int masterVersion ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc connectStoragePool ( java.lang.String spUUID , int hostSpmId , java.lang.String SCSIKey , java.lang.String masterdomainId , int masterVersion , java.util.Map < java.lang.String , java.lang.String > storageDomains ) ;
Source:
public org.ovirt.engine.core.common.businessentities.LunDisk mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { org.ovirt.engine.core.common.businessentities.LunDisk disk = super . mapRow ( rs , rowNum ) ; disk.setLun ( LunDAODbFacadeImpl.MAPPER.mapRow ( rs , rowNum ) ) ; return disk ; }

Target:
public org.ovirt.engine.core.common.businessentities.storage.LunDisk mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { org.ovirt.engine.core.common.businessentities.storage.LunDisk disk = super . mapRow ( rs , rowNum ) ; disk.setLun ( LunDAODbFacadeImpl.MAPPER.mapRow ( rs , rowNum ) ) ; return disk ; }
Source:
protected void syncSearch ( ) { if ( ( getEntity ( ) ) == null ) { return ; } super . syncSearch ( VdcQueryType.GetVmTemplatesDisks , new org.ovirt.engine.core.common.queries.IdQueryParameters ( getEntityStronglyTyped ( ) . getId ( ) ) ) ; }

Target:
public void search ( ) { if ( ( getEntity ( ) ) != null ) { super . search ( ) ; } }
Source:
public void doPolling ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { org.ovirt.engine.core.bll.CommandBase < ? > rootCommand = org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.retrieveCommand ( cmdId ) ; evaluateGeoRepSessionStatus ( rootCommand ) ; }

Target:
public void doPolling ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { org.ovirt.engine.core.bll.CommandBase < ? > rootCommand = commandCoordinatorUtil.retrieveCommand ( cmdId ) ; evaluateGeoRepSessionStatus ( rootCommand ) ; }
Source:
public void manualRevealFailed ( ) { super . manualRevealFailed ( ) ; placeManager.revealDefaultPlace ( ) ; }

Target:
public void manualRevealFailed ( ) { super . manualRevealFailed ( ) ; org.ovirt.engine.ui.common.presenter.DynamicTabProxy.getPlaceManager ( ) . revealDefaultPlace ( ) ; }
Source:
protected void EntityPropertyChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . EntityPropertyChanged ( sender , e ) ; if ( e.PropertyName.equals ( "vds_name" ) ) { getSearchCommand ( ) . Execute ( ) ; } }

Target:
protected void EntityPropertyChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . EntityPropertyChanged ( sender , e ) ; if ( e.PropertyName.equals ( "vds_name" ) ) { Search ( ) ; } }
Source:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s, url=%s, username=%s" , super . toString ( ) , url , username ) ; }

Target:
protected org.ovirt.engine.core.common.utils.ToStringBuilder appendAttributes ( org.ovirt.engine.core.common.utils.ToStringBuilder tsb ) { return super . appendAttributes ( tsb ) . append ( "url" , url ) . append ( "username" , username ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc startSpice ( java.lang.String vdsIp , int port , java.lang.String ticket ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc add_image_ticket ( java.lang.String ticketId , java.lang.String [ ] ops , long timeout , long size , java.lang.String url ) ;
Source:
public org.ovirt.engine.api.model.Network update ( org.ovirt.engine.api.model.Network incoming ) { return performUpdate ( incoming , getParent ( ) . getNetworkIdResolver ( ) , VdcActionType.UpdateNetwork , new org.ovirt.engine.api.restapi.resource.BackendNetworkResource.UpdateParametersProvider ( ) ) ; }

Target:
public org.ovirt.engine.api.model.Network update ( org.ovirt.engine.api.model.Network incoming ) { validateEnums ( org.ovirt.engine.api.model.Network.class , incoming ) ; return performUpdate ( incoming , getParent ( ) . getNetworkIdResolver ( ) , VdcActionType.UpdateNetwork , new org.ovirt.engine.api.restapi.resource.BackendNetworkResource.UpdateParametersProvider ( ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > ( ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > ) ( source ) ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > ( ) ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? new java.util.ArrayList < > ( ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > ) ( source ) ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > ( ) ; }
Source:
protected int getSuccessCode ( ) { return org.apache.commons.httpclient.HttpStatus.SC_OK ; }

Target:
protected int getSuccessCode ( ) { return org.apache.commons.httpclient.HttpStatus.SC_PARTIAL_CONTENT ; }
Source:
public void imageNotProvidedForOvirtNode ( ) { org.mockito.Mockito.when ( host.getVdsType ( ) ) . thenReturn ( VDSType.oVirtNode ) ; org.junit.Assert.assertThat ( validator.imageProvidedForOvirtNode ( null ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.VDS_CANNOT_INSTALL_MISSING_IMAGE_FILE ) ) ; }

Target:
public void imageNotProvidedForOvirtNode ( ) { mockOvirtNode ( ) ; org.junit.Assert.assertThat ( validator.imageProvidedForOvirtNode ( null ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.VDS_CANNOT_INSTALL_MISSING_IMAGE_FILE ) ) ; }
Source:
public void updatePosixEmptyVFSType ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections newPosixConnection = createPosixConnection ( "multipass.my.domain.tlv.company.com:/export/allstorage/data1" , StorageType.POSIXFS , null , "timeo=30" ) ; parameters.setStorageServerConnection ( newPosixConnection ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , VdcBllMessages.VALIDATION_STORAGE_CONNECTION_EMPTY_VFSTYPE ) ; }

Target:
public void updatePosixEmptyVFSType ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections newPosixConnection = createPosixConnection ( "multipass.my.domain.tlv.company.com:/export/allstorage/data1" , StorageType.POSIXFS , null , "timeo=30" ) ; parameters.setStorageServerConnection ( newPosixConnection ) ; parameters.setStoragePoolId ( Guid.Empty ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , VdcBllMessages.VALIDATION_STORAGE_CONNECTION_EMPTY_VFSTYPE ) ; }
Source:
public void testNetworkAttachmentIsSetWhenAttachmentIsNotNull ( ) { org.junit.Assert.assertThat ( createNetworkAttachmentValidator ( new org.ovirt.engine.core.common.businessentities.network.NetworkAttachment ( ) ) . networkAttachmentIsSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testNetworkAttachmentIsSetWhenAttachmentIsNotNull ( ) { org.hamcrest.MatcherAssert.assertThat ( createNetworkAttachmentValidator ( new org.ovirt.engine.core.common.businessentities.network.NetworkAttachment ( ) ) . networkAttachmentIsSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public org.ovirt.engine.core.utils.log.Log produceLogger ( javax.enterprise.inject.spi.InjectionPoint injectionPoint ) { return org.ovirt.engine.core.utils.log.LogFactory.getLog ( injectionPoint.getMember ( ) . getDeclaringClass ( ) ) ; }

Target:
public org.slf4j.Logger produceLogger ( javax.enterprise.inject.spi.InjectionPoint injectionPoint ) { return org.slf4j.LoggerFactory.getLogger ( injectionPoint.getMember ( ) . getDeclaringClass ( ) ) ; }
Source:
public void testGetAllForCpuProfile ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > result = dao.getAllForCpuProfile ( FixturesTool.CPU_PROFILE_1 ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( 4 , result.size ( ) ) ; }

Target:
public void testGetAllForCpuProfile ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > result = dao.getAllForCpuProfile ( FixturesTool.CPU_PROFILE_1 ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertEquals ( 4 , result.size ( ) ) ; }
Source:
public void validateFailsWithInvalidBricks ( ) { cmd.setGlusterVolumeId ( volumeWithRemoveBricksTask ) ; cmd.getParameters ( ) . setBricks ( getInvalidBricks ( volumeWithRemoveBricksTask ) ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFailsWithInvalidBricks ( ) { cmd.setGlusterVolumeId ( volumeWithRemoveBricksTask ) ; cmd.getParameters ( ) . setBricks ( getInvalidBricks ( volumeWithRemoveBricksTask ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_GLUSTER_VOLUME_REMOVE_BRICKS_PARAMS_INVALID ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.storage_domains > getVolumeGroups ( ) { return getBackendCollection ( org.ovirt.engine.core.common.businessentities.storage_domains.class , VdcQueryType.GetVgList , new org.ovirt.engine.core.common.queries.VdsIdParametersBase ( asGuid ( hostId ) ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.api.restapi.resource.StorageDomain > getVolumeGroups ( ) { return getBackendCollection ( org.ovirt.engine.core.common.businessentities.StorageDomain.class , VdcQueryType.GetVgList , new org.ovirt.engine.core.common.queries.VdsIdParametersBase ( asGuid ( hostId ) ) ) ; }
Source:
public void getUsbPolicyNullUsb ( ) { org.ovirt.engine.api.model.Usb usb = null ; assertEquals ( UsbPolicy.DISABLED , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyNativeGotNullUsb ( ) { org.ovirt.engine.api.model.Usb usb = null ; org.ovirt.engine.core.common.businessentities.UsbPolicy currentPolicy = org.ovirt.engine.core.common.businessentities.UsbPolicy.ENABLED_NATIVE ; org.junit.Assert.assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , currentPolicy ) , currentPolicy ) ; }
Source:
public static java.lang.String getFullLoginName ( org.ovirt.engine.core.common.businessentities.DbUser user ) { return org.ovirt.engine.ui.frontend.utils.FormatUtils.getFullLoginName ( user.getLoginName ( ) , user.getDomain ( ) ) ; }

Target:
public static java.lang.String getFullLoginName ( org.ovirt.engine.core.common.businessentities.aaa.DbUser user ) { return org.ovirt.engine.ui.frontend.utils.FormatUtils.getFullLoginName ( user.getLoginName ( ) , user.getDomain ( ) ) ; }
Source:
private void clearDomainFromCache ( org.ovirt.engine.core.compat.Guid domainId , java.util.List < org.ovirt.engine.core.compat.Guid > nonOpVdss ) { if ( domainId != null ) { _domainsInProblem.remove ( domainId ) ; } removeVdsAsProblematic ( nonOpVdss ) ; }

Target:
private void clearDomainFromCache ( org.ovirt.engine.core.compat.Guid domainId , java.util.List < org.ovirt.engine.core.compat.Guid > nonOpVdss ) { if ( domainId != null ) { _domainsInProblem.remove ( domainId ) ; } removeVdsAsProblematic ( nonOpVdss ) ; removeVdsFromDomainMaintenance ( nonOpVdss ) ; }
Source:
public boolean isVisible ( ) { return getModel ( ) . getHasDomain ( ) ; }

Target:
public boolean getIsAvailable ( ) { return getModel ( ) . getHasDomain ( ) ; }
Source:
public void storageDomainWithIdNullPool ( ) { b.setStorageDomainId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; b.setStoragePoolId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID2 ) ; final org.ovirt.engine.core.common.businessentities.StorageDomain s = b.getStorageDomain ( ) ; org.junit.Assert.assertNull ( s ) ; }

Target:
public void storageDomainWithIdNullPool ( ) { b.setStorageDomainId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; b.setStoragePoolId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID2 ) ; final org.ovirt.engine.core.common.businessentities.StorageDomain s = b.getStorageDomain ( ) ; org.junit.jupiter.api.Assertions.assertNull ( s ) ; }
Source:
public void setId ( org.ovirt.engine.core.common.businessentities.storage.LUN_storage_server_connection_map_id value ) { this . id = value ; }

Target:
public void setId ( org.ovirt.engine.core.common.businessentities.storage.LUNStorageServerConnectionMapId value ) { this . id = value ; }
Source:
private org.ovirt.engine.core.common.action.VmPoolSimpleUserParameters getPoolUserSimpleParameters ( ) { org.ovirt.engine.core.common.action.VdcActionParametersBase tempVar = org.ovirt.engine.core.bll.VmPoolSimpleUserCommandBase.getParameters ( ) ; return ( ( org.ovirt.engine.core.common.action.VmPoolSimpleUserParameters ) ( tempVar instanceof org.ovirt.engine.core.common.action.VmPoolSimpleUserParameters ? tempVar : null ) ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid getAdUserId ( ) { return org.ovirt.engine.core.bll.VmPoolSimpleUserCommandBase.getParameters ( ) . getUserId ( ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { getModel ( ) . getIsSoundcardEnabled ( ) . setEntity ( ( ( java.lang.Boolean ) ( returnValue ) ) ) ; initTemplate ( ) ; initCdImage ( ) ; }

Target:
public void onSuccess ( java.lang.Object nothing , java.lang.Object returnValue ) { getModel ( ) . getIsSoundcardEnabled ( ) . setEntity ( ( ( java.lang.Boolean ) ( returnValue ) ) ) ; initTemplate ( ) ; initCdImage ( ) ; }
Source:
public abstract org.ovirt.engine.core.bll.ValidationResult allValuesPresent ( ) ;

Target:
public abstract org.ovirt.engine.core.bll.ValidationResult requiredValuesPresent ( ) ;
Source:
public void testWrongKeyPair ( ) throws java.lang.Exception { sshDialog.setKeyPair ( java.security.KeyPairGenerator.getInstance ( "RSA" ) . generateKeyPair ( ) ) ; sshDialog.connect ( ) ; sshDialog.authenticate ( ) ; }

Target:
public void testWrongPassword ( ) throws java.lang.Exception { sshDialog.setKeyPair ( null ) ; sshDialog.setPassword ( "bad" ) ; sshDialog.connect ( ) ; org.junit.jupiter.api.Assertions.assertThrows ( javax.naming.AuthenticationException.class , sshDialog :: authenticate ) ; }
Source:
public java.lang.String getPmProxyPreferences ( ) { return vdsStatic.getPmProxyPreferences ( ) ; }

Target:
public java.lang.String getPmProxyPreferences ( ) { return org.ovirt.engine.core.common.utils.pm.FenceProxySourceTypeHelper.saveAsString ( getFenceProxySources ( ) ) ; }
Source:
public void setupEnvironment ( java.util.Hashtable env , java.lang.String userDn , java.lang.String password ) throws javax.naming.NamingException { env.put ( javax.naming.Context.SECURITY_AUTHENTICATION , org.ovirt.engine.extensions.aaa.builtin.kerberosldap.GSSAPIDirContextAuthenticationStrategy.GSS_API_AUTHENTICATION ) ; java.lang.String qopValue = org.ovirt.engine.core.common.config.Config.< java.lang.String > getValue ( ConfigValues.SASL_QOP ) ; env.put ( "javax.security.sasl.qop" , qopValue ) ; }

Target:
public void setupEnvironment ( java.util.Hashtable env , java.lang.String userDn , java.lang.String password ) throws javax.naming.NamingException { env.put ( javax.naming.Context.SECURITY_AUTHENTICATION , org.ovirt.engine.extensions.aaa.builtin.kerberosldap.GSSAPIDirContextAuthenticationStrategy.GSS_API_AUTHENTICATION ) ; java.lang.String qopValue = configuration.getProperty ( "config.SASL_QOP" ) ; env.put ( "javax.security.sasl.qop" , qopValue ) ; }
Source:
public void canDoActionFails ( ) { cmd = createTestCommand ( volumeId1 , 0 ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }

Target:
public void canDoActionFails ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( volumeId1 , 0 ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }
Source:
public void clearError ( ) { getImportSourceValid ( ) . setMessage ( "" ) ; getImportSourceValid ( ) . setEntity ( true ) ; }

Target:
public void setError ( java.lang.String problem ) { getProblemDescription ( ) . setIsValid ( false ) ; getProblemDescription ( ) . setEntity ( problem ) ; }
Source:
public javax.ws.rs.core.Response remove ( ) { return adaptRemove ( delegate :: remove ) ; }

Target:
public org.ovirt.engine.api.v3.types.V3HostNIC update ( org.ovirt.engine.api.v3.types.V3HostNIC nic ) { return adaptUpdate ( getDelegate ( ) :: update , nic ) ; }
Source:
public void validateVmMemoryCanStartOnVds ( ) { boolean vmPassedMemoryRequirement = slaValidator.hasPhysMemoryToRunVM ( vds , vm , 0 ) ; org.junit.Assert.assertTrue ( vmPassedMemoryRequirement ) ; }

Target:
public void validateVmMemoryCanStartOnVds ( ) { boolean vmPassedMemoryRequirement = slaValidator.hasPhysMemoryToRunVM ( vds , vm , 0 ) ; org.junit.jupiter.api.Assertions.assertTrue ( vmPassedMemoryRequirement ) ; }
Source:
public void shouldDetectCpuPinning ( ) { invalidVM.setCpuPinning ( "i am pinned" ) ; org.hamcrest.MatcherAssert.assertThat ( validator.isVmReadyForUpgrade ( invalidVM ) , org.hamcrest.CoreMatchers.hasItem ( UPGRADE_ERROR.VM_CPUS_PINNED ) ) ; }

Target:
public void shouldDetectNonMigratableVMs ( ) { invalidVM.setMigrationSupport ( org.ovirt.engine.core.common.businessentities.MigrationSupport.PINNED_TO_HOST ) ; org.hamcrest.MatcherAssert.assertThat ( validator.checkVmReadyForUpgrade ( invalidVM ) , org.hamcrest.CoreMatchers.hasItem ( UPGRADE_ERROR.VM_NOT_MIGRATABLE ) ) ; }
Source:
private void logEventForUser ( java.lang.String userName , org.ovirt.engine.core.common.AuditLogType auditLogType ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase msg = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; msg.setUserName ( userName ) ; org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( msg , auditLogType ) ; }

Target:
private void logEventForUser ( java.lang.String userName , org.ovirt.engine.core.common.AuditLogType auditLogType ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase msg = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; msg.setUserName ( userName ) ; auditLogDirector.log ( msg , auditLogType ) ; }
Source:
private boolean hasTasksWithoutVdsmId ( java.util.List < org.ovirt.engine.core.common.businessentities.AsyncTasks > tasks ) { for ( org.ovirt.engine.core.common.businessentities.AsyncTasks task : tasks ) { if ( org.ovirt.engine.core.bll.tasks.AsyncTaskManager.hasEmptyVdsmId ( task ) ) { return true ; } } return false ; }

Target:
private boolean hasTasksWithoutVdsmId ( java.util.List < org.ovirt.engine.core.common.businessentities.AsyncTask > tasks ) { for ( org.ovirt.engine.core.common.businessentities.AsyncTask task : tasks ) { if ( org.ovirt.engine.core.bll.tasks.AsyncTaskManager.hasEmptyVdsmId ( task ) ) { return true ; } } return false ; }
Source:
public void externalNetworkIsAVmNetwork ( ) { org.mockito.Mockito.when ( network.isVmNetwork ( ) ) . thenReturn ( true ) ; org.junit.Assert.assertThat ( validator.externalNetworkIsVmNetwork ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void externalNetworkIsAVmNetwork ( ) { org.mockito.Mockito.when ( network.isVmNetwork ( ) ) . thenReturn ( true ) ; org.hamcrest.MatcherAssert.assertThat ( validator.externalNetworkIsVmNetwork ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.GraphicsDevice > getGraphicsDevices ( ) { if ( ( cachedGraphics ) == null ) { cachedGraphics = org.ovirt.engine.core.bll.UpdateVmTemplateCommand.getBackend ( ) . runInternalQuery ( QueryType.GetGraphicsDevices , new org.ovirt.engine.core.common.queries.IdQueryParameters ( org.ovirt.engine.core.bll.UpdateVmTemplateCommand.getVmTemplateId ( ) ) ) . getReturnValue ( ) ; } return cachedGraphics ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.GraphicsDevice > getGraphicsDevices ( ) { if ( ( cachedGraphics ) == null ) { cachedGraphics = backend.runInternalQuery ( QueryType.GetGraphicsDevices , new org.ovirt.engine.core.common.queries.IdQueryParameters ( org.ovirt.engine.core.bll.UpdateVmTemplateCommand.getVmTemplateId ( ) ) ) . getReturnValue ( ) ; } return cachedGraphics ; }
Source:
public void put ( org.ovirt.engine.core.common.businessentities.CommandEntity cmdEntity ) { commandMap.put ( cmdEntity.getId ( ) , cmdEntity ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getCommandEntityDao ( ) . saveOrUpdate ( cmdEntity ) ; }

Target:
public java.lang.Void runInTransaction ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getCommandEntityDao ( ) . saveOrUpdate ( cmdEntity ) ; return null ; }
Source:
public void updateAll ( java.util.Collection < org.ovirt.engine.core.common.businessentities.VdsDynamic > entities ) { for ( org.ovirt.engine.core.common.businessentities.VdsDynamic entity : entities ) { update ( entity ) ; } }

Target:
public void updateVdsDynamicPowerManagementPolicyFlag ( org.ovirt.engine.core.compat.Guid id , boolean controlledByPmPolicy ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "vds_id" , id ) . addValue ( "controlled_by_pm_policy" , controlledByPmPolicy ) ; getCallsHandler ( ) . executeModification ( "UpdateVdsDynamicPowerManagementPolicyFlag" , parameterSource ) ; }
Source:
public void write ( byte [ ] b , int off , int len ) throws java.io.IOException { super . write ( b , off , len ) ; this . index += len ; }

Target:
public void write ( byte [ ] b , int off , int len ) throws java.io.IOException { out.write ( b , off , len ) ; this . index += len ; }
Source:
private org.ovirt.engine.core.common.businessentities.storage_domains getStorageDomain ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.common.businessentities.StorageDomainType type ) { org.ovirt.engine.core.common.businessentities.storage_domains sd = new org.ovirt.engine.core.common.businessentities.storage_domains ( ) ; sd.setId ( id ) ; sd.setstorage_domain_type ( type ) ; return sd ; }

Target:
private org.ovirt.engine.core.common.businessentities.StorageDomain getStorageDomain ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.common.businessentities.StorageDomainType type ) { org.ovirt.engine.api.restapi.resource.StorageDomain sd = new org.ovirt.engine.api.restapi.resource.StorageDomain ( ) ; sd.setId ( id ) ; sd.setstorage_domain_type ( type ) ; return sd ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledNotSetNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setType ( UsbType.NATIVE ) ; assertEquals ( UsbPolicy.ENABLED_NATIVE , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE ) ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; usb.setType ( UsbType.NATIVE ) ; org.junit.Assert.assertEquals ( UsbPolicy.ENABLED_NATIVE , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE ) ) ; }