auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected void initAllowConsoleReconnect ( ) { getAllowConsoleReconnect ( ) . setEntity ( true ) ; }

Target:
public void disableEditing ( ) { getDefaultCommand ( ) . setIsExecutionAllowed ( false ) ; getEditingEnabled ( ) . setEntity ( false ) ; }
Source:
protected void OnEntityChanged ( ) { super . OnEntityChanged ( ) ; if ( ( getEntity ( ) ) == null ) { return ; } getSearchCommand ( ) . Execute ( ) ; }

Target:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; if ( ( getEntity ( ) ) == null ) { return ; } getSearchCommand ( ) . Execute ( ) ; }
Source:
public void setVolumeEntity ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity volumeEntity ) { this . volumeEntity = volumeEntity ; updateActionAvailability ( volumeEntity ) ; }

Target:
public void setRefreshSessionsCommand ( org.ovirt.engine.ui.uicommonweb.UICommand optionsCommand ) { this . refreshSessionsCommand = optionsCommand ; }
Source:
protected org.ovirt.engine.core.bll.provider.OpenStackImageProviderProxy getProviderProxy ( ) { if ( ( providerProxy ) == null ) { providerProxy = org.ovirt.engine.core.bll.provider.OpenStackImageProviderProxy.getFromStorageDomainId ( getParameters ( ) . getSourceStorageDomainId ( ) ) ; } return providerProxy ; }

Target:
protected org.ovirt.engine.core.bll.provider.storage.OpenStackImageProviderProxy getProviderProxy ( ) { if ( ( providerProxy ) == null ) { providerProxy = org.ovirt.engine.core.bll.provider.storage.OpenStackImageProviderProxy.getFromStorageDomainId ( getParameters ( ) . getSourceStorageDomainId ( ) ) ; } return providerProxy ; }
Source:
public void testGetAllForVm ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.tags > result = dao.getAllForVm ( vm.getUuid ( ) . toString ( ) ) ; assertNotNull ( result ) ; assertFalse ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllVmTagsWithIds ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.tags > result = dao.getAllVmTagsWithIds ( existingTag.gettag_id ( ) . toString ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }
Source:
public void testCanDoSucceedReadOnlyWithInterface ( ) { org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionSuccess ( command ) ; org.mockito.Mockito.verify ( diskValidator ) . isReadOnlyPropertyCompatibleWithInterface ( ) ; }

Target:
public void testValidateSucceedReadOnlyWithInterface ( ) { org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( command ) ; org.mockito.Mockito.verify ( diskValidator ) . isReadOnlyPropertyCompatibleWithInterface ( ) ; }
Source:
protected java.lang.String getImportConflictTitle ( ) { return org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) . importTemplateConflictTitle ( ) ; }

Target:
protected java.lang.String getImportConflictTitle ( ) { return org.ovirt.engine.ui.uicommonweb.models.storage.TemplateBackupModel.constants.importTemplateConflictTitle ( ) ; }
Source:
public org.ovirt.engine.api.model.Network get ( ) { org.ovirt.engine.api.model.Network entity = getNetworks ( ) ; if ( entity == null ) { return notFound ( ) ; } return addLinks ( map ( entity ) ) ; }

Target:
public org.ovirt.engine.api.model.Network get ( ) { org.ovirt.engine.api.model.Network entity = getNetwork ( ) ; if ( entity == null ) { return notFound ( ) ; } return addLinks ( map ( entity ) ) ; }
Source:
protected java.lang.String generateOvfConfig ( org.ovirt.engine.core.common.businessentities.VM vm ) { return new org.ovirt.engine.core.bll.OvfHelper ( ) . generateOvfConfigurationForVm ( vm ) ; }

Target:
protected java.lang.String generateOvfConfig ( org.ovirt.engine.core.common.businessentities.VM vm ) { return new org.ovirt.engine.core.bll.storage.ovfstore.OvfHelper ( ) . generateOvfConfigurationForVm ( vm ) ; }
Source:
public org.ovirt.engine.core.compat.DateTime AddDays ( int i ) { java.util.Date date = new java.util.Date ( ) ; com.google.gwt.user.datepicker.client.CalendarUtil.addDaysToDate ( date , i ) ; return new org.ovirt.engine.core.compat.DateTime ( date ) ; }

Target:
public org.ovirt.engine.core.compat.DateTime addDays ( int i ) { java.util.Date date = new java.util.Date ( ) ; com.google.gwt.user.datepicker.client.CalendarUtil.addDaysToDate ( date , i ) ; return new org.ovirt.engine.core.compat.DateTime ( date ) ; }
Source:
public boolean getLiveMergeSupport ( ) { return vdsDynamic.getLiveMergeSupport ( ) ; }

