auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public static java.lang.String getMessage ( org.ovirt.engine.core.common.AuditLogType logType ) { return org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.messages.get ( logType ) ; }

Target:
public static java.lang.String getMessage ( org.ovirt.engine.core.common.AuditLogType logType ) { return org.apache.commons.lang.StringUtils.defaultString ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.getMessageOrNull ( logType ) ) ; }
Source:
public void addColumnWithHtmlHeader ( com.google.gwt.user.cellview.client.Column < T , ? > column , java.lang.String headerHtml , java.lang.String width ) { addColumnWithHtmlHeader ( column , headerHtml ) ; setColumnWidth ( column , width ) ; }

Target:
public void addColumnWithHtmlHeader ( com.google.gwt.user.cellview.client.Column < T , ? > column , java.lang.String headerHtml ) { table.addColumnWithHtmlHeader ( column , headerHtml ) ; tableHeader.addColumnWithHtmlHeader ( column , headerHtml ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase endAction ( org.ovirt.engine.core.common.action.ActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , org.ovirt.engine.core.bll.context.CommandContext context ) { return org.ovirt.engine.core.bll.CommandsFactory.createCommand ( actionType , parameters , context ) . endAction ( ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase endAction ( org.ovirt.engine.core.common.action.ActionType actionType , org.ovirt.engine.core.common.action.ActionParametersBase parameters , org.ovirt.engine.core.bll.context.CommandContext context ) { return org.ovirt.engine.core.bll.CommandsFactory.createCommand ( actionType , parameters , context ) . endAction ( ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAllRunningVdssInPool ( ) { return getVdsDao ( ) . getAllForStoragePoolAndStatus ( getStoragePool ( ) . getId ( ) , VDSStatus.Up ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAllRunningVdssInPool ( ) { return vdsDao.getAllForStoragePoolAndStatus ( getStoragePool ( ) . getId ( ) , VDSStatus.Up ) ; }
Source:
private boolean DoesTaskExist ( ) { return ( getLastTaskStatus ( ) . getStatus ( ) ) != ( org.ovirt.engine.core.common.businessentities.AsyncTaskStatusEnum.unknown ) ; }

Target:
private boolean doesTaskExist ( ) { return ( getLastTaskStatus ( ) . getStatus ( ) ) != ( org.ovirt.engine.core.common.businessentities.AsyncTaskStatusEnum.unknown ) ; }
Source:
public void canDoActionFailsPoolSpecifiedDoesNotExist ( ) { params.setStoragePoolId ( spId ) ; org.mockito.Mockito.when ( spDao.get ( spId ) ) . thenReturn ( null ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_STORAGE_POOL_NOT_EXIST ) ; }

Target:
public void validateFailsPoolSpecifiedDoesNotExist ( ) { params.setStoragePoolId ( spId ) ; org.mockito.Mockito.when ( spDao.get ( spId ) ) . thenReturn ( null ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_STORAGE_POOL_NOT_EXIST ) ; }
Source:
public org.ovirt.engine.api.resource.AffinityGroupsResource getAffinityGroupsResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendAffinityGroupsResource ( id ) ) ; }

Target:
protected org.ovirt.engine.api.model.Cluster doPopulate ( org.ovirt.engine.api.model.Cluster cluster , org.ovirt.engine.core.common.businessentities.VDSGroup entity ) { return parent.doPopulate ( cluster , entity ) ; }
Source:
public void poolHasDefaultCluster ( ) { addDefaultClusterToPool ( ) ; storagePoolWithLocalFS ( ) ; canDoActionFailed ( VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_POOL_WITH_DEFAULT_VDS_GROUP_CANNOT_BE_LOCALFS.toString ( ) ) ; }

Target:
public void poolHasDefaultCluster ( ) { org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommandTest.mcr.mockConfigValue ( ConfigValues.AutoRegistrationDefaultVdsGroupID , org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommandTest.DEFAULT_VDS_GROUP_ID ) ; addDefaultClusterToPool ( ) ; storagePoolWithLocalFS ( ) ; canDoActionFailed ( VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_POOL_WITH_DEFAULT_VDS_GROUP_CANNOT_BE_LOCALFS.toString ( ) ) ; }
Source:
public void setModel ( org.ovirt.engine.ui.uicommonweb.models.Model model ) { this . model = model ; }

Target:
public void ExecuteCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand ) { setVmTicket ( ) ; }
Source:
protected void verifyBuiltVmSpecific ( org.ovirt.engine.core.common.businessentities.VM vm ) { org.junit.Assert.assertEquals ( org.ovirt.engine.ui.uicommonweb.models.pools.BaseVmListModelTest.TEMPLATE_GUID , vm.getVmtGuid ( ) ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.ui.uicommonweb.models.pools.BaseVmListModelTest.CUSTOM_PROPERTIES , vm.getCustomProperties ( ) ) ; }

Target:
protected void verifyBuiltVmSpecific ( org.ovirt.engine.core.common.businessentities.VM vm ) { org.junit.Assert.assertEquals ( org.ovirt.engine.ui.uicommonweb.models.pools.BaseVmListModelTest.TEMPLATE_GUID , vm.getVmtGuid ( ) ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.ui.uicommonweb.models.pools.BaseVmListModelTest.CUSTOM_PROPERTIES , vm.getCustomProperties ( ) ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.ui.uicommonweb.models.pools.BaseVmListModelTest.INSTANCE_TYPE_ID , vm.getInstanceTypeId ( ) ) ; }
Source:
private void initSorting ( ) { nameColumn.makeSortable ( ) ; clusterColumn.makeSortable ( ) ; dcColumn.makeSortable ( ) ; nicStatusColumn.makeSortable ( new org.ovirt.engine.ui.common.widget.table.column.SimpleStatusColumnComparator < org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface , org.ovirt.engine.core.common.businessentities.VDS > > ( nicStatusColumn ) ) ; speedColumn.makeSortable ( ) ; }

Target:
private void initSorting ( ) { hostStatus.makeSortable ( ) ; nameColumn.makeSortable ( ) ; clusterColumn.makeSortable ( ) ; dcColumn.makeSortable ( ) ; speedColumn.makeSortable ( ) ; }
Source:
public void removeAll ( java.util.Collection < ID > ids ) { for ( ID id : ids ) { org.ovirt.engine.core.dao.MassOperationsGenericDaoDbFacade.remove ( id ) ; } }

Target:
public void removeAll ( java.util.Collection < ID > ids ) { for ( ID id : ids ) { org.ovirt.engine.core.dao.MassOperationsGenericDao.remove ( id ) ; } }
Source:
void setErrorMessage ( java.lang.String text ) ;

Target:
void setErrorMessageHtml ( java.lang.String text ) ;
Source:
protected org.ovirt.engine.core.common.businessentities.IscsiBond getIscsiBond ( ) { if ( ( iscsiBond ) == null ) { iscsiBond = org.ovirt.engine.core.bll.storage.connection.iscsibond.RemoveIscsiBondCommand.getDbFacade ( ) . getIscsiBondDao ( ) . get ( org.ovirt.engine.core.bll.storage.connection.iscsibond.RemoveIscsiBondCommand.getParameters ( ) . getIscsiBondId ( ) ) ; } return iscsiBond ; }

Target:
protected org.ovirt.engine.core.common.businessentities.IscsiBond getIscsiBond ( ) { if ( ( iscsiBond ) == null ) { iscsiBond = iscsiBondDao.get ( org.ovirt.engine.core.bll.storage.connection.iscsibond.RemoveIscsiBondCommand.getParameters ( ) . getIscsiBondId ( ) ) ; } return iscsiBond ; }
Source:
public org.ovirt.engine.api.model.Disk lookupEntity ( org.ovirt.engine.core.compat.Guid guid ) throws org.ovirt.engine.api.restapi.resource.BackendFailureException { return collection.lookupEntity ( guid ) ; }

Target:
public org.ovirt.engine.api.resource.StatisticsResource getStatisticsResource ( ) { org.ovirt.engine.api.restapi.resource.DiskStatisticalQuery query = new org.ovirt.engine.api.restapi.resource.DiskStatisticalQuery ( new org.ovirt.engine.api.restapi.resource.BackendVmDiskResource.DiskResolver ( ) , newModel ( id ) ) ; return inject ( new org.ovirt.engine.api.restapi.resource.BackendStatisticsResource ( entityType , guid , query ) ) ; }
Source:
private void initToolTips ( ) { numberOfCoresTooltip.setHtml ( org.ovirt.engine.ui.userportal.section.main.view.tab.basic.MainTabBasicDetailsView.templates.numOfCpuCoresTooltip ( ) ) ; }

Target:
private void initToolTips ( ) { numberOfCoresTooltip.setHtml ( com.google.gwt.safehtml.shared.SafeHtmlUtils.fromString ( org.ovirt.engine.ui.userportal.section.main.view.tab.basic.MainTabBasicDetailsView.constants.numOfCpuCoresTooltip ( ) ) ) ; }
Source:
protected void selectionChanged ( java.lang.Boolean value ) { for ( org.ovirt.engine.ui.uicommonweb.models.providers.ExternalNetwork model : getNetworksTableItems ( ) ) { model.setPublicUse ( value ) ; } refreshNetworksTable ( ) ; }

Target:
protected void selectionChanged ( java.lang.Boolean value ) { for ( org.ovirt.engine.ui.uicommonweb.models.providers.ExternalNetwork model : getAllImportedNetworks ( ) ) { model.setPublicUse ( value ) ; } refreshImportedNetworks ( ) ; }
Source:
public boolean disconnectStorageFromLunByVdsId ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain , org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.common.businessentities.LUNs lun ) { return runConnectionStorageToDomain ( storageDomain , vdsId , VdcActionType.RemoveStorageServerConnection.getValue ( ) , lun , Guid.Empty ) ; }

Target:
public boolean disconnectStorageFromLunByVdsId ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain , org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.common.businessentities.LUNs lun ) { return runConnectionStorageToDomain ( storageDomain , vdsId , VdcActionType.DisconnectStorageServerConnection.getValue ( ) , lun , Guid.Empty ) ; }
Source:
protected boolean isHotPlugSupported ( ) { if ( org.ovirt.engine.core.common.FeatureSupported.hotPlug ( org.ovirt.engine.core.bll.VmCommand.getVm ( ) . getClusterCompatibilityVersion ( ) ) ) { return true ; } return failValidation ( EngineMessage.HOT_PLUG_IS_NOT_SUPPORTED ) ; }

Target:
protected boolean isHotPlugSupported ( ) { if ( org.ovirt.engine.core.common.FeatureSupported.hotPlug ( org.ovirt.engine.core.bll.VmCommand.getVm ( ) . getCompatibilityVersion ( ) ) ) { return true ; } return failValidation ( EngineMessage.HOT_PLUG_IS_NOT_SUPPORTED ) ; }
Source:
public void vnicCreated ( org.ovirt.engine.core.compat.Guid vmId ) { getWindow ( ) . stopProgress ( ) ; cancel ( ) ; setGuideContext ( vmId ) ; updateActionAvailability ( ) ; getGuideCommand ( ) . execute ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel ) ( result.getState ( ) ) ) ; localModel.stopProgress ( ) ; cancel ( ) ; }
Source:
public java.lang.Void runInTransaction ( ) { copyVmDevices ( ) ; addDiskPermissions ( newDiskImages ) ; addVmPayload ( ) ; updateSmartCardDevices ( ) ; setActionReturnValue ( getVm ( ) . getId ( ) ) ; setSucceeded ( true ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { copyVmDevices ( ) ; addDiskPermissions ( newDiskImages ) ; addVmPayload ( ) ; updateSmartCardDevices ( ) ; addVmWatchdog ( ) ; setActionReturnValue ( getVm ( ) . getId ( ) ) ; setSucceeded ( true ) ; return null ; }
Source:
public void setvolume_type ( org.ovirt.engine.core.common.businessentities.VolumeType value ) { getImage ( ) . setVolumeType ( value ) ; }

Target:
public void setVolumeType ( org.ovirt.engine.core.common.businessentities.VolumeType volumeType ) { getImage ( ) . setVolumeType ( volumeType ) ; }
Source:
public void getCustomValueFromEmptyMap ( ) { final java.lang.String s = b.getCustomValue ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.NAME ) ; org.junit.Assert.assertEquals ( "" , s ) ; }

Target:
public void getCustomValueFromEmptyMap ( ) { final java.lang.String s = b.getCustomValue ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.NAME ) ; org.junit.jupiter.api.Assertions.assertEquals ( "" , s ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotEnabledNotSetPolicyNotSetUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; org.ovirt.engine.core.common.businessentities.UsbPolicy currentPolicy = org.ovirt.engine.core.common.businessentities.UsbPolicy.DISABLED ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , currentPolicy ) , currentPolicy ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotEnabledNativePolicyUsb ( ) { 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.DISABLED ) ) ; }
Source:
public org.ovirt.engine.api.model.InstanceType get ( ) { org.ovirt.engine.api.model.InstanceType instanceType = performGet ( VdcQueryType.GetInstanceType , new org.ovirt.engine.core.common.queries.GetVmTemplateParameters ( guid ) ) ; org.ovirt.engine.api.restapi.util.DisplayHelper.adjustDisplayData ( this , instanceType ) ; return instanceType ; }

