auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void setTabWidgetHandler ( org.ovirt.engine.ui.common.widget.tab.AbstractHeadlessTabPanel.TabWidgetHandler tabWidgetHandler ) { tabPanel.setTabWidgetHandler ( tabWidgetHandler ) ; }

Target:
public void setTabWidgetHandler ( org.ovirt.engine.ui.common.widget.tab.TabWidgetHandler tabWidgetHandler ) { tabPanel.setTabWidgetHandler ( tabWidgetHandler ) ; }
Source:
public boolean isHypervEnabled ( int osId , org.ovirt.engine.core.compat.Version version ) ;

Target:
int getMaxPciDevices ( int osId , org.ovirt.engine.core.compat.Version version ) ;
Source:
public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { org.ovirt.engine.ui.uicommonweb.models.hosts.ConfigureLocalStorageModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.hosts.ConfigureLocalStorageModel ) ( ev.getContext ( ) ) ) ; model.StopProgress ( ) ; Cancel ( ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { org.ovirt.engine.ui.uicommonweb.models.hosts.ConfigureLocalStorageModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.hosts.ConfigureLocalStorageModel ) ( ev.getContext ( ) ) ) ; model.StopProgress ( ) ; Cancel ( ) ; }
Source:
public org.ovirt.engine.ui.common.presenter.AbstractModelBoundPopupPresenterWidget < ? extends org.ovirt.engine.ui.uicommonweb.models.Model , ? > getModelPopup ( M source , org.ovirt.engine.ui.uicommonweb.UICommand lastExecutedCommand , org.ovirt.engine.ui.uicommonweb.models.Model windowModel ) { return null ; }

Target:
public org.ovirt.engine.ui.common.presenter.AbstractModelBoundPopupPresenterWidget < ? extends org.ovirt.engine.ui.uicommonweb.models.Model , ? > getModelPopup ( M sourceModel , org.ovirt.engine.ui.uicommonweb.UICommand lastExecutedCommand , org.ovirt.engine.ui.uicommonweb.models.Model windowModel ) { return null ; }
Source:
public void setBootProtocolsAvailable ( boolean value ) { if ( ( bootProtocolsAvailable ) != value ) { bootProtocolsAvailable = value ; UpdateCanSpecify ( ) ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "BootProtocolsAvailable" ) ) ; } }

Target:
public void setBootProtocolsAvailable ( boolean value ) { if ( ( bootProtocolsAvailable ) != value ) { bootProtocolsAvailable = value ; UpdateCanSpecify ( ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "BootProtocolsAvailable" ) ) ; } }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel vmListModel1 = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel ) ( result.getState ( ) ) ) ; vmListModel1.getWindow ( ) . StopProgress ( ) ; vmListModel1.Cancel ( ) ; }

