auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void assertThatVmNotHavingPassthroughVnics ( boolean valid ) { org.junit.Assert.assertThat ( validator.vmNotHavingPassthroughVnics ( ) , ( valid ? org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) : org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_MIGRATION_OF_PASSTHROUGH_VNICS_IS_NOT_SUPPORTED ) ) ) ; }

Target:
private void assertThatAllPassthroughVnicsMigratable ( boolean valid ) { org.junit.Assert.assertThat ( validator.allPassthroughVnicsMigratable ( ) , ( valid ? org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) : org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_MIGRATION_OF_NON_MIGRATABLE_PASSTHROUGH_VNICS_IS_NOT_SUPPORTED ) ) ) ; }
Source:
protected com.google.gwt.user.client.ui.Widget decorateSuggestionList ( com.google.gwt.user.client.ui.Widget suggestionList ) { this . suggestionMenu = suggestionList ; return super . decorateSuggestionList ( suggestionList ) ; }

Target:
public com.google.gwt.user.client.ui.MenuBar getSuggestionMenu ( ) { return super . getSuggestionMenu ( ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { clearVms ( ) ; clearValidations ( ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { clearVms ( ) ; clearValidations ( ) ; loadProviders ( ) ; }
Source:
public void testGetNotFound ( ) { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( 0 , true ) ; try { resource.get ( ) ; org.junit.jupiter.api.Assertions.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testGetNotFound ( ) { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( 0 , true ) ; verifyNotFoundException ( org.junit.jupiter.api.Assertions.assertThrows ( javax.ws.rs.WebApplicationException.class , resource :: get ) ) ; }
Source:
public static void Alert ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase auditLogable , org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogType logType ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( auditLogable , logType ) ; }

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.log ( auditLogable , logType ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.CommandEntity > getChildCmdsByParentCmdId ( org.ovirt.engine.core.compat.Guid cmdId ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getCommandEntityDao ( ) . getCmdEntitiesByParentCmdId ( cmdId ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.CommandEntity > getChildCmdsByParentCmdId ( org.ovirt.engine.core.compat.Guid cmdId ) { return commandEntityDao.getCmdEntitiesByParentCmdId ( cmdId ) ; }
Source:
private org.ovirt.engine.core.common.action.VdcActionType getEndActionType ( org.ovirt.engine.core.common.businessentities.AsyncTasks dbAsyncTask ) { org.ovirt.engine.core.common.action.VdcActionType commandType = dbAsyncTask.getActionParameters ( ) . getCommandType ( ) ; if ( ! ( VdcActionType.Unknown.equals ( commandType ) ) ) { return commandType ; } return dbAsyncTask.getaction_type ( ) ; }

Target:
private org.ovirt.engine.core.common.action.VdcActionType getEndActionType ( org.ovirt.engine.core.common.businessentities.AsyncTask dbAsyncTask ) { org.ovirt.engine.core.common.action.VdcActionType commandType = dbAsyncTask.getActionParameters ( ) . getCommandType ( ) ; if ( ! ( VdcActionType.Unknown.equals ( commandType ) ) ) { return commandType ; } return dbAsyncTask.getActionType ( ) ; }
Source:
public void ExecuteCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { setBondOptions ( entity , bondDialogModel ) ; sourceListModel.setConfirmWindow ( null ) ; }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { setBondOptions ( entity , bondDialogModel ) ; sourceListModel.setConfirmWindow ( null ) ; }
Source:
public int compare ( org.ovirt.engine.core.compat.RpmVersion x , org.ovirt.engine.core.compat.RpmVersion y ) { return x.compareTo ( y ) ; }

Target:
public int compare ( org.ovirt.engine.ui.uicommonweb.models.providers.ExternalNetwork net1 , org.ovirt.engine.ui.uicommonweb.models.providers.ExternalNetwork net2 ) { return comparator.compare ( net1.getNetwork ( ) , net2.getNetwork ( ) ) ; }
Source:
protected javax.ws.rs.core.Response performRemove ( java.lang.String id ) { org.ovirt.engine.core.common.action.NetworkAttachmentParameters params = new org.ovirt.engine.core.common.action.NetworkAttachmentParameters ( hostId , getNetworkAttachment ( id ) ) ; return performAction ( VdcActionType.RemoveNetworkAttachment , params ) ; }

Target:
public org.ovirt.engine.api.model.NetworkAttachments list ( ) { verifyIfHostExistsToHandle404StatusCode ( ) ; return mapCollection ( getNetworkAttachments ( ) ) ; }
Source:
public static org.ovirt.engine.api.model.Network getNetwork ( ) { org.ovirt.engine.api.model.Network entity = new org.ovirt.engine.api.model.Network ( ) ; entity.setId ( org.ovirt.engine.api.restapi.resource.BackendHostNicsResourceTest.NETWORK_GUID ) ; entity.setname ( org.ovirt.engine.api.restapi.resource.BackendHostNicsResourceTest.NETWORK_NAME ) ; return entity ; }

Target:
public static org.ovirt.engine.api.model.Network getNetwork ( ) { org.ovirt.engine.api.model.Network entity = new org.ovirt.engine.api.model.Network ( ) ; entity.setId ( org.ovirt.engine.api.restapi.resource.BackendHostNicsResourceTest.NETWORK_GUID ) ; entity.setName ( org.ovirt.engine.api.restapi.resource.BackendHostNicsResourceTest.NETWORK_NAME ) ; return entity ; }
Source:
protected org.ovirt.engine.core.common.businessentities.OriginType getRawValue ( java.lang.Object object ) { return getEntity ( object ) . getOrigin ( ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { refreshEntityTable ( ) ; }
Source:
public void freeMac ( java.lang.String mac ) { macsStorage.freeMac ( org.ovirt.engine.core.utils.MacAddressRangeUtils.macToLong ( mac ) ) ; }

Target:
public void freeMac ( java.lang.String mac ) { this . freeMacs ( java.util.Collections.singletonList ( mac ) ) ; }
Source:
public void setIsChangable ( boolean value ) { if ( ( isChangable ) != value ) { isChangable = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "IsChangable" ) ) ; if ( isChangable ) { getChangeProhibitionReasons ( ) . clear ( ) ; } } }

Target:
public void setIsChangable ( boolean value ) { if ( ( isChangable ) != value ) { isChangable = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "IsChangable" ) ) ; if ( isChangable ) { privateChangeProhibitionReason = null ; } } }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.storage.pool.GetStoragePoolsByClusterServiceQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.storage.pool.GetStoragePoolsByClusterServiceQuery.getDbFacade ( ) . getStoragePoolDao ( ) . getDataCentersByClusterService ( org.ovirt.engine.core.bll.storage.pool.GetStoragePoolsByClusterServiceQuery.getParameters ( ) . isSupportsVirtService ( ) , org.ovirt.engine.core.bll.storage.pool.GetStoragePoolsByClusterServiceQuery.getParameters ( ) . isSupportsGlusterService ( ) ) ) ; }

Target:
protected java.lang.Object queryDataCenter ( ) { return storagePoolDao.getDataCentersByClusterService ( org.ovirt.engine.core.bll.storage.pool.GetStoragePoolsByClusterServiceQuery.getParameters ( ) . isSupportsVirtService ( ) , org.ovirt.engine.core.bll.storage.pool.GetStoragePoolsByClusterServiceQuery.getParameters ( ) . isSupportsGlusterService ( ) ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { keyItemChanged ( ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { selectedKeyChanged ( ) ; }
Source:
public void testGetAllInterfacesForVdsWithInvalidVds ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > result = dao.getAllInterfacesForVds ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllInterfacesForVdsWithInvalidVds ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > result = dao.getAllInterfacesForVds ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public static org.ovirt.engine.core.bll.ValidationResult validateIconId ( org.ovirt.engine.core.compat.Guid iconId , java.lang.String nameForErrorMessage ) { if ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmIconDao ( ) . exists ( iconId ) ) { return org.ovirt.engine.core.bll.ValidationResult.VALID ; } return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ICON_OF_PROVIDED_ID_DOES_NOT_EXIST , ( "$iconName " + nameForErrorMessage ) ) ; }

Target:
public static org.ovirt.engine.core.bll.ValidationResult validateIconId ( org.ovirt.engine.core.compat.Guid iconId , java.lang.String nameForErrorMessage ) { if ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmIconDao ( ) . exists ( iconId ) ) { return org.ovirt.engine.core.bll.ValidationResult.VALID ; } return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ICON_OF_PROVIDED_ID_DOES_NOT_EXIST , ( "$iconName " + nameForErrorMessage ) ) ; }
Source:
private static void assertEmptyCanDoActionMessage ( java.util.List < ? > list ) { org.junit.Assert.assertTrue ( org.ovirt.engine.core.bll.quota.QuotaManagerTest.EXPECTED_EMPTY_CAN_DO_MESSAGE , ( ( list == null ) || ( ( list.size ( ) ) == 0 ) ) ) ; }

Target:
private void assertEmptyCanDoActionMessage ( ) { org.junit.Assert.assertTrue ( org.ovirt.engine.core.bll.quota.QuotaManagerTest.EXPECTED_EMPTY_CAN_DO_MESSAGE , canDoActionMessages.isEmpty ( ) ) ; }
Source:
public void addConstraints ( java.util.List < org.ovirt.api.metamodel.concepts.Constraint > newConstraints ) { constraints.addAll ( newConstraints ) ; constraints.sort ( java.util.Comparator.comparing ( Constraint :: getName ) ) ; }

Target:
public java.util.List < org.ovirt.api.metamodel.concepts.Constraint > getDeclaredConstraints ( ) { return new java.util.concurrent.CopyOnWriteArrayList ( constraints ) ; }
Source:
protected org.ovirt.engine.core.bll.ValidationResult stpForVmNetworkOnly ( ) { return ( getNetwork ( ) . isVmNetwork ( ) ) || ( ! ( getNetwork ( ) . getstp ( ) ) ) ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.NON_VM_NETWORK_CANNOT_SUPPORT_STP ) ; }

Target:
protected org.ovirt.engine.core.bll.ValidationResult stpForVmNetworkOnly ( ) { return ( getNetwork ( ) . isVmNetwork ( ) ) || ( ! ( getNetwork ( ) . getStp ( ) ) ) ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.NON_VM_NETWORK_CANNOT_SUPPORT_STP ) ; }
Source:
protected org.ovirt.engine.ui.uicommonweb.models.vms.IRdp asRdp ( org.ovirt.engine.ui.uicommonweb.models.HasConsoleModel model ) { return ( ( org.ovirt.engine.ui.uicommonweb.models.vms.RdpConsoleModel ) ( model.getAdditionalConsoleModel ( ) ) ) . getrdp ( ) ; }

Target:
protected org.ovirt.engine.ui.uicommonweb.models.vms.RdpConsoleModel asRdpConsoleModel ( org.ovirt.engine.ui.uicommonweb.models.HasConsoleModel model ) { return ( ( org.ovirt.engine.ui.uicommonweb.models.vms.RdpConsoleModel ) ( model.getAdditionalConsoleModel ( ) ) ) ; }
Source:
private void initTabAvailabilityListeners ( final org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel vm ) { highAvailabilityTab.setVisible ( true ) ; isStatelessEditor.setVisible ( false ) ; numOfMonitorsEditor.setVisible ( false ) ; allowConsoleReconnectEditor.setVisible ( false ) ; }

Target:
private void initTabAvailabilityListeners ( final org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel vm ) { highAvailabilityTab.setVisible ( true ) ; isStatelessEditor.setVisible ( false ) ; numOfMonitorsEditor.setVisible ( false ) ; allowConsoleReconnectEditor.setVisible ( false ) ; expander.setVisible ( false ) ; }
Source:
public T getFirst ( ) { return getPair ( ) . getFirst ( ) ; }

Target:
public org.ovirt.engine.core.common.utils.PairQueryable.PairQueryableId getQueryableId ( ) { return new org.ovirt.engine.core.common.utils.PairQueryable.PairQueryableId ( getMemberId ( org.ovirt.engine.core.common.utils.PairQueryable.getFirst ( ) ) , getMemberId ( org.ovirt.engine.core.common.utils.PairQueryable.getSecond ( ) ) ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.FenceAgent getPrimaryAgent ( java.util.List < org.ovirt.engine.core.common.businessentities.FenceAgent > fenceAgents ) { if ( fenceAgents.isEmpty ( ) ) { fenceAgents.add ( new org.ovirt.engine.core.common.businessentities.FenceAgent ( ) ) ; } return fenceAgents.get ( 0 ) ; }

Target:
private static org.ovirt.engine.core.common.businessentities.pm.FenceAgent getPrimaryAgent ( java.util.List < org.ovirt.engine.core.common.businessentities.pm.FenceAgent > fenceAgents ) { if ( fenceAgents.isEmpty ( ) ) { fenceAgents.add ( new org.ovirt.engine.core.common.businessentities.pm.FenceAgent ( ) ) ; } return fenceAgents.get ( 0 ) ; }
Source:
public void updateLastAdminCheckStatus ( org.ovirt.engine.core.compat.Guid ... userIds ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "userIds" , org.apache.commons.lang.StringUtils.join ( userIds , "," ) ) ; new org.springframework.jdbc.core.simple.SimpleJdbcCall ( jdbcTemplate ) . withProcedureName ( "UpdateLastAdminCheckStatus" ) . execute ( parameterSource ) ; }

Target:
public static void setInstance ( org.ovirt.engine.core.dal.dbbroker.DbFacade dbFacade ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.instance = dbFacade ; }
Source:
protected java.lang.String extractNameFromEntity ( org.ovirt.engine.core.common.businessentities.VM entity ) { return entity.getvm_name ( ) ; }

Target:
protected java.lang.String extractNameFromEntity ( org.ovirt.engine.core.common.businessentities.VM entity ) { return entity.getVmName ( ) ; }
Source:
private static void addEmptyCD ( org.ovirt.engine.core.compat.Guid dstId ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.addManagedDevice ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) , dstId ) , VmDeviceType.DISK , VmDeviceType.CDROM , java.util.Collections.< java.lang.String , java.lang.Object > singletonMap ( VdsProperties.Path , "" ) , true , true ) ; }

