auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotDisabledNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; usb.setType ( "native" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED , null ) , UsbPolicy.DISABLED ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledNativePolicyUsb ( ) { 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.ENABLED_NATIVE ) , UsbPolicy.ENABLED_NATIVE ) ; }
Source:
public void saveEmptyList ( ) { java.lang.String result = org.ovirt.engine.core.common.utils.pm.FenceProxySourceTypeHelper.saveAsString ( java.util.Collections.emptyList ( ) ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void saveEmptyList ( ) { java.lang.String result = org.ovirt.engine.core.common.utils.pm.FenceProxySourceTypeHelper.saveAsString ( java.util.Collections.emptyList ( ) ) ; org.junit.jupiter.api.Assertions.assertNull ( result ) ; }
Source:
protected void RunSleepOnReboot ( ) { RunSleepOnReboot ( VDSStatus.NonResponsive ) ; }

Target:
protected void runSleepOnReboot ( ) { runSleepOnReboot ( VDSStatus.NonResponsive ) ; }
Source:
protected void doDisplayTypeChanged ( ) { java.lang.Integer osType = getOSType ( ) . getSelectedItem ( ) ; displayTypeSelectedItemChanged ( osType , org.ovirt.engine.core.compat.Version.getLast ( ) ) ; }

Target:
protected void initGraphicsConsoles ( ) { java.lang.Integer osType = getOSType ( ) . getSelectedItem ( ) ; if ( osType == null ) { return ; } initGraphicsConsoles ( osType , org.ovirt.engine.core.compat.Version.getLast ( ) ) ; }
Source:
public void passthroughProfileContainsQos ( ) { passthroughProfileContainsSupportedPropertiesTest ( true , false , DEFAULT_GUID ) ; org.junit.Assert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_PASSTHROUGH_PROFILE_CONTAINS_NOT_SUPPORTED_PROPERTIES ) ) ; }

Target:
public void passthroughProfileContainsQos ( ) { passthroughProfileContainsSupportedPropertiesTest ( true , false , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_GUID ) ; org.junit.Assert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_PASSTHROUGH_PROFILE_CONTAINS_NOT_SUPPORTED_PROPERTIES ) ) ; }
Source:
public void activated ( ) { if ( ( getBehavior ( ) . getInstanceTypeManager ( ) ) != null ) { getBehavior ( ) . getInstanceTypeManager ( ) . updateFields ( ) ; } }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { super . executeCommand ( command ) ; if ( NumaSupportModel.SUBMIT_NUMA_SUPPORT.equals ( command.getName ( ) ) ) { onNumaSupport ( ) ; } }
Source:
public int getmaster_domain_version ( ) { return this . masterDomainVersion ; }

Target:
public void setMacPoolId ( org.ovirt.engine.core.compat.Guid macPoolId ) { this . macPoolId = macPoolId ; }
Source:
org.ovirt.engine.core.common.businessentities.MacPool getByDataCenterId ( org.ovirt.engine.core.compat.Guid id ) ;

