auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createBond ( java.lang.String name , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , name , true , null , null , networkName , true , null ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.Network createLabeledNetwork ( java.lang.String networkName , java.lang.String label ) { org.ovirt.engine.core.common.businessentities.network.Network network = createNetwork ( networkName ) ; network.setLabel ( label ) ; return network ; }
Source:
private org.ovirt.engine.core.compat.Guid getVmIdFromImageParameters ( ) { return ( ( org.ovirt.engine.core.common.action.CreateImageTemplateParameters ) ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getParameters ( ) . getImagesParameters ( ) . get ( 0 ) ) ) . getVmId ( ) ; }

Target:
private org.ovirt.engine.core.compat.Guid getVmIdFromImageParameters ( ) { return org.ovirt.engine.core.bll.AddVmTemplateCommand.getParameters ( ) . getMasterVm ( ) . getId ( ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.DiskImage diskImage ) { return diskImage.getImageId ( ) . toString ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage ) { return diskImage.getImageId ( ) . toString ( ) ; }
Source:
private void registerRollbackHandler ( org.ovirt.engine.core.utils.transaction.TransactionCompletionListener rollbackHandler ) { org.ovirt.engine.core.utils.transaction.TransactionSupport.registerRollbackHandler ( rollbackHandler ) ; }

Target:
private void registerRollbackHandler ( org.ovirt.engine.core.utils.transaction.TransactionCompletionListener rollbackHandler ) { log.debug ( "Registering rollback handler {}" , rollbackHandler ) ; org.ovirt.engine.core.utils.transaction.TransactionSupport.registerRollbackHandler ( rollbackHandler ) ; }
Source:
public static org.ovirt.engine.core.bll.context.CommandContext createInternalJobContext ( ) { return org.ovirt.engine.core.bll.job.ExecutionHandler.createInternalJobContext ( null ) ; }

Target:
public static org.ovirt.engine.core.bll.context.CommandContext createInternalJobContext ( org.ovirt.engine.core.bll.context.CommandContext commandContext ) { return org.ovirt.engine.core.bll.job.ExecutionHandler.createInternalJobContext ( commandContext , null ) ; }
Source:
public org.ovirt.engine.ui.common.presenter.AbstractModelBoundPopupPresenterWidget < ? extends org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel , ? > getConfirmModelPopup ( M source , org.ovirt.engine.ui.uicommonweb.UICommand lastExecutedCommand ) { return null ; }

Target:
public org.ovirt.engine.ui.common.presenter.AbstractModelBoundPopupPresenterWidget < ? extends org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel , ? > getConfirmModelPopup ( M sourceModel , org.ovirt.engine.ui.uicommonweb.UICommand lastExecutedCommand ) { return null ; }
Source:
protected org.ovirt.engine.core.common.action.VdcReturnValueBase runInternalAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( actionType , parameters ) ; }

Target:
protected org.ovirt.engine.core.common.action.VdcReturnValueBase runInternalAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { return getBackend ( ) . runInternalAction ( actionType , parameters , context.clone ( ) ) ; }
Source:
public void render ( com.google.gwt.cell.client.Cell.Context context , org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel itemModel , com.google.gwt.safehtml.shared.SafeHtmlBuilder sb ) { if ( ! ( itemModel.isVmUp ( ) ) ) { org.ovirt.engine.ui.userportal.widget.table.column.AbstractMaskedVmImageColumn.renderMask ( mask , sb ) ; } super . render ( context , itemModel , sb ) ; }

Target:
public void render ( com.google.gwt.cell.client.Cell.Context context , org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel itemModel , com.google.gwt.safehtml.shared.SafeHtmlBuilder sb ) { if ( ! ( itemModel.isVmUp ( ) ) ) { org.ovirt.engine.ui.userportal.widget.table.column.AbstractUserportalMaskedDataurlImageColumn.renderMask ( mask , sb ) ; } super . render ( context , itemModel , sb ) ; }
Source:
public void put ( final org.ovirt.engine.core.common.businessentities.CommandEntity cmdEntity ) { commandMap.put ( cmdEntity.getId ( ) , cmdEntity ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getCommandEntityDao ( ) . saveOrUpdate ( cmdEntity ) ; }

Target:
public void put ( final org.ovirt.engine.core.common.businessentities.CommandEntity cmdEntity ) { commandMap.put ( cmdEntity.getId ( ) , cmdEntity ) ; saveOrUpdateWithoutTransaction ( cmdEntity ) ; }
Source:
protected void executeCommand ( ) { setSucceeded ( removeMemoryVolumes ( org.ovirt.engine.core.bll.RemoveVmHibernationVolumesCommand.getVm ( ) . getHibernationVolHandle ( ) ) ) ; }

Target:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.memory.HibernationVolumesRemover hibernationVolumesRemover = new org.ovirt.engine.core.bll.memory.HibernationVolumesRemover ( org.ovirt.engine.core.bll.RemoveVmHibernationVolumesCommand.getVm ( ) . getHibernationVolHandle ( ) , org.ovirt.engine.core.bll.RemoveVmHibernationVolumesCommand.getVm ( ) . getId ( ) , this ) ; setSucceeded ( hibernationVolumesRemover.remove ( ) ) ; }
Source:
protected boolean getSucceeded ( ) { return super . getSucceeded ( ) ; }

Target:
protected void init ( ) { setVdsId ( org.ovirt.engine.core.bll.ImportHostedEngineStorageDomainCommand.getParameters ( ) . getVdsId ( ) ) ; fetchStorageDomainInfo ( ) ; }
Source:
protected org.springframework.jdbc.core.RowMapper < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > createEntityRowMapper ( ) { return org.ovirt.engine.core.dao.network.NetworkAttachmentDaoImpl.NetworkAttachmentRowMapper.INSTANCE ; }

