auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private static java.lang.String map ( org.ovirt.engine.api.model.NetworkPluginType model ) { switch ( model ) { case OPEN_VSWITCH : return OpenstackNetworkPluginType.OPEN_VSWITCH.name ( ) ; default : throw new java.lang.IllegalArgumentException ( ( ( "Unknown network plugin type \"" + model ) + "\"" ) ) ; } }

Target:
private static java.lang.String mapPluginType ( org.ovirt.engine.api.model.NetworkPluginType pluginType ) { if ( pluginType == ( org.ovirt.engine.api.model.NetworkPluginType.OPEN_VSWITCH ) ) { return OpenstackNetworkPluginType.OPEN_VSWITCH.name ( ) ; } throw new java.lang.IllegalArgumentException ( ( ( "Unknown Neutron network plugin type \"" + pluginType ) + "\"" ) ) ; }
Source:
protected boolean canDoAction ( ) { super . canDoAction ( ) ; if ( org.apache.commons.lang.StringUtils.isEmpty ( getParameters ( ) . getHostnameOrIp ( ) ) ) { addCanDoActionMessage ( EngineMessage.ACTION_TYPE_FAILED_SERVER_NAME_REQUIRED ) ; return false ; } return true ; }

Target:
protected boolean validate ( ) { super . validate ( ) ; if ( org.apache.commons.lang.StringUtils.isEmpty ( getParameters ( ) . getHostnameOrIp ( ) ) ) { addValidationMessage ( EngineMessage.ACTION_TYPE_FAILED_SERVER_NAME_REQUIRED ) ; return false ; } return true ; }
Source:
public void setWidgetColSize ( org.gwtbootstrap3.client.ui.constants.ColumnSize size ) { contentWidget.addStyleName ( size.getCssName ( ) ) ; switchToBootstrapMode ( ) ; }

Target:
public void setWidgetColSize ( org.gwtbootstrap3.client.ui.constants.ColumnSize size ) { contentWidgetContainer.addStyleName ( size.getCssName ( ) ) ; switchToBootstrapMode ( ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult isLastProfileInParentEntity ( ) { if ( ( getProfileDao ( ) . getAllForCluster ( getProfile ( ) . getClusterId ( ) ) . size ( ) ) == 1 ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_CANNOT_REMOVE_LAST_CPU_PROFILE_IN_CLUSTER ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult isLastProfileInParentEntity ( ) { if ( ( getProfileDao ( ) . getAllForCluster ( getProfile ( ) . getClusterId ( ) ) . size ( ) ) == 1 ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_CANNOT_REMOVE_LAST_CPU_PROFILE_IN_CLUSTER ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
public void moveDiskToGluster ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ) ; initSrcStorageDomain ( ) ; initDestStorageDomain ( StorageType.GLUSTERFS ) ; initVmDiskImage ( false ) ; org.junit.Assert.assertTrue ( command.validate ( ) ) ; }

Target:
public void moveDiskToGluster ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) , VmEntityType.VM ) ; initSrcStorageDomain ( ) ; initDestStorageDomain ( StorageType.GLUSTERFS ) ; org.junit.Assert.assertTrue ( command.validate ( ) ) ; }
Source:
private void testManagementNetworkRequired ( boolean management , boolean required , org.hamcrest.Matcher < org.ovirt.engine.core.bll.ValidationResult > expected ) { networkCluster.setManagement ( management ) ; networkCluster.setRequired ( required ) ; org.junit.Assert.assertThat ( validator.managementNetworkRequired ( network ) , expected ) ; }

Target:
private void testManagementNetworkRequired ( boolean management , boolean required , org.hamcrest.Matcher < org.ovirt.engine.core.bll.ValidationResult > expected ) { networkCluster.setManagement ( management ) ; networkCluster.setRequired ( required ) ; org.hamcrest.MatcherAssert.assertThat ( validator.managementNetworkRequired ( network ) , expected ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyLegacyGotDisabledLegacyPolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; usb.setType ( "legacy" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_LEGACY , null ) , UsbPolicy.DISABLED ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotEnabledNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; usb.setType ( "native" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED ) , UsbPolicy.ENABLED_NATIVE ) ; }
Source:
protected void setUpGetStorageDomainExpectations ( org.ovirt.engine.core.common.businessentities.StorageDomainType domainType ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetStorageDomainById , org.ovirt.engine.core.common.queries.StorageDomainQueryParametersBase.class , new java.lang.String [ ] { "StorageDomainId" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendStorageDomainTemplateResourceTest.STORAGE_DOMAIN_ID } , org.ovirt.engine.api.restapi.resource.BackendStorageDomainTemplatesResourceTest.setUpStorageDomain ( domainType ) ) ; }

Target:
protected void setUpGetStorageDomainExpectations ( org.ovirt.engine.core.common.businessentities.StorageDomainType domainType ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetStorageDomainById , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendStorageDomainTemplateResourceTest.STORAGE_DOMAIN_ID } , org.ovirt.engine.api.restapi.resource.BackendStorageDomainTemplatesResourceTest.setUpStorageDomain ( domainType ) ) ; }
Source:
protected boolean setAndValidateDiskProfiles ( ) { return validate ( org.ovirt.engine.core.bll.profiles.DiskProfileHelper.setAndValidateDiskProfiles ( java.util.Collections.singletonMap ( getDiskImageInfo ( ) , getStorageDomainId ( ) ) , org.ovirt.engine.core.bll.AddDiskCommand.getStoragePool ( ) . getCompatibilityVersion ( ) , org.ovirt.engine.core.bll.AddDiskCommand.getCurrentUser ( ) ) ) ; }