Target:
org.ovirt.engine.core.common.businessentities.MacPool getByClusterId ( org.ovirt.engine.core.compat.Guid id ) ;
Source:
public void setfail_back ( boolean value ) { this . mVmStatic.setfail_back ( value ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.MigrationSupport getMigrationSupport ( ) { return this . vmStatic.getMigrationSupport ( ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickStatus getBrickStatus ( ) { return ( getGlusterVolume ( ) . getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeStatus.UP ) ? org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickStatus.UP : org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickStatus.DOWN ; }

Target:
private org.ovirt.engine.core.common.businessentities.gluster.GlusterStatus getBrickStatus ( ) { return getGlusterVolume ( ) . getStatus ( ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcActionParametersBase getTaskParameters ( ) { return cmdEntity.getCommandParameters ( ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcActionParametersBase getTaskParameters ( ) { return childCmdEntity.getCommandParameters ( ) ; }
Source:
public void testExistingPassDiscardFunctionalityIsPreservedSdHasNoDisks ( ) { setSdFullDiscardSupport ( ) ; org.junit.Assert.assertTrue ( discardHelper.isExistingPassDiscardFunctionalityPreserved ( new java.util.LinkedList < > ( ) , storageDomain ) ) ; }

Target:
public void testExistingPassDiscardFunctionalityIsPreservedSdHasNoDiscardFunctionality ( ) { storageDomain.setSupportsDiscard ( false ) ; org.junit.Assert.assertTrue ( discardHelper.isExistingPassDiscardFunctionalityPreserved ( new java.util.LinkedList < > ( ) , storageDomain ) ) ; }
Source:
public void externalNetworkVlanIdChanged ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Network externalNetwork = mockExternalNetwork ( ) ; org.mockito.Mockito.when ( externalNetwork.getVlanId ( ) ) . thenReturn ( 0 ) ; org.mockito.Mockito.when ( network.getVlanId ( ) ) . thenReturn ( 1 ) ; assertThatExternalNetworkDetailsUnchangedFails ( externalNetwork ) ; }

Target:
public void externalNetworkVmNetworkChanged ( ) { org.ovirt.engine.core.common.businessentities.network.Network externalNetwork = createExternalNetwork ( ) ; externalNetwork.setVmNetwork ( true ) ; network.setVmNetwork ( false ) ; assertThatExternalNetworkDetailsUnchangedFails ( externalNetwork ) ; }
Source:
protected void saveImage ( org.ovirt.engine.core.common.businessentities.storage.DiskImage disk ) { org.ovirt.engine.core.bll.BaseImagesCommand.saveImage ( disk ) ; }

Target:
protected void saveImage ( org.ovirt.engine.core.common.businessentities.storage.DiskImage disk ) { org.ovirt.engine.core.bll.storage.disk.image.BaseImagesCommand.saveImage ( disk ) ; }
Source:
public void start ( ) { org.ovirt.engine.ui.uicommonweb.models.GridTimer.logger.fine ( ( ( "GridTimer[" + ( name ) ) + "].start()" ) ) ; active = true ; scheduleRepeating ( getRefreshRate ( ) ) ; }

Target:
public void start ( ) { org.ovirt.engine.ui.uicommonweb.models.GridTimer.logger.fine ( ( ( "GridTimer[" + ( name ) ) + "].start()" ) ) ; active = true ; scheduleRepeating ( getRefreshRate ( ) ) ; com.google.gwt.event.logical.shared.ValueChangeEvent.fire ( this , getValue ( ) ) ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { buildVmData ( ) ; mVmReturn = org.ovirt.engine.core.vdsbroker.vdsbroker.CreateVDSCommand.getBroker ( ) . create ( createInfo ) ; logCommandInfo ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.CreateVDSCommand.proceedProxyReturnValue ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.updateVMDynamicData ( vm.getDynamicData ( ) , mVmReturn.mVm ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { buildVmData ( ) ; mVmReturn = org.ovirt.engine.core.vdsbroker.vdsbroker.CreateVDSCommand.getBroker ( ) . create ( createInfo ) ; logCommandInfo ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.CreateVDSCommand.proceedProxyReturnValue ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.updateVMDynamicData ( vm.getDynamicData ( ) , mVmReturn.mVm ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.NetworkCluster networkCluster ) { return networkCluster.getis_display ( ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.NetworkCluster networkCluster ) { return networkCluster.getis_display ( ) ; }
Source:
private void updateIsLiveMergeSupported ( java.lang.Object entity ) { if ( entity == null ) { return ; } org.ovirt.engine.core.common.businessentities.VM vm = ( ( org.ovirt.engine.core.common.businessentities.VM ) ( entity ) ) ; setLiveMergeSupported ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.isLiveMergeSupported ( vm ) ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmSnapshotListModel vmSnapshotListModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.VmSnapshotListModel ) ( model ) ) ; org.ovirt.engine.core.common.businessentities.VDS vds = ( ( org.ovirt.engine.core.common.businessentities.VDS ) ( returnValue ) ) ; vmSnapshotListModel.setLiveMergeSupported ( vds.getLiveMergeSupport ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.LdapUser getExpectedResult ( ) { org.ovirt.engine.core.common.businessentities.LdapUser user = new org.ovirt.engine.core.common.businessentities.LdapUser ( ) ; user.setUserName ( org.ovirt.engine.core.bll.NAME_TO_SEARCH ) ; user.setUserId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; user.setDomainControler ( org.ovirt.engine.core.bll.DOMAIN ) ; return user ; }

Target:
protected org.ovirt.engine.core.common.businessentities.LdapUser getExpectedResult ( ) { org.ovirt.engine.core.common.businessentities.LdapUser user = new org.ovirt.engine.core.common.businessentities.LdapUser ( ) ; user.setUserName ( org.ovirt.engine.core.bll.NAME_TO_SEARCH ) ; user.setUserId ( new org.ovirt.engine.core.common.utils.ExternalId ( 0 ) ) ; user.setDomainControler ( org.ovirt.engine.core.bll.DOMAIN ) ; return user ; }
Source:
public void testGetMessagesBundleLocale ( ) { java.util.List < java.util.ResourceBundle > bundle = testTheme.getMessagesBundle ( java.util.Locale.FRENCH ) ; org.junit.Assert.assertNotNull ( "There should be a bundle" , bundle ) ; org.junit.Assert.assertEquals ( "Login header(fr)" , bundle.get ( 0 ) . getString ( "obrand.common.login_header_label" ) ) ; }

Target:
public void testGetMessagesBundleLocale ( ) { java.util.List < java.util.ResourceBundle > bundle = testTheme.getMessagesBundle ( java.util.Locale.FRENCH ) ; org.junit.jupiter.api.Assertions.assertNotNull ( bundle , "There should be a bundle" ) ; org.junit.jupiter.api.Assertions.assertEquals ( "Login header(fr)" , bundle.get ( 0 ) . getString ( "obrand.common.login_header_label" ) ) ; }
Source:
private static void assertFullGetAllForVMResult ( java.util.List < org.ovirt.engine.core.common.businessentities.Disk > disks ) { org.junit.Assert.assertEquals ( "VM should have three disks" , 3 , disks.size ( ) ) ; }

Target:
private static void assertFullGetAllForVMResult ( java.util.List < org.ovirt.engine.core.common.businessentities.Disk > disks ) { org.junit.Assert.assertEquals ( "VM should have three disks" , 4 , disks.size ( ) ) ; }
Source:
private void importCertificate ( ) { }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { testProviderConnectivity ( ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > startImageTransferSession ( java.lang.String ticketId , java.lang.String ops , long expiration , java.lang.String spId , java.lang.String sdId , java.lang.String imgId , java.lang.String volId ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > prepareImage ( java.lang.String sdID , java.lang.String spID , java.lang.String imageID , java.lang.String volumeID ) ;
Source:
private org.ovirt.engine.core.common.businessentities.StorageDomain mockFirstStorageDomain ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain = new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ; storageDomain.setStatus ( StorageDomainStatus.Active ) ; storageDomain.setId ( firstStorageDomainId ) ; storageDomain.setStorageDomainType ( StorageDomainType.Data ) ; return storageDomain ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > getStorageDomainList ( ) { return java.util.stream.Stream.of ( firstStorageDomainId , secondStorageDomainId ) . map ( this :: mockDomain ) . collect ( java.util.stream.Collectors.toList ( ) ) ; }
Source:
public void setutc_diff ( java.lang.Integer value ) { this . utc_diff = value ; }

Target:
public org.ovirt.engine.core.common.businessentities.BootSequence getBootSequence ( ) { return this . bootSequence ; }
Source:
public void updateStartedExecutionEntitiesToUnknown ( java.util.Date updateTime ) { updateQueryGetResult ( getEntityManager ( ) . createNativeQuery ( "select cast(UpdateStartedExecutionEntitiesToUnknown as text) from UpdateStartedExecutionEntitiesToUnknown(?)" ) . setParameter ( 1 , updateTime ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.job.Job > getJobsByCorrelationId ( java.lang.String correlationId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "correlation_id" , correlationId ) ; return getCallsHandler ( ) . executeReadList ( "GetJobsByCorrelationId" , createEntityRowMapper ( ) , parameterSource ) ; }
Source:
private static void addIfNotNullOrEmpty ( java.util.Map < java.lang.String , java.lang.String > map , java.lang.String what , java.lang.String name ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.isNullOrEmpty ( what ) ) ) { map.put ( name , what ) ; } }

Target:
private static void addIfNotNullOrEmpty ( java.util.Map < java.lang.String , java.lang.String > map , java.lang.String what , java.lang.String name ) { if ( ! ( org.apache.commons.lang.StringUtils.isEmpty ( what ) ) ) { map.put ( name , what ) ; } }
Source:
public void updateHosts ( ) { }

Target:
public boolean showExternalProviderPanel ( ) { return true ; }
Source:
public java.lang.String getId ( ) { return this . subscriber.getSubsctibtionId ( ) ; }

Target:
public java.lang.String getId ( ) { return this . subscriber.getSubscriptionId ( ) ; }
Source:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { return org.ovirt.engine.core.bll.RemoveAuditLogByIdCommand.getSucceeded ( ) ? org.ovirt.engine.core.common.AuditLogType.USER_REMOVE_AUDIT_LOG : org.ovirt.engine.core.common.AuditLogType.USER_REMOVE_AUDIT_LOG_FAILED ; }

Target:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { addCustomValue ( "AuditLogId" , java.lang.String.valueOf ( org.ovirt.engine.core.bll.RemoveAuditLogByIdCommand.getParameters ( ) . getAuditLogId ( ) ) ) ; return org.ovirt.engine.core.bll.RemoveAuditLogByIdCommand.getSucceeded ( ) ? org.ovirt.engine.core.common.AuditLogType.USER_REMOVE_AUDIT_LOG : org.ovirt.engine.core.common.AuditLogType.USER_REMOVE_AUDIT_LOG_FAILED ; }
Source:
public void updateWithCpuLowerThanHost ( ) { createCommandWithDefaultVdsGroup ( ) ; cpuExists ( ) ; cpuManufacturersMatch ( ) ; clusterHasVds ( ) ; cpuFlagsMissing ( ) ; architectureIsUpdatable ( ) ; canDoActionFailedWithReason ( VdcBllMessages.VDS_GROUP_CANNOT_UPDATE_CPU_WITH_LOWER_HOSTS ) ; }

Target:
private void setupCpu ( ) { cpuExists ( ) ; cpuManufacturersMatch ( ) ; }
Source:
protected boolean validateCustomProperties ( org.ovirt.engine.core.common.businessentities.VmStatic vmStaticFromParams , java.util.List < java.lang.String > reasons ) { return org.ovirt.engine.core.common.utils.customprop.VmPropertiesUtils.getInstance ( ) . validateVmProperties ( org.ovirt.engine.core.bll.VmCommand.getVdsGroup ( ) . getcompatibility_version ( ) , vmStaticFromParams.getCustomProperties ( ) , reasons ) ; }

Target:
protected boolean validateCustomProperties ( org.ovirt.engine.core.common.businessentities.VmStatic vmStaticFromParams , java.util.List < java.lang.String > reasons ) { return org.ovirt.engine.core.common.utils.customprop.VmPropertiesUtils.getInstance ( ) . validateVmProperties ( org.ovirt.engine.core.bll.VmCommand.getVdsGroup ( ) . getCompatibilityVersion ( ) , vmStaticFromParams.getCustomProperties ( ) , reasons ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid getPoolId ( ) { org.ovirt.engine.core.common.businessentities.VmPool vmPool = org.ovirt.engine.core.bll.AddVmPoolWithVmsCommand.getVmPool ( ) ; org.ovirt.engine.core.bll.AddVmPoolWithVmsCommand.getVmPoolDao ( ) . save ( vmPool ) ; return vmPool.getVmPoolId ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid getPoolId ( ) { org.ovirt.engine.core.common.businessentities.VmPool vmPool = org.ovirt.engine.core.bll.AddVmPoolCommand.getVmPool ( ) ; org.ovirt.engine.core.bll.AddVmPoolCommand.getVmPoolDao ( ) . save ( vmPool ) ; return vmPool.getVmPoolId ( ) ; }
Source:
public org.ovirt.engine.api.resource.AssignedPermissionsResource getPermissionsResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendAssignedPermissionsResource ( guid , org.ovirt.engine.core.common.queries.VdcQueryType.GetPermissionsForObject , new org.ovirt.engine.core.common.queries.GetPermissionsForObjectParameters ( guid ) , org.ovirt.engine.api.model.VM.class , org.ovirt.engine.core.common.VdcObjectType.VM ) ) ; }

Target:
public org.ovirt.engine.api.resource.AssignedPermissionsResource getPermissionsResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendAssignedPermissionsResource ( guid , org.ovirt.engine.core.common.queries.VdcQueryType.GetPermissionsForObject , new org.ovirt.engine.core.common.queries.GetPermissionsForObjectParameters ( guid ) , org.ovirt.engine.api.model.Vm.class , org.ovirt.engine.core.common.VdcObjectType.VM ) ) ; }
Source:
public boolean isOnline ( ) { return ( status ) == ( GlusterBrickStatus.UP ) ; }

Target:
public boolean isOnline ( ) { return ( status ) == ( GlusterStatus.UP ) ; }
Source:
protected void beforeReadResponse ( java.net.HttpURLConnection connection ) throws java.lang.Exception { if ( ( ( connection.getResponseCode ( ) ) != ( java.net.HttpURLConnection.HTTP_OK ) ) && ( ( connection.getResponseCode ( ) ) != ( java.net.HttpURLConnection.HTTP_MOVED_TEMP ) ) ) { throw new org.ovirt.engine.core.common.errors.VdcBLLException ( org.ovirt.engine.core.common.errors.VdcBllErrors.PROVIDER_FAILURE ) ; } }

Target:
protected void beforeReadResponse ( java.net.HttpURLConnection connection ) throws java.lang.Exception { if ( ( ( connection.getResponseCode ( ) ) != ( java.net.HttpURLConnection.HTTP_OK ) ) && ( ( connection.getResponseCode ( ) ) != ( java.net.HttpURLConnection.HTTP_MOVED_TEMP ) ) ) { throw new org.ovirt.engine.core.common.errors.EngineException ( org.ovirt.engine.core.common.errors.EngineError.PROVIDER_FAILURE ) ; } }
Source:
protected void EndActionOnAllImageGroups ( ) { for ( org.ovirt.engine.core.common.action.VdcActionParametersBase p : org.ovirt.engine.core.bll.MoveOrCopyTemplateCommand.getParameters ( ) . getImagesParameters ( ) ) { org.ovirt.engine.core.bll.MoveOrCopyTemplateCommand.getBackend ( ) . EndAction ( getImagesActionType ( ) , p ) ; } }

Target:
protected void endActionOnAllImageGroups ( ) { for ( org.ovirt.engine.core.common.action.VdcActionParametersBase p : org.ovirt.engine.core.bll.MoveOrCopyTemplateCommand.getParameters ( ) . getImagesParameters ( ) ) { org.ovirt.engine.core.bll.MoveOrCopyTemplateCommand.getBackend ( ) . EndAction ( getImagesActionType ( ) , p ) ; } }
Source:
public void stringToVCpupinWrongFormat ( ) { org.ovirt.engine.api.restapi.types.VmMapper.stringToVCpupin ( "X#X#X" ) ; }

Target:
public void stringToVCpupinWrongFormat ( ) { org.junit.jupiter.api.Assertions.assertThrows ( java.lang.IllegalArgumentException.class , ( ) -> org.ovirt.engine.api.restapi.types.VmMapper.stringToVCpupin ( "X#X#X" ) ) ; }
Source:
public void customValue ( ) { final java.lang.String key = "foo" ; final java.lang.String value = org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.NAME ; b.addCustomValue ( key , value ) ; final java.lang.String v = b.getCustomValue ( key ) ; org.junit.Assert.assertEquals ( value , v ) ; }

Target:
public void customValue ( ) { final java.lang.String key = "foo" ; final java.lang.String value = org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.NAME ; b.addCustomValue ( key , value ) ; final java.lang.String v = b.getCustomValue ( key ) ; org.junit.jupiter.api.Assertions.assertEquals ( value , v ) ; }
Source:
public java.lang.String getValue ( java.lang.Object object ) { return java.lang.String.valueOf ( ( ( org.ovirt.engine.core.common.businessentities.VmTemplate ) ( object ) ) . getDiskList ( ) . size ( ) ) ; }

Target:
public java.lang.String getValue ( java.lang.Object object ) { return java.lang.String.valueOf ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportTemplateData ) ( object ) ) . getTemplate ( ) . getDiskList ( ) . size ( ) ) ; }
Source:
protected org.ovirt.engine.core.vdsbroker.vdsbroker.StatusForXmlRpc getReturnStatus ( ) { return this . infoReturn.getXmlRpcStatus ( ) ; }

Target:
protected org.ovirt.engine.core.vdsbroker.vdsbroker.Status getReturnStatus ( ) { return this . infoReturn.getStatus ( ) ; }
Source:
public void testChangeToExistingName ( ) { prepareVmToPassCanDoAction ( ) ; mockSameNameQuery ( true ) ; junit.framework.Assert.assertFalse ( "canDoAction should have failed with vm name already in use." , command.canDoAction ( ) ) ; assertCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_NAME_ALREADY_USED ) ; }

Target:
public void testChangeToExistingName ( ) { prepareVmToPassCanDoAction ( ) ; mockSameNameQuery ( true ) ; org.junit.Assert.assertFalse ( "canDoAction should have failed with vm name already in use." , command.canDoAction ( ) ) ; assertCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_NAME_ALREADY_USED ) ; }
Source:
public static boolean IsWindowsOsType ( org.ovirt.engine.core.common.businessentities.VmOsType osType ) { if ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.GetWindowsOsTypes ( ) . contains ( osType ) ) { return true ; } return false ; }

Target:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Provider > ( ) ; } return source ; }
Source:
public boolean IsVmUp ( ) { switch ( getEntity ( ) . getStatus ( ) ) { case PoweringUp : case Up : case RebootInProgress : case PoweringDown : case Paused : return true ; default : return false ; } }

Target:
public boolean isVmUp ( ) { switch ( getEntity ( ) . getStatus ( ) ) { case PoweringUp : case Up : case RebootInProgress : case PoweringDown : case Paused : return true ; default : return false ; } }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return java.util.Collections.< org.ovirt.engine.core.common.businessentities.CertificateInfo > emptyList ( ) ; } return source ; }

Target:
public void getProviderCertificateChain ( org.ovirt.engine.ui.frontend.AsyncQuery < java.util.List < org.ovirt.engine.core.common.businessentities.CertificateInfo > > aQuery , org.ovirt.engine.core.common.businessentities.Provider provider ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.ListConverter < > ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetProviderCertificateChain , new org.ovirt.engine.core.common.queries.ProviderQueryParameters ( provider ) , aQuery ) ; }
Source:
protected boolean matchEntity ( org.ovirt.engine.core.common.businessentities.VmNetworkInterface entity , org.ovirt.engine.core.compat.Guid id ) { return id.equals ( entity.getId ( ) ) ; }

Target:
protected < T > boolean matchEntity ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface entity , T id ) { return id.equals ( entity.getId ( ) ) ; }
Source:
private void initDisplayProtocol ( ) { getDisplayProtocol ( ) . getSelectedItemChangedEvent ( ) . addListener ( this ) ; }

Target:
private void initGraphicsAndDisplayListeners ( ) { getDisplayType ( ) . getSelectedItemChangedEvent ( ) . addListener ( this ) ; getGraphicsType ( ) . getSelectedItemChangedEvent ( ) . addListener ( this ) ; }
Source:
private org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase createLoggable ( ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase loggable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; loggable.setClusterName ( getClusterName ( ) ) ; loggable.addCustomValue ( "NetworkName" , networkName ) ; return loggable ; }

Target:
private org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogable createLoggable ( ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogable loggable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableImpl ( ) ; loggable.setClusterName ( getClusterName ( ) ) ; loggable.addCustomValue ( "NetworkName" , networkName ) ; return loggable ; }
Source:
public void addBarStyle ( java.lang.String styleName ) { tabContainer.addStyleName ( styleName ) ; }

Target:
public void setBarStyle ( java.lang.String styleName ) { tabContainer.addStyleName ( styleName ) ; }
Source:
public void sethibernation_vol_handle ( java.lang.String value ) { this . mVmDynamic.sethibernation_vol_handle ( value ) ; }

Target:
public void setVmtTimeZone ( java.lang.String value ) { vmtTimeZone = value ; }
Source:
public void addISCSIEmptyConn ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections newISCSIConnection = createISCSIConnection ( "" , StorageType.ISCSI , "iqn.2013-04.myhat.com:aaa-target1" , "3650" , "user1" , "mypassword123" ) ; parameters.setStorageServerConnection ( newISCSIConnection ) ; parameters.setVdsId ( Guid.Empty ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , VdcBllMessages.VALIDATION_STORAGE_CONNECTION_EMPTY_CONNECTION ) ; }

Target:
public void addISCSIEmptyConn ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections newISCSIConnection = createISCSIConnection ( "" , StorageType.ISCSI , "iqn.2013-04.myhat.com:aaa-target1" , "3650" , "user1" , "mypassword123" ) ; parameters.setStorageServerConnection ( newISCSIConnection ) ; parameters.setVdsId ( Guid.Empty ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.VALIDATION_STORAGE_CONNECTION_EMPTY_CONNECTION ) ; }
Source:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; org.ovirt.engine.core.common.businessentities.IscsiBond iscsiBond = parent.getIscsiBond ( ) ; iscsiBond.getNetworkIds ( ) . remove ( guid ) ; return performAction ( VdcActionType.EditIscsiBond , new org.ovirt.engine.core.common.action.EditIscsiBondParameters ( iscsiBond ) ) ; }