Target:
protected org.springframework.jdbc.core.RowMapper < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > createEntityRowMapper ( ) { return networkAttachmentRowMapper ; }
Source:
public void onDoubleClick ( com.google.gwt.event.dom.client.DoubleClickEvent event ) { java.lang.String res = consoleManager.connectToConsole ( model ) ; if ( res != null ) { getView ( ) . showErrorDialog ( res ) ; } }

Target:
public void onDoubleClick ( com.google.gwt.event.dom.client.DoubleClickEvent event ) { consoleOptionsPersister.loadFromLocalStorage ( model , ConsoleContext.UP_BASIC ) ; java.lang.String res = consoleManager.connectToConsole ( model ) ; if ( res != null ) { getView ( ) . showErrorDialog ( res ) ; } }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.StorageDomain , org.ovirt.engine.ui.uicommonweb.models.storage.StorageListModel , org.ovirt.engine.ui.uicommonweb.models.storage.StorageDataCenterListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.storage.SubTabStorageDataCenterPresenter.constants.storageDataCenterSubTabLabel ( ) , 1 , 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.storage.SubTabStorageDataCenterPresenter.constants.storageDataCenterSubTabLabel ( ) , 1 ) ; }
Source:
protected void addAuditLogError ( java.lang.String storagePoolName ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; logable.AddCustomValue ( "StoragePoolName" , storagePoolName ) ; org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( logable , AuditLogType.UPDATE_OVF_FOR_STORAGE_POOL_FAILED ) ; }