Target:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel vmListModel1 = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel ) ( result.getState ( ) ) ) ; vmListModel1.getWindow ( ) . StopProgress ( ) ; vmListModel1.cancel ( ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? source : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity > ( ) ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; }
Source:
public org.ovirt.engine.core.bll.validator.storage.MultipleStorageDomainsValidator createMultipleStorageDomainsValidator ( java.util.Collection < org.ovirt.engine.core.common.businessentities.storage.DiskImage > diskImages ) { return new org.ovirt.engine.core.bll.validator.storage.MultipleStorageDomainsValidator ( params.getStoragePoolId ( ) , org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.getAllStorageIdsForImageIds ( diskImages ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.StoragePool getStoragePool ( ) { if ( ( cachedStoragePool ) == null ) { cachedStoragePool = getStoragePoolDao ( ) . get ( params.getStoragePoolId ( ) ) ; } return cachedStoragePool ; }
Source:
private org.ovirt.engine.core.common.action.StorageDomainParametersBase createParameters ( ) { org.ovirt.engine.core.common.action.StorageDomainParametersBase params = new org.ovirt.engine.core.common.action.StorageDomainParametersBase ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; params.setVdsId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; return params ; }

Target:
private org.ovirt.engine.core.common.action.SyncLunsInfoForBlockStorageDomainParameters createParameters ( ) { org.ovirt.engine.core.common.action.SyncLunsInfoForBlockStorageDomainParameters params = new org.ovirt.engine.core.common.action.SyncLunsInfoForBlockStorageDomainParameters ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; params.setVdsId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; return params ; }
Source:
private org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity getVolume ( int i ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity vol = new org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity ( ) ; vol.setId ( org.ovirt.engine.core.bll.gluster.GlusterTasksSyncJobTest.VOL_GUIDS [ i ] ) ; return vol ; }

Target:
private org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity getVolume ( int i ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity vol = new org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity ( ) ; vol.setStatus ( GlusterStatus.UP ) ; vol.setId ( org.ovirt.engine.core.bll.gluster.GlusterTasksSyncJobTest.VOL_GUIDS [ i ] ) ; return vol ; }
Source:
public org.ovirt.engine.core.compat.MatchGroups Groups ( ) { return groups ; }

Target:
public java.util.ArrayList < org.ovirt.engine.core.compat.Match > groups ( ) { return groups ; }
Source:
public static java.lang.Object GetConfigValuePreConverted ( org.ovirt.engine.core.common.queries.ConfigurationValues configValue ) { org.ovirt.engine.core.compat.KeyValuePairCompat < org.ovirt.engine.core.common.queries.ConfigurationValues , java.lang.String > key = new org.ovirt.engine.core.compat.KeyValuePairCompat < org.ovirt.engine.core.common.queries.ConfigurationValues , java.lang.String > ( configValue , org.ovirt.engine.core.common.config.Config.DefaultConfigurationVersion ) ; return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.cachedConfigValuesPreConvert.get ( key ) ; }

Target:
public static java.lang.Object GetConfigValuePreConverted ( org.ovirt.engine.core.common.queries.ConfigurationValues configValue ) { org.ovirt.engine.core.compat.KeyValuePairCompat < org.ovirt.engine.core.common.queries.ConfigurationValues , java.lang.String > key = new org.ovirt.engine.core.compat.KeyValuePairCompat < org.ovirt.engine.core.common.queries.ConfigurationValues , java.lang.String > ( configValue , org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getDefaultConfigurationVersion ( ) ) ; return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.cachedConfigValuesPreConvert.get ( key ) ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? source : java.util.Collections.emptyList ( ) ; }

Target:
public void getUpHostListByCluster ( org.ovirt.engine.ui.frontend.AsyncQuery < java.util.List < org.ovirt.engine.core.common.businessentities.VDS > > aQuery , java.lang.String clusterName ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.ListConverter < > ( ) ; getUpHostListByCluster ( aQuery , clusterName , null ) ; }
Source:
public void tearDown ( ) { org.ovirt.engine.core.bll.session.SessionDataContainer.getInstance ( ) . removeSession ( sessionID ) ; }

Target:
public void tearDown ( ) { org.ovirt.engine.core.bll.session.SessionDataContainer.getInstance ( ) . removeSessionOnLogout ( sessionID ) ; }
Source:
public boolean ValidateStoragePoolConnectionsInHost ( org.ovirt.engine.core.common.businessentities.VDS vds , java.util.List < org.ovirt.engine.core.common.businessentities.storage_server_connections > connections , org.ovirt.engine.core.compat.Guid storagePoolId ) { return true ; }

Target:
public boolean validateStoragePoolConnectionsInHost ( org.ovirt.engine.core.common.businessentities.VDS vds , java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > connections , org.ovirt.engine.core.compat.Guid storagePoolId ) { return true ; }
Source:
public boolean isCifsEnabled ( ) { java.lang.String cifsEnabled = getOptionValue ( GlusterConstants.OPTION_USER_CIFS ) ; return ( cifsEnabled == null ) || ( cifsEnabled.equalsIgnoreCase ( GlusterConstants.ON ) ) ; }

Target:
public boolean isCifsEnabled ( ) { java.lang.String cifsEnabled = getOptionValue ( GlusterConstants.OPTION_USER_CIFS ) ; return ( cifsEnabled == null ) || ( cifsEnabled.equalsIgnoreCase ( GlusterConstants.ENABLE ) ) ; }
Source:
public void testToByteArray ( ) { final byte [ ] byteArray = org.ovirt.engine.core.compat.Guid.newGuid ( ) . toByteArray ( ) ; org.junit.Assert.assertNotNull ( byteArray ) ; org.junit.Assert.assertEquals ( 16 , byteArray.length ) ; }

Target:
public void testToByteArray ( ) { final byte [ ] byteArray = org.ovirt.engine.core.compat.Guid.newGuid ( ) . toByteArray ( ) ; org.junit.jupiter.api.Assertions.assertNotNull ( byteArray ) ; org.junit.jupiter.api.Assertions.assertEquals ( 16 , byteArray.length ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.ActionGroup map ( java.lang.String n , org.ovirt.engine.core.common.businessentities.ActionGroup template ) { try { return org.ovirt.engine.core.common.businessentities.ActionGroup.forValue ( java.lang.Integer.valueOf ( n ) ) ; } catch ( java.lang.NumberFormatException nfe ) { return null ; } }

Target:
public static org.ovirt.engine.core.common.businessentities.ActionGroup map ( java.lang.String n , org.ovirt.engine.core.common.businessentities.ActionGroup template ) { try { return org.ovirt.engine.core.common.businessentities.ActionGroup.forValue ( java.lang.Integer.parseInt ( n ) ) ; } catch ( java.lang.NumberFormatException nfe ) { return null ; } }
Source:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__HOST_NIC_VFS_CONFIG_NETWORK ) ; }

Target:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( EngineMessage.VAR__TYPE__HOST_NIC_VFS_CONFIG_NETWORK ) ; }
Source:
void bindInfrastructure ( ) { bindCommonInfrastructure ( ) ; bind ( com.gwtplatform.mvp.client.proxy.PlaceManager.class ) . to ( org.ovirt.engine.ui.userportal.place.UserPortalPlaceManager.class ) . in ( com.google.inject.Singleton.class ) ; bind ( org.ovirt.engine.ui.userportal.system.ApplicationInit.class ) . asEagerSingleton ( ) ; bind ( org.ovirt.engine.ui.userportal.auth.CurrentUserRole.class ) . in ( com.google.inject.Singleton.class ) ; }

Target:
protected void configure ( ) { requestStaticInjection ( org.ovirt.engine.ui.userportal.gin.ClientGinjectorProvider.class ) ; bindInfrastructure ( ) ; bindConfiguration ( ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.StorageDomain getStorageDomain ( org.ovirt.engine.core.compat.Guid domainId ) { return org.ovirt.engine.core.bll.MoveOrCopyTemplateCommand.getStorageDomainDAO ( ) . getForStoragePool ( domainId , org.ovirt.engine.core.bll.MoveOrCopyTemplateCommand.getStoragePool ( ) . getId ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StorageDomain getStorageDomain ( org.ovirt.engine.core.compat.Guid domainId ) { return org.ovirt.engine.core.bll.MoveOrCopyTemplateCommand.getStorageDomainDao ( ) . getForStoragePool ( domainId , org.ovirt.engine.core.bll.MoveOrCopyTemplateCommand.getStoragePool ( ) . getId ( ) ) ; }
Source:
public void search ( ) { if ( ( getEntity ( ) ) != null ) { setSearchString ( ( "events: host.name=" + ( getEntity ( ) . getName ( ) ) ) ) ; super . search ( ) ; } }

Target:
protected void onEntityContentChanged ( ) { super . onEntityContentChanged ( ) ; if ( ( getEntity ( ) ) != null ) { getSearchCommand ( ) . execute ( ) ; } else { setItems ( null ) ; } }
Source:
public boolean isManaged ( ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface.NetworkImplementationDetails details = getNetworkImplementationDetails ( ) ; return ( details == null ) || ( details.isManaged ( ) ) ; }

Target:
public boolean isManaged ( ) { return ! ( ( isAttached ( ) ) && ( ( getNetworkAttachment ( ) ) == null ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.network.NetworkBootProtocol getBootProtocol ( ) { return hasIpConfiguration ( ) ? getIpConfiguration ( ) . getBootProtocol ( ) : null ; }

Target:
public org.ovirt.engine.core.common.businessentities.network.NetworkBootProtocol getBootProtocol ( ) { return ( hasIpConfiguration ( ) ) && ( getIpConfiguration ( ) . hasPrimaryAddressSet ( ) ) ? getIpConfiguration ( ) . getPrimaryAddress ( ) . getBootProtocol ( ) : null ; }
Source:
public void OnApprove ( ) { OnSave ( true ) ; }

Target:
public void onApprove ( ) { onSave ( true ) ; }
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 ) { updateReportsAvailability ( constants ) ; }

Target:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( ) { return getMainModel ( ) . getDisableGlobalHaMaintenanceCommand ( ) ; }
Source:
private void assertCorrectSlaveCountInLabeledValidBondsWhenInsufficientBonds ( int numberOfSlaves ) { assertCorrectSlaveCountInLabeledValidBonds ( numberOfSlaves , java.lang.String.format ( "bonded interface with only %1$d slaves is not valid bond" , numberOfSlaves ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.IMPROPER_BOND_IS_LABELED ) ) ; }

Target:
public void testLabeledValidBondWhenSufficientNumberOfSlaves ( ) throws java.lang.Exception { assertCorrectSlaveCountInLabeledValidBonds ( 2 , "bonded interface with two or more slaves should be valid bond" , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , "bondName" ) ; }
Source:
public void incorrect ( ) { org.junit.Assert.assertFalse ( new org.ovirt.engine.ui.uicommonweb.validation.HostWithProtocolAndPortAddressValidationTest.TestableHostWithProtocolAndPortAddressValidation ( ) . validate ( "someHostname:" ) . getSuccess ( ) ) ; org.junit.Assert.assertFalse ( new org.ovirt.engine.ui.uicommonweb.validation.HostWithProtocolAndPortAddressValidationTest.TestableHostWithProtocolAndPortAddressValidation ( ) . validate ( "://someHostname" ) . getSuccess ( ) ) ; org.junit.Assert.assertFalse ( new org.ovirt.engine.ui.uicommonweb.validation.HostWithProtocolAndPortAddressValidationTest.TestableHostWithProtocolAndPortAddressValidation ( ) . validate ( "so m eHostname" ) . getSuccess ( ) ) ; org.junit.Assert.assertFalse ( new org.ovirt.engine.ui.uicommonweb.validation.HostWithProtocolAndPortAddressValidationTest.TestableHostWithProtocolAndPortAddressValidation ( ) . validate ( "asd:/someHostname" ) . getSuccess ( ) ) ; org.junit.Assert.assertFalse ( new org.ovirt.engine.ui.uicommonweb.validation.HostWithProtocolAndPortAddressValidationTest.TestableHostWithProtocolAndPortAddressValidation ( ) . validate ( "asd:someHostname" ) . getSuccess ( ) ) ; org.junit.Assert.assertFalse ( new org.ovirt.engine.ui.uicommonweb.validation.HostWithProtocolAndPortAddressValidationTest.TestableHostWithProtocolAndPortAddressValidation ( ) . validate ( "someHostname:abc" ) . getSuccess ( ) ) ; }

Target:
public void incorrect ( ) { org.junit.Assert.assertFalse ( validation.validate ( "someHostname:" ) . getSuccess ( ) ) ; org.junit.Assert.assertFalse ( validation.validate ( "://someHostname" ) . getSuccess ( ) ) ; org.junit.Assert.assertFalse ( validation.validate ( "so m eHostname" ) . getSuccess ( ) ) ; org.junit.Assert.assertFalse ( validation.validate ( "asd:/someHostname" ) . getSuccess ( ) ) ; org.junit.Assert.assertFalse ( validation.validate ( "asd:someHostname" ) . getSuccess ( ) ) ; org.junit.Assert.assertFalse ( validation.validate ( "someHostname:abc" ) . getSuccess ( ) ) ; }
Source:
public void InternalSetVmStatus ( org.ovirt.engine.core.common.businessentities.VM vm , final org.ovirt.engine.core.common.businessentities.VMStatus status ) { InternalSetVmStatus ( vm , status , VmExitStatus.Normal , StringUtils.EMPTY ) ; }

Target:
public void InternalSetVmStatus ( org.ovirt.engine.core.common.businessentities.VM vm , final org.ovirt.engine.core.common.businessentities.VMStatus status ) { InternalSetVmStatus ( vm , status , VmExitStatus.Normal , StringUtils.EMPTY , VmExitReason.Unknown ) ; }
Source:
org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatusForXmlRpc glusterVolumeGeoRepStatus ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName ) ;

Target:
org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatusForXmlRpc glusterVolumeGeoRepSessionList ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName ) ;
Source:
public static org.ovirt.engine.core.common.businessentities.VolumeType getMemoryVolumeTypeForStorageDomain ( org.ovirt.engine.core.common.businessentities.StorageType storageType ) { return storageType.isFileDomain ( ) ? org.ovirt.engine.core.common.businessentities.VolumeType.Sparse : org.ovirt.engine.core.common.businessentities.VolumeType.Preallocated ; }

Target:
public static org.ovirt.engine.core.common.businessentities.storage.VolumeType getMemoryVolumeTypeForStorageDomain ( org.ovirt.engine.core.common.businessentities.storage.StorageType storageType ) { return storageType.isFileDomain ( ) ? org.ovirt.engine.core.common.businessentities.storage.VolumeType.Sparse : org.ovirt.engine.core.common.businessentities.storage.VolumeType.Preallocated ; }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase RunAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue = org.ovirt.engine.ui.genericapi.GenericApiService.backend.RunAction ( actionType , parameters ) ; return returnValue ; }

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase RunAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue = backend.RunAction ( actionType , parameters ) ; return returnValue ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VM getEntity ( int index , org.ovirt.engine.core.common.businessentities.VMStatus status ) { return org.ovirt.engine.api.restapi.resource.AbstractBackendCdRomsResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.core.common.businessentities.VM.class ) , control.createMock ( org.ovirt.engine.core.common.businessentities.VmStatic.class ) , status , index ) ; }

Target:
public void testGetCurrentWithGarbledMatrixReturnsCurrent ( ) throws java.lang.Exception { setUriInfo ( setUpUriMatrixExpectations ( "faSLe" ) ) ; setUpEntityQueryExpectations ( 1 ) ; control.replay ( ) ; org.ovirt.engine.api.model.CdRom cdrom = resource.get ( ) ; verifyModelWithCurrentCd ( cdrom ) ; }
Source:
public java.lang.Void call ( ) throws org.ovirt.vdsm.jsonrpc.client.ClientConnectionException { client.updateInterestedOps ( ) ; return null ; }

Target:
public java.lang.Void call ( ) { closeChannel ( ) ; return null ; }
Source:
public void setStoragePoolId ( org.ovirt.engine.core.compat.Guid value ) { this . storage_pool_idField = value ; }

Target:
public void setStoragePoolId ( org.ovirt.engine.core.compat.Guid value ) { this . storagePoolId = value ; }
Source:
protected void addStyles ( ) { migrateEditor.addContentWidgetStyleName ( style.migrateOption ( ) ) ; }

Target:
protected void addStyles ( ) { migrateEditor.addContentWidgetContainerStyleName ( style.migrateOption ( ) ) ; }
Source:
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 ( ) ; cancelConfirm ( ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.core.common.businessentities.VDSGroup cluster = ( ( org.ovirt.engine.core.common.businessentities.VDSGroup ) ( returnValue ) ) ; if ( cluster != null ) { maintenance ( cluster.isMaintenanceReasonRequired ( ) ) ; } }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { updateSysprepVisibility ( object ) ; }

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 ) { updateSysprepVisibility ( object ) ; updateInitialRunTabVisibility ( object ) ; }
Source:
public void setport ( int value ) { this . mVdsStatic.setport ( value ) ; }

Target:
public void setPort ( int value ) { this . mVdsStatic.setPort ( value ) ; }
Source:
private void Shutdown ( ) { org.ovirt.engine.core.common.businessentities.VM entity = ( ( org.ovirt.engine.core.common.businessentities.VM ) ( getItem ( ) . getEntity ( ) ) ) ; org.ovirt.engine.ui.frontend.Frontend.RunAction ( VdcActionType.ShutdownVm , new org.ovirt.engine.core.common.action.ShutdownVmParameters ( entity.getId ( ) , true ) ) ; }

Target:
private void shutdown ( ) { org.ovirt.engine.core.common.businessentities.VM entity = ( ( org.ovirt.engine.core.common.businessentities.VM ) ( getItem ( ) . getEntity ( ) ) ) ; org.ovirt.engine.ui.frontend.Frontend.RunAction ( VdcActionType.ShutdownVm , new org.ovirt.engine.core.common.action.ShutdownVmParameters ( entity.getId ( ) , true ) ) ; }
Source:
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 ( EngineMessage.ACTION_TYPE_FAILED_STORAGE_POOL_WITH_DEFAULT_VDS_GROUP_CANNOT_BE_LOCALFS ) ; }

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 ( ) ; org.mockito.Mockito.doReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_STORAGE_POOL_WITH_DEFAULT_VDS_GROUP_CANNOT_BE_LOCALFS ) ) . when ( poolValidator ) . isNotLocalfsWithDefaultCluster ( ) ; canDoActionFailed ( EngineMessage.ACTION_TYPE_FAILED_STORAGE_POOL_WITH_DEFAULT_VDS_GROUP_CANNOT_BE_LOCALFS ) ; }
Source:
public void validateLiveMigrateDownVmFails ( ) { initStorageDomain ( srcStorageId ) ; initDiskImage ( diskImageGroupId , diskImageId ) ; initVm ( VMStatus.Down , org.ovirt.engine.core.compat.Guid.newGuid ( ) , diskImageGroupId ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.CANNOT_LIVE_MIGRATE_VM_SHOULD_BE_IN_PAUSED_OR_UP_STATUS ) ; }