Target:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; org.ovirt.engine.core.common.businessentities.IscsiBond iscsiBond = parent.getIscsiBond ( ) ; iscsiBond.getNetworkIds ( ) . remove ( guid ) ; return performAction ( ActionType.EditIscsiBond , new org.ovirt.engine.core.common.action.EditIscsiBondParameters ( iscsiBond ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface getEntity ( int index ) { return setUpEntityExpectations ( control.createMock ( org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface.class ) , index ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface getEntity ( int index ) { return setUpEntityExpectations ( org.mockito.Mockito.mock ( org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface.class ) , index ) ; }
Source:
public void formatStringTest3 ( ) { testMessages.addFallback ( DynamicMessageKey.VERSION_ABOUT , "This is version about: {0}" ) ; java.lang.String result = testMessages.formatString ( DynamicMessageKey.VERSION_ABOUT , "1.1.1" , "2.2.2" ) ; org.junit.Assert.assertNotNull ( "There should be a result" ) ; org.junit.Assert.assertEquals ( "Result should be 'This is version about: 1.1.1'" , "This is version about: 1.1.1" , result ) ; }

Target:
public void formatStringTest3 ( ) { testMessages.addFallback ( DynamicMessageKey.APPLICATION_TITLE , "Testing 123: {0}" ) ; java.lang.String result = testMessages.formatString ( DynamicMessageKey.APPLICATION_TITLE , "1.1.1" , "2.2.2" ) ; org.junit.Assert.assertNotNull ( "There should be a result" ) ; org.junit.Assert.assertEquals ( "Result should be 'Testing 123: 1.1.1'" , "Testing 123: 1.1.1" , result ) ; }
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.assertj.core.api.Assertions.assertThat ( validator.isVmReadyForUpgrade ( invalidVM ) ) . contains ( UPGRADE_ERROR.VM_PINNED_TO_HOSTS ) ; }

Target:
public void shouldDetectNonMigratableVMs ( ) { invalidVM.setMigrationSupport ( org.ovirt.engine.core.common.businessentities.MigrationSupport.PINNED_TO_HOST ) ; org.assertj.core.api.Assertions.assertThat ( validator.checkVmReadyForUpgrade ( invalidVM ) ) . contains ( UpgradeError.VM_NOT_MIGRATABLE ) ; }
Source:
public void initCommand ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.storage.StorageHandlingCommandBaseTest.TestStorageHandlingCommandBase ( new org.ovirt.engine.core.common.action.StoragePoolManagementParameter ( storagePool ) ) ) ; }

Target:
public void initCommand ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.storage.StorageHandlingCommandBaseTest.TestStorageHandlingCommandBase ( new org.ovirt.engine.core.common.action.StoragePoolManagementParameter ( storagePool ) ) ) ; cmd.init ( ) ; }
Source:
private void RemoveVdsStaticFromDb ( ) { org.ovirt.engine.core.bll.RemoveVdsCommand.getVdsStaticDAO ( ) . remove ( org.ovirt.engine.core.bll.RemoveVdsCommand.getVdsId ( ) ) ; }