Target:
protected void addAuditLogError ( java.lang.String storagePoolName ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; logable.addCustomValue ( "StoragePoolName" , storagePoolName ) ; org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( logable , AuditLogType.UPDATE_OVF_FOR_STORAGE_POOL_FAILED ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.Provider generateNewEntity ( ) { org.ovirt.engine.core.common.businessentities.Provider provider = new org.ovirt.engine.core.common.businessentities.Provider ( ) ; provider.setId ( generateNonExistingId ( ) ) ; provider.setName ( "brovider" ) ; provider.setUrl ( "http://brovider.com/" ) ; provider.setType ( ProviderType.OPENSTACK_NETWORK ) ; return provider ; }

Target:
protected org.ovirt.engine.core.common.businessentities.Provider < ? > generateNewEntity ( ) { org.ovirt.engine.core.common.businessentities.Provider < org.ovirt.engine.core.common.businessentities.Provider.AdditionalProperties > provider = new org.ovirt.engine.core.common.businessentities.Provider < org.ovirt.engine.core.common.businessentities.Provider.AdditionalProperties > ( ) ; provider.setId ( generateNonExistingId ( ) ) ; provider.setName ( "brovider" ) ; provider.setUrl ( "http://brovider.com/" ) ; provider.setType ( ProviderType.OPENSTACK_NETWORK ) ; org.ovirt.engine.core.common.businessentities.OpenstackNetworkProviderProperties additionalProperties = new org.ovirt.engine.core.common.businessentities.OpenstackNetworkProviderProperties ( ) ; additionalProperties.setTenantName ( "10ant" ) ; additionalProperties.setPluginType ( OpenstackNetworkPluginType.LINUX_BRIDGE ) ; provider.setAdditionalProperties ( additionalProperties ) ; return provider ; }
Source:
public java.lang.Void runInTransaction ( ) { getBackend ( ) . getResourceManager ( ) . RunVdsCommand ( VDSCommandType.CollectVdsNetworkDataAfterInstallation , new org.ovirt.engine.core.common.vdscommands.VdsIdAndVdsVDSCommandParametersBase ( host ) ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { getBackend ( ) . getResourceManager ( ) . RunVdsCommand ( VDSCommandType.CollectVdsNetworkDataAfterInstallation , new org.ovirt.engine.core.common.vdscommands.CollectHostNetworkDataVdsCommandParameters ( host ) ) ; return null ; }
Source:
private boolean hotPlugVmNicRequired ( org.ovirt.engine.core.common.businessentities.VMStatus vmStatus ) { return vmStatus == ( org.ovirt.engine.core.common.businessentities.VMStatus.Up ) ; }

Target:
private boolean hotPlugVmNicRequired ( org.ovirt.engine.core.common.businessentities.VMStatus vmStatus ) { return org.ovirt.engine.core.bll.network.vm.ActivateDeactivateVmNicCommand.VM_STATUSES_FOR_WHICH_HOT_PLUG_IS_REQUIRED.contains ( vmStatus ) ; }
Source:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > result = dao.getAll ( ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.network.NetworkDaoTest.NUM_OF_NETWORKS , result.size ( ) ) ; }

Target:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > result = dao.getAll ( ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.core.dao.network.NetworkDaoTest.NUM_OF_NETWORKS , result.size ( ) ) ; }
Source:
private javax.ws.rs.core.Response fenceManually ( org.ovirt.engine.api.model.Action action ) { org.ovirt.engine.core.common.action.FenceVdsManualyParameters params = new org.ovirt.engine.core.common.action.FenceVdsManualyParameters ( true ) ; params.setVdsId ( guid ) ; params.setStoragePoolId ( getEntity ( ) . getStoragePoolId ( ) ) ; return doAction ( VdcActionType.FenceVdsManualy , params , action ) ; }

Target:
private javax.ws.rs.core.Response fenceManually ( org.ovirt.engine.api.model.Action action ) { org.ovirt.engine.core.common.action.FenceVdsManualyParameters params = new org.ovirt.engine.core.common.action.FenceVdsManualyParameters ( true ) ; params.setVdsId ( guid ) ; params.setStoragePoolId ( getEntity ( ) . getStoragePoolId ( ) ) ; return doAction ( ActionType.FenceVdsManualy , params , action ) ; }
Source:
public static java.lang.String encode ( java.lang.String source ) { return javax.xml.bind.DatatypeConverter.printHexBinary ( source.getBytes ( java.nio.charset.Charset.forName ( "UTF-8" ) ) ) ; }

Target:
public static java.lang.String encode ( java.lang.String source ) { return javax.xml.bind.DatatypeConverter.printHexBinary ( source.getBytes ( java.nio.charset.StandardCharsets.UTF_8 ) ) ; }
Source:
private static void serializeRsdl ( org.ovirt.engine.api.model.RSDL rsdl , java.lang.String rsdlLocation ) { org.ovirt.engine.api.model.ObjectFactory factory = new org.ovirt.engine.api.model.ObjectFactory ( ) ; javax.xml.bind.JAXBElement < org.ovirt.engine.api.model.RSDL > element = factory.createRsdl ( rsdl ) ; javax.xml.bind.JAXB.marshal ( element , new java.io.File ( rsdlLocation ) ) ; }

Target:
private static void serializeRsdl ( org.ovirt.engine.api.model.Rsdl rsdl , java.lang.String rsdlLocation ) { org.ovirt.engine.api.model.ObjectFactory factory = new org.ovirt.engine.api.model.ObjectFactory ( ) ; javax.xml.bind.JAXBElement < org.ovirt.engine.api.model.Rsdl > element = factory.createRsdl ( rsdl ) ; javax.xml.bind.JAXB.marshal ( element , new java.io.File ( rsdlLocation ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc monitorCommand ( java.lang.String vmId , java.lang.String monitorCommand ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc sparsifyVolume ( java.lang.String jobId , java.util.Map < java.lang.String , java.lang.Object > volumeAddress ) ;
Source:
protected org.ovirt.engine.core.common.vdscommands.CreateVmVDSCommandParameters buildCreateVmParameters ( ) { org.ovirt.engine.core.common.vdscommands.CreateVmVDSCommandParameters parameters = new org.ovirt.engine.core.common.vdscommands.CreateVmVDSCommandParameters ( org.ovirt.engine.core.bll.RunVmCommand.getVdsId ( ) , org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) ) ; parameters.setRunInUnknownStatus ( org.ovirt.engine.core.bll.RunVmCommand.getParameters ( ) . isRunInUnknownStatus ( ) ) ; return parameters ; }

Target:
protected org.ovirt.engine.core.common.vdscommands.CreateVDSCommandParameters buildCreateVmParameters ( ) { org.ovirt.engine.core.common.vdscommands.CreateVDSCommandParameters parameters = new org.ovirt.engine.core.common.vdscommands.CreateVDSCommandParameters ( org.ovirt.engine.core.bll.RunVmCommand.getVdsId ( ) , org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) ) ; parameters.setRunInUnknownStatus ( org.ovirt.engine.core.bll.RunVmCommand.getParameters ( ) . isRunInUnknownStatus ( ) ) ; return parameters ; }
Source:
public void validateVmMemoryCantStartOnVdsBecauseOfGuestOverhead ( ) { vds.setGuestOverhead ( 256 ) ; boolean vmPassedMemoryRequirement = org.ovirt.engine.core.bll.scheduling.SlaValidator.getInstance ( ) . hasPhysMemoryToRunVM ( vds , vm , 0 ) ; org.junit.Assert.assertEquals ( vmPassedMemoryRequirement , false ) ; }

Target:
public void validateVmMemoryCantStartOnVdsBecauseOfGuestOverhead ( ) { org.mockito.Mockito.doReturn ( 256 ) . when ( vmOverheadCalculator ) . getStaticOverheadInMb ( org.mockito.Matchers.any ( ) ) ; boolean vmPassedMemoryRequirement = slaValidator.hasPhysMemoryToRunVM ( vds , vm , 0 ) ; org.junit.Assert.assertFalse ( vmPassedMemoryRequirement ) ; }
Source:
public org.ovirt.engine.core.bll.network.ManageLabeledNetworksParametersBuilder create ( org.ovirt.engine.core.bll.context.CommandContext commandContext ) { return new org.ovirt.engine.core.bll.network.ManageLabeledNetworksParametersBuilderImpl ( commandContext ) ; }

Target:
public org.ovirt.engine.core.bll.network.ManageLabeledNetworksParametersBuilder create ( org.ovirt.engine.core.bll.context.CommandContext commandContext , org.ovirt.engine.core.dao.network.InterfaceDao interfaceDao , org.ovirt.engine.core.dao.VdsStaticDao vdsStaticDao , org.ovirt.engine.core.dao.network.NetworkClusterDao networkClusterDao , org.ovirt.engine.core.dao.network.NetworkAttachmentDao networkAttachmentDao ) { return org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.bll.network.ManageLabeledNetworksParametersBuilderImpl.class ) ; }
Source:
public void addImport ( org.ovirt.api.metamodel.tool.JavaClassName newClassName ) { addImport ( newClassName.getPackageName ( ) , newClassName.getSimpleName ( ) ) ; }

Target:
public void addImport ( org.ovirt.api.metamodel.tool.JavaClassName newClassName ) { java.lang.String newPackageName = newClassName.getPackageName ( ) ; if ( newPackageName != null ) { addImport ( newPackageName , newClassName.getSimpleName ( ) ) ; } }
Source:
private void isAutoAssign_EntityChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { if ( ( getIsAutoAssign ( ) . getEntity ( ) ) == false ) { getDefaultHost ( ) . setIsChangable ( true ) ; } }

Target:
private void isAutoAssign_EntityChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { if ( ( getIsAutoAssign ( ) . getEntity ( ) ) == false ) { getDefaultHost ( ) . setIsChangeable ( true ) ; } }
Source:
public void setUsbAutoShare ( boolean usbAutoShare ) { this . usbAutoShare = usbAutoShare ; getUsbAutoShareChangedEvent ( ) . raise ( this , EventArgs.EMPTY ) ; }

Target:
public void setUsbAutoShare ( boolean usbAutoShare ) { this . consoleOptions.setUsbAutoShare ( usbAutoShare ) ; getUsbAutoShareChangedEvent ( ) . raise ( this , EventArgs.EMPTY ) ; }
Source:
public java.lang.String getoption_name ( ) { return this . name ; }

Target:
public java.lang.String getOptionName ( ) { return this . name ; }
Source:
public void setInSync ( boolean inSync ) { this . inSync = inSync ; }

Target:
public boolean isInSync ( ) { return ( isAttached ( ) ) && ( ( getAttachedToNic ( ) . getEntity ( ) . getNetworkImplementationDetails ( ) ) != null ) ? getAttachedToNic ( ) . getEntity ( ) . getNetworkImplementationDetails ( ) . isInSync ( ) : true ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > heartBeat ( ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > createVolumeContainer ( java.lang.String sdUUID , java.lang.String imgGUID , java.lang.String size , int volFormat , int diskType , java.lang.String volUUID , java.lang.String descr , java.lang.String srcImgGUID , java.lang.String srcVolUUID ) ;
Source:
protected void Perform ( ) { org.ovirt.engine.core.bll.StopVmCommand.destroyVm ( ) ; org.ovirt.engine.core.bll.StopVmCommand.setSucceeded ( true ) ; }

Target:
protected void perform ( ) { org.ovirt.engine.core.bll.StopVmCommand.destroyVm ( ) ; org.ovirt.engine.core.bll.StopVmCommand.setSucceeded ( true ) ; }
Source:
protected void beforeUiCommonInitEvent ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalLoginModel loginModel ) { org.ovirt.engine.ui.userportal.uicommon.model.UserPortalModelInitEvent.fire ( eventBus ) ; }

Target:
protected void beforeLogin ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalLoginModel loginModel ) { org.ovirt.engine.ui.userportal.uicommon.model.UserPortalModelInitEvent.fire ( eventBus ) ; }
Source:
private void testRemoveNetworkAndReassignRoles ( ) { underTest.removeNetworkAndReassignRoles ( networkCluster ) ; org.mockito.Mockito.verify ( networkClusterDao ) . remove ( org.ovirt.engine.core.bll.network.cluster.NetworkClusterHelperTest.CLUSTER_ID , org.ovirt.engine.core.bll.network.cluster.NetworkClusterHelperTest.NETWORK_ID ) ; org.mockito.Mockito.verify ( networkAttachmentDao ) . removeByNetworkId ( org.ovirt.engine.core.bll.network.cluster.NetworkClusterHelperTest.NETWORK_ID ) ; }

Target:
private void testRemoveNetworkAndReassignRoles ( ) { underTest.removeNetworkAndReassignRoles ( networkCluster ) ; org.mockito.Mockito.verify ( networkClusterDao ) . remove ( org.ovirt.engine.core.bll.network.cluster.NetworkClusterHelperTest.CLUSTER_ID , org.ovirt.engine.core.bll.network.cluster.NetworkClusterHelperTest.NETWORK_ID1 ) ; org.mockito.Mockito.verify ( networkAttachmentDao ) . removeByNetworkId ( org.ovirt.engine.core.bll.network.cluster.NetworkClusterHelperTest.NETWORK_ID1 ) ; }
Source:
public void addMethods ( java.util.List < org.ovirt.api.metamodel.concepts.Method > actions ) { this . methods.addAll ( actions ) ; }

Target:
public void addMethod ( org.ovirt.api.metamodel.concepts.Method newMethod ) { methods.add ( newMethod ) ; methods.sort ( java.util.Comparator.comparing ( Method :: getName ) ) ; }
Source:
public void canDoActionFailsNameExists ( ) { org.mockito.Mockito.when ( sdsDao.getByName ( sd.getName ( ) ) ) . thenReturn ( new org.ovirt.engine.core.common.businessentities.StorageDomainStatic ( ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_STORAGE_DOMAIN_NAME_ALREADY_EXIST ) ; }

Target:
public void validateFailsNameExists ( ) { org.mockito.Mockito.when ( sdsDao.getByName ( sd.getName ( ) ) ) . thenReturn ( new org.ovirt.engine.core.common.businessentities.StorageDomainStatic ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_STORAGE_DOMAIN_NAME_ALREADY_EXIST ) ; }
Source:
public void updatesUnavailableForUpgradingOvirtNode ( ) { org.mockito.Mockito.when ( host.getVdsType ( ) ) . thenReturn ( VDSType.oVirtNode ) ; org.junit.Assert.assertThat ( validator.updatesAvailable ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
private void mockOvirtNode ( ) { org.mockito.Mockito.when ( host.isOvirtNode ( ) ) . thenReturn ( true ) ; }
Source:
org.apache.sshd.SshClient _createSshClient ( ) { return org.apache.sshd.SshClient.setUpDefaultClient ( ) ; }

Target:
org.apache.sshd.SshClient createSshClient ( ) { return org.apache.sshd.SshClient.setUpDefaultClient ( ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.NetworkCluster getOldNetworkCluster ( ) { if ( ( oldNetworkCluster ) == null ) { oldNetworkCluster = org.ovirt.engine.core.bll.network.cluster.UpdateNetworkOnClusterCommand.getNetworkClusterDAO ( ) . get ( org.ovirt.engine.core.bll.network.cluster.UpdateNetworkOnClusterCommand.getNetworkCluster ( ) . getId ( ) ) ; } return oldNetworkCluster ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.NetworkCluster getOldNetworkCluster ( ) { if ( ( oldNetworkCluster ) == null ) { oldNetworkCluster = org.ovirt.engine.core.bll.network.cluster.UpdateNetworkOnClusterCommand.getNetworkClusterDao ( ) . get ( org.ovirt.engine.core.bll.network.cluster.UpdateNetworkOnClusterCommand.getNetworkCluster ( ) . getId ( ) ) ; } return oldNetworkCluster ; }
Source:
private void setUpEntityQueryExpectations ( java.util.List < ? super org.ovirt.engine.api.model.NetworkLabel > result ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetNetworkLabelsByHostNicId , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendHostNicLabelResourceTest.NIC_ID } , result ) ; }

Target:
private void setUpEntityQueryExpectations ( java.util.List < ? super org.ovirt.engine.api.model.NetworkLabel > result ) throws java.lang.Exception { setUpEntityQueryExpectations ( QueryType.GetNetworkLabelsByHostNicId , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendHostNicLabelResourceTest.NIC_ID } , result ) ; }
Source:
public void ExecuteCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { setLastExecutedCommand ( command ) ; if ( command == ( getOpenDocumentationCommand ( ) ) ) { onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "OpenDocumentation" ) ) ; } }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { setLastExecutedCommand ( command ) ; if ( command == ( getOpenDocumentationCommand ( ) ) ) { onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "OpenDocumentation" ) ) ; } }
Source:
public org.ovirt.engine.core.bll.ValidationResult isDomainExist ( ) { if ( ( storageDomain ) == null ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAIN_NOT_EXIST ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult isDomainExist ( ) { if ( ( storageDomain ) == null ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_STORAGE_DOMAIN_NOT_EXIST ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
public void testSave ( ) { dao.save ( newOption ) ; org.ovirt.engine.core.common.businessentities.VdcOption result = dao.getByNameAndVersion ( newOption.getoption_name ( ) , newOption.getversion ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( newOption , result ) ; }

Target:
public void testSave ( ) { dao.save ( newOption ) ; org.ovirt.engine.core.common.businessentities.VdcOption result = dao.getByNameAndVersion ( newOption.getOptionName ( ) , newOption.getVersion ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( newOption , result ) ; }
Source:
public void testUnknownQuery ( ) throws java.lang.Exception { org.ovirt.engine.core.bll.QueriesCommandBase < ? > query = mockQuery ( ) ; org.junit.Assert.assertEquals ( "Wrong type for 'ThereIsNoSuchQuery' " , QueryType.Unknown , org.ovirt.engine.core.bll.TestHelperQueriesCommandType.getQueryTypeFieldValue ( query ) ) ; }

Target:
public void testUnknownQuery ( ) throws java.lang.Exception { org.ovirt.engine.core.bll.QueriesCommandBase < ? > query = mockQuery ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( QueryType.Unknown , org.ovirt.engine.core.bll.TestHelperQueriesCommandType.getQueryTypeFieldValue ( query ) , "Wrong type for 'ThereIsNoSuchQuery'" ) ; }
Source:
public void calculateNetworkImplementationDetailsNoNetworkName ( ) { testIface.setNetworkName ( null ) ; org.junit.Assert.assertNull ( "Network implementation details should not be filled." , initMocksForNetworkImplementationDetailsUtils ( null , null , testIface ) . calculateNetworkImplementationDetails ( testIface , null ) ) ; }

Target:
public void calculateNetworkImplementationDetailsNoNetworkName ( ) { testIface.setNetworkName ( null ) ; org.junit.jupiter.api.Assertions.assertNull ( initMocksForNetworkImplementationDetailsUtils ( null , null , testIface ) . calculateNetworkImplementationDetails ( testIface , null ) , "Network implementation details should not be filled." ) ; }
Source:
public void shouldCreateAsMuchNumaNodesAsVirtualCores ( ) { vm.setNumOfSockets ( 1 ) ; vm.setCpuPerSocket ( 2 ) ; assertTrue ( org.ovirt.engine.core.bll.numa.vm.NumaValidator.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) . isValid ( ) ) ; }

Target:
public void shouldCreateLessNumaNodesAsVirtualCores ( ) { vm.setNumOfSockets ( 1 ) ; vm.setCpuPerSocket ( 3 ) ; org.junit.Assert.assertTrue ( org.ovirt.engine.core.bll.numa.vm.NumaValidator.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) . isValid ( ) ) ; }
Source:
org.ovirt.engine.core.common.errors.VdcBllMessages validate ( org.ovirt.engine.core.common.businessentities.VDS vds , java.lang.StringBuilder sb , boolean isMigrate ) ;

Target:
org.ovirt.engine.core.common.errors.VdcBllMessages validate ( org.ovirt.engine.core.common.businessentities.VDS vds , java.lang.StringBuilder sb , boolean isMigrate , java.util.List < org.ovirt.engine.core.compat.Guid > vdsBlackList ) ;
Source:
protected boolean validateImageNotInTemplate ( ) { return ( org.ovirt.engine.core.bll.RemoveSnapshotCommand.getVmTemplateDAO ( ) . get ( getRepresentativeSourceImageId ( ) ) ) == null ; }

Target:
protected boolean validateImageNotInTemplate ( ) { return ( org.ovirt.engine.core.bll.RemoveSnapshotCommand.getVmTemplateDao ( ) . get ( getRepresentativeSourceImageId ( ) ) ) == null ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeBrickAdd ( java.lang.String volumeName , java.lang.String [ ] bricks , int replicaCount , int stripeCount ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > verifyUntrustedVolume ( java.lang.String sdID , java.lang.String spID , java.lang.String imageID , java.lang.String volumeID ) ;
Source:
public void testGetMasterStorageDomainIdForPool ( ) { org.ovirt.engine.core.compat.Guid result = dao.getMasterStorageDomainIdForPool ( new org.ovirt.engine.core.compat.Guid ( "6d849ebf-755f-4552-ad09-9a090cda105d" ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.StorageDomainDaoTest.EXISTING_DOMAIN_ID , result ) ; }

Target:
public void testGetStorageDomainByTypeForStoragePoolId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getStorageDomains ( FixturesTool.DATA_CENTER , StorageDomainType.Master ) ; assertGetResult ( result.get ( 0 ) ) ; }
Source:
public void canDoActionUpdateWipeAfterDeleteVmUp ( ) { canDoActionUpdateWipeAfterDelete ( VMStatus.Up ) ; }

Target:
public void validateUpdateWipeAfterDeleteVmUp ( ) { validateUpdateWipeAfterDelete ( VMStatus.Up ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > call ( ) throws java.lang.Exception { return new org.ovirt.engine.core.vdsbroker.jsonrpc.FutureMap ( client , request ) . withResponseKey ( "status" ) ; }

Target:
public java.util.Map < java.lang.String , java.lang.Object > call ( ) throws java.lang.Exception { updateHeartbeatPolicy ( false ) ; return new org.ovirt.engine.core.vdsbroker.jsonrpc.FutureMap ( client , request ) . withResponseKey ( "status" ) ; }
Source:
protected org.ovirt.engine.core.common.action.VdcReturnValueBase performOvfUpdateForStoragePool ( org.ovirt.engine.core.compat.Guid storagePoolId ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( VdcActionType.ProcessOvfUpdateForStoragePool , new org.ovirt.engine.core.common.action.StoragePoolParametersBase ( storagePoolId ) ) ; }

Target:
protected org.ovirt.engine.core.common.action.VdcReturnValueBase performOvfUpdateForStoragePool ( org.ovirt.engine.core.compat.Guid storagePoolId ) { org.ovirt.engine.core.common.action.ProcessOvfUpdateForStoragePoolParameters parameters = new org.ovirt.engine.core.common.action.ProcessOvfUpdateForStoragePoolParameters ( storagePoolId ) ; return org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( VdcActionType.ProcessOvfUpdateForStoragePool , parameters ) ; }
Source:
protected void EndSuccessfully ( ) { EndActionOnAllImageGroups ( ) ; endVmRelatedOps ( ) ; setSucceeded ( true ) ; }

Target:
protected void EndSuccessfully ( ) { EndImportCommand ( ) ; }
Source:
public void checkInvalidAddress ( ) { org.junit.Assert.assertFalse ( underTest.test ( generateVdsNetworkInterface ( getINVALID ( ) ) ) ) ; }

Target:
public void checkInvalidAddress ( ) { org.junit.Assert.assertFalse ( underTest.test ( generateVdsNetworkInterface ( org.ovirt.engine.core.utils.network.predicate.AbstractVdsNetworkInterfacePredicateTest.INVALID ) ) ) ; }
Source:
public void testGetHostsForStorageOperation ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result = dao.getHostsForStorageOperation ( null , false ) ; org.junit.Assert.assertNotNull ( result ) ; assertGetHostsForStorageOperationNonGluster ( result ) ; }

Target:
public void testGetHostsForStorageOperation ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result = dao.getHostsForStorageOperation ( null , false ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; assertGetHostsForStorageOperationNonGluster ( result ) ; }
Source:
public void onFailed ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.removeAllCommandsInHierarchy ( cmdId ) ; }

Target:
public void onSucceeded ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { commandCoordinatorUtil.removeAllCommandsInHierarchy ( cmdId ) ; }
Source:
public java.util.HashMap < java.lang.String , java.util.HashMap < java.lang.String , java.lang.String > > getFencingOptionMappingMap2 ( ) { return org.ovirt.engine.core.utils.pm.VdsFenceOptions.fencingOptionMapping ; }

Target:
public java.util.HashMap < java.lang.String , java.util.HashMap < java.lang.String , java.lang.String > > getFencingOptionMappingMap ( ) { return org.ovirt.engine.core.utils.pm.VdsFenceOptions.fencingOptionMapping ; }
Source:
public void testExecuteQueryCommnadFails ( ) { getQuery ( ) . executeQueryCommand ( ) ; java.lang.String serverFingerprint = getQuery ( ) . getQueryReturnValue ( ) . getReturnValue ( ) ; org.junit.Assert.assertNull ( serverFingerprint ) ; }

Target:
public void testExecuteQueryCommnadFails ( ) { getQuery ( ) . executeQueryCommand ( ) ; java.lang.String serverFingerprint = getQuery ( ) . getQueryReturnValue ( ) . getReturnValue ( ) ; org.junit.jupiter.api.Assertions.assertNull ( serverFingerprint ) ; }
Source:
public void testGetTemplatesForNotRelatedStorageDomain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.OvfEntityData > ovfEntityDataList = dao.getAllForStorageDomainByEntityType ( FixturesTool.STORAGE_DOAMIN_NFS2_2 , VmEntityType.TEMPLATE ) ; org.junit.Assert.assertTrue ( "No Template should be fetched for the specified storage domain" , ovfEntityDataList.isEmpty ( ) ) ; }

Target:
public void testGetTemplatesForNotRelatedStorageDomain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.OvfEntityData > ovfEntityDataList = dao.getAllForStorageDomainByEntityType ( FixturesTool.STORAGE_DOMAIN_NFS2_2 , VmEntityType.TEMPLATE ) ; org.junit.Assert.assertTrue ( "No Template should be fetched for the specified storage domain" , ovfEntityDataList.isEmpty ( ) ) ; }
Source:
private void assertNetworkRemoved ( org.ovirt.engine.core.bll.SetupNetworksHelper helper , java.lang.String expectedNetworkName ) { junit.framework.Assert.assertTrue ( java.text.MessageFormat.format ( "Expected network '{0}' to be removed but it wasn't. Removed networks: {1}" , expectedNetworkName , helper.getRemoveNetworks ( ) ) , helper.getRemoveNetworks ( ) . contains ( expectedNetworkName ) ) ; }

Target:
private void assertNetworkRemoved ( org.ovirt.engine.core.bll.SetupNetworksHelper helper , java.lang.String expectedNetworkName ) { junit.framework.Assert.assertTrue ( java.text.MessageFormat.format ( "Expected network ''{0}'' to be removed but it wasn''t. Removed networks: {1}" , expectedNetworkName , helper.getRemoveNetworks ( ) ) , helper.getRemoveNetworks ( ) . contains ( expectedNetworkName ) ) ; }
Source:
public static void mockVdsNumaNodeDao ( final org.ovirt.engine.core.dao.VdsNumaNodeDao vdsNumaNodeDao , java.util.List < org.ovirt.engine.core.common.businessentities.VdsNumaNode > vdsNumaNodes ) { org.mockito.Mockito.when ( vdsNumaNodeDao.getAllVdsNumaNodeByVdsId ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( vdsNumaNodes ) ; }

Target:
public static void mockVdsNumaNodeDao ( final org.ovirt.engine.core.dao.VdsNumaNodeDao vdsNumaNodeDao , java.util.List < org.ovirt.engine.core.common.businessentities.VdsNumaNode > vdsNumaNodes ) { org.mockito.Mockito.when ( vdsNumaNodeDao.getAllVdsNumaNodeByVdsId ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( vdsNumaNodes ) ; }
Source:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; return performAction ( VdcActionType.RemoveVfsConfigNetwork , new org.ovirt.engine.core.common.action.VfsConfigLabelParameters ( parent.getNicId ( ) , id ) ) ; }

Target:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; return performAction ( VdcActionType.RemoveVfsConfigNetwork , new org.ovirt.engine.core.common.action.VfsConfigNetworkParameters ( parent.getNicId ( ) , guid ) ) ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmDiskListModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.VmDiskListModel ) ( result.getState ( ) ) ) ; localModel.getWindow ( ) . StopProgress ( ) ; Cancel ( ) ; }

Target:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmDiskListModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.VmDiskListModel ) ( result.getState ( ) ) ) ; localModel.getWindow ( ) . StopProgress ( ) ; Cancel ( ) ; }
Source:
public void search ( ) { if ( ( getEntity ( ) ) != null ) { super . search ( ) ; } }

Target:
public org.ovirt.engine.ui.uicommonweb.UICommand getRefreshSessionsCommand ( ) { return refreshSessionsCommand ; }
Source:
public static java.util.List < java.lang.String > getChangedFieldsForStatus ( org.ovirt.engine.core.common.businessentities.VmStatic source , org.ovirt.engine.core.common.businessentities.VmStatic destination , org.ovirt.engine.core.common.businessentities.VMStatus status ) { return org.ovirt.engine.core.bll.VmHandler.mUpdateVmsStatic.getChangedFieldsForStatus ( source , destination , status ) ; }

Target:
public static java.util.List < java.lang.String > getChangedFieldsForStatus ( org.ovirt.engine.core.common.businessentities.VmStatic source , org.ovirt.engine.core.common.businessentities.VmStatic destination , org.ovirt.engine.core.common.businessentities.VMStatus status ) { return org.ovirt.engine.core.bll.VmHandler.updateVmsStatic.getChangedFieldsForStatus ( source , destination , status ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { spice.setWANColorDepth ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.WanColorDepth ) ( returnValue ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { spice.getOptions ( ) . setWanColorDepth ( ( ( org.ovirt.engine.core.common.console.ConsoleOptions.WanColorDepth ) ( returnValue ) ) ) ; }
Source:
public void setCustomValuesOverridesExistingValues ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase underTest = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.TestAuditLogableBase ( ) ; final java.lang.String key = "foo" ; underTest.appendCustomValue ( key , "test value" , null ) ; doSetCustomValuesTest ( underTest , key ) ; }

Target:
public void setCustomValues ( ) { final java.lang.String key = "foo" ; doSetCustomValuesTest ( b , key ) ; }
Source:
public int compare ( org.ovirt.engine.ui.uicommonweb.models.storage.LunModel o1 , org.ovirt.engine.ui.uicommonweb.models.storage.LunModel o2 ) { return org.ovirt.engine.core.common.businessentities.comparators.LexoNumericComparator.comp ( getRawValue ( o1 ) , getRawValue ( o2 ) ) ; }

Target:
public void makeSortable ( ) { makeSortable ( java.util.Comparator.comparing ( this :: getRawValue , new org.ovirt.engine.core.common.businessentities.comparators.LexoNumericComparator ( ) ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VnicProfileView > ( ) ; } return source ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VdsNumaNode > ( ) ; } return source ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.tags.TagListModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.tags.TagListModel ) ( result.getState ( ) ) ) ; localModel.PostOnSave ( result.getReturnValue ( ) ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.tags.TagListModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.tags.TagListModel ) ( result.getState ( ) ) ) ; localModel.postOnSave ( result.getReturnValue ( ) ) ; }
Source:
public static void RunMultipleAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , final org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback callback , final java.lang.Object state ) { org.ovirt.engine.ui.frontend.Frontend.RunMultipleAction ( actionType , parameters , false , callback , state ) ; }

