auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testCheckVmHostDeviceAvailabilityOnAlreadyAllocatedDevice ( ) { org.junit.Assert.assertTrue ( dao.checkVmHostDeviceAvailability ( org.ovirt.engine.core.dao.HostDeviceDaoTest.EXISTING_VM_ID_2 , org.ovirt.engine.core.dao.HostDeviceDaoTest.EXISTING_HOST_ID ) ) ; }

Target:
public void testCheckVmHostDeviceAvailabilityOnAlreadyAllocatedDevice ( ) { org.junit.Assert.assertTrue ( dao.checkVmHostDeviceAvailability ( org.ovirt.engine.core.dao.HostDeviceDaoTest.EXISTING_VM_ID_2 , FixturesTool.VDS_RHEL6_NFS_SPM ) ) ; }
Source:
com.gwtplatform.mvp.client.proxy.PlaceRequest resolveMainSectionPlace ( org.ovirt.engine.core.common.mode.ApplicationMode uiMode ) { switch ( uiMode ) { case GlusterOnly : return org.ovirt.engine.ui.common.place.PlaceRequestFactory.get ( ApplicationPlaces.volumeMainTabPlace ) ; case VirtOnly : case AllModes : default : return defaultMainSectionRequest ; } }

Target:
com.gwtplatform.mvp.client.proxy.PlaceRequest resolveMainSectionPlace ( org.ovirt.engine.core.common.mode.ApplicationMode uiMode ) { switch ( uiMode ) { case GlusterOnly : return org.ovirt.engine.ui.common.place.PlaceRequestFactory.get ( WebAdminApplicationPlaces.volumeMainTabPlace ) ; case VirtOnly : case AllModes : default : return defaultMainSectionRequest ; } }
Source:
public void testGetForStoragePoolWithInvalidId ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain result = dao.getForStoragePool ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , org.ovirt.engine.core.dao.StorageDomainDaoTest.EXISTING_STORAGE_POOL_ID ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetForStoragePoolWithInvalidId ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain result = dao.getForStoragePool ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , FixturesTool.STORAGE_POOL_NFS ) ; org.junit.Assert.assertNull ( result ) ; }
Source:
public void testNameNotChanged ( ) { prepareVmToPassCanDoAction ( ) ; vm.setName ( "vm1" ) ; mockSameNameQuery ( true ) ; mockVmValidator ( ) ; command.initEffectiveCompatibilityVersion ( ) ; org.junit.Assert.assertTrue ( "canDoAction should have passed." , command.canDoAction ( ) ) ; }

Target:
public void testChangeToExistingName ( ) { prepareVmToPassValidate ( ) ; mockSameNameQuery ( true ) ; org.junit.Assert.assertFalse ( "validate should have failed with vm name already in use." , command.validate ( ) ) ; assertValidateMessage ( EngineMessage.ACTION_TYPE_FAILED_NAME_ALREADY_USED ) ; }
Source:
protected void endSuccessfully ( ) { org.ovirt.engine.core.bll.storage.RemoveCinderDiskCommand.setSucceeded ( true ) ; }

Target:
protected void endSuccessfully ( ) { endRemoveCinderDisk ( org.ovirt.engine.core.bll.storage.RemoveCinderDiskCommand.getParameters ( ) . getRemovedVolume ( ) ) ; }
Source:
public void parseLunFromXmlRpcReturnsUnknownForFcp ( ) throws java.lang.Exception { org.ovirt.engine.core.vdsbroker.vdsbroker.GetDeviceListVDSCommandTest.testParseLunFromXmlRpcForDevtypeField ( StorageType.UNKNOWN , GetDeviceListVDSCommand.DEVTYPE_VALUE_FCP ) ; }

Target:
public void parseLunFromXmlRpcReturnsFcpForFcp ( ) throws java.lang.Exception { org.ovirt.engine.core.vdsbroker.vdsbroker.GetDeviceListVDSCommandTest.testParseLunFromXmlRpcForDevtypeField ( StorageType.FCP , GetDeviceListVDSCommand.DEVTYPE_VALUE_FCP ) ; }
Source:
public void hasDomains ( ) { domainListNotEmpty ( ) ; canDoActionFailed ( VdcBllMessages.ERROR_CANNOT_CHANGE_STORAGE_POOL_TYPE_WITH_DOMAINS.toString ( ) ) ; }

Target:
public void lowerVersionHostsNoNetwork ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addHostsToCluster ( ) ; org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }
Source:
public void setVmCompletionMap ( java.util.HashMap < java.lang.Integer , java.lang.String > map ) { this . vmCompletionMap = map ; }

Target:
private java.lang.String generateFromStatement ( org.ovirt.engine.core.searchbackend.SyntaxContainer syntax ) { return generateFromStatement ( syntax , true ) ; }
Source:
public int compare ( java.lang.String str1 , java.lang.String str2 ) { return org.ovirt.engine.core.common.utils.LexoNumericComparator.comp ( str1 , str2 ) ; }

Target:
public int compare ( java.lang.String str1 , java.lang.String str2 ) { return org.ovirt.engine.core.common.businessentities.comparators.LexoNumericComparator.comp ( str1 , str2 ) ; }
Source:
public org.ovirt.engine.api.resource.AssignedPermissionsResource getPermissionsResource ( ) { return null ; }

Target:
private org.ovirt.engine.api.model.Network getNetwork ( ) { return getEntity ( org.ovirt.engine.api.model.Network.class , VdcQueryType.GetNetworkById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) , guid.toString ( ) ) ; }
Source:
public static org.ovirt.engine.sdk.entities.StatisticType fromValue ( java.lang.String v ) { return org.ovirt.engine.sdk.entities.StatisticType.valueOf ( v ) ; }

Target:
public static org.ovirt.engine.sdk.entities.StatisticKind fromValue ( java.lang.String v ) { return org.ovirt.engine.sdk.entities.StatisticKind.valueOf ( v ) ; }
Source:
protected abstract void Perform ( ) ;

