auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > getPoolDomains ( ) { if ( ( poolDomains ) == null ) { poolDomains = org.ovirt.engine.core.bll.AddVmCommand.getStorageDomainDAO ( ) . getAllForStoragePool ( vmDisksSource.getStoragePoolId ( ) ) ; } return poolDomains ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > getPoolDomains ( ) { if ( ( poolDomains ) == null ) { poolDomains = org.ovirt.engine.core.bll.AddVmCommand.getStorageDomainDao ( ) . getAllForStoragePool ( vmDisksSource.getStoragePoolId ( ) ) ; } return poolDomains ; }
Source:
public static java.lang.String getPath ( java.lang.String helpTag ) { java.lang.String path = null ; if ( ( helpTag != null ) && ( ( org.ovirt.engine.ui.common.uicommon.DocumentationPathTranslator.documentationPathMap ) != null ) ) { path = org.ovirt.engine.ui.common.uicommon.DocumentationPathTranslator.documentationPathMap.get ( helpTag ) ; } return path ; }

Target:
public static java.lang.String getPath ( java.lang.String helpTag ) { java.lang.String path = null ; if ( ( helpTag != null ) && ( ( org.ovirt.engine.ui.common.uicommon.ContextSensitiveHelpManager.documentationPathMap ) != null ) ) { path = org.ovirt.engine.ui.common.uicommon.ContextSensitiveHelpManager.documentationPathMap.get ( helpTag ) ; } return path ; }
Source:
public void testValidateQosOverriddenInterfacesWhenNoAttachmentsPassed ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > networkAttachments = java.util.Collections.emptyList ( ) ; org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator validator = createHostSetupNetworkValidator ( networkAttachments ) ; org.junit.Assert.assertThat ( validator.validateQosOverriddenInterfaces ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testValidateQosNotPartiallyConfiguredWhenNotUpdatingAttachments ( ) { org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator validator = new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorTest.HostSetupNetworksValidatorBuilder ( ) . build ( ) ; java.util.Collection < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > networkAttachments = java.util.Collections.emptyList ( ) ; org.junit.Assert.assertThat ( validator.validateQosNotPartiallyConfigured ( networkAttachments ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void testReplaceInvalidEmptyStringMacAddressesWithNullDoReplaceEmptyString ( ) { org.mockito.Mockito.when ( vmNetworkInterfaceMock.getMacAddress ( ) ) . thenReturn ( "" ) ; underTest.replaceInvalidEmptyStringMacAddressesWithNull ( java.util.Collections.singletonList ( vmNetworkInterfaceMock ) ) ; org.mockito.Mockito.verify ( vmNetworkInterfaceMock ) . setMacAddress ( org.mockito.Mockito.eq ( null ) ) ; }

Target:
public void testReplaceInvalidEmptyStringMacAddressesWithNullDoReplaceEmptyString ( ) { org.mockito.Mockito.when ( vmNetworkInterfaceMock.getMacAddress ( ) ) . thenReturn ( "" ) ; underTest.replaceInvalidEmptyStringMacAddressesWithNull ( java.util.Collections.singletonList ( vmNetworkInterfaceMock ) ) ; org.mockito.Mockito.verify ( vmNetworkInterfaceMock ) . setMacAddress ( org.mockito.ArgumentMatchers.eq ( null ) ) ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.vms.MigrateModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.MigrateModel ) ( result.getState ( ) ) ) ; localModel.stopProgress ( ) ; cancel ( ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.core.common.businessentities.VDSGroup cluster = ( ( org.ovirt.engine.core.common.businessentities.VDSGroup ) ( returnValue ) ) ; if ( cluster != null ) { powerAction ( actionName , title , message , cluster.isOptionalReasonRequired ( ) ) ; } }
Source:
public final void onBrowserEvent ( org.ovirt.engine.ui.common.widget.table.cell.Context context , com.google.gwt.dom.client.Element parent , C value , com.google.gwt.dom.client.NativeEvent event , com.google.gwt.cell.client.ValueUpdater < C > valueUpdater ) { onBrowserEvent ( context , parent , value , null , event , valueUpdater ) ; }

Target:
public final void render ( org.ovirt.engine.ui.common.widget.table.cell.Context context , C value , com.google.gwt.safehtml.shared.SafeHtmlBuilder sb ) { java.lang.String id = org.ovirt.engine.ui.common.utils.ElementIdUtils.createTableCellElementId ( getElementIdPrefix ( ) , getColumnId ( ) , context ) ; render ( context , value , sb , id ) ; }
Source:
public void validNetworkWhenNoPortMirroring ( ) throws java.lang.Exception { portMirroringTest ( ValidationResult.VALID , "net" , false ) ; }

Target:
public void validNetworkWhenPortMirroring ( ) throws java.lang.Exception { portMirroringTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , "net" , true ) ; }
Source:
java.util.concurrent.Future < java.util.Map < java.lang.String , java.lang.Object > > setupNetworks ( org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct networks , org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct bonding , org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct options ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc hotUnplugNic ( java.util.Map info ) ;
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.storage.GlusterStorageModel object ) { org.ovirt.engine.ui.webadmin.section.main.view.popup.storage.GlusterStorageView.Driver.driver.edit ( object ) ; pathExampleLabel.setVisible ( ( ( object.getPath ( ) . getIsAvailable ( ) ) && ( object.getPath ( ) . getIsChangable ( ) ) ) ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.storage.GlusterStorageModel object ) { driver.edit ( object ) ; pathExampleLabel.setVisible ( ( ( object.getPath ( ) . getIsAvailable ( ) ) && ( object.getPath ( ) . getIsChangable ( ) ) ) ) ; }
Source:
private boolean validateMtu ( java.util.Collection < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > attachmentsToConfigure ) { return validateMtu ( getNetworksOnNics ( attachmentsToConfigure ) ) ; }

Target:
private boolean isNicNameAndNicIdIncoherent ( org.ovirt.engine.core.compat.Guid nicId , java.lang.String nicName ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface interfaceById = existingIfacesById.get ( nicId ) ; org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface interfaceByName = existingInterfaces.get ( nicName ) ; return ! ( java.util.Objects.equals ( interfaceById , interfaceByName ) ) ; }
Source:
public void setBootProtocol ( org.ovirt.engine.core.common.businessentities.network.NetworkBootProtocol value ) { if ( ( bootProtocol ) != value ) { bootProtocol = value ; BootProtocolChanged ( ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "BootProtocol" ) ) ; } }

Target:
public void setBootProtocol ( org.ovirt.engine.core.common.businessentities.network.NetworkBootProtocol value ) { if ( ( bootProtocol ) != value ) { bootProtocol = value ; BootProtocolChanged ( ) ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "BootProtocol" ) ) ; } }
Source:
private static java.util.Collection < org.ovirt.engine.core.compat.Guid > getVdsConnectedToPool ( org.ovirt.engine.core.compat.Guid storagePoolId ) { return org.ovirt.engine.core.common.businessentities.Entities.getIds ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDao ( ) . getAllForStoragePoolAndStatuses ( storagePoolId , org.ovirt.engine.core.vdsbroker.irsbroker.IrsProxyData.vdsConnectedToPoolStatuses ) ) ; }

