auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.storage_server_connections > getAllForConnection ( org.ovirt.engine.core.common.businessentities.storage_server_connections connection ) { return findByCriteria ( org.hibernate.criterion.Restrictions.eq ( "connection" , connection ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > getAllForConnection ( org.ovirt.engine.core.common.businessentities.StorageServerConnections connection ) { return findByCriteria ( org.hibernate.criterion.Restrictions.eq ( "connection" , connection ) ) ; }
Source:
public java.lang.Void runInTransaction ( ) { AddVdsStaticToDb ( ) ; AddVdsDynamicToDb ( ) ; AddVdsStatisticsToDb ( ) ; getCompensationContext ( ) . stateChanged ( ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { addVdsStaticToDb ( ) ; addVdsDynamicToDb ( ) ; addVdsStatisticsToDb ( ) ; getCompensationContext ( ) . stateChanged ( ) ; return null ; }
Source:
public void setvmt_guid ( org.ovirt.engine.core.compat.Guid value ) { this . mVmStatic.setvmt_guid ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "vmt_guid" ) ) ; }

Target:
public void setVmtOs ( org.ovirt.engine.core.common.businessentities.VmOsType value ) { this . vmtOs = value ; }
Source:
public void getUsbPolicySetDisabled ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; assertEquals ( UsbPolicy.DISABLED , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotDisabledNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; usb.setType ( UsbType.NATIVE ) ; org.junit.Assert.assertEquals ( UsbPolicy.DISABLED , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED ) ) ; }
Source:
protected boolean matchEntity ( org.ovirt.engine.core.common.businessentities.VmWatchdog entity , java.lang.String name ) { return true ; }

Target:
protected < T > boolean matchEntity ( org.ovirt.engine.core.common.businessentities.VmWatchdog entity , T id ) { return true ; }
Source:
private org.ovirt.engine.core.dao.VdsDAO getVdsDao ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDao ( ) ; }

Target:
private org.ovirt.engine.core.dao.VdsStaticDAO getVdsStaticDao ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsStaticDao ( ) ; }
Source:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { if ( getSucceeded ( ) ) { return org.ovirt.engine.core.common.AuditLogType.GLUSTER_VOLUME_OPTION_SET ; } else { return ( errorType ) == null ? org.ovirt.engine.core.common.AuditLogType.GLUSTER_VOLUME_OPTION_SET_FAILED : errorType ; } }

Target:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { if ( getSucceeded ( ) ) { return optionValueExists ? org.ovirt.engine.core.common.AuditLogType.GLUSTER_VOLUME_OPTION_MODIFIED : org.ovirt.engine.core.common.AuditLogType.GLUSTER_VOLUME_OPTION_ADDED ; } else { return ( errorType ) == null ? org.ovirt.engine.core.common.AuditLogType.GLUSTER_VOLUME_OPTION_SET_FAILED : errorType ; } }
Source:
private int getTotalStorageDomainsStat ( ) { return org.ovirt.engine.core.bll.GetSystemStatisticsQuery.getDbFacade ( ) . getSystemStatisticsValue ( org.ovirt.engine.core.bll.GetSystemStatisticsQuery.TOTAL_STORAGE_DOMAIN_ENTITY_NAME ) ; }

Target:
private int getTotalStorageDomainsStat ( ) { return systemStatisticsDao.getSystemStatisticsValue ( org.ovirt.engine.core.bll.GetSystemStatisticsQuery.TOTAL_STORAGE_DOMAIN_ENTITY_NAME ) ; }
Source:
public void parametersWithSecureDeletionAreNotFixedOnBlockDomainWhenPostZeroIsFalse ( ) { org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandlerTest.ParametersWithPostDeleteAction parameters = postDeleteActionHandler.fixParameters ( new org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandlerTest.ParametersWithPostDeleteAction ( false ) , false ) ; assertPostZeroValue ( parameters , false ) ; }

Target:
public void parametersWithSecureDeletionAreNotFixedOnFileDomainWhenPostZeroIsFalse ( ) { org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandlerTest.ParametersWithPostDeleteAction parameters = postDeleteActionHandler.fixPostZeroField ( new org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandlerTest.ParametersWithPostDeleteAction ( false , false ) , true ) ; assertPostZeroValue ( parameters , false ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotEnabledNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; usb.setType ( "native" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED , null ) , UsbPolicy.ENABLED_NATIVE ) ; }

Target:
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 ) , UsbPolicy.DISABLED ) ; }
Source:
public void validateFailureOnMovingCinderDisk ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.CinderDisk ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_NOT_SUPPORTED_DISK_STORAGE_TYPE ) ; }

Target:
public void passDiscardSupportedForCopyFloatingDiskOp ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) , VmEntityType.TEMPLATE ) ; command.getParameters ( ) . setOperation ( ImageOperation.Copy ) ; org.junit.Assert.assertTrue ( command.validatePassDiscardSupportedForDestinationStorageDomain ( ) ) ; }
Source:
public void warnOnActiveVm ( ) { if ( activeVmAttachedToClusterPredicate.test ( networkCluster.getClusterId ( ) ) ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase loggable = createLoggable ( ) ; auditLogDirector.log ( loggable , AuditLogType.NETWORK_UPDATE_DISPLAY_FOR_CLUSTER_WITH_ACTIVE_VM ) ; } }