Target:
public org.ovirt.engine.api.model.InstanceType get ( ) { org.ovirt.engine.api.model.InstanceType instanceType = performGet ( QueryType.GetInstanceType , new org.ovirt.engine.core.common.queries.GetVmTemplateParameters ( guid ) ) ; org.ovirt.engine.api.restapi.util.DisplayHelper.adjustDisplayData ( this , instanceType ) ; return instanceType ; }
Source:
protected void copyVmDevices ( ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.copyVmDevices ( org.ovirt.engine.core.bll.AddVmCommand.getVmTemplateId ( ) , org.ovirt.engine.core.bll.AddVmCommand.getVmId ( ) , srcDiskIdToTargetDiskIdMapping , _vmInterfaces , org.ovirt.engine.core.bll.AddVmCommand.getParameters ( ) . isSoundDeviceEnabled ( ) , org.ovirt.engine.core.bll.AddVmCommand.getParameters ( ) . isConsoleEnabled ( ) ) ; }

Target:
protected java.util.Collection < org.ovirt.engine.core.common.businessentities.DiskImage > getImagesToCheckDestinationStorageDomains ( ) { return vmDisksSource.getDiskTemplateMap ( ) . values ( ) ; }
Source:
protected void onReset ( ) { super . onReset ( ) ; org.ovirt.engine.ui.common.presenter.AbstractHeaderPresenterWidget.getView ( ) . setUserName ( user.getUserName ( ) ) ; }

