auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected void setUpWindowsGetEntityExpectations ( int times , boolean notFound ) throws java.lang.Exception { setUpGetEntityExpectations ( times , notFound , new org.ovirt.engine.api.model.VM ( ) { { setId ( GUIDS [ 0 ] ) ; setVmOs ( OsRepository.DEFAULT_X86_OS ) ; } } ) ; }

Target:
protected void setUpWindowsGetEntityExpectations ( int times , boolean notFound ) throws java.lang.Exception { setUpGetEntityExpectations ( times , notFound , new org.ovirt.engine.api.restapi.resource.VM ( ) { { setId ( GUIDS [ 0 ] ) ; setVmOs ( OsRepository.DEFAULT_X86_OS ) ; } } ) ; }
Source:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; getSearchCommand ( ) . Execute ( ) ; UpdateActionAvailability ( ) ; }

Target:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; getSearchCommand ( ) . execute ( ) ; updateActionAvailability ( ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Boolean ) ( source ) ) . booleanValue ( ) : true ; }
Source:
public org.ovirt.engine.core.compat.Guid getvm_guid ( ) { return this . vm_guidField ; }

Target:
public java.util.ArrayList < java.lang.String > getVmNames ( ) { return vmNames ; }
Source:
protected java.util.List < org.ovirt.engine.api.model.Network > getEntityList ( boolean isDisplay , boolean isRequired ) { return getEntities ( isDisplay , isRequired ) ; }

Target:
protected java.util.List < org.ovirt.engine.api.model.Network > getEntityList ( boolean isDisplay , boolean isMigration , boolean isRequired ) { return getEntities ( isDisplay , isMigration , isRequired ) ; }
Source:
private void ensureDefaultOsIconExists ( ) { if ( ( osIdToIconIdMap.get ( DEFAULT_OS_ID ) ) == null ) { throw new java.lang.RuntimeException ( "Icons for default os not found." ) ; } }

Target:
private void ensureDefaultOsIconExists ( ) { if ( ( osIdToIconIdMap.get ( DEFAULT_OS_ID ) ) == null ) { throw new java.lang.RuntimeException ( "Icons for default guest OS not found." ) ; } }
Source:
private void allVfsAreFree ( boolean isValid ) { org.mockito.Mockito.when ( validator.allVfsAreFree ( org.mockito.Matchers.any ( org.ovirt.engine.core.bll.network.host.HostNicVfsConfigHelper.class ) ) ) . thenReturn ( ( isValid ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_NUM_OF_VFS_CANNOT_BE_CHANGED ) ) ) ; }

Target:
private void allVfsAreFree ( boolean isValid ) { org.mockito.Mockito.when ( validator.allVfsAreFree ( org.mockito.Matchers.any ( org.ovirt.engine.core.bll.network.host.HostNicVfsConfigHelper.class ) ) ) . thenReturn ( ( isValid ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_NUM_OF_VFS_CANNOT_BE_CHANGED ) ) ) ; }
Source:
public T getValue ( ) { return renderer.read ( org.ovirt.engine.ui.userportal.widget.popup.console.EntityModelValueCheckbox.asCheckBox ( ) . getValue ( ) , value ) ; }