Target:
private static void addEmptyCD ( org.ovirt.engine.core.compat.Guid dstId ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.addManagedDevice ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) , dstId ) , VmDeviceGeneralType.DISK , VmDeviceType.CDROM , java.util.Collections.< java.lang.String , java.lang.Object > singletonMap ( VdsProperties.Path , "" ) , true , true ) ; }
Source:
public static void logAndFailTaskOfCommandWithEmptyVdsmId ( org.ovirt.engine.core.common.businessentities.AsyncTasks task , java.lang.String message ) { org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.getAsyncTaskManager ( ) . logAndFailTaskOfCommandWithEmptyVdsmId ( task , message ) ; }

Target:
public static void logAndFailTaskOfCommandWithEmptyVdsmId ( org.ovirt.engine.core.common.businessentities.AsyncTask task , java.lang.String message ) { org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.getAsyncTaskManager ( ) . logAndFailTaskOfCommandWithEmptyVdsmId ( task , message ) ; }
Source:
public org.ovirt.engine.api.model.AffinityLabel get ( ) { return addLinks ( performGet ( QueryType.GetLabelById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ) ; }

Target:
public org.ovirt.engine.api.model.AffinityLabel get ( ) { org.ovirt.engine.api.model.AffinityLabel affinityLabel = addLinks ( performGet ( QueryType.GetLabelById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ) ; parent.linkSubCollections ( affinityLabel ) ; return affinityLabel ; }
Source:
public static boolean isVmDeviceExists ( java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.VmDevice > vmManagedDeviceMap , java.lang.String name ) { return ( org.ovirt.engine.core.common.utils.VmDeviceCommonUtils.findVmDeviceByName ( vmManagedDeviceMap , name ) ) != null ; }

Target:
public static boolean isVmDeviceExists ( java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.VmDevice > vmManagedDeviceMap , java.lang.String typeName ) { return ( org.ovirt.engine.core.common.utils.VmDeviceCommonUtils.findVmDeviceByType ( vmManagedDeviceMap , typeName ) ) != null ; }
Source:
public void testIsNetworkInSyncWhenIfaceQosIsNullIfaceQosOverridden ( ) throws java.lang.Exception { iface.setQos ( null ) ; org.junit.Assert.assertThat ( createTestedInstanceWithSameNonQosValues ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testIsNetworkInSyncWhenIfaceQosIsNullIfaceQosOverridden ( ) { iface.setQos ( null ) ; org.hamcrest.MatcherAssert.assertThat ( createTestedInstanceWithSameNonQosValues ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.utils.customprop.ValidationError > validateCustomProperties ( org.ovirt.engine.core.common.businessentities.VmStatic vmStaticFromParams ) { return org.ovirt.engine.core.common.utils.customprop.VmPropertiesUtils.getInstance ( ) . validateVmProperties ( org.ovirt.engine.core.bll.VmCommand.getVdsGroup ( ) . getcompatibility_version ( ) , vmStaticFromParams.getCustomProperties ( ) ) ; }

Target:
protected boolean validateCustomProperties ( org.ovirt.engine.core.common.businessentities.VmStatic vmStaticFromParams , java.util.List < java.lang.String > reasons ) { return org.ovirt.engine.core.common.utils.customprop.VmPropertiesUtils.getInstance ( ) . validateVmProperties ( org.ovirt.engine.core.bll.VmCommand.getVdsGroup ( ) . getcompatibility_version ( ) , vmStaticFromParams.getCustomProperties ( ) , reasons ) ; }
Source:
public void testNonexistingQuota ( ) { org.mockito.Mockito.doReturn ( null ) . when ( quotaDao ) . getById ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ; org.junit.Assert.assertThat ( validator.isValid ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_QUOTA_NOT_EXIST ) ) ; }

Target:
public void testNonexistingQuota ( ) { org.mockito.Mockito.doReturn ( null ) . when ( quotaDao ) . getById ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ; org.hamcrest.MatcherAssert.assertThat ( validator.isValid ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_QUOTA_NOT_EXIST ) ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VM object ) { return ( java.lang.String.valueOf ( object.getvm_mem_size_mb ( ) ) ) + " MB" ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VM object ) { return ( java.lang.String.valueOf ( object.getVmMemSizeMb ( ) ) ) + " MB" ; }
Source:
public void testIsNetworkInSyncWhenIpv6StaticBootProtocolNetmaskEqual ( ) throws java.lang.Exception { initIpv6ConfigurationBootProtocolPrefix ( org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterfaceTest.IPV6_BOOT_PROTOCOL , true ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testIsNetworkInSyncWhenIpv6StaticBootProtocolAddressEqual ( ) { initIpv6ConfigurationBootProtocolAddress ( org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterfaceTest.IPV6_BOOT_PROTOCOL , true ) ; org.hamcrest.MatcherAssert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
public void testValidateNoUniqueId ( ) { org.mockito.Mockito.when ( host.getUniqueId ( ) ) . thenReturn ( StringUtils.EMPTY ) ; org.junit.Assert.assertThat ( validator.validateUniqueId ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.VDS_NO_UUID ) ) ; }

Target:
public void testValidateNoUniqueId ( ) { org.mockito.Mockito.when ( host.getUniqueId ( ) ) . thenReturn ( StringUtils.EMPTY ) ; org.hamcrest.MatcherAssert.assertThat ( validator.validateUniqueId ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.VDS_NO_UUID ) ) ; }
Source:
public void excuteCommandTest ( ) { command.executeCommand ( ) ; org.junit.Assert.assertEquals ( AuditLogType.USER_UPDATED_AFFINITY_GROUP , command.getAuditLogTypeValue ( ) ) ; }

Target:
public void excuteCommandTest ( ) { command.executeCommand ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( AuditLogType.USER_UPDATED_AFFINITY_GROUP , command.getAuditLogTypeValue ( ) ) ; }
Source:
public boolean isVmUp ( ) { switch ( getEntity ( ) . getStatus ( ) ) { case PoweringUp : case Up : case RebootInProgress : case PoweringDown : case Paused : return true ; default : return false ; } }

Target:
private boolean isVmRunning ( ) { switch ( getEntity ( ) . getStatus ( ) ) { case PoweringUp : case Up : case RebootInProgress : case PoweringDown : case Paused : return true ; default : return false ; } }
Source:
public void setActionParameters ( org.ovirt.engine.core.common.action.VdcActionParametersBase value ) { this . actionParameters = value ; }

Target:
public void setActionParameters ( org.ovirt.engine.core.common.action.VdcActionParametersBase value ) { this . rootCmdEntity.setCommandParameters ( value ) ; }
Source:
public void vmNotHavingVnicsValid ( ) { vmNotHavingPassthroughVnicsCommon ( vm.getId ( ) , 0 , 0 ) ; assertThatVmNotHavingPassthroughVnics ( true ) ; }

Target:
private void setVmCpuValues ( int numOfSockets , int cpuPerSocket , int threadsPerCpu ) { vm.setNumOfSockets ( numOfSockets ) ; vm.setCpuPerSocket ( cpuPerSocket ) ; vm.setThreadsPerCpu ( threadsPerCpu ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.storage.ImageTransfer updateEntity ( org.ovirt.engine.core.common.businessentities.storage.ImageTransferUpdates updates ) { return imageTransferUpdater.updateEntity ( updates , org.ovirt.engine.core.bll.storage.disk.image.UploadImageCommand.getCommandId ( ) ) ; }

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.UploadImageCommand.getCommandId ( ) , clearResourceId ) ; }
Source:
public void testGetWithInvalidId ( ) { org.ovirt.engine.core.common.businessentities.StoragePool result = dao.get ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetWithInvalidId ( ) { org.ovirt.engine.core.common.businessentities.StoragePool result = dao.get ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertNull ( result ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetPermissionByRoleIdQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getPermissionDao ( ) . getAllForRole ( org.ovirt.engine.core.bll.GetPermissionByRoleIdQuery.getParameters ( ) . getId ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetPermissionByRoleIdQuery.getQueryReturnValue ( ) . setReturnValue ( permissionDao.getAllForRole ( org.ovirt.engine.core.bll.GetPermissionByRoleIdQuery.getParameters ( ) . getId ( ) ) ) ; }
Source:
private void canDoActionFailed ( final org.ovirt.engine.core.common.errors.EngineMessage reason ) { org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; org.junit.Assert.assertTrue ( cmd.getReturnValue ( ) . getCanDoActionMessages ( ) . contains ( reason.toString ( ) ) ) ; }

Target:
private void failOnDowngradingWithStorageType ( org.ovirt.engine.core.common.businessentities.storage.StorageType storageType ) { storagePoolVersion35 ( ) ; cmd.getStoragePool ( ) . setCompatibilityVersion ( Version.v3_1 ) ; org.ovirt.engine.core.common.businessentities.StorageDomain sd = createStorageDomain ( StorageFormatType.V3 , storageType ) ; setAttachedDomains ( sd ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_STORAGE_DOMAINS_ARE_NOT_SUPPORTED_IN_DOWNGRADED_VERSION ) ; }
Source:
public void testGetNotFound ( ) { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpEntityQueryExpectations ( null ) ; try { resource.get ( ) ; org.junit.jupiter.api.Assertions.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testGetNotFound ( ) { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpEntityQueryExpectations ( null ) ; verifyNotFoundException ( org.junit.jupiter.api.Assertions.assertThrows ( javax.ws.rs.WebApplicationException.class , resource :: get ) ) ; }
Source:
private void addPermission ( org.ovirt.engine.core.compat.Guid userId , org.ovirt.engine.core.compat.Guid macPoolId ) { org.ovirt.engine.core.bll.AddMacPoolCommand.addPermission ( userId , macPoolId , PredefinedRoles.MAC_POOL_ADMIN , VdcObjectType.MacPool ) ; }

Target:
private void addPermission ( org.ovirt.engine.core.compat.Guid userId , org.ovirt.engine.core.compat.Guid macPoolId ) { org.ovirt.engine.core.bll.MultiLevelAdministrationHandler.addPermission ( userId , macPoolId , PredefinedRoles.MAC_POOL_ADMIN , VdcObjectType.MacPool ) ; }
Source:
private void updateSnapshots ( java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeSnapshotEntity > snapshots ) { getGlusterVolumeSnapshotDao ( ) . updateAllInBatch ( snapshots ) ; }

Target:
private void updateSnapshots ( java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeSnapshotEntity > snapshots ) { volumeSnapshotDao.updateAllInBatch ( snapshots ) ; }
Source:
private void AddVmDynamicToList ( org.ovirt.engine.core.common.businessentities.VmDynamic vmDynamic ) { _vmDynamicToSave.put ( vmDynamic.getId ( ) , vmDynamic ) ; }

Target:
private void addVmDynamicToList ( org.ovirt.engine.core.common.businessentities.VmDynamic vmDynamic ) { _vmDynamicToSave.put ( vmDynamic.getId ( ) , vmDynamic ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.aaa.DbUser get ( org.ovirt.engine.core.compat.Guid id ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "user_id" , id ) ; return getCallsHandler ( ) . executeRead ( "GetUserByUserId" , org.ovirt.engine.core.dao.DbUserDAODbFacadeImpl.DbUserRowMapper.instance , parameterSource ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.aaa.DbUser get ( org.ovirt.engine.core.compat.Guid id , boolean isFiltered ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "user_id" , id ) . addValue ( "is_filtered" , isFiltered ) ; return getCallsHandler ( ) . executeRead ( "GetUserByUserId" , org.ovirt.engine.core.dao.DbUserDAODbFacadeImpl.DbUserRowMapper.instance , parameterSource ) ; }
Source:
public boolean prepareConnectStorageServer ( org.ovirt.engine.core.common.action.ConnectHostToStoragePoolServersParameters parameters , java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > connections ) { return true ; }

Target:
public 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 ) { return true ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? new java.util.ArrayList < > ( ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > ) ( source ) ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > ( ) ; }

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 ) ) : null ; }
Source:
public java.lang.String getPrincipal ( java.lang.String sessionId ) { return getPrincipalName ( sessionId ) ; }

Target:
public final void setSessionValid ( java.lang.String sessionId , boolean valid ) { setData ( sessionId , org.ovirt.engine.core.bll.aaa.SessionDataContainer.SESSION_VALID_PARAMETER_NAME , valid ) ; }
Source:
public void endWithFailure ( ) { super . endWithFailure ( ) ; getEnclosingCommand ( ) . getParameters ( ) . getDiskImage ( ) . setImageStatus ( ImageStatus.ILLEGAL ) ; org.ovirt.engine.core.bll.ImagesHandler.updateImageStatus ( getEnclosingCommand ( ) . getParameters ( ) . getDestinationImageId ( ) , ImageStatus.ILLEGAL ) ; }

Target:
public void endWithFailure ( ) { super . endWithFailure ( ) ; getEnclosingCommand ( ) . getParameters ( ) . getDiskImage ( ) . setImageStatus ( ImageStatus.ILLEGAL ) ; org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.updateImageStatus ( getEnclosingCommand ( ) . getParameters ( ) . getDestinationImageId ( ) , ImageStatus.ILLEGAL ) ; }
Source:
public void testComparatorNullFst ( ) { int compared = cpComparator.compare ( null , ConsoleProtocol.RDP ) ; org.junit.Assert.assertTrue ( ( compared < 0 ) ) ; }

Target:
public void testComparatorNullFst ( ) { int compared = cpComparator.compare ( null , ConsoleProtocol.RDP ) ; org.junit.jupiter.api.Assertions.assertTrue ( ( compared < 0 ) ) ; }
Source:
public java.lang.String getId ( ) { return getLUN_id ( ) ; }

Target:
public java.lang.String getId ( ) { return getLUNId ( ) ; }
Source:
protected boolean canDoAction ( ) { M validator = getQosValidator ( getQos ( ) ) ; return ( validateParameters ( ) ) && ( validate ( validator.allValuesPresent ( ) ) ) ; }

Target:
protected boolean canDoAction ( ) { M validator = getQosValidator ( getQos ( ) ) ; return ( validateParameters ( ) ) && ( validate ( validator.requiredValuesPresent ( ) ) ) ; }
Source:
public void setPhysicalMemMb ( java.lang.Integer value ) { vdsDynamic.setPhysicalMemMb ( value ) ; }

Target:
public void setPhysicalMemMb ( java.lang.Integer value ) { vdsDynamic.setPhysicalMemMb ( value ) ; calculateFreeSchedulingMemoryCache ( ) ; }
Source:
public org.ovirt.engine.core.vdsbroker.monitoring.VmStatsRefresher create ( org.ovirt.engine.core.vdsbroker.VdsManager vdsManager ) { return org.ovirt.engine.core.di.Injector.injectMembers ( getRefresherForVds ( vdsManager ) ) ; }

Target:
public org.ovirt.engine.core.vdsbroker.monitoring.VmStatsRefresher create ( org.ovirt.engine.core.vdsbroker.VdsManager vdsManager , org.ovirt.engine.core.vdsbroker.ResourceManager resourceManager ) { return org.ovirt.engine.core.di.Injector.injectMembers ( getRefresherForVds ( vdsManager , resourceManager ) ) ; }
Source:
private org.ovirt.engine.ui.uicommonweb.UICommand getOnSaveCommand ( ) { org.ovirt.engine.ui.uicommonweb.UICommand onSaveCommand = new org.ovirt.engine.ui.uicommonweb.UICommand ( "OnSave" , this ) ; onSaveCommand.setTitle ( org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) . ok ( ) ) ; onSaveCommand.setIsDefault ( true ) ; return onSaveCommand ; }

Target:
private org.ovirt.engine.ui.uicommonweb.UICommand getOnSaveCommand ( ) { org.ovirt.engine.ui.uicommonweb.UICommand onSaveCommand = org.ovirt.engine.ui.uicommonweb.UICommand.createDefaultOkUiCommand ( "OnSave" , this ) ; return onSaveCommand ; }
Source:
protected org.ovirt.engine.api.model.Filter createPolicyUnitByType ( ) { org.ovirt.engine.api.model.Filter filter = new org.ovirt.engine.api.model.Filter ( ) ; filter.setId ( id ) ; return filter ; }

Target:
public javax.ws.rs.core.Response remove ( ) { org.ovirt.engine.core.common.scheduling.ClusterPolicy entity = parent.getClusterPolicy ( ) ; updateEntityForRemove ( entity , guid ) ; return performAction ( VdcActionType.EditClusterPolicy , new org.ovirt.engine.core.common.scheduling.parameters.ClusterPolicyCRUDParameters ( entity.getId ( ) , entity ) ) ; }
Source:
public void portIsValid ( ) { org.mockito.Mockito.when ( host.getSshPort ( ) ) . thenReturn ( BusinessEntitiesDefinitions.NETWORK_MIN_LEGAL_PORT ) ; org.junit.Assert.assertThat ( validator.portIsValid ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void portIsValid ( ) { org.mockito.Mockito.when ( host.getSshPort ( ) ) . thenReturn ( BusinessEntitiesDefinitions.NETWORK_MIN_LEGAL_PORT ) ; org.hamcrest.MatcherAssert.assertThat ( validator.portIsValid ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void updateIteration ( ) { if ( ( refreshIteration ) == ( org.ovirt.engine.core.vdsbroker.VdsManager.NUMBER_HOST_REFRESHES_BEFORE_SAVE ) ) { refreshIteration = 1 ; } else { ( refreshIteration ) ++ ; } }

Target:
private void updateIteration ( ) { if ( ( refreshIteration ) == ( NUMBER_HOST_REFRESHES_BEFORE_SAVE ) ) { refreshIteration = 1 ; } else { ( refreshIteration ) ++ ; } }
Source:
public void getVmTemplateNull ( ) { b.setVmTemplate ( null ) ; final org.ovirt.engine.core.common.businessentities.VmTemplate t = b.getVmTemplate ( ) ; org.junit.Assert.assertNull ( t ) ; }

Target:
public void getVmTemplateNull ( ) { b.setVmTemplate ( null ) ; final org.ovirt.engine.core.common.businessentities.VmTemplate t = b.getVmTemplate ( ) ; org.junit.jupiter.api.Assertions.assertNull ( t ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VmTemplate object ) { return object.getVdsGroupName ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VmTemplate object ) { return object.getClusterName ( ) ; }
Source:
public static org.ovirt.engine.core.common.action.VdcActionParametersBase eqActionParams ( java.lang.Class < ? extends org.ovirt.engine.core.common.action.VdcActionParametersBase > clz , java.lang.String [ ] names , java.lang.Object [ ] values ) { return org.mockito.ArgumentMatchers.argThat ( new org.ovirt.engine.api.restapi.test.util.TestHelper.ActionParametersEquals ( clz , names , values ) ) ; }

Target:
public static < T > T eqParams ( java.lang.Class < T > clz , java.lang.String [ ] names , java.lang.Object [ ] values ) { return org.mockito.ArgumentMatchers.argThat ( new org.ovirt.engine.api.restapi.test.util.TestHelper.ParametersEquals < > ( clz , names , values ) ) ; }
Source:
public void testStorageDomainForMemoryIsNotValidWhenItHasNoSpaceForClonedDisks ( ) { org.mockito.Mockito.when ( storageDomainValidator.hasSpaceForClonedDisks ( memoryDisks ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN ) ) ; org.junit.Assert.assertFalse ( filter.getPredicate ( memoryDisks ) . eval ( storageDomain ) ) ; }

Target:
public void testStorageDomainForMemoryIsNotValidWhenItHasNoSpaceForClonedDisks ( ) { org.mockito.Mockito.when ( storageDomainValidator.hasSpaceForClonedDisks ( memoryDisks ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN ) ) ; org.junit.Assert.assertFalse ( filter.getPredicate ( memoryDisks ) . test ( storageDomain ) ) ; }
Source:
private org.ovirt.engine.core.bll.MergeCommand < org.ovirt.engine.core.common.action.MergeParameters > getCommand ( org.ovirt.engine.core.compat.Guid cmdId ) { return org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.retrieveCommand ( cmdId ) ; }

Target:
private org.ovirt.engine.core.bll.MergeCommand < org.ovirt.engine.core.common.action.MergeParameters > getCommand ( org.ovirt.engine.core.compat.Guid cmdId ) { return commandCoordinatorUtil.retrieveCommand ( cmdId ) ; }
Source:
public void remove ( ) { if ( ( getWindow ( ) ) != null ) { return ; } org.ovirt.engine.ui.uicommonweb.models.profiles.RemoveDiskProfileModel model = new org.ovirt.engine.ui.uicommonweb.models.profiles.RemoveDiskProfileModel ( this , getSelectedItems ( ) ) ; setWindow ( model ) ; }

Target:
protected org.ovirt.engine.ui.uicommonweb.models.profiles.RemoveProfileModel < org.ovirt.engine.core.common.businessentities.profiles.DiskProfile > getRemoveProfileModel ( ) { return new org.ovirt.engine.ui.uicommonweb.models.profiles.RemoveDiskProfileModel ( this , getSelectedItems ( ) ) ; }
Source:
public void setVfsChangeability ( boolean isVfsChangeable ) { getVfsType ( ) . setIsChangable ( isVfsChangeable ) ; }

Target:
public void setVfsChangeability ( boolean isVfsChangeable ) { getVfsType ( ) . setIsChangeable ( isVfsChangeable ) ; }
Source:
public void testSubResourceLocator ( ) { java.lang.String id = java.util.UUID.nameUUIDFromBytes ( org.ovirt.engine.api.restapi.resource.BackendStatisticsResourceTest.STATISTICS [ 1 ] . getBytes ( ) ) . toString ( ) ; org.junit.Assert.assertTrue ( ( ( collection.getStatisticResource ( id ) ) instanceof org.ovirt.engine.api.resource.StatisticResource ) ) ; }

Target:
public void testSubResourceLocator ( ) { java.lang.String id = java.util.UUID.nameUUIDFromBytes ( org.ovirt.engine.api.restapi.resource.BackendStatisticsResourceTest.STATISTICS [ 1 ] . getBytes ( ) ) . toString ( ) ; org.junit.jupiter.api.Assertions.assertTrue ( ( ( collection.getStatisticResource ( id ) ) instanceof org.ovirt.engine.api.resource.StatisticResource ) ) ; }
Source:
public void setValue ( T value ) { this . value = value ; org.ovirt.engine.ui.userportal.widget.popup.console.EntityModelValueCheckbox.asCheckBox ( ) . setValue ( renderer.render ( value ) ) ; }

Target:
public void setValue ( T value ) { this . value = value ; org.ovirt.engine.ui.common.widget.uicommon.popup.console.EntityModelValueCheckbox.asCheckBox ( ) . setValue ( renderer.render ( value ) ) ; }
Source:
public void testCanDoActionImageDoesNotExist ( ) { org.mockito.Mockito.when ( getDiskImageDao ( ) . get ( getDiskImageId ( ) ) ) . thenReturn ( null ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , VdcBllMessages.ACTION_TYPE_FAILED_DISK_NOT_EXIST ) ; }

Target:
public void testCanDoActionDomainInMaintenance ( ) { getDiskStorageDomain ( ) . setStatus ( StorageDomainStatus.Maintenance ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAIN_STATUS_ILLEGAL ) ; }
Source:
public void setGrayedOutReasons ( java.util.ArrayList < java.lang.String > value ) { if ( ( grayedOutReasons ) != value ) { grayedOutReasons = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "GrayedOutReasons" ) ) ; } }

Target:
public void setGrayedOutReasons ( java.util.ArrayList < java.lang.String > value ) { if ( ( grayedOutReasons ) != value ) { grayedOutReasons = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "GrayedOutReasons" ) ) ; } }
Source:
public void execute ( ) { getTable ( ) . getSelectionModel ( ) . setSelected ( vmNetworkInterface , true ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { updateInfoPanel ( ) ; }
Source:
public org.ovirt.engine.api.model.VmPools list ( ) { if ( isFiltered ( ) ) { return mapCollection ( getBackendCollection ( VdcQueryType.GetAllVmPoolsAttachedToUser , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , SearchType.VmPools ) ) ; } else { return mapCollection ( getBackendCollection ( SearchType.VmPools ) ) ; } }

Target:
public org.ovirt.engine.api.model.VmPools list ( ) { if ( isFiltered ( ) ) { return mapCollection ( getBackendCollection ( QueryType.GetAllVmPoolsAttachedToUser , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , SearchType.VmPools ) ) ; } else { return mapCollection ( getBackendCollection ( SearchType.VmPools ) ) ; } }
Source:
public void invalidLowMTU ( ) { java.util.Set < javax.validation.ConstraintViolation < org.ovirt.engine.core.common.utils.MTUValidatorTest.MtuContainer > > validate = validate ( new org.ovirt.engine.core.common.utils.MTUValidatorTest.MtuContainer ( 30 ) ) ; org.junit.Assert.assertTrue ( ( ! ( validate.isEmpty ( ) ) ) ) ; }

Target:
public void invalidLowMTU ( ) { java.util.Set < javax.validation.ConstraintViolation < org.ovirt.engine.core.common.utils.MTUValidatorTest.MtuContainer > > validate = validate ( new org.ovirt.engine.core.common.utils.MTUValidatorTest.MtuContainer ( 30 ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( ( ! ( validate.isEmpty ( ) ) ) ) ; }
Source:
protected boolean removeVmInSpm ( org.ovirt.engine.core.compat.Guid storagePoolId , org.ovirt.engine.core.compat.Guid vmID ) { return removeVmInSpm ( storagePoolId , vmID , Guid.Empty ) ; }

Target:
protected void endVmCommand ( ) { org.ovirt.engine.core.bll.VmCommand.getVmStaticDAO ( ) . incrementDbGeneration ( org.ovirt.engine.core.bll.VmCommand.getVm ( ) . getId ( ) ) ; endActionOnDisks ( ) ; unlockVm ( ) ; org.ovirt.engine.core.bll.VmCommand.setSucceeded ( true ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VM > getAllForVdsGroup ( org.ovirt.engine.core.compat.Guid vds_group_id ) { return getCallsHandler ( ) . executeReadList ( "GetVmsByVdsGroupId" , org.ovirt.engine.core.dao.VmDaoImpl.VMRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "vds_group_id" , vds_group_id ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VM > getAllForCluster ( org.ovirt.engine.core.compat.Guid clusterId ) { return getCallsHandler ( ) . executeReadList ( "GetVmsByClusterId" , org.ovirt.engine.core.dao.VmDaoImpl.VMRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "cluster_id" , clusterId ) ) ; }
Source:
public void testGetstorage_domain_by_type_for_storagePoolId ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain result = dao.getStorageDomain ( new org.ovirt.engine.core.compat.Guid ( "6d849ebf-755f-4552-ad09-9a090cda105d" ) , StorageDomainType.Master ) ; org.junit.Assert.assertNotNull ( result ) ; assertGetResult ( result ) ; }

Target:
public void testGetStorageDomainByTypeForStoragePoolId ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain result = dao.getStorageDomain ( FixturesTool.DATA_CENTER , StorageDomainType.Master ) ; assertGetResult ( result ) ; }
Source:
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 ( ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.scheduling.AffinityGroup > getAllHardAffinityGroups ( org.ovirt.engine.core.common.businessentities.Cluster cluster ) { return affinityGroupDao.getAllAffinityGroupsByClusterId ( cluster.getId ( ) ) . stream ( ) . filter ( AffinityGroup :: isEnforcing ) . collect ( java.util.stream.Collectors.toList ( ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.storage.StorageModel storageModel = ( ( org.ovirt.engine.ui.uicommonweb.models.storage.StorageModel ) ( model ) ) ; java.lang.Iterable < org.ovirt.engine.core.common.businessentities.VDS > hosts = ( ( java.lang.Iterable < org.ovirt.engine.core.common.businessentities.VDS > ) ( returnValue ) ) ; storageModel.postUpdateHost ( hosts ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.storage.StorageModel storageModel = ( ( org.ovirt.engine.ui.uicommonweb.models.storage.StorageModel ) ( model ) ) ; java.util.Collection < org.ovirt.engine.core.common.businessentities.VDS > hosts = ( ( java.util.Collection < org.ovirt.engine.core.common.businessentities.VDS > ) ( returnValue ) ) ; storageModel.postUpdateHost ( hosts ) ; }
Source:
private void verifyAuditFenceExecutionStart ( int expectedInvocations ) { org.mockito.Mockito.verify ( auditLogDirector , org.mockito.Mockito.times ( expectedInvocations ) ) . log ( org.mockito.Matchers.any ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase.class ) , org.mockito.Matchers.eq ( AuditLogType.FENCE_OPERATION_USING_AGENT_AND_PROXY_STARTED ) ) ; }

Target:
private void verifyAuditFenceExecutionStart ( int expectedInvocations ) { org.mockito.Mockito.verify ( auditLogDirector , org.mockito.Mockito.times ( expectedInvocations ) ) . log ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase.class ) , org.mockito.ArgumentMatchers.eq ( AuditLogType.FENCE_OPERATION_USING_AGENT_AND_PROXY_STARTED ) ) ; }
Source:
protected void freeLock ( ) { if ( ( org.ovirt.engine.core.bll.pm.StopVdsCommand.getParameters ( ) . getParentCommand ( ) ) != ( org.ovirt.engine.core.common.action.VdcActionType.RestartVds ) ) { super . freeLock ( ) ; } }

Target:
protected void freeLock ( ) { if ( ( org.ovirt.engine.core.bll.pm.StopVdsCommand.getParameters ( ) . getParentCommand ( ) ) != ( org.ovirt.engine.core.common.action.ActionType.RestartVds ) ) { super . freeLock ( ) ; } }
Source:
public static boolean antiMacSpoofing ( org.ovirt.engine.core.compat.Version version ) { return org.ovirt.engine.core.common.FeatureSupported.supportedInConfig ( ConfigValues.EnableMACAntiSpoofingFilterRules , version ) ; }

Target:
public static boolean antiMacSpoofing ( org.ovirt.engine.core.compat.Version version ) { return org.ovirt.engine.core.common.FeatureSupported.supportedInConfig ( ConfigValues.MacAntiSpoofingFilterRulesSupported , version ) ; }
Source:
protected void addStorageDomainStatusIllegalMessage ( ) { addCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAIN_STATUS_ILLEGAL2 ) ; addCanDoActionMessage ( java.lang.String.format ( "$status %1$s" , getStorageDomainStatus ( ) ) ) ; }

Target:
protected void addStorageDomainStatusIllegalMessage ( ) { addCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAIN_STATUS_ILLEGAL2 ) ; addCanDoActionMessageVariable ( "status" , getStorageDomainStatus ( ) ) ; }
Source:
public boolean addAll ( java.util.Collection < ? extends T > c ) { boolean b = super . addAll ( c ) ; OnCollectionChanged ( ) ; return b ; }

Target:
public boolean addAll ( java.util.Collection < ? extends T > c ) { boolean b = super . addAll ( c ) ; onCollectionChanged ( ) ; return b ; }