Target:
protected abstract void perform ( ) ;
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.HashMap < org.ovirt.engine.core.common.businessentities.network.Network , java.util.Set < org.ovirt.engine.core.compat.Guid > > ( ) ; } return source ; }

Target:
public T convert ( java.lang.Object source ) { return ( ( T ) ( source ) ) ; }
Source:
private java.lang.String getRequestName ( org.ovirt.api.metamodel.concepts.Method method ) { return ( javaNames.getJavaClassStyleName ( method.getName ( ) ) ) + "Request" ; }

Target:
private java.lang.String getRequestName ( org.ovirt.api.metamodel.concepts.Method method ) { return ( javaNames.getJavaClassStyleName ( getFullName ( method ) ) ) + "Request" ; }
Source:
protected void OnSelectedItemChanged ( ) { super . OnSelectedItemChanged ( ) ; UpdateActionAvailability ( ) ; UpdateConsoleModels ( ) ; }

Target:
protected void SelectedItemsChanged ( ) { super . SelectedItemsChanged ( ) ; UpdateActionAvailability ( ) ; UpdateConsoleModels ( ) ; }
Source:
public void rollback ( ) { super . rollback ( ) ; org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolPerDcSingleton.getInstance ( ) . createPool ( getOldMacPool ( ) ) ; }

Target:
protected void executeCommand ( ) { registerRollbackHandler ( new org.ovirt.engine.core.bll.RemoveMacPoolCommand.CustomTransactionCompletionListener ( ) ) ; getMacPoolDao ( ) . remove ( getMacPoolId ( ) ) ; org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolPerDcSingleton.getInstance ( ) . removePool ( getMacPoolId ( ) ) ; getReturnValue ( ) . setSucceeded ( true ) ; }
Source:
public int getEventsThreadPoolSize ( ) { return this . eventsThreadPoolSize ; }

Target:
public java.lang.String getJsonHost ( ) { return jsonHost ; }
Source:
public int compareTo ( org.ovirt.engine.core.common.businessentities.VmDevice other ) { return getId ( ) . compareTo ( other.getId ( ) ) ; }

Target:
public int compareTo ( org.ovirt.engine.core.common.businessentities.VmDevice other ) { return org.ovirt.engine.core.common.businessentities.BusinessEntityComparator.< org.ovirt.engine.core.common.businessentities.VmDevice , org.ovirt.engine.core.common.businessentities.VmDeviceId > newInstance ( ) . compare ( this , other ) ; }
Source:
public java.lang.Boolean Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Boolean ) ( source ) ) : java.lang.Boolean.FALSE ; }

Target:
public java.lang.Boolean convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Boolean ) ( source ) ) : java.lang.Boolean.FALSE ; }
Source:
protected void RemoveVmFromDb ( ) { org.ovirt.engine.core.bll.RemoveVmCommand.RemoveVmUsers ( ) ; org.ovirt.engine.core.bll.RemoveVmCommand.RemoveVmNetwork ( ) ; new org.ovirt.engine.core.bll.snapshots.SnapshotsManager ( ) . removeSnapshots ( org.ovirt.engine.core.bll.RemoveVmCommand.getVmId ( ) ) ; org.ovirt.engine.core.bll.RemoveVmCommand.RemoveVmStatic ( ) ; }

Target:
protected void RemoveVmFromDb ( ) { removeLunDisks ( ) ; org.ovirt.engine.core.bll.RemoveVmCommand.RemoveVmUsers ( ) ; org.ovirt.engine.core.bll.RemoveVmCommand.RemoveVmNetwork ( ) ; new org.ovirt.engine.core.bll.snapshots.SnapshotsManager ( ) . removeSnapshots ( org.ovirt.engine.core.bll.RemoveVmCommand.getVmId ( ) ) ; org.ovirt.engine.core.bll.RemoveVmCommand.RemoveVmStatic ( ) ; }
Source:
public static java.lang.String GetMessage ( org.ovirt.engine.core.common.AuditLogType logType ) { java.lang.String value = "" ; if ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.mMessages.containsKey ( logType ) ) { value = org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.mMessages.get ( logType ) ; } return value ; }