Target:
public void runMultipleAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , final org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback callback , final java.lang.Object state ) { runMultipleAction ( actionType , parameters , false , callback , state ) ; }
Source:
public static < T > org.ovirt.engine.core.utils.MockConfigRule.MockConfigDescriptor < T > mockConfig ( org.ovirt.engine.core.common.config.ConfigValues value , T returnValue ) { return new org.ovirt.engine.core.utils.MockConfigRule.MockConfigDescriptor < T > ( value , org.ovirt.engine.core.common.config.Config.DefaultConfigurationVersion , returnValue ) ; }

Target:
public static < T > org.ovirt.engine.core.utils.MockConfigRule.MockConfigDescriptor < T > mockConfig ( org.ovirt.engine.core.common.config.ConfigValues value , T returnValue ) { return new org.ovirt.engine.core.utils.MockConfigRule.MockConfigDescriptor < T > ( value , org.ovirt.engine.core.common.config.ConfigCommon.defaultConfigurationVersion , returnValue ) ; }
Source:
public void setSelinuxEnforceMode ( java.lang.String newMode ) { if ( ! ( org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( selinuxEnforceMode , newMode ) ) ) { selinuxEnforceMode = newMode ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "selinuxEnforceMode" ) ) ; } }

Target:
public void setSelinuxEnforceMode ( java.lang.String newMode ) { if ( ! ( java.util.Objects.equals ( selinuxEnforceMode , newMode ) ) ) { selinuxEnforceMode = newMode ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "selinuxEnforceMode" ) ) ; } }
Source:
public void execute ( ) { for ( org.ovirt.engine.ui.webadmin.plugin.Plugin plugin : getPlugins ( ) ) { initPlugin ( plugin ) ; } }

