auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void checkValidIpConfigurationDHCPBootProtocol ( ) { initIpConfigurationDetails ( Ipv4BootProtocol.DHCP , false , false ) ; org.ovirt.engine.core.bll.ValidationResult actual = underTest.validateNetworkAttachmentIpConfiguration ( networkAttachments ) ; org.junit.Assert.assertEquals ( ValidationResult.VALID , actual ) ; }

Target:
public void checkIncompatibleIpv6AddressDetailsBootProtocolNone ( ) { checkIncompatibleIpv6AddressDetailsBootProtocol ( Ipv6BootProtocol.NONE ) ; }
Source:
public void onUncaughtException ( java.lang.Throwable t ) { rootLogger.log ( java.util.logging.Level.SEVERE , "Uncaught exception: " , t ) ; }

Target:
public void onUncaughtException ( java.lang.Throwable t ) { rootLogger.log ( java.util.logging.Level.SEVERE , "Uncaught exception: " , t ) ; alertManager.showUncaughtExceptionAlert ( t ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.aaa.GetDbUserByUserIdQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getDbUserDao ( ) . get ( org.ovirt.engine.core.bll.aaa.GetDbUserByUserIdQuery.getParameters ( ) . getId ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.aaa.GetDbUserByUserIdQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getDbUserDao ( ) . get ( org.ovirt.engine.core.bll.aaa.GetDbUserByUserIdQuery.getParameters ( ) . getId ( ) , org.ovirt.engine.core.bll.aaa.GetDbUserByUserIdQuery.getParameters ( ) . isFiltered ( ) ) ) ; }
Source:
public javax.ws.rs.core.Response deactivate ( org.ovirt.engine.api.model.Action action ) { org.ovirt.engine.core.common.action.ActivateDeactivateVmNicParameters params = new org.ovirt.engine.core.common.action.ActivateDeactivateVmNicParameters ( guid , org.ovirt.engine.core.common.action.PlugAction.UNPLUG ) ; params.setVmId ( ( ( org.ovirt.engine.api.restapi.resource.BackendNicsResource ) ( collection ) ) . parentId ) ; return doAction ( VdcActionType.ActivateDeactivateVmNic , params , action ) ; }

Target:
public javax.ws.rs.core.Response activate ( org.ovirt.engine.api.model.Action action ) { org.ovirt.engine.api.model.NIC nic = get ( ) ; nic.setPlugged ( true ) ; update ( nic ) ; return actionSuccess ( action ) ; }
Source:
protected void orderListOfRunningVmsOnVds ( org.ovirt.engine.core.compat.Guid vdsId ) { vms = vmDao.getAllRunningForVds ( vdsId ) ; java.util.Collections.sort ( vms , java.util.Collections.reverseOrder ( new org.ovirt.engine.core.common.businessentities.comparators.VmsComparer ( ) ) ) ; }

Target:
protected void orderListOfRunningVmsOnVds ( org.ovirt.engine.core.compat.Guid vdsId ) { vms = vmDao.getAllRunningForVds ( vdsId ) ; vms.sort ( new org.ovirt.engine.core.common.businessentities.comparators.VmsComparer ( ) . reversed ( ) ) ; }
Source:
private org.ovirt.engine.core.compat.Version getClusterVersion ( ) { return org.ovirt.engine.core.bll.network.cluster.AttachNetworkToClusterInternalCommand.getVdsGroup ( ) . getCompatibilityVersion ( ) ; }

Target:
private org.ovirt.engine.core.compat.Version getClusterVersion ( ) { return org.ovirt.engine.core.bll.network.cluster.AttachNetworkToClusterInternalCommand.getCluster ( ) . getCompatibilityVersion ( ) ; }
Source:
protected void executeVDSCommand ( ) { if ( ( _vdsManager ) != null ) { synchronized ( _vdsManager.getLockObj ( ) ) { ExecuteVdsIdCommand ( ) ; } } else { ExecuteVdsIdCommand ( ) ; } }

Target:
protected void executeVDSCommand ( ) { if ( ( _vdsManager ) != null ) { synchronized ( _vdsManager.getLockObj ( ) ) { executeVdsIdCommand ( ) ; } } else { executeVdsIdCommand ( ) ; } }
Source:
public void testGetPeersWithWrongPassword ( ) throws java.io.IOException , javax.naming.AuthenticationException { org.mockito.Mockito.doReturn ( client ) . when ( glusterUtil ) . getSSHClient ( ) ; glusterUtil.getPeers ( org.ovirt.engine.core.bll.utils.GlusterUtilTest.SERVER_NAME1 , org.ovirt.engine.core.bll.utils.GlusterUtilTest.USER , org.ovirt.engine.core.bll.utils.GlusterUtilTest.WRONG_PASSWORD ) ; }

Target:
public void testGetPeersWithWrongPassword ( ) { org.mockito.Mockito.doReturn ( client ) . when ( glusterUtil ) . getSSHClient ( ) ; org.junit.jupiter.api.Assertions.assertThrows ( javax.naming.AuthenticationException.class , ( ) -> glusterUtil.getPeers ( org.ovirt.engine.core.bll.utils.GlusterUtilTest.SERVER_NAME1 , org.ovirt.engine.core.bll.utils.GlusterUtilTest.USER , org.ovirt.engine.core.bll.utils.GlusterUtilTest.WRONG_PASSWORD ) ) ; }
Source:
protected java.lang.Long getRawValue ( org.ovirt.engine.core.common.businessentities.DiskImage object ) { return object.getsize ( ) ; }

Target:
protected java.util.Date getRawValue ( org.ovirt.engine.core.common.businessentities.DiskImage object ) { return object.getCreationDate ( ) ; }
Source:
private void failureEventHandler ( final java.lang.String errorMessage ) { failureEventHandler ( null , errorMessage ) ; }

Target:
public void storeInHttpSession ( final java.lang.String key , final java.lang.String value ) { getOperationManager ( ) . storeInHttpSession ( key , value ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid createTask ( org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { return createTask ( asyncTaskCreationInfo , parentCommand , null , null , org.ovirt.engine.core.bll.CommandBase.EMPTY_GUID_ARRAY ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid createTask ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand , java.lang.String description , org.ovirt.engine.core.common.VdcObjectType entityType , org.ovirt.engine.core.compat.Guid ... entityIds ) { return createTask ( taskId , asyncTaskCreationInfo , parentCommand , description , createEntitiesMapForSingleEntityType ( entityType , entityIds ) ) ; }
Source:
public java.lang.String render ( java.util.Date entity ) { if ( entity == null ) { return constants.unAvailablePropertyLabel ( ) ; } return org.ovirt.engine.ui.common.widget.renderer.GlusterRebalanceDateTimeRenderer.getLocalizedDateTimeFormat ( ) . format ( entity ) ; }

Target:
public java.lang.String render ( java.util.Date entity ) { if ( entity == null ) { return org.ovirt.engine.ui.webadmin.section.main.view.popup.gluster.VolumeRebalanceStatusPopupView.constants.unAvailablePropertyLabel ( ) ; } return org.ovirt.engine.ui.common.widget.renderer.GlusterRebalanceDateTimeRenderer.getLocalizedDateTimeFormat ( ) . format ( entity ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.VmDevice addDiskDevice ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.compat.Guid deviceId , java.lang.String address ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.addDiskDevice ( vmId , deviceId , true , false , address , false ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getWatchdogs ( org.ovirt.engine.core.compat.Guid vmId ) { return vmDeviceDao.getVmDeviceByVmIdAndType ( vmId , VmDeviceGeneralType.WATCHDOG ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > getAllForNic ( org.ovirt.engine.core.compat.Guid nicId ) { return getCallsHandler ( ) . executeReadList ( "GetNetworkAttachmentsByNicId" , org.ovirt.engine.core.dao.network.NetworkAttachmentDaoImpl.NetworkAttachmentRowMapper.INSTANCE , getCustomMapSqlParameterSource ( ) . addValue ( "nic_id" , nicId ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > getAllForNic ( org.ovirt.engine.core.compat.Guid nicId ) { return getCallsHandler ( ) . executeReadList ( "GetNetworkAttachmentsByNicId" , networkAttachmentRowMapper , getCustomMapSqlParameterSource ( ) . addValue ( "nic_id" , nicId ) ) ; }
Source:
protected java.util.List < org.ovirt.engine.api.model.Storage > getCollection ( ) { return collection.list ( ) . getStorage ( ) ; }

Target:
protected java.util.List < org.ovirt.engine.api.model.HostStorage > getCollection ( ) { return collection.list ( ) . getHostStorages ( ) ; }
Source:
protected void finalize ( ) { close ( ) ; }

Target:
protected void finalize ( ) { try { close ( ) ; } catch ( java.io.IOException e ) { org.ovirt.engine.core.bll.OVirtNodeUpgrade.log.error ( "Exception during finalize" , e ) ; } }
Source:
java.util.concurrent.Future < java.util.Map < java.lang.String , java.lang.Object > > setupNetworks ( org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct networks , org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct bonding , org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct options ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc vmUpdateDevice ( java.lang.String vmId , java.util.Map device ) ;
Source:
public static void Alert ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase auditLogable , org.ovirt.engine.core.common.AuditLogType logType , org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector auditLogDirector , java.lang.String message ) { auditLogDirector.log ( auditLogable , logType , message ) ; }

Target:
public static void alert ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase auditLogable , org.ovirt.engine.core.common.AuditLogType logType , org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector auditLogDirector , java.lang.String message ) { auditLogDirector.log ( auditLogable , logType , message ) ; }
Source:
public void networkNotInUseByTemplates ( ) throws java.lang.Exception { networkNotUsedByTemplatesTest ( ValidationResult.VALID , java.util.Collections.< org.ovirt.engine.core.common.businessentities.VmTemplate > emptyList ( ) ) ; }

Target:
public void networkNotInUseByTemplates ( ) throws java.lang.Exception { networkNotUsedByTemplatesTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , java.util.Collections.< org.ovirt.engine.core.common.businessentities.VmTemplate > emptyList ( ) ) ; }
Source:
public void validateEmptyDescriptionFails ( ) { command.getParameters ( ) . setDescription ( "" ) ; org.junit.Assert.assertTrue ( ( ! ( command.validate ( ) ) ) ) ; }

Target:
public void validateEmptyDescriptionFails ( ) { command.getParameters ( ) . setDescription ( "" ) ; org.junit.jupiter.api.Assertions.assertTrue ( ( ! ( command.validate ( ) ) ) ) ; }
Source:
public void clusterEmulatedMachineIsNull ( ) { emulatedMachine = null ; org.assertj.core.api.Assertions.assertThatThrownBy ( ( ) -> new org.ovirt.engine.core.utils.ovf.HostedEngineOvfWriter ( vm , images , version , emulatedMachine , cpuId , osRepository ) ) . isInstanceOf ( java.lang.NullPointerException.class ) . hasMessageContaining ( "emulated machine" ) ; }

Target:
public void clusterEmulatedMachineIsNull ( ) { emulatedMachine = null ; org.assertj.core.api.Assertions.assertThatThrownBy ( ( ) -> new org.ovirt.engine.core.utils.ovf.HostedEngineOvfWriter ( vm , images , luns , version , emulatedMachine , cpuId , osRepository ) ) . isInstanceOf ( java.lang.NullPointerException.class ) . hasMessageContaining ( "emulated machine" ) ; }
Source:
public int getnice_level ( ) { return this . mVmStatic.getnice_level ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.BootSequence getDefaultBootSequence ( ) { return this . vmStatic.getdefault_boot_sequence ( ) ; }
Source:
public void testUpdateServerConnection ( ) { existingConnection.setiqn ( "1.2.3.4" ) ; dao.update ( existingConnection ) ; org.ovirt.engine.core.common.businessentities.StorageServerConnections result = dao.get ( existingConnection.getid ( ) ) ; org.junit.Assert.assertEquals ( existingConnection , result ) ; }

Target:
public void testUpdateIscsiServerConnection ( ) { existingConnection.setiqn ( "1.2.3.4" ) ; dao.update ( existingConnection ) ; org.ovirt.engine.core.common.businessentities.StorageServerConnections result = dao.get ( existingConnection.getid ( ) ) ; org.junit.Assert.assertEquals ( existingConnection , result ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { context.storageList = ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > ) ( returnValue ) ) ; SetDefaultNames8 ( ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { context.storageList = ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > ) ( returnValue ) ) ; setDefaultNames8 ( ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.providers.ProviderModel flush ( ) { neutronAgentWidget.flush ( ) ; return driver.flush ( ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.providers.ProviderModel flush ( ) { neutronAgentWidget.flush ( ) ; vmwarePropertiesWidget.flush ( ) ; return driver.flush ( ) ; }
Source:
public void testLoadOverridingFiles ( ) { org.junit.Assert.assertEquals ( "spice/qxl" , OsInfoPreferencesLoader.INSTANCE.getPreferences ( ) . node ( "/os/default/devices/display/protocols" ) . get ( "value" , "spice/qxl" ) ) ; }

Target:
public void testLoadOverridingFiles ( ) { org.junit.jupiter.api.Assertions.assertEquals ( "spice/qxl" , OsInfoPreferencesLoader.INSTANCE.getPreferences ( ) . node ( "/os/default/devices/display/protocols" ) . get ( "value" , "spice/qxl" ) ) ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.storage.SanStorageModelBase sanStorageModel = ( ( org.ovirt.engine.ui.uicommonweb.models.storage.SanStorageModelBase ) ( result.getState ( ) ) ) ; sanStorageModel.postLogin ( result ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.storage.SanStorageModelBase sanStorageModel = ( ( org.ovirt.engine.ui.uicommonweb.models.storage.SanStorageModelBase ) ( result.getState ( ) ) ) ; sanStorageModel.postLogin ( result ) ; }
Source:
public void setFireConsoleConnectEventCommand ( org.ovirt.engine.ui.uicommonweb.UICommand fireConsoleConnectEvent ) { this . fireConsoleConnectEventCommand = fireConsoleConnectEvent ; }

Target:
private void connectToConsole ( ) { java.lang.String errorMessage = consoleManager.connectToConsole ( this ) ; if ( errorMessage != null ) { errorPopupManager.show ( errorMessage ) ; } }
Source:
public void copyKeysDataTo ( ovirt_engine_dwh.osenumupdate_3_3.OsEnumUpdate.host_changesStruct other ) { other.enum_type = this . enum_type ; other.enum_key = this . enum_key ; other.language_code = this . language_code ; }

Target:
public void copyDataTo ( ovirt_engine_dwh.osenumupdate_3_3.OsEnumUpdate.row2Struct other ) { other.enum_type = this . enum_type ; other.enum_key = this . enum_key ; other.language_code = this . language_code ; other.value = this . value ; }
Source:
public void addDriveToImageMap ( java.lang.String drive , org.ovirt.engine.core.common.businessentities.DiskImage image ) { mDiskMap.put ( drive , image ) ; getDiskList ( ) . add ( image ) ; }

Target:
public void setCpuPinning ( java.lang.String cpuPinning ) { mVmStatic.setCpuPinning ( cpuPinning ) ; }
Source:
public < T > T getEntity ( java.lang.Class < T > clz , org.ovirt.engine.core.common.queries.VdcQueryType query , org.ovirt.engine.core.common.queries.VdcQueryParametersBase queryParams , java.lang.String identifier , boolean notFoundAs404 ) { return getEntity ( clz , query , queryParams , identifier , notFoundAs404 , true ) ; }

Target:
public < T > T getEntity ( java.lang.Class < T > clz , org.ovirt.engine.core.common.queries.QueryType query , org.ovirt.engine.core.common.queries.VdcQueryParametersBase queryParams , java.lang.String identifier , boolean notFoundAs404 ) { return getEntity ( clz , query , queryParams , identifier , notFoundAs404 , true ) ; }
Source:
public static org.ovirt.engine.api.model.GlusterVolumeType fromValue ( java.lang.String v ) { return org.ovirt.engine.api.model.GlusterVolumeType.valueOf ( v ) ; }

Target:
public static org.ovirt.engine.api.model.GlusterVolumeType fromValue ( java.lang.String v ) { try { return org.ovirt.engine.api.model.GlusterVolumeType.valueOf ( v.toUpperCase ( ) ) ; } catch ( java.lang.IllegalArgumentException e ) { return null ; } }
Source:
public org.springframework.jdbc.core.namedparam.MapSqlParameterSource map ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface nic ) { return createInterfaceParametersMapper ( nic ) ; }

Target:
public org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.compat.Guid , java.lang.String > mapRow ( java.sql.ResultSet rs , int arg1 ) throws java.sql.SQLException { return new org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.compat.Guid , java.lang.String > ( getGuid ( rs , "vds_id" ) , rs.getString ( "network_name" ) ) ; }
Source:
protected boolean canPerformHotPlug ( ) { return ( isHotPlugSupported ( ) ) && ( isOSSupportingHotPlug ( ) ) ; }

Target:
protected boolean canPerformHotPlug ( ) { return ( isHotPlugSupported ( ) ) && ( isOsSupportingHotPlug ( ) ) ; }
Source:
public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmModel.ON_DISK_LOAD ) ) ; }

Target:
public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { onDataLoad ( ) ; }
Source:
public void canDoActionSucceedsOnRemoveNotLastAdGroupWithSuperUserPrivileges ( ) throws java.lang.Exception { org.powermock.api.mockito.PowerMockito.when ( org.ovirt.engine.core.bll.MultiLevelAdministrationHandler.isLastSuperUserGroup ( adElementId ) ) . thenReturn ( false ) ; org.junit.Assert.assertTrue ( command.canDoAction ( ) ) ; }

Target:
public void canDoActionSucceedsOnRemoveNotLastAdGroupWithSuperUserPrivileges ( ) throws java.lang.Exception { mockIsLastSuperUserGroup ( false ) ; org.junit.Assert.assertTrue ( command.canDoAction ( ) ) ; }
Source:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.CommandEntity > cmds = dao.getAll ( ) ; org.junit.Assert.assertNotNull ( cmds ) ; org.junit.Assert.assertTrue ( ( ( cmds.size ( ) ) > 0 ) ) ; }

Target:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.CommandEntity > cmds = dao.getAll ( ) ; org.junit.jupiter.api.Assertions.assertNotNull ( cmds ) ; org.junit.jupiter.api.Assertions.assertTrue ( ( ( cmds.size ( ) ) > 0 ) ) ; }
Source:
protected void executeVdsBrokerCommand ( ) { super . executeVdsBrokerCommand ( ) ; updateNetConfigDirtyFlag ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.CollectVdsNetworkDataVDSCommand.persistAndEnforceNetworkCompliance ( getVds ( ) , skipManagementNetwork ( ) ) ; proceedProxyReturnValue ( ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { super . executeVdsBrokerCommand ( ) ; updateNetConfigDirtyFlag ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.CollectVdsNetworkDataVDSCommand.persistAndEnforceNetworkCompliance ( getVds ( ) , skipManagementNetwork ( ) , org.ovirt.engine.core.common.businessentities.Entities.entitiesByName ( getParameters ( ) . getInterfaces ( ) ) ) ; proceedProxyReturnValue ( ) ; }
Source:
public void testcontainsIlegalCharacters ( ) { java.lang.String [ ] straValid = new java.lang.String [ ] { "www_redhat_com" , "127001" , "www_REDHAT_1" } ; java.lang.String [ ] straInvalid = new java.lang.String [ ] { "www.redhatcom" , "me@localhost" , "no/worries" } ; for ( java.lang.String s : straValid ) { org.junit.Assert.assertTrue ( ( "Valid strings: " + s ) , java.util.regex.Pattern.matches ( ValidationUtils.NO_SPECIAL_CHARACTERS , s ) ) ; } for ( java.lang.String s : straInvalid ) { org.junit.Assert.assertTrue ( ( "Invalid strings: " + s ) , ( ! ( java.util.regex.Pattern.matches ( ValidationUtils.NO_SPECIAL_CHARACTERS , s ) ) ) ) ; } }

Target:
public void testcontainsIlegalCharacters ( ) { assertPatternMatches ( "Valid strings: " , ValidationUtils.NO_SPECIAL_CHARACTERS , "www_redhat_com" , "127001" , "www_REDHAT_1" ) ; assertPatternDoesNotMatch ( "Invalid strings: " , ValidationUtils.NO_SPECIAL_CHARACTERS , "www.redhatcom" , "me@localhost" , "no/worries" ) ; }
Source:
public void testGetAllSessions ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSession > sessions = dao.getAllSessions ( ) ; org.junit.Assert.assertNotNull ( sessions ) ; org.junit.Assert.assertEquals ( FixturesTool.GLUSTER_GEOREP_SESSION_ID , sessions.get ( 0 ) . getId ( ) ) ; }

Target:
public void testGetAllSessions ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSession > sessions = dao.getAllSessions ( ) ; org.junit.jupiter.api.Assertions.assertNotNull ( sessions ) ; org.junit.jupiter.api.Assertions.assertEquals ( FixturesTool.GLUSTER_GEOREP_SESSION_ID , sessions.get ( 0 ) . getId ( ) ) ; }
Source:
private void persistCommand ( org.ovirt.engine.core.common.businessentities.CommandEntity cmdEntity ) { this . persistCommand ( cmdEntity.getId ( ) , cmdEntity.getParentCommandId ( ) , cmdEntity.getRootCommandId ( ) , cmdEntity.getCommandType ( ) , cmdEntity.getActionParameters ( ) , cmdEntity.getCommandStatus ( ) ) ; }

Target:
public void persistCommand ( org.ovirt.engine.core.common.businessentities.CommandEntity cmdEntity ) { this . persistCommand ( cmdEntity.getId ( ) , cmdEntity.getRootCommandId ( ) , cmdEntity.getCommandType ( ) , cmdEntity.getActionParameters ( ) , cmdEntity.getCommandStatus ( ) , cmdEntity.isEnableCallBack ( ) ) ; }
Source:
public void onSuccess ( final org.ovirt.engine.core.common.action.VdcReturnValueBase result ) { org.ovirt.engine.ui.frontend.Frontend.logger.finer ( "Succesful returned result from logoff." ) ; callback.getDel ( ) . onSuccess ( result ) ; }

Target:
public void onSuccess ( final org.ovirt.engine.core.common.action.VdcReturnValueBase result ) { org.ovirt.engine.ui.frontend.Frontend.logger.finer ( "Succesful returned result from logoff." ) ; callback.getAsyncCallback ( ) . onSuccess ( result ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.Snapshot getInPreview ( ) { for ( org.ovirt.engine.core.common.businessentities.Snapshot snapshot : ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Snapshot > ) ( getItems ( ) ) ) ) { if ( ( snapshot.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotStatus.IN_PREVIEW ) ) { return snapshot ; } } return null ; }

Target:
public org.ovirt.engine.core.common.businessentities.Snapshot getInPreview ( java.util.Collection < org.ovirt.engine.core.common.businessentities.Snapshot > snapshots ) { for ( org.ovirt.engine.core.common.businessentities.Snapshot snapshot : snapshots ) { if ( ( snapshot.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotStatus.IN_PREVIEW ) ) { return snapshot ; } } return null ; }
Source:
protected boolean isHotPlugSupported ( ) { if ( org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > GetValue ( ConfigValues.HotPlugEnabled , org.ovirt.engine.core.bll.VmCommand.getVds ( ) . getVdsGroupCompatibilityVersion ( ) . getValue ( ) ) ) { return true ; } addCanDoActionMessage ( VdcBllMessages.HOT_PLUG_IS_NOT_SUPPORTED ) ; return false ; }

Target:
protected boolean canPerformNicHotPlug ( ) { return ( isHotPlugSupported ( ) ) && ( isNicSupportedForPlugUnPlug ( ) ) ; }
Source:
public boolean equals ( java.lang.Object obj ) { if ( obj instanceof org.ovirt.engine.core.common.businessentities.V2VJobInfo ) { return vmId.equals ( ( ( org.ovirt.engine.core.common.businessentities.V2VJobInfo ) ( obj ) ) . vmId ) ; } return false ; }

Target:
public int hashCode ( ) { return java.util.Objects.hashCode ( vmId ) ; }
Source:
public void setPmSecondaryUser ( java.lang.String value ) { mVdsStatic.setPmSecondaryUser ( value ) ; }

Target:
public void setLiveSnapshotSupport ( java.lang.Boolean value ) { this . mVdsDynamic.setLiveSnapshotSupport ( value ) ; }
Source:
public void addToHistoryZeroLimit ( ) { org.junit.Assert.assertEquals ( java.util.Collections.emptyList ( ) , statistics.addToHistory ( java.util.Arrays.asList ( 9 , 10 , 11 , 12 ) , 13 , 0 ) ) ; }

Target:
public void addToHistoryZeroLimit ( ) { org.junit.jupiter.api.Assertions.assertEquals ( java.util.Collections.emptyList ( ) , statistics.addToHistory ( java.util.Arrays.asList ( 9 , 10 , 11 , 12 ) , 13 , 0 ) ) ; }
Source:
private void logError ( org.ovirt.engine.core.common.businessentities.storage.CinderDisk removedVolume , java.lang.Exception ex ) { log.error ( "An exception occurred while verifying status for volume id '{}' with the following exception: {}." , removedVolume.getImageId ( ) , ex ) ; }

Target:
private boolean allChildCommandWereExecuted ( ) { return ( org.ovirt.engine.core.bll.storage.RemoveCinderDiskCommandCallback.getCommand ( ) . getParameters ( ) . getFinishedChildCmdIds ( ) . size ( ) ) == ( org.ovirt.engine.core.bll.storage.RemoveCinderDiskCommandCallback.getCommand ( ) . getParameters ( ) . getChildCommandsParameters ( ) . size ( ) ) ; }
Source:
void prepareConnectHostToStoragePoolServers ( org.ovirt.engine.core.common.action.ConnectHostToStoragePoolServersParameters parameters , java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > connections ) ;

Target:
boolean prepareConnectHostToStoragePoolServers ( org.ovirt.engine.core.bll.context.CommandContext cmdContext , org.ovirt.engine.core.common.action.ConnectHostToStoragePoolServersParameters parameters , java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > connections ) ;
Source:
protected void beforeUiCommonInitEvent ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalLoginModel loginModel ) { org.ovirt.engine.ui.userportal.uicommon.model.UserPortalModelInitEvent.fire ( eventBus ) ; }

Target:
protected void beforeLogin ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalLoginModel loginModel ) { org.ovirt.engine.ui.userportal.uicommon.model.UserPortalModelInitEvent.fire ( eventBus ) ; org.ovirt.engine.ui.common.uicommon.model.ModelInitializedEvent.fire ( eventBus ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { getConnectivityTimeout ( ) . setEntity ( returnValue ) ; postOnSetupNetworks ( ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > networks = ( ( java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > ) ( returnValue ) ) ; allNetworks = networks ; initNetworkModels ( ) ; initDcNetworkParams ( ) ; queryInterfaces ( ) ; }
Source:
public boolean isEnabled ( ) { for ( org.ovirt.engine.ui.uicommonweb.models.EntityModel model : getClustersTableItems ( ) ) { org.ovirt.engine.ui.uicommonweb.models.datacenters.NetworkClusterModel networkClusterModel = ( ( org.ovirt.engine.ui.uicommonweb.models.datacenters.NetworkClusterModel ) ( model ) ) ; if ( networkClusterModel.getIsChangable ( ) ) { return true ; } } return false ; }

Target:
public void update ( int index , org.ovirt.engine.ui.uicommonweb.models.EntityModel model , java.lang.Boolean value ) { org.ovirt.engine.ui.uicommonweb.models.datacenters.NetworkClusterModel networkClusterModel = ( ( org.ovirt.engine.ui.uicommonweb.models.datacenters.NetworkClusterModel ) ( model ) ) ; networkClusterModel.setRequired ( value ) ; refreshClustersTable ( ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createBond ( java.lang.String name , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , name , true , null , null , null , networkName , true , null , false , null ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createNic ( java.lang.String nicName , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , nicName , false , null , null , null , networkName , true , null , false , null , org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.DEFAULT_SPEED ) ; }
Source:
public void rollback ( ) { super . rollback ( ) ; org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolPerDcSingleton.getInstance ( ) . removePool ( getMacPoolId ( ) ) ; }

Target:
public void onRollback ( ) { poolPerDc.removePool ( getMacPoolId ( ) ) ; }
Source:
public int compareTo ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeOptionEntity obj ) { return org.ovirt.engine.core.common.businessentities.comparators.BusinessEntityGuidComparator.< org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeOptionEntity > newInstance ( ) . compare ( this , obj ) ; }

Target:
public int compareTo ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeOptionEntity obj ) { return org.ovirt.engine.core.common.businessentities.comparators.BusinessEntityComparator.< org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeOptionEntity , org.ovirt.engine.core.compat.Guid > newInstance ( ) . compare ( this , obj ) ; }
Source:
public T getParameters ( ) { return super . getParameters ( ) ; }

Target:
public org.ovirt.engine.core.compat.Guid persistAsyncTaskPlaceHolder ( ) { return super . persistAsyncTaskPlaceHolder ( org.ovirt.engine.core.bll.snapshots.CreateAllSnapshotsFromVmCommand.getActionType ( ) ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.storage_domain_dynamic copyOf ( org.ovirt.engine.core.common.businessentities.storage_domain_dynamic domain ) { org.ovirt.engine.core.common.businessentities.storage_domain_dynamic sdd = new org.ovirt.engine.core.common.businessentities.storage_domain_dynamic ( ) ; sdd.availableDiskSize = domain.availableDiskSize ; sdd.id = new org.ovirt.engine.core.compat.Guid ( domain.id.getUuid ( ) ) ; sdd.usedDiskSize = domain.usedDiskSize ; return sdd ; }

Target:
public static org.ovirt.engine.core.common.businessentities.StorageDomainDynamic copyOf ( org.ovirt.engine.core.common.businessentities.StorageDomainDynamic domain ) { org.ovirt.engine.core.common.businessentities.StorageDomainDynamic sdd = new org.ovirt.engine.core.common.businessentities.StorageDomainDynamic ( ) ; sdd.availableDiskSize = domain.availableDiskSize ; sdd.id = new org.ovirt.engine.core.compat.Guid ( domain.id.getUuid ( ) ) ; sdd.usedDiskSize = domain.usedDiskSize ; return sdd ; }
Source:
public org.ovirt.engine.api.model.Permission get ( ) { return performGet ( VdcQueryType.GetPermissionById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) , suggestedParentType ) ; }

Target:
public org.ovirt.engine.api.model.Permission get ( ) { return performGet ( QueryType.GetPermissionById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) , suggestedParentType ) ; }
Source:
public boolean disconnectStorageFromLunByVdsId ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.common.businessentities.LUNs lun ) { return runConnectionStorageToDomain ( storageDomain , vdsId , VdcActionType.DisconnectStorageServerConnection.getValue ( ) , lun , Guid.Empty ) ; }

Target:
public boolean disconnectStorageFromLunByVdsId ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.common.businessentities.storage.LUNs lun ) { return runConnectionStorageToDomain ( storageDomain , vdsId , VdcActionType.DisconnectStorageServerConnection.getValue ( ) , lun , Guid.Empty ) . getFirst ( ) ; }
Source:
public void removeStorageDomain ( org.ovirt.vdsmfake.domain.StorageDomain storageDomain ) { org.ovirt.vdsmfake.domain.VdsmManager.getInstance ( ) . removeStorageDomain ( storageDomain ) ; }

Target:
public void updateStorageDomain ( org.ovirt.vdsmfake.domain.StorageDomain storageDomain ) { vdsmManager.updateStorageDomain ( storageDomain ) ; }
Source:
public void testConcurrentAgentsFenceActionExecutorUsage ( ) { org.ovirt.engine.core.bll.pm.HostFenceActionExecutor executor = new org.ovirt.engine.core.bll.pm.HostFenceActionExecutor ( fencedHost , new org.ovirt.engine.core.common.businessentities.FencingPolicy ( ) ) ; org.junit.Assert.assertTrue ( ( ( executor.createFenceActionExecutor ( createConcurrentAgentsList ( 2 , 1 ) ) ) instanceof org.ovirt.engine.core.bll.pm.ConcurrentAgentsFenceActionExecutor ) ) ; }

Target:
public void testConcurrentAgentsFenceActionExecutorUsage ( ) { org.ovirt.engine.core.bll.pm.HostFenceActionExecutor executor = new org.ovirt.engine.core.bll.pm.HostFenceActionExecutor ( fencedHost , new org.ovirt.engine.core.common.businessentities.FencingPolicy ( ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( ( ( executor.createFenceActionExecutor ( createConcurrentAgentsList ( 2 , 1 ) ) ) instanceof org.ovirt.engine.core.bll.pm.ConcurrentAgentsFenceActionExecutor ) ) ; }
Source:
protected java.lang.String composeRegex ( ) { return ( "[" + ( allUtfLetters ( ) ) ) + "]" ; }

Target:
protected java.lang.String composeRegex ( ) { return ( "[" + ( utfLettersWithoutAsciiLetters ( ) ) ) + "]" ; }
Source:
public java.util.Map < java.lang.Integer , java.util.Map < org.ovirt.engine.core.compat.Version , java.lang.Boolean > > getSpiceSupportMatrix ( ) ;

Target:
public java.util.Map < java.lang.Integer , java.util.Map < org.ovirt.engine.core.compat.Version , java.util.List < org.ovirt.engine.core.common.businessentities.DisplayType > > > getDisplayTypes ( ) ;
Source:
public boolean eval ( org.ovirt.engine.core.common.scheduling.AffinityGroup affinityGroup ) { return affinityGroup.isEnforcing ( ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.scheduling.AffinityGroup > getAllHardAffinityGroups ( org.ovirt.engine.core.common.businessentities.VDSGroup vdsGroup ) { return affinityGroupDao.getAllAffinityGroupsByClusterId ( vdsGroup.getId ( ) ) . stream ( ) . filter ( AffinityGroup :: isEnforcing ) . collect ( java.util.stream.Collectors.toList ( ) ) ; }
Source:
void onIsChangablePropertyChange ( org.ovirt.engine.ui.common.widget.HasEnabledWithHints editor , org.ovirt.engine.ui.uicommonweb.models.EntityModel model ) { if ( model.getIsChangable ( ) ) { editor.setEnabled ( true ) ; } else { editor.disable ( model.getChangeProhibitionReason ( ) ) ; } }

Target:
void onIsChangablePropertyChange ( org.ovirt.engine.ui.common.widget.HasEnabledWithHints editor , org.ovirt.engine.ui.uicommonweb.models.Model model ) { if ( model.getIsChangable ( ) ) { editor.setEnabled ( true ) ; } else { editor.disable ( model.getChangeProhibitionReason ( ) ) ; } }
Source:
public void setName ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( name , value ) ) ) { name = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Name" ) ) ; } }

Target:
public void setName ( java.lang.String value ) { if ( ! ( java.util.Objects.equals ( name , value ) ) ) { name = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Name" ) ) ; } }
Source:
public void updateDataCenter ( org.ovirt.vdsmfake.service.DataCenter dataCenter ) { org.ovirt.vdsmfake.service.VdsmManager.getInstance ( ) . updateDataCenter ( dataCenter ) ; }

Target:
public void updateDataCenter ( org.ovirt.vdsmfake.domain.DataCenter dataCenter ) { org.ovirt.vdsmfake.domain.VdsmManager.getInstance ( ) . updateDataCenter ( dataCenter ) ; }
Source:
private boolean isDiskSnapshotNotPluggedToOtherVms ( org.ovirt.engine.core.compat.Guid imageId ) { org.ovirt.engine.core.common.businessentities.DiskImage diskImage = getDiskImageById ( imageId ) ; return validate ( createDiskImagesValidator ( java.util.Collections.singletonList ( diskImage ) ) . diskImagesSnapshotsNotAttachedToOtherVms ( true ) ) ; }

Target:
protected boolean isDiskSnapshotNotPluggedToOtherVmsThatAreNotDown ( org.ovirt.engine.core.compat.Guid imageId ) { return validate ( createDiskValidator ( getDiskImageByImageId ( imageId ) ) . isDiskPluggedToVmsThatAreNotDown ( true , null ) ) ; }
Source:
protected java.lang.String composeRegex ( ) { return ( ( ( ( start ( ) ) + ( protocol ( ) ) ) + ( hostnameOrIp ( ) ) ) + ( port ( ) ) ) + ( end ( ) ) ; }

Target:
protected java.lang.String composeRegex ( ) { return ( ( ( ( start ( ) ) + ( protocol ( ) ) ) + ( org.ovirt.engine.core.common.utils.ValidationUtils.HOSTNAME_FOR_URI ) ) + ( port ( ) ) ) + ( end ( ) ) ; }
Source:
public void setupCommand ( ) { initSpyCommand ( ) ; mockBackend ( ) ; mockDaos ( ) ; mockVm ( ) ; }

Target:
public void setupCommand ( ) { initSpyCommand ( ) ; mockBackend ( ) ; mockDaos ( ) ; mockSnapshotValidator ( ) ; mockVm ( ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.NetworkStatus getRawValue ( org.ovirt.engine.core.common.businessentities.Network object ) { return object.getStatus ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.NetworkStatus getRawValue ( org.ovirt.engine.core.common.businessentities.Network object ) { return object.getCluster ( ) . getstatus ( ) ; }
Source:
public void testIfExistsHostThatMissesNetworkInClusterWrongNetwork ( ) { final boolean resultBeforeStatusUpdate = dao.checkIfExistsHostThatMissesNetworkInCluster ( FixturesTool.CLUSTER , "no such network" , VDSStatus.Up ) ; org.junit.Assert.assertTrue ( resultBeforeStatusUpdate ) ; }

Target:
public void testIfExistsHostThatMissesNetworkInClusterWrongNetwork ( ) { final boolean resultBeforeStatusUpdate = dao.checkIfExistsHostThatMissesNetworkInCluster ( FixturesTool.CLUSTER , "no such network" , VDSStatus.Up ) ; org.junit.jupiter.api.Assertions.assertTrue ( resultBeforeStatusUpdate ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VmTemplate > ( ) ; } return source ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VmTemplate > ( ) ; } return source ; }
Source:
public org.ovirt.engine.core.common.businessentities.tags lookupTagById ( org.ovirt.engine.core.compat.Guid id ) { return getEntity ( org.ovirt.engine.core.common.businessentities.tags.class , VdcQueryType.GetTagByTagId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) , id.toString ( ) , true ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.Tags lookupTagById ( org.ovirt.engine.core.compat.Guid id ) { return getEntity ( org.ovirt.engine.core.common.businessentities.Tags.class , VdcQueryType.GetTagByTagId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) , id.toString ( ) , true ) ; }
Source:
public void getUsbPolicyUsbTypeNative ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; usb.setType ( UsbType.NATIVE ) ; org.junit.Assert.assertEquals ( UsbPolicy.ENABLED_NATIVE , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) ) ; }

Target:
public void getUsbPolicySetDisabled ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; org.junit.jupiter.api.Assertions.assertEquals ( UsbPolicy.DISABLED , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) ) ; }
Source:
public void testIpConfiguredForStaticBootProtocolWhenIpConfigurationIsNotNullAndBootProtocolIsStaticAndNetmaskIsNull ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment = createNetworkAttachmentWithIpConfiguration ( NetworkBootProtocol.STATIC_IP , "192.168.1.1" , null ) ; org.junit.Assert.assertThat ( createNetworkAttachmentValidator ( attachment ) . ipConfiguredForStaticBootProtocol ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NETWORK_ADDR_MANDATORY_IN_STATIC_IP ) ) ; }

Target:
private void doTestIpConfiguredForStaticBootProtocol ( java.lang.String address , java.lang.String netmask ) { org.hamcrest.Matcher < org.ovirt.engine.core.bll.ValidationResult > matcher = org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.NETWORK_ADDR_MANDATORY_IN_STATIC_IP ) ; doTestIpConfiguredForStaticBootProtocol ( address , netmask , matcher ) ; }
Source:
public int getCpuPerSocket ( ) { return this . vmStatic.getcpu_per_socket ( ) ; }

Target:
public void setCpuPerSocket ( int value ) { this . vmStatic.setCpuPerSocket ( value ) ; }
Source:
public void bondWithNoSlaves ( ) { org.ovirt.engine.core.common.businessentities.VdsNetworkInterface bond = createBond ( org.ovirt.engine.core.bll.SetupNetworksHelperTest.BOND_NAME , null ) ; mockExistingIfaces ( bond ) ; org.ovirt.engine.core.bll.SetupNetworksHelper helper = createHelper ( createParametersForNics ( bond ) ) ; validateAndExpectViolation ( helper , VdcBllMessages.NETWORK_BOND_PARAMETERS_INVALID ) ; }

Target:
public void bondWithNoSlaves ( ) { org.ovirt.engine.core.common.businessentities.VdsNetworkInterface bond = createBond ( org.ovirt.engine.core.bll.SetupNetworksHelperTest.BOND_NAME , null ) ; mockExistingIfaces ( bond ) ; org.ovirt.engine.core.bll.SetupNetworksHelper helper = createHelper ( createParametersForNics ( bond ) ) ; validateAndExpectViolation ( helper , VdcBllMessages.NETWORK_BONDS_INVALID_SLAVE_COUNT ) ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml progressBarWithId ( int progress , java.lang.String text , java.lang.String color , java.lang.String id ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml progressBar ( int progress , java.lang.String text , java.lang.String color , java.lang.String style , java.lang.String id ) ;
Source:
public void rollback ( ) { super . rollback ( ) ; org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolPerDcSingleton.getInstance ( ) . createPool ( oldMacPool ) ; }

Target:
public void rollback ( ) { super . rollback ( ) ; org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolPerDcSingleton.getInstance ( ) . createPool ( getOldMacPool ( ) ) ; }
Source:
protected void ExecuteVmCommand ( ) { if ( GetRunningOnVds ( ) ) { Perform ( ) ; return ; } setActionReturnValue ( ( ( org.ovirt.engine.core.bll.VmOperationCommandBase.getVm ( ) ) != null ? org.ovirt.engine.core.bll.VmOperationCommandBase.getVm ( ) . getstatus ( ) : org.ovirt.engine.core.common.businessentities.VMStatus.Down ) ) ; }

Target:
protected void executeVmCommand ( ) { if ( GetRunningOnVds ( ) ) { Perform ( ) ; return ; } setActionReturnValue ( ( ( org.ovirt.engine.core.bll.VmOperationCommandBase.getVm ( ) ) != null ? org.ovirt.engine.core.bll.VmOperationCommandBase.getVm ( ) . getstatus ( ) : org.ovirt.engine.core.common.businessentities.VMStatus.Down ) ) ; }
Source:
public void testGetAllNetworkQos ( ) { org.junit.Assert.assertTrue ( ( ( dao.getAll ( ) . size ( ) ) == 4 ) ) ; }

Target:
public void testGetAllNetworkQos ( ) { org.junit.Assert.assertTrue ( ( ( dao.getAllForStoragePoolId ( FixturesTool.STORAGE_POOL_MIXED_TYPES ) . size ( ) ) == 2 ) ) ; }
Source:
public static void updateBootOrderInVmDeviceAndStoreToDB ( org.ovirt.engine.core.common.businessentities.VmBase vmBase ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > devices = org.ovirt.engine.core.bll.utils.VmDeviceUtils.updateBootOrderInVmDevice ( vmBase ) ; for ( org.ovirt.engine.core.common.businessentities.VmDevice device : devices ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.dao.updateBootOrder ( device ) ; } }

Target:
public static void updateBootOrderInVmDeviceAndStoreToDB ( org.ovirt.engine.core.common.businessentities.VmBase vmBase ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > devices = org.ovirt.engine.core.bll.utils.VmDeviceUtils.updateBootOrderInVmDevice ( vmBase ) ; org.ovirt.engine.core.bll.utils.VmDeviceUtils.dao.updateBootOrderInBatch ( devices ) ; }
Source:
public org.ovirt.vdsmfake.AppConfig.ArchitectureType getArchitectureType ( ) { return org.ovirt.vdsmfake.AppConfig.ArchitectureType.valueOf ( architectureType ) ; }

Target:
public org.ovirt.vdsmfake.AppConfig.ArchitectureType getArchitectureType ( ) { return ( architectureType ) != null ? org.ovirt.vdsmfake.AppConfig.ArchitectureType.valueOf ( architectureType ) : org.ovirt.vdsmfake.AppConfig.ArchitectureType.X86_64 ; }
Source:
public static boolean UpdateVmInSpm ( org.ovirt.engine.core.compat.Guid storagePoolId , java.util.List < org.ovirt.engine.core.common.businessentities.VM > vmsList ) { return org.ovirt.engine.core.bll.VmCommand.UpdateVmInSpm ( storagePoolId , vmsList , Guid.Empty ) ; }

Target:
public static boolean updateVmInSpm ( org.ovirt.engine.core.compat.Guid storagePoolId , java.util.List < org.ovirt.engine.core.common.businessentities.VM > vmsList ) { return org.ovirt.engine.core.bll.VmCommand.updateVmInSpm ( storagePoolId , vmsList , Guid.Empty ) ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml textContainer ( java.lang.String id , com.google.gwt.safehtml.shared.SafeHtml text ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml textContainer ( java.lang.String style , java.lang.String id , com.google.gwt.safehtml.shared.SafeHtml text ) ;
Source:
public void updateHost ( org.ovirt.vdsmfake.domain.Host host ) { org.ovirt.vdsmfake.domain.VdsmManager.getInstance ( ) . updateHost ( host ) ; }

Target:
public void updateHost ( org.ovirt.vdsmfake.service.Host host ) { org.ovirt.vdsmfake.service.VdsmManager.getInstance ( ) . updateHost ( host ) ; }
Source:
public java.lang.Boolean convert ( java.lang.Object returnValue , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { return ( ( java.lang.Boolean ) ( returnValue ) ) ; }

Target:
public T convert ( java.lang.Object returnValue ) { T value = super . convert ( returnValue ) ; return value != null ? value : defaultValue ; }
Source:
private void addNetworkIdToNetworkDaoMock ( org.ovirt.engine.core.common.businessentities.network.Network network ) { org.mockito.Mockito.when ( networkDaoMock.get ( org.mockito.Matchers.eq ( network.getId ( ) ) ) ) . thenReturn ( network ) ; }

Target:
private void addNetworkIdToNetworkDaoMock ( org.ovirt.engine.core.common.businessentities.network.Network network ) { org.mockito.Mockito.when ( networkDaoMock.get ( org.mockito.ArgumentMatchers.eq ( network.getId ( ) ) ) ) . thenReturn ( network ) ; }
Source:
public void update ( org.ovirt.engine.core.common.businessentities.DbUser user ) { getCallsHandler ( ) . executeModification ( "UpdateUser" , new org.ovirt.engine.core.dao.DbUserDAODbFacadeImpl.DbUserMapSqlParameterSource ( user ) ) ; }

Target:
public void update ( org.ovirt.engine.core.common.businessentities.aaa.DbUser user ) { getCallsHandler ( ) . executeModification ( "UpdateUser" , new org.ovirt.engine.core.dao.DbUserDAODbFacadeImpl.DbUserMapSqlParameterSource ( user ) ) ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { needsAttach = false ; doFinish ( ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { for ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel model : getItems ( ) ) { if ( model.isManagement ( ) ) { managementNetwork = model ; } } }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.core.common.businessentities.storage.Disk object ) { if ( ( object.getDiskStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.DiskStorageType.LUN ) ) { return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromSafeConstant ( org.ovirt.engine.ui.common.widget.uicommon.disks.DisksViewColumns.constants.lunDisksLabel ( ) ) ; } return null ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.storage.Disk object ) { return object.getCinderVolumeType ( ) ; }
Source:
protected void setButtonEnabled ( V widget , boolean enabled ) { getEntry ( widget ) . setButtonEnabled ( enabled ) ; }

Target:
protected void setButtonsEnabled ( V widget , boolean enabled ) { getEntry ( widget ) . setButtonsEnabled ( enabled ) ; }