auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private java.util.concurrent.locks.Condition getDecreseCondition ( org.ovirt.engine.core.compat.Guid vdsId ) { return getMonitor ( vdsId ) . getDecreasedMemoryCondition ( ) ; }

Target:
private java.util.concurrent.BlockingQueue < java.lang.Boolean > getBlockingQueue ( org.ovirt.engine.core.compat.Guid vdsId ) { return getMonitor ( vdsId ) . getQueue ( ) ; }
Source:
private org.ovirt.engine.api.model.RSDL addSystemVersion ( org.ovirt.engine.api.model.RSDL rsdl ) { rsdl.setVersion ( org.ovirt.engine.api.restapi.util.VersionHelper.parseVersion ( getConfigurationValueDefault ( java.lang.String.class , ConfigurationValues.VdcVersion ) ) ) ; return rsdl ; }

Target:
private org.ovirt.engine.api.model.RSDL addSystemVersion ( org.ovirt.engine.api.model.RSDL rsdl ) { rsdl.setVersion ( getVersion ( ) ) ; return rsdl ; }
Source:
public void setError ( java.lang.String msg ) { getInfoMessage ( ) . setIsValid ( false ) ; getInfoMessage ( ) . setEntity ( msg ) ; }

Target:
public void clearProblem ( ) { getProblemDescription ( ) . setIsValid ( true ) ; getProblemDescription ( ) . setEntity ( null ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult networkNotUsedByTemplates ( ) { return networkNotUsed ( getTemplates ( ) , EngineMessage.VAR__ENTITIES__VM_TEMPLATES , EngineMessage.VAR__ENTITIES__VM_TEMPLATE ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult networkNotUsedByTemplates ( ) { return new org.ovirt.engine.core.bll.validator.NetworkValidator.PluralMessages ( org.ovirt.engine.core.common.errors.EngineMessage.VAR__ENTITIES__VM_TEMPLATE , org.ovirt.engine.core.common.errors.EngineMessage.VAR__ENTITIES__VM_TEMPLATES ) . getNetworkInUse ( getEntitiesNames ( getTemplates ( ) ) ) ; }
Source:
public void test3 ( ) throws java.lang.Exception { java.lang.String password = "password" ; org.junit.Assert.assertNotEquals ( org.ovirt.engine.core.uutils.crypto.EnvelopePBE.encode ( "PBKDF2WithHmacSHA1" , 256 , 4000 , null , password ) , org.ovirt.engine.core.uutils.crypto.EnvelopePBE.encode ( "PBKDF2WithHmacSHA1" , 256 , 4000 , null , password ) ) ; }

Target:
public void test3 ( ) throws java.lang.Exception { java.lang.String password = "password" ; org.junit.jupiter.api.Assertions.assertNotEquals ( org.ovirt.engine.core.uutils.crypto.EnvelopePBE.encode ( "PBKDF2WithHmacSHA1" , 256 , 4000 , null , password ) , org.ovirt.engine.core.uutils.crypto.EnvelopePBE.encode ( "PBKDF2WithHmacSHA1" , 256 , 4000 , null , password ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult nameAvailable ( ) { return ( getProviderDao ( ) . getByName ( provider.getName ( ) ) ) == null ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.ACTION_TYPE_FAILED_NAME_ALREADY_USED ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult nameAvailable ( ) { return ( getProviderDao ( ) . getByName ( provider.getName ( ) ) ) == null ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_NAME_ALREADY_USED ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.OriginType getOrigin ( ) { return vmStatic.getorigin ( ) ; }

Target:
public int getPriority ( ) { return vmStatic.getPriority ( ) ; }
Source:
public void validateSuccessNumOfVfsNotChanged ( ) { org.mockito.Mockito.doReturn ( false ) . when ( command ) . wasNumOfVfsChanged ( ) ; allVfsAreFree ( false ) ; numOfVfsInValidRange ( false ) ; assertValidateSuccess ( ) ; }

Target:
public void validateSuccessNumOfVfsNotChanged ( ) { org.mockito.Mockito.doReturn ( false ) . when ( command ) . wasNumOfVfsChanged ( ) ; allVfsAreFree ( false ) ; numOfVfsInValidRange ( false ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( command ) ; }
Source:
private boolean vmNetworkNonVlan ( org.ovirt.engine.core.common.businessentities.network.Network network ) { return ( network.isVmNetwork ( ) ) && ( ( network.getVlanId ( ) ) == null ) ; }

Target:
private boolean vmNetworkNonVlan ( org.ovirt.engine.core.common.businessentities.network.Network network ) { return ( network.isVmNetwork ( ) ) && ( ! ( org.ovirt.engine.core.utils.NetworkUtils.isVlan ( network ) ) ) ; }
Source:
void initRadioButtonEditors ( ) { displayConsoleVncEditor = new org.ovirt.engine.ui.common.widget.editor.EntityModelRadioButtonEditor ( "1" ) ; displayConsoleSpiceEditor = new org.ovirt.engine.ui.common.widget.editor.EntityModelRadioButtonEditor ( "1" ) ; }

Target:
void initRadioButtonEditors ( ) { displayConsoleVncEditor = new org.ovirt.engine.ui.common.widget.editor.EntityModelRadioButtonEditor ( "1" ) ; displayConsoleSpiceEditor = new org.ovirt.engine.ui.common.widget.editor.EntityModelRadioButtonEditor ( "1" ) ; specificHost = new com.google.gwt.user.client.ui.RadioButton ( "runVmOnHostGroup" ) ; isAutoAssignEditor = new org.ovirt.engine.ui.common.widget.editor.EntityModelRadioButtonEditor ( "runVmOnHostGroup" ) ; }
Source:
public java.lang.String getNetmask ( ) { if ( primaryAddressNotSet ( ) ) { return null ; } return getIpConfiguration ( ) . getPrimaryAddress ( ) . getNetmask ( ) ; }

Target:
public java.lang.String getIpv4Netmask ( ) { if ( primaryIpv4AddressNotSet ( ) ) { return null ; } return getIpConfiguration ( ) . getIpv4PrimaryAddress ( ) . getNetmask ( ) ; }
Source:
public void setvmt_creation_date ( java.util.Date value ) { this . vmt_creation_dateField = value ; }

Target:
public void setVmtDescription ( java.lang.String value ) { this . vmtDescription = value ; }
Source:
public long getUploadSize ( ) { return uploadSize ; }

Target:
public long getTransferSize ( ) { return transferSize ; }
Source:
public void testGetAllForUserGroupWithInvalidUserGroup ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Tags > result = dao.getAllForUserGroups ( org.ovirt.engine.core.compat.Guid.newGuid ( ) . toString ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForUserGroupWithInvalidUserGroup ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Tags > result = dao.getAllForUserGroups ( org.ovirt.engine.core.compat.Guid.newGuid ( ) . toString ( ) ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertTrue ( result.isEmpty ( ) ) ; }
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:
protected void updateReportsAvailability ( ) { if ( ( org.ovirt.engine.ui.common.uicommon.model.CommonModelManager.instance ( ) ) != null ) { org.ovirt.engine.ui.common.uicommon.model.CommonModelManager.instance ( ) . updateReportsAvailability ( ) ; } }
Source:
public org.ovirt.engine.core.bll.ValidationResult networkNotChanged ( ) { if ( org.apache.commons.lang.ObjectUtils.equals ( vnicProfile.getNetworkId ( ) , getOldVnicProfile ( ) . getNetworkId ( ) ) ) { return org.ovirt.engine.core.bll.ValidationResult.VALID ; } return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_CANNOT_CHANGE_VNIC_PROFILE_NETWORK ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult networkNotChanged ( ) { if ( java.util.Objects.equals ( vnicProfile.getNetworkId ( ) , getOldVnicProfile ( ) . getNetworkId ( ) ) ) { return org.ovirt.engine.core.bll.ValidationResult.VALID ; } return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_CANNOT_CHANGE_VNIC_PROFILE_NETWORK ) ; }
Source:
public void testCanDoActionDuplicateTemplateName ( ) { org.mockito.Mockito.doReturn ( true ) . when ( cmd ) . isVmTemlateWithSameNameExist ( "templateName" , spId ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , VdcBllMessages.ACTION_TYPE_FAILED_NAME_ALREADY_USED ) ; }

Target:
public void testCanDoActionDuplicateTemplateName ( ) { org.mockito.Mockito.doReturn ( true ) . when ( cmd ) . isVmTemlateWithSameNameExist ( "templateName" , spId ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_NAME_ALREADY_USED ) ; }
Source:
public long getaudit_log_id ( ) { return this . auditLogId ; }

Target:
public long getAuditLogId ( ) { return auditLogId ; }
Source:
public org.ovirt.engine.core.compat.Guid getVdsGroupId ( ) { return this . vmStatic.getvds_group_id ( ) ; }

Target:
public void setVdsGroupId ( org.ovirt.engine.core.compat.Guid value ) { this . vmStatic.setVdsGroupId ( value ) ; }
Source:
public void executeCommandWhenFailed ( ) { setVolumeId ( volumeId2 ) ; mockBackend ( false , EngineError.GlusterVolumeRemoveBricksStartFailed ) ; org.junit.Assert.assertTrue ( cmd.validate ( ) ) ; cmd.executeCommand ( ) ; org.junit.Assert.assertEquals ( AuditLogType.START_REMOVING_GLUSTER_VOLUME_BRICKS_FAILED , cmd.getAuditLogTypeValue ( ) ) ; }

Target:
public void executeCommandWhenFailed ( ) { setVolumeId ( volumeId2 ) ; mockBackend ( false , EngineError.GlusterVolumeRemoveBricksStartFailed ) ; org.junit.jupiter.api.Assertions.assertTrue ( cmd.validate ( ) ) ; cmd.executeCommand ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( AuditLogType.START_REMOVING_GLUSTER_VOLUME_BRICKS_FAILED , cmd.getAuditLogTypeValue ( ) ) ; }
Source:
protected void printLog ( org.slf4j.Logger logger , java.lang.String connectionField , java.lang.String errorCode ) { java.lang.String translatedError = getTranslatedStorageError ( errorCode ) ; logger.error ( "The connection with details '{}' failed because of error code '{}' and error message is: {}" , connectionField , errorCode , org.ovirt.engine.core.bll.Backend.getInstance ( ) . getVdsErrorsTranslator ( ) . TranslateErrorTextSingle ( translatedError ) ) ; }

Target:
protected void printLog ( org.slf4j.Logger logger , java.lang.String connectionField , java.lang.String errorCode ) { java.lang.String translatedError = getTranslatedStorageError ( errorCode ) ; logger.error ( "The connection with details '{}' failed because of error code '{}' and error message is: {}" , connectionField , errorCode , org.ovirt.engine.core.bll.Backend.getInstance ( ) . getVdsErrorsTranslator ( ) . translateErrorTextSingle ( translatedError ) ) ; }
Source:
protected org.ovirt.engine.core.bll.CommandBase < ? extends org.ovirt.engine.core.common.action.HostJobCommandParameters > getCommand ( org.ovirt.engine.core.compat.Guid cmdId ) { return org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.retrieveCommand ( cmdId ) ; }

Target:
protected org.ovirt.engine.core.bll.CommandBase < ? extends org.ovirt.engine.core.common.action.HostJobCommandParameters > getCommand ( org.ovirt.engine.core.compat.Guid cmdId ) { return commandCoordinatorUtil.retrieveCommand ( cmdId ) ; }
Source:
static java.lang.String getResourceBundleName ( ) { return "bundles/AuditLogMessages" ; }

Target:
private static java.util.ResourceBundle readMessagesFromBundle ( ) { try { return java.util.ResourceBundle.getBundle ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.APP_ERRORS_MESSAGES_FILE_NAME ) ; } catch ( java.util.MissingResourceException e ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log.error ( "Could not load audit log messages from the file '{}'" , org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.APP_ERRORS_MESSAGES_FILE_NAME ) ; throw e ; } }
Source:
protected boolean checkStoragePool ( ) { if ( ( org.ovirt.engine.core.bll.storage.StorageHandlingCommandBase.getStoragePool ( ) ) == null ) { addCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_POOL_NOT_EXIST ) ; return false ; } return true ; }

Target:
protected boolean checkStoragePool ( ) { if ( ( org.ovirt.engine.core.bll.storage.StorageHandlingCommandBase.getStoragePool ( ) ) == null ) { addCanDoActionMessage ( EngineMessage.ACTION_TYPE_FAILED_STORAGE_POOL_NOT_EXIST ) ; return false ; } return true ; }
Source:
public void PostUpdateDefaultTimeZone ( ) { updateTimeZone ( cachedDefaultTimeZoneKey ) ; }

Target:
public void postUpdateDefaultTimeZone ( ) { updateTimeZone ( cachedDefaultTimeZoneKey ) ; }
Source:
public void testGetWithInvalidId ( ) { org.ovirt.engine.core.common.businessentities.EngineSession result = dao.getBySessionId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) . toString ( ) ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetWithInvalidId ( ) { org.ovirt.engine.core.common.businessentities.EngineSession result = dao.getBySessionId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) . toString ( ) ) ; org.junit.jupiter.api.Assertions.assertNull ( result ) ; }
Source:
private void endDiskRelatedActions ( org.ovirt.engine.core.common.businessentities.VM vm ) { org.ovirt.engine.core.bll.VmHandler.updateDisksFromDb ( vm ) ; org.ovirt.engine.core.bll.utils.VmDeviceUtils.setVmDevices ( vm.getStaticData ( ) ) ; }

Target:
private void populateVmData ( org.ovirt.engine.core.common.businessentities.VM vm ) { org.ovirt.engine.core.bll.VmHandler.updateDisksFromDb ( vm ) ; org.ovirt.engine.core.bll.utils.VmDeviceUtils.setVmDevices ( vm.getStaticData ( ) ) ; }
Source:
public void testValidModifiedBonds_failsWhenReferencingExistingNonBondInterface ( ) 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 , new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.NETWORK_INTERFACE_IS_NOT_BOND ) , VdcBllMessages.NETWORK_INTERFACE_IS_NOT_BOND , false , false ) ; }

Target:
public void testValidModifiedBondsFailsWhenReferencingExistingNonBondInterface ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Bond bond = createBond ( ) ; doTestValidModifiedBonds ( bond , ValidationResult.VALID , new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.NETWORK_INTERFACE_IS_NOT_BOND ) , new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.NETWORK_INTERFACE_IS_NOT_BOND ) , ValidationResult.VALID ) ; }
Source:
public void testGetByName ( ) { org.ovirt.engine.core.common.businessentities.DbGroup result = dao.getByName ( existingGroup.getName ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingGroup , result ) ; }

Target:
public void testGetByName ( ) { org.ovirt.engine.core.common.businessentities.aaa.DbGroup result = dao.getByName ( existingGroup.getName ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingGroup , result ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; usb.setType ( UsbType.NATIVE ) ; org.junit.Assert.assertEquals ( UsbPolicy.ENABLED_NATIVE , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE ) ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotEnabledNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; usb.setType ( UsbType.NATIVE ) ; org.junit.jupiter.api.Assertions.assertEquals ( UsbPolicy.ENABLED_NATIVE , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED ) ) ; }
Source:
public boolean CanRemoveVm ( org.ovirt.engine.core.compat.Guid vmId ) { return ! ( ( org.ovirt.engine.core.bll.RemoveVmCommand.IsVmRunning ( vmId ) ) || ( org.ovirt.engine.core.bll.RemoveVmCommand.IsVmInPool ( vmId ) ) ) ; }

Target:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__REMOVE ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__VM ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.Model setIsChangeable ( boolean value , java.lang.String reason ) { setIsChangeable ( value ) ; if ( ! value ) { setChangeProhibitionReason ( reason ) ; } return this ; }

Target:
public java.util.Map < java.lang.String , org.ovirt.engine.ui.uicommonweb.models.Model > getWindowProperties ( ) { java.util.Map < java.lang.String , org.ovirt.engine.ui.uicommonweb.models.Model > map = new java.util.HashMap < > ( ) ; map.put ( org.ovirt.engine.ui.uicommonweb.models.Model.PROP_WINDOW , getWindow ( ) ) ; return map ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > getVGList ( ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumesList ( java.lang.String volumeName ) ;
Source:
org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatusForXmlRpc glusterVolumeGeoRepStatus ( java.lang.String volumeName ) ;

Target:
org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatusDetailForXmlRpc glusterVolumeGeoRepSessionStatus ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName , java.lang.String userName ) ;
Source:
public com.google.gwt.view.client.HasData < org.ovirt.engine.core.common.businessentities.AuditLog > getEventDropdown ( ) { return ( ( com.google.gwt.view.client.HasData < org.ovirt.engine.core.common.businessentities.AuditLog > ) ( events.getContentWidget ( ) ) ) ; }

Target:
public com.google.gwt.view.client.HasData < org.ovirt.engine.core.common.businessentities.AuditLog > getEventDropdown ( ) { return eventsWidget ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.DiskImage diskImage = ( ( org.ovirt.engine.core.common.businessentities.DiskImage ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ) ) ; return diskImage.getId ( ) . toString ( ) ; }

Target:
protected java.lang.Long getRawValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage = ( ( org.ovirt.engine.core.common.businessentities.storage.DiskImage ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ) ) ; return diskImage.getSize ( ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > searchStorageDomain ( ) { return genericSearch ( org.ovirt.engine.core.bll.SearchQuery.getDbFacade ( ) . getStorageDomainDao ( ) , true ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > searchStorageDomain ( ) { return genericSearch ( storageDomainDao , true ) ; }
Source:
public org.ovirt.engine.core.common.queries.VdcQueryReturnValue runInternalQuery ( org.ovirt.engine.core.common.queries.VdcQueryType actionType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters , org.ovirt.engine.core.bll.context.EngineContext engineContext ) { return runQueryImpl ( actionType , parameters , false , engineContext ) ; }

Target:
public org.ovirt.engine.core.common.queries.VdcQueryReturnValue runInternalQuery ( org.ovirt.engine.core.common.queries.QueryType actionType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters , org.ovirt.engine.core.bll.context.EngineContext engineContext ) { return runQueryImpl ( actionType , parameters , false , engineContext ) ; }
Source:
public void testGetAllForVm ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Tags > result = dao.getAllForVm ( vm.getUuid ( ) . toString ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForTemplate ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Tags > result = dao.getAllForTemplate ( vm.getUuid ( ) . toString ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }
Source:
public org.ovirt.engine.core.common.osinfo.OsRepository getOsRepository ( ) { return org.ovirt.engine.core.common.utils.SimpleDependecyInjector.getInstance ( ) . get ( org.ovirt.engine.core.common.osinfo.OsRepository.class ) ; }

Target:
public org.ovirt.engine.core.common.osinfo.OsRepository getOsRepository ( ) { return org.ovirt.engine.core.common.utils.SimpleDependencyInjector.getInstance ( ) . get ( org.ovirt.engine.core.common.osinfo.OsRepository.class ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase RunAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { return runActionImpl ( actionType , parameters , false , null ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase runAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue = notAllowToRunAction ( actionType ) ; if ( returnValue != null ) { return returnValue ; } return runActionImpl ( actionType , parameters , false , null ) ; }
Source:
public void setId ( org.ovirt.engine.core.compat.Guid value ) { this . mVmStatic.setId ( value ) ; this . mVmDynamic.setId ( value ) ; this . mVmStatistics.setId ( value ) ; }

Target:
public void setId ( org.ovirt.engine.core.compat.Guid value ) { this . vmStatic.setId ( value ) ; this . vmDynamic.setId ( value ) ; this . vmStatistics.setId ( value ) ; }
Source:
public void testValidateNetworkExclusiveOnNicsVmNetworkMustBeSoleAttachedInterface2 ( ) throws java.lang.Exception { checkVmNetworkIsSoleAssignedInterface ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NETWORK_INTERFACES_NOT_EXCLUSIVELY_USED_BY_NETWORK ) , vmNetwork1 , nonVmNetwork1 ) ; }

Target:
public void testValidateNetworkExclusiveOnNicsVmAndNonVmAttachedToInterface ( ) throws java.lang.Exception { checkVmNetworkIsSoleAssignedInterface ( false , java.util.Arrays.asList ( NetworkType.VM , NetworkType.NON_VM ) , vmNetwork1 , nonVmNetwork1 ) ; }
Source:
private void verify ( java.lang.Boolean expected ) { for ( java.util.Map < org.ovirt.engine.core.compat.Guid , java.lang.Boolean > map1 : map.values ( ) ) { for ( java.lang.Boolean b : map1.values ( ) ) { org.junit.Assert.assertEquals ( expected , b ) ; } } }

Target:
private void verify ( ) { for ( java.util.Map < org.ovirt.engine.core.compat.Guid , java.lang.Boolean > map1 : map.values ( ) ) { for ( java.lang.Boolean b : map1.values ( ) ) { org.junit.Assert.assertTrue ( b ) ; } } }
Source:
private void logFailureToGetVms ( ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; logable.addCustomValue ( "URL" , org.ovirt.engine.core.bll.GetVmsFromExternalProviderQuery.getParameters ( ) . getUrl ( ) ) ; org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( logable , AuditLogType.IMPORTEXPORT_GET_EXTERNAL_VMS_INFO_FAILED ) ; }

Target:
private void logFailureToGetVms ( ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; logable.addCustomValue ( "URL" , org.ovirt.engine.core.bll.GetVmsFromExternalProviderQuery.getParameters ( ) . getUrl ( ) ) ; auditLogDirector.log ( logable , AuditLogType.IMPORTEXPORT_GET_EXTERNAL_VMS_INFO_FAILED ) ; }
Source:
public org.ovirt.engine.api.model.Users list ( ) { return mapDomainUserCollection ( getUsersFromDomain ( ) ) ; }

Target:
public org.ovirt.engine.api.restapi.resource.BackendDomainResource getParent ( ) { return parent ; }
Source:
public void setTaskParameters ( org.ovirt.engine.core.common.action.VdcActionParametersBase taskParameters ) { this . taskParameters = taskParameters ; }

Target:
public void setActionParameters ( org.ovirt.engine.core.common.action.VdcActionParametersBase value ) { this . actionParameters = value ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > ) ( source ) ) : null ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) . intValue ( ) : 1 ; }
Source:
protected void postExecute ( ) { }

Target:
public void addUnit ( org.ovirt.engine.core.bll.hostdeploy.VdsDeployUnit ... units ) { _units.addAll ( java.util.Arrays.asList ( units ) ) ; for ( org.ovirt.engine.core.bll.hostdeploy.VdsDeployUnit unit : units ) { unit.setVdsDeploy ( this ) ; } }
Source:
public void descriptorError ( java.lang.String message ) { org.ovirt.engine.ui.frontend.server.gwt.plugin.PluginDataManager.logger.warn ( ( ( ( "Validation error in [" + ( df.getAbsolutePath ( ) ) ) + "]: " ) + message ) ) ; }

Target:
public void descriptorError ( java.lang.String message ) { org.ovirt.engine.ui.frontend.server.gwt.plugin.PluginDataManager.log.warn ( "Validation error in '{}': {}" , df.getAbsolutePath ( ) , message ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.StorageDomainType getRawValue ( org.ovirt.engine.core.common.businessentities.StorageDomain object ) { return object.getstorage_domain_type ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.StorageDomainType getRawValue ( org.ovirt.engine.core.common.businessentities.StorageDomain object ) { return object.getStorageDomainType ( ) ; }
Source:
public void configure ( org.ovirt.engine.ui.uicommonweb.models.vms.ISpice spice ) { spice.getOptions ( ) . setAdminConsole ( getSpiceAdminConsole ( ) ) ; spice.getOptions ( ) . setUsbFilter ( getUsbFilter ( ) ) ; updateSpiceUsbAutoShare ( spice ) ; updateSpiceFullScreenDefault ( spice ) ; }

Target:
public void configure ( org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleClient spice ) { spice.getOptions ( ) . setAdminConsole ( getSpiceAdminConsole ( ) ) ; spice.getOptions ( ) . setUsbFilter ( getUsbFilter ( ) ) ; updateSpiceUsbAutoShare ( spice ) ; updateSpiceFullScreenDefault ( spice ) ; }
Source:
void addSelectionChangeListener ( org.ovirt.engine.core.compat.IEventListener itemSelectionChangeHandler ) { dataProvider.getModel ( ) . getSelectedItemChangedEvent ( ) . addListener ( itemSelectionChangeHandler ) ; dataProvider.getModel ( ) . getSelectedItemsChangedEvent ( ) . addListener ( itemSelectionChangeHandler ) ; }

Target:
void addSelectionChangeListener ( org.ovirt.engine.ui.uicompat.IEventListener itemSelectionChangeHandler ) { dataProvider.getModel ( ) . getSelectedItemChangedEvent ( ) . addListener ( itemSelectionChangeHandler ) ; dataProvider.getModel ( ) . getSelectedItemsChangedEvent ( ) . addListener ( itemSelectionChangeHandler ) ; }
Source:
public void testGetRelevantQuotasExistingStorageNoSpecificQuotas ( ) throws java.lang.Exception { assertGetAllRelevantQuoatsForStorage ( FixturesTool.STORAGE_DOAMIN_NFS_ISO , ( ( org.ovirt.engine.core.dao.QuotaDAOTest.NUM_QUOTAS ) - 1 ) ) ; }

Target:
public void testGetRelevantQuotasExistingStorageNoSpecificQuotas ( ) throws java.lang.Exception { assertGetAllRelevantQuoatsForStorage ( FixturesTool.STORAGE_DOAMIN_NFS_ISO , ( ( org.ovirt.engine.core.dao.QuotaDAOTest.STORAGE_NUM_QUOTAS ) - 1 ) ) ; }
Source:
public org.ovirt.engine.sdk.utils.HttpHeaderBuilder add ( java.lang.String key , java.lang.Object value ) { this . params.add ( new org.ovirt.engine.sdk.utils.HttpHeaderBuilder.HttpHeaderParsameter ( key , ( value != null ? java.lang.String.valueOf ( value ) : null ) ) ) ; return this ; }

Target:
public org.ovirt.engine.sdk.utils.HttpHeaderBuilder add ( java.lang.String key , java.lang.Object value ) { this . params.add ( new org.ovirt.engine.sdk.utils.HttpHeaderBuilder.HttpHeaderParameter ( key , ( value != null ? java.lang.String.valueOf ( value ) : null ) ) ) ; return this ; }
Source:
public org.ovirt.engine.api.model.Disk resolve ( org.ovirt.engine.core.compat.Guid id ) throws org.ovirt.engine.api.restapi.resource.BackendFailureException { return getEntity ( org.ovirt.engine.api.model.Disk.class , VdcQueryType.GetDiskByDiskId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) , id.toString ( ) , true ) ; }

Target:
public org.ovirt.engine.api.model.Disk resolve ( org.ovirt.engine.core.compat.Guid id ) throws org.ovirt.engine.api.restapi.resource.BackendFailureException { return getEntity ( org.ovirt.engine.api.model.Disk.class , VdcQueryType.GetDiskByDiskId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( diskId ) , diskId.toString ( ) , true ) ; }
Source:
public void testGetAllForConnection ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllForConnection ( org.ovirt.engine.core.dao.StorageDomainDAOTest.EXISTING_CONNECTION ) ; org.ovirt.engine.core.dao.StorageDomainDAOTest.assertGetAllForStoragePoolResult ( result ) ; }

Target:
public void testGetAllForConnection ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllForConnection ( org.ovirt.engine.core.dao.StorageDomainDAOTest.EXISTING_CONNECTION ) ; org.ovirt.engine.core.dao.StorageDomainDAOTest.assertGetAllForStoragePoolResult ( result , org.ovirt.engine.core.dao.StorageDomainDAOTest.EXISTING_STORAGE_POOL_ID ) ; }
Source:
protected void OnSelectedItemChanged ( ) { super . OnSelectedItemChanged ( ) ; UpdateActionAvailability ( ) ; UpdateConsoleModels ( ) ; }

Target:
public java.util.List < org.ovirt.engine.ui.uicommonweb.models.HasConsoleModel > getSelectedHasConsoleModels ( ) { return selectedHasConsoleModels ; }
Source:
public void setIsAllocationTabValid ( boolean value ) { if ( ( isAllocationTabValid ) != value ) { isAllocationTabValid = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "IsAllocationTabValid" ) ) ; } }

Target:
public void setIsAllocationTabValid ( boolean value ) { if ( ( isAllocationTabValid ) != value ) { isAllocationTabValid = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "IsAllocationTabValid" ) ) ; } }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.Bookmark > getAll ( ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = new org.ovirt.engine.core.dao.BookmarkDAODbFacadeImpl.BookmarkSqlParameterSource ( ) ; return getCallsHandler ( ) . executeReadList ( "GetAllFromBookmarks" , org.ovirt.engine.core.dao.BookmarkDAODbFacadeImpl.BookmarkRowMapper.instance , parameterSource ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.Bookmark getByName ( java.lang.String name ) { final javax.persistence.TypedQuery < org.ovirt.engine.core.common.businessentities.Bookmark > query = entityManager.createNamedQuery ( "Bookmark.byName" , org.ovirt.engine.core.common.businessentities.Bookmark.class ) ; query.setParameter ( "name" , name ) ; return singleResult ( query ) ; }
Source:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { return org.ovirt.engine.core.bll.ThawVmCommand.getSucceeded ( ) ? org.ovirt.engine.core.common.AuditLogType.THAW_VM_SUCCESS : org.ovirt.engine.core.common.AuditLogType.USER_FAILED_TO_FREEZE_VM ; }

Target:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { return org.ovirt.engine.core.bll.ThawVmCommand.getSucceeded ( ) ? org.ovirt.engine.core.common.AuditLogType.THAW_VM_SUCCESS : org.ovirt.engine.core.common.AuditLogType.USER_FAILED_TO_THAW_VM ; }
Source:
public void setItems ( java.util.Collection value ) { java.util.SortedSet items = new java.util.TreeSet ( comparator ) ; for ( java.lang.Object item : value ) { items.add ( item ) ; } super . setItems ( items ) ; }

Target:
public void setItems ( java.util.Collection < T > value ) { java.util.SortedSet < T > items = new java.util.TreeSet < T > ( comparator ) ; items.addAll ( value ) ; super . setItems ( items ) ; }
Source:
protected void mockFenceAgents ( ) { fenceAgents = create2SequentialFenceAgents ( ) ; org.mockito.Mockito.doReturn ( fenceAgents ) . when ( fencedHost ) . getFenceAgents ( ) ; }

Target:
protected void mockFenceAgents ( ) { fenceAgents = create2SequentialFenceAgents ( ) ; org.mockito.Mockito.when ( fenceAgentDao.getFenceAgentsForHost ( fencedHost.getId ( ) ) ) . thenReturn ( fenceAgents ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) . intValue ( ) : 100 ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? source : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.gluster.GlusterServerService > ( ) ; }
Source:
public void setTemplateVersion ( java.lang.Integer templateVersion ) { this . templateVersion = templateVersion ; }

Target:
public void setMigrationDowntime ( java.lang.Integer migrationDowntime ) { this . migrationDowntime = migrationDowntime ; }
Source:
protected void initSuppliedImage ( org.ovirt.engine.core.bll.storage.disk.image.TransferImageCommand < ? extends org.ovirt.engine.core.common.action.TransferImageParameters > command ) { org.ovirt.engine.core.compat.Guid imageId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; command.getParameters ( ) . setImageId ( imageId ) ; }

Target:
protected void initSuppliedImage ( ) { org.ovirt.engine.core.compat.Guid imageId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; transferImageCommand.getParameters ( ) . setImageId ( imageId ) ; }
Source:
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 ) ; }

