auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.clusters.ManageGlusterSwiftModel object ) { driver.edit ( object ) ; hostServicesTable.edit ( object.getHostServicesList ( ) ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.clusters.ManageGlusterSwiftModel object ) { driver.edit ( object ) ; hostServicesTable.asEditor ( ) . edit ( object.getHostServicesList ( ) ) ; }
Source:
public void setOverrideEnabledSmartcard ( boolean enabled ) { this . smartcardEnabledOverridden = enabled ; }

Target:
public void setFullScreen ( boolean fullScreen ) { this . consoleOptions.setFullScreen ( fullScreen ) ; }
Source:
public static boolean isSpiceFileTransferToggleSupported ( java.lang.String version ) { return ( ( java.lang.Boolean ) ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getConfigValuePreConverted ( ConfigurationValues.SpiceFileTransferToggleSupported , version ) ) ) ; }

Target:
public boolean isBootMenuSupported ( java.lang.String version ) { return ( ( java.lang.Boolean ) ( getConfigValuePreConverted ( ConfigurationValues.BootMenuSupported , version ) ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.storage.ImageTransfer updateEntity ( org.ovirt.engine.core.common.businessentities.storage.ImageTransfer updates , boolean clearResourceId ) { return imageTransferUpdater.updateEntity ( updates , org.ovirt.engine.core.bll.storage.disk.image.UploadImageCommand.getCommandId ( ) , clearResourceId ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.storage.ImageTransfer updateEntity ( org.ovirt.engine.core.common.businessentities.storage.ImageTransfer updates , boolean clearResourceId ) { return imageTransferUpdater.updateEntity ( updates , org.ovirt.engine.core.bll.storage.disk.image.TransferImageCommand.getCommandId ( ) , clearResourceId ) ; }
Source:
protected void EntityPropertyChanged ( java.lang.Object sender , org.ovirt.engine.core.compat.PropertyChangedEventArgs e ) { super . EntityPropertyChanged ( sender , e ) ; }

Target:
protected void EntityPropertyChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . EntityPropertyChanged ( sender , e ) ; }
Source:
protected void removeVmFromDb ( ) { removeLunDisks ( ) ; org.ovirt.engine.core.bll.RemoveVmCommand.removeVmUsers ( ) ; org.ovirt.engine.core.bll.RemoveVmCommand.removeVmNetwork ( ) ; new org.ovirt.engine.core.bll.snapshots.SnapshotsManager ( ) . removeSnapshots ( org.ovirt.engine.core.bll.RemoveVmCommand.getVmId ( ) ) ; org.ovirt.engine.core.bll.RemoveVmCommand.removeVmStatic ( ) ; }

Target:
protected void removeVmFromDb ( ) { removeLunDisks ( ) ; org.ovirt.engine.core.bll.RemoveVmCommand.removeVmUsers ( ) ; org.ovirt.engine.core.bll.RemoveVmCommand.removeVmNetwork ( ) ; org.ovirt.engine.core.bll.RemoveVmCommand.removeVmSnapshots ( ) ; org.ovirt.engine.core.bll.RemoveVmCommand.removeVmStatic ( ) ; }
Source:
protected void handleSpecificCommandActions ( ) { org.ovirt.engine.core.bll.RestartVdsVmsOperation restartVmsOper = new org.ovirt.engine.core.bll.RestartVdsVmsOperation ( org.ovirt.engine.core.bll.StartVdsCommand.getExecutionContext ( ) , org.ovirt.engine.core.bll.StartVdsCommand.getVds ( ) ) ; restartVmsOper.restartVms ( mVmList ) ; }

Target:
protected void handleSpecificCommandActions ( ) { org.ovirt.engine.core.bll.RestartVdsVmsOperation restartVmsOper = new org.ovirt.engine.core.bll.RestartVdsVmsOperation ( org.ovirt.engine.core.bll.StartVdsCommand.getContext ( ) , org.ovirt.engine.core.bll.StartVdsCommand.getVds ( ) ) ; restartVmsOper.restartVms ( mVmList ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase endAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , org.ovirt.engine.core.bll.context.CommandContext context ) { org.ovirt.engine.core.bll.CommandBase < ? > command = org.ovirt.engine.core.bll.CommandsFactory.CreateCommand ( actionType , parameters ) ; command.setContext ( context ) ; return command.EndAction ( ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase endAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , org.ovirt.engine.core.bll.context.CommandContext context ) { org.ovirt.engine.core.bll.CommandBase < ? > command = org.ovirt.engine.core.bll.CommandsFactory.createCommand ( actionType , parameters ) ; command.setContext ( context ) ; return command.endAction ( ) ; }
Source:
public void update ( int index , org.ovirt.engine.ui.uicommonweb.models.EntityModel model , java.lang.Boolean value ) { org.ovirt.engine.ui.uicommonweb.models.providers.ExternalNetwork externalNetwork = ( ( org.ovirt.engine.ui.uicommonweb.models.providers.ExternalNetwork ) ( model ) ) ; externalNetwork.setAttached ( value ) ; refreshNetworksTable ( ) ; }

Target:
public void update ( int index , org.ovirt.engine.ui.uicommonweb.models.EntityModel model , java.lang.Boolean value ) { org.ovirt.engine.ui.uicommonweb.models.providers.ExternalNetwork externalNetwork = ( ( org.ovirt.engine.ui.uicommonweb.models.providers.ExternalNetwork ) ( model ) ) ; externalNetwork.setAttached ( value ) ; externalNetwork.getDataCenters ( ) . setIsChangable ( value ) ; refreshNetworksTable ( ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.network.Network findNetworkByName ( java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > items , java.lang.String name ) { for ( org.ovirt.engine.core.common.businessentities.network.Network n : items ) { if ( java.util.Objects.equals ( n.getName ( ) , name ) ) { return n ; } } return null ; }

Target:
public static org.ovirt.engine.core.common.businessentities.network.Network findNetworkByName ( java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > items , java.lang.String name ) { return org.ovirt.engine.ui.uicommonweb.Linq.firstOrNull ( items , new org.ovirt.engine.ui.uicommonweb.Linq.NamePredicate ( name ) ) ; }
Source:
protected void AsyncSearch ( ) { super . AsyncSearch ( ) ; setAsyncResult ( org.ovirt.engine.ui.frontend.Frontend.RegisterQuery ( VdcQueryType.GetAllNetworksByClusterId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( getEntity ( ) . getId ( ) ) ) ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }

Target:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; setAsyncResult ( org.ovirt.engine.ui.frontend.Frontend.RegisterQuery ( VdcQueryType.GetAllNetworksByClusterId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( getEntity ( ) . getId ( ) ) ) ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }
Source:
void processOnVmPoweringUp ( org.ovirt.engine.core.compat.Guid vds_id , org.ovirt.engine.core.compat.Guid vmid , java.lang.String display_ip , int display_port ) ;

Target:
void handleVdsMaintenanceTimeout ( org.ovirt.engine.core.compat.Guid vdsId ) ;
Source:
public void markHostDevicesUsedByVmId ( org.ovirt.engine.core.compat.Guid vmId ) { getCallsHandler ( ) . executeModification ( "MarkHostDevicesUsedByVmId" , getCustomMapSqlParameterSource ( ) . addValue ( "vm_id" , vmId ) ) ; }

Target:
public void markHostDevicesUsedByVmId ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.compat.Guid hostId ) { getCallsHandler ( ) . executeModification ( "MarkHostDevicesUsedByVmId" , getCustomMapSqlParameterSource ( ) . addValue ( "vm_id" , vmId ) . addValue ( "host_id" , hostId ) ) ; }
Source:
protected void createVirtIODisk ( ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage disk = mockDiskImage ( ) ; disk.setDiskInterface ( DiskInterface.VirtIO ) ; }

Target:
protected void createVirtIODisk ( ) { mockDiskImage ( DiskInterface.VirtIO ) ; command.getParameters ( ) . getDiskVmElement ( ) . setDiskInterface ( DiskInterface.VirtIO ) ; }
Source:
public void vnicProfileExists ( ) { org.junit.Assert.assertThat ( validator.vnicProfileExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void networkExists ( ) { org.mockito.Mockito.when ( networkDao.get ( org.mockito.ArgumentMatchers.any ( ) ) ) . thenReturn ( network ) ; org.hamcrest.MatcherAssert.assertThat ( validator.networkExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
void execute ( org.ovirt.engine.api.extensions.ExtMap context , java.util.Map < java.lang.String , java.lang.Object > argMap ) ;

Target:
void execute ( org.ovirt.engine.exttool.logger.LoggerServiceImpl module ) ;
Source:
public org.ovirt.engine.api.model.Disk resolve ( org.ovirt.engine.core.compat.Guid id ) throws org.ovirt.engine.api.restapi.resource.BackendFailureException { return getEntity ( org.ovirt.engine.api.model.Disk.class , VdcQueryType.GetDiskByDiskId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) , id.toString ( ) , true ) ; }

Target:
public org.ovirt.engine.api.model.Disk resolve ( org.ovirt.engine.core.compat.Guid id ) throws org.ovirt.engine.api.restapi.resource.BackendFailureException { return getEntity ( org.ovirt.engine.api.model.Disk.class , QueryType.GetDiskByDiskId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) , id.toString ( ) , true ) ; }
Source:
public void add ( java.lang.String agent , java.lang.String key , java.lang.String value ) { key = GetRealKey ( agent , key ) ; org.ovirt.engine.core.utils.pm.VdsFenceOptions.fenceAgentInstanceOptions.put ( key , value ) ; }

Target:
public void add ( java.lang.String agent , java.lang.String key , java.lang.String value ) { key = getRealKey ( agent , key ) ; org.ovirt.engine.core.utils.pm.VdsFenceOptions.fenceAgentInstanceOptions.put ( key , value ) ; }
Source:
public void testGetAllForNetwork ( ) { final java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > allForNetwork = dao.getAllForNetwork ( FixturesTool.NETWORK_NO_CLUSTERS_ATTACHED ) ; org.junit.Assert.assertNotNull ( allForNetwork ) ; org.junit.Assert.assertEquals ( 2 , allForNetwork.size ( ) ) ; }

Target:
public void testGetAllForNetwork ( ) { final java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > allForNetwork = dao.getAllForNetwork ( FixturesTool.NETWORK_NO_CLUSTERS_ATTACHED ) ; org.junit.jupiter.api.Assertions.assertNotNull ( allForNetwork ) ; org.junit.jupiter.api.Assertions.assertEquals ( 2 , allForNetwork.size ( ) ) ; }
Source:
public javax.ws.rs.core.Response refreshCapabilities ( org.ovirt.engine.api.model.Action action ) { return doAction ( VdcActionType.RefreshHostCapabilities , new org.ovirt.engine.core.common.action.VdsActionParameters ( guid ) , action ) ; }

Target:
public javax.ws.rs.core.Response refresh ( org.ovirt.engine.api.model.Action action ) { return doAction ( VdcActionType.RefreshHost , new org.ovirt.engine.core.common.action.VdsActionParameters ( guid ) , action ) ; }
Source:
public void testGetRelevantQuotasExistingVdsGroupNoSpecificQuotas ( ) throws java.lang.Exception { assertGetAllRelevantQuoatsForVdsGroup ( FixturesTool.VDS_GROUP_RHEL6_NFS_NO_SPECIFIC_QUOTAS , ( ( org.ovirt.engine.core.dao.QuotaDaoTest.VDS_GRUOP_NUM_QUOTAS ) - 1 ) ) ; }

Target:
public void testGetRelevantQuotasExistingClusterNoSpecificQuotas ( ) throws java.lang.Exception { assertGetAllRelevantQuoatsForCluster ( FixturesTool.CLUSTER_RHEL6_NFS_NO_SPECIFIC_QUOTAS , ( ( org.ovirt.engine.core.dao.QuotaDaoTest.VDS_GRUOP_NUM_QUOTAS ) - 1 ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.NetworkQoS createQos ( ) { org.ovirt.engine.core.common.businessentities.network.NetworkQoS qos = new org.ovirt.engine.core.common.businessentities.network.NetworkQoS ( ) ; qos.setInboundAverage ( 30 ) ; qos.setInboundPeak ( 30 ) ; qos.setInboundBurst ( 30 ) ; return qos ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.HostNetworkQos createQos ( ) { org.ovirt.engine.core.common.businessentities.network.HostNetworkQos qos = new org.ovirt.engine.core.common.businessentities.network.HostNetworkQos ( ) ; qos.setOutAverageLinkshare ( 30 ) ; qos.setOutAverageUpperlimit ( 30 ) ; qos.setOutAverageRealtime ( 30 ) ; return qos ; }
Source:
public void networkSet ( ) { org.junit.Assert.assertThat ( validator.networkIsSet ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void networkSet ( ) { org.hamcrest.MatcherAssert.assertThat ( validator.networkIsSet ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void validateFailureOnMovingVmLunDisk ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.LunDisk ( ) ) ; vmDevice.setSnapshotId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_NOT_SUPPORTED_DISK_STORAGE_TYPE ) ; }

Target:
public void passDiscardNotSupportedForDestSd ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) , VmEntityType.VM ) ; mockPassDiscardSupportedForDestSd ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_PASS_DISCARD_NOT_SUPPORTED_BY_DISK_INTERFACE ) , ImageOperation.Move ) ; org.junit.Assert.assertFalse ( command.validatePassDiscardSupportedForDestinationStorageDomain ( ) ) ; }
Source:
public void testJsonDiskDescription ( ) throws java.io.IOException { org.ovirt.engine.core.bll.ImagesHandlerTest.assertDiskDescriptionMap ( "DiskAlias" , "DiskDescription" ) ; }

Target:
public void testJsonDiskDescription ( ) throws java.io.IOException { disk1.setDiskAlias ( "DiskAlias" ) ; disk1.setDiskDescription ( "DiskDescription" ) ; org.ovirt.engine.core.bll.ImagesHandlerTest.assertDiskDescriptionMap ( disk1 ) ; }
Source:
protected java.lang.Object [ ] getRawValue ( org.ovirt.engine.core.common.businessentities.Permissions object ) { return new java.lang.Object [ ] { getDetailModel ( ) . getEntity ( ) , object.getad_element_id ( ) , object.getOwnerName ( ) } ; }

Target:
protected java.lang.Object [ ] getRawValue ( org.ovirt.engine.core.common.businessentities.Permissions object ) { return new java.lang.Object [ ] { getDetailModel ( ) . getEntity ( ) , object.getAdElementId ( ) , object.getOwnerName ( ) } ; }
Source:
public void testValid ( ) { org.junit.Assert.assertEquals ( java.lang.Thread.State.NEW , org.ovirt.engine.api.common.util.EnumValidator.validateEnum ( java.lang.Thread.State.class , "NEW" ) ) ; }

Target:
public void testValid ( ) { org.junit.jupiter.api.Assertions.assertEquals ( java.lang.Thread.State.NEW , org.ovirt.engine.api.common.util.EnumValidator.validateEnum ( java.lang.Thread.State.class , "NEW" ) ) ; }
Source:
private boolean thereAreTasksToPoll ( ) { for ( org.ovirt.engine.core.bll.tasks.SPMAsyncTask task : _tasks.values ( ) ) { if ( task.getShouldPoll ( ) ) { return true ; } } return false ; }

Target:
private boolean thereAreTasksToPoll ( ) { for ( org.ovirt.engine.core.bll.tasks.interfaces.SPMTask task : _tasks.values ( ) ) { if ( task.getShouldPoll ( ) ) { return true ; } } return false ; }
Source:
private boolean isEveryoneUserPortalBasedVmPermission ( org.ovirt.engine.core.common.businessentities.Permission permission ) { return ( permission.getAdElementId ( ) . equals ( ApplicationGuids.everyone.asGuid ( ) ) ) && ( permission.getRoleId ( ) . equals ( ApplicationGuids.userTemplateBasedVM.asGuid ( ) ) ) ; }

Target:
private boolean isPermissionOf ( org.ovirt.engine.ui.uicommonweb.auth.ApplicationGuids user , org.ovirt.engine.ui.uicommonweb.auth.ApplicationGuids role , org.ovirt.engine.core.common.businessentities.Permission permission ) { return ( permission.getAdElementId ( ) . equals ( user.asGuid ( ) ) ) && ( permission.getRoleId ( ) . equals ( role.asGuid ( ) ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult linkedCorrectly ( ) { return ( ! ( networkLinkingSupported ( ) ) ) && ( ! ( nic.isLinked ( ) ) ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.UNLINKING_IS_NOT_SUPPORTED , clusterVersion ( ) ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult linkedCorrectly ( ) { return ( ! ( org.ovirt.engine.core.bll.validator.VmNicValidator.networkLinkingSupported ( version ) ) ) && ( ! ( nic.isLinked ( ) ) ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.UNLINKING_IS_NOT_SUPPORTED , clusterVersion ( ) ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
private void initListBoxEditors ( ) { dataCenterEditor = new org.ovirt.engine.ui.common.widget.editor.ListModelListBoxEditor < org.ovirt.engine.core.common.businessentities.StoragePool > ( new org.ovirt.engine.ui.common.widget.renderer.NullSafeRenderer < org.ovirt.engine.core.common.businessentities.StoragePool > ( ) { @ java.lang.Override public java.lang.String renderNullSafe ( org.ovirt.engine.core.common.businessentities.StoragePool dataCenter ) { return dataCenter.getName ( ) ; } } ) ; }

Target:
private void initListBoxEditors ( ) { dataCenterEditor = new org.ovirt.engine.ui.common.widget.editor.ListModelListBoxEditor ( new org.ovirt.engine.ui.common.widget.renderer.NameRenderer < org.ovirt.engine.core.common.businessentities.StoragePool > ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.Network getNetwork ( ) { if ( ( network ) == null ) { network = org.ovirt.engine.core.bll.network.dc.UnlabelNetworkCommand.getNetworkDao ( ) . get ( org.ovirt.engine.core.bll.network.dc.UnlabelNetworkCommand.getParameters ( ) . getNetworkId ( ) ) ; } return network ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.Network getNetwork ( ) { if ( ( network ) == null ) { network = networkDao.get ( org.ovirt.engine.core.bll.network.dc.UnlabelNetworkCommand.getParameters ( ) . getNetworkId ( ) ) ; } return network ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > ( ) ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > ( ) ; }
Source:
public org.ovirt.engine.core.vdsbroker.VdsManager GetVdsManager ( org.ovirt.engine.core.compat.Guid vdsId ) { if ( _vdsManagersDict.containsKey ( vdsId ) ) { return _vdsManagersDict.get ( vdsId ) ; } else { org.ovirt.engine.core.vdsbroker.ResourceManager.log.errorFormat ( "Cannot get vdsManager for vdsid={0}" , vdsId ) ; } return null ; }

Target:
public org.ovirt.engine.core.vdsbroker.VdsManager GetVdsManager ( org.ovirt.engine.core.compat.Guid vdsId ) { org.ovirt.engine.core.vdsbroker.VdsManager vdsManger = _vdsManagersDict.get ( vdsId ) ; if ( vdsManger == null ) { org.ovirt.engine.core.vdsbroker.ResourceManager.log.errorFormat ( "Cannot get vdsManager for vdsid={0}" , vdsId ) ; } return vdsManger ; }
Source:
protected boolean canDoAction ( ) { boolean canDoAction = super . canDoAction ( ) ; if ( ! canDoAction ) { auditLogDirector.log ( this , AuditLogType.USER_MOVED_VM_DISK_FINISHED_FAILURE ) ; } return canDoAction ; }

Target:
protected boolean validate ( ) { boolean validate = super . validate ( ) ; if ( ! validate ) { auditLogDirector.log ( this , AuditLogType.USER_MOVED_DISK_FINISHED_FAILURE ) ; } return validate ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult hostNameNotUsed ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.ACTION_TYPE_FAILED_VDS_WITH_SAME_HOST_EXIST ) . unless ( hostDao.getAllForHostname ( host.getHostName ( ) ) . isEmpty ( ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult hostNameNotUsed ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.ACTION_TYPE_FAILED_VDS_WITH_SAME_HOST_EXIST ) . unless ( hostDao.getAllForHostname ( host.getHostName ( ) ) . isEmpty ( ) ) ; }
Source:
private boolean canEditAssign ( org.ovirt.engine.ui.uicommonweb.models.hosts.VfsConfigNetwork vfsConfigNetwork ) { return ( vfsConfigNetwork.getLabelViaAttached ( ) ) == null ; }

Target:
private boolean shouldNetworkBeDisplayedAsAttached ( org.ovirt.engine.ui.uicommonweb.models.hosts.VfsConfigNetwork vfsConfigNetwork ) { return ( vfsConfigNetwork.isAttached ( ) ) || ( vfsConfigNetwork.isAttachedViaLabel ( ) ) ; }
Source:
protected boolean isNicSupportedForPlugUnPlug ( ) { if ( osRepository.hasNicHotplugSupport ( org.ovirt.engine.core.bll.VmCommand.getVm ( ) . getOs ( ) , org.ovirt.engine.core.bll.VmCommand.getVm ( ) . getVdsGroupCompatibilityVersion ( ) ) ) { return true ; } return failValidation ( EngineMessage.ACTION_TYPE_FAILED_GUEST_OS_VERSION_IS_NOT_SUPPORTED ) ; }

Target:
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 ) ; }
Source:
protected void endSuccessfully ( ) { checkTrustedService ( ) ; endImportCommand ( ) ; }

Target:
protected void endSuccessfully ( ) { checkTrustedService ( ) ; endActionOnAllImageGroups ( ) ; org.ovirt.engine.core.bll.VmHandler.unLockVm ( getVm ( ) ) ; org.ovirt.engine.core.bll.ImportVmCommand.setSucceeded ( true ) ; }
Source:
private void updateStorageTypesByDomainType ( org.ovirt.engine.ui.uicommonweb.models.storage.StorageModel storageModel ) { storageModel.updateStorageTypesByDomainType ( ) ; }

Target:
private void updateStorageTypesByDomainType ( org.ovirt.engine.ui.uicommonweb.models.storage.StorageModel storageModel ) { storageModel.getBehavior ( ) . setStorageTypeItems ( ) ; }
Source:
public void insufficientDiskSpace ( ) { setupVolumeFormatAndTypeTest ( VolumeFormat.RAW , VolumeType.Preallocated , StorageType.NFS ) ; org.mockito.Mockito.doReturn ( false ) . when ( command ) . validateSpaceRequirements ( org.mockito.ArgumentMatchers.any ( ) ) ; org.junit.Assert.assertFalse ( command.validate ( ) ) ; }

Target:
public void insufficientDiskSpace ( ) { setupVolumeFormatAndTypeTest ( VolumeFormat.RAW , VolumeType.Preallocated , StorageType.NFS ) ; org.mockito.Mockito.doReturn ( false ) . when ( command ) . validateSpaceRequirements ( org.mockito.ArgumentMatchers.any ( ) ) ; org.junit.jupiter.api.Assertions.assertFalse ( command.validate ( ) ) ; }
Source:
private void setSessionVmId ( org.ovirt.engine.core.common.businessentities.VM vmModel , org.ovirt.engine.api.model.Session session ) { session.setVm ( vmModel ) ; }

Target:
private void setSessionVmId ( org.ovirt.engine.api.restapi.resource.Vm vmModel , org.ovirt.engine.api.model.Session session ) { session.setVm ( vmModel ) ; }
Source:
public void setvds_group_name ( java.lang.String value ) { this . vds_group_nameField = value ; }

Target:
public void setVdsGroupCompatibilityVersion ( org.ovirt.engine.core.compat.Version value ) { if ( org.ovirt.engine.core.compat.Version.OpInequality ( getVdsGroupCompatibilityVersion ( ) , value ) ) { this . vdsGroupCompatibilityVersion = value ; } }
Source:
public org.ovirt.engine.core.bll.adbroker.LdapReturnValueBase RunAdAction ( org.ovirt.engine.core.bll.adbroker.AdActionType actionType , org.ovirt.engine.core.bll.adbroker.LdapBrokerBaseParameters parameters ) { org.ovirt.engine.core.bll.adbroker.LdapBrokerBase.log.debug ( ( "RunAdAction Entry, actionType=" + ( actionType.toString ( ) ) ) ) ; org.ovirt.engine.core.bll.adbroker.BrokerCommandBase command = CreateCommand ( actionType , parameters ) ; return command.execute ( ) ; }

Target:
public org.ovirt.engine.core.bll.adbroker.LdapReturnValueBase runAdAction ( org.ovirt.engine.core.bll.adbroker.AdActionType actionType , org.ovirt.engine.core.bll.adbroker.LdapBrokerBaseParameters parameters ) { org.ovirt.engine.core.bll.adbroker.LdapBrokerBase.log.debug ( ( "runAdAction Entry, actionType=" + ( actionType.toString ( ) ) ) ) ; org.ovirt.engine.core.bll.adbroker.BrokerCommandBase command = CreateCommand ( actionType , parameters ) ; return command.execute ( ) ; }
Source:
private void initHeaders ( org.ovirt.engine.ui.webadmin.ApplicationConstants constants ) { treeHeader = new com.google.gwt.user.client.ui.Label ( constants.systemMainSection ( ) ) ; bookmarksHeader = new com.google.gwt.user.client.ui.Label ( constants.bookmarksMainSection ( ) ) ; tagsHeader = new com.google.gwt.user.client.ui.Label ( constants.tagsMainSection ( ) ) ; }

Target:
private void initHeaders ( ) { treeHeader = new com.google.gwt.user.client.ui.Label ( org.ovirt.engine.ui.webadmin.section.main.view.MainSectionView.constants.systemMainSection ( ) ) ; bookmarksHeader = new com.google.gwt.user.client.ui.Label ( org.ovirt.engine.ui.webadmin.section.main.view.MainSectionView.constants.bookmarksMainSection ( ) ) ; tagsHeader = new com.google.gwt.user.client.ui.Label ( org.ovirt.engine.ui.webadmin.section.main.view.MainSectionView.constants.tagsMainSection ( ) ) ; }
Source:
public void newProfile ( ) { if ( ( getWindow ( ) ) != null ) { return ; } org.ovirt.engine.ui.uicommonweb.models.profiles.NewDiskProfileModel model = new org.ovirt.engine.ui.uicommonweb.models.profiles.NewDiskProfileModel ( this , getEntity ( ) . getStoragePoolId ( ) ) ; setWindow ( model ) ; initProfileStorageDomains ( model ) ; }

Target:
protected org.ovirt.engine.ui.uicommonweb.models.profiles.ProfileBaseModel < org.ovirt.engine.core.common.businessentities.profiles.DiskProfile , org.ovirt.engine.core.common.businessentities.qos.StorageQos , org.ovirt.engine.core.common.businessentities.StorageDomain > getNewProfileModel ( ) { return new org.ovirt.engine.ui.uicommonweb.models.profiles.NewDiskProfileModel ( this , getStoragePoolId ( ) ) ; }
Source:
public java.lang.Boolean Convert ( java.lang.Object returnValue , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { return ( ( java.lang.Boolean ) ( returnValue ) ) ; }

Target:
public java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.storage.DiskImage > convert ( java.lang.Object returnValue , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { return ( ( java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.storage.DiskImage > ) ( returnValue ) ) ; }
Source:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( EngineMessage.VAR__ACTION__CREATE ) ; addCanDoActionMessage ( EngineMessage.VAR__TYPE__GLUSTER_BRICK ) ; addCanDoActionMessageVariable ( "brickName" , getParameters ( ) . getLvName ( ) ) ; }

Target:
protected void setActionMessageParameters ( ) { addValidationMessage ( EngineMessage.VAR__ACTION__CREATE ) ; addValidationMessage ( EngineMessage.VAR__TYPE__GLUSTER_BRICK ) ; addValidationMessageVariable ( "brickName" , getParameters ( ) . getLvName ( ) ) ; }
Source:
protected org.ovirt.engine.core.bll.provider.storage.OpenStackImageProviderProxy getProviderProxy ( ) { if ( ( providerProxy ) == null ) { providerProxy = org.ovirt.engine.core.bll.provider.storage.OpenStackImageProviderProxy.getFromStorageDomainId ( org.ovirt.engine.core.bll.storage.repoimage.ImportRepoImageCommand.getParameters ( ) . getSourceStorageDomainId ( ) ) ; } return providerProxy ; }

Target:
protected org.ovirt.engine.core.bll.provider.storage.OpenStackImageProviderProxy getProviderProxy ( ) { if ( ( providerProxy ) == null ) { providerProxy = org.ovirt.engine.core.bll.provider.storage.OpenStackImageProviderProxy.getFromStorageDomainId ( org.ovirt.engine.core.bll.storage.repoimage.ImportRepoImageCommand.getParameters ( ) . getSourceStorageDomainId ( ) , providerProxyFactory ) ; } return providerProxy ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Permission > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Permission > ( ) ; }

Target:
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.GlusterServerService > ( ) ; }
Source:
int getVmsCountByClusterId ( org.ovirt.engine.core.compat.Guid vdsGroupId ) ;

Target:
int getVmsCountByClusterId ( org.ovirt.engine.core.compat.Guid clusterId ) ;
Source:
public boolean Validate ( ) { getDescription ( ) . ValidateEntity ( new org.ovirt.engine.ui.uicommonweb.validation.IValidation [ ] { new org.ovirt.engine.ui.uicommonweb.validation.NotEmptyValidation ( ) , new org.ovirt.engine.ui.uicommonweb.validation.AsciiOrNoneValidation ( ) } ) ; return getDescription ( ) . getIsValid ( ) ; }

Target:
public boolean Validate ( ) { getDescription ( ) . ValidateEntity ( new org.ovirt.engine.ui.uicommonweb.validation.IValidation [ ] { new org.ovirt.engine.ui.uicommonweb.validation.NotEmptyValidation ( ) , new org.ovirt.engine.ui.uicommonweb.validation.AsciiOrNoneValidation ( ) , new org.ovirt.engine.ui.uicommonweb.validation.LengthValidation ( org.ovirt.engine.core.common.businessentities.BusinessEntitiesDefinitions.GENERAL_MAX_SIZE ) } ) ; return getDescription ( ) . getIsValid ( ) ; }
Source:
protected void clearSelection ( ) { org.ovirt.engine.ui.webadmin.section.main.presenter.AbstractMainTabWithDetailsPresenter.getView ( ) . getTableSelectionModel ( ) . clear ( ) ; }

Target:
protected void clearSelection ( ) { org.ovirt.engine.ui.webadmin.section.main.presenter.AbstractMainTabWithDetailsPresenter.getView ( ) . getTable ( ) . getSelectionModel ( ) . clear ( ) ; }
Source:
public void refresh ( ) { refresh ( getSessionInfo ( org.ovirt.engine.core.utils.ThreadLocalParamsContainer.getHttpSessionId ( ) ) ) ; }

Target:
public void refresh ( java.lang.String sessionId ) { refresh ( getSessionInfo ( sessionId ) ) ; }
Source:
public void testRemoveByVdsDynamicId ( ) { org.junit.Assert.assertNotNull ( dao.get ( FixturesTool.VDS_GLUSTER_SERVER2 ) ) ; dao.removeByVdsDynamicId ( FixturesTool.VDS_GLUSTER_SERVER2 ) ; org.junit.Assert.assertNull ( dao.get ( FixturesTool.VDS_GLUSTER_SERVER2 ) ) ; }

Target:
public void testRemoveByVdsDynamicId ( ) { org.junit.jupiter.api.Assertions.assertNotNull ( dao.get ( FixturesTool.VDS_GLUSTER_SERVER2 ) ) ; dao.removeByVdsDynamicId ( FixturesTool.VDS_GLUSTER_SERVER2 ) ; org.junit.jupiter.api.Assertions.assertNull ( dao.get ( FixturesTool.VDS_GLUSTER_SERVER2 ) ) ; }
Source:
private void init ( ) { int quotaCacheIntervalInMinutes = org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.QuotaCacheIntervalInMinutes ) ; executor.scheduleWithFixedDelay ( this :: updateQuotaCache , 1 , quotaCacheIntervalInMinutes , java.util.concurrent.TimeUnit.MINUTES ) ; }

Target:
private void init ( ) { long quotaCacheIntervalInMinutes = org.ovirt.engine.core.common.config.Config.< java.lang.Long > getValue ( ConfigValues.QuotaCacheIntervalInMinutes ) ; executor.scheduleWithFixedDelay ( this :: updateQuotaCache , 1 , quotaCacheIntervalInMinutes , java.util.concurrent.TimeUnit.MINUTES ) ; }
Source:
public java.lang.Long getGuestMemoryFree ( ) { return vmDynamic.getGuestMemoryFree ( ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.GuestContainer > getGuestContainers ( ) { return vmDynamic.getGuestContainers ( ) ; }
Source:
private boolean deviceExists ( org.ovirt.engine.core.common.businessentities.VmDeviceGeneralType generalType , org.ovirt.engine.core.common.utils.VmDeviceType deviceType ) { return ! ( org.ovirt.engine.core.bll.UpdateVmVersionCommand.getVmDeviceDao ( ) . getVmDeviceByVmIdTypeAndDevice ( org.ovirt.engine.core.bll.UpdateVmVersionCommand.getVmTemplateId ( ) , generalType , deviceType.getName ( ) ) . isEmpty ( ) ) ; }

Target:
private boolean deviceExists ( org.ovirt.engine.core.common.businessentities.VmDeviceGeneralType generalType , org.ovirt.engine.core.common.utils.VmDeviceType deviceType ) { return ! ( vmDeviceDao.getVmDeviceByVmIdTypeAndDevice ( org.ovirt.engine.core.bll.UpdateVmVersionCommand.getVmTemplateId ( ) , generalType , deviceType.getName ( ) ) . isEmpty ( ) ) ; }
Source:
protected void setVdsmErrorsTranslator ( final org.ovirt.engine.ui.frontend.ErrorTranslator translator ) { vdsmErrorsTranslator = translator ; }

Target:
public void fireEvent ( com.google.gwt.event.shared.GwtEvent < ? > event ) { eventBus.fireEvent ( event ) ; }
Source:
public boolean isOvirtNode ( ) { return ( getVdsType ( ) ) == ( VDSType.oVirtNode ) ; }

Target:
public boolean isOvirNode ( ) { return ( getVdsType ( ) ) == ( VDSType.oVirtNode ) ; }
Source:
public abstract javax.net.ssl.TrustManager [ ] getTustManagers ( ) throws java.security.GeneralSecurityException ;

Target:
public abstract javax.net.ssl.TrustManager [ ] getTrustManagers ( ) throws java.security.GeneralSecurityException ;
Source:
public java.lang.String render ( E object ) { return org.ovirt.engine.ui.uicompat.EnumTranslator.getInstance ( ) . get ( object ) ; }

Target:
public java.lang.String render ( E object ) { return org.ovirt.engine.ui.uicompat.EnumTranslator.getInstance ( ) . translate ( object ) ; }
Source:
public void releaseLock ( org.ovirt.engine.core.compat.Guid clusterId ) { getLockManager ( ) . releaseLock ( getEngineLock ( clusterId ) ) ; }

Target:
public void endStepJob ( org.ovirt.engine.core.common.job.Step step ) { jobRepository.updateStep ( step ) ; org.ovirt.engine.core.bll.job.ExecutionContext finalContext = executionHandler.createFinalizingContext ( step.getId ( ) ) ; executionHandler.endTaskStepAndJob ( finalContext , isTaskSuccess ( step.getStatus ( ) ) ) ; }
Source:
protected org.ovirt.engine.core.dao.StepDao prepareDao ( ) { return dbFacade.getStepDao ( ) ; }

Target:
protected org.ovirt.engine.core.common.job.Step getExistingEntity ( ) { return existingStep ; }
Source:
public void shouldAllowUnpinnedNumaNodes ( ) { validVM.setvNumaNodeList ( java.util.Arrays.asList ( org.ovirt.engine.core.bll.utils.NumaTestUtils.createVmNumaNode ( 1 ) ) ) ; org.assertj.core.api.Assertions.assertThat ( validator.isVmReadyForUpgrade ( validVM ) ) . isEmpty ( ) ; }

Target:
public void shouldAllowUnpinnedNumaNodes ( ) { validVM.setvNumaNodeList ( java.util.Arrays.asList ( org.ovirt.engine.core.bll.utils.NumaTestUtils.createVmNumaNode ( 1 ) ) ) ; org.assertj.core.api.Assertions.assertThat ( validator.checkVmReadyForUpgrade ( validVM ) ) . isEmpty ( ) ; }
Source:
protected void changeVolumeInfo ( org.ovirt.engine.core.common.businessentities.DiskImage clonedDiskImage , org.ovirt.engine.core.common.businessentities.DiskImage diskImageFromClient ) { clonedDiskImage.setvolumeFormat ( diskImageFromClient.getVolumeFormat ( ) ) ; clonedDiskImage.setVolumeType ( diskImageFromClient.getVolumeType ( ) ) ; }

Target:
protected void changeVolumeInfo ( org.ovirt.engine.core.common.businessentities.storage.DiskImage clonedDiskImage , org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImageFromClient ) { clonedDiskImage.setvolumeFormat ( diskImageFromClient.getVolumeFormat ( ) ) ; clonedDiskImage.setVolumeType ( diskImageFromClient.getVolumeType ( ) ) ; }
Source:
public java.lang.String getStorageDomainName ( ) { if ( ( getStorageDomain ( ) ) != null ) { return getStorageDomain ( ) . getStorageName ( ) ; } return "" ; }

Target:
public void setClusterName ( java.lang.String clusterName ) { this . clusterName = ( clusterName == null ) ? "" : clusterName ; }
Source:
public boolean validate ( ) { getName ( ) . validateEntity ( new org.ovirt.engine.ui.uicommonweb.validation.IValidation [ ] { new org.ovirt.engine.ui.uicommonweb.validation.NotEmptyValidation ( ) , new org.ovirt.engine.ui.uicommonweb.validation.SpecialAsciiI18NOrNoneValidation ( ) } ) ; return getName ( ) . getIsValid ( ) ; }

Target:
protected org.ovirt.engine.core.common.action.ProfileParametersBase < org.ovirt.engine.core.common.businessentities.profiles.DiskProfile > getParameters ( ) { return new org.ovirt.engine.core.common.action.DiskProfileParameters ( getProfile ( ) , getProfile ( ) . getId ( ) ) ; }
Source:
protected java.lang.Object provideDetailModelEntity ( java.lang.Object selectedItem ) { return selectedItem ; }

Target:
protected abstract D provideDetailModelEntity ( T selectedItem ) ;
Source:
private static org.ovirt.engine.core.common.businessentities.storage.LunDisk createLunDisk ( ) { org.ovirt.engine.core.common.businessentities.storage.LunDisk disk = new org.ovirt.engine.core.common.businessentities.storage.LunDisk ( ) ; org.ovirt.engine.core.common.businessentities.storage.LUNs lun = new org.ovirt.engine.core.common.businessentities.storage.LUNs ( ) ; lun.setLUN_id ( "lun_id" ) ; lun.setLunType ( StorageType.ISCSI ) ; disk.setLun ( lun ) ; return disk ; }

Target:
private static org.ovirt.engine.core.common.businessentities.storage.LunDisk createLunDisk ( ) { org.ovirt.engine.core.common.businessentities.storage.LunDisk disk = new org.ovirt.engine.core.common.businessentities.storage.LunDisk ( ) ; org.ovirt.engine.core.common.businessentities.storage.LUNs lun = new org.ovirt.engine.core.common.businessentities.storage.LUNs ( ) ; lun.setLUNId ( "lun_id" ) ; lun.setLunType ( StorageType.ISCSI ) ; disk.setLun ( lun ) ; return disk ; }
Source:
public boolean Match ( org.ovirt.engine.core.common.businessentities.storage_pool source ) { return ( source.getstatus ( ) ) == ( status ) ; }

Target:
public boolean match ( org.ovirt.engine.core.common.businessentities.StoragePool source ) { return ( source.getstatus ( ) ) == ( status ) ; }
Source:
public void testValidateStoragePoolRandomStoragePoolId ( ) { command.setStoragePoolId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertFalse ( command.validate ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.assertValidationMessages ( "" , command , EngineMessage.ACTION_TYPE_FAILED_STORAGE_POOL_NOT_EXIST ) ; }

Target:
public void testValidateStoragePoolRandomStoragePoolId ( ) { command.setStoragePoolId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.jupiter.api.Assertions.assertFalse ( command.validate ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.assertValidationMessages ( "" , command , EngineMessage.ACTION_TYPE_FAILED_STORAGE_POOL_NOT_EXIST ) ; }
Source:
public void loadAttachableDisks ( org.ovirt.engine.core.common.businessentities.Disk prevSelected ) { doLoadAttachableDisks ( new org.ovirt.engine.ui.uicommonweb.models.vms.InstanceImagesAttachDiskModel.InstanceImageGetDisksCallback ( Disk.DiskStorageType.IMAGE , prevSelected ) , new org.ovirt.engine.ui.uicommonweb.models.vms.InstanceImagesAttachDiskModel.InstanceImageGetDisksCallback ( Disk.DiskStorageType.LUN , prevSelected ) ) ; }

Target:
public void loadAttachableDisks ( org.ovirt.engine.core.common.businessentities.storage.Disk prevSelected ) { doLoadAttachableDisks ( new org.ovirt.engine.ui.uicommonweb.models.vms.InstanceImagesAttachDiskModel.InstanceImageGetDisksCallback ( Disk.DiskStorageType.IMAGE , prevSelected ) , new org.ovirt.engine.ui.uicommonweb.models.vms.InstanceImagesAttachDiskModel.InstanceImageGetDisksCallback ( Disk.DiskStorageType.LUN , prevSelected ) ) ; }
Source:
public void testExistingDiscardAfterDeleteFunctionalityPreservedNoDiscardAfterDeleteFunctionality ( ) { storageDomain.setDiscardAfterDelete ( false ) ; org.junit.Assert.assertTrue ( discardHelper.isExistingDiscardAfterDeleteFunctionalityPreserved ( java.util.Arrays.asList ( createLunWithDiscardFunctionality ( 0L , false ) , createLunWithDiscardFunctionality ( 0L , true ) ) , storageDomain ) ) ; }

Target:
public void testGetLunsThatBreakDiscardAfterDeleteSupportStorageDomainDiscardAfterDeleteDisabled ( ) { storageDomain.setDiscardAfterDelete ( false ) ; assertGetLunsThatBreakDiscardAfterDeleteSupportContainsExpectedLuns ( java.util.Arrays.asList ( createLunWithDiscardSupport ( 1024L ) , createLunWithDiscardSupport ( 0L ) ) , java.util.Collections.emptyList ( ) ) ; }
Source:
public void provisioningNotProvided ( ) { org.junit.Assert.assertThat ( validator.provisioningComputeResourceValid ( false , null ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; org.junit.Assert.assertThat ( validator.provisioningHostGroupValid ( false , null ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void provisioningNotProvided ( ) { org.hamcrest.MatcherAssert.assertThat ( validator.provisioningComputeResourceValid ( false , null ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; org.hamcrest.MatcherAssert.assertThat ( validator.provisioningHostGroupValid ( false , null ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void onSuccess ( final org.ovirt.engine.core.common.action.VdcReturnValueBase result ) { xsrfRequestBuilder.setXsrfToken ( null ) ; loginOperation.getCallback ( ) . onSuccess ( loginOperation , result ) ; }

Target:
public void logout ( final org.ovirt.engine.ui.frontend.communication.UserCallback callback ) { xsrfRequestBuilder.setXsrfToken ( null ) ; org.ovirt.engine.core.common.action.VdcReturnValueBase retVal = new org.ovirt.engine.core.common.action.VdcReturnValueBase ( ) ; retVal.setSucceeded ( true ) ; callback.onSuccess ( retVal ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult networkNameValid ( ) { return ( ! ( org.ovirt.engine.core.bll.validator.FeatureSupported.networkLinking ( version ) ) ) && ( ( nic.getNetworkName ( ) ) == null ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.NULL_NETWORK_IS_NOT_SUPPORTED , clusterVersion ( ) ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult networkNameValid ( ) { return ( ! ( org.ovirt.engine.core.common.FeatureSupported.networkLinking ( version ) ) ) && ( ( nic.getNetworkName ( ) ) == null ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.NULL_NETWORK_IS_NOT_SUPPORTED , clusterVersion ( ) ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
protected org.ovirt.engine.core.compat.Guid generateNonExistingId ( ) { return org.ovirt.engine.core.compat.Guid.NewGuid ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid generateNonExistingId ( ) { return org.ovirt.engine.core.compat.Guid.newGuid ( ) ; }
Source:
public void removedLabelExistsOnTheHostNotExist ( ) { org.junit.Assert.assertThat ( createNicLabelValidator ( ) . removedLabelExistsOnTheHost ( "lbl1" ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.LABEL_NOT_EXIST_IN_HOST , org.ovirt.engine.core.utils.ReplacementUtils.createSetVariableString ( "LABEL_NOT_EXIST_IN_HOST_ENTITY" , "lbl1" ) ) ) ; }

Target:
public void removedLabelExistsOnTheHostNotExist ( ) { org.hamcrest.MatcherAssert.assertThat ( createNicLabelValidator ( ) . removedLabelExistsOnTheHost ( "lbl1" ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.LABEL_NOT_EXIST_IN_HOST , org.ovirt.engine.core.utils.ReplacementUtils.createSetVariableString ( "LABEL_NOT_EXIST_IN_HOST_ENTITY" , "lbl1" ) ) ) ; }
Source:
public void setOsType ( org.ovirt.engine.core.common.businessentities.VmOsType value ) { setos ( value ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getVdsGroupId ( ) { return vdsGroupId ; }
Source:
public void testCanDoActionVmRunningFail ( ) { vm.setStatus ( VMStatus.Up ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , VdcBllMessages.ERROR_CANNOT_RUN_ALIGNMENT_SCAN_VM_IS_RUNNING ) ; }

Target:
public void testCanDoActionVmRunningFail ( ) { vm.setStatus ( VMStatus.Up ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ERROR_CANNOT_RUN_ALIGNMENT_SCAN_VM_IS_RUNNING ) ; }
Source:
protected void onLoad ( ) { expandTree ( getDataDisplayWidget ( ) . getRootTreeNode ( ) , org.ovirt.engine.ui.webadmin.widget.tree.SystemTree.ITEM_LEVEL ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { expandPath ( modelProvider.getSelectionModel ( ) . getSelectedObject ( ) ) ; }
Source:
public void nonVmNetworkWhenNotSupported ( ) throws java.lang.Exception { vmNetworkSetupTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NON_VM_NETWORK_NOT_SUPPORTED_FOR_POOL_LEVEL ) , false , false ) ; }

Target:
public void nonVmNetworkWhenNotSupported ( ) throws java.lang.Exception { vmNetworkSetupTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.NON_VM_NETWORK_NOT_SUPPORTED_FOR_POOL_LEVEL ) , false , false ) ; }
Source:
public void testExecuteCommand ( ) { command.executeCommand ( ) ; org.junit.Assert.assertTrue ( command.getSucceeded ( ) ) ; }

Target:
public void testExecuteCommand ( ) { command.executeCommand ( ) ; org.junit.jupiter.api.Assertions.assertTrue ( command.getSucceeded ( ) ) ; }
Source:
protected org.ovirt.engine.core.bll.storage.IStorageHelper getStorageHelper ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { return org.ovirt.engine.core.bll.storage.StorageHelperDirector.getInstance ( ) . getItem ( storageDomain.getstorage_type ( ) ) ; }

Target:
protected org.ovirt.engine.core.bll.storage.IStorageHelper getStorageHelper ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { return org.ovirt.engine.core.bll.storage.StorageHelperDirector.getInstance ( ) . getItem ( storageDomain.getStorageType ( ) ) ; }
Source:
java.util.ArrayList < org.ovirt.engine.core.common.queries.VdcQueryReturnValue > runMultipleQueries ( java.util.ArrayList < org.ovirt.engine.core.common.queries.QueryType > vdcQueryTypeList , java.util.ArrayList < org.ovirt.engine.core.common.queries.VdcQueryParametersBase > paramsList ) ;

Target:
java.util.ArrayList < org.ovirt.engine.core.common.queries.VdcQueryReturnValue > runMultipleQueries ( java.util.ArrayList < org.ovirt.engine.core.common.queries.QueryType > queryTypeList , java.util.ArrayList < org.ovirt.engine.core.common.queries.QueryParametersBase > paramsList ) ;
Source:
private org.ovirt.engine.core.common.businessentities.VmDevice createVmDeviceForDisk ( org.ovirt.engine.core.common.businessentities.DiskImage disk ) { org.ovirt.engine.core.common.businessentities.VmDevice device = new org.ovirt.engine.core.common.businessentities.VmDevice ( ) ; device.setId ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( null , disk.getId ( ) ) ) ; return device ; }

Target:
private org.ovirt.engine.core.common.businessentities.VmDevice createVmDeviceForDisk ( org.ovirt.engine.core.common.businessentities.storage.DiskImage disk ) { org.ovirt.engine.core.common.businessentities.VmDevice device = new org.ovirt.engine.core.common.businessentities.VmDevice ( ) ; device.setId ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( null , disk.getId ( ) ) ) ; return device ; }
Source:
public void setLocalizedStrings ( java.lang.String [ ] localizedStrings ) { this . localizedStrings = localizedStrings ; }

Target:
public void setLocalizedStrings ( java.lang.String [ ] localizedStrings ) { this . consoleOptions.setLocalizedStrings ( localizedStrings ) ; }
Source:
public void validateNonExternalJobFails ( ) throws java.lang.Exception { setupMock ( ) ; parameters.setId ( org.ovirt.engine.core.bll.EndExternalStepCommandTest.nonExternalStepId ) ; parameters.setJobId ( org.ovirt.engine.core.bll.EndExternalStepCommandTest.jobId ) ; org.junit.Assert.assertTrue ( ( ! ( command.validate ( ) ) ) ) ; }

Target:
public void validateNonExternalStepFails ( ) throws java.lang.Exception { parameters.setJobId ( org.ovirt.engine.core.bll.EndExternalStepCommandTest.jobId ) ; parameters.setId ( org.ovirt.engine.core.bll.EndExternalStepCommandTest.nonExternalStepId ) ; org.junit.Assert.assertTrue ( ( ! ( command.validate ( ) ) ) ) ; }