Target:
public void validateLiveMigrateDownVmFails ( ) { initStorageDomain ( srcStorageId ) ; initStorageDomain ( dstStorageId ) ; initDiskImage ( diskImageGroupId , diskImageId ) ; initVm ( VMStatus.Down , org.ovirt.engine.core.compat.Guid.newGuid ( ) , diskImageGroupId ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.CANNOT_LIVE_MIGRATE_VM_SHOULD_BE_IN_PAUSED_OR_UP_STATUS ) ; }
Source:
protected org.ovirt.engine.api.model.StorageDomain getEntity ( int index ) { return org.ovirt.engine.api.restapi.resource.BackendAttachedStorageDomainsResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.api.model.StorageDomain.class ) , index , StorageType.NFS ) ; }

Target:
protected org.ovirt.engine.api.model.StorageDomain getEntity ( int index ) { return setUpDomainExpectations ( StorageType.NFS ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VDS object ) { return object.getvds_group_name ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VDS object ) { return object.getVdsGroupName ( ) ; }
Source:
public static void logAndFailTaskOfCommandWithEmptyVdsmId ( org.ovirt.engine.core.common.businessentities.AsyncTask task , java.lang.String message ) { org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.getAsyncTaskManager ( ) . logAndFailPartiallySubmittedTaskOfCommand ( task , message ) ; }

Target:
public static java.util.List < org.ovirt.engine.core.compat.Guid > getChildCommandIds ( org.ovirt.engine.core.compat.Guid commandId , org.ovirt.engine.core.common.action.VdcActionType childActionType , org.ovirt.engine.core.compat.CommandStatus status ) { return org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.coco.getChildCommandIds ( commandId , childActionType , status ) ; }
Source:
public void publicConnectionClosed ( java.lang.Exception ex ) { errorPopupManager.show ( messages.uiCommonPublicConnectionClosed ( ex.getLocalizedMessage ( ) ) ) ; }

Target:
public void publicConnectionClosed ( java.lang.Exception ex ) { errorPopupManager.show ( org.ovirt.engine.ui.common.uicommon.FrontendEventsHandlerImpl.messages.uiCommonPublicConnectionClosed ( ex.getLocalizedMessage ( ) ) ) ; }
Source:
public void saveOrUpdate ( org.ovirt.engine.core.common.businessentities.DbUser user ) { new org.springframework.jdbc.core.simple.SimpleJdbcCall ( jdbcTemplate ) . withProcedureName ( "InsertOrUpdateUser" ) . execute ( new org.ovirt.engine.core.dao.DbUserDAODbFacadeImpl.DbUserMapSqlParameterSource ( user ) ) ; }

Target:
public void saveOrUpdate ( org.ovirt.engine.core.common.businessentities.DbUser user ) { setIdIfNeeded ( user ) ; new org.springframework.jdbc.core.simple.SimpleJdbcCall ( jdbcTemplate ) . withProcedureName ( "InsertOrUpdateUser" ) . execute ( new org.ovirt.engine.core.dao.DbUserDAODbFacadeImpl.DbUserMapSqlParameterSource ( user ) ) ; }
Source:
java.util.List < org.ovirt.engine.core.common.businessentities.Erratum > getErrataForHost ( java.lang.String hostName ) ;

Target:
org.ovirt.engine.core.common.businessentities.ErrataData getErrataForHost ( java.lang.String hostName , org.ovirt.engine.core.common.queries.ErrataFilter errataFilter ) ;
Source:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotEnabledNotSetNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setType ( UsbType.NATIVE ) ; org.junit.Assert.assertEquals ( UsbPolicy.DISABLED , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED ) ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotEnabledNotSetNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setType ( UsbType.NATIVE ) ; org.junit.jupiter.api.Assertions.assertEquals ( UsbPolicy.DISABLED , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED ) ) ; }
Source:
public static < TSource > boolean containsByIdentity ( java.lang.Iterable < TSource > source , java.lang.Object item ) { for ( TSource sourceItem : source ) { if ( sourceItem == item ) { return true ; } } return false ; }