Target:
public T getValue ( ) { return renderer.read ( org.ovirt.engine.ui.common.widget.uicommon.popup.console.EntityModelValueCheckbox.asCheckBox ( ) . getValue ( ) , value ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAllUpServers ( org.ovirt.engine.core.compat.Guid clusterId ) { return org.ovirt.engine.core.bll.gluster.GlusterHookCommandBase.getGlusterUtils ( ) . getAllUpServers ( clusterId ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAllUpServers ( org.ovirt.engine.core.compat.Guid clusterId ) { return glusterUtil.getAllUpServers ( clusterId ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.hosts.VfsConfigModel flush ( ) { return driver.flush ( ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.hosts.VfsConfigModel flush ( ) { networks.asEditor ( ) . flush ( ) ; return driver.flush ( ) ; }
Source:
public void testQuery ( ) { java.util.List < org.ovirt.engine.api.model.Statistic > statistics = query.getStatistics ( getDisk ( ) ) ; org.junit.Assert.assertEquals ( 5 , statistics.size ( ) ) ; for ( org.ovirt.engine.api.model.Statistic statistic : statistics ) { verifyStatistic ( statistic ) ; } }

Target:
public void testQuery ( ) { java.util.List < org.ovirt.engine.api.model.Statistic > statistics = query.getStatistics ( getDisk ( ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( 5 , statistics.size ( ) ) ; for ( org.ovirt.engine.api.model.Statistic statistic : statistics ) { verifyStatistic ( statistic ) ; } }
Source:
public static java.util.Map < java.lang.String , java.lang.Object > getVideoDeviceSpecParams ( org.ovirt.engine.core.common.businessentities.VmBase vmBase ) { return org.ovirt.engine.core.bll.utils.VideoDeviceSettings.selectVideoRAMSettings ( vmBase ) . getVideoDeviceSpecParams ( vmBase ) ; }

Target:
private static java.util.Map < java.lang.String , java.lang.Integer > getVideoDeviceSettings ( org.ovirt.engine.core.common.businessentities.VmBase vmBase ) { return org.ovirt.engine.core.bll.utils.VideoDeviceSettings.selectVideoSettings ( vmBase ) . getVideoDeviceSettings ( vmBase ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.job.Job > getJobsByCorrelationId ( java.lang.String correlationId ) { return multipleResults ( getEntityManager ( ) . createNamedQuery ( "Job.getJobsByCorrelationId" , org.ovirt.engine.core.common.job.Job.class ) . setParameter ( "correlationId" , correlationId ) ) ; }

Target:
public void deleteRunningJobsOfTasklessCommands ( ) { getCallsHandler ( ) . executeModification ( "DeleteRunningJobsOfTasklessCommands" , getCustomMapSqlParameterSource ( ) ) ; }
Source:
public void setvm_name ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.EqOp ( this . mVmStatic.getvm_name ( ) , value ) ) ) { this . mVmStatic.setvm_name ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "vm_name" ) ) ; } }

Target:
public void setVmMemSizeMb ( int value ) { this . vmStatic.setMemSizeMb ( value ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid getClusterId ( ) { org.ovirt.engine.core.compat.Guid clusterId = getEntity ( org.ovirt.engine.core.common.businessentities.VM.class , VdcQueryType.GetVmByVmId , new org.ovirt.engine.core.common.queries.GetVmByVmIdParameters ( parentId ) , "id" ) . getvds_group_id ( ) ; return clusterId ; }

Target:
protected org.ovirt.engine.core.compat.Guid getClusterId ( ) { org.ovirt.engine.core.compat.Guid clusterId = getEntity ( org.ovirt.engine.core.common.businessentities.VM.class , VdcQueryType.GetVmByVmId , new org.ovirt.engine.core.common.queries.GetVmByVmIdParameters ( parentId ) , "id" ) . getVdsGroupId ( ) ; return clusterId ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterListModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterListModel ) ( result.getState ( ) ) ) ; localModel.PostOnSaveInternal ( result.getReturnValue ( ) ) ; }

Target:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterListModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterListModel ) ( result.getState ( ) ) ) ; localModel.PostOnSaveInternal ( result.getReturnValue ( ) . get ( 0 ) ) ; }
Source:
public void postDataCenterWithClusterSelectedItemChanged ( ) { updateQuotaByCluster ( null , null ) ; }

Target:
public void postDataCenterWithClusterSelectedItemChanged ( ) { updateQuotaByCluster ( null , null ) ; updateMemoryBalloon ( ) ; }
Source:
public void testExecuteQueryUserConfigNotFiltered ( ) { assertQueryExecution ( ConfigValues.MaxVmsInPool , false , true ) ; }

Target:
public void testExecuteQueryUserConfigNotFiltered ( ) { assertQueryExecution ( ConfigValues.PredefinedVMProperties , false , true ) ; }
Source:
public void testIsNetworkInSyncWhenIpv6BootProtocolNotStaticNetmaskDifferent ( ) throws java.lang.Exception { initIpv6ConfigurationBootProtocolPrefix ( Ipv6BootProtocol.NONE , false ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testIsNetworkInSyncWhenIpv6BootProtocolNotStaticAddressDifferent ( ) { initIpv6ConfigurationBootProtocolAddress ( Ipv6BootProtocol.NONE , false ) ; org.hamcrest.MatcherAssert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { removeBricksButton.getCommand ( ) . execute ( ) ; clearSelections ( ) ; bricksTable.flush ( ) ; bricksTable.redraw ( ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { addBrickButton.getCommand ( ) . execute ( ) ; clearSelections ( ) ; }
Source:
public void validateGenerateVmNameWithoutMask3 ( ) { junit.framework.Assert.assertEquals ( "mypool-170" , org.ovirt.engine.core.utils.NameForVmInPoolGenerator.generateVmName ( "mypool" , 170 ) ) ; }

Target:
public void validateGenerateVmNameWithoutMask3 ( ) { org.ovirt.engine.core.utils.NameForVmInPoolGenerator generator = createNameForVmInPoolGenerator ( "mypool" ) ; for ( int i = 1 ; i < 101 ; ++ i ) { generator.generateVmName ( ) ; } junit.framework.Assert.assertEquals ( "mypool-101" , generator.generateVmName ( ) ) ; }
Source:
private static void assertCredentials ( org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > credentials , java.lang.String userName , java.lang.String password ) { org.junit.Assert.assertEquals ( userName , credentials.getFirst ( ) ) ; org.junit.Assert.assertEquals ( password , credentials.getSecond ( ) ) ; }

Target:
private static void assertCredentials ( org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > credentials , java.lang.String userName , java.lang.String password ) { org.junit.jupiter.api.Assertions.assertEquals ( userName , credentials.getFirst ( ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( password , credentials.getSecond ( ) ) ; }
Source:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s, masterDomainId = %s, masterVersion = %s" , super . toString ( ) , getMasterDomainId ( ) , getMasterVersion ( ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VDS getVds ( ) { return vds ; }
Source:
private void updateStoragePoolStatus ( org.ovirt.engine.core.compat.Guid poolId , org.ovirt.engine.core.common.businessentities.StoragePoolStatus status , org.ovirt.engine.core.common.AuditLogType auditLogType , org.ovirt.engine.core.common.errors.VdcBllErrors error ) { org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . getEventListener ( ) . storagePoolStatusChange ( poolId , status , auditLogType , error ) ; }

Target:
private void updateStoragePoolStatus ( org.ovirt.engine.core.compat.Guid poolId , org.ovirt.engine.core.common.businessentities.StoragePoolStatus status , org.ovirt.engine.core.common.AuditLogType auditLogType , org.ovirt.engine.core.common.errors.EngineError error ) { org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . getEventListener ( ) . storagePoolStatusChange ( poolId , status , auditLogType , error ) ; }
Source:
protected void EntityPropertyChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . EntityPropertyChanged ( sender , e ) ; behavior.EntityPropertyChanged ( e ) ; }

Target:
protected void entityPropertyChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . entityPropertyChanged ( sender , e ) ; behavior.EntityPropertyChanged ( e ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VMStatus getstatus ( ) { return this . mVmDynamic.getstatus ( ) ; }

Target:
public java.lang.String getKernelParams ( ) { return vmStatic.getkernel_params ( ) ; }
Source:
public void AddCustomValue ( final java.lang.String name , final java.lang.String value ) { customValues.put ( name.toLowerCase ( ) , value ) ; }

Target:
public void addCustomValue ( final java.lang.String name , final java.lang.String value ) { customValues.put ( name.toLowerCase ( ) , value ) ; }
Source:
public void testBuildTemplateOnSave ( ) { org.ovirt.engine.core.common.businessentities.VmTemplate template = new org.ovirt.engine.core.common.businessentities.VmTemplate ( ) ; org.ovirt.engine.ui.uicommonweb.models.templates.TemplateListModel.buildTemplateOnSave ( model , template ) ; verifyBuiltCommonVm ( template ) ; }

Target:
public void testBuildTemplateOnSave ( ) { org.ovirt.engine.core.common.businessentities.VmTemplate template = new org.ovirt.engine.core.common.businessentities.VmTemplate ( ) ; org.ovirt.engine.ui.uicommonweb.models.templates.TemplateListModel.buildTemplateOnSave ( model , template ) ; verifyBuiltTemplate ( template ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.CommandEntity > getCommandsWithCallbackEnabled ( ) { return getCommands ( true ) ; }

Target:
public java.util.List < org.ovirt.engine.core.compat.Guid > getCommandIdsByEntityId ( org.ovirt.engine.core.compat.Guid entityId ) { return commandsRepository.getCommandsCache ( ) . getCommandIdsByEntityId ( entityId ) ; }
Source:
public void setTimezone ( java.lang.String value ) { this . timezone = value ; }

Target:
public boolean isSetInitialization ( ) { return ( this . initialization ) != null ; }
Source:
private boolean isOvirtReInstallOrUpgrade ( ) { return ( org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommand.getParameters ( ) . getIsReinstallOrUpgrade ( ) ) && ( org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommand.getVds ( ) . isOvirtNode ( ) ) ; }

Target:
private boolean isOvirtReInstallOrUpgrade ( ) { return ( org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommand.getParameters ( ) . getIsReinstallOrUpgrade ( ) ) && ( org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommand.getVds ( ) . isOvirtVintageNode ( ) ) ; }
Source:
public void testValidateImageNotActiveFalse ( ) { org.mockito.Mockito.when ( diskImageDAO.get ( mockSourceImage ( ) ) ) . thenReturn ( new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ) ; org.junit.Assert.assertFalse ( "validation should succeed" , cmd.validateImageNotActive ( ) ) ; }

Target:
public void testValidateSnapshotNotActiveTrue ( ) { mockSnapshot ( SnapshotType.REGULAR ) ; org.junit.Assert.assertTrue ( "validation should succeed" , cmd.validateSnapshotType ( ) ) ; }
Source:
public void nonZeroMtuWhenNotSupported ( ) throws java.lang.Exception { mtuValidTest ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.NETWORK_MTU_OVERRIDE_NOT_SUPPORTED ) , 1 , false ) ; }

Target:
public void nonZeroMtuWhenNotSupported ( ) throws java.lang.Exception { mtuValidTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NETWORK_MTU_OVERRIDE_NOT_SUPPORTED ) , 1 , false ) ; }
Source:
protected java.lang.String getFormattedLunId ( org.ovirt.engine.core.common.businessentities.LUNs lun , java.lang.String usedByEntityName ) { return java.lang.String.format ( "%1$s (%2$s)" , lun.getLUN_id ( ) , usedByEntityName ) ; }

Target:
protected java.lang.String getFormattedLunId ( org.ovirt.engine.core.common.businessentities.storage.LUNs lun , java.lang.String usedByEntityName ) { return java.lang.String.format ( "%1$s (%2$s)" , lun.getLUN_id ( ) , usedByEntityName ) ; }
Source:
public java.lang.String getVncKeyboardLayout ( ) { return vmStatic.getVncKeyboardLayout ( ) ; }

Target:
public java.lang.String getDefaultVncKeyboardLayout ( ) { return vmStatic.getVncKeyboardLayout ( ) ; }
Source:
public static boolean isUpdateValid ( org.ovirt.engine.core.common.businessentities.VmStatic source , org.ovirt.engine.core.common.businessentities.VmStatic destination , org.ovirt.engine.core.common.businessentities.VMStatus status , boolean hotsetEnabled ) { return org.ovirt.engine.core.bll.VmHandler.updateVmsStatic.IsUpdateValid ( source , destination , status , hotsetEnabled ) ; }

Target:
public static boolean isUpdateValid ( org.ovirt.engine.core.common.businessentities.VmStatic source , org.ovirt.engine.core.common.businessentities.VmStatic destination , org.ovirt.engine.core.common.businessentities.VMStatus status , boolean hotsetEnabled ) { return source.isManagedHostedEngine ( ) ? org.ovirt.engine.core.bll.VmHandler.updateVmsStatic.isHostedEngineUpdateValid ( source , destination ) : org.ovirt.engine.core.bll.VmHandler.updateVmsStatic.IsUpdateValid ( source , destination , status , hotsetEnabled ) ; }
Source:
protected void onEntityContentChanged ( ) { super . onEntityContentChanged ( ) ; if ( ( getEntity ( ) ) != null ) { getSearchCommand ( ) . execute ( ) ; } else { setItems ( null ) ; } }

Target:
public void search ( ) { if ( ( getEntity ( ) ) != null ) { setSearchString ( ( "events: host.name=" + ( getEntity ( ) . getName ( ) ) ) ) ; super . search ( ) ; } }
Source:
public void caseSensitiveTest ( ) { org.ovirt.engine.core.compat.RpmVersion version1 = new org.ovirt.engine.core.compat.RpmVersion ( "rhev-agent-2.3.7.10.3-1.el6" , "RHEV-Agent" , false ) ; org.ovirt.engine.core.compat.RpmVersion version2 = new org.ovirt.engine.core.compat.RpmVersion ( "rhev-agent-2.3.7.10.3-1.el6" , "RHEV-Agent" , true ) ; org.junit.Assert.assertEquals ( version1 , version2 ) ; }

Target:
public void caseSensitiveTest ( ) { org.ovirt.engine.core.compat.RpmVersion version1 = new org.ovirt.engine.core.compat.RpmVersion ( "rhev-agent-2.3.7.10.3-1.el6" , "RHEV-Agent" , false ) ; org.ovirt.engine.core.compat.RpmVersion version2 = new org.ovirt.engine.core.compat.RpmVersion ( "rhev-agent-2.3.7.10.3-1.el6" , "RHEV-Agent" , true ) ; org.junit.jupiter.api.Assertions.assertEquals ( version1 , version2 ) ; }
Source:
public void setIpv4Address ( java.lang.String ipv4Address ) { this . ipv4Address = ipv4Address ; }

Target:
public void setBootProtocol ( org.ovirt.engine.core.common.businessentities.network.Ipv4BootProtocol bootProtocol ) { this . bootProtocol = ( bootProtocol == null ) ? org.ovirt.engine.core.common.businessentities.network.Ipv4BootProtocol.NONE : bootProtocol ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity > getAllWithQuery ( java.lang.String query ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity > glusterHooks = new org.springframework.jdbc.core.simple.SimpleJdbcTemplate ( jdbcTemplate ) . query ( query , org.ovirt.engine.core.dao.gluster.GlusterHooksDaoDbFacadeImpl.glusterHookRowMapper ) ; for ( org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity entity : glusterHooks ) { getGlusterServerHook ( entity , null ) ; } return glusterHooks ; }

Target:
public java.lang.String getGlusterHookContent ( org.ovirt.engine.core.compat.Guid hookId ) { java.lang.String content = getCallsHandler ( ) . executeRead ( "GetGlusterHookById" , org.ovirt.engine.core.dao.gluster.GlusterHooksDaoDbFacadeImpl.GlusterHookContentRowMapper , createIdParameterMapper ( hookId ) . addValue ( "includeContent" , true ) ) ; return content ; }
Source:
public void saveAsyncTaskToDb ( final org.ovirt.engine.core.common.businessentities.AsyncTasks asyncTask ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getAsyncTaskDao ( ) . save ( asyncTask ) ; persistCommand ( copyToCommandEntity ( asyncTask , commandsCache.get ( asyncTask.getCommandId ( ) ) ) ) ; }

Target:
public void saveAsyncTaskToDb ( final org.ovirt.engine.core.common.businessentities.AsyncTasks asyncTask ) { coCoAsyncTaskHelper.saveAsyncTaskToDb ( asyncTask ) ; }
Source:
protected void OnPropertyChanged ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . OnPropertyChanged ( e ) ; if ( e.PropertyName.equals ( "Disks" ) ) { UpdateStorageDomainsAvailability ( ) ; UpdateQuotaAvailability ( ) ; registerToEvents ( ) ; } }

Target:
protected void onPropertyChanged ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . onPropertyChanged ( e ) ; if ( e.PropertyName.equals ( "Disks" ) ) { UpdateStorageDomainsAvailability ( ) ; UpdateQuotaAvailability ( ) ; registerToEvents ( ) ; } }
Source:
private boolean checkForChanges ( ) { final org.ovirt.engine.core.common.businessentities.VdsDynamic host = vdsDynamicDao.get ( org.ovirt.engine.core.bll.network.host.PersistentHostSetupNetworksCommand.getVdsId ( ) ) ; final java.lang.Boolean netConfigDirty = host.getNetConfigDirty ( ) ; return ! ( java.lang.Boolean.FALSE.equals ( netConfigDirty ) ) ; }

Target:
private boolean checkForChanges ( ) { final org.ovirt.engine.core.common.businessentities.VdsDynamic host = vdsDynamicDao.get ( org.ovirt.engine.core.bll.network.host.PersistentHostSetupNetworksCommand.getVdsId ( ) ) ; final java.lang.Boolean netConfigDirty = host.getNetConfigDirty ( ) ; return java.lang.Boolean.TRUE.equals ( netConfigDirty ) ; }
Source:
protected void initQueryParams ( org.ovirt.engine.core.common.queries.VdcQueryParametersBase queryParams , java.lang.String sessionId ) { queryParams.setSessionId ( sessionId ) ; queryParams.setFiltered ( filterQueries ( ) ) ; }

Target:
protected void initQueryParams ( org.ovirt.engine.core.common.queries.QueryParametersBase queryParams , java.lang.String sessionId ) { queryParams.setSessionId ( sessionId ) ; queryParams.setFiltered ( filterQueries ( ) ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.MainModelProvider < org.ovirt.engine.core.common.businessentities.EngineSession , org.ovirt.engine.ui.uicommonweb.models.SessionListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.sessionMainTabLabel ( ) , 1 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.MainModelProvider < org.ovirt.engine.core.common.businessentities.EngineSession , org.ovirt.engine.ui.uicommonweb.models.SessionListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.MainTabSessionPresenter.constants.sessionMainTabLabel ( ) , 1 , modelProvider ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.VDSGroup createVdsGroupWithDifferentName ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup group = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; group.setName ( "BadName" ) ; group.setCompatibilityVersion ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.VERSION_1_1 ) ; return group ; }

Target:
private static org.ovirt.engine.core.common.businessentities.Cluster createClusterWithDifferentName ( ) { org.ovirt.engine.core.common.businessentities.Cluster group = new org.ovirt.engine.core.common.businessentities.Cluster ( ) ; group.setName ( "BadName" ) ; group.setCompatibilityVersion ( org.ovirt.engine.core.bll.UpdateClusterCommandTest.VERSION_1_1 ) ; return group ; }
Source:
public static java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getMemoryBalloons ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.dao.getVmDeviceByVmIdAndType ( vmId , VmDeviceGeneralType.BALLOON ) ; }

Target:
public static java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getMemoryBalloons ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.vmDeviceDao.getVmDeviceByVmIdAndType ( vmId , VmDeviceGeneralType.BALLOON ) ; }
Source:
private void addLogMessages ( org.ovirt.engine.core.common.action.VdcReturnValueBase returnValueBase ) { if ( ! ( returnValueBase.getSucceeded ( ) ) ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( this , AuditLogType.NUMA_UPDATE_VM_NUMA_NODE_FAILED ) ; } }

Target:
private void addLogMessages ( org.ovirt.engine.core.common.action.VdcReturnValueBase returnValueBase ) { if ( ! ( returnValueBase.getSucceeded ( ) ) ) { auditLogDirector.log ( this , AuditLogType.NUMA_UPDATE_VM_NUMA_NODE_FAILED ) ; } }
Source:
public void testRemoveNonExistant ( ) { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( 1 , false ) ; try { resource.remove ( ) ; org.junit.jupiter.api.Assertions.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testRemoveNonExistant ( ) { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( 1 , false ) ; verifyNotFoundException ( org.junit.jupiter.api.Assertions.assertThrows ( javax.ws.rs.WebApplicationException.class , ( ) -> org.ovirt.engine.api.restapi.resource.resource.remove ( ) ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatusDetailForXmlRpc glusterVolumeGeoRepStatusDetail ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName ) ;

Target:
org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatusForXmlRpc glusterVolumeGeoRepSessionList ( java.lang.String volumeName ) ;
Source:
public java.lang.String getValue ( java.lang.Object object ) { return java.lang.String.valueOf ( ( ( org.ovirt.engine.core.common.businessentities.VM ) ( object ) ) . getNumOfCpus ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.OriginType getRawValue ( java.lang.Object object ) { return ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData ) ( object ) ) . getVm ( ) . getOrigin ( ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.network.Network getManagementNetwork ( org.ovirt.engine.core.compat.Guid clusterId ) { return getNetworkDao ( ) . getManagementNetwork ( clusterId ) ; }

Target:
public boolean isManagementNetwork ( org.ovirt.engine.core.compat.Guid networkId , org.ovirt.engine.core.compat.Guid clusterId ) { final org.ovirt.engine.core.common.businessentities.network.NetworkCluster networkCluster = networkClusterDao.get ( new org.ovirt.engine.core.common.businessentities.network.NetworkClusterId ( clusterId , networkId ) ) ; return ( networkCluster != null ) && ( networkCluster.isManagement ( ) ) ; }
Source:
public void reportCompleted ( ) { try { super . reportCompleted ( ) ; } finally { decreasePendingVms ( getVdsDestinationId ( ) ) ; org.ovirt.engine.core.bll.MigrateVmCommand.freeLock ( ) ; } }

Target:
protected org.ovirt.engine.core.compat.Guid getCurrentVdsId ( ) { org.ovirt.engine.core.compat.Guid destinationVdsId = getDestinationVdsId ( ) ; return destinationVdsId != null ? destinationVdsId : super . getCurrentVdsId ( ) ; }
Source:
protected org.ovirt.engine.api.model.Host deprecatedPopulate ( org.ovirt.engine.api.model.Host model , org.ovirt.engine.core.common.businessentities.VDS entity ) { org.ovirt.engine.api.model.Host host = parent.addStatistics ( model , entity , uriInfo , httpHeaders ) ; parent.addCertificateInfo ( host ) ; return host ; }

Target:
public org.ovirt.engine.api.model.Host get ( ) { if ( isForce ( ) ) { performAction ( VdcActionType.RefreshHostCapabilities , new org.ovirt.engine.core.common.action.VdsActionParameters ( guid ) ) ; } org.ovirt.engine.api.model.Host host = performGet ( VdcQueryType.GetVdsByVdsId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; deprecatedAddLinksToAgents ( host ) ; return host ; }
Source:
public void markAsInvalid ( java.util.List < java.lang.String > validationHints ) { valid = false ; getValidatedWidgetStyle ( ) . setBorderColor ( "red" ) ; }

Target:
public void markAsInvalid ( java.util.List < java.lang.String > validationHints ) { valid = false ; if ( usePatternfly ) { addStyleName ( org.ovirt.engine.ui.common.widget.AbstractValidatedWidget.HAS_ERROR ) ; } else { getValidatedWidgetStyle ( ) . setBorderColor ( "red" ) ; } }
Source:
public void vnicCreated ( org.ovirt.engine.core.compat.Guid vmId ) { getWindow ( ) . stopProgress ( ) ; cancel ( ) ; updateActionsAvailability ( ) ; }

Target:
public void vnicCreated ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel unitVmModel ) { getWindow ( ) . stopProgress ( ) ; cancel ( ) ; updateActionsAvailability ( ) ; executeDiskModifications ( vmId , unitVmModel ) ; }
Source:
protected void setUpQueryExpectations ( java.lang.String query , java.lang.Object failure ) throws java.lang.Exception { setUpEntityQueryExpectations ( QueryType.GetAllBookmarks , org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , org.ovirt.engine.api.restapi.resource.BackendBookmarksResourceTest.setUpBookmarks ( ) , failure ) ; }

Target:
protected void setUpQueryExpectations ( java.lang.String query , java.lang.Object failure ) throws java.lang.Exception { setUpEntityQueryExpectations ( QueryType.GetAllBookmarks , org.ovirt.engine.core.common.queries.QueryParametersBase.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , org.ovirt.engine.api.restapi.resource.BackendBookmarksResourceTest.setUpBookmarks ( ) , failure ) ; }
Source:
private boolean isImageDiskOK ( org.ovirt.engine.core.common.businessentities.storage.Disk disk ) { return ( ( disk.getDiskStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.Disk.DiskStorageType.IMAGE ) ) && ( ( ( ( org.ovirt.engine.core.common.businessentities.DiskImage ) ( disk ) ) . getImageStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.ImageStatus.OK ) ) ; }

Target:
private boolean isImageDiskOK ( org.ovirt.engine.core.common.businessentities.storage.Disk disk ) { return ( ( disk.getDiskStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.DiskStorageType.IMAGE ) ) && ( ( ( ( org.ovirt.engine.core.common.businessentities.storage.DiskImage ) ( disk ) ) . getImageStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.ImageStatus.OK ) ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { disk.getDiskStorageType ( ) . setEntity ( DiskStorageType.IMAGE ) ; revealDiskPanel ( disk ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { disk.getDiskStorageType ( ) . setEntity ( DiskStorageType.CINDER ) ; revealDiskPanel ( disk ) ; }
Source:
private static org.ovirt.engine.core.common.action.VdcReturnValueBase createSuccessVdcReturnValue ( ) { org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue = new org.ovirt.engine.core.common.action.VdcReturnValueBase ( ) ; returnValue.setSucceeded ( true ) ; return returnValue ; }

Target:
private static org.ovirt.engine.core.common.action.ActionReturnValue createSuccessActionReturnValue ( ) { org.ovirt.engine.core.common.action.ActionReturnValue returnValue = new org.ovirt.engine.core.common.action.ActionReturnValue ( ) ; returnValue.setSucceeded ( true ) ; return returnValue ; }
Source:
public java.lang.String getVerb ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op1 ) { return "Break Bond " + ( op1.getName ( ) ) ; }

Target:
public java.lang.String getVerb ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op1 ) { return org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getMessages ( ) . breakBond ( op1.getName ( ) ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { org.mockito.Mockito.doReturn ( "http://localhost:8080/ovirt-engine/sso/credentials-change.html" ) . when ( testServlet ) . getCredentialsChangeUrl ( org.mockito.ArgumentMatchers.any ( ) ) ; testServlet.setBackend ( mockBackend ) ; testServlet.init ( mockBrandingManager , "/ovirt-engine" ) ; mockBackendQuery ( VdcQueryType.GetConfigurationValue , "oVirtVersion" ) ; org.mockito.Mockito.when ( mockBrandingManager.getBrandingThemes ( ) ) . thenReturn ( new java.util.ArrayList < > ( ) ) ; org.mockito.Mockito.when ( mockBrandingManager.getWelcomeSections ( org.mockito.ArgumentMatchers.any ( java.util.Locale.class ) ) ) . thenReturn ( "Welcome Section HTML" ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { org.mockito.Mockito.doReturn ( "http://localhost:8080/ovirt-engine/sso/credentials-change.html" ) . when ( testServlet ) . getCredentialsChangeUrl ( org.mockito.ArgumentMatchers.any ( ) ) ; testServlet.setBackend ( mockBackend ) ; testServlet.init ( mockBrandingManager , "/ovirt-engine" ) ; mockBackendQuery ( VdcQueryType.GetConfigurationValue , "oVirtVersion" ) ; org.mockito.Mockito.when ( mockBrandingManager.getWelcomeSections ( org.mockito.ArgumentMatchers.any ( java.util.Locale.class ) ) ) . thenReturn ( "Welcome Section HTML" ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.Model setIsChangeable ( boolean value , java.lang.String reason ) { setIsChangeable ( value ) ; if ( ! value ) { setChangeProhibitionReason ( reason ) ; } return this ; }

Target:
public java.util.Map < java.lang.String , org.ovirt.engine.ui.uicommonweb.models.Model > getConfirmWindowProperties ( ) { java.util.Map < java.lang.String , org.ovirt.engine.ui.uicommonweb.models.Model > map = new java.util.HashMap < > ( ) ; map.put ( org.ovirt.engine.ui.uicommonweb.models.Model.PROP_CONFIRM_WINDOW , getConfirmWindow ( ) ) ; return map ; }
Source:
protected java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runInternalMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , org.ovirt.engine.core.bll.job.ExecutionContext executionContext ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalMultipleActions ( actionType , parameters , executionContext ) ; }

Target:
protected org.ovirt.engine.core.common.queries.VdcQueryReturnValue runInternalQuery ( org.ovirt.engine.core.common.queries.VdcQueryType type , org.ovirt.engine.core.common.queries.VdcQueryParametersBase queryParams ) { return getBackend ( ) . runInternalQuery ( type , queryParams ) ; }
Source:
public void testIsNetworkInSyncWhenIpv6StaticBootProtocolNetmaskEqual ( ) { 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 testIsNetworkInSyncWhenIpv6StaticBootProtocolNetmaskEqual ( ) { initIpv6ConfigurationBootProtocolPrefix ( org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterfaceTest.IPV6_BOOT_PROTOCOL , true ) ; org.hamcrest.MatcherAssert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
protected org.ovirt.engine.ui.common.widget.table.SimpleActionTable < org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel > createActionTable ( ) { return new org.ovirt.engine.ui.userportal.widget.table.column.UserPortalSimpleActionTable < org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel > ( modelProvider , org.ovirt.engine.ui.userportal.section.main.view.tab.extended.SideTabExtendedVirtualMachineView.vmTableResources , org.ovirt.engine.ui.userportal.gin.ClientGinjectorProvider.instance ( ) . getEventBus ( ) , org.ovirt.engine.ui.userportal.gin.ClientGinjectorProvider.instance ( ) . getClientStorage ( ) ) ; }

Target:
protected com.google.gwt.user.cellview.client.CellTable.Resources getTableResources ( ) { return org.ovirt.engine.ui.userportal.section.main.view.tab.extended.SideTabExtendedVirtualMachineView.vmTableResources ; }
Source:
protected void setActionMessageParameters ( ) { super . setActionMessageParameters ( ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__AUTHENTICATION_KEY ) ; }

Target:
protected void setActionMessageParameters ( ) { super . setActionMessageParameters ( ) ; addCanDoActionMessage ( EngineMessage.VAR__TYPE__AUTHENTICATION_KEY ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { boolean isAutoAssign = object.getIsAutoAssign ( ) . getEntity ( ) ; defaultHostEditor.setEnabled ( ( ! isAutoAssign ) ) ; specificHost.setValue ( ( ! isAutoAssign ) ) ; }

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 ) { updateCloudInitVisibility ( object ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { performLogin ( loginModel ) ; }

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 ) { commonModelProvider.get ( ) . updateReportsAvailability ( ) ; }
Source:
protected void setUpQueryExpectations ( java.lang.String query ) { org.junit.Assert.assertEquals ( "" , query ) ; setUpGetEntityExpectations ( true ) ; }

Target:
protected void setUpQueryExpectations ( java.lang.String query ) { org.junit.jupiter.api.Assertions.assertEquals ( "" , query ) ; setUpGetEntityExpectations ( true ) ; }
Source:
public void testUnfilteredGetAllWithNoPermissions ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > result = dao.getAll ( org.ovirt.engine.core.dao.network.UNPRIVILEGED_USER_ID , false ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }

Target:
public void testUnfilteredGetAllWithNoPermissions ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > result = dao.getAll ( org.ovirt.engine.core.dao.network.UNPRIVILEGED_USER_ID , false ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertFalse ( result.isEmpty ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.Permissions asPermission ( ) { return new org.ovirt.engine.core.common.businessentities.Permissions ( getad_element_id ( ) , getrole_id ( ) , getObjectId ( ) , getObjectType ( ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.Permissions asPermission ( ) { return new org.ovirt.engine.core.common.businessentities.Permissions ( getAdElementId ( ) , getRoleId ( ) , getObjectId ( ) , getObjectType ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.storage.DiskImage mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { org.ovirt.engine.core.common.businessentities.storage.DiskImage entity = super . mapRow ( rs , rowNum ) ; mapEntity ( rs , entity ) ; return entity ; }

Target:
public org.ovirt.engine.core.common.businessentities.storage.CinderDisk mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { org.ovirt.engine.core.common.businessentities.storage.CinderDisk cinderDisk = super . mapRow ( rs , rowNum ) ; org.ovirt.engine.core.dao.DiskImageDAODbFacadeImpl.DiskImageRowMapper.instance.mapEntity ( rs , cinderDisk ) ; mapEntity ( rs , cinderDisk ) ; return cinderDisk ; }
Source:
public void run ( ) { org.ovirt.engine.core.bll.network.MacPoolManager.getInstance ( ) . initialize ( ) ; }

Target:
public void run ( ) { org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolPerDcSingleton.getInstance ( ) . initialize ( ) ; }
Source:
public void setSearchStringPrefix ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( searchStringPrefix , value ) ) ) { searchStringPrefix = value ; SearchStringPrefixChanged ( ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "SearchStringPrefix" ) ) ; } }

Target:
public void setSearchStringPrefix ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( searchStringPrefix , value ) ) ) { searchStringPrefix = value ; searchStringPrefixChanged ( ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "SearchStringPrefix" ) ) ; } }
Source:
public static void persistCommand ( org.ovirt.engine.core.compat.Guid commandId , org.ovirt.engine.core.compat.Guid rootCommandId , org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase params , org.ovirt.engine.core.compat.CommandStatus status , boolean enableCallBack ) { org.ovirt.engine.core.bll.tasks.TaskManagerUtil.coco.persistCommand ( commandId , rootCommandId , actionType , params , status , enableCallBack ) ; }

Target:
public static java.util.List < org.ovirt.engine.core.compat.Guid > getChildCommandIds ( org.ovirt.engine.core.compat.Guid commandId ) { return org.ovirt.engine.core.bll.tasks.TaskManagerUtil.coco.getChildCommandIds ( commandId ) ; }
Source:
protected void verifyModel ( org.ovirt.engine.api.model.StorageConnection model , int index ) { org.junit.Assert.assertEquals ( GUIDS [ index ] . toString ( ) , model.getId ( ) ) ; verifyLinks ( model ) ; }

Target:
protected void verifyModel ( org.ovirt.engine.api.model.StorageConnection model , int index ) { org.junit.jupiter.api.Assertions.assertEquals ( GUIDS [ index ] . toString ( ) , model.getId ( ) ) ; verifyLinks ( model ) ; }
Source:
public java.lang.String getProductKey ( int osId , org.ovirt.engine.core.compat.Version version ) ;

Target:
boolean isBalloonEnabled ( int osId , org.ovirt.engine.core.compat.Version version ) ;
Source:
private static org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator mockStorageDomainValidatorWithoutSpace ( ) { org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator storageDomainValidator = org.ovirt.engine.core.bll.AddDiskCommandTest.mockStorageDomainValidator ( ) ; org.mockito.Mockito.when ( storageDomainValidator.hasSpaceForNewDisk ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.DiskImage.class ) ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN ) ) ; return storageDomainValidator ; }

Target:
private static org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator mockStorageDomainValidatorWithoutSpace ( ) { org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator storageDomainValidator = org.ovirt.engine.core.bll.AddDiskCommandTest.mockStorageDomainValidator ( ) ; org.mockito.Mockito.when ( storageDomainValidator.hasSpaceForNewDisk ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.storage.DiskImage.class ) ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN ) ) ; return storageDomainValidator ; }
Source:
public void testValidateNetworkExclusiveOnNicsAllAttachmentsMustHaveNicNameSet ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.NetworkAttachment networkAttachment = createNetworkAttachment ( vmNetwork1 ) ; java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > attachmentsToConfigure = java.util.Arrays.asList ( networkAttachment ) ; expectedException.expect ( java.lang.IllegalArgumentException.class ) ; new org.ovirt.engine.core.bll.validator.NetworkAttachmentsValidator ( attachmentsToConfigure , networkMap ) . validateNetworkExclusiveOnNics ( ) ; }

Target:
public void testValidateNetworkExclusiveOnNicsAllAttachmentsMustHaveNicNameSet ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.NetworkAttachment networkAttachment = createNetworkAttachment ( vmNetwork1 ) ; java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > attachmentsToConfigure = java.util.Collections.singletonList ( networkAttachment ) ; expectedException.expect ( java.lang.IllegalArgumentException.class ) ; new org.ovirt.engine.core.bll.validator.NetworkAttachmentsValidator ( attachmentsToConfigure , networkMap ) . validateNetworkExclusiveOnNics ( ) ; }
Source:
private static org.ovirt.engine.core.bll.validator.RunVmValidator getRunVmValidator ( ) { return new org.ovirt.engine.core.bll.validator.RunVmValidator ( ) ; }

Target:
private static org.ovirt.engine.core.bll.validator.RunVmValidator getRunVmValidator ( ) { return org.ovirt.engine.core.bll.VmPoolCommandBase.runVmValidator ; }
Source:
private void baseTestGetTreeForEntityFiltered ( org.ovirt.engine.core.compat.Guid entityID , org.ovirt.engine.core.common.VdcObjectType objectType , org.ovirt.engine.core.compat.Guid userID , boolean isFiltered , org.ovirt.engine.core.compat.Guid ... alternativeObjectIds ) { java.util.List < org.ovirt.engine.core.common.businessentities.Permissions > result = dao.getTreeForEntity ( entityID , objectType , userID , isFiltered ) ; assertGetTreeForEntityResult ( entityID , result , alternativeObjectIds ) ; }

Target:
private void baseTestGetTreeForEntityFiltered ( org.ovirt.engine.core.compat.Guid entityID , org.ovirt.engine.core.common.VdcObjectType objectType , long sessionId , boolean isFiltered , org.ovirt.engine.core.compat.Guid ... alternativeObjectIds ) { java.util.List < org.ovirt.engine.core.common.businessentities.Permissions > result = dao.getTreeForEntity ( entityID , objectType , sessionId , isFiltered ) ; assertGetTreeForEntityResult ( entityID , result , alternativeObjectIds ) ; }
Source:
public boolean addAll ( int index , java.util.Collection < ? extends T > c ) { boolean b = super . addAll ( index , c ) ; OnCollectionChanged ( ) ; return b ; }

Target:
public boolean addAll ( int index , java.util.Collection < ? extends T > c ) { boolean b = super . addAll ( index , c ) ; onCollectionChanged ( ) ; return b ; }
Source:
public static java.lang.String format ( java.lang.String pattern , java.lang.Object ... args ) { java.lang.String message = new org.ovirt.engine.core.compat.FormatterJava ( ) . format ( pattern , args ) . toString ( ) ; org.ovirt.engine.core.compat.StringFormat.log.infoFormat ( "Formatting Java pattern: {0} With result: {1}" , pattern , message ) ; return message ; }

Target:
public static java.lang.String format ( java.lang.String pattern , java.lang.Object ... args ) { java.lang.String message = new org.ovirt.engine.core.compat.FormatterJava ( ) . format ( pattern , args ) . toString ( ) ; org.ovirt.engine.core.compat.StringFormat.log.debugFormat ( "Formatting Java pattern: {0} With result: {1}" , pattern , message ) ; return message ; }
Source:
protected java.util.List < java.lang.String > missingServerCpuFlags ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return org.ovirt.engine.core.bll.CpuFlagsManagerHandler.missingServerCpuFlags ( org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getcpu_name ( ) , vds.getCpuFlags ( ) , org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getcompatibility_version ( ) ) ; }

Target:
protected boolean checkIfCpusExist ( ) { return org.ovirt.engine.core.bll.CpuFlagsManagerHandler.checkIfCpusExist ( org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getCpuName ( ) , org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getCompatibilityVersion ( ) ) ; }
Source:
protected org.ovirt.engine.api.model.DiskProfile get ( ) { return performGet ( VdcQueryType.GetDiskProfileById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; }

Target:
protected org.ovirt.engine.api.model.DiskProfile get ( ) { return performGet ( QueryType.GetDiskProfileById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; }