Target:
private void RemoveVdsDynamicFromDb ( ) { org.ovirt.engine.core.bll.RemoveVdsCommand.getVdsDynamicDao ( ) . remove ( org.ovirt.engine.core.bll.RemoveVdsCommand.getVdsId ( ) ) ; }
Source:
public void valuesPresentNullInput ( ) { org.junit.Assert.assertThat ( nullValidator.allValuesPresent ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void valuesPresentNullInput ( ) { org.junit.Assert.assertThat ( nullValidator.requiredValuesPresent ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void testGetVmPool ( ) { org.ovirt.engine.core.common.businessentities.vm_pools result = dao.get ( existingVmPool.getvm_pool_id ( ) ) ; assertGetResult ( result ) ; }

Target:
public void testGetVmPool ( ) { org.ovirt.engine.core.common.businessentities.VmPool result = dao.get ( existingVmPool.getvm_pool_id ( ) ) ; assertGetResult ( result ) ; }
Source:
public static void hasSpiceSupport ( int osId , org.ovirt.engine.core.compat.Version version , org.ovirt.engine.ui.frontend.AsyncQuery callback ) { org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.OsRepository , new org.ovirt.engine.core.common.queries.OsQueryParameters ( org.ovirt.engine.core.common.queries.OsQueryParameters.OsRepositoryVerb.HasSpiceSupport , osId , version ) , callback ) ; }

Target:
public static boolean hasSpiceSupport ( int osId , org.ovirt.engine.core.compat.Version version ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getDisplayTypes ( osId , version ) . contains ( DisplayType.qxl ) ; }
Source:
protected void syncSearch ( ) { super . syncSearch ( QueryType.GetAllMacPools , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ; }

Target:
protected void syncSearch ( ) { super . syncSearch ( QueryType.GetAllMacPools , new org.ovirt.engine.core.common.queries.QueryParametersBase ( ) ) ; }
Source:
public boolean Validate ( ) { getDescription ( ) . ValidateEntity ( new org.ovirt.engine.ui.uicommonweb.validation.IValidation [ ] { new org.ovirt.engine.ui.uicommonweb.validation.NotEmptyValidation ( ) , new org.ovirt.engine.ui.uicommonweb.validation.AsciiOrNoneValidation ( ) , new org.ovirt.engine.ui.uicommonweb.validation.LengthValidation ( org.ovirt.engine.core.common.businessentities.BusinessEntitiesDefinitions.GENERAL_MAX_SIZE ) } ) ; return getDescription ( ) . getIsValid ( ) ; }

Target:
public boolean Validate ( ) { getDescription ( ) . ValidateEntity ( new org.ovirt.engine.ui.uicommonweb.validation.IValidation [ ] { new org.ovirt.engine.ui.uicommonweb.validation.NotEmptyValidation ( ) , new org.ovirt.engine.ui.uicommonweb.validation.SpecialAsciiI18NOrNoneValidation ( ) , new org.ovirt.engine.ui.uicommonweb.validation.LengthValidation ( org.ovirt.engine.core.common.businessentities.BusinessEntitiesDefinitions.GENERAL_MAX_SIZE ) } ) ; return getDescription ( ) . getIsValid ( ) ; }
Source:
public void getClusterNameNullVds ( ) { final org.ovirt.engine.core.common.businessentities.Cluster g = null ; b.setCluster ( g ) ; final java.lang.String n = b.getClusterName ( ) ; org.junit.Assert.assertEquals ( "" , n ) ; }

Target:
public void getClusterNameNullVds ( ) { final org.ovirt.engine.core.common.businessentities.Cluster g = null ; b.setCluster ( g ) ; final java.lang.String n = b.getClusterName ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( "" , n ) ; }
Source:
public void testNoHosts ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result = policyUnit.filter ( cluster , new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDS > ( ) , vm , parameters , messages ) ; org.junit.Assert.assertEquals ( 0 , result.size ( ) ) ; }

Target:
public void testNoHosts ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result = policyUnit.filter ( cluster , new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDS > ( ) , vm , parameters , messages ) ; org.junit.jupiter.api.Assertions.assertEquals ( 0 , result.size ( ) ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( getId ( ) , committedDiskSize , dynamicData , staticData , storageDomainSharedStatus , storageDomainOverCommitPercent , storagePoolIsoMapData , totalDiskSize ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( getId ( ) , committedDiskSize , dynamicData , staticData , storageDomainSharedStatus , storageDomainOverCommitPercent , storagePoolIsoMapData , totalDiskSize , supportsDiscard , supportsDiscardZeroesData ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.NetworkCluster createManagementNetworkCluster ( ) { return new org.ovirt.engine.core.common.businessentities.network.NetworkCluster ( org.ovirt.engine.core.bll.AddVdsGroupCommand.getVdsGroupId ( ) , managementNetwork.getId ( ) , org.ovirt.engine.core.common.businessentities.network.NetworkStatus.OPERATIONAL , true , true , true , true , false ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.NetworkCluster createManagementNetworkCluster ( ) { return new org.ovirt.engine.core.common.businessentities.network.NetworkCluster ( org.ovirt.engine.core.bll.AddClusterCommand.getClusterId ( ) , managementNetwork.getId ( ) , org.ovirt.engine.core.common.businessentities.network.NetworkStatus.OPERATIONAL , true , true , true , true , false ) ; }
Source:
public static void setConfigFilePathProperty ( ) { final java.lang.String path = java.lang.ClassLoader.getSystemResource ( "engine-config.conf" ) . getPath ( ) ; java.lang.System.setProperty ( EngineConfig.CONFIG_FILE_PATH_PROPERTY , path ) ; }

Target:
public static void setConfigFilePathProperty ( ) throws java.io.UnsupportedEncodingException { final java.lang.String path = java.net.URLDecoder.decode ( java.lang.ClassLoader.getSystemResource ( "engine-config.conf" ) . getPath ( ) , "UTF-8" ) ; java.lang.System.setProperty ( EngineConfig.CONFIG_FILE_PATH_PROPERTY , path ) ; }
Source:
public void testValidateVdsDoesNotExist ( ) { org.mockito.Mockito.when ( hostValidator.hostExists ( ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.VDS_INVALID_SERVER_ID ) ) ; org.junit.Assert.assertFalse ( command.validateVds ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.assertValidationMessages ( "" , command , EngineMessage.VDS_INVALID_SERVER_ID ) ; }

Target:
public void testValidateVdsDoesNotExist ( ) { org.mockito.Mockito.when ( hostValidator.hostExists ( ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.VDS_INVALID_SERVER_ID ) ) ; org.junit.jupiter.api.Assertions.assertFalse ( command.validateVds ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.assertValidationMessages ( "" , command , EngineMessage.VDS_INVALID_SERVER_ID ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.StorageDomain getStorageDomain ( org.ovirt.engine.core.compat.Guid sdGuid ) { if ( sdGuid != null ) { return getDbFacade ( ) . getStorageDomainDao ( ) . get ( sdGuid ) ; } return null ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StorageDomain getStorageDomain ( org.ovirt.engine.core.compat.Guid sdGuid ) { if ( sdGuid != null ) { return storageDomainDao.get ( sdGuid ) ; } return null ; }
Source:
public void testCanDoActionVmUp ( ) { prepareForVmValidatorTests ( ) ; cmd.getVm ( ) . setStatus ( VMStatus.Up ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionSuccess ( cmd ) ; }

Target:
public void testCanDoActionVmUpHostCapable ( ) { prepareForVmValidatorTests ( ) ; org.mockito.Mockito.doReturn ( ValidationResult.VALID ) . when ( vmValidator ) . vmHostCanLiveMerge ( ) ; cmd.getVm ( ) . setStatus ( VMStatus.Up ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionSuccess ( cmd ) ; }
Source:
public static void addSmartcardDevice ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.addManagedDevice ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , vmId ) , VmDeviceGeneralType.SMARTCARD , VmDeviceType.SMARTCARD , new org.ovirt.engine.core.bll.smartcard.SmartcardSpecParams ( ) , true , false , null ) ; }

Target:
public static void removeSmartcardDevices ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.removeVmDevices ( org.ovirt.engine.core.bll.utils.VmDeviceUtils.getSmartcardDevices ( vmId ) ) ; }
Source:
public void testGetTagByNameNotExists ( ) { org.ovirt.engine.core.common.businessentities.Tags fromTagsDirector = tagsDirector.getTagByName ( "does not exist" ) ; org.junit.Assert.assertNull ( fromTagsDirector ) ; }

Target:
public void testGetTagByNameNotExists ( ) { org.ovirt.engine.core.common.businessentities.Tags fromTagsDirector = tagsDirector.getTagByTagName ( "does not exist" ) ; org.junit.Assert.assertNull ( fromTagsDirector ) ; }
Source:
public void shouldCreateAsMuchNumaNodesAsVirtualCores ( ) { vm.setNumOfSockets ( 1 ) ; vm.setCpuPerSocket ( 2 ) ; org.junit.Assert.assertTrue ( org.ovirt.engine.core.bll.numa.vm.NumaValidator.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) . isValid ( ) ) ; }

Target:
public void failCreateMoreNumaNodesThanVirtualCores ( ) { vm.setNumOfSockets ( 1 ) ; vm.setCpuPerSocket ( 1 ) ; assertValidationFailure ( underTest.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) , EngineMessage.VM_NUMA_NODE_MORE_NODES_THAN_CPUS ) ; }
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 ? source : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeSnapshotEntity > ( ) ; }
Source:
public void close ( ) throws java.lang.Exception { org.apache.http.client.methods.HttpGet request = new org.apache.http.client.methods.HttpGet ( url ) ; this . send ( request , true ) ; if ( ( client ) != null ) { client.close ( ) ; } }

Target:
public void close ( ) throws java.lang.Exception { revokeAccessToken ( ) ; if ( ( client ) != null ) { client.close ( ) ; } }
Source:
public void close ( ) { org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcUtils.shutDownConnection ( this . httpClient ) ; this . client.close ( ) ; }

Target:
public void close ( ) { org.ovirt.engine.core.vdsbroker.HttpUtils.shutDownConnection ( this . httpClient ) ; this . client.close ( ) ; }
Source:
public void setusage_cpu_percent ( java.lang.Integer value ) { this . mVmStatistics.setusage_cpu_percent ( value ) ; }

Target:
public void setUsageNetworkPercent ( java.lang.Integer value ) { this . vmStatistics.setusage_network_percent ( value ) ; }
Source:
public void createParameters ( ) { parameters = new org.ovirt.engine.core.common.action.AddVdsActionParameters ( ) ; parameters.setRootPassword ( "secret" ) ; org.ovirt.engine.core.common.businessentities.VDS newVds = makeTestVds ( org.ovirt.engine.core.bll.AddVdsCommandTest.vdsId ) ; parameters.setvds ( newVds ) ; }

Target:
public void createParameters ( ) { parameters = new org.ovirt.engine.core.common.action.AddVdsActionParameters ( ) ; parameters.setPassword ( "secret" ) ; org.ovirt.engine.core.common.businessentities.VDS newVds = makeTestVds ( org.ovirt.engine.core.bll.AddVdsCommandTest.vdsId ) ; parameters.setvds ( newVds ) ; }
Source:
protected org.ovirt.engine.core.common.vdscommands.DeleteImageGroupVDSCommandParameters buildDeleteMemoryConfParams ( java.util.List < org.ovirt.engine.core.compat.Guid > guids ) { return org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandler.fixParameters ( new org.ovirt.engine.core.common.vdscommands.DeleteImageGroupVDSCommandParameters ( guids.get ( 1 ) , guids.get ( 0 ) , guids.get ( 4 ) , isPostZero ( ) , false ) ) ; }

Target:
protected org.ovirt.engine.core.common.vdscommands.DeleteImageGroupVDSCommandParameters buildDeleteMemoryConfParams ( java.util.List < org.ovirt.engine.core.compat.Guid > guids ) { return postDeleteActionHandler.fixParameters ( new org.ovirt.engine.core.common.vdscommands.DeleteImageGroupVDSCommandParameters ( guids.get ( 1 ) , guids.get ( 0 ) , guids.get ( 4 ) , isPostZero ( ) , false ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.osArchitectures = ( ( java.util.HashMap < java.lang.Integer , org.ovirt.engine.core.common.businessentities.ArchitectureType > ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { windowsOsIds = ( ( java.util.ArrayList < java.lang.Integer > ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ) ) ; }
Source:
public void setvm_assigned_count ( int value ) { vmPoolAssignedCount = value ; }

Target:
public void setvm_running_count ( int value ) { vmPoolRunningCount = value ; }
Source:
public void diskImageWithSgio ( ) { org.ovirt.engine.core.common.businessentities.VM vm = org.ovirt.engine.core.bll.validator.storage.DiskVmElementValidatorTest.createVM ( org.ovirt.engine.core.bll.validator.storage.DiskVmElementValidatorTest.OS_WITH_NO_SUPPORTED_INTERFACES ) ; dve.setDiskInterface ( DiskInterface.VirtIO_SCSI ) ; disk.setSgio ( ScsiGenericIO.UNFILTERED ) ; org.junit.Assert.assertThat ( validator.isVirtIoScsiValid ( vm ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.SCSI_GENERIC_IO_IS_NOT_SUPPORTED_FOR_IMAGE_DISK ) ) ; }

Target:
public void diskImageWithSgio ( ) { org.ovirt.engine.core.common.businessentities.VM vm = org.ovirt.engine.core.bll.validator.storage.DiskVmElementValidatorTest.createVM ( org.ovirt.engine.core.bll.validator.storage.DiskVmElementValidatorTest.OS_WITH_NO_SUPPORTED_INTERFACES ) ; dve.setDiskInterface ( DiskInterface.VirtIO_SCSI ) ; disk.setSgio ( ScsiGenericIO.UNFILTERED ) ; org.hamcrest.MatcherAssert.assertThat ( validator.isVirtIoScsiValid ( vm ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.SCSI_GENERIC_IO_IS_NOT_SUPPORTED_FOR_IMAGE_DISK ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSessionConfiguration getGlusterGeoRepSessionConfig ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSessionConfiguration sessionConfig = new org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSessionConfiguration ( ) ; sessionConfig.setId ( FixturesTool.GLUSTER_GEOREP_SESSION_ID ) ; sessionConfig.setKey ( "georep-crawl" ) ; sessionConfig.setValue ( "changelog" ) ; return sessionConfig ; }

Target:
private org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSessionConfiguration getGlusterGeoRepSessionConfig ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSessionConfiguration sessionConfig = new org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSessionConfiguration ( ) ; sessionConfig.setId ( FixturesTool.GLUSTER_GEOREP_SESSION_ID ) ; sessionConfig.setKey ( "georep-crawl" ) ; sessionConfig.setDescription ( "Geo-replication session crawl" ) ; sessionConfig.setValue ( "changelog" ) ; return sessionConfig ; }
Source:
public void setPmSecondaryOptionsMap ( org.ovirt.engine.core.common.queries.ValueObjectMap value ) { mVdsStatic.setPmSecondaryOptionsMap ( value ) ; }

Target:
public void setPmOptionsMap ( java.util.HashMap < java.lang.String , java.lang.String > value ) { mVdsStatic.setPmOptionsMap ( value ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.LunDisk disk = ( ( org.ovirt.engine.core.common.businessentities.LunDisk ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ) ) ; return disk.getLun ( ) . getProductId ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.storage.LunDisk disk = ( ( org.ovirt.engine.core.common.businessentities.storage.LunDisk ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ) ) ; return disk.getLun ( ) . getProductId ( ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.gin.ClientGinjector ginjector ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( ginjector.getApplicationConstants ( ) . hostGlusterSwiftSubTabLabel ( ) , 4 , ginjector.getSubTabHostGlusterSwiftModelProvider ( ) ) ; }

Target:
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.gluster.GlusterServerService , org.ovirt.engine.ui.uicommonweb.models.hosts.HostListModel , org.ovirt.engine.ui.uicommonweb.models.gluster.HostGlusterSwiftListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.hostGlusterSwiftSubTabLabel ( ) , 4 , modelProvider ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotEnabledNotSetNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setType ( "native" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED , null ) , UsbPolicy.DISABLED ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotDisabledLegacyPolicyUsb ( ) { 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.DISABLED ) , UsbPolicy.DISABLED ) ; }