Target:
public int compare ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface nic1 , org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface nic2 ) { return lexoNumeric.compare ( nic1.getName ( ) , nic2.getName ( ) ) ; }
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 ) ; behavior.eventRaised ( ev , 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 ) ; behavior.eventRaised ( ev , sender , args ) ; }
Source:
private boolean NeedToUpdateVdsBroker ( ) { return org.ovirt.engine.core.bll.VdsHandler.isFieldsUpdated ( org.ovirt.engine.core.bll.hostdeploy.UpdateVdsCommand.getParameters ( ) . getVdsStaticData ( ) , oldHost.getStaticData ( ) , org.ovirt.engine.core.bll.hostdeploy.UpdateVdsCommand.UPDATE_FIELDS_VDS_BROKER ) ; }

Target:
private boolean needToUpdateVdsBroker ( ) { return org.ovirt.engine.core.bll.VdsHandler.isFieldsUpdated ( org.ovirt.engine.core.bll.hostdeploy.UpdateVdsCommand.getParameters ( ) . getVdsStaticData ( ) , oldHost.getStaticData ( ) , org.ovirt.engine.core.bll.hostdeploy.UpdateVdsCommand.UPDATE_FIELDS_VDS_BROKER ) ; }
Source:
private void verifyModel ( org.ovirt.engine.api.model.ExternalProvider model , int index ) { org.junit.Assert.assertEquals ( GUIDS [ index ] . toString ( ) , model.getId ( ) ) ; org.junit.Assert.assertEquals ( NAMES [ index ] , model.getName ( ) ) ; }