Target:
public void testSave ( ) { dao.save ( newUser ) ; org.ovirt.engine.core.common.businessentities.aaa.DbUser result = dao.getByUsernameAndDomain ( newUser.getLoginName ( ) , newUser.getDomain ( ) ) ; org.junit.Assert.assertEquals ( newUser , result ) ; }
Source:
protected void setActionMessageParameters ( ) { addValidationMessage ( EngineMessage.VAR__ACTION__HOT_SET_MEMORY ) ; addValidationMessage ( EngineMessage.VAR__TYPE__VM ) ; addValidationMessageVariable ( "clusterVersion" , org.ovirt.engine.core.bll.HotSetAmountOfMemoryCommand.getVm ( ) . getClusterCompatibilityVersion ( ) ) ; addValidationMessageVariable ( "architecture" , org.ovirt.engine.core.bll.HotSetAmountOfMemoryCommand.getVm ( ) . getClusterArch ( ) ) ; }

Target:
protected void setActionMessageParameters ( ) { addValidationMessage ( EngineMessage.VAR__ACTION__HOT_SET_MEMORY ) ; addValidationMessage ( EngineMessage.VAR__TYPE__VM ) ; addValidationMessageVariable ( "clusterVersion" , org.ovirt.engine.core.bll.HotSetAmountOfMemoryCommand.getVm ( ) . getCompatibilityVersion ( ) ) ; addValidationMessageVariable ( "architecture" , org.ovirt.engine.core.bll.HotSetAmountOfMemoryCommand.getVm ( ) . getClusterArch ( ) ) ; }
Source:
public void setVdsmVersion ( org.ovirt.engine.core.compat.RpmVersion value ) { if ( org.ovirt.engine.core.compat.Version.OpInequality ( vdsmVersion , value ) ) { vdsmVersion = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "VdsmVersion" ) ) ; } }

