auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createVlan ( java.lang.String baseIfaceName ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface = new org.ovirt.engine.core.common.businessentities.network.Vlan ( org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextInt ( 100 ) , baseIfaceName ) ; return iface ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createVlan ( java.lang.String baseIfaceName ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface = new org.ovirt.engine.core.common.businessentities.network.Vlan ( ) ; iface.setVlanId ( org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextInt ( 100 ) ) ; iface.setBaseInterface ( baseIfaceName ) ; return iface ; }
Source:
public void testValidateGateway ( ) throws java.lang.Exception { host.setVdsGroupCompatibilityVersion ( Version.v3_5 ) ; doTestValidateGateway ( "someGateway" , false , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.NETWORK_ATTACH_ILLEGAL_GATEWAY ) ) ; }

Target:
public void testValidateGatewayIsManagementNetworkAndMultipleGatewayIsNotSupported ( ) { doTestValidateGateway ( "someGateway" , true , false , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void setvm_pid ( java.lang.Integer value ) { this . vm_pid = value ; }

Target:
public java.lang.Boolean getAcpiEnable ( ) { return this . acpiEnabled ; }
Source:
protected void proceedProxyReturnValue ( ) { try { super . proceedProxyReturnValue ( ) ; } catch ( org.ovirt.engine.core.vdsbroker.vdsbroker.VDSNetworkException ignored ) { org.ovirt.engine.core.vdsbroker.vdsbroker.PollVDSCommand.log.debug ( "VDSNetworkException was caught and ignored" , ignored ) ; } }

Target:
protected void proceedProxyReturnValue ( ) { try { super . proceedProxyReturnValue ( ) ; } catch ( org.ovirt.engine.core.vdsbroker.vdsbroker.VDSNetworkException e ) { handleException ( e , "VDSNetworkException was caught" ) ; } catch ( org.ovirt.engine.core.vdsbroker.vdsbroker.VDSRecoveringException e ) { handleException ( e , "it's in recovery mode" ) ; } }
Source:
public void testUpdateVdsReinstallRequired ( ) { dao.updateReinstallRequired ( getExistingEntityId ( ) , true ) ; org.junit.Assert.assertTrue ( dao.get ( getExistingEntityId ( ) ) . isReinstallRequired ( ) ) ; }

Target:
public void testUpdateVdsReinstallRequired ( ) { dao.updateReinstallRequired ( getExistingEntityId ( ) , true ) ; org.junit.jupiter.api.Assertions.assertTrue ( dao.get ( getExistingEntityId ( ) ) . isReinstallRequired ( ) ) ; }
Source:
public void validateVmMemoryCanStartOnVdsBecauseOfLowGuestOverhead ( ) { vds.setGuestOverhead ( 0 ) ; boolean vmPassedMemoryRequirement = org.ovirt.engine.core.bll.scheduling.SlaValidator.getInstance ( ) . hasPhysMemoryToRunVM ( vds , vm , 65 ) ; org.junit.Assert.assertEquals ( vmPassedMemoryRequirement , true ) ; }

Target:
public void validateVmMemoryCanStartOnVdsBecauseOfLowGuestOverhead ( ) { org.mockito.Mockito.doReturn ( 0 ) . when ( vmOverheadCalculator ) . getStaticOverheadInMb ( org.mockito.Matchers.any ( ) ) ; boolean vmPassedMemoryRequirement = slaValidator.hasPhysMemoryToRunVM ( vds , vm , 65 ) ; org.junit.Assert.assertTrue ( vmPassedMemoryRequirement ) ; }
Source:
com.google.gwt.user.cellview.client.CellTable.Resources getTableResources ( ) { return com.google.gwt.core.client.GWT.create ( org.ovirt.engine.ui.common.SubTableResources.class ) ; }

Target:
public void setInSlot ( java.lang.Object slot , com.google.gwt.user.client.ui.IsWidget content ) { if ( slot == ( org.ovirt.engine.ui.common.presenter.AbstractSubTabPresenter.TYPE_SetActionPanel ) ) { contentPanel.insert ( content , 0 ) ; } else { super . setInSlot ( slot , content ) ; } }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getVmDynamicDAO ( ) ; existingVm = dao.get ( new org.ovirt.engine.core.compat.Guid ( "77296e00-0cad-4e5a-9299-008a7b6f4355" ) ) ; existingVm.setstatus ( VMStatus.Up ) ; newVmDynamic = new org.ovirt.engine.core.common.businessentities.VmDynamic ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getVmDynamicDao ( ) ; existingVm = dao.get ( new org.ovirt.engine.core.compat.Guid ( "77296e00-0cad-4e5a-9299-008a7b6f4355" ) ) ; existingVm.setstatus ( VMStatus.Up ) ; newVmDynamic = new org.ovirt.engine.core.common.businessentities.VmDynamic ( ) ; }
Source:
public void rollback ( ) { super . rollback ( ) ; org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolPerDcSingleton.getInstance ( ) . modifyPool ( oldMacPool ) ; }

Target:
public void rollback ( ) { super . rollback ( ) ; poolPerDc.modifyPool ( oldMacPool ) ; }
Source:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { return org.ovirt.engine.core.bll.RemoveVmTemplateFromImportExportCommand.getSucceeded ( ) ? org.ovirt.engine.core.common.AuditLogType.IMPORTEXPORT_REMOVE_TEMPLATE : org.ovirt.engine.core.common.AuditLogType.IMPORTEXPORT_REMOVE_TEMPLATE_FAILED ; }

Target:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { switch ( org.ovirt.engine.core.bll.RemoveVmTemplateFromImportExportCommand.getActionState ( ) ) { case EXECUTE : return org.ovirt.engine.core.bll.RemoveVmTemplateFromImportExportCommand.getSucceeded ( ) ? org.ovirt.engine.core.common.AuditLogType.IMPORTEXPORT_REMOVE_TEMPLATE : org.ovirt.engine.core.common.AuditLogType.IMPORTEXPORT_REMOVE_TEMPLATE_FAILED ; default : return org.ovirt.engine.core.common.AuditLogType.UNASSIGNED ; } }
Source:
public void sethibernation_vol_handle ( java.lang.String value ) { this . hibernation_vol_handle = value ; }

Target:
public void setConsoleCurrentUserName ( java.lang.String consoleCurUserName ) { this . consoleCurUserName = consoleCurUserName ; }
Source:
public void setAndValidateWithoutDiskProfilesTest ( ) { map.put ( diskImage , org.ovirt.engine.core.bll.profiles.DiskProfileHelperTest.STORAGE_DOMAIN_1 ) ; org.junit.Assert.assertEquals ( ValidationResult.VALID , diskProfileHelper.setAndValidateDiskProfiles ( map , dbUser ) ) ; }

Target:
public void setAndValidateWithoutDiskProfilesTest ( ) { map.put ( diskImage , org.ovirt.engine.core.bll.profiles.DiskProfileHelperTest.STORAGE_DOMAIN_1 ) ; org.junit.jupiter.api.Assertions.assertEquals ( ValidationResult.VALID , diskProfileHelper.setAndValidateDiskProfiles ( map , dbUser ) ) ; }
Source:
protected void SelectedItemsChanged ( ) { super . OnSelectedItemChanged ( ) ; updateActionAvailability ( ) ; }

Target:
protected void selectedItemsChanged ( ) { super . onSelectedItemChanged ( ) ; updateActionAvailability ( ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > getClusters ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > list = new java.util.ArrayList < > ( ) ; list.add ( createCluster ( 0 , Version.v3_2 ) ) ; list.add ( createCluster ( 1 , Version.v3_3 ) ) ; return list ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > getClusters ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > list = new java.util.ArrayList < > ( ) ; list.add ( createCluster ( 0 , Version.v3_6 ) ) ; list.add ( createCluster ( 1 , Version.v4_0 ) ) ; return list ; }
Source:
public void Edit ( ) { commandType = org.ovirt.engine.ui.uicommonweb.models.configure.roles_ui.RoleListModel.CommandType.Edit ; org.ovirt.engine.core.common.businessentities.Role role = ( ( org.ovirt.engine.core.common.businessentities.Role ) ( getSelectedItem ( ) ) ) ; InitRoleDialog ( role ) ; }

Target:
public void newEntity ( ) { commandType = org.ovirt.engine.ui.uicommonweb.models.configure.roles_ui.RoleListModel.CommandType.New ; org.ovirt.engine.core.common.businessentities.Role role = new org.ovirt.engine.core.common.businessentities.Role ( ) ; initRoleDialog ( role ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.hosts.HostNicModel flush ( ) { labelsWidget.flush ( ) ; vfsConfigWidget.flush ( ) ; return driver.flush ( ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.hosts.HostNicModel flush ( ) { org.ovirt.engine.ui.uicommonweb.models.hosts.HostNicModel hostNicModel = driver.flush ( ) ; labelsWidget.flush ( ) ; vfsConfigWidget.flush ( ) ; return hostNicModel ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; prepareMocks ( ) ; setUpStorageServerConnectionLunMapDAO ( ) ; setUpStorageServerConnectionDAO ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; prepareMocks ( ) ; setUpStorageServerConnectionLunMapDao ( ) ; setUpStorageServerConnectionDao ( ) ; }
Source:
protected org.ovirt.engine.core.dao.UnregisteredOVFDataDao getUnregisteredOVFDataDao ( ) { return org.ovirt.engine.core.bll.ImportVmCommandBase.getDbFacade ( ) . getUnregisteredOVFDataDao ( ) ; }

Target:
protected void initEffectiveCompatibilityVersion ( ) { setEffectiveCompatibilityVersion ( org.ovirt.engine.core.common.utils.CompatibilityVersionUtils.getEffective ( org.ovirt.engine.core.bll.ImportVmCommandBase.getParameters ( ) . getVm ( ) , this :: getVdsGroup ) ) ; }
Source:
public void testNicExistsWhenNicNameIsNull ( ) { org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment = new org.ovirt.engine.core.common.businessentities.network.NetworkAttachment ( ) ; attachment.setNicName ( null ) ; org.junit.Assert.assertThat ( createNetworkAttachmentValidator ( attachment ) . nicNameIsSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.HOST_NETWORK_INTERFACE_DOES_NOT_HAVE_NAME_SET ) ) ; }

Target:
public void testNicExistsWhenNicNameIsNull ( ) { org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment = new org.ovirt.engine.core.common.businessentities.network.NetworkAttachment ( ) ; attachment.setNicName ( null ) ; org.hamcrest.MatcherAssert.assertThat ( createNetworkAttachmentValidator ( attachment ) . nicNameIsSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.HOST_NETWORK_INTERFACE_DOES_NOT_HAVE_NAME_SET ) ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepConfigReset ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName , java.lang.String configKey ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepConfigReset ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName , java.lang.String configKey , java.lang.String userName ) ;
Source:
private java.lang.String getNetworkName ( ) { org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface vmNetworkInterface = org.ovirt.engine.core.bll.network.vm.ActivateDeactivateVmNicCommand.getVmNetworkInterfaceDao ( ) . get ( org.ovirt.engine.core.bll.network.vm.ActivateDeactivateVmNicCommand.getParameters ( ) . getNicId ( ) ) ; return vmNetworkInterface == null ? null : vmNetworkInterface.getNetworkName ( ) ; }

Target:
public java.lang.String getInterfaceName ( ) { return org.ovirt.engine.core.bll.network.vm.ActivateDeactivateVmNicCommand.getParameters ( ) . getNic ( ) . getName ( ) ; }
Source:
public void saveNullList ( ) { java.lang.String result = org.ovirt.engine.core.common.utils.pm.FenceProxySourceTypeHelper.saveAsString ( null ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void saveNullList ( ) { java.lang.String result = org.ovirt.engine.core.common.utils.pm.FenceProxySourceTypeHelper.saveAsString ( null ) ; org.junit.jupiter.api.Assertions.assertNull ( result ) ; }
Source:
private java.lang.String ip ( ) { if ( supportIpv6 ) { return ( ( ipv4 ( ) ) + "|" ) + ( ipv6 ( ) ) ; } else { return ipv4 ( ) ; } }

Target:
private java.lang.String ip ( ) { if ( supportIpv6 ) { return ( ( org.ovirt.engine.core.common.utils.ValidationUtils.IPV4_PATTERN_NON_EMPTY ) + "|" ) + ( getIpv6Pattern ( ) ) ; } else { return org.ovirt.engine.core.common.utils.ValidationUtils.IPV4_PATTERN_NON_EMPTY ; } }
Source:
public void testGetNumberOfImagesInExistingDomain ( ) { long numOfImages = dao.getNumberOfImagesInStorageDomain ( org.ovirt.engine.core.dao.StorageDomainDaoTest.EXISTING_DOMAIN_ID ) ; org.junit.Assert.assertEquals ( "Number of images on storage domain different than expected" , org.ovirt.engine.core.dao.StorageDomainDaoTest.NUMBER_OF_IMAGES_ON_EXISTING_DOMAIN , numOfImages ) ; }

Target:
public void testGetNumberOfImagesInExistingDomain ( ) { long numOfImages = dao.getNumberOfImagesInStorageDomain ( FixturesTool.STORAGE_DOAMIN_SCALE_SD5 ) ; org.junit.Assert.assertEquals ( "Number of images on storage domain different than expected" , org.ovirt.engine.core.dao.StorageDomainDaoTest.NUMBER_OF_IMAGES_ON_EXISTING_DOMAIN , numOfImages ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult hostProviderExists ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.ACTION_TYPE_FAILED_PROVIDER_DOESNT_EXIST ) . when ( ( ( hostProviderConfigured ( ) ) && ( ( getProvider ( ) ) == null ) ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult hostProviderExists ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.ACTION_TYPE_FAILED_PROVIDER_DOESNT_EXIST ) . when ( ( ( ( getHost ( ) . getHostProviderId ( ) ) != null ) && ( ( getProvider ( ) ) == null ) ) ) ; }
Source:
public java.lang.String getvm_ip ( ) { return this . mVmDynamic.getvm_ip ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VMStatus getStatus ( ) { return this . vmDynamic.getstatus ( ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { return null ; }

Target:
protected java.lang.Long getRawValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage = ( ( org.ovirt.engine.core.common.businessentities.storage.DiskImage ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ) ) ; return diskImage.getSize ( ) ; }
Source:
com.google.gwt.inject.client.AsyncProvider < org.ovirt.engine.ui.webadmin.section.main.presenter.tab.cluster.SubTabClusterPolicyPresenter > getSubTabClusterPolicyPresenter ( ) ;

Target:
com.google.gwt.inject.client.AsyncProvider < org.ovirt.engine.ui.webadmin.section.main.presenter.tab.datacenter.SubTabDataCenterNetworkQoSPresenter > getSubTabDataCenterNetworkQoSPresenter ( ) ;
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.RemoveRoleCommand.getRoleDao ( ) . remove ( org.ovirt.engine.core.bll.RemoveRoleCommand.getRole ( ) . getId ( ) ) ; org.ovirt.engine.core.bll.RemoveRoleCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { roleDao.remove ( org.ovirt.engine.core.bll.RemoveRoleCommand.getRole ( ) . getId ( ) ) ; org.ovirt.engine.core.bll.RemoveRoleCommand.setSucceeded ( true ) ; }
Source:
public void testNotExternalNetworkFailsForExternalNetwork ( ) { org.mockito.Mockito.when ( network.isExternal ( ) ) . thenReturn ( true ) ; org.junit.Assert.assertThat ( validator.notExternalNetwork ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_NOT_SUPPORTED_FOR_EXTERNAL_NETWORK ) ) ; }

Target:
public void testNotExternalNetworkFailsForExternalNetwork ( ) { org.mockito.Mockito.when ( network.isExternal ( ) ) . thenReturn ( true ) ; org.hamcrest.MatcherAssert.assertThat ( validator.notExternalNetwork ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_NOT_SUPPORTED_FOR_EXTERNAL_NETWORK ) ) ; }
Source:
public void checkValidIpConfigurationStaticBootProtocol ( ) { initIpConfigurationDetails ( Ipv4BootProtocol.STATIC_IP , true , true ) ; org.ovirt.engine.core.bll.ValidationResult actual = underTest.validateNetworkAttachmentIpConfiguration ( networkAttachments ) ; org.junit.Assert.assertEquals ( ValidationResult.VALID , actual ) ; }

Target:
public void checkIncompatibleIpv6AddressDetailsBootProtocolDhcp ( ) { checkIncompatibleIpv6AddressDetailsBootProtocol ( Ipv6BootProtocol.DHCP ) ; }
Source:
public void testPrefixViewNotNullEvenIfEmpty ( ) throws java.lang.Exception { java.io.File file = writeConf ( ) ; org.ovirt.engine.core.extensions.mgr.Configuration config = org.ovirt.engine.core.extensions.mgr.Configuration.loadFile ( file ) ; org.junit.Assert.assertNotNull ( config ) ; org.ovirt.engine.core.extensions.mgr.Configuration view = config.getView ( "a" ) ; org.junit.Assert.assertNotNull ( view ) ; }

Target:
public void testPrefixViewNotNullEvenIfEmpty ( ) throws java.lang.Exception { java.io.File file = writeConf ( ) ; org.ovirt.engine.core.extensions.mgr.Configuration config = org.ovirt.engine.core.extensions.mgr.Configuration.loadFile ( file ) ; org.junit.jupiter.api.Assertions.assertNotNull ( config ) ; org.ovirt.engine.core.extensions.mgr.Configuration view = config.getView ( "a" ) ; org.junit.jupiter.api.Assertions.assertNotNull ( view ) ; }
Source:
private void localize ( org.ovirt.engine.ui.webadmin.ApplicationConstants constants ) { headerLabel.setText ( constants.mainHeaderLabel ( ) ) ; }

Target:
private void localize ( org.ovirt.engine.ui.webadmin.ApplicationDynamicConstants constants ) { headerLabel.setText ( constants.mainHeaderLabel ( ) ) ; }
Source:
private static org.ovirt.engine.api.restapi.util.LinkHelper.Collection getCollection ( org.ovirt.engine.api.model.BaseResource model ) { return org.ovirt.engine.api.restapi.util.LinkHelper.getCollection ( model , null ) ; }

Target:
private static org.ovirt.engine.api.restapi.util.LinkHelper.ApiLocationMetadata getLocationMetadata ( org.ovirt.engine.api.model.BaseResource model ) { return org.ovirt.engine.api.restapi.util.LinkHelper.getLocationMetadata ( model , null ) ; }
Source:
protected boolean canDoAction ( ) { boolean result = true ; if ( ( org.ovirt.engine.core.bll.SetNonOperationalVdsCommand.getVds ( ) ) == null ) { addCanDoActionMessage ( VdcBllMessages.VDS_INVALID_SERVER_ID ) ; result = false ; } return result ; }

Target:
protected boolean canDoAction ( ) { boolean result = true ; if ( ( org.ovirt.engine.core.bll.SetNonOperationalVdsCommand.getVds ( ) ) == null ) { addCanDoActionMessage ( EngineMessage.VDS_INVALID_SERVER_ID ) ; result = false ; } return result ; }
Source:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.Disk disk = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ; return disk.isShareable ( ) ? resources.shareableDiskIcon ( ) : null ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.storage.LunDisk disk = ( ( org.ovirt.engine.core.common.businessentities.storage.LunDisk ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ) ) ; return disk.getDiskAlias ( ) ; }
Source:
public java.lang.Integer getusage_network_percent ( ) { return this . mVmStatistics.getusage_network_percent ( ) ; }

Target:
public java.lang.Double getRoundedElapsedTime ( ) { return this . vmStatistics.getRoundedElapsedTime ( ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { this . setVmsWithvNumaNodeList ( ( ( java.util.List < org.ovirt.engine.core.common.businessentities.VM > ) ( returnValue ) ) ) ; this . modelReady ( ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { this . setVmsWithvNumaNodeList ( ( ( java.util.List < org.ovirt.engine.core.common.businessentities.VM > ) ( returnValue ) ) ) ; initVNumaNodes ( ) ; this . modelReady ( ) ; }
Source:
private void handleGeneralException ( org.ovirt.engine.core.bll.adbroker.LdapSearchExceptionHandlingResponse response , java.lang.Exception e ) { response.setTranslatedException ( e ) . setTryNextServer ( true ) . setServerScore ( Score.LOW ) ; }

Target:
private void handleGeneralException ( org.ovirt.engine.core.bll.adbroker.LdapSearchExceptionHandlingResponse response , java.lang.Exception e ) { response.setTranslatedException ( e ) . setTryNextServer ( true ) . setOrderingAlgorithm ( OrderingAlgorithmType.PUT_LAST ) ; }
Source:
public void testGetBynameAndVersion ( ) { org.ovirt.engine.core.common.businessentities.VdcOption result = dao.getByNameAndVersion ( existingOption.getoption_name ( ) , existingOption.getversion ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingOption , result ) ; }

Target:
public void testGetBynameAndVersion ( ) { org.ovirt.engine.core.common.businessentities.VdcOption result = dao.getByNameAndVersion ( existingOption.getOptionName ( ) , existingOption.getVersion ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingOption , result ) ; }
Source:
public java.util.concurrent.FutureTask < java.util.Map < java.lang.String , java.lang.Object > > futureGetCapabilities ( ) ;

Target:
public java.util.concurrent.FutureTask < java.util.Map < java.lang.String , java.lang.Object > > futurePing ( ) ;
Source:
protected org.ovirt.engine.core.common.queries.VdcQueryType getUsingEntitiesByQosIdQueryType ( ) { return org.ovirt.engine.core.common.queries.VdcQueryType.GetAllNetworksByQosId ; }

Target:
protected org.ovirt.engine.core.common.queries.QueryType getUsingEntitiesByQosIdQueryType ( ) { return org.ovirt.engine.core.common.queries.QueryType.GetAllNetworksByQosId ; }
Source:
void setTooltipText ( java.lang.String title ) ;

Target:
void setTooltip ( com.google.gwt.safehtml.shared.SafeHtml setTooltipText ) ;
Source:
public java.lang.String getName ( ) { return getIface ( ) . getName ( ) ; }

Target:
public java.lang.String getName ( ) { return getOriginalIface ( ) . getName ( ) ; }
Source:
public void testGetAllForUserWithInvalidUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.tags > result = dao.getAllForUsers ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) . toString ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForUserWithInvalidUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.tags > result = dao.getAllForUsers ( org.ovirt.engine.core.compat.Guid.newGuid ( ) . toString ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public org.ovirt.engine.core.bll.utils.ClusterUtils getClusterUtils ( ) { return org.ovirt.engine.core.bll.utils.ClusterUtils.getInstance ( ) ; }

Target:
public org.ovirt.engine.core.bll.utils.GlusterUtil getGlusterUtils ( ) { return org.ovirt.engine.core.bll.utils.GlusterUtil.getInstance ( ) ; }
Source:
public void getEngineSSHPublicKey ( ) { org.junit.Assert.assertNotNull ( org.ovirt.engine.core.bll.VdsDeploy.getEngineSSHPublicKey ( ) ) ; }

Target:
public void getEngineSSHPublicKey ( ) { org.junit.Assert.assertNotNull ( org.ovirt.engine.core.bll.VdsDeploy._getEngineSSHPublicKey ( ) ) ; }
Source:
private boolean ThereAreTasksToPoll ( ) { for ( org.ovirt.engine.core.bll.SPMAsyncTask task : _tasks.values ( ) ) { if ( task.getShouldPoll ( ) ) { return true ; } } return false ; }

Target:
private boolean thereAreTasksToPoll ( ) { for ( org.ovirt.engine.core.bll.SPMAsyncTask task : _tasks.values ( ) ) { if ( task.getShouldPoll ( ) ) { return true ; } } return false ; }
Source:
private void addStyles ( ) { collapseSnapshotEditor.addContentWidgetStyleName ( style.collapseEditor ( ) ) ; }

Target:
private void addStyles ( ) { collapseSnapshotEditor.addContentWidgetStyleName ( style.collapseEditor ( ) ) ; cloneAllEditor.addContentWidgetStyleName ( style.collapseEditor ( ) ) ; }
Source:
public void testCDAStoragePoolValid ( ) { vds.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( "canDoAction did not fail on mismatch Storage Pool" , command , VdcBllMessages.CANNOT_FORCE_SELECT_SPM_VDS_NOT_IN_POOL ) ; }

Target:
public void testCDAStoragePoolValid ( ) { vds.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( "canDoAction did not fail on mismatch Storage Pool" , command , EngineMessage.CANNOT_FORCE_SELECT_SPM_VDS_NOT_IN_POOL ) ; }
Source:
public void checkStorageDomainNotEqualWithNonActiveStatus ( ) { setStorageDomainStatus ( StorageDomainStatus.Maintenance ) ; org.junit.Assert.assertTrue ( cmd.checkStorageDomainStatusNotEqual ( StorageDomainStatus.Active ) ) ; }

Target:
public void checkStorageDomainNotEqualWithNonActiveStatus ( ) { setStorageDomainStatus ( StorageDomainStatus.Maintenance ) ; org.junit.jupiter.api.Assertions.assertTrue ( cmd.checkStorageDomainStatusNotEqual ( StorageDomainStatus.Active ) ) ; }
Source:
void SetStringValue ( java.lang.String name , java.lang.String value ) ;

Target:
void setStringValue ( java.lang.String name , java.lang.String value ) ;
Source:
public java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageType > getStorageTypeList ( ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageType > ( java.util.Arrays.asList ( new org.ovirt.engine.core.common.businessentities.StorageType [ ] { org.ovirt.engine.core.common.businessentities.StorageType.ISCSI , org.ovirt.engine.core.common.businessentities.StorageType.FCP } ) ) ; }

Target:
public java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.StorageType > getStorageTypeList ( ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.StorageType > ( java.util.Arrays.asList ( new org.ovirt.engine.core.common.businessentities.storage.StorageType [ ] { org.ovirt.engine.core.common.businessentities.storage.StorageType.ISCSI , org.ovirt.engine.core.common.businessentities.storage.StorageType.FCP } ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.DbUser getDbUser ( ) { if ( ( mDbUser ) == null ) { mDbUser = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getDbUserDAO ( ) . get ( getAdUserId ( ) ) ; } return mDbUser ; }

Target:
protected org.ovirt.engine.core.common.businessentities.DbUser getDbUser ( ) { if ( ( mDbUser ) == null ) { mDbUser = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getDbUserDao ( ) . get ( getAdUserId ( ) ) ; } return mDbUser ; }
Source:
public void oSType_SelectedItemChanged ( ) { java.lang.Integer osType = getModel ( ) . getOSType ( ) . getSelectedItem ( ) ; if ( osType != null ) { updateVirtioScsiEnabled ( vm.getId ( ) , osType ) ; } }

Target:
public org.ovirt.engine.ui.uicommonweb.models.vms.instancetypes.InstanceTypeManager getInstanceTypeManager ( ) { return instanceTypeManager ; }
Source:
public static boolean vmDeviceChanged ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.common.businessentities.VmDeviceGeneralType deviceType , org.ovirt.engine.core.common.businessentities.VmDevice device ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.vmDeviceChanged ( vmId , deviceType , null , device ) ; }

Target:
public static boolean canCopyHostDevices ( org.ovirt.engine.core.common.businessentities.VmBase srcVm , org.ovirt.engine.core.common.businessentities.VmBase dstVm ) { return new java.util.HashSet ( srcVm.getDedicatedVmForVdsList ( ) ) . equals ( new java.util.HashSet ( dstVm.getDedicatedVmForVdsList ( ) ) ) ; }
Source:
public org.ovirt.api.metamodel.concepts.Parameter getParameter ( org.ovirt.api.metamodel.concepts.Name name ) { return parameters.stream ( ) . filter ( named ( name ) ) . findFirst ( ) . orElse ( null ) ; }

Target:
public org.ovirt.api.metamodel.concepts.Parameter getParameter ( org.ovirt.api.metamodel.concepts.Name name ) { return parameters.stream ( ) . filter ( org.ovirt.api.metamodel.concepts.Named.named ( name ) ) . findFirst ( ) . orElse ( null ) ; }
Source:
public void onSuccess ( final org.ovirt.engine.ui.frontend.communication.VdcOperation < org.ovirt.engine.core.common.action.VdcActionType , org.ovirt.engine.core.common.action.LoginUserParameters > operation , final org.ovirt.engine.core.common.action.VdcReturnValueBase result ) { org.junit.Assert.assertEquals ( "Objects should match" , loginResult , result ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { testManager = new org.ovirt.engine.ui.frontend.communication.VdcOperationManager ( mockEventBus , mockOperationProcessor ) ; }
Source:
public void testIsNetworkInSyncWhenStaticBootProtocolAddressEqual ( ) throws java.lang.Exception { initIpConfigurationBootProtocolAddress ( org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterfaceTest.BOOT_PROTOCOL , true ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testIsNetworkInSyncWhenIpv4BootProtocolNotStaticNetmaskDifferent ( ) throws java.lang.Exception { initIpv4ConfigurationBootProtocolNetmask ( Ipv4BootProtocol.NONE , false ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
protected javax.ws.rs.core.Response doAdd ( org.ovirt.engine.api.model.Snapshot snapshot , boolean block ) { validateParameters ( snapshot , "description" ) ; org.ovirt.engine.core.common.action.CreateAllSnapshotsFromVmParameters snapshotParams = new org.ovirt.engine.core.common.action.CreateAllSnapshotsFromVmParameters ( parentId , snapshot.getDescription ( ) ) ; return performCreation ( VdcActionType.CreateAllSnapshotsFromVm , snapshotParams , new org.ovirt.engine.api.restapi.resource.BackendSnapshotsResource.SnapshotIdResolver ( ) , block ) ; }

Target:
protected javax.ws.rs.core.Response doAdd ( org.ovirt.engine.api.model.Snapshot snapshot , boolean block ) { validateParameters ( snapshot , "description" ) ; org.ovirt.engine.core.common.action.CreateAllSnapshotsFromVmParameters snapshotParams = new org.ovirt.engine.core.common.action.CreateAllSnapshotsFromVmParameters ( parentId , snapshot.getDescription ( ) ) ; return performCreate ( VdcActionType.CreateAllSnapshotsFromVm , snapshotParams , new org.ovirt.engine.api.restapi.resource.BackendSnapshotsResource.SnapshotIdResolver ( ) , block ) ; }
Source:
private java.lang.String getConsoleUserName ( org.ovirt.engine.core.common.users.VdcUser user ) { java.lang.String domain = user.getDomainControler ( ) ; java.lang.String name = user.getUserName ( ) ; if ( ( ( org.apache.commons.lang.StringUtils.isEmpty ( name ) ) || ( name.contains ( "@" ) ) ) || ( org.apache.commons.lang.StringUtils.isEmpty ( domain ) ) ) { return name ; } else { return ( name + "@" ) + domain ; } }

Target:
java.lang.String getConsoleUserName ( ) { org.ovirt.engine.core.common.businessentities.DbUser user = org.ovirt.engine.core.bll.SetVmTicketCommand.getCurrentUser ( ) ; java.lang.String domain = user.getDomain ( ) ; java.lang.String name = user.getLoginName ( ) ; if ( org.apache.commons.lang.StringUtils.isEmpty ( name ) ) { return null ; } if ( ( name.contains ( "@" ) ) || ( org.apache.commons.lang.StringUtils.isEmpty ( domain ) ) ) { return name ; } return ( name + "@" ) + domain ; }
Source:
public void setErrataDetailPanelVisibilty ( boolean visible ) { splitLayoutPanel.clear ( ) ; if ( visible ) { splitLayoutPanel.addSouth ( errataDetailPanel , org.ovirt.engine.ui.webadmin.section.main.view.popup.ErrataListWithDetailsPopupView.SOUTH_SIZE ) ; } splitLayoutPanel.add ( errataTableView ) ; }

Target:
public void setErrataDetailPanelVisibilty ( boolean visible ) { splitLayoutPanel.setWidgetHidden ( errataDetailPanel , ( ! visible ) ) ; com.google.gwt.core.client.Scheduler.get ( ) . scheduleDeferred ( new com.google.gwt.core.client.Scheduler.ScheduledCommand ( ) { @ java.lang.Override public void execute ( ) { errataTableView.onResize ( ) ; } } ) ; }
Source:
protected java.lang.String createRequestToken ( ) { java.lang.String subTabName = modelProvider.getModel ( ) . getActiveDetailModel ( ) . getHashName ( ) ; java.lang.String requestToken = ( ( getSideTabRequest ( ) . getNameToken ( ) ) + ( org.ovirt.engine.ui.userportal.place.ApplicationPlaces.SUB_TAB_PREFIX ) ) + subTabName ; return requestToken ; }

Target:
protected java.lang.String createRequestToken ( ) { java.lang.String subTabName = modelProvider.getModel ( ) . getActiveDetailModel ( ) . getHashName ( ) ; java.lang.String requestToken = ( ( getSideTabRequest ( ) . getNameToken ( ) ) + ( org.ovirt.engine.ui.uicommonweb.place.UserPortalApplicationPlaces.SUB_TAB_PREFIX ) ) + subTabName ; return requestToken ; }
Source:
public void testBeanValidations ( ) { junit.framework.Assert.assertTrue ( createCommand ( initializeMock ( 1 , 1 ) ) . validateInputs ( ) ) ; }

Target:
public void testBeanValidations ( ) { org.junit.Assert.assertTrue ( createCommand ( initializeMock ( 1 , 1 ) ) . validateInputs ( ) ) ; }
Source:
public void setDbName ( java.lang.String dbName ) { this . dbName = dbName ; }

Target:
public void setScope ( java.lang.String dbName ) { this . scope = dbName ; }
Source:
private org.ovirt.engine.ui.frontend.gwtservices.GenericApiGWTServiceAsync getService ( ) { return service ; }

Target:
public void onFailure ( java.lang.Throwable caught ) { callback.onFailure ( caught ) ; }
Source:
public void setHibernationVolHandle ( java.lang.String value ) { this . vmDynamic.setHibernationVolHandle ( value ) ; }

Target:
public void setLockInfo ( org.ovirt.engine.core.common.locks.LockInfo lockInfo ) { this . lockInfo = lockInfo ; }
Source:
public org.ovirt.engine.core.common.businessentities.event_notification_methods mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { org.ovirt.engine.core.common.businessentities.event_notification_methods entity = new org.ovirt.engine.core.common.businessentities.event_notification_methods ( ) ; entity.setmethod_id ( rs.getInt ( "method_id" ) ) ; entity.setmethod_type ( EventNotificationMethods.EMAIL ) ; return entity ; }

Target:
public org.ovirt.engine.core.common.businessentities.EventNotificationMethod mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { org.ovirt.engine.core.common.businessentities.EventNotificationMethod entity = new org.ovirt.engine.core.common.businessentities.EventNotificationMethod ( ) ; entity.setmethod_id ( rs.getInt ( "method_id" ) ) ; entity.setmethod_type ( EventNotificationMethods.EMAIL ) ; return entity ; }
Source:
public static boolean isFieldsUpdated ( org.ovirt.engine.core.common.businessentities.VdsStatic source , org.ovirt.engine.core.common.businessentities.VdsStatic destination , java.lang.Iterable < java.lang.String > list ) { return org.ovirt.engine.core.bll.VdsHandler.updateVdsStatic.isFieldsUpdated ( source , destination , list ) ; }

Target:
public boolean isFieldsUpdated ( org.ovirt.engine.core.common.businessentities.VdsStatic source , org.ovirt.engine.core.common.businessentities.VdsStatic destination , java.lang.Iterable < java.lang.String > list ) { return updateVdsStatic.isFieldsUpdated ( source , destination , list ) ; }
Source:
protected void removeQuotaFromCache ( ) { org.ovirt.engine.core.bll.quota.QuotaManager.getInstance ( ) . removeQuotaFromCache ( getQuota ( ) . getStoragePoolId ( ) , getQuota ( ) . getId ( ) ) ; }

Target:
protected void removeQuotaFromCache ( ) { getQuotaManager ( ) . removeQuotaFromCache ( getQuota ( ) . getStoragePoolId ( ) , getQuota ( ) . getId ( ) ) ; }
Source:
public org.ovirt.engine.core.bll.SPMAsyncTask createTask ( org.ovirt.engine.core.common.asynctasks.AsyncTaskType taskType , org.ovirt.engine.core.common.asynctasks.AsyncTaskParameters taskParameters ) { return org.ovirt.engine.core.bll.AsyncTaskFactory.construct ( taskType , taskParameters , false ) ; }

Target:
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 ( taskType , taskParameters , false ) ; }
Source:
public void execute ( ) { try { command.Execute ( ) ; } catch ( java.lang.Exception ex ) { org.ovirt.engine.ui.common.uicommon.model.DeferredModelCommandInvoker.logger.log ( java.util.logging.Level.SEVERE , "UICommand execution failed" , ex ) ; commandFailed ( command ) ; } finally { commandFinished ( command ) ; } }

Target:
public void execute ( ) { try { executeCommand ( command ) ; } catch ( java.lang.Exception ex ) { org.ovirt.engine.ui.common.uicommon.model.DeferredModelCommandInvoker.logger.log ( java.util.logging.Level.SEVERE , "UICommand execution failed" , ex ) ; commandFailed ( command ) ; } finally { commandFinished ( command ) ; } }
Source:
private void addVolumeToDb ( final org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity createdVolume ) { createdVolume.setClusterId ( getVdsGroupId ( ) ) ; getGlusterVolumeDao ( ) . save ( createdVolume ) ; }

Target:
private void addVolumeToDb ( final org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity createdVolume ) { createdVolume.setClusterId ( getClusterId ( ) ) ; getGlusterVolumeDao ( ) . save ( createdVolume ) ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.provider.RemoveProviderCommand.getDbFacade ( ) . getProviderDao ( ) . remove ( org.ovirt.engine.core.bll.provider.RemoveProviderCommand.getParameters ( ) . getProvider ( ) . getId ( ) ) ; org.ovirt.engine.core.bll.provider.RemoveProviderCommand.setSucceeded ( true ) ; }

Target:
private org.ovirt.engine.core.dao.provider.ProviderDao getProviderDao ( ) { return org.ovirt.engine.core.bll.provider.RemoveProviderCommand.getDbFacade ( ) . getProviderDao ( ) ; }
Source:
public java.lang.String toString ( ) { return org.ovirt.engine.core.common.utils.ToStringBuilder.forInstance ( this ) . append ( "entityId" , entityId ) . append ( "entityType" , entityType ) . build ( ) ; }

Target:
protected org.ovirt.engine.core.common.utils.ToStringBuilder appendProperties ( org.ovirt.engine.core.common.utils.ToStringBuilder tsb ) { return tsb.append ( "entityId" , entityId ) . append ( "entityType" , entityType ) ; }
Source:
public void taskEndSuccessfully ( ) { }

Target:
public void taskEndSuccessfully ( ) { super . endSuccessfully ( ) ; }
Source:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; org.ovirt.engine.core.common.action.WatchdogParameters parameters = new org.ovirt.engine.core.common.action.WatchdogParameters ( ) ; parameters.setId ( instanceTypeId ) ; parameters.setVm ( false ) ; return performAction ( VdcActionType.RemoveWatchdog , parameters ) ; }

Target:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; org.ovirt.engine.core.common.action.WatchdogParameters parameters = new org.ovirt.engine.core.common.action.WatchdogParameters ( ) ; parameters.setId ( instanceTypeId ) ; parameters.setVm ( false ) ; return performAction ( ActionType.RemoveWatchdog , parameters ) ; }
Source:
protected void afterLoad ( ) { supportedClusterVersionsSet = parseSupportedVersions ( getSupportedClusterLevels ( ) ) ; supportedEngineVersionsSet = parseSupportedVersions ( getSupportedEngines ( ) ) ; }

Target:
public java.util.HashSet < org.ovirt.engine.core.compat.Version > getSupportedEngineVersionsSet ( ) { if ( ( supportedEngineVersionsSet ) == null ) { supportedEngineVersionsSet = parseSupportedVersions ( getSupportedEngines ( ) ) ; } return supportedEngineVersionsSet ; }
Source:
public void setAuthn ( java.lang.String sessionId , org.ovirt.engine.core.extensions.mgr.ExtensionProxy authn ) { setData ( sessionId , org.ovirt.engine.core.bll.session.SessionDataContainer.AUTHN_PARAMETER_NAME , authn ) ; }

Target:
public void setAuthn ( java.lang.String sessionId , org.ovirt.engine.core.extensions.mgr.ExtensionProxy authn ) { setData ( sessionId , org.ovirt.engine.core.bll.aaa.SessionDataContainer.AUTHN_PARAMETER_NAME , authn ) ; }
Source:
public void testGetAllForVmPools ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.tags > result = dao.getAllForVmPools ( vmPool.toString ( ) ) ; assertNotNull ( result ) ; assertFalse ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForUserGroupWithInvalidUserGroup ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.tags > result = dao.getAllForUserGroups ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) . toString ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public void save ( org.ovirt.engine.core.common.businessentities.network.NetworkAttachment entity ) { verifyRelationWithHostNetworkQos ( entity ) ; hostNetworkQosDao.persistQosChanges ( entity.getId ( ) , entity.getHostNetworkQos ( ) ) ; super . save ( entity ) ; }

Target:
public void update ( org.ovirt.engine.core.common.businessentities.network.NetworkAttachment entity ) { verifyRelationWithHostNetworkQos ( entity ) ; hostNetworkQosDao.persistQosChanges ( entity.getId ( ) , asHostNetworkQos ( entity.getHostNetworkQos ( ) ) ) ; super . update ( entity ) ; }
Source:
public void testGetStorageDomainWithWrongStatus ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain result = dao.getStorageDomain ( FixturesTool.STORAGE_POOL_NFS_INACTIVE_ISO , StorageDomainType.ISO , StorageDomainStatus.Active ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetStorageDomainWithWrongStatus ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getStorageDomains ( FixturesTool.STORAGE_POOL_NFS_INACTIVE_ISO , StorageDomainType.ISO , StorageDomainStatus.Active ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public static org.ovirt.engine.ui.frontend.Frontend getInstance ( ) { return org.ovirt.engine.ui.frontend.Frontend.instance ; }

Target:
public static org.ovirt.engine.ui.frontend.Frontend getInstance ( ) { return org.ovirt.engine.ui.frontend.Frontend.InstanceHolder.instance ; }
Source:
protected void getHostListByCluster ( org.ovirt.engine.core.common.businessentities.VDSGroup cluster , org.ovirt.engine.ui.frontend.AsyncQuery query ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetHostsByClusterId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( cluster.getId ( ) ) , query ) ; }

Target:
protected void getHostListByCluster ( org.ovirt.engine.core.common.businessentities.Cluster cluster , org.ovirt.engine.ui.frontend.AsyncQuery query ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetHostsByClusterId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( cluster.getId ( ) ) , query ) ; }
Source:
public void findActiveVmsUsingNetworks ( ) { mockDaos ( true ) ; java.util.List < java.lang.String > vmNames = findActiveVmsUsingNetwork.findNamesOfActiveVmsUsingNetworks ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , org.ovirt.engine.core.bll.network.FindActiveVmsUsingNetworkTest.NETWORK_NAME ) ; org.junit.Assert.assertTrue ( vmNames.contains ( org.ovirt.engine.core.bll.network.FindActiveVmsUsingNetworkTest.VM_NAME ) ) ; }

Target:
public void findActiveVmsUsingNetworks ( ) { mockDaos ( true ) ; java.util.List < java.lang.String > vmNames = findActiveVmsUsingNetwork.findNamesOfActiveVmsUsingNetworks ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , org.ovirt.engine.core.bll.network.FindActiveVmsUsingNetworkTest.NETWORK_NAME ) ; org.junit.jupiter.api.Assertions.assertTrue ( vmNames.contains ( org.ovirt.engine.core.bll.network.FindActiveVmsUsingNetworkTest.VM_NAME ) ) ; }
Source:
public void getVmFromId ( ) { final org.ovirt.engine.core.common.businessentities.VM v = null ; b.setVm ( v ) ; b.setVmId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; final org.ovirt.engine.core.common.businessentities.VM vm = b.getVm ( ) ; org.junit.Assert.assertNotNull ( vm ) ; }

Target:
public void getVmFromId ( ) { final org.ovirt.engine.core.common.businessentities.VM v = null ; b.setVm ( v ) ; b.setVmId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; final org.ovirt.engine.core.common.businessentities.VM vm = b.getVm ( ) ; org.junit.jupiter.api.Assertions.assertNotNull ( vm ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VM loadEntity ( ) { return getEntity ( org.ovirt.engine.core.common.businessentities.VM.class , VdcQueryType.GetVmByVmId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( getGuid ( ) ) , getGuid ( ) . toString ( ) , true ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VM loadEntity ( ) { return getEntity ( org.ovirt.engine.core.common.businessentities.VM.class , VdcQueryType.GetVmByVmId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) , guid.toString ( ) , true ) ; }
Source:
public java.lang.Boolean call ( ) throws java.lang.Exception { _setCliEnvironmentIfNecessary ( ( ( org.ovirt.ovirt_host_deploy.constants.OpenStackEnv.NEUTRON_LINUXBRIDGE_CONFIG_PREFIX ) + "LINUX_BRIDGE/physical_interface_mappings" ) , _openStackAgentProperties.getAgentConfiguration ( ) . getNetworkMappings ( ) ) ; return true ; }

Target:
public java.lang.Boolean call ( ) throws java.lang.Exception { setCliEnvironmentIfNecessary ( ( ( org.ovirt.ovirt_host_deploy.constants.OpenStackEnv.NEUTRON_LINUXBRIDGE_CONFIG_PREFIX ) + "LINUX_BRIDGE/physical_interface_mappings" ) , _openStackAgentProperties.getAgentConfiguration ( ) . getNetworkMappings ( ) ) ; return true ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.Provider > getBackendCollection ( ) { if ( isFiltered ( ) ) { return getBackendCollection ( VdcQueryType.GetAllProviders , new org.ovirt.engine.core.common.queries.GetAllProvidersParameters ( org.ovirt.engine.core.common.businessentities.ProviderType.OPENSTACK_IMAGE ) ) ; } else { return getBackendCollection ( SearchType.Provider , getConstraint ( ) ) ; } }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.Provider > getBackendCollection ( ) { if ( isFiltered ( ) ) { return getBackendCollection ( QueryType.GetAllProviders , new org.ovirt.engine.core.common.queries.GetAllProvidersParameters ( org.ovirt.engine.core.common.businessentities.ProviderType.OPENSTACK_IMAGE ) ) ; } else { return getBackendCollection ( SearchType.Provider , getConstraint ( ) ) ; } }
Source:
public void setUrl ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( url , value ) ) ) { url = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( org.ovirt.engine.ui.uicommonweb.models.providers.ProviderGeneralModel.PROPERTY_URL ) ) ; } }

Target:
public void setUrl ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( url , value ) ) ) { url = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( org.ovirt.engine.ui.uicommonweb.models.providers.ProviderGeneralModel.PROPERTY_URL ) ) ; } }
Source:
public void testRemove ( ) { org.junit.Assert.assertNotNull ( dao.get ( FixturesTool.VM_NETWORK_FILTER_PARAMETER ) ) ; dao.remove ( FixturesTool.VM_NETWORK_FILTER_PARAMETER ) ; org.junit.Assert.assertNull ( dao.get ( FixturesTool.VM_NETWORK_FILTER_PARAMETER ) ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid generateNonExistingId ( ) { return org.ovirt.engine.core.compat.Guid.newGuid ( ) ; }
Source:
private void assertGetHostsForStorageOperationNonGluster ( java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result ) { for ( org.ovirt.engine.core.common.businessentities.VDS vds : result ) { org.junit.Assert.assertThat ( vds.getClusterId ( ) , org.hamcrest.CoreMatchers.not ( org.hamcrest.core.IsEqual.equalTo ( FixturesTool.GLUSTER_CLUSTER_ID ) ) ) ; } }

Target:
private void assertGetHostsForStorageOperationNonGluster ( java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result ) { for ( org.ovirt.engine.core.common.businessentities.VDS vds : result ) { org.hamcrest.MatcherAssert.assertThat ( vds.getClusterId ( ) , org.hamcrest.CoreMatchers.not ( org.hamcrest.core.IsEqual.equalTo ( FixturesTool.GLUSTER_CLUSTER_ID ) ) ) ; } }