Target:
private boolean isStoragePoolMemoryBackend ( org.ovirt.engine.core.common.businessentities.StoragePool pool ) { return org.ovirt.engine.core.common.FeatureSupported.storagePoolMemoryBackend ( pool.getCompatibilityVersion ( ) ) ; }
Source:
public static java.util.ArrayList < org.ovirt.engine.core.common.businessentities.AsyncTaskStatus > pollTasks ( java.util.ArrayList < org.ovirt.engine.core.compat.Guid > taskIdList ) { return org.ovirt.engine.core.bll.tasks.TaskManagerUtil.getAsyncTaskManager ( ) . pollTasks ( taskIdList ) ; }

Target:
public static java.util.ArrayList < org.ovirt.engine.core.common.businessentities.AsyncTaskStatus > pollTasks ( java.util.ArrayList < org.ovirt.engine.core.compat.Guid > taskIdList ) { return org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.getAsyncTaskManager ( ) . pollTasks ( taskIdList ) ; }
Source:
public void beforeUpdates ( ) { if ( ( getInstanceTypeManager ( ) ) != null ) { getInstanceTypeManager ( ) . deactivate ( ) ; } }

Target:
public void onSuccess ( java.util.List < java.lang.String > images ) { setImagesToModel ( getModel ( ) , images ) ; }
Source:
private org.ovirt.engine.core.vdsbroker.VdsMonitor getMonitor ( org.ovirt.engine.core.compat.Guid vdsId ) { return org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . GetVdsManager ( vdsId ) . getVdsMonitor ( ) ; }