Target:
public void setVdsmVersion ( org.ovirt.engine.core.compat.RpmVersion value ) { if ( org.ovirt.engine.core.compat.Version.OpInequality ( vdsmVersion , value ) ) { vdsmVersion = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "VdsmVersion" ) ) ; } }
Source:
public void moveDiskToGluster ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ) ; initSrcStorageDomain ( ) ; initDestStorageDomain ( StorageType.GLUSTERFS ) ; initVmDiskImage ( false ) ; org.junit.Assert.assertTrue ( command.validate ( ) ) ; }

Target:
public void moveDiskToGluster ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ) ; initSrcStorageDomain ( ) ; initDestStorageDomain ( StorageType.GLUSTERFS ) ; initVmDiskImage ( false ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( command ) ; }
Source:
protected void setActionMessageParameters ( ) { addValidationMessage ( EngineMessage.VAR__ACTION__REMOVE ) ; addValidationMessage ( EngineMessage.VAR__TYPE__GLUSTER_GEOREP_SESSION ) ; addValidationMessageVariable ( "volumeName" , getGlusterVolumeName ( ) ) ; addValidationMessageVariable ( "vdsGroup" , getVdsGroupName ( ) ) ; }

Target:
protected void setActionMessageParameters ( ) { addValidationMessage ( EngineMessage.VAR__ACTION__REMOVE ) ; addValidationMessage ( EngineMessage.VAR__TYPE__GLUSTER_GEOREP_SESSION ) ; addValidationMessageVariable ( "volumeName" , getGlusterVolumeName ( ) ) ; addValidationMessageVariable ( "cluster" , getClusterName ( ) ) ; }
Source:
protected void updateReturnStatus ( org.ovirt.engine.core.vdsbroker.vdsbroker.StatusForXmlRpc newReturnStatus ) { _result.mStatus = newReturnStatus ; }