Target:
private void verifyModel ( org.ovirt.engine.api.model.ExternalProvider model , int index ) { org.junit.jupiter.api.Assertions.assertEquals ( GUIDS [ index ] . toString ( ) , model.getId ( ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( NAMES [ index ] , model.getName ( ) ) ; }
Source:
private void localize ( ) { securityCheckbox.setText ( org.ovirt.engine.ui.webadmin.widget.errata.ErrataFilterPanel.constants.security ( ) ) ; bugCheckbox.setText ( org.ovirt.engine.ui.webadmin.widget.errata.ErrataFilterPanel.constants.bugs ( ) ) ; enhancementCheckbox.setText ( org.ovirt.engine.ui.webadmin.widget.errata.ErrataFilterPanel.constants.enhancements ( ) ) ; }

Target:
private void localize ( ) { securityCheckbox.setHTML ( org.ovirt.engine.ui.webadmin.widget.errata.ErrataFilterPanel.constants.security ( ) ) ; bugCheckbox.setHTML ( org.ovirt.engine.ui.webadmin.widget.errata.ErrataFilterPanel.constants.bugs ( ) ) ; enhancementCheckbox.setHTML ( org.ovirt.engine.ui.webadmin.widget.errata.ErrataFilterPanel.constants.enhancements ( ) ) ; }
Source:
protected org.ovirt.engine.core.bll.validator.storage.DiskValidator getDiskValidator ( org.ovirt.engine.core.common.businessentities.storage.Disk disk ) { return new org.ovirt.engine.core.bll.validator.storage.DiskValidator ( disk , getVmDeviceUtils ( ) ) ; }

Target:
protected org.ovirt.engine.core.bll.validator.storage.DiskValidator getDiskValidator ( org.ovirt.engine.core.common.businessentities.storage.Disk disk ) { return new org.ovirt.engine.core.bll.validator.storage.DiskValidator ( disk , org.ovirt.engine.core.bll.storage.disk.AbstractDiskVmCommand.getVmDeviceUtils ( ) ) ; }
Source:
private java.lang.String getJsonDiskDescription ( ) throws java.io.IOException { return org.ovirt.engine.core.bll.ImagesHandler.getJsonDiskDescription ( org.ovirt.engine.core.bll.UpdateVmDiskCommand.getParameters ( ) . getDiskInfo ( ) ) ; }

Target:
private java.lang.String getJsonDiskDescription ( ) throws java.io.IOException { return org.ovirt.engine.core.bll.MetadataDiskDescriptionHandler.getJsonDiskDescription ( org.ovirt.engine.core.bll.UpdateVmDiskCommand.getParameters ( ) . getDiskInfo ( ) ) ; }
Source:
public void updateNetConfigDirty ( org.ovirt.engine.core.compat.Guid id , java.lang.Boolean netConfigDirty ) { org.ovirt.engine.core.common.businessentities.VdsDynamic entity = get ( id ) ; entity.setNetConfigDirty ( netConfigDirty ) ; update ( entity ) ; }

Target:
private org.springframework.jdbc.core.namedparam.MapSqlParameterSource createFullParametersMapperForSave ( org.ovirt.engine.core.common.businessentities.VdsDynamic vds ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = createFullParametersMapper ( vds ) ; parameterSource.addValue ( "controlled_by_pm_policy" , vds.isPowerManagementControlledByPolicy ( ) ) ; return parameterSource ; }
Source:
public java.lang.Object call ( ) { getStoragePoolIsoMapDao ( ) . remove ( new org.ovirt.engine.core.common.businessentities.StoragePoolIsoMapId ( mapToRemove.getstorage_id ( ) , mapToRemove.getstorage_pool_id ( ) ) ) ; return null ; }

Target:
public java.lang.Object call ( ) { getStoragePoolIsoMapDao ( ) . remove ( new org.ovirt.engine.core.common.businessentities.StoragePoolIsoMapId ( mapToRemove.getStorageId ( ) , mapToRemove.getStoragePoolId ( ) ) ) ; return null ; }
Source:
private void logError ( java.lang.String txt ) { org.ovirt.engine.ui.uicommonweb.models.storage.UploadImageModel.log.error ( txt ) ; }

Target:
private void logError ( java.lang.String txt ) { org.ovirt.engine.ui.uicommonweb.models.storage.UploadImageModel.log.severe ( txt ) ; }
Source:
protected void removeVmRelatedEntitiesFromDb ( ) { org.ovirt.engine.core.bll.AddVmCommand.removeVmUsers ( ) ; org.ovirt.engine.core.bll.AddVmCommand.removeVmNetwork ( ) ; new org.ovirt.engine.core.bll.snapshots.SnapshotsManager ( ) . removeSnapshots ( org.ovirt.engine.core.bll.AddVmCommand.getVmId ( ) ) ; org.ovirt.engine.core.bll.AddVmCommand.removeVmStatic ( ) ; }

Target:
protected void removeVmRelatedEntitiesFromDb ( ) { org.ovirt.engine.core.bll.AddVmCommand.removeVmUsers ( ) ; org.ovirt.engine.core.bll.AddVmCommand.removeVmNetwork ( ) ; org.ovirt.engine.core.bll.AddVmCommand.removeVmSnapshots ( ) ; org.ovirt.engine.core.bll.AddVmCommand.removeVmStatic ( ) ; }
Source:
private void Alert ( org.ovirt.engine.core.bll.AuditLogType logType , java.lang.String reason ) { org.ovirt.engine.core.bll.AuditLogableBase alert = new org.ovirt.engine.core.bll.AuditLogableBase ( ) ; alert.setVdsId ( getVdsId ( ) ) ; alert.AddCustomValue ( "Reason" , reason ) ; org.ovirt.engine.core.bll.AlertDirector.Alert ( alert , logType ) ; }

Target:
private void Alert ( org.ovirt.engine.core.bll.AuditLogType logType , java.lang.String reason ) { org.ovirt.engine.core.bll.AuditLogableBase alert = new org.ovirt.engine.core.bll.AuditLogableBase ( ) ; alert.setVdsId ( getVdsId ( ) ) ; alert.addCustomValue ( "Reason" , reason ) ; org.ovirt.engine.core.bll.AlertDirector.Alert ( alert , logType ) ; }
Source:
protected void buildVmSoundDevices ( ) { if ( ( vm.getvm_type ( ) ) == ( org.ovirt.engine.core.common.businessentities.VmType.Desktop ) ) { createInfo.add ( VdsProperties.soundDevice , getSoundDevice ( vm ) ) ; } }

Target:
protected void buildVmSoundDevices ( ) { if ( ( vm.getvm_type ( ) ) == ( org.ovirt.engine.core.common.businessentities.VmType.Desktop ) ) { createInfo.add ( VdsProperties.soundDevice , getSoundDevice ( vm.getStaticData ( ) , vm.getvds_group_compatibility_version ( ) ) ) ; } }
Source:
public void setEntity ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity value ) { super . setEntity ( value ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel ) ( getConfirmWindow ( ) ) ) ; localModel.stopProgress ( ) ; setConfirmWindow ( null ) ; }
Source:
public void testNoDiskStats ( ) { org.ovirt.engine.core.common.businessentities.VDS vds = org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilderTest.getVds ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.updateLocalDisksUsage ( vds , new java.util.HashMap < > ( ) ) ; org.junit.Assert.assertNull ( vds.getLocalDisksUsage ( ) ) ; }