Target:
private void initAllPlugins ( ) { for ( org.ovirt.engine.ui.webadmin.plugin.Plugin plugin : getPlugins ( ) ) { initPlugin ( plugin ) ; } org.ovirt.engine.ui.webadmin.plugin.UiPluginsInitializedEvent.fire ( this ) ; }
Source:
private void addTextAlert ( final org.ovirt.engine.ui.webadmin.section.main.presenter.tab.host.SubTabHostGeneralInfoPresenter.ViewDef view , final java.lang.String text ) { final com.google.gwt.user.client.ui.Label label = new com.google.gwt.user.client.ui.Label ( text ) ; view.addAlert ( label ) ; }

Target:
private void addTextAlert ( final org.ovirt.engine.ui.webadmin.section.main.presenter.tab.host.SubTabHostGeneralInfoPresenter.ViewDef view , final java.lang.String text , org.ovirt.engine.ui.webadmin.widget.alert.InLineAlertWidget.AlertType type ) { final com.google.gwt.user.client.ui.Label label = new com.google.gwt.user.client.ui.Label ( text ) ; view.addAlert ( label , type ) ; }
Source:
public void testWindowsTimeZones ( ) { java.util.Map < java.lang.String , java.lang.String > map = org.ovirt.engine.core.common.TimeZoneTypeTest.windows.getTimeZoneList ( ) ; org.junit.Assert.assertNotNull ( map ) ; org.junit.Assert.assertEquals ( "(GMT) GMT Standard Time" , map.get ( "GMT Standard Time" ) ) ; }

