auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public java.util.Map < java.lang.String , java.lang.Object > prepareImage ( java.lang.String sdID , java.lang.String spID , java.lang.String imageID , java.lang.String volumeID ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > verifyUntrustedVolume ( java.lang.String sdID , java.lang.String spID , java.lang.String imageID , java.lang.String volumeID ) ;
Source:
public boolean checkProxyHostConnectionToHost ( ) { return runFencingAction ( FenceActionType.Status , FenceAgentOrder.Primary ) . getSucceeded ( ) ; }

Target:
public boolean checkProxyHostConnectionToHost ( ) { return runFenceAction ( FenceActionType.Status , FenceAgentOrder.Primary ) . getSucceeded ( ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcActionParametersBase getaction_parameters ( ) { return this . actionParameters ; }

Target:
public org.ovirt.engine.core.common.action.VdcActionParametersBase getActionParameters ( ) { return this . actionParameters ; }
Source:
protected java.lang.String renderNullSafe ( org.ovirt.engine.core.common.businessentities.network.NetworkQoS qos ) { return qos.getName ( ) ; }

Target:
protected java.lang.String renderNullSafe ( org.ovirt.engine.core.common.businessentities.network.HostNetworkQos qos ) { return qos.getName ( ) ; }
Source:
public boolean checkIfCpusSameManufacture ( java.lang.String cpuName1 , java.lang.String cpuName2 , org.ovirt.engine.core.compat.Version ver ) { final org.ovirt.engine.core.bll.CpuFlagsManagerHandler.CpuFlagsManager cpuFlagsManager = org.ovirt.engine.core.bll.CpuFlagsManagerHandler._managersDictionary.get ( ver ) ; if ( cpuFlagsManager != null ) { return cpuFlagsManager.checkIfCpusSameManufacture ( cpuName1 , cpuName2 ) ; } return false ; }

Target:
public boolean checkIfCpusSameManufacture ( java.lang.String cpuName1 , java.lang.String cpuName2 , org.ovirt.engine.core.compat.Version ver ) { final org.ovirt.engine.core.bll.CpuFlagsManagerHandler.CpuFlagsManager cpuFlagsManager = org.ovirt.engine.core.bll.CpuFlagsManagerHandler.managersDictionary.get ( ver ) ; return cpuFlagsManager != null ? cpuFlagsManager.checkIfCpusSameManufacture ( cpuName1 , cpuName2 ) : false ; }
Source:
public void updateAll ( java.lang.String procedureName , java.util.Collection < org.ovirt.engine.core.common.businessentities.VdsDynamic > entities ) { updateAll ( entities ) ; }

Target:
public void updateUpdateAvailable ( org.ovirt.engine.core.compat.Guid id , boolean updateAvailable ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "vds_guid" , id ) . addValue ( "is_update_available" , updateAvailable ) ; getCallsHandler ( ) . executeModification ( "UpdateVdsDynamicIsUpdateAvailable" , parameterSource ) ; }
Source:
public void setTitle ( java.lang.String text ) { this . title = text ; }

Target:
public void setTitle ( com.google.gwt.safehtml.shared.SafeHtml text ) { tooltipPanel.setText ( text ) ; }
Source:
public java.lang.Object getQueryableId ( ) { throw new org.ovirt.engine.core.common.businessentities.NotImplementedException ( "QueryableId not overridden in type" ) ; }

Target:
public java.lang.Object getQueryableId ( ) { throw new org.ovirt.engine.core.compat.NotImplementedException ( "QueryableId not overridden in type" ) ; }
Source:
public void iscsiBondDoesNotExist ( ) { org.ovirt.engine.core.bll.ValidationResult res = validator.isIscsiBondExist ( null ) ; org.junit.Assert.assertEquals ( EngineMessage.ISCSI_BOND_NOT_EXIST , res.getMessage ( ) ) ; }

Target:
public void iscsiBondDoesNotExist ( ) { org.ovirt.engine.core.bll.ValidationResult res = validator.isIscsiBondExist ( null ) ; org.junit.Assert.assertThat ( res , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ISCSI_BOND_NOT_EXIST ) ) ; }
Source:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { super . executeCommand ( command ) ; if ( command == ( getMoveItemUpCommand ( ) ) ) { MoveItemUp ( ) ; } else if ( command == ( getMoveItemDownCommand ( ) ) ) { MoveItemDown ( ) ; } }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { super . executeCommand ( command ) ; if ( command == ( getMoveItemUpCommand ( ) ) ) { moveItemUp ( ) ; } else if ( command == ( getMoveItemDownCommand ( ) ) ) { moveItemDown ( ) ; } }
Source:
private boolean isDiskImage ( org.ovirt.engine.api.model.Disk disk ) { return ( disk.getDiskStorageType ( ) ) == org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.Disk ; }

Target:
private boolean isDiskImage ( org.ovirt.engine.api.model.Disk disk ) { return ( disk.getDiskStorageType ( ) ) == org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.storage.Disk ; }
Source:
public boolean isEnabled ( ) { for ( org.ovirt.engine.ui.uicommonweb.models.EntityModel model : getNetworksTableItems ( ) ) { org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkManageModel clusterNetworkManageModel = ( ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkManageModel ) ( model ) ) ; if ( clusterNetworkManageModel.getIsChangable ( ) ) { return true ; } } return false ; }

Target:
public boolean isEnabled ( ) { for ( org.ovirt.engine.ui.uicommonweb.models.EntityModel model : getNetworksTableItems ( ) ) { org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel clusterNetworkManageModel = ( ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel ) ( model ) ) ; if ( clusterNetworkManageModel.getIsChangable ( ) ) { return true ; } } return false ; }
Source:
public void validateNonExternalJobFails ( ) throws java.lang.Exception { setupMock ( ) ; parameters.setJobId ( org.ovirt.engine.core.bll.EndExternalJobCommandTest.nonExternalJobId ) ; org.junit.Assert.assertTrue ( ( ! ( commandMock.validate ( ) ) ) ) ; }