Target:
protected void updateReturnStatus ( org.ovirt.engine.core.vdsbroker.vdsbroker.StatusForXmlRpc newReturnStatus ) { _result.setXmlRpcStatus ( newReturnStatus ) ; }
Source:
void setSessionId ( java.lang.String sessionId , boolean storeInHttpSession ) { if ( storeInHttpSession ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . storeInHttpSession ( org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.SESSION_ID_KEY , sessionId ) ; } this . restApiSessionId = sessionId ; }

Target:
void setSessionId ( java.lang.String sessionId , boolean storeInHttpSession ) { if ( storeInHttpSession ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . storeInHttpSession ( org.ovirt.engine.ui.common.restapi.RestApiSessionManager.SESSION_ID_KEY , sessionId ) ; } this . restApiSessionId = sessionId ; }
Source:
public static < TSource > TSource firstOrDefault ( java.lang.Iterable < TSource > source ) { if ( source != null ) { for ( TSource item : source ) { return item ; } } return null ; }

Target:
public static < TSource > TSource firstOrDefault ( java.lang.Iterable < TSource > source ) { return org.ovirt.engine.ui.uicommonweb.Linq.firstOrDefault ( source , new org.ovirt.engine.ui.uicommonweb.Linq.TruePredicate < TSource > ( ) ) ; }
Source:
public void shouldDetectNonMigratableVMs ( ) { invalidVM.setMigrationSupport ( org.ovirt.engine.core.common.businessentities.MigrationSupport.PINNED_TO_HOST ) ; org.assertj.core.api.Assertions.assertThat ( validator.checkVmReadyForUpgrade ( invalidVM ) ) . contains ( UpgradeError.VM_NOT_MIGRATABLE ) ; }