Target:
public void warnOnActiveVm ( ) { if ( activeVmAttachedToClusterPredicate.test ( networkCluster.getClusterId ( ) ) ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogable loggable = createLoggable ( ) ; auditLogDirector.log ( loggable , AuditLogType.NETWORK_UPDATE_DISPLAY_FOR_CLUSTER_WITH_ACTIVE_VM ) ; } }
Source:
public void testNetworkIpAddressWasSameAsHostnameAndChangedWhenIpConfigurationIsNull ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment = new org.ovirt.engine.core.common.businessentities.network.NetworkAttachment ( ) ; attachment.setIpConfiguration ( null ) ; org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.validator.NetworkAttachmentValidator ( attachment , null ) . networkIpAddressWasSameAsHostnameAndChanged ( null ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testNetworkIpAddressWasSameAsHostnameAndChangedWhenIpConfigurationIsNull ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment = new org.ovirt.engine.core.common.businessentities.network.NetworkAttachment ( ) ; attachment.setIpConfiguration ( null ) ; org.junit.Assert.assertThat ( createNetworkAttachmentValidator ( attachment ) . networkIpAddressWasSameAsHostnameAndChanged ( null ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void refreshHostIfAnyVmHasHostDevices ( java.util.List < org.ovirt.engine.core.compat.Guid > vmIds , org.ovirt.engine.core.compat.Guid hostId ) { org.ovirt.engine.core.bll.hostdev.HostDeviceManager hostDeviceManager = org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.bll.hostdev.HostDeviceManager.class ) ; hostDeviceManager.refreshHostIfAnyVmHasHostDevices ( vmIds , hostId ) ; }

Target:
public void run ( ) { org.ovirt.engine.core.bll.hostdev.HostDeviceManager hostDeviceManager = org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.bll.hostdev.HostDeviceManager.class ) ; hostDeviceManager.refreshHostIfAnyVmHasHostDevices ( vmIds , hostId ) ; }
Source:
public void testRemoveNotFound ( ) { setUpEntityQueryExpectations ( 1 , 0 , true ) ; try { resource.remove ( ) ; org.junit.Assert.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testRemoveNotFound ( ) { setUpEntityQueryExpectations ( 1 , 0 , true ) ; try { resource.remove ( ) ; org.junit.jupiter.api.Assertions.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel ) ( result.getState ( ) ) ) ; localModel.StopProgress ( ) ; cancelConfirmation ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel ) ( result.getState ( ) ) ) ; localModel.stopProgress ( ) ; cancelConfirmation ( ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.Quota mockVCPUQuotaGlobalNotExceeded ( ) { org.ovirt.engine.core.common.businessentities.Quota quota = mockBasicQuota ( ) ; quota.setGlobalQuotaVdsGroup ( getQuotaVdsGroup ( 100 , 18 , org.ovirt.engine.core.bll.quota.QuotaManagerTest.UNLIMITED_MEM , 0 ) ) ; return quota ; }

Target:
private org.ovirt.engine.core.common.businessentities.Quota mockVCPUQuotaGlobalNotExceeded ( ) { org.ovirt.engine.core.common.businessentities.Quota quota = mockBasicQuota ( ) ; quota.setId ( org.ovirt.engine.core.bll.quota.QuotaManagerTest.VCPU_QUOTA_GLOBAL_NOT_EXCEEDED ) ; quota.setGlobalQuotaVdsGroup ( getQuotaVdsGroup ( 100 , 18 , org.ovirt.engine.core.bll.quota.QuotaManagerTest.UNLIMITED_MEM , 0 ) ) ; return quota ; }
Source:
private void cacheNewValues ( org.ovirt.engine.core.common.businessentities.QuotaVdsGroup quotaVdsGroup , long newMemory , int newVcpu ) { quotaVdsGroup.setVirtualCpuUsage ( newVcpu ) ; quotaVdsGroup.setMemSizeMBUsage ( newMemory ) ; }

Target:
private void cacheNewValues ( org.ovirt.engine.core.common.businessentities.QuotaCluster quotaCluster , long newMemory , int newVcpu ) { quotaCluster.setVirtualCpuUsage ( newVcpu ) ; quotaCluster.setMemSizeMBUsage ( newMemory ) ; }
Source:
public void shouldCreateLessNumaNodesAsVirtualCores ( ) { vm.setNumOfSockets ( 1 ) ; vm.setCpuPerSocket ( 3 ) ; org.junit.Assert.assertTrue ( underTest.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) . isValid ( ) ) ; }

Target:
public void shouldCreateLessNumaNodesAsVirtualCores ( ) { vm.setNumOfSockets ( 1 ) ; vm.setCpuPerSocket ( 3 ) ; org.junit.jupiter.api.Assertions.assertTrue ( underTest.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) . isValid ( ) ) ; }
Source:
private void setUpGetEntityExpectations ( org.ovirt.engine.core.compat.Guid entityId , java.lang.Boolean returnNull ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.GetVdsGroupById , org.ovirt.engine.core.common.queries.GetVdsGroupByIdParameters.class , new java.lang.String [ ] { "VdsId" } , new java.lang.Object [ ] { entityId } , ( returnNull ? null : getEntity ( 0 ) ) ) ; }

Target:
public void testRemoveCantDo ( ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetVdsGroupsByStoragePoolId , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendDataCenterClustersResourceTest.dataCenterId } , setUpVDSGroups ( ) , null ) ; doTestBadRemove ( false , true , org.ovirt.engine.api.restapi.resource.CANT_DO ) ; }
Source:
public void setOrder ( org.ovirt.engine.core.common.businessentities.FenceAgentOrder order ) { this . order = order ; }

Target:
private boolean wasSkippedDueToStatus ( org.ovirt.engine.core.common.vdscommands.VDSFenceReturnValue result ) { return ( ( result != null ) && ( result.isSkipped ( ) ) ) && ( ( org.ovirt.engine.core.bll.FenceVdsBaseCommand.getParameters ( ) . getParentCommand ( ) ) != ( org.ovirt.engine.core.common.action.VdcActionType.RestartVds ) ) ; }
Source:
public void testGetWithRunningVms ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup result = dao.getWithRunningVms ( existingVdsGroup.getId ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; }