Target:
public static java.lang.String getMessage ( org.ovirt.engine.core.common.AuditLogType logType ) { java.lang.String value = "" ; if ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.messages.containsKey ( logType ) ) { value = org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.messages.get ( logType ) ; } return value ; }
Source:
protected org.ovirt.engine.core.common.businessentities.StorageDomain getStorageDomain ( ) { if ( ( storageDomain ) == null ) { storageDomain = getDbFacade ( ) . getStorageDomainDao ( ) . get ( getDiskProfile ( ) . getStorageDomainId ( ) ) ; } return storageDomain ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StorageDomain getStorageDomain ( ) { if ( ( storageDomain ) == null ) { storageDomain = getDbFacade ( ) . getStorageDomainDao ( ) . get ( getProfile ( ) . getStorageDomainId ( ) ) ; } return storageDomain ; }
Source:
public boolean isClientWindownsExplorer ( ) { return ( clientOsType ( ) . equalsIgnoreCase ( "Windows" ) ) && ( clientBrowserType ( ) . equalsIgnoreCase ( "Explorer" ) ) ; }

Target:
public boolean isClientWindowsExplorer ( ) { return ( isClientWindows ( ) ) && ( clientBrowserType ( ) . equalsIgnoreCase ( "Explorer" ) ) ; }
Source:
public void setEnumTitle ( java.lang.Enum < ? > enumObj ) { setTitle ( org.ovirt.engine.ui.uicompat.EnumTranslator.getInstance ( ) . get ( enumObj ) ) ; }

Target:
public void setEnumTitle ( java.lang.Enum < ? > enumObj ) { setTitle ( org.ovirt.engine.ui.uicompat.EnumTranslator.getInstance ( ) . translate ( enumObj ) ) ; }
Source:
public org.ovirt.vdsmfake.service.Host getActiveHost ( ) { final java.lang.String serverName = org.ovirt.vdsmfake.ContextHolder.getServerName ( ) ; final org.ovirt.vdsmfake.service.Host host = org.ovirt.vdsmfake.service.VdsmManager.getInstance ( ) . getHostByName ( serverName ) ; return host ; }

Target:
public org.ovirt.vdsmfake.domain.Host getActiveHost ( ) { final java.lang.String serverName = org.ovirt.vdsmfake.ContextHolder.getServerName ( ) ; final org.ovirt.vdsmfake.domain.Host host = org.ovirt.vdsmfake.domain.VdsmManager.getInstance ( ) . getHostByName ( serverName ) ; return host ; }
Source:
private void doFinish ( ) { windowModel.StopProgress ( ) ; Cancel ( ) ; ForceRefresh ( ) ; }

Target:
private void doFinish ( ) { windowModel.StopProgress ( ) ; cancel ( ) ; ForceRefresh ( ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VDS getVds ( org.ovirt.engine.core.compat.Guid id ) { return org.ovirt.engine.core.bll.VmManagementCommandBase.getVdsDao ( ) . get ( id ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VDS getVds ( org.ovirt.engine.core.compat.Guid id ) { return vdsDao.get ( id ) ; }
Source:
public void validateFailureOnCopyingCinderDisk ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.CinderDisk ( ) ) ; command.getParameters ( ) . setOperation ( ImageOperation.Copy ) ; command.init ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_NOT_SUPPORTED_DISK_STORAGE_TYPE ) ; }

Target:
public void validateFailureOnMovingLunDisk ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.LunDisk ( ) , null ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_NOT_SUPPORTED_DISK_STORAGE_TYPE ) ; }
Source:
public void testSave ( ) { dao.save ( newUser ) ; org.ovirt.engine.core.common.businessentities.DbUser result = dao.getByUsername ( newUser.getLoginName ( ) ) ; org.junit.Assert.assertEquals ( newUser , result ) ; }

Target:
public void testSave ( ) { dao.save ( newUser ) ; org.ovirt.engine.core.common.businessentities.DbUser result = dao.getByUsernameAndDomain ( newUser.getLoginName ( ) , newUser.getDomain ( ) ) ; org.junit.Assert.assertEquals ( newUser , result ) ; }
Source:
public void testValidModifiedBonds_failsWhenInsufficientNumberOfSlaves ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Bond bond = new org.ovirt.engine.core.common.businessentities.network.Bond ( ) ; doTestValidModifiedBonds ( bond , ValidationResult.VALID , ValidationResult.VALID , VdcBllMessages.NETWORK_BONDS_INVALID_SLAVE_COUNT , 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 java.util.List < org.ovirt.engine.core.common.businessentities.VmDynamic > getAllRunningForVds ( org.ovirt.engine.core.compat.Guid id ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "vds_id" , id ) ; org.springframework.jdbc.core.simple.ParameterizedRowMapper < org.ovirt.engine.core.common.businessentities.VmDynamic > mapper = createEntityRowMapper ( ) ; return getCallsHandler ( ) . executeReadList ( "GetVmsDynamicRunningOnVds" , mapper , parameterSource ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VmDynamic > getAllRunningForVds ( org.ovirt.engine.core.compat.Guid id ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "vds_id" , id ) ; org.springframework.jdbc.core.RowMapper < org.ovirt.engine.core.common.businessentities.VmDynamic > mapper = createEntityRowMapper ( ) ; return getCallsHandler ( ) . executeReadList ( "GetVmsDynamicRunningOnVds" , mapper , parameterSource ) ; }
Source:
public void testIsNetworkInSyncWhenMtuSameViaDefault ( ) throws java.lang.Exception { org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterface testedInstanceWithSameNonQosValues = createTestedInstanceWithSameNonQosValues ( ) ; iface.setMtu ( org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterfaceTest.DEFAULT_MTU_VALUE ) ; network.setMtu ( org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterfaceTest.VALUE_DENOTING_THAT_MTU_SHOULD_BE_SET_TO_DEFAULT_VALUE ) ; org.junit.Assert.assertThat ( testedInstanceWithSameNonQosValues.isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testIsNetworkInSyncWhenMtuSameViaDefault ( ) { org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterface testedInstanceWithSameNonQosValues = createTestedInstanceWithSameNonQosValues ( ) ; iface.setMtu ( org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterfaceTest.DEFAULT_MTU_VALUE ) ; network.setMtu ( org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterfaceTest.VALUE_DENOTING_THAT_MTU_SHOULD_BE_SET_TO_DEFAULT_VALUE ) ; org.hamcrest.MatcherAssert.assertThat ( testedInstanceWithSameNonQosValues.isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
public void getUsbPolicySetDisabled ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; org.junit.Assert.assertEquals ( UsbPolicy.DISABLED , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) ) ; }

Target:
public void getUsbPolicyIsSetDisabled ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( UsbPolicy.DISABLED , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) ) ; }
Source:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.lsm.LiveMigrateVmDisksCommand.getVmId ( ) . toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.VM , VdcBllMessages.ACTION_TYPE_FAILED_OBJECT_LOCKED ) ) ; }

Target:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getSharedLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.lsm.LiveMigrateVmDisksCommand.getVmId ( ) . toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.VM , VdcBllMessages.ACTION_TYPE_FAILED_OBJECT_LOCKED ) ) ; }
Source:
public void testGetTreeForEntityWithVdsType ( ) { baseTestGetTreeForEntity ( org.ovirt.engine.core.dao.PermissionDaoTest.VDS_ENTITY_ID , VdcObjectType.VDS , org.ovirt.engine.core.dao.PermissionDaoTest.CLUSTER_ID ) ; }