Target:
protected boolean setAndValidateDiskProfiles ( ) { return validate ( diskProfileHelper.setAndValidateDiskProfiles ( java.util.Collections.singletonMap ( getDiskImageInfo ( ) , getStorageDomainId ( ) ) , org.ovirt.engine.core.bll.AddDiskCommand.getStoragePool ( ) . getCompatibilityVersion ( ) , org.ovirt.engine.core.bll.AddDiskCommand.getCurrentUser ( ) ) ) ; }
Source:
public void updateAll ( java.util.Collection < T > entities ) { updateAll ( org.ovirt.engine.core.dao.MassOperationsGenericDaoDbFacade.getProcedureNameForUpdate ( ) , entities ) ; }

Target:
public void updateAll ( java.util.Collection < T > entities ) { updateAll ( org.ovirt.engine.core.dao.MassOperationsGenericDao.getProcedureNameForUpdate ( ) , entities ) ; }
Source:
public static void updateImportedVmUsbPolicy ( org.ovirt.engine.core.common.businessentities.VmBase vmBase ) { if ( ( OsRepositoryImpl.INSTANCE.isLinux ( vmBase.getOsId ( ) ) ) && ( vmBase.getUsbPolicy ( ) . equals ( UsbPolicy.ENABLED_LEGACY ) ) ) { vmBase.setUsbPolicy ( UsbPolicy.DISABLED ) ; } }

Target:
public static void updateImportedVmUsbPolicy ( org.ovirt.engine.core.common.businessentities.VmBase vmBase ) { if ( ( org.ovirt.engine.core.bll.VmHandler.osRepository.isLinux ( vmBase.getOsId ( ) ) ) && ( vmBase.getUsbPolicy ( ) . equals ( UsbPolicy.ENABLED_LEGACY ) ) ) { vmBase.setUsbPolicy ( UsbPolicy.DISABLED ) ; } }
Source:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotEnabledNotSetPolicyNotSetUsb ( ) { 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.DISABLED ; org.junit.Assert.assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , currentPolicy ) , currentPolicy ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyNativeGotNullUsb ( ) { org.ovirt.engine.api.model.Usb usb = null ; org.ovirt.engine.core.common.businessentities.UsbPolicy currentPolicy = org.ovirt.engine.core.common.businessentities.UsbPolicy.ENABLED_NATIVE ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , currentPolicy ) , currentPolicy ) ; }
Source:
public void onMessageReceived ( byte [ ] message ) { client.sendMessage ( message ) ; }

Target:
public void onMessageReceived ( byte [ ] message ) { try { client.sendMessage ( message ) ; } catch ( org.ovirt.vdsm.jsonrpc.client.ClientConnectionException e ) { org.junit.Assert.fail ( ) ; } }
Source:
void vdsNotResponding ( org.ovirt.engine.core.common.businessentities.VDS vds ) ;

Target:
void vdsNotResponding ( org.ovirt.engine.core.common.businessentities.VDS vds , boolean executeSshSoftFencing ) ;
Source:
protected void OnSelectedItemChanged ( ) { super . OnSelectedItemChanged ( ) ; UpdateActionAvailability ( ) ; }

Target:
private void onSystemTreeSelectedItemChanged ( ) { updateActionAvailability ( ) ; }
Source:
public void testGetAllForStoragePoolWithPermissionsDisabledUnprivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllForStoragePool ( org.ovirt.engine.core.dao.StorageDomainDaoTest.EXISTING_STORAGE_POOL_ID , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , false ) ; org.ovirt.engine.core.dao.StorageDomainDaoTest.assertGetAllForStoragePoolResult ( result , org.ovirt.engine.core.dao.StorageDomainDaoTest.EXISTING_STORAGE_POOL_ID ) ; }