Target:
public void shouldDetectCpuPinning ( ) { invalidVM.setCpuPinning ( "i am pinned" ) ; org.assertj.core.api.Assertions.assertThat ( validator.checkVmReadyForUpgrade ( invalidVM ) ) . contains ( EngineMessage.CLUSTER_UPGRADE_DETAIL_VM_CPUS_PINNED.name ( ) ) ; }
Source:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData object ) { return new org.ovirt.engine.ui.webadmin.widget.table.column.VmTypeColumn ( ) . getValue ( object.getVm ( ) ) ; }

Target:
public com.google.gwt.safehtml.shared.SafeHtml getValue ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData object ) { return org.ovirt.engine.ui.webadmin.widget.table.column.VmTypeColumn.getRenderedValue ( object.getVm ( ) ) ; }
Source:
private boolean IsAnyBond ( java.lang.Iterable < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > items ) { for ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface item : items ) { if ( ( item.getBonded ( ) ) == null ? false : item.getBonded ( ) ) { return true ; } } return false ; }

Target:
private boolean isAnyBond ( java.lang.Iterable < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > items ) { for ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface item : items ) { if ( ( item.getBonded ( ) ) == null ? false : item.getBonded ( ) ) { return true ; } } return false ; }
Source:
public void checkInvalidStringIpv4AddressConversion ( ) { org.junit.Assert.assertEquals ( "" , underTest.convertPrefixToNetmask ( "a'" ) ) ; }