Target:
public void validateNonExistingJobFails ( ) throws java.lang.Exception { setupMock ( ) ; org.mockito.Mockito.when ( jobDaoMock.get ( org.ovirt.engine.core.bll.EndExternalJobCommandTest.jobId ) ) . thenReturn ( null ) ; org.junit.Assert.assertTrue ( ( ! ( commandMock.validate ( ) ) ) ) ; }
Source:
public void testValidateNetworkExclusiveOnNicsVmNetworkMustBeSoleAttachedInterface1 ( ) throws java.lang.Exception { checkVmNetworkIsSoleAssignedInterface ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NETWORK_INTERFACES_NOT_EXCLUSIVELY_USED_BY_NETWORK ) , vmNetwork1 , vmNetwork2 ) ; }

Target:
public void testValidateNetworkExclusiveOnNicsTwoVmNetworksAttachedToInterface ( ) throws java.lang.Exception { checkVmNetworkIsSoleAssignedInterface ( false , java.util.Arrays.asList ( NetworkType.VM , NetworkType.VM ) , vmNetwork1 , vmNetwork2 ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel vmModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel ) ( target ) ) ; vmModel.set_MaxMemSize64 ( ( ( java.lang.Integer ) ( returnValue ) ) ) ; }

Target:
public void setSerialNumberPolicy ( org.ovirt.engine.ui.uicommonweb.models.vms.SerialNumberPolicyModel value ) { this . serialNumberPolicy = value ; }
Source:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( ) { return getMainModel ( ) . getNewVolumeCommand ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity getValue ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity object ) { return object ; }
Source:
public void nameIsNullForDefault ( ) throws java.lang.Exception { assertNicValidation ( createNic ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_MAC_ADDRESS , null , org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_NIC_TYPE ) , javax.validation.groups.Default.class , false , VmNetworkInterface.VALIDATION_MESSAGE_NAME_NOT_NULL ) ; }

Target:
public void nameIsNullForDefault ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.assertNicValidation ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.createNic ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_MAC_ADDRESS , null , org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_NIC_TYPE ) , javax.validation.groups.Default.class , false , VmNetworkInterface.VALIDATION_MESSAGE_NAME_NOT_NULL ) ; }
Source:
public int compareTo ( org.ovirt.api.metamodel.concepts.Concept that ) { return this . getName ( ) . compareTo ( that.getName ( ) ) ; }

Target:
public org.ovirt.api.metamodel.concepts.Annotation getAnnotation ( org.ovirt.api.metamodel.concepts.Name name ) { return annotations.stream ( ) . filter ( org.ovirt.api.metamodel.concepts.Named.named ( name ) ) . findFirst ( ) . orElse ( null ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase logOff ( org.ovirt.engine.core.common.users.VdcUser userToLogoff ) { org.ovirt.engine.core.common.action.LogoutUserParameters params = new org.ovirt.engine.core.common.action.LogoutUserParameters ( userToLogoff.getUserId ( ) ) ; params.setSessionId ( getSessionId ( ) ) ; org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue = getBackend ( ) . Logoff ( params ) ; return returnValue ; }

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase logOff ( org.ovirt.engine.core.common.businessentities.DbUser userToLogoff ) { org.ovirt.engine.core.common.action.LogoutUserParameters params = new org.ovirt.engine.core.common.action.LogoutUserParameters ( userToLogoff.getId ( ) ) ; params.setSessionId ( getSessionId ( ) ) ; org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue = getBackend ( ) . Logoff ( params ) ; return returnValue ; }
Source:
protected void setActionMessageParameters ( ) { super . setActionMessageParameters ( ) ; addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__ADD ) ; }

Target:
protected boolean canDoAction ( ) { return ( super . canDoAction ( ) ) && ( validate ( getQosValidator ( getQos ( ) ) . peakConsistentWithAverage ( ) ) ) ; }
Source:
public org.ovirt.engine.api.v3.types.V3Template update ( org.ovirt.engine.api.v3.types.V3Template template ) { return adaptUpdate ( delegate :: update , template ) ; }

Target:
public org.ovirt.engine.api.v3.types.V3Template update ( org.ovirt.engine.api.v3.types.V3Template template ) { return adaptUpdate ( getDelegate ( ) :: update , template ) ; }
Source:
public void asGraphicsTypeInverseOfAsConsoleId ( org.ovirt.engine.core.common.businessentities.GraphicsType type ) { org.junit.Assert.assertEquals ( type , org.ovirt.engine.api.restapi.resource.BackendGraphicsConsoleHelper.asGraphicsType ( org.ovirt.engine.api.restapi.resource.BackendGraphicsConsoleHelper.asConsoleId ( type ) ) ) ; }

Target:
public void asGraphicsTypeInverseOfAsConsoleId ( org.ovirt.engine.core.common.businessentities.GraphicsType type ) { org.junit.jupiter.api.Assertions.assertEquals ( type , org.ovirt.engine.api.restapi.resource.BackendGraphicsConsoleHelper.asGraphicsType ( org.ovirt.engine.api.restapi.resource.BackendGraphicsConsoleHelper.asConsoleId ( type ) ) ) ; }
Source:
public static void addDiskImage ( org.ovirt.engine.core.common.businessentities.DiskImage image , org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.bll.ImagesHandler.addDiskImage ( image , image.getactive ( ) , new org.ovirt.engine.core.common.businessentities.image_storage_domain_map ( image.getImageId ( ) , image.getstorage_ids ( ) . get ( 0 ) ) , vmId ) ; }

Target:
public static void addDiskImage ( org.ovirt.engine.core.common.businessentities.DiskImage image , org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.bll.ImagesHandler.addDiskImage ( image , image.getActive ( ) , new org.ovirt.engine.core.common.businessentities.image_storage_domain_map ( image.getImageId ( ) , image.getStorageIds ( ) . get ( 0 ) ) , vmId ) ; }
Source:
protected void executeCommand ( ) { for ( org.ovirt.engine.core.common.businessentities.VmDevice watchdog : getWatchdogs ( ) ) { getVmDeviceDao ( ) . remove ( watchdog.getId ( ) ) ; } setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { for ( org.ovirt.engine.core.common.businessentities.VmDevice watchdog : getWatchdogs ( ) ) { vmDeviceDao.remove ( watchdog.getId ( ) ) ; } setSucceeded ( true ) ; }
Source:
public void Configure ( org.ovirt.engine.ui.uicommonweb.models.SearchableListModel searchableListModel ) { searchableListModel.setIsAsync ( getIsAsync ( ) ) ; }

Target:
public void configure ( org.ovirt.engine.ui.uicommonweb.models.SearchableListModel searchableListModel ) { searchableListModel.setIsAsync ( getIsAsync ( ) ) ; }
Source:
private void updateVolumeFormat ( org.ovirt.engine.core.common.businessentities.VolumeType volumeType , org.ovirt.engine.core.common.businessentities.StorageType storageType ) { setVolumeFormat ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.GetDiskVolumeFormat ( volumeType , storageType ) ) ; }

Target:
private void updateVolumeFormat ( org.ovirt.engine.core.common.businessentities.VolumeType volumeType , org.ovirt.engine.core.common.businessentities.StorageType storageType ) { setVolumeFormat ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getDiskVolumeFormat ( volumeType , storageType ) ) ; }
Source:
private void ProcessExceptionToClient ( org.ovirt.engine.core.common.errors.VdcFault fault ) { fault.setSessionID ( getParameters ( ) . getSessionId ( ) ) ; _returnValue.setFault ( fault ) ; }