Target:
public void testGetAllForStoragePoolWithPermissionsUnprivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllForStoragePool ( FixturesTool.STORAGE_POOL_NFS , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public void parse ( ) throws java.lang.Exception { try { org.ovirt.engine.core.utils.osinfo.OsinfoPropertiesParser.parse ( java.lang.System.getProperty ( "osinfo.properties" ) ) ; } catch ( java.lang.Exception e ) { java.lang.System.err.println ( "Ovirt-engine will fail to load with a broken osinfo properties file." ) ; java.lang.System.err.println ( "Please fix the properties file or Osinfo.g4 grammer under org.ovirt.engine.core.utils." ) ; throw e ; } }

Target:
public void parse ( ) throws java.lang.Exception { try { org.ovirt.engine.core.utils.osinfo.OsinfoPropertiesParser.parse ( java.lang.System.getProperty ( "osinfo.properties" ) ) ; } catch ( java.lang.Exception e ) { java.lang.System.err.println ( "Ovirt-engine will fail to load with a broken osinfo properties file." ) ; java.lang.System.err.println ( "Please fix the properties file or osinfo.jj grammar under org.ovirt.engine.core.utils.osinfo." ) ; throw e ; } }
Source:
public java.lang.String getManagementIp ( ) { return this . mVdsStatic.getManagementIp ( ) ; }

Target:
public void setProtocol ( org.ovirt.engine.core.common.businessentities.VdsProtocol value ) { this . mVdsStatic.setProtocol ( value ) ; }
Source:
protected void executeCommand ( ) { removeQuotaFromCache ( ) ; setQuotaParameter ( ) ; quotaDao.update ( getParameters ( ) . getQuota ( ) ) ; getReturnValue ( ) . setSucceeded ( true ) ; afterUpdate ( ) ; }

Target:
protected void executeCommand ( ) { removeQuotaFromCache ( ) ; setQuota ( getParameters ( ) . getQuota ( ) ) ; quotaDao.update ( getParameters ( ) . getQuota ( ) ) ; getReturnValue ( ) . setSucceeded ( true ) ; afterUpdate ( ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.qos.StorageQos object ) { return ( object.getMaxWriteIops ( ) ) == null ? constants.UnlimitedStorageQos ( ) : object.getMaxWriteIops ( ) . toString ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.qos.StorageQos object ) { return ( object.getMaxWriteIops ( ) ) == null ? constants.unlimitedQos ( ) : object.getMaxWriteIops ( ) . toString ( ) ; }
Source:
public java.lang.Object getKey ( T item ) { if ( item instanceof org.ovirt.engine.core.common.businessentities.IVdcQueryable ) { return ( ( org.ovirt.engine.core.common.businessentities.IVdcQueryable ) ( item ) ) . getQueryableId ( ) ; } return item ; }

Target:
public java.lang.Object getKey ( T item ) { if ( item instanceof org.ovirt.engine.core.common.businessentities.Queryable ) { return ( ( org.ovirt.engine.core.common.businessentities.Queryable ) ( item ) ) . getQueryableId ( ) ; } return item ; }
Source:
public int compareTo ( ovirt_engine_dwh.configurationsync_3_2.ConfigurationSync.detach_tagsStruct other ) { int returnValue = - 1 ; return returnValue ; }

Target:
public void copyDataTo ( ovirt_engine_dwh.configurationsync_3_2.ConfigurationSync.detach_tagsStruct other ) { other.entity_id = this . entity_id ; other.entity_type = this . entity_type ; other.parent_id = this . parent_id ; other.attach_date = this . attach_date ; other.detach_date = this . detach_date ; }
Source:
private void mockMaxPciSlots ( ) { org.ovirt.engine.core.common.utils.SimpleDependencyInjector.getInstance ( ) . bind ( org.ovirt.engine.core.common.osinfo.OsRepository.class , osRepository ) ; org.mockito.Mockito.doReturn ( org.ovirt.engine.core.bll.AddVmFromTemplateCommandTest.MAX_PCI_SLOTS ) . when ( osRepository ) . getMaxPciDevices ( org.mockito.Matchers.anyInt ( ) , org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Version.class ) ) ; }

Target:
private void mockMaxPciSlots ( ) { org.ovirt.engine.core.common.utils.SimpleDependencyInjector.getInstance ( ) . bind ( org.ovirt.engine.core.common.osinfo.OsRepository.class , osRepository ) ; org.mockito.Mockito.doReturn ( org.ovirt.engine.core.bll.AddVmFromTemplateCommandTest.MAX_PCI_SLOTS ) . when ( osRepository ) . getMaxPciDevices ( org.mockito.ArgumentMatchers.anyInt ( ) , org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.compat.Version.class ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.OneVmReturnForXmlRpc changeFloppy ( java.lang.String vmId , java.lang.String imageLocation ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturn sparsifyVolume ( java.lang.String jobId , java.util.Map < java.lang.String , java.lang.Object > volumeAddress ) ;
Source:
public org.ovirt.engine.api.v3.types.V3Disk update ( org.ovirt.engine.api.v3.types.V3Disk disk ) { disk = adaptUpdate ( getDelegate ( ) :: update , disk ) ; org.ovirt.engine.api.v3.helpers.V3VmHelper.fixDiskLinks ( vmId , disk ) ; return disk ; }

Target:
public org.ovirt.engine.api.v3.types.V3Disk update ( org.ovirt.engine.api.v3.types.V3Disk disk ) { disk = adaptUpdate ( getDelegate ( ) :: update , disk ) ; org.ovirt.engine.api.v3.helpers.V3VmHelper.fixDiskLinks ( vmId , disk ) ; org.ovirt.engine.api.v3.helpers.V3VmHelper.addDiskAttachmentDetails ( vmId , java.util.Collections.singletonList ( disk ) ) ; return disk ; }
Source:
protected org.ovirt.engine.core.common.vdscommands.VDSReturnValue runVdsCommand ( org.ovirt.engine.core.common.vdscommands.VDSCommandType commandType , org.ovirt.engine.core.common.vdscommands.VDSParametersBase params ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) . getResourceManager ( ) . runVdsCommand ( commandType , params ) ; }

Target:
protected org.ovirt.engine.core.common.vdscommands.VDSReturnValue runVdsCommand ( org.ovirt.engine.core.common.vdscommands.VDSCommandType commandType , org.ovirt.engine.core.common.vdscommands.VDSParametersBase params ) { return resourceManager.runVdsCommand ( commandType , params ) ; }
Source:
private boolean isImageDiskOK ( org.ovirt.engine.core.common.businessentities.Disk disk ) { return ( ( disk.getDiskStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.Disk.DiskStorageType.IMAGE ) ) && ( ( ( ( org.ovirt.engine.core.common.businessentities.DiskImage ) ( disk ) ) . getImageStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.ImageStatus.OK ) ) ; }

Target:
private boolean isImageDiskOK ( org.ovirt.engine.core.common.businessentities.storage.Disk disk ) { return ( ( disk.getDiskStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.Disk.DiskStorageType.IMAGE ) ) && ( ( ( ( org.ovirt.engine.core.common.businessentities.storage.DiskImage ) ( disk ) ) . getImageStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.ImageStatus.OK ) ) ; }
Source:
protected void setUpGetEntityExpectations ( int times ) throws java.lang.Exception { setUpGetEntityExpectations ( times , false ) ; }

Target:
protected org.ovirt.engine.api.model.Template getRestModel ( int index ) { return org.ovirt.engine.api.restapi.resource.BackendTemplatesResourceTest.getModel ( index ) ; }
Source:
protected void RunCommands ( ) { sortCommands ( ) ; super . RunCommands ( ) ; }

Target:
protected void runCommands ( ) { sortCommands ( ) ; super . runCommands ( ) ; }
Source:
public void storageDomainWithId ( ) { b.setStorageDomainId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; b.setStoragePoolId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; final org.ovirt.engine.core.common.businessentities.StorageDomain s = b.getStorageDomain ( ) ; org.junit.Assert.assertEquals ( StorageDomainStatus.Active , s.getStatus ( ) ) ; }

Target:
public void storageDomainWithId ( ) { b.setStorageDomainId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; b.setStoragePoolId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; final org.ovirt.engine.core.common.businessentities.StorageDomain s = b.getStorageDomain ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.STORAGE_DOMAIN , s ) ; }
Source:
public void getUserNameFromUser ( ) { final org.ovirt.engine.core.common.businessentities.aaa.DbUser u = new org.ovirt.engine.core.common.businessentities.aaa.DbUser ( ) ; u.setLoginName ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.NAME ) ; u.setDomain ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.DOMAIN ) ; b.setCurrentUser ( u ) ; final java.lang.String un = b.getUserName ( ) ; org.junit.Assert.assertEquals ( java.lang.String.format ( "%s@%s" , org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.NAME , org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.DOMAIN ) , un ) ; }