Target:
public void testNoDiskStats ( ) { org.ovirt.engine.core.common.businessentities.VDS vds = org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilderTest.getVds ( ) ; vdsBrokerObjectsBuilder.updateLocalDisksUsage ( vds , new java.util.HashMap < > ( ) ) ; org.junit.Assert.assertNull ( vds.getLocalDisksUsage ( ) ) ; }
Source:
public void testGetAllForVdsGroupWithPermissionsForUnpriviligedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result = dao.getAllForVdsGroup ( existingVds.getVdsGroupId ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForClusterWithPermissionsForUnpriviligedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result = dao.getAllForCluster ( existingVds.getClusterId ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
private void select ( ) { try { this . selector.select ( org.ovirt.vdsm.jsonrpc.client.reactors.Reactor.TIMEOUT ) ; } catch ( java.io.IOException e ) { org.ovirt.vdsm.jsonrpc.client.reactors.Reactor.LOG.error ( "IOException occured" , e ) ; } }

Target:
private void select ( ) { try { this . selector.select ( org.ovirt.vdsm.jsonrpc.client.reactors.Reactor.TIMEOUT ) ; } catch ( java.io.IOException e ) { org.ovirt.vdsm.jsonrpc.client.utils.JsonUtils.logException ( org.ovirt.vdsm.jsonrpc.client.reactors.Reactor.LOG , "IOException occured" , e ) ; } }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.HostDevice device ) { return ( vmId.equals ( device.getVmId ( ) ) ) && ( isVf ( device ) ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.HostDevice getVf ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface nic , final boolean shouldBeFree ) { return getVf ( nic , shouldBeFree , null ) ; }
Source:
public void testGetAllForStoragePoolWithPermissionsPrivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllForStoragePool ( org.ovirt.engine.core.dao.StorageDomainDAOTest.EXISTING_STORAGE_POOL_ID , org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , true ) ; org.ovirt.engine.core.dao.StorageDomainDAOTest.assertGetAllForStoragePoolResult ( result ) ; }

Target:
public void testGetAllForStoragePoolWithPermissionsPrivilegedUser ( ) { org.ovirt.engine.core.compat.Guid storagePoolId = new org.ovirt.engine.core.compat.Guid ( "6d849ebf-755f-4552-ad09-9a090cda105d" ) ; java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllForStoragePool ( storagePoolId , org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , true ) ; org.ovirt.engine.core.dao.StorageDomainDAOTest.assertGetAllForStoragePoolResult ( result , storagePoolId ) ; }
Source:
public void setstatus ( int value ) { this . status = value ; }

Target:
public void setStatus ( int value ) { status = value ; }
Source:
protected void forceRefresh ( ) { if ( ( getEntity ( ) ) != null ) { super . forceRefresh ( ) ; } }

Target:
protected void forceRefreshWithoutTimers ( ) { if ( ( getEntity ( ) ) != null ) { super . forceRefreshWithoutTimers ( ) ; } }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.Disk object ) { return object.getDiskDescription ( ) ; }