Target:
private void processExceptionToClient ( org.ovirt.engine.core.common.errors.VdcFault fault ) { fault.setSessionID ( getParameters ( ) . getSessionId ( ) ) ; _returnValue.setFault ( fault ) ; }
Source:
private com.google.gwt.safehtml.shared.SafeHtml listItem ( java.lang.String msg ) { return org.ovirt.engine.ui.common.widget.uicommon.popup.vm.VmNextRunConfigurationWidget.templates.listItem ( com.google.gwt.safehtml.shared.SafeHtmlUtils.fromSafeConstant ( msg ) ) ; }

Target:
private com.google.gwt.safehtml.shared.SafeHtml bulletedItem ( java.lang.String msg ) { return org.ovirt.engine.ui.common.widget.uicommon.popup.vm.VmNextRunConfigurationWidget.templates.unorderedList ( org.ovirt.engine.ui.common.widget.uicommon.popup.vm.VmNextRunConfigurationWidget.templates.listItem ( com.google.gwt.safehtml.shared.SafeHtmlUtils.fromSafeConstant ( msg ) ) ) ; }
Source:
public void ExecuteCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { if ( "CancelError" . equals ( command.getName ( ) ) ) { parentModel.setConfirmWindow ( null ) ; } }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { if ( "CancelError" . equals ( command.getName ( ) ) ) { parentModel.setConfirmWindow ( null ) ; } }
Source:
private void loadProviders ( ) { switch ( importSources.getSelectedItem ( ) ) { case VMWARE : loadVmwareProviders ( ) ; break ; case KVM : loadKvmProviders ( ) ; break ; default : } }

Target:
private void loadProviders ( ) { switch ( importSources.getSelectedItem ( ) ) { case VMWARE : loadVmwareProviders ( ) ; break ; case KVM : loadKvmProviders ( ) ; break ; case XEN : loadXenProviders ( ) ; break ; default : } }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeTaskStatusEntity rebalanceEntity = ( ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeTaskStatusEntity ) ( returnValue ) ) ; showStatus ( rebalanceEntity ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { org.ovirt.engine.core.common.queries.VdcQueryReturnValue vdcValue = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) ; org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeTaskStatusEntity rebalanceStatusEntity = vdcValue.getReturnValue ( ) ; if ( rebalanceStatusEntity != null ) { showStatus ( rebalanceStatusEntity ) ; } }
Source:
public void setSpmPriorityValue ( java.lang.Integer value ) { if ( spmInitialized ) { UpdateSpmPriority ( value ) ; } else { postponedSpmPriority = value ; } }

Target:
public void setSpmPriorityValue ( java.lang.Integer value ) { if ( spmInitialized ) { updateSpmPriority ( value ) ; } else { postponedSpmPriority = value ; } }
Source:
public void testCanDoActionStorageDomainIsFileStorage ( ) { storageDomain.setStorageType ( StorageType.NFS ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , VdcBllMessages.ACTION_TYPE_FAILED_ALIGNMENT_SCAN_STORAGE_TYPE ) ; }