Target:
protected void onReset ( ) { super . onReset ( ) ; org.ovirt.engine.ui.common.presenter.AbstractHeaderPresenterWidget.getView ( ) . setUserName ( user.getFullUserName ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.storage_pool_iso_map runInTransaction ( ) { org.ovirt.engine.core.common.businessentities.storage_pool_iso_map domainPoolMap = new org.ovirt.engine.core.common.businessentities.storage_pool_iso_map ( getRecoveryStoragePoolParametersData ( ) . getNewMasterDomainId ( ) , getRecoveryStoragePoolParametersData ( ) . getStoragePoolId ( ) , org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Active ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStoragePoolIsoMapDao ( ) . save ( domainPoolMap ) ; return domainPoolMap ; }

Target:
public org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap runInTransaction ( ) { org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap domainPoolMap = new org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap ( getRecoveryStoragePoolParametersData ( ) . getNewMasterDomainId ( ) , getRecoveryStoragePoolParametersData ( ) . getStoragePoolId ( ) , org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Active ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStoragePoolIsoMapDao ( ) . save ( domainPoolMap ) ; return domainPoolMap ; }
Source:
public void BestVdsProcedure ( org.ovirt.engine.core.bll.VDS x ) { x.setvm_count ( ( ( x.getvm_count ( ) ) + 1 ) ) ; }

Target:
public void BestVdsProcedure ( org.ovirt.engine.core.bll.VDS x ) { x.setVmCount ( ( ( x.getVmCount ( ) ) + 1 ) ) ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml inlineImageWithTitle ( com.google.gwt.safehtml.shared.SafeHtml image , java.lang.String title ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml inlineImage ( com.google.gwt.safehtml.shared.SafeHtml image ) ;
Source:
void onIsValidPropertyChange ( org.ovirt.engine.ui.common.widget.HasValidation editor , org.ovirt.engine.ui.uicommonweb.models.EntityModel model ) { if ( model.getIsValid ( ) ) { editor.markAsValid ( ) ; } else { editor.markAsInvalid ( model.getInvalidityReasons ( ) ) ; } }

Target:
void onIsValidPropertyChange ( org.ovirt.engine.ui.common.widget.HasValidation editor , org.ovirt.engine.ui.uicommonweb.models.Model model ) { if ( model.getIsValid ( ) ) { editor.markAsValid ( ) ; } else { editor.markAsInvalid ( model.getInvalidityReasons ( ) ) ; } }
Source:
private static org.ovirt.engine.api.utils.LinkHelper.Collection getCollection ( org.ovirt.engine.api.model.BaseResource model ) { return org.ovirt.engine.api.utils.LinkHelper.getCollection ( model , null ) ; }

Target:
private static org.ovirt.engine.api.restapi.util.LinkHelper.Collection getCollection ( org.ovirt.engine.api.model.BaseResource model ) { return org.ovirt.engine.api.restapi.util.LinkHelper.getCollection ( model , null ) ; }
Source:
public void persistCommand ( org.ovirt.engine.core.compat.Guid commandId , org.ovirt.engine.core.compat.Guid parentCommandId , org.ovirt.engine.core.compat.Guid rootCommandId , org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase params , org.ovirt.engine.core.compat.CommandStatus status ) { commandsCache.put ( commandId , parentCommandId , rootCommandId , actionType , params , status ) ; }

Target:
public void persistCommand ( org.ovirt.engine.core.compat.Guid commandId , org.ovirt.engine.core.compat.Guid rootCommandId , org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase params , org.ovirt.engine.core.compat.CommandStatus status , boolean enableCallBack ) { commandsCache.put ( commandId , rootCommandId , actionType , params , status , enableCallBack ) ; }
Source:
public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { getBehavior ( ) . UpdateTimeZone ( ) ; }

Target:
public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { getBehavior ( ) . updateTimeZone ( ) ; }
Source:
protected boolean verifyAddVM ( java.util.List < java.lang.String > reasons , int vmPriority ) { return org.ovirt.engine.core.bll.VmHandler.VerifyAddVm ( reasons , getVmInterfaces ( ) . size ( ) , vmPriority ) ; }

Target:
protected boolean verifyAddVM ( java.util.List < java.lang.String > reasons , int vmPriority ) { return org.ovirt.engine.core.bll.VmHandler.verifyAddVm ( reasons , getVmInterfaces ( ) . size ( ) , vmPriority ) ; }
Source:
public javax.ws.rs.core.Response upgrade ( org.ovirt.engine.api.v3.types.V3Action action ) { return adaptAction ( delegate :: upgrade , action ) ; }

Target:
public org.ovirt.engine.api.v3.types.V3Host update ( org.ovirt.engine.api.v3.types.V3Host host ) { return adaptUpdate ( getDelegate ( ) :: update , host ) ; }
Source:
protected org.ovirt.engine.core.bll.validator.NetworkValidator getNetworkValidator ( org.ovirt.engine.core.common.businessentities.network.Network network ) { return new org.ovirt.engine.core.bll.validator.NetworkValidator ( network ) ; }

Target:
protected org.ovirt.engine.core.bll.validator.NetworkValidator getNetworkValidator ( org.ovirt.engine.core.common.businessentities.network.Network network ) { return new org.ovirt.engine.core.bll.validator.NetworkValidator ( vmDao , network ) ; }
Source:
private void updateImagesStatus ( org.ovirt.engine.core.common.businessentities.storage.ImageStatus imageStatus ) { org.ovirt.engine.core.bll.ImagesHandler.updateAllDiskImageSnapshotsStatusWithCompensation ( imageGroupId , imageStatus , ImageStatus.ILLEGAL , null ) ; }

Target:
private void updateImagesStatus ( org.ovirt.engine.core.common.businessentities.storage.ImageStatus imageStatus ) { org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.updateAllDiskImageSnapshotsStatusWithCompensation ( imageGroupId , imageStatus , ImageStatus.ILLEGAL , null ) ; }
Source:
public org.ovirt.engine.api.model.Host get ( ) { return performGet ( VdcQueryType.GetVdsByVdsId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; }

Target:
public org.ovirt.engine.api.model.Host get ( ) { if ( isForce ( ) ) { performAction ( VdcActionType.RefreshHostCapabilities , new org.ovirt.engine.core.common.action.VdsActionParameters ( guid ) ) ; } return performGet ( VdcQueryType.GetVdsByVdsId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; }
Source:
protected void initializeCommand ( ) { command = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.HotPlugDiskToVmCommand < org.ovirt.engine.core.common.action.HotPlugDiskToVmParameters > ( createParameters ( ) ) ) ; mockVds ( ) ; org.powermock.api.mockito.PowerMockito.when ( command.getActionType ( ) ) . thenReturn ( VdcActionType.HotPlugDiskToVm ) ; }

Target:
protected org.ovirt.engine.core.bll.HotPlugDiskToVmCommand < org.ovirt.engine.core.common.action.HotPlugDiskToVmParameters > createCommand ( ) { return new org.ovirt.engine.core.bll.HotPlugDiskToVmCommand < org.ovirt.engine.core.common.action.HotPlugDiskToVmParameters > ( createParameters ( ) ) ; }
Source:
public void passthroughProfileContainsPortMirroring ( ) { passthroughProfileContainsSupportedPropertiesTest ( true , true , null , null ) ; org.junit.Assert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_PASSTHROUGH_PROFILE_CONTAINS_NOT_SUPPORTED_PROPERTIES ) ) ; }

Target:
public void passthroughProfileContainsPortMirroring ( ) { passthroughProfileContainsSupportedPropertiesTest ( true , true , null , null ) ; org.hamcrest.MatcherAssert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_PASSTHROUGH_PROFILE_CONTAINS_NOT_SUPPORTED_PROPERTIES ) ) ; }
Source:
public static org.ovirt.engine.core.common.errors.VdcBllMessages forValue ( int value ) { return org.ovirt.engine.core.common.errors.VdcBllMessages.values ( ) [ value ] ; }

Target:
public static org.ovirt.engine.core.common.errors.EngineMessage forValue ( int value ) { return org.ovirt.engine.core.common.errors.EngineMessage.values ( ) [ value ] ; }
Source:
private static org.ovirt.engine.core.common.businessentities.StoragePool createDefaultStoragePool ( ) { org.ovirt.engine.core.common.businessentities.StoragePool pool = org.ovirt.engine.core.bll.storage.pool.UpdateStoragePoolCommandTest.createBasicPool ( ) ; pool.setIsLocal ( true ) ; pool.setCompatibilityVersion ( org.ovirt.engine.core.bll.storage.pool.UpdateStoragePoolCommandTest.VERSION_1_1 ) ; return pool ; }

Target:
public void versionHigherThanCluster ( ) { cmd.getStoragePool ( ) . setCompatibilityVersion ( org.ovirt.engine.core.bll.storage.pool.UpdateStoragePoolCommandTest.VERSION_1_2 ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ERROR_CANNOT_UPDATE_STORAGE_POOL_COMPATIBILITY_VERSION_BIGGER_THAN_CLUSTERS ) ; }
Source:
public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { super . eventRaised ( ev , sender , args ) ; if ( ev.equals ( TagModel.SelectionChangedEventDefinition ) ) { OnTagSelectionChanged ( sender , args ) ; } }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { super . eventRaised ( ev , sender , args ) ; if ( ev.equals ( TagModel.SelectionChangedEventDefinition ) ) { OnTagSelectionChanged ( sender , args ) ; } }
Source:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { proxyDown ( ) ; }

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 ) { updatePmModels ( ) ; }
Source:
public void testValidateQosOverriddenInterfacesWhenNoAttachmentsPassed ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > networkAttachments = java.util.Collections.emptyList ( ) ; org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator validator = createHostSetupNetworkValidator ( networkAttachments ) ; org.junit.Assert.assertThat ( validator.validateQosOverriddenInterfaces ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void validateBondOptionsForNewAttachementWithOutOfSyncVmNetworOverridden ( ) { validateValidBonds ( false , true , false , true ) ; }
Source:
private static boolean isBootable ( org.ovirt.engine.core.common.businessentities.VmDevice device ) { return ( VmDeviceType.DISK.getName ( ) . equals ( device.getType ( ) ) ) || ( VmDeviceType.INTERFACE.getName ( ) . equals ( device.getType ( ) ) ) ; }

Target:
private static boolean isBootable ( org.ovirt.engine.core.common.businessentities.VmDevice device ) { return ( ( org.ovirt.engine.core.common.businessentities.VmDeviceGeneralType.DISK ) == ( device.getType ( ) ) ) || ( ( org.ovirt.engine.core.common.businessentities.VmDeviceGeneralType.INTERFACE ) == ( device.getType ( ) ) ) ; }
Source:
public org.ovirt.engine.api.restapi.rsdl.RsdlBuilder entryPoint ( org.ovirt.engine.api.model.EntryPoint entryPoint ) { this . entryPoint = entryPoint ; return this ; }

Target:
public org.ovirt.engine.api.restapi.rsdl.RsdlBuilder generalMetadata ( org.ovirt.engine.api.model.GeneralMetadata entryPoint ) { this . generalMetadata = entryPoint ; return this ; }
Source:
public static void addSmartcardDevice ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.addManagedDevice ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) , vmId ) , VmDeviceGeneralType.SMARTCARD , VmDeviceType.SMARTCARD , new org.ovirt.engine.core.bll.smartcard.SmartcardSpecParams ( ) , true , false , null ) ; }