Target:
public void checkInvalidStringIpv4AddressConversion ( ) { org.junit.jupiter.api.Assertions.assertThrows ( java.lang.NumberFormatException.class , ( ) -> underTest.convertPrefixToNetmask ( "a'" ) ) ; }
Source:
public java.util.Set < java.lang.String > getConsumedEvents ( ) { java.util.Set < java.lang.String > set = new java.util.HashSet < > ( ) ; org.ovirt.engine.ui.common.widget.tooltip.TooltipMixin.addTooltipsEvents ( set ) ; return set ; }

Target:
public java.util.Set < java.lang.String > getConsumedEvents ( ) { return new java.util.HashSet ( org.ovirt.engine.ui.common.utils.ElementTooltipUtils.HANDLED_CELL_EVENTS ) ; }
Source:
private static < T > void excludeExceptions ( T dstobj ) throws java.lang.IllegalAccessException , java.lang.reflect.InvocationTargetException { for ( java.lang.String field : org.ovirt.engine.sdk.mapping.Mapper.MAPPING_EXCEPTIONS ) { org.apache.commons.beanutils.BeanUtils.setProperty ( dstobj , field , null ) ; } }

Target:
private static < T > void excludeExceptions ( T dstobj ) throws java.lang.IllegalAccessException , java.lang.NoSuchMethodException , java.lang.reflect.InvocationTargetException { for ( java.lang.String field : org.ovirt.engine.sdk.mapping.Mapper.MAPPING_EXCEPTIONS ) { org.apache.commons.beanutils.PropertyUtils.setProperty ( dstobj , field , null ) ; } }
Source:
public void testAuthTypes ( ) { org.junit.Assert.assertEquals ( "Unknown should not be an admin query" , VdcQueryAuthType.User , QueryType.Unknown.getAuthType ( ) ) ; org.junit.Assert.assertFalse ( "Unknown should not be an admin query" , QueryType.Unknown.isAdmin ( ) ) ; }