Target:
public void testGetTreeForEntityWithVdsType ( ) { baseTestGetTreeForEntity ( FixturesTool.VDS_RHEL6_NFS_SPM , VdcObjectType.VDS , org.ovirt.engine.core.dao.PermissionDaoTest.CLUSTER_ID ) ; }
Source:
private void iconCleanup ( ) { dbFacade.getVmIconDao ( ) . removeAllUnusedIcons ( ) ; }

Target:
private void iconCleanup ( ) { vmIconDao.removeAllUnusedIcons ( ) ; }
Source:
public void nameIsEmpty ( ) { org.mockito.Mockito.when ( host.getName ( ) ) . thenReturn ( "" ) ; org.junit.Assert.assertThat ( validator.nameNotEmpty ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_NAME_MAY_NOT_BE_EMPTY ) ) ; }

Target:
public void nameIsEmpty ( ) { org.mockito.Mockito.when ( host.getName ( ) ) . thenReturn ( "" ) ; org.junit.Assert.assertThat ( validator.nameNotEmpty ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_NAME_MAY_NOT_BE_EMPTY ) ) ; }
Source:
public java.lang.String getStoragePoolName ( ) { if ( ( getStoragePool ( ) ) != null ) { return getStoragePool ( ) . getName ( ) ; } return "" ; }

Target:
public java.lang.String getClusterName ( ) { if ( ( clusterName ) == null ) { if ( ( getCluster ( ) ) != null ) { clusterName = getCluster ( ) . getName ( ) ; } else { clusterName = "" ; } } return clusterName ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( org.ovirt.engine.core.common.businessentities.StorageServerConnections ) ( source ) ) : null ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ! ( ( ( java.lang.Boolean ) ( source ) ) . booleanValue ( ) ) : false ; }
Source:
public void testStorageDomainForMemoryIsNotValidWhenItHasNoSpaceForClonedDisks ( ) { org.mockito.Mockito.when ( storageDomainValidator.hasSpaceForClonedDisks ( memoryDisks ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN ) ) ; org.junit.Assert.assertFalse ( filter.test ( storageDomain ) ) ; }

Target:
public void testStorageDomainForMemoryIsNotValidWhenItHasNoSpaceForClonedDisks ( ) { org.mockito.Mockito.when ( storageDomainValidator.hasSpaceForClonedDisks ( memoryDisks ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN ) ) ; org.junit.jupiter.api.Assertions.assertFalse ( filter.test ( storageDomain ) ) ; }
Source:
public void setBootProtocolsAvailable ( boolean value ) { if ( ( bootProtocolsAvailable ) != value ) { bootProtocolsAvailable = value ; updateCanSpecify ( ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "BootProtocolsAvailable" ) ) ; } }

Target:
public void setBootProtocolsAvailable ( boolean value ) { if ( ( bootProtocolsAvailable ) != value ) { bootProtocolsAvailable = value ; updateCanSpecifyIpv4 ( ) ; updateCanSpecifyIpv6 ( ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "BootProtocolsAvailable" ) ) ; } }
Source:
public void validateDescriptionOkSucceeds ( ) { org.junit.Assert.assertTrue ( command.validate ( ) ) ; }

Target:
public void validateDescriptionOkSucceeds ( ) { org.junit.jupiter.api.Assertions.assertTrue ( command.validate ( ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StoragePool > ( ) ; } return source ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ! ( ( ( java.lang.Boolean ) ( source ) ) . booleanValue ( ) ) : false ; }
Source:
public org.ovirt.engine.api.v3.types.V3Host update ( org.ovirt.engine.api.v3.types.V3Host host ) { return adaptUpdate ( delegate :: update , host ) ; }

Target:
public javax.ws.rs.core.Response unregisteredStorageDomainsDiscover ( org.ovirt.engine.api.v3.types.V3Action action ) { return adaptAction ( getDelegate ( ) :: unregisteredStorageDomainsDiscover , action ) ; }
Source:
public java.lang.String getClientIp ( ) { return this . vmDynamic.getclient_ip ( ) ; }

Target:
public void setDisplaySecurePort ( java.lang.Integer value ) { this . vmDynamic.setDisplaySecurePort ( value ) ; }
Source:
protected boolean IsStorageWithSameNameExists ( ) { return ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageDomainStaticDao ( ) . getByName ( getStorageDomain ( ) . getStorageName ( ) ) ) != null ; }

