auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testRemoveByClusterId ( ) { dao.removeByClusterId ( org.ovirt.engine.core.dao.gluster.GlusterVolumeDaoTest.CLUSTER_ID ) ; java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity > volumes = dao.getByClusterId ( org.ovirt.engine.core.dao.gluster.GlusterVolumeDaoTest.CLUSTER_ID ) ; org.junit.Assert.assertTrue ( volumes.isEmpty ( ) ) ; }

Target:
public void testRemoveByClusterId ( ) { dao.removeByClusterId ( org.ovirt.engine.core.dao.gluster.GlusterVolumeDaoTest.CLUSTER_ID ) ; java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity > volumes = dao.getByClusterId ( org.ovirt.engine.core.dao.gluster.GlusterVolumeDaoTest.CLUSTER_ID ) ; org.junit.jupiter.api.Assertions.assertTrue ( volumes.isEmpty ( ) ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.userportal.gin.ClientGinjector ginjector ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( ginjector.getApplicationConstants ( ) . extendedVirtualMachineEventSubTabLabel ( ) , 8 , ginjector.getVmEventListModelProvider ( ) ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.userportal.ApplicationConstants applicationConstants , org.ovirt.engine.ui.userportal.uicommon.model.vm.VmEventListModelProvider modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.extendedVirtualMachineEventSubTabLabel ( ) , 8 , modelProvider ) ; }
Source:
public java.lang.Long getRawValue ( org.ovirt.engine.core.common.businessentities.StorageDomain object ) { long totalDiskSize = ( ( object.getTotalDiskSize ( ) ) != null ) ? object.getTotalDiskSize ( ) : 0 ; return ( ( long ) ( totalDiskSize ) ) ; }

Target:
public java.lang.Long getRawValue ( org.ovirt.engine.core.common.businessentities.StorageDomain object ) { return ( object.getTotalDiskSize ( ) ) != null ? object.getTotalDiskSize ( ) : 0L ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.provider.UpdateProviderCommand.getDbFacade ( ) . getNetworkProviderDao ( ) . update ( getProvider ( ) ) ; org.ovirt.engine.core.bll.provider.UpdateProviderCommand.setSucceeded ( true ) ; }

Target:
private org.ovirt.engine.core.dao.provider.ProviderDao getProviderDao ( ) { return org.ovirt.engine.core.bll.provider.UpdateProviderCommand.getDbFacade ( ) . getProviderDao ( ) ; }
Source:
private void initTimeZones ( ) { java.util.Set < java.lang.String > timeZoneTypes = TimeZoneType.GENERAL_TIMEZONE.getTimeZoneList ( ) . keySet ( ) ; getTimeZones ( ) . setItems ( timeZoneTypes ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { validate ( true ) ; }
Source:
public void invalidVersion ( ) { org.junit.Assert.assertFalse ( org.ovirt.engine.core.bll.utils.VersionSupport.checkVersionSupported ( new org.ovirt.engine.core.compat.Version ( 2 , 0 ) ) ) ; }

Target:
public void invalidVersion ( ) { org.junit.jupiter.api.Assertions.assertFalse ( org.ovirt.engine.core.bll.utils.VersionSupport.checkVersionSupported ( new org.ovirt.engine.core.compat.Version ( 2 , 0 ) ) ) ; }
Source:
public < T > T getEntity ( java.lang.Class < T > clz , org.ovirt.engine.core.common.queries.QueryType query , org.ovirt.engine.core.common.queries.VdcQueryParametersBase queryParams , java.lang.String identifier , boolean notFoundAs404 ) { return getEntity ( clz , query , queryParams , identifier , notFoundAs404 , true ) ; }

Target:
public < T > T getEntity ( java.lang.Class < T > clz , org.ovirt.engine.core.common.queries.QueryType query , org.ovirt.engine.core.common.queries.QueryParametersBase queryParams , java.lang.String identifier , boolean notFoundAs404 ) { return getEntity ( clz , query , queryParams , identifier , notFoundAs404 , true ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.NetworkCluster createManagementNetworkCluster ( ) { return new org.ovirt.engine.core.common.businessentities.network.NetworkCluster ( org.ovirt.engine.core.bll.AddClusterCommand.getClusterId ( ) , managementNetwork.getId ( ) , org.ovirt.engine.core.common.businessentities.network.NetworkStatus.OPERATIONAL , true , true , true , true , false ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.network.Network getManagementNetwork ( ) { return managementNetwork ; }
Source:
public static boolean isNonVmNetworkWithNoVlan ( org.ovirt.engine.core.common.businessentities.Network network ) { return ( ! ( network.isVmNetwork ( ) ) ) && ( ( ( network.getvlan_id ( ) ) == null ) || ( ( network.getvlan_id ( ) ) == 0 ) ) ; }

Target:
public static boolean isNonVmNonVlanNetwork ( org.ovirt.engine.core.common.businessentities.Network network ) { return ( ! ( network.isVmNetwork ( ) ) ) && ( ( network.getvlan_id ( ) ) == null ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VmOsType getOsType ( ) { return getOs ( ) ; }

Target:
public java.lang.String getTimeZone ( ) { return timeZone ; }
Source:
public void testBootProtocolSetForDisplayNetworkWhenIpConfigurationIsNull ( ) { doTestBootProtocolSetForDisplayNetworkWhenNullValuedIpConfigurationAndWhenNetworkClusterDisplay ( true , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_DISPLAY_NETWORK_HAS_NO_BOOT_PROTOCOL ) ) ; }

Target:
public void testBootProtocolSetForDisplayNetworkWhenNullValuedIpConfigurationAndWhenNetworkClusterDisplayIsFalse ( ) { doTestBootProtocolSetForDisplayNetworkWhenNullValuedIpConfigurationAndWhenNetworkClusterDisplay ( false , createNetwork ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
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.Quota > searchQuota ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Quota > quotaList = genericSearch ( org.ovirt.engine.core.bll.SearchQuery.getDbFacade ( ) . getQuotaDao ( ) , true ) ; quotaManager.updateUsage ( quotaList ) ; return quotaList ; }
Source:
public void getUsbPolicyNullUsb ( ) { org.ovirt.engine.api.model.Usb usb = null ; org.ovirt.engine.core.common.businessentities.VDSGroup vdsGroup = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb , vdsGroup.getcompatibility_version ( ) ) , UsbPolicy.DISABLED ) ; }

Target:
public void getUsbPolicyNullUsb ( ) { org.ovirt.engine.api.model.Usb usb = null ; org.ovirt.engine.core.common.businessentities.VDSGroup vdsGroup = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb , vdsGroup.getCompatibilityVersion ( ) ) , UsbPolicy.DISABLED ) ; }
Source:
public void validateBondOptionsForNewAttachementWithOutOfSyncVmNetworOverridden ( ) { validateValidBonds ( false , true , false , true ) ; }

Target:
public void validateBondOptionsForNewAttachementWithOutOfSyncVmNetworOverridden ( ) { validateValidBondsForAllBondModes ( false , true , false , true ) ; }
Source:
protected javax.ws.rs.core.Response performCreate ( java.lang.String labelId ) { return performCreate ( VdcActionType.AddVfsConfigLabel , new org.ovirt.engine.core.common.action.VfsConfigLabelParameters ( nicId , labelId ) , new org.ovirt.engine.api.restapi.resource.NetworkLabelIdResolver ( nicId ) ) ; }

Target:
protected javax.ws.rs.core.Response performCreate ( java.lang.String labelId ) { return performCreate ( ActionType.AddVfsConfigLabel , new org.ovirt.engine.core.common.action.VfsConfigLabelParameters ( nicId , labelId ) , new org.ovirt.engine.api.restapi.resource.NetworkLabelIdResolver ( nicId ) ) ; }
Source:
public void setDescription ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( description , value ) ) ) { this . description = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Description" ) ) ; } }

Target:
public void setDescription ( java.lang.String value ) { if ( ! ( java.util.Objects.equals ( description , value ) ) ) { this . description = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Description" ) ) ; } }
Source:
private void addStorageDomainStatusIllegalMessage ( ) { addCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAIN_STATUS_ILLEGAL ) ; }

Target:
protected void addStorageDomainStatusIllegalMessage ( ) { addCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAIN_STATUS_ILLEGAL2 ) ; addCanDoActionMessage ( java.lang.String.format ( "$status %1$s" , getStorageDomainStatus ( ) ) ) ; }
Source:
protected java.lang.Integer getUserSessionTimeout ( ) { return org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.UserSessionTimeOutInterval ) ; }

Target:
private java.lang.String getSsoToken ( final java.lang.String engineSessionId ) { return ( ( java.lang.String ) ( runQuery ( VdcQueryType.GetEngineSessionIdToken , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , engineSessionId ) ) ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VmDevice device ) { return device.getSpecParams ( ) . toString ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.vms.VmDeviceFeEntity deviceEntity ) { return deviceEntity.getVmDevice ( ) . getSpecParams ( ) . toString ( ) ; }
Source:
public int compare ( org.ovirt.engine.core.common.businessentities.Disk o1 , org.ovirt.engine.core.common.businessentities.Disk o2 ) { return o1.getDiskAlias ( ) . compareTo ( o2.getDiskAlias ( ) ) ; }

Target:
public int compare ( org.ovirt.engine.core.common.businessentities.storage.Disk o1 , org.ovirt.engine.core.common.businessentities.storage.Disk o2 ) { return o1.getDiskAlias ( ) . compareTo ( o2.getDiskAlias ( ) ) ; }
Source:
public static java.lang.Double getVdsmCallTimestamp ( java.util.Map < java.lang.String , java.lang.Object > xmlRpcStruct ) { if ( xmlRpcStruct.containsKey ( VdsProperties.statusTime ) ) { return org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.AssignDoubleValue ( xmlRpcStruct , VdsProperties.statusTime ) ; } return - 1.0 ; }

Target:
public static java.lang.Double getVdsmCallTimestamp ( java.util.Map < java.lang.String , java.lang.Object > xmlRpcStruct ) { if ( xmlRpcStruct.containsKey ( VdsProperties.statusTime ) ) { return org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.assignDoubleValue ( xmlRpcStruct , VdsProperties.statusTime ) ; } return - 1.0 ; }
Source:
protected void addPermissions ( ) { org.ovirt.engine.core.bll.MultiLevelAdministrationHandler.addPermission ( new org.ovirt.engine.core.common.businessentities.Permission ( org.ovirt.engine.core.bll.MultiLevelAdministrationHandler.EVERYONE_OBJECT_ID , PredefinedRoles.DISK_PROFILE_USER.getId ( ) , getProfileId ( ) , org.ovirt.engine.core.common.VdcObjectType.DiskProfile ) ) ; }

Target:
protected void addPermissions ( ) { multiLevelAdministrationHandler.addPermission ( new org.ovirt.engine.core.common.businessentities.Permission ( org.ovirt.engine.core.bll.MultiLevelAdministrationHandler.EVERYONE_OBJECT_ID , PredefinedRoles.DISK_PROFILE_USER.getId ( ) , getProfileId ( ) , org.ovirt.engine.core.common.VdcObjectType.DiskProfile ) ) ; }
Source:
private java.lang.String getStoragePath ( ) { return getConnection ( ) . getconnection ( ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getStorageDomainId ( ) { return getStorageDomain ( ) . getId ( ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult storageDomainNotChanged ( ) { if ( org.apache.commons.lang.ObjectUtils.equals ( getDiskProfile ( ) . getStorageDomainId ( ) , getDiskProfileFromDb ( ) . getStorageDomainId ( ) ) ) { return org.ovirt.engine.core.bll.ValidationResult.VALID ; } return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_CANNOT_CHANGE_PROFILE ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult parentEntityNotChanged ( ) { if ( org.apache.commons.lang.ObjectUtils.equals ( getProfile ( ) . getStorageDomainId ( ) , getProfileFromDb ( ) . getStorageDomainId ( ) ) ) { return org.ovirt.engine.core.bll.ValidationResult.VALID ; } return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_CANNOT_CHANGE_PROFILE ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.StorageDomain findStorageDomainForMemory ( org.ovirt.engine.core.compat.Guid storagePoolId , java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > disksList ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > domainsInPool = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageDomainDao ( ) . getAllForStoragePool ( storagePoolId ) ; return org.ovirt.engine.core.bll.VmHandler.findStorageDomainForMemory ( domainsInPool , disksList ) ; }

Target:
public static void updateVmLock ( final org.ovirt.engine.core.common.businessentities.VM vm ) { vm.setLockInfo ( org.ovirt.engine.core.bll.VmHandler.getLockManager ( ) . getLockInfo ( java.lang.String.format ( "%s%s" , vm.getId ( ) , LockingGroup.VM.name ( ) ) ) ) ; }
Source:
public java.lang.String getHostFingerprint ( java.lang.String hash ) throws java.io.IOException { java.lang.String fingerprint = org.ovirt.engine.core.uutils.ssh.OpenSSHUtils.getKeyFingerprint ( getHostKey ( ) , hash ) ; if ( fingerprint == null ) { throw new java.io.IOException ( "Unable to parse host key" ) ; } return fingerprint ; }

Target:
public java.lang.String getHostFingerprint ( java.lang.String digest ) throws java.lang.Exception { return org.ovirt.engine.core.uutils.ssh.OpenSSHUtils.getKeyFingerprint ( getHostKey ( ) , ( digest == null ? org.ovirt.engine.core.common.config.Config.< java.lang.String > getValue ( ConfigValues.SSHDefaultKeyDigest ) : digest ) ) ; }
Source:
public static boolean IsHostBelongsToAnyOfClusters ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDSGroup > clusters , org.ovirt.engine.core.common.businessentities.VDS host ) { for ( org.ovirt.engine.core.common.businessentities.VDSGroup cluster : clusters ) { if ( cluster.getId ( ) . equals ( host.getVdsGroupId ( ) ) ) { return true ; } } return false ; }

Target:
public static boolean isHostBelongsToAnyOfClusters ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDSGroup > clusters , org.ovirt.engine.core.common.businessentities.VDS host ) { for ( org.ovirt.engine.core.common.businessentities.VDSGroup cluster : clusters ) { if ( cluster.getId ( ) . equals ( host.getVdsGroupId ( ) ) ) { return true ; } } return false ; }
Source:
public org.ovirt.engine.api.model.Disk update ( org.ovirt.engine.api.model.Disk disk ) { return performUpdate ( disk , new org.ovirt.engine.api.restapi.resource.BackendVmDiskResource.DiskResolver ( ) , VdcActionType.UpdateVmDisk , new org.ovirt.engine.api.restapi.resource.BackendVmDiskResource.UpdateParametersProvider ( ) ) ; }

Target:
public org.ovirt.engine.api.model.Disk update ( org.ovirt.engine.api.model.Disk disk ) { return performUpdate ( disk , new org.ovirt.engine.api.restapi.resource.BackendVmDiskResource.DiskResolver ( ) , ActionType.UpdateVmDisk , new org.ovirt.engine.api.restapi.resource.BackendVmDiskResource.UpdateParametersProvider ( ) ) ; }
Source:
public static org.ovirt.engine.core.common.action.VdcReturnValueBase validate ( org.ovirt.engine.core.common.action.ActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , org.ovirt.engine.core.bll.context.CommandContext commandContext ) { return org.ovirt.engine.core.bll.CommandsFactory.createCommand ( actionType , parameters , commandContext ) . validateOnly ( ) ; }

Target:
public static org.ovirt.engine.core.common.action.VdcReturnValueBase validate ( org.ovirt.engine.core.common.action.ActionType actionType , org.ovirt.engine.core.common.action.ActionParametersBase parameters , org.ovirt.engine.core.bll.context.CommandContext commandContext ) { return org.ovirt.engine.core.bll.CommandsFactory.createCommand ( actionType , parameters , commandContext ) . validateOnly ( ) ; }
Source:
private java.lang.String getPrincipalName ( java.lang.String sessionId ) { return ( ( java.lang.String ) ( getData ( sessionId , org.ovirt.engine.core.bll.session.SessionDataContainer.PRINCIPAL_PARAMETER_NAME , false ) ) ) ; }

Target:
private java.lang.String getPrincipalName ( java.lang.String sessionId ) { return ( ( java.lang.String ) ( getData ( sessionId , org.ovirt.engine.core.bll.aaa.SessionDataContainer.PRINCIPAL_PARAMETER_NAME , false ) ) ) ; }
Source:
public void setEndProcedure ( org.ovirt.engine.core.common.action.VdcActionParametersBase.EndProcedure endProcedure ) { this . endProcedure = endProcedure ; }

Target:
public void setEndProcedure ( org.ovirt.engine.core.common.action.ActionParametersBase.EndProcedure endProcedure ) { this . endProcedure = endProcedure ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { testProviderConnectivity ( ) ; }

Target:
private void importCertificate ( ) { }
Source:
private void logFailureToRestartVm ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase event = org.ovirt.engine.core.di.Injector.injectMembers ( new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ) ; event.setVmId ( vmId ) ; auditLogDirector.log ( event , getExceededMaxNumOfRestartsAuditLogType ( ) ) ; }

Target:
private org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogable createVmEvent ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogable event = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableImpl ( ) ; event.setVmId ( vmId ) ; event.setVmName ( vmStaticDao.get ( vmId ) . getName ( ) ) ; return event ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object result ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > nics = ( ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > ) ( result ) ) ; initNetworkInterfaces ( networkBehavior , nics ) ; networkInterfacesInited = true ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { getModel ( ) . getMemoryBalloonDeviceEnabled ( ) . setEntity ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ) ; }
Source:
protected void AsyncSearch ( ) { super . AsyncSearch ( ) ; setAsyncResult ( org.ovirt.engine.ui.frontend.Frontend.RegisterSearch ( getSearchString ( ) , SearchType.StoragePool , getSearchPageSize ( ) ) ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }

Target:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; setAsyncResult ( org.ovirt.engine.ui.frontend.Frontend.RegisterSearch ( getSearchString ( ) , SearchType.StoragePool , getSearchPageSize ( ) ) ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }
Source:
protected void executeCommand ( ) { getDbFacade ( ) . getDiskProfileDao ( ) . remove ( getParameters ( ) . getProfileId ( ) ) ; setSucceeded ( true ) ; }

Target:
protected org.ovirt.engine.core.dao.profiles.ProfilesDao < org.ovirt.engine.core.common.businessentities.profiles.DiskProfile > getProfileDao ( ) { return getDiskProfileDao ( ) ; }
Source:
protected void onSavePortMirroring ( org.ovirt.engine.core.common.businessentities.VmNetworkInterface nicToSave ) { nicToSave.setPortMirroring ( getNic ( ) . isPortMirroring ( ) ) ; }

Target:
protected void onSavePortMirroring ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface nicToSave ) { nicToSave.setPortMirroring ( getNic ( ) . isPortMirroring ( ) ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > importImage ( java.lang.String spUUID , java.lang.String sdUUID , java.lang.String dstImgGUID , java.lang.String dstVolUUID , java.lang.String importLocation ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > downloadImage ( java.util.Map methodInfo , java.lang.String spUUID , java.lang.String sdUUID , java.lang.String dstImgGUID , java.lang.String dstVolUUID ) ;
Source:
protected void convert ( ) { org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.executeAsyncCommand ( VdcActionType.ConvertOva , buildConvertOvaParameters ( ) , org.ovirt.engine.core.bll.exportimport.ImportVmFromOvaCommand.cloneContextAndDetachFromParent ( ) ) ; }

Target:
protected void convert ( ) { commandCoordinatorUtil.executeAsyncCommand ( ActionType.ConvertOva , buildConvertOvaParameters ( ) , org.ovirt.engine.core.bll.exportimport.ImportVmFromOvaCommand.cloneContextAndDetachFromParent ( ) ) ; }
Source:
public final void cleanExpiredUsersSessions ( ) { deleteOldGeneration ( ) ; }

Target:
private void removeSessionImpl ( java.lang.String sessionId ) { sessionInfoMap.remove ( sessionId ) ; }
Source:
public void validateFailsOnRemoveLastAdGroupWithSuperUserPrivileges ( ) { mockIsLastSuperUserGroup ( true ) ; org.junit.Assert.assertFalse ( command.validate ( ) ) ; org.junit.Assert.assertTrue ( command.getReturnValue ( ) . getValidationMessages ( ) . contains ( EngineMessage.ERROR_CANNOT_REMOVE_LAST_SUPER_USER_ROLE.toString ( ) ) ) ; }

Target:
public void validateFailsOnRemoveLastAdGroupWithSuperUserPrivileges ( ) { mockIsLastSuperUserGroup ( true ) ; org.junit.jupiter.api.Assertions.assertFalse ( command.validate ( ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( command.getReturnValue ( ) . getValidationMessages ( ) . contains ( EngineMessage.ERROR_CANNOT_REMOVE_LAST_SUPER_USER_ROLE.toString ( ) ) ) ; }
Source:
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 ; }

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 static org.ovirt.engine.api.extensions.ExtMap fetchPrincipalRecord ( final org.ovirt.engine.core.extensions.mgr.ExtensionProxy extension , java.lang.String principal ) { return org.ovirt.engine.core.aaa.AuthzUtils.fetchPrincipalRecordImpl ( extension , Authz.InvokeKeys.PRINCIPAL , principal ) ; }

Target:
public static org.ovirt.engine.api.extensions.ExtMap fetchPrincipalRecord ( final org.ovirt.engine.core.extensions.mgr.ExtensionProxy extension , java.lang.String principal , boolean resolveGroups , boolean resolveGroupsRecursive ) { return org.ovirt.engine.core.aaa.AuthzUtils.fetchPrincipalRecordImpl ( extension , Authz.InvokeKeys.PRINCIPAL , principal , resolveGroups , resolveGroupsRecursive ) ; }
Source:
public boolean getRootPasswordEnabled ( ) { return ! ( org.ovirt.engine.core.compat.StringHelper.isNullOrEmpty ( getRootPassword ( ) . getEntity ( ) ) ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.Boolean > getCloudInitPasswordSet ( ) { return privateCloudInitPasswordSet ; }
Source:
public void testCompressedIpv6AndNotCompressedIpv6 ( ) { org.junit.Assert.assertTrue ( new org.ovirt.engine.core.utils.network.predicate.IpAddressPredicate ( "::/128" ) . test ( "0:0:0:0:0:0:0:0" ) ) ; }

Target:
public void testCompressedIpv6AndNotCompressedIpv6 ( ) { org.junit.Assert.assertTrue ( new org.ovirt.engine.core.utils.network.predicate.IpAddressPredicate ( "::" ) . test ( "0:0:0:0:0:0:0:0" ) ) ; }
Source:
public void testInterfaceExistsWhenInterfaceIsNotNull ( ) throws java.lang.Exception { org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.validator.HostInterfaceValidator ( createVdsNetworkInterfaceWithName ( ) ) . interfaceExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testInterfaceExistsWhenInterfaceIsNotNull ( ) throws java.lang.Exception { org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.validator.HostInterfaceValidator ( createVdsNetworkInterfaceWithName ( ) ) . interfaceExists ( "nicId" ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
protected org.ovirt.engine.api.model.VM doPopulate ( org.ovirt.engine.api.model.VM model , org.ovirt.engine.api.model.VM entity ) { setPayload ( model ) ; setBallooning ( model ) ; setCertificateInfo ( model ) ; return model ; }

Target:
protected org.ovirt.engine.api.model.VM doPopulate ( org.ovirt.engine.api.model.VM model , org.ovirt.engine.api.model.VM entity ) { setPayload ( model ) ; setBallooning ( model ) ; setConsoleDevice ( model ) ; setCertificateInfo ( model ) ; return model ; }
Source:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; return performAction ( VdcActionType.UnlabelNetwork , new org.ovirt.engine.core.common.action.UnlabelNetworkParameters ( parent.getNetworkId ( ) ) ) ; }

Target:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; return performAction ( ActionType.UnlabelNetwork , new org.ovirt.engine.core.common.action.UnlabelNetworkParameters ( parent.getNetworkId ( ) ) ) ; }
Source:
protected org.ovirt.engine.core.common.queries.VdcQueryParametersBase getQueryParameters ( ) { return new org.ovirt.engine.core.common.queries.IdQueryParameters ( org.ovirt.engine.core.compat.Guid.Empty ) ; }

Target:
public org.ovirt.engine.api.resource.NetworkResource getNetworkResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendNetworkResource ( id ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VDSGroup getVdsGroup ( boolean glusterEnabled ) { org.ovirt.engine.core.common.businessentities.VDSGroup vdsGroup = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; vdsGroup.setId ( clusterId ) ; vdsGroup.setVirtService ( false ) ; vdsGroup.setGlusterService ( glusterEnabled ) ; vdsGroup.setcompatibility_version ( Version.v3_1 ) ; return vdsGroup ; }

Target:
private org.ovirt.engine.core.common.businessentities.VDSGroup getVdsGroup ( boolean glusterEnabled ) { org.ovirt.engine.core.common.businessentities.VDSGroup vdsGroup = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; vdsGroup.setId ( clusterId ) ; vdsGroup.setVirtService ( false ) ; vdsGroup.setGlusterService ( glusterEnabled ) ; vdsGroup.setCompatibilityVersion ( Version.v3_1 ) ; return vdsGroup ; }
Source:
public void addColumnAndSetWidth ( com.google.gwt.user.cellview.client.Column < T , ? > column , com.google.gwt.safehtml.shared.SafeHtml headerHtml , java.lang.String width ) { addColumn ( column , headerHtml ) ; setColumnWidth ( column , width ) ; }

Target:
public void addColumnAndSetWidth ( com.google.gwt.user.cellview.client.Column < T , ? > column , com.google.gwt.user.cellview.client.Header < ? > header , java.lang.String width ) { addColumn ( column , header ) ; setColumnWidth ( column , width ) ; }
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 , org.ovirt.engine.core.bll.job.ExecutionContext executionContext ) { return getBackend ( ) . runInternalMultipleActions ( actionType , parameters , context.clone ( ) . withExecutionContext ( executionContext ) ) ; }
Source:
public java.lang.String getValue ( java.lang.Object object ) { return getEntity ( object ) . getName ( ) ; }

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 ) { addBadMacsValidationListener ( model ) ; }
Source:
public void subscribe ( org.ovirt.vdsm.jsonrpc.client.events.EventSubscriber subscriber ) { org.ovirt.vdsm.jsonrpc.client.reactors.ReactorFactory.getWorker ( this . parallelism ) . getPublisher ( ) . subscribe ( subscriber ) ; }

Target:
public void subscribe ( org.ovirt.vdsm.jsonrpc.client.events.EventSubscriber subscriber ) { org.ovirt.engine.core.vdsbroker.ResourceManager.log.debug ( "subscribe called with subscription id: {}" , subscriber.getSubsctibtionId ( ) ) ; org.ovirt.vdsm.jsonrpc.client.reactors.ReactorFactory.getWorker ( this . parallelism ) . getPublisher ( ) . subscribe ( subscriber ) ; }
Source:
public void testCanDoActionTemplateWithNoDomain ( ) { disk.setVmEntityType ( VmEntityType.TEMPLATE ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_CANT_DELETE_TEMPLATE_DISK_WITHOUT_SPECIFYING_DOMAIN ) ; }

Target:
public void testValidateTemplateWithNoDomain ( ) { disk.setVmEntityType ( VmEntityType.TEMPLATE ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_CANT_DELETE_TEMPLATE_DISK_WITHOUT_SPECIFYING_DOMAIN ) ; }
Source:
public void testAddWithClonePermissionsClone ( ) throws java.lang.Exception { org.ovirt.engine.api.model.VM model = createModel ( null ) ; model.setPermissions ( new org.ovirt.engine.api.model.Permissions ( ) ) ; model.getPermissions ( ) . setClone ( true ) ; doTestAddWithClonePermissions ( model , true ) ; }

Target:
public void testAddWithClonePermissionsClone ( ) throws java.lang.Exception { org.ovirt.engine.api.model.Vm model = createModel ( null ) ; model.setPermissions ( new org.ovirt.engine.api.model.Permissions ( ) ) ; model.getPermissions ( ) . setClone ( true ) ; doTestAddWithClonePermissions ( model , true ) ; }
Source:
private boolean getSucceeded ( ) { return ( result.getStatus ( ) . mCode ) == 0 ; }

Target:
private boolean getSucceeded ( ) { return ( result.getStatus ( ) . code ) == 0 ; }
Source:
private void TimeZone_SelectedItemChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { }

Target:
public org.ovirt.engine.ui.uicommonweb.models.ListModel getVncKeyboardLayout ( ) { return vncKeyboardLayout ; }
Source:
private void handleError ( final java.lang.String errorMessage ) { org.ovirt.engine.core.bll.VdsPowerDownCommand.setCommandShouldBeLogged ( false ) ; log.infoFormat ( errorMessage , org.ovirt.engine.core.bll.VdsPowerDownCommand.getVdsName ( ) , org.ovirt.engine.core.bll.VdsPowerDownCommand.getVdsId ( ) ) ; org.ovirt.engine.core.bll.VdsPowerDownCommand.getReturnValue ( ) . setSucceeded ( false ) ; }

Target:
private void handleError ( final java.lang.String errorMessage ) { org.ovirt.engine.core.bll.VdsPowerDownCommand.setCommandShouldBeLogged ( false ) ; log.info ( errorMessage , org.ovirt.engine.core.bll.VdsPowerDownCommand.getVdsName ( ) , org.ovirt.engine.core.bll.VdsPowerDownCommand.getVdsId ( ) ) ; org.ovirt.engine.core.bll.VdsPowerDownCommand.getReturnValue ( ) . setSucceeded ( false ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.LunDisk createLunDisk ( ) { org.ovirt.engine.core.common.businessentities.LunDisk lunDisk = new org.ovirt.engine.core.common.businessentities.LunDisk ( ) ; lunDisk.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; return lunDisk ; }

Target:
private org.ovirt.engine.core.common.businessentities.storage.LunDisk createLunDisk ( ) { org.ovirt.engine.core.common.businessentities.storage.LunDisk lunDisk = new org.ovirt.engine.core.common.businessentities.storage.LunDisk ( ) ; lunDisk.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; return lunDisk ; }
Source:
public void getClusterEditWarnings ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid clusterId , org.ovirt.engine.core.common.businessentities.Cluster cluster ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetClusterEditWarnings , new org.ovirt.engine.core.common.queries.ClusterEditParameters ( cluster ) , aQuery ) ; }

Target:
public void getClusterEditWarnings ( org.ovirt.engine.ui.frontend.AsyncQuery < org.ovirt.engine.core.common.businessentities.ClusterEditWarnings > aQuery , org.ovirt.engine.core.compat.Guid clusterId , org.ovirt.engine.core.common.businessentities.Cluster cluster ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.CastingConverter < > ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetClusterEditWarnings , new org.ovirt.engine.core.common.queries.ClusterEditParameters ( cluster ) , aQuery ) ; }
Source:
private java.lang.String getPrintableConnectionsList ( ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; for ( org.ovirt.engine.core.common.businessentities.StorageServerConnections con : getConnectionList ( ) ) { sb.append ( con ) ; } return sb.toString ( ) ; }

Target:
protected org.ovirt.engine.core.common.utils.ToStringBuilder appendAttributes ( org.ovirt.engine.core.common.utils.ToStringBuilder tsb ) { return super . appendAttributes ( tsb ) . append ( "storageType" , getStorageType ( ) ) . append ( "connectionList" , getConnectionList ( ) ) ; }
Source:
public java.lang.Integer getPmSecondaryPort ( ) { return mVdsStatic.getPmSecondaryPort ( ) ; }

Target:
public boolean getLiveMergeSupport ( ) { return this . mVdsDynamic.getLiveMergeSupport ( ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.Permission , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkListModel , org.ovirt.engine.ui.uicommonweb.models.configure.PermissionListModel < org.ovirt.engine.core.common.businessentities.network.NetworkView > > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.networkPermissionSubTabLabel ( ) , 7 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.Permission , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkListModel , org.ovirt.engine.ui.uicommonweb.models.configure.PermissionListModel < org.ovirt.engine.core.common.businessentities.network.NetworkView > > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.network.SubTabNetworkPermissionPresenter.constants.networkPermissionSubTabLabel ( ) , 7 , modelProvider ) ; }
Source:
public void doCleanPackage ( java.lang.String dir ) { }

Target:
public void doCleanPackage ( java.lang.String dir ) { org.ovirt.engine.sdk.codegen.utils.FileUtils.deleteAllFiles ( dir ) ; }
Source:
private void MemSize_EntityChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { behavior.UpdateMinAllocatedMemory ( ) ; }

Target:
private void provisioning_SelectedItemChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { behavior.provisioning_SelectedItemChanged ( ) ; }
Source:
public void getAAAProfilesListViaPublic ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.convertAAAProfilesResult ( aQuery ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runPublicQuery ( VdcQueryType.GetAAAProfileList , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , aQuery ) ; }

Target:
public void getAAAProfilesListViaPublic ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , boolean passwordBasedOnly ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.convertAAAProfilesResult ( aQuery , passwordBasedOnly ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runPublicQuery ( VdcQueryType.GetAAAProfileList , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , aQuery ) ; }
Source:
public void testMulKeyVal ( ) { java.util.Map < java.lang.String , java.lang.String > map = org.ovirt.engine.core.utils.StringMapUtils.string2Map ( org.ovirt.engine.core.utils.StringMapUtilsTest.MUL_KEY_VAL ) ; org.junit.Assert.assertEquals ( 4 , map.size ( ) ) ; }

Target:
public void testMulKeyVal ( ) { java.util.Map < java.lang.String , java.lang.String > map = org.ovirt.engine.core.utils.StringMapUtils.string2Map ( org.ovirt.engine.core.utils.StringMapUtilsTest.MUL_KEY_VAL ) ; org.junit.jupiter.api.Assertions.assertEquals ( 4 , map.size ( ) ) ; }
Source:
private java.lang.String getDiskIsBeingRemovedLockMessage ( ) { if ( ( cachedDiskIsBeingRemovedLockMessage ) == null ) { cachedDiskIsBeingRemovedLockMessage = new java.lang.StringBuilder ( VdcBllMessages.ACTION_TYPE_FAILED_DISK_IS_BEING_REMOVED.name ( ) ) . append ( java.lang.String.format ( "$DiskName %1$s" , getDiskAlias ( ) ) ) . toString ( ) ; } return cachedDiskIsBeingRemovedLockMessage ; }

Target:
private java.lang.String getDiskIsBeingRemovedLockMessage ( ) { if ( ( cachedDiskIsBeingRemovedLockMessage ) == null ) { cachedDiskIsBeingRemovedLockMessage = new java.lang.StringBuilder ( EngineMessage.ACTION_TYPE_FAILED_DISK_IS_BEING_REMOVED.name ( ) ) . append ( java.lang.String.format ( "$DiskName %1$s" , getDiskAlias ( ) ) ) . toString ( ) ; } return cachedDiskIsBeingRemovedLockMessage ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VM > ( ) ; } return source ; }
Source:
public void setIsExecutionAllowed ( boolean value ) { if ( ( isExecutionAllowed ) != value ) { isExecutionAllowed = value ; if ( value ) { getExecuteProhibitionReasons ( ) . clear ( ) ; } OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "IsExecutionAllowed" ) ) ; } }

Target:
public void setIsExecutionAllowed ( boolean value ) { if ( ( isExecutionAllowed ) != value ) { isExecutionAllowed = value ; if ( value ) { getExecuteProhibitionReasons ( ) . clear ( ) ; } OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "IsExecutionAllowed" ) ) ; } }
Source:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotDisabledNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; usb.setType ( UsbType.NATIVE ) ; assertEquals ( UsbPolicy.DISABLED , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED ) ) ; }

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.Assert.assertEquals ( UsbPolicy.ENABLED_NATIVE , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED ) ) ; }
Source:
private static org.ovirt.engine.core.dao.profiles.CpuProfileDao getCpuProfileDao ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getCpuProfileDao ( ) ; }

Target:
private boolean isProfilePermitted ( org.ovirt.engine.core.compat.Guid cpuProfileId , org.ovirt.engine.core.compat.Guid userId ) { return ( userId == null ) || ( ( permissionDao.getEntityPermissions ( userId , ActionGroup.ASSIGN_CPU_PROFILE , cpuProfileId , VdcObjectType.CpuProfile ) ) != null ) ; }
Source:
public void validateVmMemoryCantRunOnVdsSmallHost ( ) { vds.setPhysicalMemMb ( 5000 ) ; boolean vmPassedMemoryRequirement = slaValidator.hasOvercommitMemoryToRunVM ( vds , vm ) ; org.junit.Assert.assertFalse ( vmPassedMemoryRequirement ) ; }

Target:
public void validateVmMemoryCantRunOnVdsSmallHost ( ) { vds.setPhysicalMemMb ( 5000 ) ; boolean vmPassedMemoryRequirement = slaValidator.hasOvercommitMemoryToRunVM ( vds , vm ) ; org.junit.jupiter.api.Assertions.assertFalse ( vmPassedMemoryRequirement ) ; }
Source:
public void versionHigherThanCluster ( ) { storagePoolWithVersionHigherThanCluster ( ) ; canDoActionFailed ( VdcBllMessages.ERROR_CANNOT_UPDATE_STORAGE_POOL_COMPATIBILITY_VERSION_BIGGER_THAN_CLUSTERS.toString ( ) ) ; }

Target:
public void nameExists ( ) { newPoolNameIsAlreadyTaken ( ) ; canDoActionFailed ( VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_POOL_NAME_ALREADY_EXIST ) ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.gluster.GlusterVolumeSnapshotListModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.gluster.GlusterVolumeSnapshotListModel ) ( result.getState ( ) ) ) ; localModel.stopProgress ( ) ; localModel.postSnapshotAction ( result.getReturnValue ( ) ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.gluster.GlusterVolumeSnapshotListModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.gluster.GlusterVolumeSnapshotListModel ) ( result.getState ( ) ) ) ; snapshotModel.stopProgress ( ) ; localModel.postSnapshotAction ( result.getReturnValue ( ) ) ; }
Source:
public void networkNotInVfsConfigValid ( ) { networkInVfsConfigCommonTest ( false ) ; org.junit.Assert.assertThat ( validator.networkNotInVfsConfig ( org.ovirt.engine.core.bll.validator.VfsConfigValidatorTest.NETWORK_ID ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void networkNotInVfsConfigValid ( ) { networkInVfsConfigCommonTest ( false ) ; org.hamcrest.MatcherAssert.assertThat ( validator.networkNotInVfsConfig ( org.ovirt.engine.core.bll.validator.VfsConfigValidatorTest.NETWORK_ID ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void setAutomaticLargePage ( java.lang.Object value ) { if ( ( automaticLargePage ) != value ) { automaticLargePage = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "AutomaticLargePage" ) ) ; } }

Target:
public void setAutomaticLargePage ( java.lang.Object value ) { if ( ( automaticLargePage ) != value ) { automaticLargePage = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "AutomaticLargePage" ) ) ; } }
Source:
public java.lang.String getvmt_description ( ) { return this . vmt_descriptionField ; }

Target:
public void setFailBack ( boolean value ) { this . vmStatic.setFailBack ( value ) ; }
Source:
public void testHostKey ( ) throws java.lang.Exception { org.junit.Assume.assumeNotNull ( TestCommon.sshd ) ; client.connect ( ) ; org.junit.Assert.assertEquals ( TestCommon.sshd.getKey ( ) , client.getHostKey ( ) ) ; }

Target:
public void testHostKey ( ) throws java.lang.Exception { org.junit.jupiter.api.Assumptions.assumeTrue ( ( ( TestCommon.sshd ) != null ) ) ; client.connect ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( TestCommon.sshd.getKey ( ) , client.getHostKey ( ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc sendHcCmdToDesktop ( java.lang.String vmId , java.lang.String hcCommand ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc desktopLogoff ( java.lang.String vmId , java.lang.String force ) ;
Source:
protected void fillImagesBySnapshots ( org.ovirt.engine.core.common.businessentities.VM vm ) { org.ovirt.engine.core.bll.ImagesHandler.fillImagesBySnapshots ( vm ) ; }

Target:
protected void fillImagesBySnapshots ( org.ovirt.engine.core.common.businessentities.VM vm ) { org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.fillImagesBySnapshots ( vm ) ; }
Source:
private static boolean isDiskOrInterface ( org.ovirt.engine.core.common.businessentities.VmDevice vmDevice ) { return ( org.ovirt.engine.core.common.utils.VmDeviceCommonUtils.isDisk ( vmDevice ) ) || ( org.ovirt.engine.core.common.utils.VmDeviceCommonUtils.isBridge ( vmDevice ) ) ; }

Target:
private static boolean isDiskOrInterface ( org.ovirt.engine.core.common.businessentities.VmDevice vmDevice ) { return ( org.ovirt.engine.core.common.utils.VmDeviceCommonUtils.isDisk ( vmDevice ) ) || ( org.ovirt.engine.core.common.utils.VmDeviceCommonUtils.isNetwork ( vmDevice ) ) ; }
Source:
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 ( ) ) ; }

Target:
public void testGetAllForTemplate ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Tags > result = dao.getAllForTemplate ( vm.getUuid ( ) . toString ( ) ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertFalse ( result.isEmpty ( ) ) ; }
Source:
public static org.ovirt.engine.core.bll.context.CommandContext createDefaultContexForTasks ( org.ovirt.engine.core.bll.job.ExecutionContext parentContext ) { return org.ovirt.engine.core.bll.job.ExecutionHandler.createDefaultContexForTasks ( parentContext , null ) ; }

Target:
public static org.ovirt.engine.core.bll.context.CommandContext createDefaultContextForTasks ( org.ovirt.engine.core.bll.context.CommandContext parentContext ) { return org.ovirt.engine.core.bll.job.ExecutionHandler.createDefaultContextForTasks ( parentContext , null ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult snapshotExists ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.compat.Guid snapshotId ) { return org.ovirt.engine.core.bll.snapshots.SnapshotsValidator.createSnapshotExistsResult ( getSnapshotDao ( ) . exists ( vmId , snapshotId ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult snapshotExists ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.compat.Guid snapshotId ) { return createSnapshotExistsResult ( snapshotDao.exists ( vmId , snapshotId ) ) ; }
Source:
static org.ovirt.engine.core.common.businessentities.storage_server_connections setUpStorageServerConnection ( ) { org.ovirt.engine.core.common.businessentities.storage_server_connections cnx = new org.ovirt.engine.core.common.businessentities.storage_server_connections ( ) ; cnx.setid ( GUIDS [ 0 ] . toString ( ) ) ; cnx.setconnection ( ( "10.11.12.13" + ( ":" + "/1" ) ) ) ; return cnx ; }

Target:
static org.ovirt.engine.core.common.businessentities.StorageServerConnections setUpStorageServerConnection ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections cnx = new org.ovirt.engine.core.common.businessentities.StorageServerConnections ( ) ; cnx.setid ( GUIDS [ 0 ] . toString ( ) ) ; cnx.setconnection ( ( "10.11.12.13" + ( ":" + "/1" ) ) ) ; return cnx ; }
Source:
public void validateSucceeds ( ) { mockVdsWithOsVersion ( org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.VALID_OVIRT_VERSION ) ; command.getParameters ( ) . setoVirtIsoFile ( org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.VALID_VERSION_OVIRT_ISO_FILENAME ) ; org.junit.Assert.assertTrue ( command.validate ( ) ) ; }

Target:
public void validateSucceeds ( ) { mockVdsWithOsVersion ( org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.VALID_OVIRT_VERSION ) ; command.getParameters ( ) . setoVirtIsoFile ( org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.VALID_VERSION_OVIRT_ISO_FILENAME ) ; org.junit.jupiter.api.Assertions.assertTrue ( command.validate ( ) ) ; }