Target:
public void testWindowsTimeZones ( ) { java.util.Map < java.lang.String , java.lang.String > map = org.ovirt.engine.core.common.TimeZoneTypeTest.windows.getTimeZoneList ( ) ; org.junit.jupiter.api.Assertions.assertNotNull ( map ) ; org.junit.jupiter.api.Assertions.assertEquals ( "(GMT) GMT Standard Time" , map.get ( "GMT Standard Time" ) ) ; }
Source:
private void addAddress ( org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct map , java.lang.String address ) { if ( org.apache.commons.lang.StringUtils.isNotBlank ( address ) ) { map.add ( "address" , org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStringUtils.string2Map ( org.ovirt.engine.core.vdsbroker.vdsbroker.HotPlugNicVDSCommand.getParameters ( ) . getVmDevice ( ) . getAddress ( ) ) ) ; } }

Target:
private void addAddress ( org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct map , java.lang.String address ) { if ( org.apache.commons.lang.StringUtils.isNotBlank ( address ) ) { map.add ( VdsProperties.Address , org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStringUtils.string2Map ( org.ovirt.engine.core.vdsbroker.vdsbroker.HotPlugNicVDSCommand.getParameters ( ) . getVmDevice ( ) . getAddress ( ) ) ) ; } }
Source:
public java.util.List < org.ovirt.engine.core.bll.quota.QuotaConsumptionParameter > getQuotaVdsConsumptionParameters ( ) { java.util.List < org.ovirt.engine.core.bll.quota.QuotaConsumptionParameter > list = new java.util.ArrayList < org.ovirt.engine.core.bll.quota.QuotaConsumptionParameter > ( ) ; list.add ( new org.ovirt.engine.core.bll.quota.QuotaSanityParameter ( getQuotaId ( ) , null ) ) ; return list ; }