Target:
public void testAuthTypes ( ) { org.junit.Assert.assertEquals ( "Unknown should not be an admin query" , QueryAuthType.User , QueryType.Unknown.getAuthType ( ) ) ; org.junit.Assert.assertFalse ( "Unknown should not be an admin query" , QueryType.Unknown.isAdmin ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.action.VdcReturnValueBase runInternalAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , org.ovirt.engine.core.bll.context.CommandContext context ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( actionType , parameters , context ) ; }

Target:
protected java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runInternalMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters ) { return getBackend ( ) . runInternalMultipleActions ( actionType , parameters , context.clone ( ) ) ; }
Source:
public boolean isEmpty ( ) { return ( ( ( getOutAverageLinkshare ( ) ) == null ) && ( ( getOutAverageUpperlimit ( ) ) == null ) ) && ( ( getOutAverageRealtime ( ) ) == null ) ; }

Target:
public boolean isEmpty ( ) { return hostNetworkQosProperties.isEmpty ( ) ; }
Source:
public void updateJobLastUpdateTime ( org.ovirt.engine.core.compat.Guid jobId , java.util.Date lastUpdateTime ) { org.ovirt.engine.core.common.job.Job job = get ( jobId ) ; job.setLastUpdateTime ( lastUpdateTime ) ; update ( job ) ; }