Target:
void initTableOverhead ( ) { disksViewRadioGroup = new org.ovirt.engine.ui.common.widget.uicommon.disks.DisksViewRadioGroup ( ) ; disksViewRadioGroup.setClickHandler ( clickHandler ) ; getTable ( ) . setTableOverhead ( disksViewRadioGroup ) ; getTable ( ) . setTableTopMargin ( 20 ) ; }
Source:
public void setStoragePoolId ( org.ovirt.engine.core.compat.NGuid storagePool ) { this . storagePool = storagePool ; }

Target:
public void setStoragePoolName ( java.lang.String value ) { this . storagePoolName = value ; }
Source:
public void testRefreshHeavyWeightFor31 ( ) throws java.lang.Exception { createCluster ( Version.v3_1 ) ; setupMocks ( ) ; glusterManager.refreshHeavyWeightData ( ) ; verifyMocksForHeavyWeight ( ) ; }

Target:
public void testRefreshHeavyWeight ( ) throws java.lang.Exception { createCluster ( ) ; setupMocks ( ) ; glusterManager.refreshHeavyWeightData ( ) ; verifyMocksForHeavyWeight ( ) ; }
Source:
public void testRemoveAllForVds ( ) throws java.lang.Exception { dao.removeAllForVds ( org.ovirt.engine.core.dao.AuditLogDAOTest.VDS_ID , true ) ; java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > result = dao.getAll ( null , false ) ; org.junit.Assert.assertEquals ( 5 , result.size ( ) ) ; }

Target:
public void testRemoveAllForVds ( ) throws java.lang.Exception { dao.removeAllForVds ( org.ovirt.engine.core.dao.AuditLogDAOTest.VDS_ID , true ) ; java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > result = dao.getAll ( null , false ) ; org.junit.Assert.assertEquals ( 6 , result.size ( ) ) ; }
Source:
protected void TestVdsPowerManagementStatus ( org.ovirt.engine.core.common.businessentities.VdsStatic vdsStatic ) { if ( vdsStatic.isPmEnabled ( ) ) { runInternalQuery ( VdcQueryType.GetVdsFenceStatus , new org.ovirt.engine.core.common.queries.VdsIdParametersBase ( vdsStatic.getId ( ) ) ) ; } }

Target:
protected void testVdsPowerManagementStatus ( org.ovirt.engine.core.common.businessentities.VdsStatic vdsStatic ) { if ( vdsStatic.isPmEnabled ( ) ) { pmHealthCheckManager.pmHealthCheck ( vdsStatic.getId ( ) ) ; } }
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.ExternalSubnet > ) ( value ) ) , new org.ovirt.engine.ui.uicommonweb.Linq.ExternalSubnetComparator ( ) ) ; } super . setItems ( value ) ; }