Target:
public void getUserNameFromUser ( ) { final org.ovirt.engine.core.common.businessentities.aaa.DbUser u = new org.ovirt.engine.core.common.businessentities.aaa.DbUser ( ) ; u.setLoginName ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.NAME ) ; u.setDomain ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.DOMAIN ) ; b.setCurrentUser ( u ) ; final java.lang.String un = b.getUserName ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( java.lang.String.format ( "%s@%s" , org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.NAME , org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.DOMAIN ) , un ) ; }
Source:
public void getFreeVfNoFreeVf ( ) { freeVfCommon ( 0 , 1 , 2 , 3 , 4 ) ; org.junit.Assert.assertNull ( hostNicVfsConfigHelper.getFreeVf ( nic ) ) ; }

Target:
public void removeVmIdFromVfsVfsAndOtherDeviceWithVmIdTest ( ) { removeVmIdFromVfsCommonTest ( 2 , 3 ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VM > vms = org.ovirt.engine.ui.uicommonweb.Linq.< org.ovirt.engine.core.common.businessentities.VM > cast ( ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.IVdcQueryable > ) ( source ) ) ) ; return vms ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VM > vms = org.ovirt.engine.ui.uicommonweb.Linq.< org.ovirt.engine.core.common.businessentities.VM > cast ( ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.IVdcQueryable > ) ( source ) ) ) ; return vms ; }
Source:
public void shouldDetectPassThroughDeviceOnVM ( ) { org.mockito.Mockito.when ( hostDeviceManager.checkVmNeedsDirectPassthrough ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.VM.class ) ) ) . thenReturn ( true ) ; org.hamcrest.MatcherAssert.assertThat ( validator.checkVmReadyForUpgrade ( invalidVM ) , org.hamcrest.CoreMatchers.hasItem ( UPGRADE_ERROR.VM_NEEDS_PASSTHROUGH ) ) ; }

Target:
public void shouldDetectSuspendedVM ( ) { invalidVM.setStatus ( VMStatus.Suspended ) ; org.assertj.core.api.Assertions.assertThat ( validator.checkVmReadyForUpgrade ( invalidVM ) ) . contains ( UpgradeError.VM_SUSPENDED ) ; }
Source:
public boolean hasMethod ( org.ovirt.api.metamodel.concepts.Name name ) { return methods ( ) . anyMatch ( named ( name ) ) ; }

Target:
public boolean hasMethod ( org.ovirt.api.metamodel.concepts.Name name ) { return methods ( ) . anyMatch ( org.ovirt.api.metamodel.concepts.Named.named ( name ) ) ; }
Source:
public org.ovirt.engine.api.model.KatelloErrata list ( ) { return mapCollection ( getBackendCollection ( VdcQueryType.GetErrataForSystem , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ) ; }

Target:
public org.ovirt.engine.api.model.KatelloErrata list ( ) { return mapCollection ( getBackendCollection ( VdcQueryType.GetErrataForEngine , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ) ; }
Source:
public void testCanDoActionInstanceNameDuplicate ( ) { cmd.getParameters ( ) . setTemplateType ( VmEntityType.INSTANCE_TYPE ) ; org.mockito.Mockito.doReturn ( true ) . when ( cmd ) . isInstanceWithSameNameExists ( "templateName" ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , VdcBllMessages.ACTION_TYPE_FAILED_NAME_ALREADY_USED ) ; }

Target:
public void testCanDoActionInstanceNameDuplicate ( ) { cmd.getParameters ( ) . setTemplateType ( VmEntityType.INSTANCE_TYPE ) ; org.mockito.Mockito.doReturn ( true ) . when ( cmd ) . isInstanceWithSameNameExists ( "templateName" ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_NAME_ALREADY_USED ) ; }
Source:
private void Cancel ( ) { setWindow ( null ) ; }

Target:
private void Cancel ( ) { setWindow ( null ) ; org.ovirt.engine.ui.frontend.Frontend.Unsubscribe ( ) ; }
Source:
private boolean nicUsedByRemovedNetwork ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface slave ) { for ( org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment : params.getRemovedNetworkAttachments ( ) ) { if ( java.util.Objects.equals ( slave.getName ( ) , attachment.getNicName ( ) ) ) { return true ; } } return false ; }

Target:
private boolean isNetworkAttachmentRemoved ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface nic ) { for ( org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment : removedNetworkAttachments ) { if ( java.util.Objects.equals ( nic.getName ( ) , attachment.getNicName ( ) ) ) { return true ; } } return false ; }
Source:
public void onCleanupModel ( org.ovirt.engine.ui.common.uicommon.model.CleanupModelEvent event ) { if ( hasModel ( ) ) { getModel ( ) . setEventBus ( null ) ; } }