Target:
public void testCanDoActionStorageDomainIsFileStorage ( ) { storageDomain.setStorageType ( StorageType.NFS ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_ALIGNMENT_SCAN_STORAGE_TYPE ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.MigrationSupport getMigrationSupport ( ) { return this . mVmStatic.getMigrationSupport ( ) ; }

Target:
public int getNiceLevel ( ) { return this . vmStatic.getnice_level ( ) ; }
Source:
public boolean isValid ( java.lang.String field , java.lang.String value ) { return org.ovirt.engine.core.searchbackend.BaseConditionFieldAutoCompleter.validChar.IsMatch ( value ) ; }

Target:
public boolean isValid ( java.lang.String field , java.lang.String value ) { return org.ovirt.engine.core.searchbackend.BaseConditionFieldAutoCompleter.validChar.isMatch ( value ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.LdapUser getExpectedResult ( ) { return new org.ovirt.engine.core.common.businessentities.LdapUser ( NAME_TO_SEARCH , "melon!" , org.ovirt.engine.core.compat.Guid.newGuid ( ) , DOMAIN ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.LdapUser getExpectedResult ( ) { org.ovirt.engine.core.common.businessentities.LdapUser user = new org.ovirt.engine.core.common.businessentities.LdapUser ( ) ; user.setUserName ( org.ovirt.engine.core.bll.NAME_TO_SEARCH ) ; user.setPassword ( "melon!" ) ; user.setUserId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; user.setDomainControler ( org.ovirt.engine.core.bll.DOMAIN ) ; return user ; }
Source:
private org.ovirt.engine.core.common.businessentities.VM getEntity ( java.lang.Object object ) { return ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData ) ( object ) ) . getVm ( ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { addBadMacsValidationListener ( model ) ; }
Source:
private org.ovirt.engine.core.dao.StoragePoolDAO getStoragePoolDAO ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStoragePoolDao ( ) ; }

Target:
private org.ovirt.engine.core.dao.StoragePoolDao getStoragePoolDao ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStoragePoolDao ( ) ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.executeAsyncCommand ( VdcActionType.HostEnrollCertificateInternal , getParameters ( ) , cloneContextAndDetachFromParent ( ) ) ; setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.executeAsyncCommand ( ActionType.HostEnrollCertificateInternal , getParameters ( ) , cloneContextAndDetachFromParent ( ) ) ; setSucceeded ( true ) ; }
Source:
protected void setupSelectedProtocol ( final org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel model ) { selectedProtocol = consoleUtils.determineDefaultProtocol ( model ) ; }

Target:
protected void setupSelectedProtocol ( final org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel model ) { selectedProtocol = consoleUtils.determineConnectionProtocol ( model ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult hasSpaceForNewDisks ( java.util.Collection < org.ovirt.engine.core.common.businessentities.DiskImage > diskImages ) { double availableSize = storageDomain.getAvailableDiskSizeInBytes ( ) ; double totalSizeForDisks = getTotalSizeForNewDisks ( diskImages ) ; return validateRequiredSpace ( availableSize , totalSizeForDisks ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult hasSpaceForNewDisks ( java.util.Collection < org.ovirt.engine.core.common.businessentities.DiskImage > diskImages ) { java.lang.Long availableSize = storageDomain.getAvailableDiskSizeInBytes ( ) ; double totalSizeForDisks = getTotalSizeForNewDisks ( diskImages ) ; return validateRequiredSpace ( availableSize , totalSizeForDisks ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.AuditLog getEventWithOvirtOrigin ( ) { org.ovirt.engine.core.common.businessentities.AuditLog auditLog = new org.ovirt.engine.core.common.businessentities.AuditLog ( ) ; auditLog.setaudit_log_id ( org.ovirt.engine.core.bll.RemoveExternalEventCommandTest.EVENT_ID_2 ) ; auditLog.setOrigin ( org.ovirt.engine.core.bll.RemoveExternalEventCommandTest.OVIRT_ORIGIN ) ; return auditLog ; }

Target:
private org.ovirt.engine.core.common.businessentities.AuditLog getEventWithOvirtOrigin ( ) { org.ovirt.engine.core.common.businessentities.AuditLog auditLog = new org.ovirt.engine.core.common.businessentities.AuditLog ( ) ; auditLog.setaudit_log_id ( org.ovirt.engine.core.bll.RemoveAuditLogByIdCommandTest.EVENT_ID_2 ) ; auditLog.setOrigin ( org.ovirt.engine.core.bll.RemoveAuditLogByIdCommandTest.OVIRT_ORIGIN ) ; return auditLog ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VdsNumaNode > ( ) ; } return source ; }

Target:
public T convert ( java.lang.Object returnValue ) { T value = super . convert ( returnValue ) ; return value != null ? value : defaultValue ; }
Source:
public void clearAsyncTask ( ) { if ( Guid.Empty.equals ( getVdsmTaskId ( ) ) ) { RemoveTaskFromDB ( ) ; return ; } clearAsyncTask ( false ) ; }

Target:
public void clearAsyncTask ( ) { if ( Guid.Empty.equals ( getVdsmTaskId ( ) ) ) { removeTaskFromDB ( ) ; return ; } clearAsyncTask ( false ) ; }
Source:
protected boolean migrationSupportedForArch ( org.ovirt.engine.core.common.businessentities.ArchitectureType arch ) { return org.ovirt.engine.core.common.FeatureSupported.isMigrationSupported ( arch , cluster.getcompatibility_version ( ) ) ; }

Target:
protected boolean migrationSupportedForArch ( org.ovirt.engine.core.common.businessentities.ArchitectureType arch ) { return org.ovirt.engine.core.common.FeatureSupported.isMigrationSupported ( arch , cluster.getCompatibilityVersion ( ) ) ; }
Source:
protected void updateReportsAvailability ( ) { if ( ( org.ovirt.engine.ui.common.uicommon.model.CommonModelManager.instance ( ) ) != null ) { org.ovirt.engine.ui.common.uicommon.model.CommonModelManager.instance ( ) . updateReportsAvailability ( ) ; } }

Target:
protected void updateReportsAvailability ( ) { commonModelProvider.get ( ) . updateReportsAvailability ( ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { spice.setWANDisableEffects ( ( ( java.util.List < org.ovirt.engine.core.common.console.ConsoleOptions.WanDisableEffects > ) ( returnValue ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { spice.getOptions ( ) . setWanDisableEffects ( ( ( java.util.List < org.ovirt.engine.core.common.console.ConsoleOptions.WanDisableEffects > ) ( returnValue ) ) ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.UICommand getDefaultCommand ( ) { return getDetailsCommand ( ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.UICommand getDoubleClickCommand ( ) { return getDetailsCommand ( ) ; }
Source:
protected void setImageStatus ( org.ovirt.engine.core.common.businessentities.ImageStatus imageStatus ) { setImageStatus ( imageStatus , getRelevantDiskImage ( ) ) ; }

Target:
protected void setImageStatus ( org.ovirt.engine.core.common.businessentities.storage.ImageStatus imageStatus ) { setImageStatus ( imageStatus , getRelevantDiskImage ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.Cluster getCluster ( ) { return getEntity ( org.ovirt.engine.core.common.businessentities.Cluster.class , VdcQueryType.GetClusterById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( clusterId ) , clusterId.toString ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.queries.VdcQueryParametersBase getQueryParameters ( ) { return new org.ovirt.engine.core.common.queries.IdQueryParameters ( asGuid ( clusterId ) ) ; }
Source:
public void passthroughProfileValidProprerties ( ) { passthroughProfileContainsSupportedPropertiesTest ( true , false , null ) ; org.junit.Assert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void nonPassthroughProfileContainsPortMirroringAndQos ( ) { passthroughProfileContainsSupportedPropertiesTest ( false , true , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_GUID , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.VALID_NETWORK_FILTER_ID ) ; org.junit.Assert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( false ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface getEntity ( int index ) { return org.ovirt.engine.api.restapi.resource.BackendTemplateNicsResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface.class ) , control.createMock ( org.ovirt.engine.core.common.businessentities.network.VmNetworkStatistics.class ) , index ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface getEntity ( int index ) { return org.ovirt.engine.api.restapi.resource.BackendTemplateNicsResourceTest.setUpEntityExpectations ( org.mockito.Mockito.mock ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface.class ) , org.mockito.Mockito.mock ( org.ovirt.engine.core.common.businessentities.network.VmNetworkStatistics.class ) , index ) ; }
Source:
public void setSanStorageModel ( org.ovirt.engine.ui.uicommonweb.models.storage.SanStorageModel value ) { sanStorageModel = value ; }

Target:
public boolean isPreviousWipeAfterDeleteEntity ( ) { return previousWipeAfterDeleteEntity ; }
Source:
private void mockBackend ( ) { org.mockito.Mockito.when ( backend.runAction ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.common.action.VdcActionType.class ) , org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.common.action.CpuProfileParameters.class ) ) ) . thenReturn ( new org.ovirt.engine.core.common.action.VdcReturnValueBase ( ) ) ; }

Target:
private void mockBackend ( ) { org.mockito.Mockito.when ( backend.runAction ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.common.action.ActionType.class ) , org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.common.action.CpuProfileParameters.class ) ) ) . thenReturn ( new org.ovirt.engine.core.common.action.VdcReturnValueBase ( ) ) ; }
Source:
public void testWrongKeyPair ( ) throws java.lang.Exception { sshDialog.setKeyPair ( java.security.KeyPairGenerator.getInstance ( "RSA" ) . generateKeyPair ( ) ) ; sshDialog.connect ( ) ; sshDialog.authenticate ( ) ; }

Target:
public void testWrongKeyPair ( ) throws java.lang.Exception { sshDialog.setKeyPair ( java.security.KeyPairGenerator.getInstance ( "RSA" ) . generateKeyPair ( ) ) ; sshDialog.connect ( ) ; org.junit.jupiter.api.Assertions.assertThrows ( javax.naming.AuthenticationException.class , sshDialog :: authenticate ) ; }
Source:
private void testActionDisallowed ( ) { canDoActionFails ( ) ; hasIllegalStatusMessage ( ) ; }

Target:
private void testActionDisallowed ( ) { org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_STORAGE_DOMAIN_STATUS_ILLEGAL2 ) ; }
Source:
private void mockValidatePciAndIdeLimit ( ) { org.mockito.Mockito.doReturn ( true ) . when ( command ) . isValidPciAndIdeLimit ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.VM.class ) ) ; }

Target:
private void mockValidatePciAndIdeLimit ( ) { org.mockito.Mockito.doReturn ( true ) . when ( command ) . isValidPciAndIdeLimit ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.common.businessentities.VM.class ) ) ; }
Source:
private static java.lang.String getDeviceType ( java.util.Map device ) { return ( ( java.lang.String ) ( device.get ( VdsProperties.Device ) ) ) ; }

Target:
protected java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.vdsbroker.vdsbroker.entities.VmInternalData > getRunningVms ( ) { return _runningVms ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VDSGroup object ) { return object.getCompatibilityVersion ( ) . getValue ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.Cluster object ) { return object.getCompatibilityVersion ( ) . getValue ( ) ; }
Source:
public void testGetStrippedVdsUniqueIdWithoutValidChars ( ) { java.lang.String result = this . gerStrippedVdsUniqueId ( "^%^" ) ; org.junit.Assert.assertEquals ( "Vds id is not empty as expected" , "" , result ) ; }

Target:
public void testGetStrippedVdsUniqueIdWithoutValidChars ( ) { java.lang.String result = this . gerStrippedVdsUniqueId ( "^%^" ) ; org.junit.jupiter.api.Assertions.assertEquals ( "" , result , "Vds id is not empty as expected" ) ; }
Source:
public void setIsEmpty ( boolean value ) { if ( ( isEmpty ) != value ) { isEmpty = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "IsEmpty" ) ) ; } }

Target:
public void setIsEmpty ( boolean value ) { if ( ( isEmpty ) != value ) { isEmpty = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "IsEmpty" ) ) ; } }
Source:
private void logFailureMessage ( java.lang.RuntimeException ex ) { org.ovirt.engine.core.vdsbroker.VdsManager.log.warnFormat ( "VdsManager::refreshVdsRunTimeInfo::Failed to refresh VDS , vds = {0} : {1}, error = '{2}', continuing." , _vds.getId ( ) , _vds.getvds_name ( ) , org.apache.commons.lang.exception.ExceptionUtils.getMessage ( ex ) ) ; }

Target:
private void logAfterRefreshFailureMessage ( java.lang.RuntimeException ex ) { org.ovirt.engine.core.vdsbroker.VdsManager.log.warnFormat ( "Failed to AfterRefreshTreatment VDS error = '{0}', continuing." , org.apache.commons.lang.exception.ExceptionUtils.getMessage ( ex ) ) ; }
Source:
private void initIpConfigurationWithBootProtocol ( org.ovirt.engine.core.common.businessentities.network.Ipv4BootProtocol ipv4BootProtocol ) { initIpConfigurationWithPrimaryAddress ( ) ; getTestedNetworkAttachment ( ) . getIpConfiguration ( ) . getIpv4PrimaryAddress ( ) . setBootProtocol ( ipv4BootProtocol ) ; }

Target:
private void setIpv4BootProtocol ( org.ovirt.engine.core.common.businessentities.network.Ipv4BootProtocol ipv4BootProtocol ) { getTestedNetworkAttachment ( ) . getIpConfiguration ( ) . getIpv4PrimaryAddress ( ) . setBootProtocol ( ipv4BootProtocol ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.VM > getVmsForDiskId ( ) { if ( ( listVms ) == null ) { listVms = org.ovirt.engine.core.bll.RemoveDiskCommand.getVmDAO ( ) . getVmsListForDisk ( disk.getId ( ) ) ; } return listVms ; }

Target:
public java.lang.String getDiskAlias ( ) { if ( ( disk ) != null ) { return disk.getDiskAlias ( ) ; } return "" ; }
Source:
private java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runMultipleActionsImpl ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , boolean isInternal , boolean isRunOnlyIfAllCanDoPass , boolean isWaitForResult ) { return runMultipleActionsImpl ( actionType , parameters , isInternal , isRunOnlyIfAllCanDoPass , isWaitForResult , null ) ; }

Target:
public org.ovirt.engine.core.common.queries.VdcQueryReturnValue runInternalQuery ( org.ovirt.engine.core.common.queries.VdcQueryType queryType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase queryParameters ) { return runInternalQuery ( queryType , queryParameters , null ) ; }
Source:
private boolean checkFreeSpaceOnDestinationDomain ( org.ovirt.engine.core.common.businessentities.storage_domains domain , int requestedSizeGB ) { if ( ! ( org.ovirt.engine.core.bll.command.utils.StorageDomainSpaceChecker.hasSpaceForRequest ( domain , requestedSizeGB ) ) ) { addCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_DISK_SPACE_LOW ) ; return false ; } return true ; }

Target:
private boolean checkFreeSpaceOnDestinationDomain ( org.ovirt.engine.core.common.businessentities.storage_domains domain , int requestedSizeGB ) { return validate ( new org.ovirt.engine.core.bll.validator.StorageDomainValidator ( domain ) . isDomainHasSpaceForRequest ( requestedSizeGB ) ) ; }
Source:
protected int getMaxVolumeChain ( ) { return org.ovirt.engine.core.bll.validator.storage.DiskImagesValidator.maxImagesInChain ; }

Target:
protected int getMaxVolumeChain ( ) { return org.ovirt.engine.core.common.config.Config.getValue ( ConfigValues.MaxImagesInChain ) ; }
Source:
public void anyStatusValidWhenNoInstallationRequired ( ) { validator = new org.ovirt.engine.core.bll.validator.UpdateHostValidator ( dbFacade , oldHost , host , false ) ; org.junit.Assert.assertThat ( validator.statusSupportedForHostInstallation ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void anyStatusValidWhenNoInstallationRequired ( ) { validator = new org.ovirt.engine.core.bll.validator.UpdateHostValidator ( dbFacade , oldHost , host , false , hostedEngineHelper ) ; org.junit.Assert.assertThat ( validator.statusSupportedForHostInstallation ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.VDSGroup createDefaultVdsGroupWithDifferentCpuName ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup group = org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.createDefaultVdsGroup ( ) ; group.setCpuName ( "Another CPU name" ) ; return group ; }

Target:
private static org.ovirt.engine.core.common.businessentities.Cluster createDefaultClusterWithDifferentCpuName ( ) { org.ovirt.engine.core.common.businessentities.Cluster group = org.ovirt.engine.core.bll.UpdateClusterCommandTest.createDefaultCluster ( ) ; group.setCpuName ( "Another CPU name" ) ; return group ; }
Source:
private static org.ovirt.engine.core.common.businessentities.StoragePool createBasicPool ( ) { org.ovirt.engine.core.common.businessentities.StoragePool pool = new org.ovirt.engine.core.common.businessentities.StoragePool ( ) ; pool.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; pool.setName ( "Default" ) ; return pool ; }

Target:
private static org.ovirt.engine.core.common.businessentities.StoragePool createStoragePool ( ) { org.ovirt.engine.core.common.businessentities.StoragePool pool = new org.ovirt.engine.core.common.businessentities.StoragePool ( ) ; pool.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; pool.setName ( "Default" ) ; pool.setCompatibilityVersion ( org.ovirt.engine.core.bll.storage.pool.UpdateStoragePoolCommandTest.VERSION_1_1 ) ; return pool ; }
Source:
public void testGetFilteredWithPermissionsNoPermissions ( ) { org.ovirt.engine.core.common.businessentities.VM result = dao.get ( existingVm.getId ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetFilteredWithPermissionsNoPermissions ( ) { org.ovirt.engine.core.common.businessentities.VM result = dao.get ( existingVm.getId ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.jupiter.api.Assertions.assertNull ( result ) ; }
Source:
public abstract org.ovirt.engine.core.compat.CommandStatus getCommandStatus ( org.ovirt.engine.core.compat.Guid commandId ) ;

Target:
public java.util.List < org.ovirt.engine.core.compat.Guid > getChildCommandIds ( org.ovirt.engine.core.compat.Guid commandId ) ;
Source:
public boolean isOvirtNode ( ) { return ( getVdsType ( ) ) == ( VDSType.oVirtNode ) ; }

Target:
public boolean isOvirtVintageNode ( ) { return ( getVdsType ( ) ) == ( VDSType.oVirtVintageNode ) ; }
Source:
public void setItems ( java.lang.Iterable value ) { if ( value != null ) { java.util.Collections.sort ( ( ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VnicProfileView > ) ( value ) ) , new org.ovirt.engine.ui.uicommonweb.Linq.VnicProfileViewComparator ( ) ) ; } super . setItems ( value ) ; }

Target:
public void setItems ( java.util.Collection value ) { if ( value != null ) { java.util.Collections.sort ( ( ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VnicProfileView > ) ( value ) ) , new org.ovirt.engine.ui.uicommonweb.Linq.VnicProfileViewComparator ( ) ) ; } super . setItems ( value ) ; }
Source:
public void setTargetHistoryToken ( java.lang.String historyToken ) { hyperlink.setTargetHistoryToken ( historyToken ) ; }

Target:
public void setTargetHistoryToken ( java.lang.String historyToken ) { hyperlink.setHref ( ( "#" + historyToken ) ) ; }
Source:
protected void updateExistingEntity ( ) { existingEntity.setStatus ( JobExecutionStatus.FINISHED ) ; existingEntity.setEndTime ( new java.util.Date ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.job.Step modifyEntity ( org.ovirt.engine.core.common.job.Step entity ) { entity.setStatus ( JobExecutionStatus.FINISHED ) ; entity.setEndTime ( new java.util.Date ( ) ) ; return entity ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( C value ) { return null ; }

Target:
public void setTooltipFallback ( com.google.gwt.safehtml.shared.SafeHtml tooltipFallback ) { this . tooltipFallback = tooltipFallback ; }
Source:
public void setup ( ) { storagePool = new org.ovirt.engine.core.common.businessentities.StoragePool ( "test" , org.ovirt.engine.core.compat.Guid.NewGuid ( ) , "test" , StorageType.UNKNOWN.getValue ( ) , StoragePoolStatus.Up.getValue ( ) ) ; validator = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.storage.StoragePoolValidator ( storagePool ) ) ; }

Target:
public void setup ( ) { storagePool = new org.ovirt.engine.core.common.businessentities.StoragePool ( "test" , "" , org.ovirt.engine.core.compat.Guid.newGuid ( ) , "test" , StorageType.UNKNOWN.getValue ( ) , StoragePoolStatus.Up.getValue ( ) ) ; validator = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.storage.StoragePoolValidator ( storagePool ) ) ; }
Source:
public void versionDecreaseWithHost ( ) { createCommandWithOlderVersion ( true , false ) ; setupCpu ( ) ; vdsExist ( ) ; canDoActionFailedWithReason ( EngineMessage.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION ) ; }

Target:
public void versionDecreaseWithHost ( ) { createCommandWithOlderVersion ( true , false ) ; setupCpu ( ) ; vdsExist ( ) ; validateFailedWithReason ( EngineMessage.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION ) ; }
Source:
public boolean validate ( ) { return getLabelsModel ( ) . validate ( ) ; }

Target:
public boolean validate ( ) { getLabelsModel ( ) . validate ( ) ; return getLabelsModel ( ) . getIsValid ( ) ; }
Source:
public void setpm_options ( java.lang.String value ) { mVdsStatic.setpm_options ( value ) ; }

Target:
public void setPmOptions ( java.lang.String value ) { mVdsStatic.setPmOptions ( value ) ; }
Source:
public void setExtendedItems ( java.util.ArrayList < java.util.Map.Entry < org.ovirt.engine.core.common.businessentities.VmTemplate , org.ovirt.engine.core.common.queries.DiskImageList > > arrayList ) { templateImportDiskListModel.setExtendedItems ( arrayList ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.SearchableListModel getImportDiskListModel ( ) { return templateImportDiskListModel ; }
Source:
public java.lang.String getMacPoolName ( ) { return oldMacPool.getName ( ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.MacPool getOldMacPool ( ) { if ( ( oldMacPool ) == null ) { oldMacPool = getMacPoolDao ( ) . get ( getMacPoolId ( ) ) ; } return oldMacPool ; }
Source:
protected org.ovirt.engine.core.common.action.VdcActionParametersBase getAddParameters ( org.ovirt.engine.api.model.Network network , org.ovirt.engine.api.model.Network entity ) { return new org.ovirt.engine.core.common.action.AttachNetworkToClusterParameter ( getCluster ( ) , entity ) ; }

Target:
public org.ovirt.engine.api.model.Network lookupEntity ( org.ovirt.engine.core.compat.Guid ignore ) throws org.ovirt.engine.api.restapi.resource.BackendFailureException { return getEntity ( org.ovirt.engine.api.model.Network.class , VdcQueryType.GetNetworkById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) , guid.toString ( ) ) ; }
Source:
private void mockStoragePoolIsoMap ( ) { org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap spim = new org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap ( ) ; org.mockito.Mockito.when ( storagePoolIsoMapDao.get ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.StoragePoolIsoMapId.class ) ) ) . thenReturn ( spim ) ; }

Target:
private void mockStoragePoolIsoMap ( ) { org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap spim = new org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap ( ) ; org.mockito.Mockito.when ( storagePoolIsoMapDao.get ( org.mockito.ArgumentMatchers.any ( ) ) ) . thenReturn ( spim ) ; }
Source:
public org.ovirt.engine.api.model.Quota get ( ) ;

Target:
public javax.ws.rs.core.Response remove ( ) ;
Source:
public boolean handlesEvent ( com.google.gwt.view.client.CellPreviewEvent < org.ovirt.engine.ui.uicommonweb.models.EntityModel > event ) { return org.ovirt.engine.ui.common.widget.table.cell.EventHandlingCellMixin.inputHandlesClick ( event ) ; }

Target:
public boolean handlesEvent ( com.google.gwt.view.client.CellPreviewEvent < org.ovirt.engine.ui.uicommonweb.models.EntityModel > event ) { return ( org.ovirt.engine.ui.common.widget.table.cell.EventHandlingCellMixin.inputHandlesClick ( event ) ) || ( ElementTooltipUtils.HANDLED_CELL_EVENTS.contains ( event.getNativeEvent ( ) . getType ( ) ) ) ; }
Source:
public org.ovirt.vdsmfake.service.Host getHostByName ( java.lang.String name ) { return org.ovirt.vdsmfake.service.VdsmManager.getInstance ( ) . getHostByName ( name ) ; }

Target:
public org.ovirt.vdsmfake.domain.Host getHostByName ( java.lang.String name ) { return org.ovirt.vdsmfake.domain.VdsmManager.getInstance ( ) . getHostByName ( name ) ; }
Source:
public void outboundPeakLowerThanAverage ( ) { qos.setInboundPeak ( org.ovirt.engine.core.bll.validator.NetworkQosValidatorTest.BANDWIDTH_HIGH ) ; qos.setOutboundPeak ( org.ovirt.engine.core.bll.validator.NetworkQosValidatorTest.BANDWIDTH_LOW ) ; peakConsistentWithAverageTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_NETWORK_QOS_PEAK_LOWER_THAN_AVERAGE ) ) ; }

Target:
public void outboundPeakLowerThanAverage ( ) { qos.setInboundPeak ( org.ovirt.engine.core.bll.validator.NetworkQosValidatorTest.BANDWIDTH_HIGH ) ; qos.setOutboundPeak ( org.ovirt.engine.core.bll.validator.NetworkQosValidatorTest.BANDWIDTH_LOW ) ; peakConsistentWithAverageTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_NETWORK_QOS_PEAK_LOWER_THAN_AVERAGE ) ) ; }
Source:
public boolean isHttpEnabled ( ) { return getBoolean ( "ENGINE_HTTP_ENABLED" ) ; }

Target:
public int getInteger ( java.lang.String key ) { return getInteger ( key , null ) ; }
Source:
protected boolean UpdateVmImSpm ( ) { return org.ovirt.engine.core.bll.VmCommand.UpdateVmInSpm ( org.ovirt.engine.core.bll.ExportVmCommand.getVm ( ) . getstorage_pool_id ( ) , java.util.Arrays.asList ( org.ovirt.engine.core.bll.ExportVmCommand.getVm ( ) ) , org.ovirt.engine.core.bll.ExportVmCommand.getParameters ( ) . getStorageDomainId ( ) ) ; }

Target:
protected boolean updateVmImSpm ( ) { return org.ovirt.engine.core.bll.VmCommand.updateVmInSpm ( org.ovirt.engine.core.bll.ExportVmCommand.getVm ( ) . getstorage_pool_id ( ) , java.util.Arrays.asList ( org.ovirt.engine.core.bll.ExportVmCommand.getVm ( ) ) , org.ovirt.engine.core.bll.ExportVmCommand.getParameters ( ) . getStorageDomainId ( ) ) ; }
Source:
public void testGetMaximumRam ( ) { org.junit.Assert.assertEquals ( 2048 , OsRepositoryImpl.INSTANCE.getMaximumRam ( 777 , null ) ) ; }

Target:
public void testGetMaximumRam ( ) { org.junit.jupiter.api.Assertions.assertEquals ( 2048 , OsRepositoryImpl.INSTANCE.getMaximumRam ( 777 , null ) ) ; }
Source:
public void testMacIsContainedInRange ( ) throws java.lang.Exception { org.junit.Assert.assertThat ( rangeOf10Macs.contains ( org.ovirt.engine.core.bll.network.macpoolmanager.RangeTest.MAC_FROM_RANGE ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testMacIsContainedInRange ( ) throws java.lang.Exception { org.junit.Assert.assertThat ( rangeOf10Macs.contains ( org.ovirt.engine.core.bll.network.macpool.RangeTest.MAC_FROM_RANGE ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
protected void writeCustomEmulatedMachine ( ) { _writer.writeElement ( OvfProperties.CUSTOM_EMULATED_MACHINE , emulatedMachine ) ; }

Target:
protected void writeCustomEmulatedMachine ( ) { _writer.writeElement ( org.ovirt.engine.core.utils.ovf.CUSTOM_EMULATED_MACHINE , emulatedMachine ) ; }
Source:
public org.ovirt.engine.core.bll.context.CommandContext get ( org.ovirt.engine.core.compat.Guid commandId ) { return contextsMap.get ( commandId ) ; }

Target:
public org.ovirt.engine.core.bll.context.CommandContext get ( org.ovirt.engine.core.compat.Guid commandId ) { initializeCache ( ) ; return contextsMap.get ( commandId ) ; }
Source:
private java.util.HashMap < org.ovirt.engine.core.compat.Version , java.util.ArrayList < java.lang.String > > getCustomPropertiesKeysList ( ) { return privateCustomPropertiesKeysList ; }

Target:
public org.ovirt.engine.ui.uicommonweb.UICommand getEnableGlobalHaMaintenanceCommand ( ) { return privateEnableGlobalHaMaintenanceCommand ; }
Source:
public void setnet_config_dirty ( java.lang.Boolean value ) { mVdsDynamic.setnet_config_dirty ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "net_config_dirty" ) ) ; }

Target:
public java.lang.String getPmSecondaryType ( ) { return mVdsStatic.getPmSecondaryType ( ) ; }
Source:
protected void SyncSearch ( ) { org.ovirt.engine.core.common.queries.SearchParameters tempVar = new org.ovirt.engine.core.common.queries.SearchParameters ( getSearchString ( ) , org.ovirt.engine.core.common.interfaces.SearchType.Network ) ; tempVar.setMaxCount ( getSearchPageSize ( ) ) ; super . SyncSearch ( VdcQueryType.Search , tempVar ) ; }

Target:
protected void syncSearch ( ) { org.ovirt.engine.core.common.queries.SearchParameters tempVar = new org.ovirt.engine.core.common.queries.SearchParameters ( getSearchString ( ) , org.ovirt.engine.core.common.interfaces.SearchType.Network ) ; tempVar.setMaxCount ( getSearchPageSize ( ) ) ; super . syncSearch ( VdcQueryType.Search , tempVar ) ; }
Source:
public final < T extends java.lang.Enum < T > > void AddField ( java.lang.Iterable < T > statuses , java.lang.String fieldName ) { for ( T status : statuses ) { AddField ( status , fieldName ) ; } }

Target:
public final < T extends java.lang.Enum < T > > void addField ( java.lang.Iterable < T > statuses , java.lang.String fieldName ) { for ( T status : statuses ) { addField ( status , fieldName ) ; } }
Source:
public static void setLoggedInUser ( org.ovirt.engine.core.common.users.VdcUser loggedUser ) { org.ovirt.engine.ui.frontend.Frontend.loggedUser = loggedUser ; }

Target:
public static void initLoggedInUser ( org.ovirt.engine.core.common.businessentities.DbUser loggedUser , java.lang.String loginPassword ) { org.ovirt.engine.ui.frontend.Frontend.loggedUser = loggedUser ; org.ovirt.engine.ui.frontend.Frontend.loginPassword = loginPassword ; }