Target:
public void testGetWithRunningVms ( ) { org.ovirt.engine.core.common.businessentities.Cluster result = dao.getWithRunningVms ( existingCluster.getId ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; }
Source:
public void updateGlusterHookInSync ( org.ovirt.engine.core.compat.Guid id , boolean inSync ) { getCallsHandler ( ) . executeModification ( "UpdateGlusterHookInsync" , getCustomMapSqlParameterSource ( ) . addValue ( "id" , id ) . addValue ( "in_sync" , inSync ) ) ; }

Target:
public void updateGlusterHookConflictStatus ( org.ovirt.engine.core.compat.Guid hookId , java.lang.Integer conflictStatus ) { getCallsHandler ( ) . executeModification ( "UpdateGlusterHookConflictStatus" , createIdParameterMapper ( hookId ) . addValue ( "conflict_status" , conflictStatus ) ) ; }
Source:
public Q resolve ( org.ovirt.engine.core.compat.Guid id ) throws org.ovirt.engine.api.restapi.resource.BackendFailureException { Q entity = lookupEntity ( id ) ; if ( entity == null ) { throw new org.ovirt.engine.api.restapi.resource.EntityNotFoundException ( id.toString ( ) ) ; } return entity ; }

Target:
public Q resolve ( T id ) throws org.ovirt.engine.api.restapi.resource.BackendFailureException { Q entity = lookupEntity ( id ) ; if ( entity == null ) { throw new org.ovirt.engine.api.restapi.resource.EntityNotFoundException ( id.toString ( ) ) ; } return entity ; }
Source:
public void serializeVdsNetworkInterface ( ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface nic = new org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface ( ) ; org.ovirt.engine.core.utils.serialization.json.JsonObjectSerializer serialezer = new org.ovirt.engine.core.utils.serialization.json.JsonObjectSerializer ( ) ; junit.framework.Assert.assertTrue ( ( ( serialezer.serialize ( nic ) . length ( ) ) > 0 ) ) ; }

Target:
public void serializeVdsNetworkInterface ( ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface nic = new org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface ( ) ; org.ovirt.engine.core.utils.serialization.json.JsonObjectSerializer serialezer = new org.ovirt.engine.core.utils.serialization.json.JsonObjectSerializer ( ) ; org.junit.Assert.assertTrue ( ( ( serialezer.serialize ( nic ) . length ( ) ) > 0 ) ) ; }
Source:
public boolean storageDomainRemoved ( org.ovirt.engine.core.common.businessentities.storage_domain_static storageDomain ) { return true ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > getStorageServerConnectionsByDomain ( org.ovirt.engine.core.common.businessentities.StorageDomainStatic storageDomain ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageServerConnections > ( ) ; }
Source:
protected void updateDisksFromDB ( org.ovirt.engine.core.common.businessentities.VM vm ) { org.ovirt.engine.core.bll.VmHandler.updateDisksFromDb ( vm ) ; }

Target:
protected void updateVmGuestAgentVersion ( org.ovirt.engine.core.common.businessentities.VM vm ) { vmHandler.updateVmGuestAgentVersion ( vm ) ; }
Source:
public java.lang.Integer getProgressValue ( org.ovirt.engine.core.common.businessentities.VDS object ) { return object.getusage_mem_percent ( ) ; }

Target:
public java.lang.Integer getProgressValue ( org.ovirt.engine.core.common.businessentities.VDS object ) { return object.getUsageMemPercent ( ) ; }
Source:
public boolean checkIfJobHasTasks ( org.ovirt.engine.core.compat.Guid jobId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "job_id" , jobId ) ; return getCallsHandler ( ) . executeRead ( "CheckIfJobHasTasks" , createBooleanMapper ( ) , parameterSource ) ; }

Target:
public boolean checkIfJobHasTasks ( org.ovirt.engine.core.compat.Guid jobId ) { java.util.List < org.ovirt.engine.core.common.job.Step > steps = step.getStepsByJobIdForVdsmAndGluster ( jobId ) ; return ! ( steps.isEmpty ( ) ) ; }
Source:
public void updateStorageDomain ( org.ovirt.vdsmfake.domain.StorageDomain storageDomain ) { org.ovirt.vdsmfake.domain.VdsmManager.getInstance ( ) . updateStorageDomain ( storageDomain ) ; }

Target:
public void updateStorageDomain ( org.ovirt.vdsmfake.domain.StorageDomain storageDomain ) { vdsmManager.updateStorageDomain ( storageDomain ) ; }
Source:
void removeMemoryFromSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId ) ;

Target:
void removeMemoryFromActiveSnapshot ( org.ovirt.engine.core.compat.Guid vmId ) ;
Source:
public void setUp ( ) throws java.lang.Exception { underTest = new org.ovirt.engine.core.bll.validator.network.VlanUntaggedNetworkExclusivenessValidator ( mockUntaggedNetworkPredicate ) ; org.mockito.Mockito.when ( mockUntaggedNetworkPredicate.evaluate ( org.ovirt.engine.core.bll.validator.network.NetworkType.VLAN ) ) . thenReturn ( false ) ; org.mockito.Mockito.when ( mockUntaggedNetworkPredicate.evaluate ( org.ovirt.engine.core.bll.validator.network.NetworkType.VM ) ) . thenReturn ( true ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { underTest = new org.ovirt.engine.core.bll.validator.network.VlanUntaggedNetworkExclusivenessValidator ( mockUntaggedNetworkPredicate ) ; org.mockito.Mockito.when ( mockUntaggedNetworkPredicate.test ( org.ovirt.engine.core.bll.validator.network.NetworkType.VLAN ) ) . thenReturn ( false ) ; org.mockito.Mockito.when ( mockUntaggedNetworkPredicate.test ( org.ovirt.engine.core.bll.validator.network.NetworkType.VM ) ) . thenReturn ( true ) ; }
Source:
public void existsForExistingVmDevice ( ) { org.junit.Assert.assertTrue ( dao.exists ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( org.ovirt.engine.core.dao.VmDeviceDaoTest.EXISTING_DEVICE_ID , org.ovirt.engine.core.dao.VmDeviceDaoTest.EXISTING_VM_ID ) ) ) ; }

Target:
public void existsForExistingVmDevice ( ) { org.junit.jupiter.api.Assertions.assertTrue ( dao.exists ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( org.ovirt.engine.core.dao.VmDeviceDaoTest.EXISTING_DEVICE_ID , org.ovirt.engine.core.dao.VmDeviceDaoTest.EXISTING_VM_ID ) ) ) ; }
Source:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( ) { return getModel ( ) . getRemoveCommand ( ) ; }