Target:
public void onCleanupModel ( org.ovirt.engine.ui.common.uicommon.model.CleanupModelEvent event ) { if ( ( hasModel ( ) ) && ( ! ( reusesModel ( ) ) ) ) { getModel ( ) . unsetEventBus ( ) ; } }
Source:
private boolean isVirtioScsiControllerAttached ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils vmDeviceUtils = org.ovirt.engine.core.common.utils.SimpleDependencyInjector.getInstance ( ) . get ( org.ovirt.engine.core.bll.utils.VmDeviceUtils.class ) ; return vmDeviceUtils.hasVirtioScsiController ( vmId ) ; }

Target:
private boolean isVirtioScsiControllerAttached ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils vmDeviceUtils = org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.bll.utils.VmDeviceUtils.class ) ; return vmDeviceUtils.hasVirtioScsiController ( vmId ) ; }
Source:
public void shouldHandleNoNumaNodes ( ) { vm.setvNumaNodeList ( null ) ; assertTrue ( org.ovirt.engine.core.bll.numa.vm.NumaValidator.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) . isValid ( ) ) ; }

Target:
public void shouldDetectHostWihtoutNumaSupport ( ) { vdsNumaNodes = new java.util.ArrayList ( java.util.Arrays.asList ( org.ovirt.engine.core.bll.utils.NumaTestUtils.createVdsNumaNode ( 1 ) ) ) ; assertValidationFailure ( org.ovirt.engine.core.bll.numa.vm.NumaValidator.validateNumaCompatibility ( vm , vm.getvNumaNodeList ( ) , vdsNumaNodes ) , EngineMessage.HOST_NUMA_NOT_SUPPORTED ) ; }
Source:
public void setConsoleUserId ( org.ovirt.engine.core.compat.NGuid value ) { this . mVmDynamic.setConsoleUserId ( value ) ; }

Target:
public void setConsoleUserId ( org.ovirt.engine.core.compat.NGuid value ) { this . vmDynamic.setConsoleUserId ( value ) ; }
Source:
public org.ovirt.engine.api.resource.HostNumaNodesResource getHostNumaNodesResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendHostNumaNodesResource ( id ) ) ; }

Target:
public org.ovirt.engine.api.resource.HostNumaNodesResource getNumaNodesResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendHostNumaNodesResource ( id ) ) ; }
Source:
protected void removeVm ( ) { runInternalActionWithTasksContext ( ActionType.RemoveVm , new org.ovirt.engine.core.common.action.RemoveVmParameters ( org.ovirt.engine.core.bll.exportimport.ExtractOvaCommand.getVmId ( ) , true ) , org.ovirt.engine.core.bll.exportimport.ExtractOvaCommand.getLock ( ) ) ; }

Target:
public org.ovirt.engine.core.bll.tasks.interfaces.CommandCallback getCallback ( ) { return callbackProvider.get ( ) ; }
Source:
public void testJsonNullDiskDescription ( ) throws java.io.IOException { java.lang.String jsonDescription = org.ovirt.engine.core.bll.ImagesHandler.getJsonDiskDescription ( "DiskAlias" , null ) ; org.junit.Assert.assertTrue ( "Should be map of disk alias and disk description" , jsonDescription.equals ( "{\"DiskDescription\":\"\",\"DiskAlias\":\"DiskAlias\"}" ) ) ; }