Target:
protected void syncSearch ( ) { if ( ( getEntity ( ) ) == null ) { return ; } super . syncSearch ( VdcQueryType.GetExternalSubnetsOnProviderByNetwork , new org.ovirt.engine.core.common.queries.IdQueryParameters ( getEntity ( ) . getId ( ) ) ) ; }
Source:
private void cancelTasks ( ) { org.ovirt.engine.core.bll.tasks.TaskManagerUtil.cancelTasks ( this ) ; }

Target:
private void cancelTasks ( ) { org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.cancelTasks ( this ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.IVdsEventListener getVdsEventListener ( ) { return org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . getEventListener ( ) ; }

Target:
private void reloadVds ( org.ovirt.engine.core.common.businessentities.VDS vds ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDao ( ) . reloadPartial ( vds ) ; }
Source:
public org.ovirt.engine.core.common.queries.VdcQueryReturnValue runPublicQuery ( org.ovirt.engine.core.common.queries.VdcQueryType queryType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase params ) { org.ovirt.engine.ui.frontend.server.gwt.GenericApiGWTServiceImpl.log.debug ( ( "Server: runPublicQuery invoked! " + queryType ) ) ; debugQuery ( queryType , params ) ; return getBackend ( ) . runPublicQuery ( queryType , params ) ; }

Target:
public org.ovirt.engine.core.common.queries.VdcQueryReturnValue runPublicQuery ( org.ovirt.engine.core.common.queries.VdcQueryType queryType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase params ) { org.ovirt.engine.ui.frontend.server.gwt.GenericApiGWTServiceImpl.log.debug ( "Server: runPublicQuery invoked! '{}'" , queryType ) ; debugQuery ( queryType , params ) ; return getBackend ( ) . runPublicQuery ( queryType , params ) ; }
Source:
public void storageDomainWithIdNullPool ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.TestAuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.TestAuditLogableBase ( ) ; b.setStorageDomainId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; b.setStoragePoolId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID2 ) ; final org.ovirt.engine.core.common.businessentities.StorageDomain s = b.getStorageDomain ( ) ; org.junit.Assert.assertNull ( s ) ; }

Target:
public void storageDomainWithId ( ) { b.setStorageDomainId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; b.setStoragePoolId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; final org.ovirt.engine.core.common.businessentities.StorageDomain s = b.getStorageDomain ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.STORAGE_DOMAIN , s ) ; }
Source:
public void getByNameCaseSensitive ( ) { org.junit.Assert.assertNull ( dao.getByName ( FixturesTool.PROVIDER_NAME.toUpperCase ( ) ) ) ; }

Target:
public void getByNameCaseSensitive ( ) { org.junit.jupiter.api.Assertions.assertNull ( dao.getByName ( FixturesTool.PROVIDER_NAME.toUpperCase ( ) ) ) ; }
Source:
public void testGetConnectionUrlWithWrappedIpv6Address ( ) throws java.net.MalformedURLException { final java.lang.String wrappedIpv6Address = java.lang.String.format ( "[%s]" , org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcUtilsTest.IPV6_ADDRESS ) ; final org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.net.URL > actual = org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcUtils.getConnectionUrl ( wrappedIpv6Address , org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcUtilsTest.PORT , null , true ) ; final java.lang.String expectedUrl = java.lang.String.format ( "https://[%s]:%d" , org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcUtilsTest.IPV6_ADDRESS , org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcUtilsTest.PORT ) ; org.junit.Assert.assertThat ( actual.getFirst ( ) , org.hamcrest.Matchers.is ( expectedUrl ) ) ; org.junit.Assert.assertThat ( actual.getSecond ( ) , org.hamcrest.Matchers.is ( new java.net.URL ( expectedUrl ) ) ) ; }

Target:
public void testGetConnectionUrlWithWrappedIpv6Address ( ) throws java.net.MalformedURLException { final java.lang.String wrappedIpv6Address = java.lang.String.format ( "[%s]" , org.ovirt.engine.core.vdsbroker.HttpUtilsTest.IPV6_ADDRESS ) ; final org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.net.URL > actual = org.ovirt.engine.core.vdsbroker.HttpUtils.getConnectionUrl ( wrappedIpv6Address , org.ovirt.engine.core.vdsbroker.HttpUtilsTest.PORT , null , true ) ; final java.lang.String expectedUrl = java.lang.String.format ( "https://[%s]:%d" , org.ovirt.engine.core.vdsbroker.HttpUtilsTest.IPV6_ADDRESS , org.ovirt.engine.core.vdsbroker.HttpUtilsTest.PORT ) ; org.junit.Assert.assertThat ( actual.getFirst ( ) , org.hamcrest.Matchers.is ( expectedUrl ) ) ; org.junit.Assert.assertThat ( actual.getSecond ( ) , org.hamcrest.Matchers.is ( new java.net.URL ( expectedUrl ) ) ) ; }
Source:
public void updateStatus ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.common.businessentities.VDSStatus status ) { org.ovirt.engine.core.common.businessentities.VdsDynamic entity = get ( id ) ; entity.setStatus ( status ) ; update ( entity ) ; }

Target:
protected org.springframework.jdbc.core.namedparam.MapSqlParameterSource createIdParameterMapper ( org.ovirt.engine.core.compat.Guid id ) { return getCustomMapSqlParameterSource ( ) . addValue ( "vds_id" , id ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e = ( ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ) ( args ) ) ; if ( ( e.PropertyName ) == "IsAvailable" ) { setPkPasswordSectionVisiblity ( false ) ; } }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e = ( ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ) ( args ) ) ; if ( ( e.propertyName ) == "IsAvailable" ) { setPkPasswordSectionVisiblity ( false ) ; } }