Target:
private org.ovirt.engine.core.vdsbroker.VdsMonitor getMonitor ( org.ovirt.engine.core.compat.Guid vdsId ) { return org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . getVdsManager ( vdsId ) . getVdsMonitor ( ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult diskProfileExists ( ) { return ( getOldDiskProfile ( ) ) == null ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_PROFILE_NOT_EXISTS ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult diskProfileIsSet ( ) { return ( getDiskProfile ( ) ) == null ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_PROFILE_NOT_EXISTS ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotDisabledNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; usb.setType ( "native" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED , null ) , UsbPolicy.DISABLED ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyLegacyGotEnabledNotSetLegacyPolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setType ( "legacy" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_LEGACY ) , UsbPolicy.ENABLED_LEGACY ) ; }
Source:
public java.lang.String getdepartment ( ) { return this . department ; }

Target:
public void setExternalId ( byte [ ] externalId ) { this . externalId = externalId ; }
Source:
protected void selectedItemsChanged ( ) { super . selectedItemsChanged ( ) ; UpdateActionAvailability ( ) ; }

Target:
public void cancel ( ) { cancelConfirmation ( ) ; setGuideContext ( null ) ; setWindow ( null ) ; updateActionAvailability ( ) ; }
Source:
public void setPassword ( java.lang.String password ) { setData ( org.ovirt.engine.core.bll.session.SessionDataContainer.PASSWORD_PARAMETER_NAME , password ) ; }

Target:
public void setPrincipal ( java.lang.String sessionId , java.lang.String principal ) { setData ( sessionId , org.ovirt.engine.core.bll.session.SessionDataContainer.PRINCIPAL_PARAMETER_NAME , principal ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotNullUsb ( ) { org.ovirt.engine.api.model.Usb usb = null ; org.ovirt.engine.core.common.businessentities.UsbPolicy currentPolicy = org.ovirt.engine.core.common.businessentities.UsbPolicy.DISABLED ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , currentPolicy , null ) , currentPolicy ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyLegacyGotEnabledNotSetPolicyNotSetUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; org.ovirt.engine.core.common.businessentities.UsbPolicy currentPolicy = org.ovirt.engine.core.common.businessentities.UsbPolicy.ENABLED_LEGACY ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , currentPolicy ) , currentPolicy ) ; }
Source:
org.ovirt.engine.ui.uicommonweb.UICommand getRunCommand ( ) { return model.getIsPool ( ) ? model.getTakeVmCommand ( ) : model.getRunCommand ( ) ; }

Target:
org.ovirt.engine.ui.uicommonweb.UICommand getRunCommand ( ) { return model.isPool ( ) ? model.getTakeVmCommand ( ) : model.getRunCommand ( ) ; }
Source:
public boolean getRefreshStatistics ( ) { if ( ( vmsRefresher ) == null ) { return false ; } return vmsRefresher.getRefreshStatistics ( ) ; }

Target:
public void updateIteration ( ) { if ( ( refreshIteration ) == ( NUMBER_HOST_REFRESHES_BEFORE_SAVE ) ) { refreshIteration = 1 ; } else { ( refreshIteration ) ++ ; } }
Source:
public void checkExecuteCommandWithNullVdsId ( ) { parameters.setStorageServerConnection ( NFSConnection ) ; parameters.setVdsId ( null ) ; command.executeCommand ( ) ; org.mockito.Mockito.verify ( command , org.mockito.Mockito.never ( ) ) . disconnectStorage ( ) ; }

Target:
public void checkExecuteCommandWithNullVdsId ( ) { parameters.setStorageServerConnection ( org.ovirt.engine.core.bll.storage.connection.RemoveStorageServerConnectionCommandTest.NFSConnection ) ; parameters.setVdsId ( null ) ; command.executeCommand ( ) ; org.mockito.Mockito.verify ( command , org.mockito.Mockito.never ( ) ) . disconnectStorage ( ) ; }
Source:
public boolean hasSpiceSupport ( int osId , org.ovirt.engine.core.compat.Version version ) { java.util.List < org.ovirt.engine.core.common.businessentities.DisplayType > osDisplayTypes = getDisplayTypes ( osId , version ) ; return osDisplayTypes == null ? false : osDisplayTypes.contains ( DisplayType.qxl ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { graphicsAndDisplays = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.IsVmPoolWithSameNameExistsQuery.getQueryReturnValue ( ) . setReturnValue ( ( ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmPoolDao ( ) . getByName ( org.ovirt.engine.core.bll.IsVmPoolWithSameNameExistsQuery.getParameters ( ) . getName ( ) ) ) != null ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.IsVmPoolWithSameNameExistsQuery.getQueryReturnValue ( ) . setReturnValue ( ( ( vmPoolDao.getByName ( org.ovirt.engine.core.bll.IsVmPoolWithSameNameExistsQuery.getParameters ( ) . getName ( ) ) ) != null ) ) ; }
Source:
public void testList ( ) throws java.lang.Exception { javax.ws.rs.core.UriInfo uriInfo = setUpUriExpectations ( null ) ; setGetGuestAgentQueryExpectations ( 3 ) ; setUpQueryExpectations ( "" ) ; collection.setUriInfo ( uriInfo ) ; verifyCollection ( getCollection ( ) ) ; }

Target:
protected void verifyModel ( org.ovirt.engine.api.model.Nic model , int index ) { org.ovirt.engine.api.restapi.resource.BackendVmNicsResourceTest.verifyModelSpecific ( model , index ) ; verifyLinks ( model ) ; }
Source:
public void setdisplay_type ( org.ovirt.engine.core.common.businessentities.DisplayType value ) { this . mVmDynamic.setdisplay_type ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "display_type" ) ) ; }

Target:
public java.lang.String getHash ( ) { return vmDynamic.getHash ( ) ; }
Source:
public void initializeHelpers ( ) { for ( org.ovirt.engine.core.bll.storage.connection.IStorageHelper helper : injectedHelpers ) { helpers.put ( helper.getType ( ) , helper ) ; } }

Target:
public void initializeHelpers ( ) { for ( org.ovirt.engine.core.bll.storage.connection.IStorageHelper helper : injectedHelpers ) { for ( org.ovirt.engine.core.common.businessentities.storage.StorageType type : helper.getTypes ( ) ) { helpers.put ( type , helper ) ; } } }
Source:
private org.ovirt.engine.core.common.businessentities.AuditLog getEventWithOvirtOrigin ( ) { org.ovirt.engine.core.common.businessentities.AuditLog auditLog = new org.ovirt.engine.core.common.businessentities.AuditLog ( ) ; auditLog.setAuditLogId ( org.ovirt.engine.core.bll.RemoveAuditLogByIdCommandTest.EVENT_ID_2 ) ; auditLog.setOrigin ( org.ovirt.engine.core.bll.RemoveAuditLogByIdCommandTest.OVIRT_ORIGIN ) ; return auditLog ; }

Target:
private org.ovirt.engine.core.common.businessentities.AuditLog getEventWithOvirtOrigin ( ) { org.ovirt.engine.core.common.businessentities.AuditLog auditLog = new org.ovirt.engine.core.common.businessentities.AuditLog ( ) ; auditLog.setAuditLogId ( org.ovirt.engine.core.bll.RemoveAuditLogByIdCommandTest.EVENT_ID_2 ) ; auditLog.setOrigin ( AuditLog.OVIRT_ORIGIN ) ; return auditLog ; }
Source:
protected void ExecuteVmCommand ( ) { super . ExecuteVmCommand ( ) ; org.ovirt.engine.core.bll.AddVmAndCloneImageCommand.setVm ( null ) ; org.ovirt.engine.core.bll.AddVmAndCloneImageCommand.getVm ( ) . setvmt_guid ( VmTemplateHandler.BlankVmTemplateId ) ; org.ovirt.engine.core.bll.AddVmAndCloneImageCommand.getVmStaticDao ( ) . update ( org.ovirt.engine.core.bll.AddVmAndCloneImageCommand.getVm ( ) . getStaticData ( ) ) ; }

Target:
protected void executeVmCommand ( ) { super . executeVmCommand ( ) ; org.ovirt.engine.core.bll.AddVmAndCloneImageCommand.setVm ( null ) ; org.ovirt.engine.core.bll.AddVmAndCloneImageCommand.getVm ( ) . setvmt_guid ( VmTemplateHandler.BlankVmTemplateId ) ; org.ovirt.engine.core.bll.AddVmAndCloneImageCommand.getVmStaticDao ( ) . update ( org.ovirt.engine.core.bll.AddVmAndCloneImageCommand.getVm ( ) . getStaticData ( ) ) ; }
Source:
public void validateSuccessNumOfVfsChanged ( ) { assertValidateSuccess ( ) ; }

Target:
public void validateSuccessNumOfVfsChanged ( ) { org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( command ) ; }
Source:
public void testGetWithPermissionsUnprivilegedUser ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain result = dao.get ( existingDomain.getId ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetWithPermissionsUnprivilegedUser ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain result = dao.get ( existingDomain.getId ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.jupiter.api.Assertions.assertNull ( result ) ; }
Source:
private java.util.List < java.lang.String > getConnectionsIds ( ) { return org.ovirt.engine.core.bll.storage.connection.GetStorageServerConnectionByIscsiBondIdQuery.getDbFacade ( ) . getIscsiBondDao ( ) . getStorageConnectionIdsByIscsiBondId ( org.ovirt.engine.core.bll.storage.connection.GetStorageServerConnectionByIscsiBondIdQuery.getParameters ( ) . getId ( ) ) ; }

Target:
private java.util.List < java.lang.String > getConnectionsIds ( ) { return iscsiBondDao.getStorageConnectionIdsByIscsiBondId ( org.ovirt.engine.core.bll.storage.connection.GetStorageServerConnectionByIscsiBondIdQuery.getParameters ( ) . getId ( ) ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcActionParametersBase createActionParameters ( org.ovirt.engine.core.common.businessentities.VM vm ) { return new org.ovirt.engine.core.common.action.ShutdownVmParameters ( vm.getId ( ) , true ) ; }

Target:
private void onClone ( ) { ( ( org.ovirt.engine.ui.uicommonweb.models.vms.CloneVmModel ) ( getWindow ( ) ) ) . onClone ( this , false ) ; }
Source:
private java.lang.String getIsoPrefixFilePath ( java.lang.String url ) { java.lang.String isoPrefixName = "iso://" ; java.lang.String fullPathFileName = url ; int prefixLength = isoPrefixName.length ( ) ; if ( ( ( url.length ( ) ) >= prefixLength ) && ( url.substring ( 0 , prefixLength ) . equalsIgnoreCase ( isoPrefixName ) ) ) { fullPathFileName = org.ovirt.engine.core.bll.ImagesHandler.cdPathWindowsToLinux ( url.substring ( prefixLength , url.length ( ) ) , org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getstorage_pool_id ( ) ) ; } return fullPathFileName ; }

Target:
protected java.lang.String cdPathWindowsToLinux ( java.lang.String url ) { return org.ovirt.engine.core.bll.ImagesHandler.cdPathWindowsToLinux ( url , org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getstorage_pool_id ( ) ) ; }
Source:
public void testVmExceedsMaxNumOfVmCpus ( ) { setVmCpuValues ( 2 , 3 , 3 ) ; org.junit.Assert.assertThat ( org.ovirt.engine.core.bll.validator.VmValidator.validateCpuSockets ( vm.getStaticData ( ) , org.ovirt.engine.core.bll.validator.VmValidatorTest.COMPAT_VERSION_FOR_CPU_SOCKET_TEST ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_MAX_NUM_CPU ) ) ; }

Target:
public void testVmExceedsMaxNumOfVmCpus ( ) { setVmCpuValues ( 2 , 3 , 3 ) ; org.hamcrest.MatcherAssert.assertThat ( org.ovirt.engine.core.bll.validator.VmValidator.validateCpuSockets ( vm.getStaticData ( ) , org.ovirt.engine.core.bll.validator.VmValidatorTest.COMPAT_VERSION_FOR_CPU_SOCKET_TEST ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_MAX_NUM_CPU ) ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getServersInCluster ( ) { if ( ( serversInCluster ) == null ) { serversInCluster = getVdsDAO ( ) . getAllForVdsGroup ( getGlusterHook ( ) . getClusterId ( ) ) ; } return serversInCluster ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getServersInCluster ( ) { if ( ( serversInCluster ) == null ) { serversInCluster = getVdsDao ( ) . getAllForVdsGroup ( getGlusterHook ( ) . getClusterId ( ) ) ; } return serversInCluster ; }
Source:
public void getUsbPolicyIsSetDisabled ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; org.ovirt.engine.core.common.businessentities.VDSGroup vdsGroup = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; assert org.ovirt.engine.api.restapi.resource.utils.UsbResourceUtils.getUsbPolicy ( usb , vdsGroup ) . equals ( UsbPolicy.DISABLED ) ; }

Target:
public void getUsbPolicyIsSetDisabled ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; org.ovirt.engine.core.common.businessentities.VDSGroup vdsGroup = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.api.restapi.resource.utils.UsbResourceUtils.getUsbPolicy ( usb , vdsGroup ) , UsbPolicy.DISABLED ) ; }
Source:
protected boolean isVmWithSameNameExistStatic ( ) { return org.ovirt.engine.core.bll.VmHandler.isVmWithSameNameExistStatic ( org.ovirt.engine.core.bll.IsVmWithSameNameExistQuery.getParameters ( ) . getName ( ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.IsVmWithSameNameExistQuery.getQueryReturnValue ( ) . setReturnValue ( isVmWithSameNameExistStatic ( org.ovirt.engine.core.bll.IsVmWithSameNameExistQuery.getParameters ( ) . getName ( ) , org.ovirt.engine.core.bll.IsVmWithSameNameExistQuery.getParameters ( ) . getDatacenterId ( ) ) ) ; }
Source:
private java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runMultipleActionsImpl ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , boolean isInternal ) { return runMultipleActionsImpl ( actionType , parameters , isInternal , null ) ; }

Target:
private boolean isActionExternal ( org.ovirt.engine.core.common.action.VdcActionType actionType ) { return ( ( actionType == ( org.ovirt.engine.core.common.action.VdcActionType.EndExternalJob ) ) || ( actionType == ( org.ovirt.engine.core.common.action.VdcActionType.EndExternalStep ) ) ) || ( actionType == ( org.ovirt.engine.core.common.action.VdcActionType.ClearExternalJob ) ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { return 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.getDiskDescription ( ) ; }
Source:
public void setcpu_flags ( java.lang.String value ) { this . cpu_flags = value ; }

Target:
public void setSupportedClusterLevels ( java.lang.String value ) { supportedClusterLevels = value ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > searchStoragePool ( ) { return genericSearch ( org.ovirt.engine.core.bll.SearchQuery.getDbFacade ( ) . getStoragePoolDao ( ) , true ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > searchImageTypes ( ) { return genericSearch ( vmTemplateDao , true ) ; }
Source:
private void logAfterRefreshFailureMessage ( java.lang.RuntimeException ex ) { org.ovirt.engine.core.vdsbroker.VdsManager.log.warnFormat ( "Failed to AfterRefreshTreatment VDS error = '{0}', continuing." , org.apache.commons.lang.exception.ExceptionUtils.getMessage ( ex ) ) ; }

Target:
private void logFailureMessage ( java.lang.RuntimeException ex ) { org.ovirt.engine.core.vdsbroker.VdsManager.log.warn ( "Failed to refresh VDS, continuing, vds ='{}' ('{}'): {}" , vds.getName ( ) , vds.getId ( ) , ex.getMessage ( ) ) ; org.ovirt.engine.core.vdsbroker.VdsManager.log.error ( "Exception" , ex ) ; }
Source:
public static org.jboss.shrinkwrap.api.spec.JavaArchive createDeployment ( ) { return org.jboss.shrinkwrap.api.ShrinkWrap.create ( org.jboss.shrinkwrap.api.spec.JavaArchive.class ) . addClasses ( org.ovirt.engine.core.bll.scheduling.CommonTestMocks.class , org.ovirt.engine.core.bll.scheduling.SchedulingManager.class , org.ovirt.engine.core.bll.scheduling.external.ExternalSchedulerDiscovery.class , org.ovirt.engine.core.bll.scheduling.BasicMigrationHandler.class ) . addAsManifestResource ( EmptyAsset.INSTANCE , org.jboss.shrinkwrap.api.ArchivePaths.create ( "beans.xml" ) ) ; }

Target:
public static org.jboss.shrinkwrap.api.spec.JavaArchive createDeployment ( ) { return org.jboss.shrinkwrap.api.ShrinkWrap.create ( org.jboss.shrinkwrap.api.spec.JavaArchive.class ) . addClasses ( org.ovirt.engine.core.bll.scheduling.SchedulingManager.class , org.ovirt.engine.core.bll.scheduling.external.ExternalSchedulerDiscovery.class , org.ovirt.engine.core.bll.scheduling.BasicMigrationHandler.class ) . addClasses ( org.ovirt.engine.core.bll.scheduling.CommonTestMocks.commonClasses ( ) ) . addAsManifestResource ( EmptyAsset.INSTANCE , org.jboss.shrinkwrap.api.ArchivePaths.create ( "beans.xml" ) ) ; }
Source:
public void setstatus ( org.ovirt.engine.core.common.businessentities.VDSStatus value ) { if ( ( this . mVdsDynamic.getstatus ( ) ) != value ) { this . mVdsDynamic.setstatus ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "status" ) ) ; } }

Target:
public java.lang.Integer getCpuThreads ( ) { return this . mVdsDynamic.getCpuThreads ( ) ; }
Source:
protected void syncSearch ( ) { org.ovirt.engine.core.common.queries.SearchParameters tempVar = new org.ovirt.engine.core.common.queries.SearchParameters ( getSearchString ( ) , org.ovirt.engine.core.common.interfaces.SearchType.Disk ) ; tempVar.setMaxCount ( getSearchPageSize ( ) ) ; super . syncSearch ( VdcQueryType.Search , tempVar ) ; }

Target:
protected void syncSearch ( ) { org.ovirt.engine.core.common.queries.SearchParameters tempVar = new org.ovirt.engine.core.common.queries.SearchParameters ( getSearchString ( ) , org.ovirt.engine.core.common.interfaces.SearchType.Disk , isCaseSensitiveSearch ( ) ) ; tempVar.setMaxCount ( getSearchPageSize ( ) ) ; super . syncSearch ( VdcQueryType.Search , tempVar ) ; }
Source:
public org.ovirt.engine.core.common.queries.VdcQueryReturnValue RunUserQuery ( org.ovirt.engine.core.common.queries.VdcQueryType actionType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters ) { return runQueryImpl ( actionType , parameters , true ) ; }

Target:
protected org.ovirt.engine.core.bll.QueriesCommandBase < ? > createQueryCommand ( org.ovirt.engine.core.common.queries.VdcQueryType actionType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters ) { return org.ovirt.engine.core.bll.CommandsFactory.createQueryCommand ( actionType , parameters ) ; }
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 shouldCreateAsMuchNumaNodesAsVirtualCores ( ) { vm.setNumOfSockets ( 1 ) ; vm.setCpuPerSocket ( 2 ) ; org.junit.Assert.assertTrue ( org.ovirt.engine.core.bll.numa.vm.NumaValidator.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) . isValid ( ) ) ; }
Source:
protected boolean expectNonBlocking ( ) { java.util.Set < java.lang.String > expectations = org.ovirt.engine.api.utils.ExpectationHelper.getExpectations ( httpHeaders ) ; return expectations.contains ( org.ovirt.engine.api.restapi.resource.BackendResource.NON_BLOCKING_EXPECTATION ) ; }

Target:
protected boolean expectNonBlocking ( ) { java.util.Set < java.lang.String > expectations = org.ovirt.engine.api.restapi.util.ExpectationHelper.getExpectations ( httpHeaders ) ; return expectations.contains ( org.ovirt.engine.api.restapi.resource.BackendResource.NON_BLOCKING_EXPECTATION ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( ) { return null ; }

Target:
public java.lang.String getTooltip ( ) { return "" ; }
Source:
public java.lang.Boolean call ( ) throws java.lang.Exception { _deploy.getParser ( ) . cliEnvironmentSet ( NetEnv.IPTABLES_RULES , _getIpTables ( ) . split ( "\n" ) ) ; return true ; }

Target:
public java.lang.Boolean call ( ) throws java.lang.Exception { _deploy.getParser ( ) . cliEnvironmentSet ( NetEnv.IPTABLES_RULES , getIpTables ( ) . split ( "\n" ) ) ; return true ; }
Source:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > result = dao.getAll ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.AuditLogDAOTest.EXISTING_COUNT , result.size ( ) ) ; }

Target:
public void testGetAllFiltered ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > result = dao.getAll ( org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.AuditLogDAOTest.FILTERED_COUNT , result.size ( ) ) ; }
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.VDS > ( ) ; } return source ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; }
Source:
public static org.ovirt.engine.core.common.businessentities.AsyncTasks createAsyncTask ( org.ovirt.engine.core.bll.CommandBase command , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { return org.ovirt.engine.core.bll.tasks.CommandCoordinatorImpl.getInstance ( ) . createAsyncTask ( command , asyncTaskCreationInfo , parentCommand ) ; }

Target:
public static org.ovirt.engine.core.common.businessentities.AsyncTasks createAsyncTask ( org.ovirt.engine.core.bll.CommandBase command , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { return org.ovirt.engine.core.bll.tasks.TaskManagerUtil.coco.createAsyncTask ( command , asyncTaskCreationInfo , parentCommand ) ; }
Source:
public void setName ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( name , value ) ) ) { name = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Name" ) ) ; } }

Target:
public void setName ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( name , value ) ) ) { name = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( org.ovirt.engine.ui.uicommonweb.models.providers.ProviderGeneralModel.PROPERTY_NAME ) ) ; } }
Source:
private org.ovirt.engine.core.bll.network.cluster.AttachNetworkClusterValidator createNetworkClusterValidator ( ) { return new org.ovirt.engine.core.bll.network.cluster.AttachNetworkClusterValidator ( interfaceDao , networkDao , org.ovirt.engine.core.bll.network.cluster.AttachNetworkToClusterInternalCommand.getNetworkCluster ( ) ) ; }

Target:
private org.ovirt.engine.core.bll.network.cluster.AttachNetworkClusterValidator createNetworkClusterValidator ( ) { return new org.ovirt.engine.core.bll.network.cluster.AttachNetworkClusterValidator ( interfaceDao , networkDao , vdsDao , org.ovirt.engine.core.bll.network.cluster.AttachNetworkToClusterInternalCommand.getNetworkCluster ( ) ) ; }
Source:
protected void setSoundcard ( org.ovirt.engine.api.model.VM model ) { model.setSoundcardEnabled ( ( ! ( org.ovirt.engine.api.restapi.util.VmHelper.getSoundDevicesForEntity ( this , new org.ovirt.engine.core.compat.Guid ( model.getId ( ) ) ) . isEmpty ( ) ) ) ) ; }

Target:
protected void setSoundcard ( org.ovirt.engine.api.model.Vm model ) { model.setSoundcardEnabled ( ( ! ( org.ovirt.engine.api.restapi.util.VmHelper.getSoundDevicesForEntity ( this , new org.ovirt.engine.core.compat.Guid ( model.getId ( ) ) ) . isEmpty ( ) ) ) ) ; }
Source:
public static boolean GetClusterDefaultCountThreadsAsCores ( ) { return false ; }

Target:
public static boolean getClusterDefaultCountThreadsAsCores ( ) { return false ; }
Source:
public void testNetworkNotChangedWhenOldAttachmentIsNull ( ) throws java.lang.Exception { org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.validator.NetworkAttachmentValidator ( null , null ) . networkNotChanged ( null ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testValidateGatewayWhenGatewayIsNull ( ) throws java.lang.Exception { doTestValidateGateway ( null , false , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.HashMap < java.lang.String , java.util.List < java.lang.String > > ) ( source ) ) : new java.util.HashMap < java.lang.String , java.util.List < java.lang.String > > ( ) ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.HashMap < java.lang.String , java.util.List < java.lang.String > > ) ( source ) ) : new java.util.HashMap < java.lang.String , java.util.List < java.lang.String > > ( ) ; }
Source:
public static java.util.Collection < java.lang.Class < ? extends org.ovirt.engine.core.bll.scheduling.PolicyUnitImpl > > getList ( ) { return java.util.Collections.unmodifiableList ( org.ovirt.engine.core.bll.scheduling.InternalPolicyUnits.enabledUnits ) ; }

Target:
public static java.util.Collection < java.lang.Class < ? extends org.ovirt.engine.core.bll.scheduling.PolicyUnitImpl > > getList ( ) { return java.util.Collections.unmodifiableSet ( org.ovirt.engine.core.bll.scheduling.InternalPolicyUnits.enabledUnits ) ; }
Source:
public void Cancel ( ) { setWindow ( null ) ; }

Target:
public void cancel ( ) { setWindow ( null ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel vmModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel ) ( target ) ) ; vmModel.set_MaxMemSize32 ( ( ( java.lang.Integer ) ( returnValue ) ) ) ; }