Target:
public void updateJobLastUpdateTime ( org.ovirt.engine.core.compat.Guid jobId , java.util.Date lastUpdateTime ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "job_id" , jobId ) . addValue ( "last_update_time" , lastUpdateTime ) ; getCallsHandler ( ) . executeModification ( "UpdateJobLastUpdateTime" , parameterSource ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > buildStoragePoolsList ( ) { return java.util.Arrays.asList ( pool1 ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > buildStoragePoolsList ( ) { return java.util.Collections.singletonList ( pool1 ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getIsoStorageDomainIdForPool ( org.ovirt.engine.core.compat.Guid pool ) { return getStorageDomainId ( pool , StorageDomainType.ISO ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.StorageDomain getStorageDomain ( org.ovirt.engine.core.compat.Guid poolId , org.ovirt.engine.core.common.businessentities.StorageDomainType type ) { return getStorageDomain ( poolId , type , null ) ; }
Source:
public void validateDiskIsLocked ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ) ; initVmDiskImage ( false ) ; command.getImage ( ) . setImageStatus ( ImageStatus.LOCKED ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_DISKS_LOCKED ) ; }

Target:
public void validateDiskIsLocked ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) , VmEntityType.VM ) ; command.getImage ( ) . setImageStatus ( ImageStatus.LOCKED ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_DISKS_LOCKED ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.job.Job > getJobsByCorrelationId ( java.lang.String correlationId ) { return multipleResults ( entityManager.createNamedQuery ( "Job.getJobsByCorrelationId" , org.ovirt.engine.core.common.job.Job.class ) . setParameter ( "correlationId" , correlationId ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.job.Job > getJobsByCorrelationId ( java.lang.String correlationId ) { return multipleResults ( getEntityManager ( ) . createNamedQuery ( "Job.getJobsByCorrelationId" , org.ovirt.engine.core.common.job.Job.class ) . setParameter ( "correlationId" , correlationId ) ) ; }