Target:
public boolean isHostedEngineHost ( ) { return hostedEngineHost ; }
Source:
public void testGetNonePermittedStorageDomains ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getPermittedStorageDomainsByStoragePool ( org.ovirt.engine.core.dao.StorageDomainDAOTest.EXISTING_USER_ID , ActionGroup.CONSUME_QUOTA , org.ovirt.engine.core.dao.StorageDomainDAOTest.EXISTING_STORAGE_POOL_ID ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetNonePermittedStorageDomains ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getPermittedStorageDomainsByStoragePool ( org.ovirt.engine.core.dao.StorageDomainDAOTest.EXISTING_USER_ID , ActionGroup.CONSUME_QUOTA , new org.ovirt.engine.core.compat.Guid ( "6d849ebf-755f-4552-ad09-9a090cda105d" ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
private void cancel ( ) { setWindow ( null ) ; org.ovirt.engine.ui.frontend.Frontend.Unsubscribe ( ) ; }

Target:
private void cancel ( ) { setWindow ( null ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . unsubscribe ( ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getJobDao ( ) ; existingEntity = dao.get ( org.ovirt.engine.core.dao.JobDaoTest.EXISTING_JOB_ID ) ; newEntity = generateNewEntity ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getJobDao ( ) ; stepDao = dbFacade.getStepDao ( ) ; existingEntity = dao.get ( org.ovirt.engine.core.dao.JobDaoTest.EXISTING_JOB_ID ) ; newEntity = generateNewEntity ( ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.storage_domains getEntity ( int index , org.ovirt.engine.core.common.businessentities.StorageType storageType ) { org.ovirt.engine.core.common.businessentities.storage_domains entity = control.createMock ( org.ovirt.engine.core.common.businessentities.storage_domains.class ) ; return org.ovirt.engine.api.restapi.resource.BackendAttachedStorageDomainsResourceTest.setUpEntityExpectations ( entity , index , storageType ) ; }

Target:
protected org.ovirt.engine.api.model.StorageDomain getEntity ( int index , org.ovirt.engine.core.common.businessentities.StorageType storageType ) { org.ovirt.engine.api.model.StorageDomain entity = control.createMock ( org.ovirt.engine.api.model.StorageDomain.class ) ; return org.ovirt.engine.api.restapi.resource.BackendAttachedStorageDomainsResourceTest.setUpEntityExpectations ( entity , index , storageType ) ; }
Source:
public void setType ( org.ovirt.engine.ui.uicommonweb.models.tags.TagModelType value ) { if ( ( type ) != value ) { type = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "Type" ) ) ; } }

Target:
public void setType ( org.ovirt.engine.ui.uicommonweb.models.tags.TagModelType value ) { if ( ( type ) != value ) { type = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Type" ) ) ; } }
Source:
public java.lang.Boolean getTunnelMigration ( ) { return tunnelMigration ; }

Target:
public boolean isTunnelMigration ( ) { return tunnelMigration ; }
Source:
public void canDoWithPinnedHostOnVm ( ) { final org.ovirt.engine.core.bll.numa.vm.AddVmNumaNodesCommand command = mockedCommand ( ) ; org.assertj.core.api.Assertions.assertThat ( command.canDoAction ( ) ) . isTrue ( ) ; }

Target:
public void canDoWithPinnedHostOnVm ( ) { final org.ovirt.engine.core.bll.numa.vm.AddVmNumaNodesCommand command = mockedCommandWithVmFromDb ( ) ; org.assertj.core.api.Assertions.assertThat ( command.canDoAction ( ) ) . isTrue ( ) ; }
Source:
public void canRebalanceOnDistributedVolume ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity volumeEntity = getDistributedVolume ( volumeId1 , 5 ) ; org.ovirt.engine.core.bll.ValidationResult validationResult = brickValidator.canRebalance ( volumeEntity ) ; org.junit.Assert.assertThat ( validationResult , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void canRebalanceOnDistributedVolume ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity volumeEntity = getDistributedVolume ( volumeId1 , 5 ) ; org.ovirt.engine.core.bll.ValidationResult validationResult = brickValidator.canRebalance ( volumeEntity ) ; org.hamcrest.MatcherAssert.assertThat ( validationResult , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void testValidModifiedBondsFailsWhenBondIsUnnamed ( ) throws java.lang.Exception { doTestValidModifiedBonds ( new org.ovirt.engine.core.common.businessentities.network.Bond ( ) , new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.HOST_NETWORK_INTERFACE_NOT_EXIST ) , ValidationResult.VALID , new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.HOST_NETWORK_INTERFACE_NOT_EXIST ) , ValidationResult.VALID ) ; }

Target:
public void testValidModifiedBondsFailsWhenBondIsUnnamed ( ) throws java.lang.Exception { doTestValidModifiedBonds ( new org.ovirt.engine.core.common.businessentities.network.Bond ( ) , new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.HOST_NETWORK_INTERFACE_NOT_EXIST ) , ValidationResult.VALID , new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.HOST_NETWORK_INTERFACE_NOT_EXIST ) , ValidationResult.VALID ) ; }
Source:
protected org.ovirt.engine.core.common.asynctasks.AsyncTaskType getTaskType ( ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
protected void addCanDoActionMessageVariable ( java.lang.String varName , java.lang.Object varValue ) { getReturnValue ( ) . getCanDoActionMessages ( ) . add ( java.lang.String.format ( "$%s %s" , varName , varValue ) ) ; }
Source:
public void testFilteredGetAllForDataCenterWithNoPermissions ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > result = dao.getAllForDataCenter ( FixturesTool.DATA_CENTER , org.ovirt.engine.core.dao.network.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testFilteredGetAllForDataCenterWithNoPermissions ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > result = dao.getAllForDataCenter ( FixturesTool.DATA_CENTER , org.ovirt.engine.core.dao.network.UNPRIVILEGED_USER_ID , true ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public void testGetAllForTemplateWithPermissionsForUnprivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > result = dao.getAllForTemplate ( org.ovirt.engine.core.dao.network.VmNetworkInterfaceDaoTest.TEMPLATE_ID , org.ovirt.engine.core.dao.network.VmNetworkInterfaceDaoTest.UNPRIVILEGED_USER_ID , true ) ; assertNotNull ( result ) ; assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForTemplateWithPermissionsForUnprivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > result = dao.getAllForTemplate ( org.ovirt.engine.core.dao.network.VmNetworkInterfaceDaoTest.TEMPLATE_ID , org.ovirt.engine.core.dao.network.VmNetworkInterfaceDaoTest.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
protected void verifyCollection ( java.util.List < org.ovirt.engine.api.model.StorageConnection > collection ) throws java.lang.Exception { assertNotNull ( collection ) ; assertEquals ( 1 , collection.size ( ) ) ; }

Target:
protected void verifyCollection ( java.util.List < org.ovirt.engine.api.model.StorageConnection > collection ) throws java.lang.Exception { org.junit.Assert.assertNotNull ( collection ) ; org.junit.Assert.assertEquals ( 1 , collection.size ( ) ) ; }
Source:
public java.math.BigInteger readInteger ( ) { java.lang.String image = readString ( ) ; try { return new java.math.BigInteger ( image ) ; } catch ( java.lang.NumberFormatException exception ) { throw new org.ovirt.api.metamodel.runtime.xml.XmlException ( ( ( "The text \"" + image ) + "\" isn\'t a valid integer value" ) ) ; } }

Target:
public java.math.BigInteger parseInteger ( java.lang.String image ) { try { return new java.math.BigInteger ( image ) ; } catch ( java.lang.NumberFormatException exception ) { throw new org.ovirt.api.metamodel.runtime.xml.XmlException ( ( ( "The text \"" + image ) + "\" isn\'t a valid integer value" ) ) ; } }
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 ( ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb , vdsGroup.getCompatibilityVersion ( ) ) , UsbPolicy.DISABLED ) ; }

Target:
public void getUsbPolicySetDisabled ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) , UsbPolicy.DISABLED ) ; }
Source:
public void validateCanDoAction ( ) { org.junit.Assert.assertTrue ( command.canDoAction ( ) ) ; }

Target:
public void validateCanDoAction ( ) { setupForStorageTests ( ) ; org.junit.Assert.assertTrue ( command.canDoAction ( ) ) ; }
Source:
protected void OnEntityChanged ( ) { super . OnEntityChanged ( ) ; if ( entitiesChanged ) { onEntityContentChanged ( ) ; } }

Target:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; if ( entitiesChanged ) { onEntityContentChanged ( ) ; } }
Source:
public java.lang.Boolean getRawValue ( org.ovirt.engine.core.common.businessentities.VmNetworkInterface object ) { return object.isPortMirroring ( ) ; }

Target:
public java.lang.Boolean getRawValue ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface object ) { return object.isPortMirroring ( ) ; }
Source:
public void storagePoolUpEvent ( org.ovirt.engine.core.common.businessentities.StoragePool storagePool , boolean isNewSpm ) { if ( isNewSpm ) { org.ovirt.engine.core.bll.AsyncTaskManager.getInstance ( ) . StopStoragePoolTasks ( storagePool ) ; } else { org.ovirt.engine.core.bll.AsyncTaskManager.getInstance ( ) . AddStoragePoolExistingTasks ( storagePool ) ; } }

Target:
public void storagePoolUpEvent ( org.ovirt.engine.core.common.businessentities.StoragePool storagePool ) { org.ovirt.engine.core.bll.AsyncTaskManager.getInstance ( ) . addStoragePoolExistingTasks ( storagePool ) ; }
Source:
public void testNotRemovingDefaultPool ( ) { macPool.setDefaultPool ( true ) ; org.junit.Assert.assertThat ( macPoolValidator.notRemovingDefaultPool ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_CANNOT_REMOVE_DEFAULT_MAC_POOL ) ) ; }

Target:
public void testNotRemovingDefaultPool ( ) { macPool.setDefaultPool ( true ) ; org.hamcrest.MatcherAssert.assertThat ( macPoolValidator.notRemovingDefaultPool ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_CANNOT_REMOVE_DEFAULT_MAC_POOL ) ) ; }
Source:
public org.ovirt.engineextensions.aaa.ldap.ASN1OctetString decode ( java.lang.String value , org.ovirt.engineextensions.aaa.ldap.MapProperties props ) { return new org.ovirt.engineextensions.aaa.ldap.ASN1OctetString ( value ) ; }