Target:
public void testJsonNullDiskDescription ( ) throws java.io.IOException { java.lang.String jsonDescription = org.ovirt.engine.core.bll.ImagesHandler.getJsonDiskDescription ( "DiskAlias" , null ) ; org.junit.Assert.assertTrue ( "Should be map of disk alias and disk description" , jsonDescription.equals ( "{\"DiskAlias\":\"DiskAlias\",\"DiskDescription\":\"\"}" ) ) ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalListModel ) ( result.getState ( ) ) ) . getConfirmWindow ( ) ) ) ; model.stopProgress ( ) ; cancel ( ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object result ) { editedVm = ( ( org.ovirt.engine.core.common.businessentities.VM ) ( result ) ) ; vmInitLoaded ( editedVm ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult vmDown ( ) { if ( ! ( vm.isDown ( ) ) ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.ACTION_TYPE_FAILED_VM_IS_NOT_DOWN ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult vmDown ( ) { if ( ! ( vm.isDown ( ) ) ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_VM_IS_NOT_DOWN ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
public void writeError ( java.lang.Object what ) { java.lang.System.err.print ( what ) ; java.lang.System.err.flush ( ) ; org.ovirt.engine.core.tools.ToolConsole.log.info ( ( ( "Written to standard error \"" + what ) + "\"." ) ) ; }

Target:
public void writeError ( java.lang.Object what ) { java.lang.System.err.print ( what ) ; java.lang.System.err.flush ( ) ; org.ovirt.engine.core.tools.ToolConsole.log.info ( "Written to standard error \"{}\"." , what ) ; }
Source:
private void initGroupFromDb ( org.ovirt.engine.core.common.businessentities.ad_groups group ) { org.ovirt.engine.core.common.businessentities.ad_groups dbGroup = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getAdGroupDao ( ) . get ( group.getid ( ) ) ; }

Target:
private void initGroupFromDb ( org.ovirt.engine.core.common.businessentities.LdapGroup group ) { org.ovirt.engine.core.common.businessentities.LdapGroup dbGroup = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getAdGroupDao ( ) . get ( group.getid ( ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.DiskImage > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.DiskImage > ( ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetAllDbUsersQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getDbUserDao ( ) . get ( org.ovirt.engine.core.bll.GetAllDbUsersQuery.getUserID ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetAllDbUsersQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getDbUserDao ( ) . getAll ( org.ovirt.engine.core.bll.GetAllDbUsersQuery.getUserID ( ) , org.ovirt.engine.core.bll.GetAllDbUsersQuery.getParameters ( ) . isFiltered ( ) ) ) ; }
Source:
public void vmHasPluggedDdeviceSnapshotsAttachedToOtherVms ( ) { prepareForVmValidatorTests ( ) ; org.mockito.Mockito.doReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_VM_DISK_SNAPSHOT_IS_ATTACHED_TO_ANOTHER_VM ) ) . when ( vmValidator ) . vmNotHavingDeviceSnapshotsAttachedToOtherVms ( false ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_VM_DISK_SNAPSHOT_IS_ATTACHED_TO_ANOTHER_VM ) ; }

Target:
public void vmHasPluggedDdeviceSnapshotsAttachedToOtherVms ( ) { prepareForVmValidatorTests ( ) ; org.mockito.Mockito.doReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_VM_DISK_SNAPSHOT_IS_ATTACHED_TO_ANOTHER_VM ) ) . when ( vmValidator ) . vmNotHavingDeviceSnapshotsAttachedToOtherVms ( false ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_VM_DISK_SNAPSHOT_IS_ATTACHED_TO_ANOTHER_VM ) ; }
Source:
public void vdsMovedToMaintanance ( org.ovirt.engine.core.common.businessentities.VDS vds ) { try { org.ovirt.engine.core.bll.MaintananceVdsCommand.ProcessStorageOnVdsInactive ( vds ) ; } finally { org.ovirt.engine.core.bll.job.ExecutionHandler.updateSpecificActionJobCompleted ( vds.getId ( ) , VdcActionType.MaintananceVds , true ) ; } }

Target:
public void vdsMovedToMaintenance ( org.ovirt.engine.core.common.businessentities.VDS vds ) { try { org.ovirt.engine.core.bll.MaintenanceVdsCommand.ProcessStorageOnVdsInactive ( vds ) ; } finally { org.ovirt.engine.core.bll.job.ExecutionHandler.updateSpecificActionJobCompleted ( vds.getId ( ) , VdcActionType.MaintenanceVds , true ) ; } }
Source:
private boolean HasTaskEndedSuccessfully ( ) { return getLastTaskStatus ( ) . getTaskEndedSuccessfully ( ) ; }

Target:
private boolean hasTaskEndedSuccessfully ( ) { return getLastTaskStatus ( ) . getTaskEndedSuccessfully ( ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { PostPrepareSanStorageForEdit ( model , true ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { postPrepareSanStorageForEdit ( model , true ) ; }
Source:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; syncSearch ( ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.Provider > getProviders ( ) { return privateProviders ; }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase endAction ( 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 ) . endAction ( ) ; }

Target:
public org.ovirt.engine.core.common.action.ActionReturnValue endAction ( org.ovirt.engine.core.common.action.ActionType actionType , org.ovirt.engine.core.common.action.ActionParametersBase parameters , org.ovirt.engine.core.bll.context.CommandContext context ) { return org.ovirt.engine.core.bll.CommandsFactory.createCommand ( actionType , parameters , context ) . endAction ( ) ; }
Source:
public java.lang.String getMessage ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op1 , org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op2 ) { return getVerb ( op1 ) ; }

Target:
public java.lang.String getVerb ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op1 ) { return org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getMessages ( ) . extendBond ( op1.getName ( ) ) ; }
Source:
public int compare ( org.ovirt.engine.core.common.businessentities.VM o1 , org.ovirt.engine.core.common.businessentities.VM o2 ) { return Compare ( o1 , o2 ) ; }

Target:
public int compare ( org.ovirt.engine.core.common.businessentities.VM o1 , org.ovirt.engine.core.common.businessentities.VM o2 ) { return ( ( int ) ( ( o1.getActualDiskWithSnapshotsSize ( ) ) - ( o2.getActualDiskWithSnapshotsSize ( ) ) ) ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNic > getInterfaces ( ) { if ( ( interfaces ) == null ) { interfaces = getVmNicDao ( ) . getAllForVm ( org.ovirt.engine.core.bll.VmCommand.getVmId ( ) ) ; } return interfaces ; }

Target:
protected void removeVmNetwork ( ) { if ( ( getInterfaces ( ) ) != null ) { for ( org.ovirt.engine.core.common.businessentities.network.VmNic iface : getInterfaces ( ) ) { getMacPool ( ) . freeMac ( iface.getMacAddress ( ) ) ; } } }
Source:
private org.ovirt.engine.core.common.businessentities.VDSGroup createVdsGroup ( ) { org.ovirt.engine.core.compat.Guid id = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; org.ovirt.engine.core.common.businessentities.VDSGroup cluster = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; cluster.setVdsGroupId ( id ) ; cluster.setId ( id ) ; cluster.setName ( "Default cluster" ) ; return cluster ; }

Target:
private org.ovirt.engine.core.common.businessentities.Cluster createCluster ( ) { org.ovirt.engine.core.compat.Guid id = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; org.ovirt.engine.core.common.businessentities.Cluster cluster = new org.ovirt.engine.core.common.businessentities.Cluster ( ) ; cluster.setClusterId ( id ) ; cluster.setId ( id ) ; cluster.setName ( "Default cluster" ) ; return cluster ; }
Source:
public void testDefaultRouteNetworkCannotBeExternalWhenNotDefaultRoute ( ) { networkCluster.setDefaultRoute ( false ) ; setNetworkExternal ( network , true ) ; org.junit.Assert.assertThat ( validator.defaultRouteNetworkCannotBeExternal ( network ) , org.ovirt.engine.core.bll.network.cluster.NetworkClusterValidatorTestBase.isValid ( ) ) ; }

Target:
public void testDefaultRouteNetworkCannotBeExternalWhenNotDefaultRoute ( ) { networkCluster.setDefaultRoute ( false ) ; setNetworkExternal ( network , true ) ; org.hamcrest.MatcherAssert.assertThat ( validator.defaultRouteNetworkCannotBeExternal ( network ) , org.ovirt.engine.core.bll.network.cluster.NetworkClusterValidatorTestBase.isValid ( ) ) ; }
Source:
public void setBondingOptionsOverrideNotification ( boolean value ) { setbondingOptionsOverrideNotification ( value ) ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "BondingOptionsOverrideNotification" ) ) ; }

Target:
public void setBondingOptionsOverrideNotification ( boolean value ) { setbondingOptionsOverrideNotification ( value ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "BondingOptionsOverrideNotification" ) ) ; }
Source:
public static boolean isDiskInterfaceSupportedByOs ( int osId , org.ovirt.engine.core.compat.Version clusterVersion , org.ovirt.engine.core.common.businessentities.DiskInterface diskInterface ) { java.util.List < java.lang.String > diskInterfaces = org.ovirt.engine.core.bll.validator.VmValidationUtils.getOsRepository ( ) . getDiskInterfaces ( osId , clusterVersion ) ; return diskInterfaces.contains ( diskInterface.name ( ) ) ; }

Target:
public static boolean isDiskInterfaceSupportedByOs ( int osId , org.ovirt.engine.core.compat.Version clusterVersion , org.ovirt.engine.core.common.businessentities.storage.DiskInterface diskInterface ) { java.util.List < java.lang.String > diskInterfaces = org.ovirt.engine.core.bll.validator.VmValidationUtils.getOsRepository ( ) . getDiskInterfaces ( osId , clusterVersion ) ; return diskInterfaces.contains ( diskInterface.name ( ) ) ; }
Source:
protected void auditLog ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase auditLogable , org.ovirt.engine.core.common.AuditLogType logType ) { new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector ( ) . log ( auditLogable , logType ) ; }

Target:
private void auditLog ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase auditLogable , org.ovirt.engine.core.common.AuditLogType logType ) { auditLogDirector.log ( auditLogable , logType ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmDiskListModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.VmDiskListModel ) ( target ) ) ; model.getScanAlignmentCommand ( ) . setIsExecutionAllowed ( ( ( java.lang.Boolean ) ( returnValue ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmDiskListModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.VmDiskListModel ) ( target ) ) ; model.setIsScanAlignmentEnabled ( ( ( java.lang.Boolean ) ( returnValue ) ) ) ; }
Source:
public void testSave ( ) { dao.save ( dummyPolicyUnit ) ; org.ovirt.engine.core.common.scheduling.PolicyUnit result = dao.get ( dummyPolicyUnit.getId ( ) ) ; org.junit.Assert.assertEquals ( result , dummyPolicyUnit ) ; }

Target:
public void testSave ( ) { dao.save ( dummyPolicyUnit ) ; org.ovirt.engine.core.common.scheduling.PolicyUnit result = dao.get ( dummyPolicyUnit.getId ( ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( result , dummyPolicyUnit ) ; }
Source:
public void onSuccess ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue returnValue ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomainDR > resultList = returnValue.getReturnValue ( ) ; setItems ( resultList ) ; }

Target:
public void onSuccess ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue returnValue ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomainDR > resultList = returnValue.getReturnValue ( ) ; setItems ( resultList ) ; populateSessionsMap ( resultList ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? source : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity > ( ) ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? source : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity > ( ) ; }
Source:
public static void initCache ( org.ovirt.engine.ui.uicommonweb.models.LoginModel loginModel ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.CacheConfigValues ( new org.ovirt.engine.ui.frontend.AsyncQuery ( loginModel , new org.ovirt.engine.ui.frontend.INewAsyncCallback ( ) { @ java.lang.Override public void OnSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getDefaultConfigurationVersion ( target ) ; } } ) ) ; }

Target:
public static void initCache ( org.ovirt.engine.ui.uicommonweb.models.LoginModel loginModel ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.cacheConfigValues ( new org.ovirt.engine.ui.frontend.AsyncQuery ( loginModel , new org.ovirt.engine.ui.frontend.INewAsyncCallback ( ) { @ java.lang.Override public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getDefaultConfigurationVersion ( target ) ; } } ) ) ; }
Source:
protected org.ovirt.engine.core.bll.validator.storage.MultipleStorageDomainsValidator createMultipleStorageDomainsValidator ( java.util.Collection < org.ovirt.engine.core.common.businessentities.storage.DiskImage > disksList ) { return new org.ovirt.engine.core.bll.validator.storage.MultipleStorageDomainsValidator ( org.ovirt.engine.core.bll.snapshots.CreateAllSnapshotsFromVmCommand.getVm ( ) . getStoragePoolId ( ) , org.ovirt.engine.core.bll.ImagesHandler.getAllStorageIdsForImageIds ( disksList ) ) ; }

Target:
protected org.ovirt.engine.core.bll.validator.storage.MultipleStorageDomainsValidator createMultipleStorageDomainsValidator ( java.util.Collection < org.ovirt.engine.core.common.businessentities.storage.DiskImage > disksList ) { return new org.ovirt.engine.core.bll.validator.storage.MultipleStorageDomainsValidator ( org.ovirt.engine.core.bll.snapshots.CreateAllSnapshotsFromVmCommand.getVm ( ) . getStoragePoolId ( ) , org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.getAllStorageIdsForImageIds ( disksList ) ) ; }
Source:
public void unsetCore ( ) { this . core = null ; }

Target:
public void unsetCores ( ) { this . cores = null ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.VM , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterVmListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.clusterVmSubTabLabel ( ) , 3 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.VM , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterVmListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.cluster.SubTabClusterVmPresenter.constants.clusterVmSubTabLabel ( ) , 3 , modelProvider ) ; }
Source:
void vnicCreated ( org.ovirt.engine.core.compat.Guid vmId ) ;

Target:
void vnicCreated ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel unitVmModel ) ;
Source:
protected abstract void updateWipeAfterDelete ( org.ovirt.engine.core.common.businessentities.StorageType storageType ) ;

Target:
public void setIsScsiPassthrough ( org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.Boolean > isScsiPassthrough ) { this . isScsiPassthrough = isScsiPassthrough ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.VDSGroup , org.ovirt.engine.core.common.businessentities.network.NetworkCluster > , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkListModel , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkClusterListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.networkClusterSubTabLabel ( ) , 3 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.VDSGroup , org.ovirt.engine.core.common.businessentities.network.NetworkCluster > , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkListModel , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkClusterListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.network.SubTabNetworkClusterPresenter.constants.networkClusterSubTabLabel ( ) , 3 , modelProvider ) ; }
Source:
protected boolean isCinderStorageHasNoDisks ( ) { if ( ( org.ovirt.engine.core.bll.storage.domain.StorageDomainCommandBase.getStorageDomain ( ) . getStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.StorageType.CINDER ) ) { return validate ( org.ovirt.engine.core.bll.storage.CINDERStorageHelper.isCinderHasNoImages ( getStorageDomainId ( ) ) ) ; } return true ; }