Target:
public void setIsSubTemplate ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel.NotChangableForVmInPoolEntityModel < java.lang.Boolean > value ) { isSubTemplate = value ; }
Source:
public void setUp ( ) { adUser = new org.ovirt.engine.core.common.businessentities.LdapUser ( "UserName" , "password" , org.ovirt.engine.core.compat.Guid.NewGuid ( ) , "DomainController" ) ; }

Target:
public void setUp ( ) { adUser = new org.ovirt.engine.core.common.businessentities.LdapUser ( "UserName" , "password" , org.ovirt.engine.core.compat.Guid.newGuid ( ) , "DomainController" ) ; }
Source:
public java.lang.String encode ( org.ovirt.engineextensions.aaa.ldap.ASN1OctetString value , org.ovirt.engineextensions.aaa.ldap.MapProperties props ) { return value.stringValue ( ) ; }

Target:
public java.lang.String encode ( com.unboundid.asn1.ASN1OctetString value , org.ovirt.engineextensions.aaa.ldap.MapProperties props ) { return value.stringValue ( ) ; }
Source:
public void stpWhenNonVmNetwork ( ) throws java.lang.Exception { stpTest ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.NON_VM_NETWORK_CANNOT_SUPPORT_STP ) , false , true ) ; }

Target:
public void stpWhenNonVmNetwork ( ) throws java.lang.Exception { stpTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NON_VM_NETWORK_CANNOT_SUPPORT_STP ) , false , true ) ; }
Source:
protected void executeCommand ( ) { getDbFacade ( ) . getImageStorageDomainMapDao ( ) . updateQuotaForImageAndSnapshots ( getParameters ( ) . getObjectId ( ) , getParameters ( ) . getContainerId ( ) , getParameters ( ) . getQuotaId ( ) ) ; setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { imageStorageDomainMapDao.updateQuotaForImageAndSnapshots ( getParameters ( ) . getObjectId ( ) , getParameters ( ) . getContainerId ( ) , getParameters ( ) . getQuotaId ( ) ) ; setSucceeded ( true ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > moveMultipleImages ( java.lang.String spUUID , java.lang.String srcDomUUID , java.lang.String dstDomUUID , java.util.Map imgDict , java.lang.String vmGUID ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > upgradeStoragePool ( java.lang.String storagePoolId , java.lang.String targetVersion ) ;
Source:
public void deleteJobOlderThanDateWithStatus ( java.util.Date sinceDate , java.util.List < org.ovirt.engine.core.common.job.JobExecutionStatus > statusesList ) { updateQuery ( entityManager.createNamedQuery ( "Job.deleteJobOlderThanDateWithStatus" ) . setParameter ( "sinceDate" , sinceDate ) . setParameter ( "statuses" , statusesList ) ) ; }

Target:
public void deleteJobOlderThanDateWithStatus ( java.util.Date sinceDate , java.util.List < org.ovirt.engine.core.common.job.JobExecutionStatus > statusesList ) { updateQuery ( getEntityManager ( ) . createNamedQuery ( "Job.deleteJobOlderThanDateWithStatus" ) . setParameter ( "sinceDate" , sinceDate ) . setParameter ( "statuses" , statusesList ) ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.Model setTitle ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( title , value ) ) ) { title = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Title" ) ) ; } return this ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.Model setTitle ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( title , value ) ) ) { title = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Title" ) ) ; } return this ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult clusterServiceDefined ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.VDS_GROUP_AT_LEAST_ONE_SERVICE_MUST_BE_ENABLED ) . unless ( ( ( cluster.supportsGlusterService ( ) ) || ( cluster.supportsVirtService ( ) ) ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult clusterServiceDefined ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.CLUSTER_AT_LEAST_ONE_SERVICE_MUST_BE_ENABLED ) . unless ( ( ( cluster.supportsGlusterService ( ) ) || ( cluster.supportsVirtService ( ) ) ) ) ; }
Source:
protected java.lang.String getUserdefinedVMProperties ( org.ovirt.engine.core.compat.Version version ) { return "" ; }

Target:
private org.ovirt.engine.core.bll.IsoDomainListSyncronizer mockIsoDomainListSyncronizer ( ) { org.ovirt.engine.core.bll.IsoDomainListSyncronizer isoDomainListSyncronizer = org.mockito.Mockito.mock ( org.ovirt.engine.core.bll.validator.RunVmValidatorTest.MockIsoDomainListSyncronizer.class ) ; org.mockito.Mockito.doReturn ( isoDomainListSyncronizer ) . when ( runVmValidator ) . getIsoDomainListSyncronizer ( ) ; return isoDomainListSyncronizer ; }
Source:
public org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity getById ( org.ovirt.engine.core.compat.Guid id ) { return getCallsHandler ( ) . executeRead ( "GetGlusterBrickById" , brickRowMapper , createIdParameterMapper ( id ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity getById ( org.ovirt.engine.core.compat.Guid id ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity brick = getCallsHandler ( ) . executeRead ( "GetGlusterBrickById" , brickRowMapper , createIdParameterMapper ( id ) ) ; populateBrickDetails ( brick ) ; return brick ; }
Source:
public org.ovirt.engine.api.resource.DeviceResource < org.ovirt.engine.api.model.Nic > getNicResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendTemplateNicResource ( parentId , id , this , updateType , getUpdateParametersProvider ( ) , getRequiredUpdateFields ( ) , subCollections ) ) ; }

Target:
public org.ovirt.engine.api.resource.InstanceTypeNicResource getNicResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendInstanceTypeNicResource ( id , instanceTypeId ) ) ; }
Source:
protected void updateDefaultTimeZone ( ) { org.ovirt.engine.ui.uicommonweb.models.vms.TimeZoneModel.withLoadedDefaultTimeZoneKey ( getTimeZoneType ( ) , new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { doUpdateTimeZone ( null ) ; } } ) ; }