Target:
public com.unboundid.asn1.ASN1OctetString decode ( java.lang.String value , org.ovirt.engineextensions.aaa.ldap.MapProperties props ) { return new com.unboundid.asn1.ASN1OctetString ( value ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VmExitStatus getExitStatus ( ) { return this . mVmDynamic.getExitStatus ( ) ; }

Target:
public void setExitStatus ( org.ovirt.engine.core.common.businessentities.VmExitStatus value ) { this . vmDynamic.setExitStatus ( value ) ; }
Source:
public java.lang.String getName ( ) { return getvds_name ( ) ; }

Target:
public java.lang.String getActiveNic ( ) { return activeNic ; }
Source:
public org.ovirt.engine.core.common.asynctasks.AsyncTaskType getAsyncTaskType ( ) { return getTaskType ( ) ; }

Target:
public org.ovirt.engine.core.common.asynctasks.AsyncTaskType getAsyncTaskType ( ) { if ( ( getTaskType ( ) ) == ( org.ovirt.engine.core.common.asynctasks.AsyncTaskType.notSupported ) ) { throw new java.lang.UnsupportedOperationException ( ) ; } return getTaskType ( ) ; }
Source:
private void Spice_Connected ( java.lang.Object sender ) { setIsConnected ( true ) ; UpdateActionAvailability ( ) ; }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { super . executeCommand ( command ) ; if ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( command.getName ( ) , "Cancel" ) ) { cancel ( ) ; } }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { customPropertiesSheetEditor.edit ( profile.getCustomPropertySheet ( ) ) ; }

Target:
public void edit ( final org.ovirt.engine.ui.uicommonweb.models.profiles.VnicProfileModel profile ) { driver.edit ( profile ) ; customPropertiesSheetEditor.edit ( profile.getCustomPropertySheet ( ) ) ; }
Source:
java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > getAllByVMTemplateName ( java.lang.String vmTemplateName ) ;

Target:
java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > getAllByVMTemplateId ( org.ovirt.engine.core.compat.Guid vmTemplateId ) ;
Source:
private void closeDialog ( ) { originModel.setConfirmWindow ( null ) ; }

Target:
private void closeDialog ( ) { originModel.setWindow ( null ) ; }
Source:
public boolean isHostedEngine ( ) { return ( ( OriginType.HOSTED_ENGINE ) == ( getOrigin ( ) ) ) || ( ( OriginType.MANAGED_HOSTED_ENGINE ) == ( getOrigin ( ) ) ) ; }

Target:
public boolean isManagedHostedEngine ( ) { return vmStatic.isManagedHostedEngine ( ) ; }
Source:
public void log ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase auditLogable , org.ovirt.engine.core.common.AuditLogType logType ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( auditLogable , logType ) ; }