Target:
protected boolean isCinderStorageHasNoDisks ( ) { if ( ( org.ovirt.engine.core.bll.storage.domain.StorageDomainCommandBase.getStorageDomain ( ) . getStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.StorageType.CINDER ) ) { return validate ( org.ovirt.engine.core.bll.storage.connection.CINDERStorageHelper.isCinderHasNoImages ( getStorageDomainId ( ) ) ) ; } return true ; }
Source:
public void testEnoughSpaceToMergeSnapshotsWithOneDisk ( ) { org.mockito.Mockito.when ( diskImageDAO.get ( mockSourceImage ( ) ) ) . thenReturn ( new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ) ; mockStorageDomainDAOGetForStoragePool ( 10 , org.ovirt.engine.core.bll.RemoveSnapshotCommandTest.STORAGE_DOMAIN_ID ) ; org.junit.Assert.assertTrue ( "Validation should succeed. Free space minus threshold should be bigger then disk size" , cmd.isEnoughSpaceToMergeSnapshots ( ) ) ; }

Target:
public void testEnoughSpaceToMergeSnapshotsWithOneDisk ( ) { org.mockito.Mockito.when ( diskImageDAO.get ( mockSourceImage ( ) ) ) . thenReturn ( new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ) ; mockStorageDomainDAOGetForStoragePool ( 10 , org.ovirt.engine.core.bll.RemoveSnapshotCommandTest.STORAGE_DOMAIN_ID ) ; org.junit.Assert.assertTrue ( "Validation should succeed. Free space minus threshold should be bigger then disk size" , cmd.validateStorageDomains ( ) ) ; }
Source:
public void testGetAllByVMTemplateNamePrivilegedUser ( ) { org.ovirt.engine.core.dao.AuditLogDAOTest.assertGetByNameValidResults ( dao.getAllByVMTemplateName ( org.ovirt.engine.core.dao.AuditLogDAOTest.VM_TEMPLATE_NAME , org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , true ) ) ; }

Target:
public void testGetAllByVMTemplateIdInvalidId ( ) { org.ovirt.engine.core.dao.AuditLogDAOTest.assertGetByNameInvalidResults ( dao.getAllByVMTemplateId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ) ; }