Target:
public void initTable ( ) { super . initTable ( ) ; getTable ( ) . setRowVisitor ( this ) ; }
Source:
protected boolean interfaceNameUnique ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNic > interfaces ) { return org.ovirt.engine.core.bll.VmHandler.isNotDuplicateInterfaceName ( interfaces , getInterfaceName ( ) , org.ovirt.engine.core.bll.network.template.VmTemplateInterfaceCommandBase.getReturnValue ( ) . getCanDoActionMessages ( ) ) ; }

Target:
protected boolean interfaceNameUnique ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNic > interfaces ) { return org.ovirt.engine.core.bll.VmHandler.isNotDuplicateInterfaceName ( interfaces , getInterfaceName ( ) , org.ovirt.engine.core.bll.network.template.VmTemplateInterfaceCommandBase.getReturnValue ( ) . getValidationMessages ( ) ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.scheduling.PolicyUnit object ) { if ( ! ( object.isEnabled ( ) ) ) { return constants.removePolicyUnit ( ) ; } return null ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.scheduling.PolicyUnit object ) { if ( ! ( object.isEnabled ( ) ) ) { return org.ovirt.engine.ui.webadmin.section.main.view.popup.scheduling.ManagePolicyUnitPopupView.constants.removePolicyUnit ( ) ; } return null ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml iconWithTextAndTitle ( com.google.gwt.safehtml.shared.SafeHtml icon , java.lang.String text , java.lang.String title ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml unorderedList ( com.google.gwt.safehtml.shared.SafeHtml items ) ;
Source:
public void testGetLunsThatBreakDiscardAfterDeleteSupportDiscardAfterDeleteBreaks ( ) { storageDomain.setDiscardAfterDelete ( true ) ; org.ovirt.engine.core.common.businessentities.storage.LUNs lunThatBreaksDiscardSupport = createLunWithDiscardFunctionality ( 0L , true ) ; assertGetLunsThatBreakDiscardAfterDeleteSupportContainsExpectedLuns ( java.util.Arrays.asList ( createLunWithDiscardFunctionality ( 1024L , true ) , lunThatBreaksDiscardSupport ) , java.util.Collections.singletonList ( lunThatBreaksDiscardSupport ) ) ; }

Target:
public void testExistingDiscardAfterDeleteFunctionalityPreservedDiscardAfterDeleteFunctionalityBreaks ( ) { storageDomain.setDiscardAfterDelete ( true ) ; org.junit.Assert.assertFalse ( discardHelper.isExistingDiscardAfterDeleteFunctionalityPreserved ( java.util.Arrays.asList ( createLunWithDiscardSupport ( 1024L ) , createLunWithDiscardSupport ( 0L ) ) , storageDomain ) ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.DbUser > lookupUsers ( ) { org.ovirt.engine.core.common.queries.VdcQueryParametersBase queryParams = new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ; queryParams.setFiltered ( isFiltered ( ) ) ; return getBackendCollection ( org.ovirt.engine.core.common.businessentities.DbUser.class , VdcQueryType.GetAllDbUsers , queryParams ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.aaa.DbUser > lookupUsers ( ) { org.ovirt.engine.core.common.queries.VdcQueryParametersBase queryParams = new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ; queryParams.setFiltered ( isFiltered ( ) ) ; return getBackendCollection ( org.ovirt.engine.core.common.businessentities.aaa.DbUser.class , VdcQueryType.GetAllDbUsers , queryParams ) ; }
Source:
public void isNotSameStorageType ( ) { domain.setStorageType ( StorageType.NFS ) ; org.junit.Assert.assertEquals ( EngineMessage.ACTION_TYPE_FAILED_STORAGE_CONNECTION_UNSUPPORTED_ACTION_NOT_SAME_STORAGE_TYPE , validator.isSameStorageType ( domain ) . getMessage ( ) ) ; }

Target:
public void isNotSameStorageType ( ) { domain.setStorageType ( StorageType.NFS ) ; org.junit.Assert.assertThat ( validator.isSameStorageType ( domain ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_STORAGE_CONNECTION_UNSUPPORTED_ACTION_NOT_SAME_STORAGE_TYPE ) ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyNativeGotNullUsb ( ) { org.ovirt.engine.api.model.Usb usb = null ; org.ovirt.engine.core.common.businessentities.UsbPolicy currentPolicy = org.ovirt.engine.core.common.businessentities.UsbPolicy.ENABLED_NATIVE ; org.junit.Assert.assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , currentPolicy ) , currentPolicy ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotNullUsb ( ) { org.ovirt.engine.api.model.Usb usb = null ; org.ovirt.engine.core.common.businessentities.UsbPolicy currentPolicy = org.ovirt.engine.core.common.businessentities.UsbPolicy.DISABLED ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , currentPolicy ) , currentPolicy ) ; }
Source:
private java.lang.String getSearchPattern ( ) { java.lang.String user_defined_pattern = org.ovirt.engine.api.common.util.QueryHelper.getConstraint ( httpHeaders , uriInfo , "" , modelType ) ; return user_defined_pattern.equals ( "Users : " ) ? user_defined_pattern + ( org.ovirt.engine.api.restapi.resource.aaa.BackendUsersResource.USERS_SEARCH_PATTERN ) : ( user_defined_pattern + ( org.ovirt.engine.api.restapi.resource.aaa.BackendUsersResource.AND_SEARCH_PATTERN ) ) + ( org.ovirt.engine.api.restapi.resource.aaa.BackendUsersResource.USERS_SEARCH_PATTERN ) ; }

Target:
private java.lang.String getSearchPattern ( ) { java.lang.String user_defined_pattern = org.ovirt.engine.api.restapi.util.QueryHelper.getConstraint ( httpHeaders , uriInfo , "" , modelType ) ; return user_defined_pattern.equals ( "Users : " ) ? user_defined_pattern + ( org.ovirt.engine.api.restapi.resource.aaa.BackendUsersResource.USERS_SEARCH_PATTERN ) : ( user_defined_pattern + ( org.ovirt.engine.api.restapi.resource.aaa.BackendUsersResource.AND_SEARCH_PATTERN ) ) + ( org.ovirt.engine.api.restapi.resource.aaa.BackendUsersResource.USERS_SEARCH_PATTERN ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity slaveVolume ) { org.ovirt.engine.core.compat.Guid slaveUpserverId = getUpServerId ( slaveVolume.getClusterId ( ) ) ; if ( slaveUpserverId == null ) { return false ; } return true ; }

Target:
public boolean test ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity slaveVolume ) { org.ovirt.engine.core.compat.Guid slaveUpserverId = getUpServerId ( slaveVolume.getClusterId ( ) ) ; if ( slaveUpserverId == null ) { return false ; } return true ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { expanderContent.getStyle ( ) . setDisplay ( ( expander.isDown ( ) ? Style.Display.BLOCK : Style.Display.NONE ) ) ; }

Target:
void addStyles ( ) { pathEditor.addContentWidgetStyleName ( style.pathEditorContent ( ) ) ; expanderContent.setClassName ( style.expanderContent ( ) ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VM v ) { return ( ( v.getMigrationSupport ( ) ) == ( org.ovirt.engine.core.common.businessentities.MigrationSupport.MIGRATABLE ) ) && ( ! ( hostId.equals ( v.getDedicatedVmForVds ( ) ) ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VM v ) { return ( ( v.getMigrationSupport ( ) ) == ( org.ovirt.engine.core.common.businessentities.MigrationSupport.MIGRATABLE ) ) && ( ( v.getDedicatedVmForVdsList ( ) . contains ( hostId ) ) == false ) ; }
Source:
org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatusDetailForXmlRpc glusterVolumeGeoRepSessionStatus ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName ) ;

Target:
org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatusForXmlRpc glusterVolumeGeoRepSessionList ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName , java.lang.String userName ) ;
Source:
public boolean checkVmHostDeviceAvailability ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.compat.Guid hostId ) { return getCallsHandler ( ) . executeRead ( "CheckVmHostDeviceAvailability" , createBooleanMapper ( ) , getCustomMapSqlParameterSource ( ) . addValue ( "vm_id" , vmId ) . addValue ( "host_id" , hostId ) ) ; }

Target:
public boolean checkVmHostDeviceAvailability ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.compat.Guid hostId ) { return getCallsHandler ( ) . executeRead ( "CheckVmHostDeviceAvailability" , org.springframework.jdbc.core.SingleColumnRowMapper.newInstance ( java.lang.Boolean.class ) , getCustomMapSqlParameterSource ( ) . addValue ( "vm_id" , vmId ) . addValue ( "host_id" , hostId ) ) ; }
Source:
protected void onMouseOver ( ) { dragImage.setVisible ( true ) ; org.ovirt.engine.ui.webadmin.section.main.view.popup.host.panels.NetworkItemPanel.infoPopup.showItem ( item , this ) ; }

Target:
protected void onMouseOver ( ) { dragImage.setVisible ( draggable ) ; org.ovirt.engine.ui.webadmin.section.main.view.popup.host.panels.NetworkItemPanel.infoPopup.showItem ( item , this ) ; }
Source:
public void OnSuccess ( java.lang.Object model , java.lang.Object ReturnValue ) { this . setItems ( ( ( java.util.List < org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.VDSGroup , org.ovirt.engine.core.common.businessentities.NetworkCluster > > ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( ReturnValue ) ) . getReturnValue ( ) ) ) ) ; }

Target:
public void OnSuccess ( java.lang.Object model , java.lang.Object ReturnValue ) { this . setItems ( ( ( java.util.List < org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.VDSGroup , org.ovirt.engine.core.common.businessentities.network.NetworkCluster > > ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( ReturnValue ) ) . getReturnValue ( ) ) ) ) ; }
Source:
public java.lang.String render ( java.lang.String object ) { if ( object == null ) { return messages.globalVncKeyboardLayoutCaption ( globalLayout ) ; } else { return object ; } }

Target:
public java.lang.String render ( java.lang.String object ) { if ( object == null ) { return org.ovirt.engine.ui.common.widget.editor.VncKeyMapRenderer.messages.globalVncKeyboardLayoutCaption ( globalLayout ) ; } else { return object ; } }
Source:
public void testIsNetworkInSyncWhenGatewayEqual ( ) { initIpConfigurationBootProtocolGateway ( NetworkBootProtocol.STATIC_IP , true ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testIsNetworkInSyncWhenIpv4StaticBootProtocolAddressEqual ( ) throws java.lang.Exception { initIpv4ConfigurationBootProtocolAddress ( org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterfaceTest.IPV4_BOOT_PROTOCOL , true ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
private java.lang.String renderGigabyteSize ( long size ) { long sizeInGB = ( ( unit ) == ( org.ovirt.engine.ui.uicommonweb.models.SizeConverter.SizeUnit.GB ) ) ? size : org.ovirt.engine.ui.uicommonweb.models.SizeConverter.convert ( size , unit , SizeUnit.GB ) . longValue ( ) ; return sizeInGB >= 1 ? sizeInGB + " GB" : "< 1 GB" ; }

Target:
private java.lang.String renderGigabyteSize ( long size ) { long sizeInGB = ( ( unit ) == ( org.ovirt.engine.core.common.utils.SizeConverter.SizeUnit.GB ) ) ? size : org.ovirt.engine.core.common.utils.SizeConverter.convert ( size , unit , SizeUnit.GB ) . longValue ( ) ; return sizeInGB >= 1 ? sizeInGB + " GB" : "< 1 GB" ; }
Source:
protected java.lang.String getJsonDiskDescription ( java.lang.String diskAlias , java.lang.String diskDescription ) { try { return org.ovirt.engine.core.bll.ImagesHandler.getJsonDiskDescription ( diskAlias , diskDescription ) ; } catch ( java.io.IOException e ) { log.error ( "Exception while generating json for disk. ERROR: '{}'" , e ) ; return org.apache.commons.lang.StringUtils.EMPTY ; } }

Target:
protected java.lang.String getJsonDiskDescription ( org.ovirt.engine.core.common.businessentities.storage.Disk disk ) { try { return org.ovirt.engine.core.bll.ImagesHandler.getJsonDiskDescription ( disk ) ; } catch ( java.io.IOException e ) { log.error ( "Exception while generating json for disk. ERROR: '{}'" , e ) ; return org.apache.commons.lang.StringUtils.EMPTY ; } }
Source:
public java.lang.Void runInTransaction ( ) { getCompensationContext ( ) . snapshotEntity ( getStoragePool ( ) ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStoragePoolDAO ( ) . remove ( getStoragePool ( ) . getId ( ) ) ; getCompensationContext ( ) . stateChanged ( ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { getCompensationContext ( ) . snapshotEntity ( getStoragePool ( ) ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStoragePoolDao ( ) . remove ( getStoragePool ( ) . getId ( ) ) ; getCompensationContext ( ) . stateChanged ( ) ; return null ; }
Source:
public javax.ws.rs.core.Response ticket ( org.ovirt.engine.api.model.Action action ) { org.ovirt.engine.core.common.businessentities.GraphicsType graphicsType = deriveGraphicsType ( ) ; java.lang.String consoleId = org.ovirt.engine.api.restapi.resource.BackendGraphicsConsoleHelper.asConsoleId ( graphicsType ) ; return getGraphicsConsolesResource ( ) . getConsoleResource ( consoleId ) . ticket ( action ) ; }

Target:
public javax.ws.rs.core.Response ticket ( org.ovirt.engine.api.model.Action action ) { return org.ovirt.engine.api.restapi.resource.BackendGraphicsConsoleHelper.setTicket ( this , action , guid , deriveGraphicsType ( ) ) ; }
Source:
public void testExistingDiscardAfterDeleteFunctionalityPreservedDiscardAfterDeleteFunctionalityBreaks ( ) { storageDomain.setDiscardAfterDelete ( true ) ; org.junit.Assert.assertFalse ( discardHelper.isExistingDiscardAfterDeleteFunctionalityPreserved ( java.util.Arrays.asList ( createLunWithDiscardFunctionality ( 1024L , false ) , createLunWithDiscardFunctionality ( 0L , true ) ) , storageDomain ) ) ; }

Target:
public void testExistingDiscardAfterDeleteFunctionalityPreservedAllLunsHaveDiscardAfterDeleteFunctionality ( ) { storageDomain.setDiscardAfterDelete ( true ) ; org.junit.Assert.assertTrue ( discardHelper.isExistingDiscardAfterDeleteFunctionalityPreserved ( java.util.Arrays.asList ( createLunWithDiscardSupport ( 1024L ) , createLunWithDiscardSupport ( 2048L ) ) , storageDomain ) ) ; }
Source:
private boolean validateDestStorage ( org.ovirt.engine.core.common.businessentities.StorageDomain destDomain ) { org.ovirt.engine.core.bll.validator.StorageDomainValidator validator = new org.ovirt.engine.core.bll.validator.StorageDomainValidator ( destDomain ) ; return ( validate ( validator.isDomainExistAndActive ( ) ) ) && ( validate ( validator.domainIsValidDestination ( ) ) ) ; }

Target:
private boolean validateDestStorage ( org.ovirt.engine.core.common.businessentities.StorageDomain destDomain ) { org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator validator = new org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator ( destDomain ) ; return ( validate ( validator.isDomainExistAndActive ( ) ) ) && ( validate ( validator.domainIsValidDestination ( ) ) ) ; }
Source:
public static org.hamcrest.Matcher < org.ovirt.engine.core.bll.ValidationResult > failsWith ( org.ovirt.engine.core.dal.VdcBllMessages expectedError ) { return new org.ovirt.engine.core.bll.validator.ValidationResultMatchers.Fails ( expectedError ) ; }

Target:
public static org.hamcrest.Matcher < org.ovirt.engine.core.bll.ValidationResult > failsWith ( org.ovirt.engine.core.common.errors.VdcBllMessages expectedError ) { return new org.ovirt.engine.core.bll.validator.ValidationResultMatchers.Fails ( expectedError ) ; }
Source:
public java.lang.String getText ( org.ovirt.engine.core.common.businessentities.gluster.ServiceInfo entity ) { return entity.getStatus ( ) . name ( ) ; }

Target:
public java.lang.String getText ( org.ovirt.engine.core.common.businessentities.gluster.GlusterServerService entity ) { return entity.getStatus ( ) . name ( ) ; }
Source:
protected org.ovirt.engine.api.model.Group mapAdGroup ( org.ovirt.engine.core.common.businessentities.ad_groups entity ) { return getMapper ( org.ovirt.engine.core.common.businessentities.ad_groups.class , org.ovirt.engine.api.model.Group.class ) . map ( entity , null ) ; }

Target:
protected org.ovirt.engine.api.model.Group mapAdGroup ( org.ovirt.engine.core.common.businessentities.LdapGroup entity ) { return getMapper ( org.ovirt.engine.core.common.businessentities.LdapGroup.class , org.ovirt.engine.api.model.Group.class ) . map ( entity , null ) ; }
Source:
public static void addDiskImageWithNoVmDevice ( org.ovirt.engine.core.common.businessentities.DiskImage image ) { org.ovirt.engine.core.bll.ImagesHandler.addDiskImageWithNoVmDevice ( image , image.getactive ( ) , new org.ovirt.engine.core.common.businessentities.image_storage_domain_map ( image.getImageId ( ) , image.getstorage_ids ( ) . get ( 0 ) ) ) ; }

Target:
public static void addDiskImageWithNoVmDevice ( org.ovirt.engine.core.common.businessentities.DiskImage image ) { org.ovirt.engine.core.bll.ImagesHandler.addDiskImageWithNoVmDevice ( image , image.getActive ( ) , new org.ovirt.engine.core.common.businessentities.image_storage_domain_map ( image.getImageId ( ) , image.getStorageIds ( ) . get ( 0 ) ) ) ; }
Source:
protected java.util.function.Predicate < org.ovirt.engine.core.common.businessentities.StorageDomain > getPredicate ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > memoryDisks ) { return ( storageDomain ) -> storageDomain.getStorageDomainType ( ) . isDataDomain ( ) ; }

Target:
public boolean test ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { return storageDomain.getStorageDomainType ( ) . isDataDomain ( ) ; }
Source:
protected abstract void executeNetworkCommand ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op1 , org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op2 , java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > allNics , java.lang.Object ... params ) ;

Target:
protected abstract void executeNetworkCommand ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op1 , org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op2 , org.ovirt.engine.ui.uicommonweb.models.hosts.network.DataFromHostSetupNetworksModel dataFromHostSetupNetworksModel , java.lang.Object ... params ) ;
Source:
public javax.ws.rs.core.Response allocatevm ( org.ovirt.engine.api.model.Action action ) { return doAction ( VdcActionType.AttachUserToVmFromPoolAndRun , new org.ovirt.engine.core.common.action.VmPoolUserParameters ( guid , getCurrent ( ) . get ( org.ovirt.engine.core.common.users.VdcUser.class ) , false ) , action , new org.ovirt.engine.api.restapi.resource.BackendVmPoolResource.VmQueryIdResolver ( org.ovirt.engine.core.common.queries.VdcQueryType.GetVmByVmId , org.ovirt.engine.core.common.queries.GetVmByVmIdParameters.class ) ) ; }

Target:
public javax.ws.rs.core.Response allocatevm ( org.ovirt.engine.api.model.Action action ) { return doAction ( VdcActionType.AttachUserToVmFromPoolAndRun , new org.ovirt.engine.core.common.action.VmPoolUserParameters ( guid , getCurrent ( ) . get ( org.ovirt.engine.core.common.users.VdcUser.class ) , false ) , action , new org.ovirt.engine.api.restapi.resource.BackendVmPoolResource.VmQueryIdResolver ( org.ovirt.engine.core.common.queries.VdcQueryType.GetVmByVmId , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) ) ; }
Source:
public abstract void onLogout ( ) ;

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { onLogin ( loginModel ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.cachedCommandsCompatibilityVersions = ( ( java.util.HashMap < org.ovirt.engine.core.common.action.VdcActionType , org.ovirt.engine.core.common.queries.CommandVersionsInfo > ) ( source ) ) ; return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.isCommandCompatible ( vdcActionType , cluster , dc ) ; }

Target:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { cachedCommandsCompatibilityVersions = ( ( java.util.HashMap < org.ovirt.engine.core.common.action.VdcActionType , org.ovirt.engine.core.common.queries.CommandVersionsInfo > ) ( source ) ) ; return isCommandCompatible ( vdcActionType , cluster , dc ) ; }
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 java.lang.String.valueOf ( disk.getLun ( ) . getPathCount ( ) ) ; }
Source:
public void validateVmMemoryCantStartOnVdsBecauseOfGuestOverhead ( ) { vds.setGuestOverhead ( 256 ) ; boolean vmPassedMemoryRequirement = org.ovirt.engine.core.bll.scheduling.SlaValidator.getInstance ( ) . hasPhysMemoryToRunVM ( vds , vm , 0 ) ; org.junit.Assert.assertEquals ( vmPassedMemoryRequirement , false ) ; }

Target:
public void validateVmMemoryCantStartOnVdsBecauseOfPending ( ) { boolean vmPassedMemoryRequirement = slaValidator.hasPhysMemoryToRunVM ( vds , vm , 65 ) ; org.junit.Assert.assertFalse ( vmPassedMemoryRequirement ) ; }
Source:
public static < T > boolean objectsEqual ( T obj1 , T obj2 ) { if ( obj1 == null ) { return obj2 == null ; } else { return obj1.equals ( obj2 ) ; } }

Target:
public static boolean containsBrick ( java.util.Collection < org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity > bricks , org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity searchBrick ) { return ( org.ovirt.engine.core.common.utils.gluster.GlusterCoreUtil.findBrick ( bricks , searchBrick ) ) != null ; }
Source:
public void useDefaultMTU ( ) { java.util.Set < javax.validation.ConstraintViolation < org.ovirt.engine.core.common.utils.MTUValidatorTest.MtuContainer > > validate = validate ( new org.ovirt.engine.core.common.utils.MTUValidatorTest.MtuContainer ( 0 ) ) ; org.junit.Assert.assertTrue ( validate.isEmpty ( ) ) ; }

Target:
public void useDefaultMTU ( ) { java.util.Set < javax.validation.ConstraintViolation < org.ovirt.engine.core.common.utils.MTUValidatorTest.MtuContainer > > validate = validate ( new org.ovirt.engine.core.common.utils.MTUValidatorTest.MtuContainer ( 0 ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( validate.isEmpty ( ) ) ; }
Source:
public void setRebalanceCommand ( org.ovirt.engine.ui.uicommonweb.UICommand rebalanceCommand ) { this . rebalanceCommand = rebalanceCommand ; }

Target:
public void setStartRebalanceCommand ( org.ovirt.engine.ui.uicommonweb.UICommand startRebalanceCommand ) { this . startRebalanceCommand = startRebalanceCommand ; }
Source:
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 ) ; }

Target:
protected org.ovirt.engine.api.model.StorageDomain getEntity ( int index , org.ovirt.engine.core.common.businessentities.storage.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 java.util.Map getOKStatusNotImplemented ( ) { log.warn ( "The method is not fully implemented!" , new java.lang.Exception ( ) ) ; return getStatusMap ( "OK" , 0 ) ; }

Target:
public java.util.Map getOKStatusNotImplemented ( ) { log.warn ( "The method is not fully implemented!" , new java.lang.Exception ( ) ) ; return ResultCodes.OK.newMap ( ) ; }
Source:
protected void performLogout ( ) { getLoginModel ( ) . resetAfterLogout ( ) ; user.onUserLogout ( ) ; org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.clearCache ( ) ; org.ovirt.engine.ui.common.uicommon.model.CleanupModelEvent.fire ( eventBus ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object ReturnValue ) { Window.Location.reload ( ) ; }
Source:
public void testExecuteCommand ( ) throws java.lang.Exception { org.ovirt.engine.core.bll.RemoveQuotaCommand removeQuotaCommand = createCommand ( ) ; removeQuotaCommand.executeCommand ( ) ; }

Target:
public void testExecuteCommand ( ) throws java.lang.Exception { org.ovirt.engine.core.bll.RemoveQuotaCommand removeQuotaCommand = createCommand ( generalGuidQuota ) ; removeQuotaCommand.executeCommand ( ) ; org.junit.Assert.assertTrue ( removeQuotaCommand.getSucceeded ( ) ) ; }
Source:
public static void addDiskToVmIfNotExists ( org.ovirt.engine.core.common.businessentities.storage.BaseDisk disk , org.ovirt.engine.core.compat.Guid vmId ) { if ( ! ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getBaseDiskDao ( ) . exists ( disk.getId ( ) ) ) ) { org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.addDiskToVm ( disk , vmId ) ; } }

Target:
public void addDiskToVmIfNotExists ( org.ovirt.engine.core.common.businessentities.storage.BaseDisk disk , org.ovirt.engine.core.compat.Guid vmId ) { if ( ! ( baseDiskDao.exists ( disk.getId ( ) ) ) ) { addDiskToVm ( disk , vmId ) ; } }
Source:
public void setHighUtilization ( int value ) { this . highUtilization = value ; }

Target:
public void setHighlyAvailableIsActive ( boolean value ) { this . mVdsStatistics.setHighlyAvailableIsActive ( value ) ; }
Source:
public java.lang.String encode ( org.ovirt.engineextensions.aaa.ldap.ASN1OctetString value ) { return conversion.encode ( value , conversionProps ) ; }

Target:
public java.lang.String encode ( com.unboundid.asn1.ASN1OctetString value ) { return conversion.encode ( value , conversionProps ) ; }
Source:
public void testValidModifiedBonds_failsWhenSlavesValidationFails ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Bond bond = new org.ovirt.engine.core.common.businessentities.network.Bond ( ) ; bond.setSlaves ( java.util.Arrays.asList ( "slaveA" , "slaveB" ) ) ; doTestValidModifiedBonds ( bond , ValidationResult.VALID , ValidationResult.VALID , null , false , false ) ; }

Target:
public void testValidModifiedBondsFailsWhenInsufficientNumberOfSlaves ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Bond bond = createBond ( ) ; doTestValidModifiedBonds ( bond , ValidationResult.VALID , ValidationResult.VALID , new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.NETWORK_BONDS_INVALID_SLAVE_COUNT ) , ValidationResult.VALID ) ; }
Source:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { return org.ovirt.engine.core.bll.ClearAllAuditLogEventsCommand.getSucceeded ( ) ? org.ovirt.engine.core.common.AuditLogType.USER_CLEAR_ALL_AUDIT_LOG : org.ovirt.engine.core.common.AuditLogType.USER_CLEAR_ALL_AUDIT_LOG_FAILED ; }

Target:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { return org.ovirt.engine.core.bll.ClearAllAuditLogEventsCommand.getSucceeded ( ) ? org.ovirt.engine.core.common.AuditLogType.USER_CLEAR_ALL_AUDIT_LOG_EVENTS : org.ovirt.engine.core.common.AuditLogType.USER_CLEAR_ALL_AUDIT_LOG_EVENTS_FAILED ; }