Target:
protected boolean isStorageWithSameNameExists ( ) { return ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageDomainStaticDao ( ) . getByName ( getStorageDomain ( ) . getStorageName ( ) ) ) != null ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.HasFreeVmsInPoolQuery.getQueryReturnValue ( ) . setReturnValue ( ( ! ( org.ovirt.engine.core.bll.VmPoolCommandBase.GetVmToAttach ( org.ovirt.engine.core.bll.HasFreeVmsInPoolQuery.getParameters ( ) . getPoolId ( ) ) . equals ( Guid.Empty ) ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.HasFreeVmsInPoolQuery.getQueryReturnValue ( ) . setReturnValue ( ( ! ( org.ovirt.engine.core.bll.VmPoolCommandBase.getVmToAttach ( org.ovirt.engine.core.bll.HasFreeVmsInPoolQuery.getParameters ( ) . getPoolId ( ) ) . equals ( Guid.Empty ) ) ) ) ; }
Source:
public void nonPassthroughProfileContainsPortMirroringAndQos ( ) { passthroughProfileContainsSupportedPropertiesTest ( false , true , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_GUID ) ; org.junit.Assert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void passthroughProfileDoesNotContainFilterIdButDefaultWillBeUsed ( ) { passthroughProfileContainsSupportedPropertiesTest ( true , false , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_GUID , null ) ; org.junit.Assert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( true ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_PASSTHROUGH_PROFILE_CONTAINS_NOT_SUPPORTED_PROPERTIES ) ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getValue ( ) { return text ; }

Target:
public com.google.gwt.safehtml.shared.SafeHtml getValue ( ) { return org.ovirt.engine.ui.common.widget.table.resize.ResizableHeader.TEMPLATE.templatedContent ( style.cellTableHeaderContent ( ) , text ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.Label , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.configure.labels.list.ClusterAffinityLabelListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.cluster.SubTabClusterAffinityLabelPresenter.constants.affinityLabelsSubTabLabel ( ) , 9 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.Label , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.configure.labels.list.ClusterAffinityLabelListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.cluster.SubTabClusterAffinityLabelPresenter.constants.affinityLabelsSubTabLabel ( ) , 7 , modelProvider ) ; }
Source:
public static java.util.List < org.ovirt.engine.core.aaa.DirectoryGroup > findGroupsByQuery ( final org.ovirt.engine.core.extensions.mgr.ExtensionProxy extension , final java.lang.String query ) { return org.ovirt.engine.core.aaa.AuthzUtils.queryGroups ( extension , org.ovirt.engine.core.aaa.SearchQueryParsingUtils.generateQueryMap ( query , Authz.QueryEntity.GROUP ) ) ; }

Target:
public static java.util.List < org.ovirt.engine.core.aaa.DirectoryGroup > findGroupsByQuery ( final org.ovirt.engine.core.extensions.mgr.ExtensionProxy extension , final java.lang.String namespace , final java.lang.String query ) { return org.ovirt.engine.core.aaa.AuthzUtils.queryGroups ( extension , namespace , org.ovirt.engine.core.aaa.SearchQueryParsingUtils.generateQueryMap ( query , Authz.QueryEntity.GROUP ) ) ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterModel object ) { org.ovirt.engine.ui.webadmin.section.main.view.popup.datacenter.DataCenterPopupView.Driver.driver.edit ( object ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterModel object ) { driver.edit ( object ) ; }
Source:
private void refreshCachedVds ( ) { cachedVds = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDao ( ) . get ( getVdsId ( ) ) ; setMonitoringNeeded ( ) ; }

Target:
private void refreshCachedVds ( ) { cachedVds = dbFacade.getVdsDao ( ) . get ( getVdsId ( ) ) ; setMonitoringNeeded ( ) ; }
Source:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( ) { return getMainModel ( ) . getGuideCommand ( ) ; }

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 ) { updateReportsAvailability ( ) ; }
Source:
org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeSnapshotConfigReturnForXmlRpc glusterVolumeSnapshotConfigGet ( org.ovirt.engine.core.compat.Guid clusterId , java.lang.String volumeName ) ;

Target:
org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeSnapshotConfigReturnForXmlRpc glusterSnapshotConfigList ( org.ovirt.engine.core.compat.Guid clusterId ) ;
Source:
public org.ovirt.engine.core.common.users.VdcUser getLoggedInUser ( ) { return loggedInUser ; }

Target:
public org.ovirt.engine.core.common.businessentities.DbUser getLoggedInUser ( ) { return loggedInUser ; }
Source:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( ) { return getMainModel ( ) . getGuideCommand ( ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { updateReportsAvailability ( constants ) ; }
Source:
public void canDoActionFailsUnsupportedExportFormat ( ) { sd.setStorageDomainType ( StorageDomainType.ImportExport ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAIN_FORMAT_ILLEGAL_HOST ) ; }

Target:
public void canDoActionFailsUnsupportedExportFormat ( ) { sd.setStorageDomainType ( StorageDomainType.ImportExport ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_STORAGE_DOMAIN_FORMAT_ILLEGAL_HOST ) ; }
Source:
public org.ovirt.engine.api.model.Disks list ( ) { return mapCollection ( getBackendCollection ( SearchType.Disk ) ) ; }

Target:
public org.ovirt.engine.api.model.Disks list ( ) { if ( isFiltered ( ) ) { return mapCollection ( getBackendCollection ( VdcQueryType.GetAllDisks , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ) ; } else { return mapCollection ( getBackendCollection ( SearchType.Disk ) ) ; } }
Source:
protected void RemoveVmFromDb ( ) { removeLunDisks ( ) ; org.ovirt.engine.core.bll.RemoveVmCommand.RemoveVmUsers ( ) ; org.ovirt.engine.core.bll.RemoveVmCommand.RemoveVmNetwork ( ) ; new org.ovirt.engine.core.bll.snapshots.SnapshotsManager ( ) . removeSnapshots ( org.ovirt.engine.core.bll.RemoveVmCommand.getVmId ( ) ) ; org.ovirt.engine.core.bll.RemoveVmCommand.RemoveVmStatic ( ) ; }

Target:
protected void removeVmFromDb ( ) { removeLunDisks ( ) ; org.ovirt.engine.core.bll.RemoveVmCommand.removeVmUsers ( ) ; org.ovirt.engine.core.bll.RemoveVmCommand.removeVmNetwork ( ) ; new org.ovirt.engine.core.bll.snapshots.SnapshotsManager ( ) . removeSnapshots ( org.ovirt.engine.core.bll.RemoveVmCommand.getVmId ( ) ) ; org.ovirt.engine.core.bll.RemoveVmCommand.removeVmStatic ( ) ; }
Source:
protected void executeVdsBrokerCommand ( ) { hostDevListReturn = org.ovirt.engine.core.vdsbroker.HostDevListByCapsVDSCommand.getBroker ( ) . hostDevListByCaps ( ) ; org.ovirt.engine.core.vdsbroker.HostDevListByCapsVDSCommand.proceedProxyReturnValue ( ) ; java.util.List < org.ovirt.engine.core.common.businessentities.HostDevice > devices = org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.buildHostDevices ( hostDevListReturn.devices ) ; attachHostIdToDevices ( devices ) ; setReturnValue ( devices ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { hostDevListReturn = org.ovirt.engine.core.vdsbroker.HostDevListByCapsVDSCommand.getBroker ( ) . hostDevListByCaps ( ) ; org.ovirt.engine.core.vdsbroker.HostDevListByCapsVDSCommand.proceedProxyReturnValue ( ) ; java.util.List < org.ovirt.engine.core.common.businessentities.HostDevice > devices = vdsBrokerObjectsBuilder.buildHostDevices ( hostDevListReturn.devices ) ; attachHostIdToDevices ( devices ) ; setReturnValue ( devices ) ; }
Source:
public org.ovirt.engine.core.bll.tasks.interfaces.CommandCallBack getCallBack ( ) { return org.ovirt.engine.core.bll.RemoveSnapshotCommand.getVm ( ) . isQualifiedForLiveSnapshotMerge ( ) ? new org.ovirt.engine.core.bll.RemoveSnapshotCommandCallback ( ) : null ; }

Target:
public org.ovirt.engine.core.bll.tasks.interfaces.CommandCallback getCallback ( ) { return org.ovirt.engine.core.bll.RemoveSnapshotCommand.getVm ( ) . isQualifiedForLiveSnapshotMerge ( ) ? new org.ovirt.engine.core.bll.RemoveSnapshotCommandCallback ( ) : null ; }
Source:
public void setis_initialized ( boolean value ) { this . mVmStatic.setis_initialized ( value ) ; }

Target:
public boolean isAutoSuspend ( ) { return this . vmStatic.getis_auto_suspend ( ) ; }
Source:
private boolean isNextRunRequested ( ) { return org.ovirt.engine.api.common.util.QueryHelper.getMatrixConstraints ( getUriInfo ( ) , org.ovirt.engine.api.restapi.resource.BackendVmResource.NEXT_RUN ) . containsKey ( org.ovirt.engine.api.restapi.resource.BackendVmResource.NEXT_RUN ) ; }

Target:
private boolean isNextRunRequested ( ) { return org.ovirt.engine.api.common.util.QueryHelper.getBooleanMatrixParameter ( uriInfo , org.ovirt.engine.api.restapi.resource.BackendVmResource.NEXT_RUN , true , false ) ; }
Source:
private void RemoveVdsFromCollection ( ) { org.ovirt.engine.core.bll.RemoveVdsCommand.getBackend ( ) . getResourceManager ( ) . RunVdsCommand ( VDSCommandType.RemoveVds , new org.ovirt.engine.core.common.vdscommands.RemoveVdsVDSCommandParameters ( org.ovirt.engine.core.bll.RemoveVdsCommand.getVdsId ( ) ) ) ; }

Target:
private void RemoveVdsFromCollection ( ) { runVdsCommand ( VDSCommandType.RemoveVds , new org.ovirt.engine.core.common.vdscommands.RemoveVdsVDSCommandParameters ( org.ovirt.engine.core.bll.RemoveVdsCommand.getVdsId ( ) ) ) ; }
Source:
private void updateAuditLogFailedToUpdateVM ( java.lang.String vmName ) { org.ovirt.engine.core.bll.storage.disk.image.ExtendImageSizeCommand.addCustomValue ( "VmName" , vmName ) ; auditLogDirector.log ( this , AuditLogType.USER_EXTEND_DISK_SIZE_UPDATE_VM_FAILURE ) ; }

Target:
private void updateAuditLogFailedToUpdateHost ( java.lang.String vdsName ) { org.ovirt.engine.core.bll.storage.disk.image.ExtendImageSizeCommand.addCustomValue ( "VdsName" , vdsName ) ; auditLogDirector.log ( this , AuditLogType.USER_EXTEND_DISK_SIZE_UPDATE_HOST_FAILURE ) ; }
Source:
protected void ActiveDetailModelChanged ( ) { super . ActiveDetailModelChanged ( ) ; }

Target:
protected void activeDetailModelChanged ( ) { super . activeDetailModelChanged ( ) ; }
Source:
public void addColumnWithHtmlHeader ( com.google.gwt.user.cellview.client.Column < T , ? > column , java.lang.String headerHtml ) { addColumn ( column , getHeader ( column , headerHtml , true ) ) ; }

Target:
public void addColumnWithHtmlHeader ( com.google.gwt.user.cellview.client.Column < T , ? > column , java.lang.String headerHtml ) { table.addColumnWithHtmlHeader ( column , headerHtml ) ; tableHeader.addColumnWithHtmlHeader ( column , headerHtml ) ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { stopProgress ( result.getState ( ) ) ; cancel ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { stopProgress ( result.getState ( ) ) ; cancel ( ) ; }
Source:
public boolean isLocked ( ) { return ( ( this ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Locked ) ) || ( ( this ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.MovingToMaintenance ) ) ; }

Target:
public boolean isStorageDomainInProcess ( ) { return ( ( ( this ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Locked ) ) || ( ( this ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.PreparingForMaintenance ) ) ) || ( ( this ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Detaching ) ) ; }
Source:
protected void updateModel ( org.ovirt.engine.ui.uicommonweb.models.vms.IVnc vnc , boolean value ) { vnc.setRemapCtrlAltDelete ( value ) ; }

Target:
protected void updateModel ( org.ovirt.engine.ui.uicommonweb.models.vms.ISpice spice , boolean value ) { spice.getOptions ( ) . setRemapCtrlAltDelete ( value ) ; }
Source:
public void setUpContainer ( ) { container = org.mockito.Mockito.spy ( org.ovirt.engine.core.bll.session.SessionDataContainer.getInstance ( ) ) ; clearSession ( ) ; }

Target:
public void setUpContainer ( ) { container = org.mockito.Mockito.spy ( org.ovirt.engine.core.bll.aaa.SessionDataContainer.getInstance ( ) ) ; clearSession ( ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult requiredValuesPresent ( ) { if ( ( getQos ( ) . getCpuLimit ( ) ) == null ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_QOS_MISSING_VALUES ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult requiredValuesPresent ( ) { if ( ( getQos ( ) . getCpuLimit ( ) ) == null ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_QOS_MISSING_VALUES ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
public void checkMissingBootProtocol ( ) { initIpConfigurationWithPrimaryAddress ( ) ; org.junit.Assert.assertThat ( underTest.validateNetworkAttachmentIpConfiguration ( networkAttachments ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.NETWORK_ATTACHMENT_IP_CONFIGURATION_MISSING_BOOT_PROTOCOL , org.ovirt.engine.core.utils.ReplacementUtils.createSetVariableString ( NetworkAttachmentIpConfigurationValidator.VAR_NETWORK_NAME , org.ovirt.engine.core.bll.validator.network.NetworkAttachmentIpConfigurationValidatorTest.NETWORK_NAME ) , org.ovirt.engine.core.utils.ReplacementUtils.createSetVariableString ( NetworkAttachmentIpConfigurationValidator.VAR_INTERFACE_NAME , org.ovirt.engine.core.bll.validator.network.NetworkAttachmentIpConfigurationValidatorTest.INTERFACE_NAME ) ) ) ; }

Target:
public void checkMissingPrimaryIpv4Address ( ) { initIpConfiguration ( ) ; initIpv6ConfigurationDetails ( Ipv6BootProtocol.AUTOCONF , false , false ) ; org.junit.Assert.assertThat ( underTest.validateNetworkAttachmentIpConfiguration ( networkAttachments ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void setSelectedItem ( java.lang.Object value ) { super . setSelectedItem ( value ) ; updateLinkChangability ( ) ; }

Target:
public void setSelectedItem ( org.ovirt.engine.core.common.businessentities.network.VnicProfileView value ) { super . setSelectedItem ( value ) ; updateLinkChangability ( ) ; }
Source:
public void setVersion ( java.lang.String text ) { versionLabel.setText ( text ) ; }

Target:
public void setVersion ( java.lang.String text ) { versionLabel.setText ( dynamicMessages.ovirtVersionAbout ( text ) ) ; }
Source:
private void initIpConfigurationDetails ( org.ovirt.engine.core.common.businessentities.network.Ipv4BootProtocol ipv4BootProtocol , boolean initAddress , boolean initNetmask ) { initIpConfigurationWithBootProtocol ( ipv4BootProtocol ) ; if ( initAddress ) { initIpConfigurationAddress ( ) ; } if ( initNetmask ) { initIpConfigurationNetmask ( ) ; } }

Target:
private void initIpv4ConfigurationDetails ( org.ovirt.engine.core.common.businessentities.network.Ipv4BootProtocol ipv4BootProtocol , boolean initAddress , boolean initNetmask ) { initIpv4ConfigurationWithBootProtocol ( ipv4BootProtocol ) ; if ( initAddress ) { initIpv4ConfigurationAddress ( ) ; } if ( initNetmask ) { initIpv4ConfigurationNetmask ( ) ; } }
Source:
public org.ovirt.engine.core.common.queries.VdcQueryReturnValue RunAutoQuery ( org.ovirt.engine.core.common.queries.VdcQueryType actionType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters ) { org.ovirt.engine.core.common.queries.VdcQueryReturnValue returnValue = org.ovirt.engine.ui.genericapi.GenericApiService.backend.RunAutoQuery ( actionType , parameters ) ; return returnValue ; }

Target:
public org.ovirt.engine.core.common.queries.VdcQueryReturnValue RunAutoQuery ( org.ovirt.engine.core.common.queries.VdcQueryType actionType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters ) { org.ovirt.engine.core.common.queries.VdcQueryReturnValue returnValue = backend.RunAutoQuery ( actionType , parameters ) ; return returnValue ; }
Source:
private void Cluster_SelectedItemChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { behavior.Cluster_SelectedItemChanged ( ) ; UpdateMaximalVmMemSize ( ) ; }

Target:
private void frontend_QueryComplete ( ) { ( queryCounter ) -- ; if ( ( queryCounter ) == 0 ) { stopProgress ( ) ; } }
Source:
public boolean getIsAvailable ( ) { return getModel ( ) . getHasDomain ( ) ; }

Target:
public boolean showDefaultValue ( ) { java.lang.String quotaName = getModel ( ) . getQuotaName ( ) ; return ( quotaName == null ) || ( "" . equals ( quotaName ) ) ; }
Source:
public void cleaningCompensationDataAfterSuccess ( ) { macsToReleaseOnCommit.forEach ( macPool :: freeMac ) ; }

Target:
public void cleaningCompensationDataAfterSuccess ( ) { log.debug ( ( "Command successfully executed, releasing macs: {}" + ( macsToReleaseOnCommit ) ) ) ; macPool.freeMacs ( macsToReleaseOnCommit ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotEnabledNotSetPolicyNotSetUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; org.ovirt.engine.core.common.businessentities.UsbPolicy currentPolicy = org.ovirt.engine.core.common.businessentities.UsbPolicy.DISABLED ; org.junit.Assert.assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , currentPolicy ) , currentPolicy ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledNotSetPolicyNotSetUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; org.ovirt.engine.core.common.businessentities.UsbPolicy currentPolicy = org.ovirt.engine.core.common.businessentities.UsbPolicy.ENABLED_NATIVE ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , currentPolicy ) , currentPolicy ) ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml imageContainer ( java.lang.String style , com.google.gwt.safehtml.shared.SafeHtml imageHtml ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml imageContainerWithStyleClass ( java.lang.String style , java.lang.String styleClass , com.google.gwt.safehtml.shared.SafeHtml imageHtml ) ;
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? source : new java.util.HashMap < org.ovirt.engine.core.common.businessentities.VmTemplate , java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.DiskImage > > ( ) ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? source : new java.util.HashMap < org.ovirt.engine.core.common.businessentities.VmTemplate , java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.DiskImage > > ( ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.Quota > searchQuota ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Quota > quotaList = genericSearch ( org.ovirt.engine.core.bll.SearchQuery.getDbFacade ( ) . getQuotaDao ( ) , true ) ; getQuotaManager ( ) . updateUsage ( quotaList ) ; return quotaList ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > searchAuditLogEvents ( ) { return genericSearch ( auditLogDao , false ) ; }
Source:
public void testAddGroupWithExplicitDirectoryName ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( ( ( ( "ADGROUP@" + ( DOMAIN ) ) + ": allnames=" ) + ( NAMES [ 0 ] ) ) , SearchType.DirectoryGroup , getDirectoryGroup ( 0 ) ) ; setUpCreationExpectations ( VdcActionType.AddGroup , org.ovirt.engine.core.common.action.DirectoryIdParameters.class , new java.lang.String [ ] { "Directory" , "Id" } , new java.lang.Object [ ] { DOMAIN , EXTERNAL_IDS [ 0 ] } , true , true , GUIDS [ 0 ] , VdcQueryType.GetDbGroupById , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , getEntity ( 0 ) ) ; org.ovirt.engine.api.model.Domain domain = new org.ovirt.engine.api.model.Domain ( ) ; domain.setName ( org.ovirt.engine.api.restapi.resource.DOMAIN ) ; org.ovirt.engine.api.model.Group model = new org.ovirt.engine.api.model.Group ( ) ; model.setName ( NAMES [ 0 ] ) ; model.setDomain ( domain ) ; javax.ws.rs.core.Response response = collection.add ( model ) ; assertEquals ( 201 , response.getStatus ( ) ) ; assertTrue ( ( ( response.getEntity ( ) ) instanceof org.ovirt.engine.api.model.Group ) ) ; verifyModel ( ( ( org.ovirt.engine.api.model.Group ) ( response.getEntity ( ) ) ) , 0 ) ; }

Target:
public void testAddGroupWithExplicitDirectoryName ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( ( ( ( "ADGROUP@" + ( DOMAIN ) ) + ": allnames=" ) + ( NAMES [ 0 ] ) ) , SearchType.DirectoryGroup , getDirectoryGroup ( 0 ) ) ; setUpCreationExpectations ( VdcActionType.AddGroup , org.ovirt.engine.core.common.action.AddGroupParameters.class , new java.lang.String [ ] { "GroupToAdd" } , new java.lang.Object [ ] { new org.ovirt.engine.core.common.businessentities.DbGroup ( getDirectoryGroup ( 0 ) ) } , true , true , GUIDS [ 0 ] , VdcQueryType.GetDbGroupById , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , getEntity ( 0 ) ) ; org.ovirt.engine.api.model.Domain domain = new org.ovirt.engine.api.model.Domain ( ) ; domain.setName ( org.ovirt.engine.api.restapi.resource.DOMAIN ) ; org.ovirt.engine.api.model.Group model = new org.ovirt.engine.api.model.Group ( ) ; model.setName ( NAMES [ 0 ] ) ; model.setDomain ( domain ) ; javax.ws.rs.core.Response response = collection.add ( model ) ; assertEquals ( 201 , response.getStatus ( ) ) ; assertTrue ( ( ( response.getEntity ( ) ) instanceof org.ovirt.engine.api.model.Group ) ) ; verifyModel ( ( ( org.ovirt.engine.api.model.Group ) ( response.getEntity ( ) ) ) , 0 ) ; }
Source:
public boolean getAutoStart ( ) { return org.ovirt.engine.core.bll.RunVmCommandBase.getVm ( ) . isAutoStartup ( ) ; }

Target:
private void decreasePendingVm ( ) { decreasePendingVm ( org.ovirt.engine.core.bll.RunVmCommandBase.getVm ( ) . getStaticData ( ) ) ; }
Source:
protected void entityPropertyChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . entityPropertyChanged ( sender , e ) ; if ( e.PropertyName.equals ( "status" ) ) { updateActionAvailability ( ) ; } }

Target:
public boolean canConnect ( ) { if ( ! ( canBeSelected ( ) ) ) { return false ; } return getForceVmStatusUp ( ) ? ( getEntity ( ) . getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.Up ) : isVmRunning ( ) ; }
Source:
protected void AsyncSearch ( ) { super . AsyncSearch ( ) ; setAsyncResult ( org.ovirt.engine.ui.frontend.Frontend.RegisterSearch ( getSearchString ( ) , SearchType.VmTemplate , getSearchPageSize ( ) ) ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }

Target:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; setAsyncResult ( org.ovirt.engine.ui.frontend.Frontend.RegisterSearch ( getSearchString ( ) , SearchType.VmTemplate , getSearchPageSize ( ) ) ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }
Source:
public void getTagIdAndChildrenNamesAsList ( java.util.HashSet < java.lang.String > tagIds ) { tagIds.add ( gettag_name ( ) ) ; for ( org.ovirt.engine.core.common.businessentities.tags tag : _children ) { tag.getTagIdAndChildrenNamesAsList ( tagIds ) ; } }

Target:
public void getTagIdAndChildrenNamesAsList ( java.util.HashSet < java.lang.String > tagIds ) { tagIds.add ( gettag_name ( ) ) ; for ( org.ovirt.engine.core.common.businessentities.Tags tag : _children ) { tag.getTagIdAndChildrenNamesAsList ( tagIds ) ; } }
Source:
org.ovirt.engine.core.dao.InterfaceDAO getInterfaceDAO ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getInterfaceDAO ( ) ; }

Target:
private org.ovirt.engine.core.dao.NetworkDAO getNetworkDAO ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getNetworkDAO ( ) ; }
Source:
public void setBootSequence ( org.ovirt.engine.ui.uicommonweb.models.vms.BootSequenceModel value ) { if ( ( bootSequence ) != value ) { bootSequence = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "BootSequence" ) ) ; } }

Target:
public void setBootSequence ( org.ovirt.engine.ui.uicommonweb.models.vms.BootSequenceModel value ) { if ( ( bootSequence ) != value ) { bootSequence = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "BootSequence" ) ) ; } }