Target:
public java.util.List < org.ovirt.engine.core.bll.quota.QuotaConsumptionParameter > getQuotaVdsConsumptionParameters ( ) { return java.util.Arrays.< org.ovirt.engine.core.bll.quota.QuotaConsumptionParameter > asList ( new org.ovirt.engine.core.bll.quota.QuotaSanityParameter ( getQuotaId ( ) , null ) ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotDisabledNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; usb.setType ( UsbType.NATIVE ) ; org.junit.Assert.assertEquals ( UsbPolicy.DISABLED , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED ) ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotDisabledNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; usb.setType ( UsbType.NATIVE ) ; org.junit.jupiter.api.Assertions.assertEquals ( UsbPolicy.DISABLED , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED ) ) ; }
Source:
protected void setStatus ( ) { org.ovirt.engine.core.bll.Backend.getInstance ( ) . getResourceManager ( ) . RunVdsCommand ( VDSCommandType.SetVdsStatus , new org.ovirt.engine.core.common.vdscommands.SetVdsStatusVDSCommandParameters ( org.ovirt.engine.core.bll.pm.FenceVdsBaseCommand.getVdsId ( ) , org.ovirt.engine.core.common.businessentities.VDSStatus.Reboot ) ) ; org.ovirt.engine.core.bll.pm.FenceVdsBaseCommand.runSleepOnReboot ( ) ; }

Target:
protected void setStatus ( ) { setVdsStatus ( VDSStatus.Reboot ) ; org.ovirt.engine.core.bll.pm.FenceVdsBaseCommand.runSleepOnReboot ( ) ; }
Source:
public org.ovirt.engine.api.v3.servers.V3LabelsServer getLabelsResource ( ) { return new org.ovirt.engine.api.v3.servers.V3LabelsServer ( getDelegate ( ) . getLabelsResource ( ) ) ; }

Target:
public org.ovirt.engine.api.v3.servers.V3LabelsServer getLabelsResource ( ) { return new org.ovirt.engine.api.v3.servers.V3LabelsServer ( getDelegate ( ) . getNetworkLabelsResource ( ) ) ; }
Source:
public void setConnection ( org.ovirt.engine.core.common.businessentities.StorageServerConnections value ) { connection = value ; }

Target:
public java.lang.String getStoragePoolName ( ) { return storagePoolName ; }