Target:
public static void addSmartcardDevice ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.addManagedDevice ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , vmId ) , VmDeviceGeneralType.SMARTCARD , VmDeviceType.SMARTCARD , new org.ovirt.engine.core.bll.smartcard.SmartcardSpecParams ( ) , true , false , null ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.vms.key_value.KeyValueModel setIsChangable ( boolean value ) { if ( ! ( isVmAttachedToPool ( ) ) ) { super . setIsChangable ( value ) ; } return this ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.vms.key_value.KeyValueModel setIsChangeable ( boolean value ) { if ( ! ( isVmAttachedToPool ( ) ) ) { super . setIsChangeable ( value ) ; } return this ; }
Source:
public void removeStorageDomain ( org.ovirt.vdsmfake.domain.StorageDomain storageDomain ) { org.ovirt.vdsmfake.domain.VdsmManager.getInstance ( ) . removeStorageDomain ( storageDomain ) ; }

Target:
public void removeStorageDomain ( org.ovirt.vdsmfake.service.StorageDomain storageDomain ) { org.ovirt.vdsmfake.service.VdsmManager.getInstance ( ) . removeStorageDomain ( storageDomain ) ; }
Source:
public void storageDomainIdNull ( ) { b.setStorageDomainId ( null ) ; final org.ovirt.engine.core.compat.Guid g = b.getStorageDomainId ( ) ; org.junit.Assert.assertNull ( g ) ; }

Target:
public void storageDomainIdNull ( ) { b.setStorageDomainId ( null ) ; final org.ovirt.engine.core.compat.Guid g = b.getStorageDomainId ( ) ; org.junit.jupiter.api.Assertions.assertNull ( g ) ; }
Source:
public org.ovirt.engine.core.bll.quota.QuotaManager getQuotaManager ( ) { return quotaManager ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.Quota > searchQuota ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Quota > quotaList = genericSearch ( org.ovirt.engine.core.bll.SearchQuery.getDbFacade ( ) . getQuotaDao ( ) , true ) ; quotaManager.updateUsage ( quotaList ) ; return quotaList ; }
Source:
public static < T > org.ovirt.engine.core.utils.MockConfigRule.MockConfigDescriptor < T > mockConfig ( org.ovirt.engine.core.common.config.ConfigValues value , java.lang.String version , T returnValue ) { return new org.ovirt.engine.core.utils.MockConfigRule.MockConfigDescriptor ( value , version , returnValue ) ; }

Target:
public static < T > org.ovirt.engine.core.common.utils.MockConfigRule.MockConfigDescriptor < T > mockConfig ( org.ovirt.engine.core.common.config.ConfigValues value , java.lang.String version , T returnValue ) { return new org.ovirt.engine.core.common.utils.MockConfigRule.MockConfigDescriptor ( value , version , returnValue ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VdsSelectionAlgorithm getSelectionAlgorithm ( ) { return this . selectionAlgorithm ; }

Target:
public void setSshUsername ( java.lang.String value ) { this . mVdsStatic.setSshUsername ( value ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.Disk > getAllWithQuery ( java.lang.String query ) { return jdbcTemplate.query ( query , org.ovirt.engine.core.dao.DiskDaoDbFacadeImpl.DiskRowMapper.instance ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.storage.Disk > getAllWithQuery ( java.lang.String query ) { return getJdbcTemplate ( ) . query ( query , org.ovirt.engine.core.dao.DiskDaoDbFacadeImpl.DiskRowMapper.instance ) ; }
Source:
private void assertGetAllRelevantQuoatsForStorage ( org.ovirt.engine.core.compat.Guid storageId , int expectedQuotas ) { java.util.List < org.ovirt.engine.core.common.businessentities.Quota > quotas = dao.getAllRelevantQuotasForStorage ( storageId , FixturesTool.PRIVILEGED_SESSION_ID , false ) ; org.junit.Assert.assertEquals ( "Wrong number of quotas retuend" , expectedQuotas , quotas.size ( ) ) ; }

Target:
private void assertGetAllRelevantQuoatsForStorage ( org.ovirt.engine.core.compat.Guid storageId , int expectedQuotas ) { java.util.List < org.ovirt.engine.core.common.businessentities.Quota > quotas = dao.getAllRelevantQuotasForStorage ( storageId , FixturesTool.PRIVILEGED_SESSION_ID , false ) ; org.junit.jupiter.api.Assertions.assertEquals ( expectedQuotas , quotas.size ( ) , "Wrong number of quotas retuend" ) ; }
Source:
public void replace_valueContainsDollar ( ) { runAndCheck ( "AdminPassword=$AdminPassword$" , "$AdminPassword$" , "$A$AA$" , "AdminPassword=$A$AA$" ) ; }

Target:
public void replaceValueContainsDollar ( ) { runAndCheck ( "AdminPassword=$AdminPassword$" , "$AdminPassword$" , "$A$AA$" , "AdminPassword=$A$AA$" ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult snapshotNotBroken ( org.ovirt.engine.core.common.businessentities.Snapshot snapshot ) { return ( org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotStatus.BROKEN ) == ( snapshot.getStatus ( ) ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.ACTION_TYPE_FAILED_VM_SNAPSHOT_IS_BROKEN ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult snapshotNotBroken ( org.ovirt.engine.core.common.businessentities.Snapshot snapshot ) { return ( org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotStatus.BROKEN ) == ( snapshot.getStatus ( ) ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_VM_SNAPSHOT_IS_BROKEN ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
protected boolean validate ( ) { return org.ovirt.engine.core.bll.storage.pool.SetStoragePoolStatusCommand.checkStoragePool ( ) ; }

Target:
protected boolean validate ( ) { return validate ( org.ovirt.engine.core.bll.storage.pool.SetStoragePoolStatusCommand.createStoragePoolValidator ( ) . exists ( ) ) ; }
Source:
public void testSetValidatorWithOutKey ( ) { org.ovirt.engine.core.config.EngineConfigMap engineConfigMap = org.mockito.Mockito.mock ( org.ovirt.engine.core.config.EngineConfigMap.class ) ; org.mockito.Mockito.when ( engineConfigMap.getValue ( ) ) . thenReturn ( "valueToSet" ) ; org.ovirt.engine.core.config.validation.ConfigActionType setAction = org.ovirt.engine.core.config.validation.ConfigActionType.ACTION_SET ; setAction.validate ( engineConfigMap ) ; }

Target:
public void testGetValidatorWithOutKey ( ) { org.ovirt.engine.core.config.EngineConfigMap engineConfigMap = org.mockito.Mockito.mock ( org.ovirt.engine.core.config.EngineConfigMap.class ) ; org.ovirt.engine.core.config.validation.ConfigActionType setAction = org.ovirt.engine.core.config.validation.ConfigActionType.ACTION_GET ; org.junit.jupiter.api.Assertions.assertThrows ( java.lang.IllegalArgumentException.class , ( ) -> setAction.validate ( engineConfigMap ) ) ; }
Source:
public org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterSnapshotScheduleReset ( ) { org.ovirt.vdsm.jsonrpc.client.JsonRpcRequest request = new org.ovirt.vdsm.jsonrpc.client.RequestBuilder ( "GlusterVolume.snapshotScheduleReset" ) . build ( ) ; java.util.Map < java.lang.String , java.lang.Object > response = new org.ovirt.engine.core.vdsbroker.jsonrpc.FutureMap ( this . client , request ) ; return new org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc ( response ) ; }

Target:
public org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturn glusterSnapshotScheduleReset ( ) { org.ovirt.vdsm.jsonrpc.client.JsonRpcRequest request = new org.ovirt.vdsm.jsonrpc.client.RequestBuilder ( "GlusterVolume.snapshotScheduleReset" ) . build ( ) ; java.util.Map < java.lang.String , java.lang.Object > response = new org.ovirt.engine.core.vdsbroker.jsonrpc.FutureMap ( this . client , request ) ; return new org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturn ( response ) ; }
Source:
public void validate_vmNotInCluster_Test ( ) { org.mockito.Mockito.doReturn ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) . when ( command ) . getVdsGroupId ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_VM_NOT_IN_AFFINITY_GROUP_CLUSTER ) ; }

Target:
public void validate_vmNotInCluster_Test ( ) { org.mockito.Mockito.doReturn ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) . when ( command ) . getClusterId ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_VM_NOT_IN_AFFINITY_GROUP_CLUSTER ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult evaluate ( org.ovirt.engine.core.bll.validator.StorageDomainValidator validator ) ;

Target:
public org.ovirt.engine.core.bll.ValidationResult evaluate ( java.util.Map.Entry < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.bll.validator.StorageDomainValidator > entry ) ;
Source:
public void canDoActionSucceedsOnDiskDomainCheckWhenNoDisks ( ) throws java.lang.Exception { org.ovirt.engine.core.compat.Guid storageId = org.ovirt.engine.core.compat.Guid.NewGuid ( ) ; initializeCommand ( storageId ) ; mockVm ( ) ; mockStorageDomain ( storageId ) ; mockStoragePoolIsoMap ( ) ; runAndAssertCanDoActionSuccess ( ) ; }

Target:
public void canDoActionSucceedsOnDiskDomainCheckWhenNoDisks ( ) throws java.lang.Exception { org.ovirt.engine.core.compat.Guid storageId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; initializeCommand ( storageId ) ; mockVm ( ) ; mockStorageDomain ( storageId ) ; mockStoragePoolIsoMap ( ) ; runAndAssertCanDoActionSuccess ( ) ; }
Source:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( EngineMessage.VAR__ACTION__MANUAL_FENCE ) ; addCanDoActionMessage ( EngineMessage.VAR__TYPE__HOST ) ; }

Target:
protected void setActionMessageParameters ( ) { addValidationMessage ( EngineMessage.VAR__ACTION__MANUAL_FENCE ) ; addValidationMessage ( EngineMessage.VAR__TYPE__HOST ) ; }
Source:
public void testGetLunsThatBreakDiscardAfterDeleteSupportStorageDomainDiscardAfterDeleteDisabled ( ) { storageDomain.setDiscardAfterDelete ( false ) ; assertGetLunsThatBreakDiscardAfterDeleteSupportContainsExpectedLuns ( java.util.Arrays.asList ( createLunWithDiscardFunctionality ( 1024L , true ) , createLunWithDiscardFunctionality ( 0L , false ) ) , java.util.Collections.emptyList ( ) ) ; }

Target:
public void testGetLunsThatBreakDiscardAfterDeleteSupportStorageDomainDiscardAfterDeleteDisabled ( ) { storageDomain.setDiscardAfterDelete ( false ) ; assertGetLunsThatBreakDiscardAfterDeleteSupportContainsExpectedLuns ( java.util.Arrays.asList ( createLunWithDiscardSupport ( 1024L ) , createLunWithDiscardSupport ( 0L ) ) , java.util.Collections.emptyList ( ) ) ; }
Source:
public void setup ( ) { existingGroup.setcompatibility_version ( Version.v3_1 ) ; param = new org.ovirt.engine.core.common.action.AttachNetworkToVdsGroupParameter ( getExistingVdsGroup ( ) , getNetwork ( ) ) ; underTest = new org.ovirt.engine.core.bll.network.cluster.AttachNetworkToClusterInternalCommandTest.TestAttachNetworkToClusterCommand ( param ) ; }

Target:
public void setup ( ) { existingGroup.setCompatibilityVersion ( Version.v3_1 ) ; param = new org.ovirt.engine.core.common.action.AttachNetworkToVdsGroupParameter ( getExistingVdsGroup ( ) , getNetwork ( ) ) ; underTest = new org.ovirt.engine.core.bll.network.cluster.AttachNetworkToClusterInternalCommandTest.TestAttachNetworkToClusterCommand ( param ) ; }
Source:
private void setVisibilities ( ) { criticalIntervalLabel.setVisible ( false ) ; }

Target:
private void setVisibilities ( ) { criticalIntervalLabel.setVisible ( false ) ; disableCliScheduleMessageLabel.setVisible ( false ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult networkExists ( ) { return ( getNetwork ( ) ) == null ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.NETWORK_NOT_EXISTS ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult portMirroringNotSetIfExternalNetwork ( ) { return ( ! ( vnicProfile.isPortMirroring ( ) ) ) || ( ! ( getNetwork ( ) . isExternal ( ) ) ) ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_EXTERNAL_NETWORK_CANNOT_BE_PORT_MIRRORED ) ; }
Source:
public void cancel ( ) { cancelConfirm ( ) ; setWindow ( null ) ; }

Target:
public void cancel ( ) { cancelConfirm ( ) ; org.ovirt.engine.ui.uicommonweb.models.hosts.HostListModel.setWindow ( null ) ; }
Source:
public void testSaveVmPool ( ) { dao.save ( newVmPool ) ; org.ovirt.engine.core.common.businessentities.VmPool result = dao.getByName ( newVmPool.getvm_pool_name ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( newVmPool , result ) ; }

Target:
public void testSaveVmPool ( ) { dao.save ( newVmPool ) ; org.ovirt.engine.core.common.businessentities.VmPool result = dao.getByName ( newVmPool.getVmPoolName ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( newVmPool , result ) ; }
Source:
public java.lang.Void runInTransaction ( ) { for ( org.ovirt.engine.core.common.businessentities.LUNs lun : luns ) { proceedLUNInDb ( lun , getStorageDomain ( ) . getstorage_type ( ) , getStorageDomain ( ) . getstorage ( ) ) ; } return null ; }

Target:
public java.lang.Void runInTransaction ( ) { for ( org.ovirt.engine.core.common.businessentities.LUNs lun : luns ) { proceedLUNInDb ( lun , getStorageDomain ( ) . getStorageType ( ) , getStorageDomain ( ) . getStorage ( ) ) ; } return null ; }
Source:
public static boolean isUpdateValid ( org.ovirt.engine.core.common.businessentities.VdsStatic source , org.ovirt.engine.core.common.businessentities.VdsStatic distination , org.ovirt.engine.core.common.businessentities.VDSStatus status ) { return org.ovirt.engine.core.bll.VdsHandler.updateVdsStatic.isUpdateValid ( source , distination , status ) ; }

Target:
public boolean isUpdateValid ( org.ovirt.engine.core.common.businessentities.VdsStatic source , org.ovirt.engine.core.common.businessentities.VdsStatic destination , org.ovirt.engine.core.common.businessentities.VDSStatus status ) { return updateVdsStatic.isUpdateValid ( source , destination , status ) ; }
Source:
public void setKvmEnable ( java.lang.Boolean value ) { this . vmDynamic.setkvm_enable ( value ) ; }

Target:
public java.lang.Integer getDisplay ( ) { return this . vmDynamic.getDisplay ( ) ; }
Source:
public void testLocalDcAndMatchingCompatiblityVersion ( ) { storagePool.setcompatibility_version ( Version.v3_0 ) ; storagePool.setIsLocal ( true ) ; org.junit.Assert.assertThat ( validator.isPosixSupportedInDC ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testLocalDcAndMatchingCompatiblityVersion ( ) { storagePool.setcompatibility_version ( org.ovirt.engine.core.bll.storage.StoragePoolValidatorTest.UNSUPPORTED_VERSION ) ; storagePool.setIsLocal ( true ) ; org.junit.Assert.assertThat ( validator.isPosixSupportedInDC ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
protected void itemsCollectionChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.NotifyCollectionChangedEventArgs e ) { super . itemsCollectionChanged ( sender , e ) ; ResetIsEmpty ( ) ; UpdatePagingAvailability ( ) ; }

Target:
protected void onSelectedItemChanged ( ) { super . onSelectedItemChanged ( ) ; updateActionAvailability ( ) ; }
Source:
public void onError ( com.google.gwt.http.client.Request request , java.lang.Throwable exception ) { org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.logger.log ( java.util.logging.Level.WARNING , "Error while dispatching Engine REST API request" , exception ) ; }

Target:
public void onError ( com.google.gwt.http.client.Request request , java.lang.Throwable exception ) { org.ovirt.engine.ui.common.restapi.RestApiSessionManager.logger.log ( java.util.logging.Level.WARNING , "Error while dispatching Engine REST API request" , exception ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { com.google.gwt.user.client.Window.open ( feedbackLink , "_blank" , null ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { org.ovirt.engine.ui.common.utils.WebUtils.openUrlInNewWindow ( feedbackLinkLabel , feedbackUrl ) ; }
Source:
public void checkValidIpv6ConfigurationNoneBootProtocol ( ) { initIpv6ConfigurationDetails ( Ipv6BootProtocol.NONE , false , false ) ; initIpv4Address ( ) ; setIpv4BootProtocol ( Ipv4BootProtocol.DHCP ) ; org.junit.Assert.assertThat ( underTest.validateNetworkAttachmentIpConfiguration ( networkAttachments ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void checkValidIpv6ConfigurationNoneBootProtocol ( ) { initIpv6ConfigurationDetails ( Ipv6BootProtocol.NONE , false , false ) ; initIpv4Address ( ) ; setIpv4BootProtocol ( Ipv4BootProtocol.DHCP ) ; org.hamcrest.MatcherAssert.assertThat ( underTest.validateNetworkAttachmentIpConfiguration ( networkAttachments ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void validateFailsOnVolumeWithoutRemoveBricksTask ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.CommitRemoveGlusterVolumeBricksCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters ( volumeWithoutRemoveBricksTask , getBricks ( volumeWithoutRemoveBricksTask ) ) , null ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFailsWithEmptyBricksList ( ) { cmd.setGlusterVolumeId ( volumeWithoutAsyncTask ) ; cmd.getParameters ( ) . setBricks ( java.util.Collections.emptyList ( ) ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
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 ) { if ( ( getCommonModel ( ) . getSelectedItem ( ) ) != null ) { clearSelection ( ) ; } }

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 ) { if ( ( commonModelProvider.get ( ) . getSelectedItem ( ) ) != null ) { clearSelection ( ) ; } }
Source:
private void mockVdcCommand ( org.ovirt.engine.core.common.action.VdcActionType vdcActionType , org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue ) { org.mockito.Mockito.doReturn ( returnValue ) . when ( backend ) . runInternalAction ( org.mockito.ArgumentMatchers.eq ( vdcActionType ) , org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.common.action.VdcActionParametersBase.class ) ) ; }

Target:
private void mockVdcCommand ( org.ovirt.engine.core.common.action.ActionType actionType , org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue ) { org.mockito.Mockito.doReturn ( returnValue ) . when ( backend ) . runInternalAction ( org.mockito.ArgumentMatchers.eq ( actionType ) , org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.common.action.VdcActionParametersBase.class ) ) ; }
Source:
protected boolean setAndValidateCpuProfile ( ) { return validate ( org.ovirt.engine.core.bll.profiles.CpuProfileHelper.setAndValidateCpuProfile ( org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommand.getParameters ( ) . getVmStaticData ( ) , org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommand.getVdsGroup ( ) . getCompatibilityVersion ( ) ) ) ; }

Target:
protected boolean setAndValidateCpuProfile ( ) { return validate ( org.ovirt.engine.core.bll.profiles.CpuProfileHelper.setAndValidateCpuProfile ( org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommand.getParameters ( ) . getVmStaticData ( ) , getEffectiveCompatibilityVersion ( ) ) ) ; }
Source:
public void testAttachFailDomainTypeIncorrect ( ) { storageDomain.setStorageType ( StorageType.LOCALFS ) ; org.ovirt.engine.core.bll.ValidationResult attachIncorrectTypeResult = validator.validateDomainCanBeAttachedToPool ( ) ; org.junit.Assert.assertFalse ( "Attaching domain with an incorrect type succeeded while it should have failed" , attachIncorrectTypeResult.isValid ( ) ) ; assertFailingMessage ( "Attaching domain with an incorrect type failed with the wrong message" , attachIncorrectTypeResult , EngineMessage.ERROR_CANNOT_ATTACH_STORAGE_DOMAIN_STORAGE_TYPE_NOT_MATCH ) ; }

Target:
public void testAttachFailDomainTypeIncorrect ( ) { storageDomain.setStorageType ( StorageType.LOCALFS ) ; org.ovirt.engine.core.bll.ValidationResult attachIncorrectTypeResult = validator.validateDomainCanBeAttachedToPool ( ) ; org.junit.Assert.assertThat ( attachIncorrectTypeResult , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ERROR_CANNOT_ATTACH_STORAGE_DOMAIN_STORAGE_TYPE_NOT_MATCH ) ) ; }
Source:
public void resetAndFocus ( ) { userNameEditor.asValueBox ( ) . selectAll ( ) ; userNameEditor.asValueBox ( ) . setFocus ( true ) ; clearErrorMessage ( ) ; }

Target:
public void resetAndFocus ( ) { userNameEditor.asValueBox ( ) . selectAll ( ) ; userNameEditor.asValueBox ( ) . setFocus ( true ) ; clearErrorMessages ( ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity getMultiBrickVolume ( org.ovirt.engine.core.compat.Guid volumeId ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity volume = getGlusterVolume ( volumeId ) ; volume.setStatus ( GlusterVolumeStatus.UP ) ; volume.setBricks ( getBricks ( volumeId , 2 ) ) ; return volume ; }

Target:
private org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity getMultiBrickVolume ( org.ovirt.engine.core.compat.Guid volumeId ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity volume = getGlusterVolume ( volumeId ) ; volume.setStatus ( GlusterVolumeStatus.UP ) ; volume.setBricks ( getBricks ( volumeId , 2 ) ) ; volume.setClusterId ( CLUSTER_ID ) ; return volume ; }