Target:
protected void commonInitialize ( ) { priorityUtil = new org.ovirt.engine.ui.uicommonweb.models.vms.PriorityUtil ( getModel ( ) ) ; virtioScsiUtil = new org.ovirt.engine.ui.uicommonweb.models.vms.VirtioScsiUtil ( getModel ( ) ) ; }
Source:
public void discardAfterDeleteLegalForExistingStorageDomainPredicateTrue ( ) { domain.setSupportsDiscard ( true ) ; org.junit.Assert.assertTrue ( validator.discardAfterDeleteLegalForExistingStorageDomainPredicate ( ) ) ; }

Target:
public void discardAfterDeleteLegalForExistingStorageDomainPredicateTrue ( ) { domain.setSupportsDiscard ( true ) ; org.junit.jupiter.api.Assertions.assertTrue ( validator.discardAfterDeleteLegalForExistingStorageDomainPredicate ( ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc convertOva ( java.lang.String ovaPath , java.util.Map < java.lang.String , java.lang.Object > vm , java.lang.String jobUUID ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc convertVmFromOva ( java.lang.String ovaPath , java.util.Map < java.lang.String , java.lang.Object > vm , java.lang.String jobUUID ) ;
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.executeAsyncCommand ( VdcActionType.HostEnrollCertificateInternal , getParameters ( ) , cloneContextAndDetachFromParent ( ) ) ; setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { commandCoordinatorUtil.executeAsyncCommand ( ActionType.HostEnrollCertificateInternal , getParameters ( ) , cloneContextAndDetachFromParent ( ) ) ; setSucceeded ( true ) ; }
Source:
public < T > T get ( java.lang.Class < T > clz ) { return clz.cast ( getMap ( ) . get ( clz ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.aaa.DbUser getUser ( ) { return user ; }
Source:
protected org.ovirt.engine.core.bll.QueriesCommandBase < ? > createQueryCommand ( org.ovirt.engine.core.common.queries.VdcQueryType actionType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters ) { return org.ovirt.engine.core.bll.CommandsFactory.createQueryCommand ( actionType , parameters ) ; }

Target:
public org.ovirt.engine.core.bll.CommandBase < ? > createAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , org.ovirt.engine.core.bll.context.CommandContext context ) { return org.ovirt.engine.core.bll.CommandsFactory.createCommand ( actionType , parameters , context ) ; }
Source:
public void existsWithSnapshotReturnsFalseForNonExistingSnapshot ( ) throws java.lang.Exception { org.junit.Assert.assertFalse ( dao.exists ( org.ovirt.engine.core.dao.SnapshotDaoTest.EXISTING_VM_ID , new org.ovirt.engine.core.compat.Guid ( ) ) ) ; }

Target:
public void existsWithSnapshotReturnsFalseForNonExistingSnapshot ( ) throws java.lang.Exception { org.junit.Assert.assertFalse ( dao.exists ( org.ovirt.engine.core.dao.SnapshotDaoTest.EXISTING_VM_ID , Guid.Empty ) ) ; }
Source:
public java.util.Date AddSeconds ( int i ) { java.util.Calendar cal = java.util.Calendar.getInstance ( ) ; cal.setTime ( this ) ; cal.add ( java.util.Calendar.SECOND , i ) ; return cal.getTime ( ) ; }

Target:
public java.util.Date addSeconds ( int i ) { java.util.Calendar cal = java.util.Calendar.getInstance ( ) ; cal.setTime ( this ) ; cal.add ( java.util.Calendar.SECOND , i ) ; return cal.getTime ( ) ; }
Source:
public void testGetAllIdsForNonExistingStoragePoolId ( ) throws java.lang.Exception { java.util.List < org.ovirt.engine.core.compat.Guid > result = dao.getAllIds ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) , StorageDomainStatus.Active ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllIdsForNonExistingStoragePoolId ( ) throws java.lang.Exception { java.util.List < org.ovirt.engine.core.compat.Guid > result = dao.getAllIds ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , StorageDomainStatus.Active ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
private void createCommandWithNullPool ( ) { cmd = new org.ovirt.engine.core.bll.storage.StorageHandlingCommandBaseTest.TestStorageHandlingCommandBase ( new org.ovirt.engine.core.common.action.StoragePoolManagementParameter ( ) ) ; }

Target:
private void createCommandWithNullPool ( ) { cmd = org.mockito.Mockito.mock ( org.ovirt.engine.core.bll.storage.StorageHandlingCommandBase.class , org.mockito.Mockito.withSettings ( ) . defaultAnswer ( Answers.CALLS_REAL_METHODS ) . useConstructor ( new org.ovirt.engine.core.common.action.StoragePoolManagementParameter ( ) , null ) ) ; }
Source:
public void testJsonDiskDescription ( ) throws java.io.IOException { disk.setDiskAlias ( "DiskAlias" ) ; disk.setDiskDescription ( "DiskDescription" ) ; assertDiskDescriptionMap ( disk , org.ovirt.engine.core.bll.MetadataDiskDescriptionHandlerTest.generateDiskAliasJsonEntry ( "DiskAlias" ) , org.ovirt.engine.core.bll.MetadataDiskDescriptionHandlerTest.generateDiskDescriptionJsonEntry ( "DiskDescription" ) ) ; }

Target:
public void testEncodingDecoding ( ) throws java.lang.Exception { disk.setDiskAlias ( "DiskAlias" ) ; disk.setDiskDescription ( "DiskDescription" ) ; assertDiskDescriptionMap ( disk , org.ovirt.engine.core.bll.MetadataDiskDescriptionHandlerTest.generateDiskAliasJsonEntry ( "DiskAlias" ) , org.ovirt.engine.core.bll.MetadataDiskDescriptionHandlerTest.generateDiskDescriptionJsonEntry ( "DiskDescription" ) ) ; org.ovirt.engine.core.bll.MetadataDiskDescriptionHandlerTest.assertDiskDescriptionDecoding ( disk ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid getStorageDomainId ( ) { return org.ovirt.engine.core.bll.GetImagesListQuery.getParameters ( ) . getStorageDomainId ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid getStorageDomainIdForQuery ( ) { return org.ovirt.engine.core.bll.GetImagesListQuery.getParameters ( ) . getStorageDomainId ( ) ; }