auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void vnicProfileNameTakenBySameVnicProfile ( ) throws java.lang.Exception { vnicProfileAvailableTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , getSingletonNamedVnicProfileList ( DEFAULT_VNIC_PROFILE_NAME , DEFAULT_GUID ) ) ; }

Target:
public void vnicProfileNameTakenBySameVnicProfile ( ) throws java.lang.Exception { vnicProfileAvailableTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.getSingletonNamedVnicProfileList ( org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_VNIC_PROFILE_NAME , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_GUID ) ) ; }
Source:
public static void terminate ( ) throws java.lang.Exception { if ( ( org.ovirt.engine.core.uutils.ssh.SSHDialogTest.s_sshd ) != null ) { org.ovirt.engine.core.uutils.ssh.SSHDialogTest.s_sshd.stop ( ) ; } }

Target:
public static void terminate ( ) throws java.lang.Exception { if ( ( org.ovirt.engine.core.uutils.ssh.SSHDialogTest.sshd ) != null ) { org.ovirt.engine.core.uutils.ssh.SSHDialogTest.sshd.stop ( ) ; } }
Source:
public java.lang.Void runInTransaction ( ) { org.ovirt.engine.core.bll.ImagesHandler.removeLunDisk ( ( ( org.ovirt.engine.core.common.businessentities.LunDisk ) ( getDisk ( ) ) ) ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { org.ovirt.engine.core.bll.ImagesHandler.removeLunDisk ( ( ( org.ovirt.engine.core.common.businessentities.storage.LunDisk ) ( getDisk ( ) ) ) ) ; return null ; }
Source:
protected void verify ( org.ovirt.engine.api.model.QoS model , org.ovirt.engine.api.model.QoS transform ) { super . verify ( model , transform ) ; assertEquals ( model.getCpuLimit ( ) , transform.getCpuLimit ( ) ) ; }

Target:
protected void verify ( org.ovirt.engine.api.model.Qos model , org.ovirt.engine.api.model.Qos transform ) { super . verify ( model , transform ) ; assertEquals ( model.getCpuLimit ( ) , transform.getCpuLimit ( ) ) ; }
Source:
public void validateSucceedsOnVolumeWithRemoveBricksTaskCompleted ( ) { setVolumeId ( volumeWithRemoveBricksTaskCompleted ) ; org.junit.Assert.assertTrue ( cmd.validate ( ) ) ; }

Target:
public void validateSucceedsOnVolumeWithRemoveBricksTaskCompleted ( ) { setVolumeId ( volumeWithRemoveBricksTaskCompleted ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( cmd ) ; }
Source:
protected void addItemText ( java.lang.Object item ) { org.ovirt.engine.core.common.businessentities.Permissions permissions = ( ( org.ovirt.engine.core.common.businessentities.Permissions ) ( item ) ) ; addItemLabel ( messages.roleOnUser ( permissions.getRoleName ( ) , permissions.getOwnerName ( ) ) ) ; }

Target:
protected void addItemText ( java.lang.Object item ) { org.ovirt.engine.core.common.businessentities.Permission permissions = ( ( org.ovirt.engine.core.common.businessentities.Permission ) ( item ) ) ; addItemLabel ( messages.roleOnUser ( permissions.getRoleName ( ) , permissions.getOwnerName ( ) ) ) ; }
Source:
public org.ovirt.engine.core.bll.provider.ProviderProxy getProviderProxy ( ) { if ( ( providerProxy ) == null ) { providerProxy = org.ovirt.engine.core.bll.provider.ProviderProxyFactory.getInstance ( ) . create ( getProvider ( ) ) ; } return providerProxy ; }

Target:
public org.ovirt.engine.core.bll.provider.ProviderProxy getProviderProxy ( ) { if ( ( providerProxy ) == null ) { providerProxy = providerProxyFactory.create ( getProvider ( ) ) ; } return providerProxy ; }
Source:
public void testgetAllInterfacesByClusterId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > interfaces = dao.getAllInterfacesByClusterId ( org.ovirt.engine.core.dao.network.InterfaceDaoTest.CLUSTER_ID ) ; org.junit.Assert.assertNotNull ( interfaces ) ; org.junit.Assert.assertFalse ( interfaces.isEmpty ( ) ) ; }

Target:
public void testgetAllInterfacesByClusterId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > interfaces = dao.getAllInterfacesByClusterId ( org.ovirt.engine.core.dao.network.InterfaceDaoImplTest.CLUSTER_ID ) ; org.junit.Assert.assertNotNull ( interfaces ) ; org.junit.Assert.assertFalse ( interfaces.isEmpty ( ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult notRemovingManagementNetwork ( ) { return createNetworkValidator ( ) . notRemovingManagementNetwork ( ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult networkExists ( ) { return getNetworkValidator ( ) . networkIsSet ( ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.QuotaEnforcementTypeEnum getQuotaEnforcementType ( ) { return this . mVmStatic.getQuotaEnforcementType ( ) ; }

Target:
public int getNumOfMonitors ( ) { return this . vmStatic.getNumOfMonitors ( ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.Permission , org.ovirt.engine.ui.uicommonweb.models.storage.StorageListModel , org.ovirt.engine.ui.uicommonweb.models.configure.PermissionListModel < org.ovirt.engine.core.common.businessentities.StorageDomain > > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.storage.SubTabStoragePermissionPresenter.constants.storagePermissionSubTabLabel ( ) , 10 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.Permission , org.ovirt.engine.ui.uicommonweb.models.storage.StorageListModel , org.ovirt.engine.ui.uicommonweb.models.configure.PermissionListModel < org.ovirt.engine.core.common.businessentities.StorageDomain > > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.storage.SubTabStoragePermissionPresenter.constants.storagePermissionSubTabLabel ( ) , 11 , modelProvider ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult clusterNotChanged ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.VDS_CANNOT_UPDATE_CLUSTER ) . unless ( oldHost.getVdsGroupId ( ) . equals ( getHost ( ) . getVdsGroupId ( ) ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult clusterNotChanged ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.VDS_CANNOT_UPDATE_CLUSTER ) . unless ( oldHost.getVdsGroupId ( ) . equals ( getHost ( ) . getVdsGroupId ( ) ) ) ; }
Source:
public void testCloneFromTemplateWithClonePermissionsClone ( ) throws java.lang.Exception { org.ovirt.engine.api.model.VM model = createModel ( createDisksCollection ( ) ) ; model.setPermissions ( new org.ovirt.engine.api.model.Permissions ( ) ) ; model.getPermissions ( ) . setClone ( true ) ; doTestCloneFromTemplateWithClonePermissions ( model , true ) ; }

Target:
public void testCloneFromTemplateWithClonePermissionsDontClone ( ) throws java.lang.Exception { doTestCloneFromTemplateWithClonePermissions ( createModel ( createDisksCollection ( ) ) , false ) ; }
Source:
public static void AddVdsAlert ( org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.common.AuditLogType type , org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector auditLogDirector ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AlertDirector.AddVdsAlert ( vdsId , type , auditLogDirector , new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ) ; }

Target:
public static void addVdsAlert ( org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.common.AuditLogType type , org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector auditLogDirector ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AlertDirector.addVdsAlert ( vdsId , type , auditLogDirector , new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ) ; }
Source:
public void canDoActionSucceeds ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.UpdateGlusterHookCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterHookManageParameters ( HOOK_ID ) ) ) ; setUpMocksForUpdate ( ) ; org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }

Target:
public void validateSucceeds ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.UpdateGlusterHookCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterHookManageParameters ( HOOK_ID ) ) ) ; setUpMocksForUpdate ( ) ; org.junit.Assert.assertTrue ( cmd.validate ( ) ) ; }
Source:
private org.ovirt.engine.core.compat.Guid getMacPoolId ( org.ovirt.engine.core.compat.Guid dataCenterId ) { final org.ovirt.engine.core.common.businessentities.StoragePool storagePool = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStoragePoolDao ( ) . get ( dataCenterId ) ; return storagePool == null ? null : storagePool.getMacPoolId ( ) ; }

Target:
private org.ovirt.engine.core.compat.Guid getMacPoolId ( org.ovirt.engine.core.compat.Guid clusterId ) { final org.ovirt.engine.core.common.businessentities.Cluster cluster = clusterDao.get ( clusterId ) ; return cluster == null ? null : cluster.getMacPoolId ( ) ; }
Source:
public org.ovirt.engine.api.model.SchedulingPolicies list ( ) { java.util.List < org.ovirt.engine.core.common.scheduling.ClusterPolicy > SchedulingPolicys = getBackendCollection ( QueryType.GetClusterPolicies , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ; return mapCollection ( SchedulingPolicys ) ; }

Target:
public org.ovirt.engine.api.model.SchedulingPolicies list ( ) { java.util.List < org.ovirt.engine.core.common.scheduling.ClusterPolicy > SchedulingPolicys = getBackendCollection ( QueryType.GetClusterPolicies , new org.ovirt.engine.core.common.queries.QueryParametersBase ( ) ) ; return mapCollection ( SchedulingPolicys ) ; }
Source:
public void updateStatus ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.common.businessentities.VmTemplateStatus status ) { getCallsHandler ( ) . executeModification ( "UpdateVmTemplateStatus" , getCustomMapSqlParameterSource ( ) . addValue ( "vmt_guid" , id ) . addValue ( "status" , status ) ) ; }

Target:
protected org.springframework.jdbc.core.namedparam.MapSqlParameterSource createIdParameterMapper ( org.ovirt.engine.core.compat.Guid id ) { return getCustomMapSqlParameterSource ( ) . addValue ( "vmt_guid" , id ) ; }
Source:
public java.lang.String getCurrentSsoSessionUser ( javax.servlet.http.HttpServletRequest request , javax.servlet.http.HttpServletResponse response , java.lang.String token ) { return "admin@internal" ; }

Target:
public java.lang.String getCurrentSsoSessionUser ( javax.servlet.http.HttpServletRequest request , java.util.Map < java.lang.String , java.lang.Object > userInfoMap ) { return "admin@internal" ; }
Source:
public org.ovirt.engine.api.model.Method adapt ( org.ovirt.engine.api.v3.types.V3Method from ) { org.ovirt.engine.api.model.Method to = new org.ovirt.engine.api.model.Method ( ) ; if ( from.isSetId ( ) ) { to.setId ( org.ovirt.engine.api.model.SsoMethod.valueOf ( from.getId ( ) ) ) ; } return to ; }

Target:
public org.ovirt.engine.api.model.Method adapt ( org.ovirt.engine.api.v3.types.V3Method from ) { org.ovirt.engine.api.model.Method to = new org.ovirt.engine.api.model.Method ( ) ; if ( from.isSetId ( ) ) { to.setId ( org.ovirt.engine.api.model.SsoMethod.fromValue ( from.getId ( ) ) ) ; } return to ; }
Source:
public void validateGenerateVmNameMaskInside ( ) { junit.framework.Assert.assertEquals ( "my001pool" , org.ovirt.engine.core.utils.NameForVmInPoolGenerator.generateVmName ( "my???pool" . replace ( '?' , VmPool.MASK_CHARACTER ) , 1 ) ) ; }

Target:
public void validateGenerateVmNameMaskInside ( ) { org.ovirt.engine.core.utils.NameForVmInPoolGenerator generator = createNameForVmInPoolGenerator ( "my???pool" ) ; org.junit.Assert.assertEquals ( "my001pool" , generator.generateVmName ( ) ) ; }
Source:
public java.util.List < java.lang.Boolean > readBooleans ( ) { return readStrings ( ) . stream ( ) . map ( this :: parseBoolean ) . collect ( java.util.stream.Collectors.toList ( ) ) ; }

Target:
public java.util.List < java.lang.Boolean > readBooleans ( ) { java.util.List < java.lang.Boolean > booleans = new java.util.ArrayList < > ( ) ; for ( java.lang.String string : readStrings ( ) ) { booleans.add ( parseBoolean ( string ) ) ; } return booleans ; }
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 typeName ) { return ( org.ovirt.engine.core.common.utils.VmDeviceCommonUtils.findVmDeviceByType ( vmManagedDeviceMap , typeName ) ) != null ; }

Target:
public static boolean isVmDeviceExists ( java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.VmDevice > vmManagedDeviceMap , org.ovirt.engine.core.common.businessentities.VmDeviceGeneralType generalType ) { return ( org.ovirt.engine.core.common.utils.VmDeviceCommonUtils.findVmDeviceByGeneralType ( vmManagedDeviceMap , generalType ) ) != null ; }
Source:
protected void initSelectedType ( ) { getNicType ( ) . setSelectedItem ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . getDefaultNicType ( getNicType ( ) . getItems ( ) ) ) ; }

Target:
protected void initSelectedType ( ) { getNicType ( ) . setSelectedItem ( getDeafultNicTypeByProfile ( ) ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcActionParametersBase getTaskParameters ( ) { return cmdEntity.getActionParameters ( ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcActionParametersBase getTaskParameters ( ) { return cmdEntity.getCommandParameters ( ) ; }
Source:
private org.ovirt.engine.core.bll.ValidationResult attachmentsDontReferenceSameNetworkDuplicately ( java.util.Collection < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > attachments ) { return new org.ovirt.engine.core.bll.validator.NetworkAttachmentsValidator ( attachments , networkBusinessEntityMap ) . verifyUserAttachmentsDoesNotReferenceSameNetworkDuplicately ( ) ; }

Target:
private org.ovirt.engine.core.bll.ValidationResult attachmentsDontReferenceSameNetworkDuplicately ( java.util.Collection < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > attachments ) { return new org.ovirt.engine.core.bll.validator.NetworkAttachmentsValidator ( attachments , networkBusinessEntityMap , networkExclusivenessValidator ) . verifyUserAttachmentsDoesNotReferenceSameNetworkDuplicately ( ) ; }
Source:
protected void onSelectedItemChanged ( ) { super . onSelectedItemChanged ( ) ; updateActionAvailability ( ) ; getBrickListModel ( ) . updateRemoveBrickActionsAvailability ( ( ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity ) ( provideDetailModelEntity ( getSelectedItem ( ) ) ) ) ) ; }

Target:
protected void onSelectedItemChanged ( ) { super . onSelectedItemChanged ( ) ; updateActionAvailability ( ) ; getBrickListModel ( ) . setVolumeEntity ( ( ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity ) ( provideDetailModelEntity ( getSelectedItem ( ) ) ) ) ) ; }
Source:
protected static org.dbunit.dataset.IDataSet initDataSet ( ) throws java.lang.Exception { return new org.dbunit.dataset.xml.XmlDataSet ( org.ovirt.engine.core.dao.BaseDaoTestCase.class . getResourceAsStream ( "/fixtures.xml" ) ) ; }

Target:
protected static org.dbunit.dataset.IDataSet initDataSet ( ) throws java.lang.Exception { org.dbunit.dataset.xml.FlatXmlDataSetBuilder builder = new org.dbunit.dataset.xml.FlatXmlDataSetBuilder ( ) ; builder.setColumnSensing ( true ) ; return builder.build ( org.ovirt.engine.core.dao.BaseDaoTestCase.class . getResourceAsStream ( "/fixtures.xml" ) ) ; }
Source:
public void update ( org.ovirt.engine.core.common.businessentities.async_tasks task ) { org.ovirt.engine.core.dao.AsyncTaskDAODbFacadeImpl.logNullParameters ( task ) ; org.ovirt.engine.core.dao.AsyncTaskDAODbFacadeImpl.AsyncTaskParameterSource parameterSource = getTaskParameterSource ( task ) ; getCallsHandler ( ) . executeModification ( "Updateasync_tasks" , parameterSource ) ; }

Target:
public void update ( org.ovirt.engine.core.common.businessentities.AsyncTasks task ) { org.ovirt.engine.core.dao.AsyncTaskDAODbFacadeImpl.logNullParameters ( task ) ; org.ovirt.engine.core.dao.AsyncTaskDAODbFacadeImpl.AsyncTaskParameterSource parameterSource = getTaskParameterSource ( task ) ; getCallsHandler ( ) . executeModification ( "Updateasync_tasks" , parameterSource ) ; }
Source:
private void Cluster_SelectedItemChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { behavior.Cluster_SelectedItemChanged ( ) ; UpdateMaximalVmMemSize ( ) ; }

Target:
private void timeZone_SelectedItemChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { }
Source:
public void testTemplate ( ) { testValidSql ( "Template: " , "SELECT * FROM ((SELECT vm_templates_view.* FROM vm_templates_view ) ORDER BY name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "Template: hosts.name = fake1" , "SELECT * FROM ((SELECT vm_templates_view.* FROM vm_templates_view LEFT OUTER JOIN vms_with_tags ON vm_templates_view.vmt_guid=vms_with_tags.vmt_guid LEFT OUTER JOIN vds_with_tags ON vms_with_tags.run_on_vds=vds_with_tags.vds_id WHERE vds_with_tags.vds_name LIKE fake1 ) ORDER BY name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "Templates: storage.name = 111" , "SELECT * FROM (SELECT * FROM vm_templates_view WHERE ( vmt_guid IN (SELECT vm_templates_storage_domain.vmt_guid FROM vm_templates_storage_domain LEFT OUTER JOIN vms_with_tags ON vm_templates_storage_domain.vmt_guid=vms_with_tags.vmt_guid LEFT OUTER JOIN storage_domains_with_hosts_view ON vm_templates_storage_domain.storage_id=storage_domains_with_hosts_view.id WHERE storage_domains_with_hosts_view.storage_name LIKE 111 )) ORDER BY name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; }

Target:
public void testTemplate ( ) { testValidSql ( "Template: " , "SELECT * FROM ((SELECT distinct vm_templates_view.* FROM vm_templates_view ) ORDER BY name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "Template: hosts.name = fake1" , "SELECT * FROM ((SELECT distinct vm_templates_view.* FROM vm_templates_view LEFT OUTER JOIN vms_with_tags ON vm_templates_view.vmt_guid=vms_with_tags.vmt_guid LEFT OUTER JOIN vds_with_tags ON vms_with_tags.run_on_vds=vds_with_tags.vds_id WHERE vds_with_tags.vds_name LIKE fake1 ) ORDER BY name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "Templates: storage.name = 111" , "SELECT * FROM (SELECT * FROM vm_templates_view WHERE ( vmt_guid IN (SELECT distinct vm_templates_storage_domain.vmt_guid FROM vm_templates_storage_domain LEFT OUTER JOIN vms_with_tags ON vm_templates_storage_domain.vmt_guid=vms_with_tags.vmt_guid LEFT OUTER JOIN storage_domains_with_hosts_view ON vm_templates_storage_domain.storage_id=storage_domains_with_hosts_view.id WHERE storage_domains_with_hosts_view.storage_name LIKE 111 )) ORDER BY name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; }
Source:
public void canDoActionSucceedsOnDiskDomainCheckWhenStorageGuidInParamsMatches ( ) throws java.lang.Exception { org.ovirt.engine.core.compat.Guid storageId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; initializeCommand ( storageId ) ; mockVmWithDisk ( storageId ) ; mockStorageDomain ( storageId ) ; mockStoragePoolIsoMap ( ) ; mockInterfaceList ( ) ; mockMaxPciSlots ( ) ; runAndAssertCanDoActionSuccess ( ) ; }

Target:
public void validateSucceedsOnDiskDomainCheckWhenStorageGuidInParamsMatches ( ) throws java.lang.Exception { org.ovirt.engine.core.compat.Guid storageId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; initializeCommand ( storageId ) ; mockVmWithDisk ( storageId ) ; mockStorageDomain ( storageId ) ; mockStoragePoolIsoMap ( ) ; mockInterfaceList ( ) ; mockMaxPciSlots ( ) ; runAndAssertValidateSuccess ( ) ; }
Source:
public org.ovirt.engine.api.resource.ActionResource getActionSubresource ( java.lang.String action ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendActionResource ( action , "" ) ) ; }

Target:
public org.ovirt.engine.api.resource.ActionResource getActionResource ( java.lang.String action ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendActionResource ( action , "" ) ) ; }
Source:
public void testHasPeersTrue ( ) { org.junit.Assert.assertTrue ( glusterUtil.hasPeers ( client ) ) ; }

Target:
public void testHasPeersTrue ( ) { org.junit.Assert.assertNotNull ( glusterUtil.getPeers ( client ) ) ; org.junit.Assert.assertEquals ( 2 , glusterUtil.getPeers ( client ) . size ( ) ) ; }
Source:
public final java.lang.String guideUrl ( ) { return formatString ( org.ovirt.engine.ui.common.utils.DynamicMessages.DynamicMessageKey.GUIDE_URL , com.google.gwt.i18n.client.LocaleInfo.getCurrentLocale ( ) . getLocaleName ( ) ) ; }

Target:
protected java.lang.String getCurrentLocaleAsString ( ) { return com.google.gwt.i18n.client.LocaleInfo.getCurrentLocale ( ) . getLocaleName ( ) ; }
Source:
public void nameIsEmpty ( ) { org.mockito.Mockito.when ( host.getName ( ) ) . thenReturn ( "" ) ; org.junit.Assert.assertThat ( validator.nameNotEmpty ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_NAME_MAY_NOT_BE_EMPTY ) ) ; }

Target:
public void nameIsEmpty ( ) { org.mockito.Mockito.when ( host.getName ( ) ) . thenReturn ( "" ) ; org.hamcrest.MatcherAssert.assertThat ( validator.nameNotEmpty ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_NAME_MAY_NOT_BE_EMPTY ) ) ; }
Source:
protected void verify ( org.ovirt.engine.api.model.Qos model , org.ovirt.engine.api.model.Qos transform ) { super . verify ( model , transform ) ; org.junit.Assert.assertEquals ( model.getCpuLimit ( ) , transform.getCpuLimit ( ) ) ; }

Target:
protected void verify ( org.ovirt.engine.api.model.Qos model , org.ovirt.engine.api.model.Qos transform ) { super . verify ( model , transform ) ; org.junit.jupiter.api.Assertions.assertEquals ( model.getCpuLimit ( ) , transform.getCpuLimit ( ) ) ; }
Source:
public java.lang.String exportTemplate ( org.ovirt.engine.core.common.businessentities.VmTemplate vmTemplate , java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > images , org.ovirt.engine.core.compat.Version version ) { org.ovirt.engine.core.utils.ovf.OvfWriter ovf = new org.ovirt.engine.core.utils.ovf.OvfTemplateWriter ( vmTemplate , images , version ) ; buildOvf ( ovf ) ; return ovf.getStringRepresentation ( ) ; }

Target:
public java.lang.String exportTemplate ( org.ovirt.engine.core.common.businessentities.VmTemplate vmTemplate , java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > images , org.ovirt.engine.core.compat.Version version ) { return new org.ovirt.engine.core.utils.ovf.OvfTemplateWriter ( vmTemplate , images , version ) . build ( ) . getStringRepresentation ( ) ; }
Source:
public void testValidName ( ) { prepareVmToPassCanDoAction ( ) ; mockVmValidator ( ) ; command.initEffectiveCompatibilityVersion ( ) ; boolean c = command.canDoAction ( ) ; org.junit.Assert.assertTrue ( "canDoAction should have passed." , c ) ; }

Target:
public void testValidName ( ) { prepareVmToPassValidate ( ) ; mockVmValidator ( ) ; command.initEffectiveCompatibilityVersion ( ) ; boolean c = command.validate ( ) ; org.junit.Assert.assertTrue ( "validate should have passed." , c ) ; }
Source:
public void canDoActionFailsConnectionAlreadyUsed ( ) { org.mockito.Mockito.when ( sdDao.getAllByConnectionId ( connId ) ) . thenReturn ( java.util.Collections.singletonList ( new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_CONNECTION_BELONGS_TO_SEVERAL_STORAGE_DOMAINS ) ; }

Target:
public void canDoActionFailsConnectionAlreadyUsed ( ) { org.mockito.Mockito.when ( sdDao.getAllByConnectionId ( connId ) ) . thenReturn ( java.util.Collections.singletonList ( new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_STORAGE_CONNECTION_BELONGS_TO_SEVERAL_STORAGE_DOMAINS ) ; }
Source:
public void getUsbPolicyUsbTypeNative ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; usb.setType ( UsbType.NATIVE ) ; assertEquals ( UsbPolicy.ENABLED_NATIVE , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) ) ; }

Target:
public void getUsbPolicyNullUsb ( ) { org.ovirt.engine.api.model.Usb usb = null ; org.junit.Assert.assertEquals ( UsbPolicy.DISABLED , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) ) ; }
Source:
public void WriteStartDocument ( boolean b ) { }

Target:
public void writeStartDocument ( boolean b ) { }
Source:
public void validHaScoreTerm ( ) { org.junit.Assert.assertTrue ( underTest.validateFieldValue ( "ha_score" , "0" ) ) ; org.junit.Assert.assertTrue ( underTest.validateFieldValue ( "ha_score" , "3400" ) ) ; }

Target:
public void validHaScoreTerm ( ) { org.junit.jupiter.api.Assertions.assertTrue ( underTest.validateFieldValue ( "ha_score" , "0" ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( underTest.validateFieldValue ( "ha_score" , "3400" ) ) ; }
Source:
public static java.security.KeyStore getTrustStore ( ) { return org.ovirt.engine.core.utils.crypt.EngineEncryptionUtils._getKeyStore ( "JKS" , org.ovirt.engine.core.utils.crypt.EngineEncryptionUtils.truststoreFile , org.ovirt.engine.core.utils.crypt.EngineEncryptionUtils.truststorePassword.getPassword ( ) ) ; }

Target:
public static java.security.KeyStore getTrustStore ( ) { return org.ovirt.engine.core.utils.crypt.EngineEncryptionUtils._getKeyStore ( org.ovirt.engine.core.utils.crypt.EngineEncryptionUtils.truststoreType , org.ovirt.engine.core.utils.crypt.EngineEncryptionUtils.truststoreFile , org.ovirt.engine.core.utils.crypt.EngineEncryptionUtils.truststorePassword.getPassword ( ) ) ; }
Source:
public java.lang.String getMessage ( ) { return message ; }

Target:
public java.lang.String getMessage ( ) { if ( message.equals ( "Done" ) ) { return "" ; } else { return message ; } }
Source:
public void testGetFilterByInvalidId ( ) { final org.ovirt.engine.core.common.businessentities.network.NetworkFilter actualNetworkFilter = dao.getNetworkFilterById ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertNull ( actualNetworkFilter ) ; }

Target:
public void testGetFilterByInvalidId ( ) { final org.ovirt.engine.core.common.businessentities.network.NetworkFilter actualNetworkFilter = dao.getNetworkFilterById ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.jupiter.api.Assertions.assertNull ( actualNetworkFilter ) ; }
Source:
protected org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel createModel ( org.ovirt.engine.ui.uicommonweb.models.vms.VmModelBehaviorBase behavior ) { return new org.ovirt.engine.ui.uicommonweb.models.pools.PoolModel ( behavior ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VDSGroup getSelectedCluster ( ) { return cluster ; }
Source:
public void nonZeroMtuWhenNotSupported ( ) throws java.lang.Exception { mtuValidTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( 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 ( EngineMessage.NETWORK_MTU_OVERRIDE_NOT_SUPPORTED ) , 1 , false ) ; }
Source:
public java.lang.Object call ( ) throws java.lang.Exception { if ( ( ( java.lang.Boolean ) ( _parser.cliEnvironmentGet ( VdsmEnv.OVIRT_NODE ) ) ) ) { _messages.post ( InstallerMessages.Severity.INFO , "Host is ovirt-node" ) ; _setNode ( ) ; } return null ; }

Target:
public java.lang.Object call ( ) throws java.lang.Exception { if ( ( ( java.lang.Boolean ) ( _parser.cliEnvironmentGet ( VdsmEnv.OVIRT_NODE ) ) ) ) { _messages.post ( InstallerMessages.Severity.INFO , "Host is hypervisor" ) ; _setNode ( ) ; } return null ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.QuotaVdsGroup > getQuotaVdsGroupByVdsGroupGuid ( org.ovirt.engine.core.compat.Guid vdsGroupId , org.ovirt.engine.core.compat.Guid quotaId , boolean allowEmpty ) ;

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.QuotaCluster > getQuotaClusterByClusterGuid ( org.ovirt.engine.core.compat.Guid clusterId , org.ovirt.engine.core.compat.Guid quotaId , boolean allowEmpty ) ;
Source:
public synchronized org.ovirt.engine.core.compat.Guid CreateTask ( org.ovirt.engine.core.common.asynctasks.AsyncTaskType taskType , org.ovirt.engine.core.common.asynctasks.AsyncTaskParameters taskParameters ) { org.ovirt.engine.core.bll.SPMAsyncTask task = org.ovirt.engine.core.bll.AsyncTaskFactory.Construct ( taskType , taskParameters ) ; AddTaskToManager ( task ) ; return task == null ? org.ovirt.engine.core.compat.Guid.Empty : task.getTaskID ( ) ; }

Target:
public synchronized void lockAndAddTaskToManager ( org.ovirt.engine.core.bll.SPMAsyncTask task ) { addTaskToManager ( task ) ; }
Source:
org.ovirt.engine.core.vdsbroker.irsbroker.StorageDomainGuidListReturnForXmlRpc getImageDomainsList ( java.lang.String spUUID , java.lang.String imgUUID ) ;

Target:
org.ovirt.engine.core.vdsbroker.irsbroker.OneUuidReturnForXmlRpc extendVolumeSize ( java.lang.String spUUID , java.lang.String sdUUID , java.lang.String imageUUID , java.lang.String volumeUUID , java.lang.String newSize ) ;
Source:
public java.lang.String getOvirtEnginePortalAddress ( ) { return this . ovirtEnginePortalAddress ; }

Target:
public java.util.Date getLastStatisticsUpdate ( ) { return this . lastStatisticsUpdate ; }
Source:
public static boolean isUpdateValid ( org.ovirt.engine.core.common.businessentities.VmTemplate source , org.ovirt.engine.core.common.businessentities.VmTemplate destination ) { return org.ovirt.engine.core.bll.VmTemplateHandler.mUpdateVmTemplate.IsUpdateValid ( source , destination ) ; }

Target:
public static boolean isUpdateValid ( org.ovirt.engine.core.common.businessentities.VmTemplate source , org.ovirt.engine.core.common.businessentities.VmTemplate destination ) { return org.ovirt.engine.core.bll.VmTemplateHandler.updateVmTemplate.IsUpdateValid ( source , destination ) ; }
Source:
private void updateDiskStatus ( org.ovirt.engine.core.common.businessentities.storage.ImageStatus status ) { org.ovirt.engine.core.bll.storage.repoimage.ImportRepoImageCommand.getParameters ( ) . getDiskImage ( ) . setImageStatus ( status ) ; org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.updateImageStatus ( org.ovirt.engine.core.bll.storage.repoimage.ImportRepoImageCommand.getParameters ( ) . getDestinationImageId ( ) , status ) ; }

Target:
private void updateDiskStatus ( org.ovirt.engine.core.common.businessentities.storage.ImageStatus status ) { org.ovirt.engine.core.bll.storage.repoimage.ImportRepoImageCommand.getParameters ( ) . getDiskImage ( ) . setImageStatus ( status ) ; imagesHandler.updateImageStatus ( org.ovirt.engine.core.bll.storage.repoimage.ImportRepoImageCommand.getParameters ( ) . getDestinationImageId ( ) , status ) ; }
Source:
public void getUsbPolicyUsbTypeNative ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; usb.setType ( UsbType.NATIVE ) ; assertEquals ( UsbPolicy.ENABLED_NATIVE , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) ) ; }

Target:
public void getUsbPolicyUsbTypeNative ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; usb.setType ( UsbType.NATIVE ) ; org.junit.Assert.assertEquals ( UsbPolicy.ENABLED_NATIVE , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) ) ; }
Source:
private void setEnableSearchHost ( boolean value ) { getProviderSearchFilter ( ) . setIsChangable ( value ) ; getProviderSearchFilterLabel ( ) . setIsChangable ( value ) ; getUpdateHostsCommand ( ) . setIsExecutionAllowed ( value ) ; }

Target:
private void setEnableSearchHost ( boolean value ) { getProviderSearchFilter ( ) . setIsChangeable ( value ) ; getProviderSearchFilterLabel ( ) . setIsChangeable ( value ) ; getUpdateHostsCommand ( ) . setIsExecutionAllowed ( value ) ; }
Source:
protected java.lang.Long getRawValue ( org.ovirt.engine.core.common.businessentities.DiskImage object ) { return object.getSize ( ) ; }

Target:
protected java.lang.Long getRawValue ( org.ovirt.engine.core.common.businessentities.storage.DiskImage object ) { return object.getSize ( ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.storage.Disk , org.ovirt.engine.ui.uicommonweb.models.storage.StorageListModel , org.ovirt.engine.ui.uicommonweb.models.storage.StorageSnapshotListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.snapshotsLabel ( ) , 8 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.storage.Disk , org.ovirt.engine.ui.uicommonweb.models.storage.StorageListModel , org.ovirt.engine.ui.uicommonweb.models.storage.StorageSnapshotListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.storage.SubTabStorageSnapshotPresenter.constants.snapshotsLabel ( ) , 8 , modelProvider ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.vms.ExternalVm vm ) { return vm.getStatus ( ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { model.loadVmsFromVmware ( ) ; }
Source:
public void canDoActionFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.RemoveGlusterServerCommand ( new org.ovirt.engine.core.common.action.gluster.RemoveGlusterServerParameters ( org.ovirt.engine.core.bll.gluster.RemoveGlusterServerCommandTest.CLUSTER_ID , null , false ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }

Target:
public void validateFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.RemoveGlusterServerCommand ( new org.ovirt.engine.core.common.action.gluster.RemoveGlusterServerParameters ( org.ovirt.engine.core.bll.gluster.RemoveGlusterServerCommandTest.CLUSTER_ID , null , false ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
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.action.VdcReturnValueBase runInternalActionWithTasksContext ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { return runInternalActionWithTasksContext ( actionType , parameters , null ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VDSGroup getVdsGroup ( ) { return super . getVdsGroup ( ) ; }

Target:
private boolean verifyDisksIfNeeded ( ) { if ( ( ! ( getParameters ( ) . isImportAsNewEntity ( ) ) ) && ( ! ( org.ovirt.engine.core.bll.ImportVmCommand.isImagesAlreadyOnTarget ( ) ) ) ) { return checkIfDisksExist ( imageList ) ; } return true ; }
Source:
private org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity getSingleBrickVolume ( org.ovirt.engine.core.compat.Guid volumeId ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity volume = getGlusterVolume ( volumeId ) ; volume.setStatus ( GlusterVolumeStatus.UP ) ; volume.setBricks ( getBricks ( volumeId , 1 ) ) ; volume.setClusterId ( CLUSTER_ID ) ; return volume ; }

Target:
private org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity getSingleBrickVolume ( org.ovirt.engine.core.compat.Guid volumeId ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity volume = getGlusterVolume ( volumeId ) ; volume.setStatus ( GlusterStatus.UP ) ; volume.setBricks ( getBricks ( volumeId , 1 ) ) ; volume.setClusterId ( CLUSTER_ID ) ; return volume ; }
Source:
protected void addInvalidIdErrorMessages ( org.ovirt.engine.core.common.errors.EngineMessage messageActionTypeParameter ) { addErrorMessages ( messageActionTypeParameter , EngineMessage.ACTION_TYPE_FAILED_BOOKMARK_INVALID_ID ) ; }

Target:
public void setActionMessageParameters ( ) { addValidationMessage ( EngineMessage.VAR__TYPE__BOOKMARK ) ; }
Source:
protected boolean validate ( ) { if ( ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getBookmarkDao ( ) . getByName ( org.ovirt.engine.core.bll.AddBookmarkCommand.getBookmark ( ) . getName ( ) ) ) != null ) { addErrorMessages ( EngineMessage.VAR__ACTION__ADD , EngineMessage.ACTION_TYPE_FAILED_NAME_ALREADY_USED ) ; return false ; } return true ; }

Target:
public void setActionMessageParameters ( ) { super . setActionMessageParameters ( ) ; addValidationMessage ( EngineMessage.VAR__ACTION__ADD ) ; }
Source:
java.util.Map < java.lang.String , java.lang.String > allocate ( org.ovirt.engine.core.common.businessentities.network.Network network , org.ovirt.engine.core.common.businessentities.network.VmNic nic ) ;

Target:
java.util.Map < java.lang.String , java.lang.String > allocate ( org.ovirt.engine.core.common.businessentities.network.Network network , org.ovirt.engine.core.common.businessentities.network.VnicProfile vnicProfile , org.ovirt.engine.core.common.businessentities.network.VmNic nic ) ;
Source:
private void assertCorrectSlaveCountInValidBondsWhenInsufficientBonds ( int numberOfSlaves ) { assertCorrectSlaveCountInValidBonds ( numberOfSlaves , java.lang.String.format ( "bonded interface with only %1$d slaves is not valid bond" , numberOfSlaves ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NETWORK_BONDS_INVALID_SLAVE_COUNT ) ) ; }

Target:
private void assertCorrectSlaveCountInValidBondsWhenInsufficientBonds ( int numberOfSlaves ) { assertCorrectSlaveCountInValidBonds ( numberOfSlaves , java.lang.String.format ( "bonded interface with only %1$d slaves is not valid bond" , numberOfSlaves ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.NETWORK_BONDS_INVALID_SLAVE_COUNT ) ) ; }
Source:
private void hidePoolSpecificFields ( ) { numOfVmsEditor.setVisible ( false ) ; newPoolEditVmsPanel.setVisible ( false ) ; editPoolEditVmsPanel.setVisible ( false ) ; editPoolIncraseNumOfVmsPanel.setVisible ( false ) ; }

Target:
private void hidePoolSpecificFields ( ) { numOfVmsEditor.setVisible ( false ) ; newPoolEditVmsPanel.setVisible ( false ) ; newPoolEditMaxAssignedVmsPerUserPanel.setVisible ( false ) ; editPoolEditVmsPanel.setVisible ( false ) ; editPoolIncraseNumOfVmsPanel.setVisible ( false ) ; editPoolEditMaxAssignedVmsPerUserPanel.setVisible ( false ) ; }
Source:
public java.lang.String toString ( ) { return java.lang.String.format ( "HostId = %s" , getVdsId ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.utils.ToStringBuilder appendAttributes ( org.ovirt.engine.core.common.utils.ToStringBuilder tsb ) { return super . appendAttributes ( tsb ) . append ( "hostId" , getVdsId ( ) ) ; }
Source:
public void ExecuteCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { com.google.gwt.user.cellview.client.TreeNode expandNode = findNode ( display.getRootTreeNode ( ) , modelProvider.getSelectionModel ( ) . getSelectedObject ( ) ) ; if ( expandNode != null ) { expandTree ( expandNode ) ; } }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { com.google.gwt.user.cellview.client.TreeNode expandNode = findNode ( display.getRootTreeNode ( ) , modelProvider.getSelectionModel ( ) . getSelectedObject ( ) ) ; if ( expandNode != null ) { expandTree ( expandNode ) ; } }
Source:
public java.lang.Integer getVmPid ( ) { return this . vmDynamic.getVmPid ( ) ; }

Target:
public java.lang.Integer getPid ( ) { return this . vmDynamic.getPid ( ) ; }
Source:
protected void childCommandsExecutionEnded ( org.ovirt.engine.core.bll.CommandBase < ? > command , boolean anyFailed , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds , org.ovirt.engine.core.compat.backendcompat.CommandExecutionStatus status , int completedChildren ) { }

Target:
protected void childCommandsExecutionEnded ( org.ovirt.engine.core.bll.CommandBase < ? > command , boolean anyFailed , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds , org.ovirt.engine.core.compat.backendcompat.CommandExecutionStatus status , int completedChildren ) { setCommandEndStatus ( command , anyFailed , status , childCmdIds ) ; }
Source:
protected boolean setAndValidateCpuProfile ( ) { return validate ( cpuProfileHelper.setAndValidateCpuProfile ( org.ovirt.engine.core.bll.VmManagementCommandBase.getParameters ( ) . getVm ( ) . getStaticData ( ) , org.ovirt.engine.core.bll.VmManagementCommandBase.getUserId ( ) ) ) ; }

Target:
protected boolean setAndValidateCpuProfile ( ) { return validate ( cpuProfileHelper.setAndValidateCpuProfile ( org.ovirt.engine.core.bll.VmManagementCommandBase.getParameters ( ) . getVm ( ) . getStaticData ( ) , org.ovirt.engine.core.bll.VmManagementCommandBase.getUserIdIfExternal ( ) . orElse ( null ) ) ) ; }
Source:
private boolean areDisksLocked ( org.ovirt.engine.core.common.action.VdcReturnValueBase vdcReturnValue ) { return vdcReturnValue.getCanDoActionMessages ( ) . contains ( EngineMessage.ACTION_TYPE_FAILED_DISKS_LOCKED.name ( ) ) ; }

Target:
private boolean areDisksLocked ( org.ovirt.engine.core.common.action.VdcReturnValueBase vdcReturnValue ) { return vdcReturnValue.getValidationMessages ( ) . contains ( EngineMessage.ACTION_TYPE_FAILED_DISKS_LOCKED.name ( ) ) ; }
Source:
protected void removeCommand ( ) { javax.transaction.Transaction transaction = org.ovirt.engine.core.utils.transaction.TransactionSupport.suspend ( ) ; try { org.ovirt.engine.core.bll.tasks.TaskManagerUtil.removeCommand ( getCommandId ( ) ) ; } finally { org.ovirt.engine.core.utils.transaction.TransactionSupport.resume ( transaction ) ; } }

Target:
protected void removeCommand ( ) { javax.transaction.Transaction transaction = org.ovirt.engine.core.utils.transaction.TransactionSupport.suspend ( ) ; try { org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.removeCommand ( getCommandId ( ) ) ; } finally { if ( transaction != null ) { org.ovirt.engine.core.utils.transaction.TransactionSupport.resume ( transaction ) ; } } }
Source:
public void testQueryFail ( ) { setUpEmptyQueryExpectations ( ) ; org.junit.Assert.assertEquals ( 0 , getCollection ( ) . size ( ) ) ; }

Target:
public void testQueryFail ( ) { setUpEmptyQueryExpectations ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( 0 , getCollection ( ) . size ( ) ) ; }
Source:
public void testCanDoActionImageDoesNotExist ( ) { org.mockito.Mockito.doReturn ( null ) . when ( cmd ) . getDisk ( ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_DISK_NOT_EXIST ) ; }

Target:
public void testValidateImageDoesNotExist ( ) { org.mockito.Mockito.doReturn ( null ) . when ( cmd ) . getDisk ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_DISK_NOT_EXIST ) ; }
Source:
protected void updateLastHeartbeat ( ) { this . lastHeartbeat = java.lang.System.currentTimeMillis ( ) ; }

Target:
protected void updateLastIncomingHeartbeat ( ) { this . lastIncomingHeartbeat = java.lang.System.currentTimeMillis ( ) ; }
Source:
private static org.ovirt.engine.core.bll.validator.StorageDomainValidator mockStorageDomainValidatorWithoutSpace ( ) { org.ovirt.engine.core.bll.validator.StorageDomainValidator storageDomainValidator = org.ovirt.engine.core.bll.MoveOrCopyDiskCommandTest.mockStorageDomainValidator ( ) ; org.mockito.Mockito.when ( storageDomainValidator.hasSpaceForClonedDisk ( 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 mockStorageDomainValidatorWithSpace ( ) { org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator storageDomainValidator = org.ovirt.engine.core.bll.MoveOrCopyDiskCommandTest.mockStorageDomainValidator ( ) ; org.mockito.Mockito.when ( storageDomainValidator.hasSpaceForClonedDisk ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.DiskImage.class ) ) ) . thenReturn ( ValidationResult.VALID ) ; return storageDomainValidator ; }
Source:
public org.ovirt.engine.core.bll.tasks.SPMAsyncTask createTask ( org.ovirt.engine.core.common.asynctasks.AsyncTaskType taskType , org.ovirt.engine.core.common.asynctasks.AsyncTaskParameters taskParameters ) { return org.ovirt.engine.core.bll.tasks.AsyncTaskFactory.construct ( coco , taskType , taskParameters , false ) ; }

Target:
public org.ovirt.engine.core.bll.tasks.interfaces.SPMTask createTask ( org.ovirt.engine.core.common.asynctasks.AsyncTaskType taskType , org.ovirt.engine.core.common.asynctasks.AsyncTaskParameters taskParameters ) { return coco.construct ( taskType , taskParameters , false ) ; }
Source:
public org.ovirt.api.metamodel.concepts.Constraint getConstraint ( org.ovirt.api.metamodel.concepts.Name name ) { return constraints.stream ( ) . filter ( named ( name ) ) . findFirst ( ) . orElse ( null ) ; }

Target:
public org.ovirt.api.metamodel.concepts.Constraint getConstraint ( org.ovirt.api.metamodel.concepts.Name name ) { return constraints.stream ( ) . filter ( org.ovirt.api.metamodel.concepts.Named.named ( name ) ) . findFirst ( ) . orElse ( null ) ; }
Source:
public int compareTo ( ovirt_engine_dwh.historydelete_3_2.HistoryDelete.row6Struct other ) { int returnValue = - 1 ; return returnValue ; }

Target:
public int compareTo ( ovirt_engine_dwh.historydelete_3_2.HistoryDelete.row3Struct other ) { int returnValue = - 1 ; returnValue = checkNullsAndCompare ( this . history_id , other.history_id ) ; if ( returnValue != 0 ) { return returnValue ; } return returnValue ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.HostDeviceView , org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.vms.hostdev.VmHostDeviceListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.virtualMachineHostDeviceSubTabLabel ( ) , 5 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( ) { return new org.ovirt.engine.ui.common.uicommon.model.GroupedTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.virtualMachine.SubTabVirtualMachineHostDevicePresenter.constants.virtualMachineHostDeviceSubTabLabel ( ) , 5 ) ; }