Target:
public void log ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase auditLogable ) { auditLogDirector.log ( auditLogable ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VDS p ) { return ( p.getvm_count ( ) ) < ( vmCountTemp * ( org.ovirt.engine.core.bll.VdsSelector.getEffectiveCpuCores ( p ) ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VDS p ) { return ( p.getVmCount ( ) ) < ( vmCountTemp * ( org.ovirt.engine.core.bll.VdsSelector.getEffectiveCpuCores ( p ) ) ) ; }
Source:
public void testNetworkAttachmentIsSetWhenAttachmentIsNull ( ) throws java.lang.Exception { org.junit.Assert.assertThat ( createNetworkAttachmentValidator ( null ) . networkAttachmentIsSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.NETWORK_ATTACHMENT_NOT_EXISTS , HostSetupNetworksValidator.VAR_NETWORK_ATTACHMENT_NOT_EXISTS_ENTITY , "null" ) ) ; }

Target:
public void testNetworkAttachmentIsSetWhenAttachmentIsNull ( ) { org.ovirt.engine.core.common.errors.EngineMessage engineMessage = org.ovirt.engine.core.common.errors.EngineMessage.NETWORK_ATTACHMENT_NOT_EXISTS ; org.junit.Assert.assertThat ( createNetworkAttachmentValidator ( null ) . networkAttachmentIsSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( engineMessage , org.ovirt.engine.core.utils.ReplacementUtils.getVariableAssignmentString ( engineMessage , "null" ) ) ) ; }
Source:
public long getDelayMinimum ( ) { return this . delayMinimum ; }

Target:
public void setMemLoad ( java.util.List < java.lang.String > memLoad ) { this . memLoad = memLoad ; }
Source:
public void attachmentAndNicLabelReferenceSameLabelNotConflict ( ) { attachmentAndNicLabelReferenceSameLabelCommonTest ( true , true ) ; }

Target:
public void attachmentAndNicLabelReferenceSameLabelConflict ( ) { boolean referenceSameNic = false ; attachmentAndNicLabelReferenceSameLabelCommonTest ( referenceSameNic , false ) ; }
Source:
public void osTypeChanged ( java.lang.Integer selectedItem ) { getDomain ( ) . setIsAvailable ( ( ( selectedItem != null ) && ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.isWindowsOsType ( selectedItem ) ) ) ) ; }

Target:
public void osTypeChanged ( java.lang.Integer selectedItem ) { isWindowsOS = org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.isWindowsOsType ( selectedItem ) ; }
Source:
public void update ( int index , org.ovirt.engine.core.common.businessentities.aaa.DbUser user , java.lang.String value ) { transitionHandler.handleTransition ( user ) ; }

Target:
public void update ( int index , org.ovirt.engine.core.common.businessentities.aaa.DbUser user , java.lang.String value ) { transitionHandler.handlePlaceTransition ( ) ; }
Source:
protected void removeVmDynamic ( ) { getVmDynamicDAO ( ) . remove ( org.ovirt.engine.core.bll.VmCommand.getVmId ( ) ) ; }

Target:
protected void removeVmDynamic ( ) { getVmDynamicDao ( ) . remove ( org.ovirt.engine.core.bll.VmCommand.getVmId ( ) ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotEnabledNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; usb.setType ( UsbType.NATIVE ) ; assertEquals ( UsbPolicy.ENABLED_NATIVE , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED ) ) ; }

Target:
public void getUsbPolicyIsSetDisabled ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; org.junit.Assert.assertEquals ( UsbPolicy.DISABLED , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) ) ; }
Source:
protected java.lang.String getImageAlias ( ) { return org.ovirt.engine.core.bll.storage.disk.image.UploadDiskImageCommand.getParameters ( ) . getAddDiskParameters ( ) . getDiskInfo ( ) . getDiskAlias ( ) ; }

Target:
protected java.lang.String getImageAlias ( ) { return ( org.ovirt.engine.core.bll.storage.disk.image.UploadDiskImageCommand.getParameters ( ) . getAddDiskParameters ( ) ) != null ? org.ovirt.engine.core.bll.storage.disk.image.UploadDiskImageCommand.getParameters ( ) . getAddDiskParameters ( ) . getDiskInfo ( ) . getDiskAlias ( ) : org.ovirt.engine.core.bll.storage.disk.image.UploadDiskImageCommand.getDiskImage ( ) . getDiskAlias ( ) ; }
Source:
public void testRemoveIfUnusedWithUnused ( ) { dao.removeIfUnused ( org.ovirt.engine.core.dao.VmIconDaoTest.UNUSED_ICON_ID ) ; final org.ovirt.engine.core.common.businessentities.VmIcon nothing = dao.get ( org.ovirt.engine.core.dao.VmIconDaoTest.UNUSED_ICON_ID ) ; org.junit.Assert.assertNull ( nothing ) ; }

Target:
public void testRemoveIfUnusedWithUnused ( ) { dao.removeIfUnused ( org.ovirt.engine.core.dao.VmIconDaoTest.UNUSED_ICON_ID ) ; final org.ovirt.engine.core.common.businessentities.VmIcon nothing = dao.get ( org.ovirt.engine.core.dao.VmIconDaoTest.UNUSED_ICON_ID ) ; org.junit.jupiter.api.Assertions.assertNull ( nothing ) ; }
Source:
public boolean isSetEvent ( ) { return ( ( this . event ) != null ) && ( ! ( this . event.isEmpty ( ) ) ) ; }

Target:
public boolean isSetEvents ( ) { return ( ( this . events ) != null ) && ( ! ( this . events.isEmpty ( ) ) ) ; }
Source:
public java.net.URL getExternalHttpsUrl ( java.lang.String path ) throws java.net.MalformedURLException { return new java.net.URL ( "https" , getHost ( ) , getExternalHttpsPort ( ) , ( ( getEngineURI ( ) ) + path ) ) ; }

Target:
public java.net.URL getExternalHttpsUrl ( java.lang.String path ) throws java.net.MalformedURLException { return getExternalHttpsBaseUrl ( ( ( getEngineURI ( ) ) + path ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.CommandEntity get ( org.ovirt.engine.core.compat.Guid commandId ) { initializeCache ( ) ; return commandMap.get ( commandId ) ; }

Target:
public void remove ( final org.ovirt.engine.core.compat.Guid commandId ) { commandMap.remove ( commandId ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getCommandEntityDao ( ) . remove ( commandId ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VmDevice device ) { return device.getAddress ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.vms.VmDeviceFeEntity deviceEntity ) { return deviceEntity.getVmDevice ( ) . getAddress ( ) ; }
Source:
protected void updateHostPinning ( org.ovirt.engine.core.common.businessentities.MigrationSupport migrationSupport ) { getModel ( ) . setMigrationMode ( migrationSupport ) ; }

Target:
protected void updateHostPinning ( org.ovirt.engine.core.common.businessentities.MigrationSupport migrationSupport ) { getModel ( ) . getMigrationMode ( ) . setSelectedItem ( migrationSupport ) ; }
Source:
protected void EndWithFailure ( ) { if ( ( org.ovirt.engine.core.bll.AddImageFromScratchCommand.getDestinationDiskImage ( ) ) != null ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getDiskImageDynamicDAO ( ) . remove ( org.ovirt.engine.core.bll.AddImageFromScratchCommand.getDestinationDiskImage ( ) . getImageId ( ) ) ; } super . EndWithFailure ( ) ; }

Target:
protected void endWithFailure ( ) { if ( ( org.ovirt.engine.core.bll.AddImageFromScratchCommand.getDestinationDiskImage ( ) ) != null ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getDiskImageDynamicDAO ( ) . remove ( org.ovirt.engine.core.bll.AddImageFromScratchCommand.getDestinationDiskImage ( ) . getImageId ( ) ) ; } super . endWithFailure ( ) ; }
Source:
private void canDetachDomain ( ) { org.mockito.Mockito.doReturn ( true ) . when ( cmd ) . isDetachAllowed ( org.mockito.Matchers.anyBoolean ( ) ) ; }

Target:
private void canDetachDomain ( ) { org.mockito.Mockito.doReturn ( true ) . when ( cmd ) . isDetachAllowed ( org.mockito.ArgumentMatchers.anyBoolean ( ) ) ; }
Source:
public javax.ws.rs.core.Response deactivate ( org.ovirt.engine.api.model.Action action ) { org.ovirt.engine.core.common.action.ActivateDeactivateVmNicParameters params = new org.ovirt.engine.core.common.action.ActivateDeactivateVmNicParameters ( guid , org.ovirt.engine.core.common.action.PlugAction.UNPLUG ) ; params.setVmId ( ( ( org.ovirt.engine.api.restapi.resource.BackendNicsResource ) ( collection ) ) . parentId ) ; return doAction ( VdcActionType.ActivateDeactivateVmNic , params , action ) ; }

Target:
public javax.ws.rs.core.Response deactivate ( org.ovirt.engine.api.model.Action action ) { org.ovirt.engine.api.model.NIC nic = get ( ) ; nic.setPlugged ( false ) ; update ( nic ) ; return actionSuccess ( action ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult mtuValid ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.NETWORK_MTU_OVERRIDE_NOT_SUPPORTED ) . unless ( ( ( ( network.getMtu ( ) ) == 0 ) || ( org.ovirt.engine.core.common.FeatureSupported.mtuSpecification ( getDataCenter ( ) . getCompatibilityVersion ( ) ) ) ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult networkNotUsedByHosts ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > allForNetwork = getDbFacade ( ) . getVdsDao ( ) . getAllForNetwork ( network.getId ( ) ) ; return new org.ovirt.engine.core.bll.validator.NetworkValidator.PluralMessages ( org.ovirt.engine.core.common.errors.EngineMessage.VAR__ENTITIES__HOST , org.ovirt.engine.core.common.errors.EngineMessage.VAR__ENTITIES__HOSTS ) . getNetworkInUse ( getEntitiesNames ( allForNetwork ) ) ; }
Source:
public void setVersion ( org.ovirt.engine.core.compat.RpmVersion value ) { mVdsDynamic.setVersion ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "Version" ) ) ; }

Target:
public boolean isPmSecondaryConcurrent ( ) { return mVdsStatic.isPmSecondaryConcurrent ( ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VmStatic > getAll ( ) { throw new org.apache.commons.lang.NotImplementedException ( ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VmStatic > getAll ( ) { throw new java.lang.UnsupportedOperationException ( ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.userportal.ApplicationConstants applicationConstants ) { return new com.gwtplatform.mvp.client.TabDataBasic ( applicationConstants.extendedTemplateVirtualDisksSubTabLabel ( ) , 2 ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( ) { return new com.gwtplatform.mvp.client.TabDataBasic ( org.ovirt.engine.ui.userportal.section.main.presenter.tab.extended.template.SubTabExtendedTemplateVirtualDisksPresenter.constants.extendedTemplateVirtualDisksSubTabLabel ( ) , 2 ) ; }
Source:
protected boolean setAndValidateCpuProfile ( ) { return validate ( org.ovirt.engine.core.bll.profiles.CpuProfileHelper.setAndValidateCpuProfile ( org.ovirt.engine.core.bll.VmManagementCommandBase.getParameters ( ) . getVm ( ) . getStaticData ( ) , org.ovirt.engine.core.bll.VmManagementCommandBase.getVdsGroup ( ) . getcompatibility_version ( ) ) ) ; }

Target:
protected boolean setAndValidateCpuProfile ( ) { return validate ( org.ovirt.engine.core.bll.profiles.CpuProfileHelper.setAndValidateCpuProfile ( org.ovirt.engine.core.bll.VmManagementCommandBase.getParameters ( ) . getVm ( ) . getStaticData ( ) , org.ovirt.engine.core.bll.VmManagementCommandBase.getVdsGroup ( ) . getCompatibilityVersion ( ) ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult notExternalNetwork ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.ACTION_TYPE_FAILED_NOT_SUPPORTED_FOR_EXTERNAL_NETWORK ) . when ( network.isExternal ( ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult notExternalNetwork ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.ACTION_TYPE_FAILED_NOT_SUPPORTED_FOR_EXTERNAL_NETWORK ) . when ( network.isExternal ( ) ) ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml input ( java.lang.String value ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml inputWithValue ( java.lang.String id , java.lang.String value ) ;
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc setVmTicket ( java.lang.String vmId , java.lang.String otp64 , java.lang.String sec ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc createVolumeContainer ( java.lang.String jobId , java.util.Map < java.lang.String , java.lang.Object > createVolumeInfo ) ;
Source:
protected void setActionMessageParameters ( ) { switch ( getParameters ( ) . getAction ( ) ) { case START : addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__START ) ; break ; default : break ; } addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__GLUSTER_BRICK ) ; }

Target:
protected void setActionMessageParameters ( ) { addValidationMessage ( EngineMessage.VAR__TYPE__GLUSTER_BRICK ) ; }
Source:
public void InternalSetVmStatus ( org.ovirt.engine.core.common.businessentities.VM vm , final org.ovirt.engine.core.common.businessentities.VMStatus status ) { InternalSetVmStatus ( vm , status , VmExitStatus.Normal , StringUtils.EMPTY , VmExitReason.Unknown ) ; }

Target:
public void InternalSetVmStatus ( org.ovirt.engine.core.common.businessentities.VM vm , final org.ovirt.engine.core.common.businessentities.VMStatus status , final java.lang.Double statusUpdatedTime ) { InternalSetVmStatus ( vm , status , VmExitStatus.Normal , StringUtils.EMPTY , VmExitReason.Unknown , statusUpdatedTime ) ; }
Source:
public void setVolumeFormat ( org.ovirt.engine.ui.uicommonweb.models.ListModel < org.ovirt.engine.core.common.businessentities.storage.VolumeFormat > volumeFormat ) { this . volumeFormat = volumeFormat ; }

Target:
public void setAuditLogType ( org.ovirt.engine.core.common.AuditLogType auditLogType ) { this . auditLogType = auditLogType ; }
Source:
public void remove ( org.ovirt.engine.core.compat.Guid id ) { getCallsHandler ( ) . executeModification ( "DeleteGlusterServerHookByGuid" , getCustomMapSqlParameterSource ( ) . addValue ( "hook_id" , id ) ) ; getCallsHandler ( ) . executeModification ( "DeleteGlusterHookByGuid" , createGlusterHookIdParams ( id ) ) ; }

Target:
public void remove ( org.ovirt.engine.core.compat.Guid id ) { getCallsHandler ( ) . executeModification ( "DeleteGlusterHookById" , createIdParameterMapper ( id ) ) ; }
Source:
public void setLiveMergeSupport ( boolean value ) { vdsDynamic.setLiveMergeSupport ( value ) ; }

Target:
public java.lang.String getCertificateSubject ( ) { return vdsStatic.getCertificateSubject ( ) ; }
Source:
public void setDisplaySecurePort ( java.lang.Integer value ) { this . vmDynamic.setDisplaySecurePort ( value ) ; }

Target:
public void setGuestMemoryFree ( java.lang.Long guestMemoryFree ) { vmDynamic.setGuestMemoryFree ( guestMemoryFree ) ; }
Source:
java.lang.String invalidPath ( java.lang.String kernel , java.lang.String or , java.lang.String inetd ) ;

Target:
java.lang.String errConnectingVmUsingSpiceMsg ( java.lang.Object errCode ) ;
Source:
public void validateFails ( ) { org.ovirt.engine.core.common.action.gluster.GlusterServiceParameters params = new org.ovirt.engine.core.common.action.gluster.GlusterServiceParameters ( ) ; params.setActionType ( "InvalidActionType" ) ; cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.ManageGlusterServiceCommand ( params , null ) ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFailsOnNull ( ) { cmd.getParameters ( ) . setServiceType ( ServiceType.NFS ) ; cmd.getParameters ( ) . setActionType ( GlusterConstants.MANAGE_GLUSTER_SERVICE_ACTION_TYPE_START ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > ( ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > ) ( source ) ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > ( ) ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? new java.util.ArrayList < > ( ( ( java.util.ArrayList < org.ovirt.engine.core.compat.RpmVersion > ) ( source ) ) ) : new java.util.ArrayList < org.ovirt.engine.core.compat.RpmVersion > ( ) ; }
Source:
org.ovirt.engine.core.common.eventqueue.EventResult masterDomainNotOperational ( org.ovirt.engine.core.compat.Guid storageDomainId , org.ovirt.engine.core.compat.Guid storagePoolId , boolean isReconstructToInactiveDomains ) ;

Target:
org.ovirt.engine.core.common.eventqueue.EventResult masterDomainNotOperational ( org.ovirt.engine.core.compat.Guid storageDomainId , org.ovirt.engine.core.compat.Guid storagePoolId , boolean isReconstructToInactiveDomains , boolean canReconstructToCurrentMaster ) ;
Source:
public int hashCode ( ) { return java.util.Objects.hashCode ( iPv4Addresses ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( iPv4Addresses , ipV6Addresses ) ; }
Source:
void processOnVmStop ( java.util.Collection < org.ovirt.engine.core.compat.Guid > vmIds ) ;

Target:
void processOnVmStop ( java.util.Collection < org.ovirt.engine.core.compat.Guid > vmIds , org.ovirt.engine.core.compat.Guid hostId ) ;
Source:
public void flush ( ) { if ( validate ( false ) ) { diskModel.flush ( ) ; ( ( org.ovirt.engine.core.common.businessentities.storage.DiskImage ) ( getDiskModel ( ) . getDisk ( ) ) ) . setvolumeFormat ( getVolumeFormat ( ) . getSelectedItem ( ) ) ; } }

Target:
public void flush ( ) { if ( validate ( false ) ) { diskModel.flush ( ) ; ( ( org.ovirt.engine.core.common.businessentities.storage.DiskImage ) ( getDiskModel ( ) . getDisk ( ) ) ) . setVolumeFormat ( getVolumeFormat ( ) . getSelectedItem ( ) ) ; } }
Source:
public void disable ( java.lang.String disabilityHint ) { setEnabled ( false ) ; updateWidgetTitle ( disabilityHint ) ; }

Target:
public void disable ( java.lang.String disabilityHint ) { setEnabled ( false ) ; setWidgetTooltip ( disabilityHint ) ; }
Source:
public java.lang.String getDiskAlias ( ) { if ( ( getDisk ( ) ) != null ) { return getDisk ( ) . getDiskAlias ( ) ; } return "" ; }

Target:
private org.ovirt.engine.core.compat.Guid getQuotaId ( ) { if ( ( ( getDisk ( ) ) != null ) && ( ( org.ovirt.engine.core.common.businessentities.storage.DiskStorageType.IMAGE ) == ( getDisk ( ) . getDiskStorageType ( ) ) ) ) { return getDiskImage ( ) . getQuotaId ( ) ; } return null ; }
Source:
public int getPollingTimeout ( ) { return pollingTimeout ; }

Target:
public void setAuthenticationProperties ( java.lang.String authenticationProperties ) { this . authenticationProperties = authenticationProperties ; }
Source:
public void checkRemoveConnectionEmptyId ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections newNFSConnection = createNFSConnection ( "multipass.my.domain.tlv.company.com:/export/allstorage/data2" , StorageType.NFS , NfsVersion.V4 , 300 , 0 ) ; newNFSConnection.setId ( "" ) ; parameters.setStorageServerConnection ( newNFSConnection ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.ACTION_TYPE_FAILED_STORAGE_CONNECTION_ID_EMPTY ) ; }

Target:
public void checkRemoveConnectionEmptyId ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections newNFSConnection = createNFSConnection ( "multipass.my.domain.tlv.company.com:/export/allstorage/data2" , StorageType.NFS , NfsVersion.V4 , 300 , 0 ) ; newNFSConnection.setId ( "" ) ; parameters.setStorageServerConnection ( newNFSConnection ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_STORAGE_CONNECTION_ID_EMPTY ) ; }
Source:
protected java.util.List < java.lang.String > missingServerCpuFlags ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return org.ovirt.engine.core.bll.CpuFlagsManagerHandler.missingServerCpuFlags ( org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getcpu_name ( ) , vds.getcpu_flags ( ) , org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getcompatibility_version ( ) ) ; }

Target:
protected java.util.List < java.lang.String > missingServerCpuFlags ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return org.ovirt.engine.core.bll.CpuFlagsManagerHandler.missingServerCpuFlags ( org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getcpu_name ( ) , vds.getCpuFlags ( ) , org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getcompatibility_version ( ) ) ; }
Source:
public void setPostZero ( boolean value ) { privatePostZero = value ; }

Target:
public void setPostZero ( boolean postZero ) { privatePostZero = postZero ; }
Source:
private java.lang.String getTemplateSharedLockMessage ( ) { return new java.lang.StringBuilder ( VdcBllMessages.ACTION_TYPE_FAILED_TEMPLATE_IS_USED_FOR_CREATE_VM.name ( ) ) . append ( java.lang.String.format ( "$VmName %1$s" , org.ovirt.engine.core.bll.AddVmFromTemplateCommand.getVmName ( ) ) ) . toString ( ) ; }

Target:
protected boolean checkTemplateImages ( java.util.List < java.lang.String > reasons ) { return true ; }
Source:
protected void initTemplateDisks ( ) { if ( ( org.ovirt.engine.core.bll.AddVmCommand.getVmTemplate ( ) ) != null ) { org.ovirt.engine.core.bll.VmTemplateHandler.UpdateDisksFromDb ( org.ovirt.engine.core.bll.AddVmCommand.getVmTemplate ( ) ) ; } }

Target:
protected void initTemplateDisks ( ) { if ( ( vmDisksSource ) != null ) { org.ovirt.engine.core.bll.VmTemplateHandler.UpdateDisksFromDb ( vmDisksSource ) ; } }
Source:
public javax.ws.rs.core.Response migrate ( org.ovirt.engine.api.model.Action action ) { validateParameters ( action , "bricks" ) ; validateBrickNames ( action ) ; org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters params = toParameters ( action ) ; return performAction ( VdcActionType.StartRemoveGlusterVolumeBricks , params , action , false ) ; }

Target:
public javax.ws.rs.core.Response migrate ( org.ovirt.engine.api.model.Action action ) { validateParameters ( action , "bricks" ) ; validateBrickNames ( action ) ; org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters params = toParameters ( action.getBricks ( ) ) ; return performAction ( VdcActionType.StartRemoveGlusterVolumeBricks , params , action , false ) ; }
Source:
private void attachStorageToDataCenter ( org.ovirt.engine.core.compat.Guid storageId , org.ovirt.engine.core.compat.Guid dataCenterId ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runAction ( VdcActionType.AttachStorageDomainToPool , new org.ovirt.engine.core.common.action.AttachStorageDomainToPoolParameters ( storageId , dataCenterId ) , null , this ) ; }

Target:
private void attachStorageToDataCenter ( org.ovirt.engine.core.compat.Guid storageId , org.ovirt.engine.core.compat.Guid dataCenterId , java.lang.Boolean activateDomain ) { org.ovirt.engine.core.common.action.AttachStorageDomainToPoolParameters params = new org.ovirt.engine.core.common.action.AttachStorageDomainToPoolParameters ( storageId , dataCenterId ) ; params.setActivate ( activateDomain ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runAction ( VdcActionType.AttachStorageDomainToPool , params , null , this ) ; }
Source:
public void shouldDetectPinnedVM ( ) { invalidVM.setDedicatedVmForVdsList ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; invalidVM.setMigrationSupport ( org.ovirt.engine.core.common.businessentities.MigrationSupport.PINNED_TO_HOST ) ; org.hamcrest.MatcherAssert.assertThat ( validator.isVmReadyForUpgrade ( invalidVM ) , org.hamcrest.CoreMatchers.hasItem ( UPGRADE_ERROR.VM_PINNED_TO_HOSTS ) ) ; }

Target:
public void shouldDetectNonMigratableVMs ( ) { invalidVM.setMigrationSupport ( org.ovirt.engine.core.common.businessentities.MigrationSupport.PINNED_TO_HOST ) ; org.hamcrest.MatcherAssert.assertThat ( validator.checkVmReadyForUpgrade ( invalidVM ) , org.hamcrest.CoreMatchers.hasItem ( UPGRADE_ERROR.VM_NOT_MIGRATABLE ) ) ; }
Source:
protected void OnSelectedItemChanged ( ) { super . OnSelectedItemChanged ( ) ; UpdateActionAvailability ( ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.UICommand getSetupNetworksCommand ( ) { return setupNetworksCommand ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VM getEntity ( int index , org.ovirt.engine.core.common.businessentities.VMStatus status ) { return org.ovirt.engine.api.restapi.resource.AbstractBackendCdRomsResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.core.common.businessentities.VM.class ) , control.createMock ( org.ovirt.engine.core.common.businessentities.VmStatic.class ) , status , index ) ; }

Target:
protected void verifyModel ( org.ovirt.engine.api.model.CdRom model ) { org.ovirt.engine.api.restapi.resource.AbstractBackendCdRomsResourceTest.verifyModelWithIso ( model , org.ovirt.engine.api.restapi.resource.AbstractBackendCdRomsResourceTest.ISO_PATH ) ; verifyLinks ( model ) ; }
Source:
public void supportsHostedEngineDeployInVersion36 ( ) { org.mockito.Mockito.when ( hostedEngineHelper.isVmManaged ( ) ) . thenReturn ( true ) ; org.junit.Assert.assertThat ( validator.supportsDeployingHostedEngine ( new org.ovirt.engine.core.common.businessentities.HostedEngineDeployConfiguration ( HostedEngineDeployConfiguration.Action.DEPLOY ) ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void supportsHostedEngineDeployInVersion36 ( ) { org.mockito.Mockito.when ( hostedEngineHelper.isVmManaged ( ) ) . thenReturn ( true ) ; org.hamcrest.MatcherAssert.assertThat ( validator.supportsDeployingHostedEngine ( new org.ovirt.engine.core.common.businessentities.HostedEngineDeployConfiguration ( HostedEngineDeployConfiguration.Action.DEPLOY ) ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public org.ovirt.engine.api.resource.externalhostproviders.KatelloErratumResource getKatelloErratumSubResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.externalhostproviders.BackendVmKatelloErratumResource ( id , vmId ) ) ; }

Target:
public org.ovirt.engine.api.resource.externalhostproviders.KatelloErratumResource getKatelloErratumResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.externalhostproviders.BackendVmKatelloErratumResource ( id , vmId ) ) ; }
Source:
private com.google.gwt.view.client.MultiSelectionModel < org.ovirt.engine.ui.uicommonweb.models.EntityModel > getSelectionModelForButton ( com.google.gwt.user.client.ui.Button button ) { return button == ( downButton ) ? topSelectionModel : bottomSelectionModel ; }

Target:
private com.google.gwt.view.client.MultiSelectionModel < org.ovirt.engine.ui.uicommonweb.models.EntityModel > getSelectionModel ( boolean top ) { return top ? topSelectionModel : bottomSelectionModel ; }
Source:
public void testDisksUsages ( ) { java.lang.Object [ ] disksUsages = initDisksUsageData ( ) ; org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct xml = setDisksUsageInXmlRpc ( disksUsages ) ; validateDisksUsagesList ( getVmStatistics ( ) , disksUsages , xml ) ; }

Target:
public void testDisksUsages ( ) { java.lang.Object [ ] disksUsages = org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectBuilderTest.initDisksUsageData ( ) ; org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct xml = org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectBuilderTest.setDisksUsageInXmlRpc ( disksUsages ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectBuilderTest.validateDisksUsagesList ( getVmStatistics ( ) , disksUsages , xml ) ; }
Source:
protected void Update ( ) { UpdateInternal ( ) ; setIsValid ( true ) ; }

Target:
protected void update ( ) { updateInternal ( ) ; setIsValid ( true ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.storage_pool > FilterDataCenter ( java.util.List < org.ovirt.engine.core.common.businessentities.storage_pool > source ) { return source ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.storage_pool > FilterDataCenter ( java.util.List < org.ovirt.engine.core.common.businessentities.storage_pool > source ) { return org.ovirt.engine.ui.uicommonweb.Linq.ToList ( org.ovirt.engine.ui.uicommonweb.Linq.Where ( source , new org.ovirt.engine.ui.uicommonweb.Linq.DataCenterNotStatusPredicate ( org.ovirt.engine.core.common.businessentities.StoragePoolStatus.NotOperational ) ) ) ; }
Source:
public void testUpdate ( ) { existingProfile.setSshPublicKey ( "key4" ) ; dao.update ( existingProfile ) ; org.ovirt.engine.core.common.businessentities.UserProfile result = dao.get ( existingProfile.getId ( ) ) ; org.junit.Assert.assertEquals ( existingProfile , result ) ; }

Target:
public void testUpdate ( ) { existingProfile.setSshPublicKey ( "key4" ) ; dao.update ( existingProfile ) ; org.ovirt.engine.core.common.businessentities.UserProfile result = dao.get ( existingProfile.getId ( ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( existingProfile , result ) ; }