auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private static org.ovirt.engine.core.common.businessentities.VDSGroup createVdsGroupWithOlderVersion ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup group = org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.createNewVdsGroup ( ) ; group.setcompatibility_version ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.VERSION_1_0 ) ; return group ; }

Target:
private static org.ovirt.engine.core.common.businessentities.VDSGroup createVdsGroupWithOlderVersion ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup group = org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.createNewVdsGroup ( ) ; group.setcompatibility_version ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.VERSION_1_0 ) ; group.setStoragePoolId ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.STORAGE_POOL_ID ) ; return group ; }
Source:
private void logAction ( org.ovirt.engine.core.common.businessentities.VDS vds , org.ovirt.engine.core.common.AuditLogType type ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase loggable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; loggable.addCustomValue ( "Host" , vds.getName ( ) ) ; org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( loggable , type ) ; }

Target:
private void logAction ( org.ovirt.engine.core.common.businessentities.VDS vds , org.ovirt.engine.core.common.AuditLogType type ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase loggable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; loggable.addCustomValue ( "Host" , vds.getName ( ) ) ; new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector ( ) . log ( loggable , type ) ; }
Source:
public void setValue ( java.lang.Object value , boolean fireEvents ) { asSuggestBox ( ) . setValue ( ( ( java.lang.String ) ( value ) ) , fireEvents ) ; }

Target:
protected void render ( java.lang.Object value , boolean fireEvents ) { asSuggestBox ( ) . setValue ( ( ( java.lang.String ) ( value ) ) , fireEvents ) ; }
Source:
public void setBonds ( java.util.List < org.ovirt.engine.core.common.businessentities.network.Bond > bonds ) { this . bonds = bonds ; }

Target:
public void setCreateOrUpdateBonds ( java.util.List < org.ovirt.engine.core.common.action.CreateOrUpdateBond > createOrUpdateBond ) { this . createOrUpdateBond = createOrUpdateBond ; }
Source:
private void propagateLabeledNetworksChanges ( ) { runInternalAction ( VdcActionType.PropagateLabeledNetworksToClusterHosts , getParameters ( ) ) ; }

Target:
private void propagateLabeledNetworksChanges ( ) { runInternalAction ( VdcActionType.PropagateLabeledNetworksToClusterHosts , cloneParams ( ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterGeoRepMountBrokerSetup ( java.lang.String remoteVolumeName , java.lang.String remoteUserName , java.lang.String remoteGroupName ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterGeoRepMountBrokerSetup ( java.lang.String remoteVolumeName , java.lang.String userName , java.lang.String remoteGroupName , java.lang.Boolean partial ) ;
Source:
public < T > T getOptionalEntity ( java.lang.Class < T > clz , org.ovirt.engine.core.common.queries.VdcQueryType query , org.ovirt.engine.core.common.queries.VdcQueryParametersBase queryParams , java.lang.String identifier , boolean notFoundAs404 ) { return getEntity ( clz , query , queryParams , identifier , notFoundAs404 , false ) ; }

Target:
public < T > T getOptionalEntity ( 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 , false ) ; }
Source:
public java.util.Date getGuestLastLogoutTime ( ) { return this . vmDynamic.getguest_last_logout_time ( ) ; }

Target:
public java.lang.Boolean getKvmEnable ( ) { return this . vmDynamic.getKvmEnable ( ) ; }
Source:
private void DataCenter_SelectedItemChanged ( ) { UpdateItemsAvailability ( ) ; }

Target:
private void DataCenter_SelectedItemChanged ( ) { UpdateItemsAvailability ( ) ; updateDataCenterAlert ( ) ; }
Source:
public void incorrect ( ) { org.junit.Assert.assertFalse ( validation.validate ( "someHostname:" ) . getSuccess ( ) ) ; org.junit.Assert.assertFalse ( validation.validate ( "://someHostname" ) . getSuccess ( ) ) ; org.junit.Assert.assertFalse ( validation.validate ( "so m eHostname" ) . getSuccess ( ) ) ; org.junit.Assert.assertFalse ( validation.validate ( "asd:/someHostname" ) . getSuccess ( ) ) ; org.junit.Assert.assertFalse ( validation.validate ( "asd:someHostname" ) . getSuccess ( ) ) ; org.junit.Assert.assertFalse ( validation.validate ( "someHostname:abc" ) . getSuccess ( ) ) ; }

Target:
public void incorrect ( ) { org.junit.jupiter.api.Assertions.assertFalse ( validation.validate ( "someHostname:" ) . getSuccess ( ) ) ; org.junit.jupiter.api.Assertions.assertFalse ( validation.validate ( "://someHostname" ) . getSuccess ( ) ) ; org.junit.jupiter.api.Assertions.assertFalse ( validation.validate ( "so m eHostname" ) . getSuccess ( ) ) ; org.junit.jupiter.api.Assertions.assertFalse ( validation.validate ( "asd:/someHostname" ) . getSuccess ( ) ) ; org.junit.jupiter.api.Assertions.assertFalse ( validation.validate ( "asd:someHostname" ) . getSuccess ( ) ) ; org.junit.jupiter.api.Assertions.assertFalse ( validation.validate ( "someHostname:abc" ) . getSuccess ( ) ) ; }
Source:
public static org.ovirt.engine.core.bll.TagsDirector getInstance ( ) { return org.ovirt.engine.core.bll.TagsDirector.instance ; }

Target:
protected org.ovirt.engine.core.dao.TagDao getTagDao ( ) { return tagDao ; }
Source:
private org.ovirt.engine.core.bll.ValidationResult networkExists ( org.ovirt.engine.core.common.businessentities.network.Network oldNetwork ) { return oldNetwork == null ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.NETWORK_NOT_EXISTS ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
private org.ovirt.engine.core.bll.ValidationResult networkExists ( ) { return ( getOldNetwork ( ) ) == null ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.NETWORK_NOT_EXISTS ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
private org.ovirt.engine.core.dao.StoragePoolIsoMapDAO getStoragePoolIsoMapDAO ( ) { return org.ovirt.engine.core.bll.storage.CINDERStorageHelper.getDbFacade ( ) . getStoragePoolIsoMapDao ( ) ; }

Target:
private org.ovirt.engine.core.dao.StoragePoolIsoMapDao getStoragePoolIsoMapDao ( ) { return org.ovirt.engine.core.bll.storage.CINDERStorageHelper.getDbFacade ( ) . getStoragePoolIsoMapDao ( ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VmOsType extractOsType ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel item ) { return item.getOsType ( ) ; }

Target:
public int extractOsType ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel item ) { return item.getOsId ( ) ; }
Source:
public void hostDoesNotExist ( ) { validator = new org.ovirt.engine.core.bll.validator.UpdateHostValidator ( dbFacade , null , host , false ) ; org.junit.Assert.assertThat ( validator.hostExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.VDS_INVALID_SERVER_ID ) ) ; }

Target:
public void hostDoesNotExist ( ) { validator = new org.ovirt.engine.core.bll.validator.UpdateHostValidator ( dbFacade , null , host , false , hostedEngineHelper ) ; org.junit.Assert.assertThat ( validator.hostExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.VDS_INVALID_SERVER_ID ) ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getQuotaId ( ) { return this . mVmStatic.getQuotaId ( ) ; }

Target:
public void setVmCreationDate ( java.util.Date value ) { this . vmStatic.setCreationDate ( value ) ; }
Source:
public void storagePoolStatusChange ( org.ovirt.engine.core.compat.Guid storagePoolId , org.ovirt.engine.core.common.businessentities.StoragePoolStatus status , org.ovirt.engine.core.common.AuditLogType auditLogType , org.ovirt.engine.core.common.errors.VdcBllErrors error ) { storagePoolStatusChange ( storagePoolId , status , auditLogType , error , null ) ; }

Target:
public void processOnCpuFlagsChange ( org.ovirt.engine.core.compat.Guid vdsId ) { backend.runInternalAction ( VdcActionType.HandleVdsCpuFlagsOrClusterChanged , new org.ovirt.engine.core.common.action.VdsActionParameters ( vdsId ) ) ; }
Source:
public void testRemove ( ) { dao.remove ( FixturesTool.HOOK_ID ) ; org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity hook = dao.getById ( FixturesTool.HOOK_ID ) ; org.junit.Assert.assertNull ( hook ) ; org.ovirt.engine.core.common.businessentities.gluster.GlusterServerHook serverhook = dao.getGlusterServerHook ( FixturesTool.HOOK_ID , org.ovirt.engine.core.dao.gluster.GlusterHooksDaoTest.SERVER_ID ) ; org.junit.Assert.assertNull ( serverhook ) ; }

Target:
public void testRemove ( ) { dao.remove ( FixturesTool.HOOK_ID ) ; org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity hook = dao.getById ( FixturesTool.HOOK_ID ) ; org.junit.Assert.assertNull ( hook ) ; org.ovirt.engine.core.common.businessentities.gluster.GlusterServerHook serverhook = dao.getGlusterServerHook ( FixturesTool.HOOK_ID , FixturesTool.VDS_GLUSTER_SERVER2 ) ; org.junit.Assert.assertNull ( serverhook ) ; }
Source:
public org.ovirt.engine.core.vdsbroker.vdsbroker.ServerConnectionListReturnForXmlRpc getStorageConnectionsList ( java.lang.String spUUID ) { return null ; }

Target:
public org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc snapshot ( java.lang.String vmId , java.util.Map < java.lang.String , java.lang.String > [ ] disks , java.lang.String memory ) { return snapshot ( vmId , disks , memory , false ) ; }
Source:
public void testLongName ( ) { vmStatic.setName ( "this_should_be_very_long_vm_name_so_it will_fail_can_do_action_validation" ) ; org.junit.Assert.assertFalse ( "canDoAction should fail for too long vm name." , command.canDoAction ( ) ) ; assertCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_NAME_LENGTH_IS_TOO_LONG ) ; }

Target:
public void testLongName ( ) { vmStatic.setName ( "this_should_be_very_long_vm_name_so_it will_fail_can_do_action_validation" ) ; org.junit.Assert.assertFalse ( "canDoAction should fail for too long vm name." , command.canDoAction ( ) ) ; assertCanDoActionMessage ( EngineMessage.ACTION_TYPE_FAILED_NAME_LENGTH_IS_TOO_LONG ) ; }
Source:
private static org.ovirt.engine.core.bll.tasks.AsyncTaskManager getAsyncTaskManager ( ) { return org.ovirt.engine.core.bll.tasks.AsyncTaskManager.getInstance ( org.ovirt.engine.core.bll.tasks.CommandCoordinatorImpl.getInstance ( ) ) ; }

Target:
private static org.ovirt.engine.core.bll.tasks.AsyncTaskManager getAsyncTaskManager ( ) { return org.ovirt.engine.core.bll.tasks.AsyncTaskManager.getInstance ( org.ovirt.engine.core.bll.tasks.TaskManagerUtil.coco ) ; }
Source:
public org.ovirt.engine.api.model.Network lookupEntity ( org.ovirt.engine.core.compat.Guid ignore ) throws org.ovirt.engine.api.restapi.resource.BackendFailureException { return getEntity ( org.ovirt.engine.api.model.Network.class , VdcQueryType.GetNetworkById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) , id ) ; }

Target:
protected org.ovirt.engine.core.common.action.VdcActionParametersBase getRemoveParameters ( org.ovirt.engine.api.model.Network entity ) { return new org.ovirt.engine.core.common.action.RemoveNetworkParameters ( entity.getId ( ) ) ; }
Source:
public static < R extends org.ovirt.engine.api.model.BaseResource > R newModel ( java.lang.Class < R > clz ) { R ret = null ; try { ret = clz.newInstance ( ) ; } catch ( java.lang.Exception e ) { } return ret ; }

Target:
public static < R extends org.ovirt.engine.api.model.BaseResource > R newModel ( java.lang.Class < R > clz ) { R ret = null ; try { ret = clz.newInstance ( ) ; } catch ( java.lang.Exception ignore ) { } return ret ; }
Source:
private java.util.Collection < org.ovirt.engine.api.model.DetailedLink > getGlusterLinks ( ) { return org.ovirt.engine.api.restapi.util.ApiRootLinksCreator.getGlusterLinks ( getUriInfo ( ) ) ; }

Target:
private java.util.Collection < org.ovirt.engine.api.model.DetailedLink > getGlusterLinks ( ) { return org.ovirt.engine.api.utils.ApiRootLinksCreator.getGlusterLinks ( getUriInfo ( ) . getBaseUri ( ) . getPath ( ) ) ; }
Source:
protected void EntityPropertyChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . EntityPropertyChanged ( sender , e ) ; UpdateProperties ( ) ; }

Target:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; if ( ( getEntity ( ) ) != null ) { updateProperties ( ) ; } }
Source:
public boolean Match ( org.ovirt.engine.core.common.businessentities.VDS source ) { return source.getStatus ( ) . equals ( status ) ; }

Target:
public boolean match ( org.ovirt.engine.core.common.businessentities.VDS source ) { return source.getStatus ( ) . equals ( status ) ; }
Source:
public void addOrUpdateTaskInDB ( final org.ovirt.engine.core.common.businessentities.AsyncTasks asyncTask ) { persistCommand ( copyToCommandEntity ( asyncTask , commandsCache.get ( asyncTask.getCommandId ( ) ) ) ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getAsyncTaskDao ( ) . saveOrUpdate ( asyncTask ) ; }

Target:
public void saveAsyncTaskToDb ( final org.ovirt.engine.core.common.businessentities.AsyncTasks asyncTask ) { coCoAsyncTaskHelper.saveAsyncTaskToDb ( asyncTask ) ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml link ( java.lang.String id ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml containerAndLink ( java.lang.String cellStyle , java.lang.String id , com.google.gwt.safehtml.shared.SafeHtml text ) ;
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalLoginModel object ) { driver.edit ( object ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalLoginModel object ) { driver.edit ( object ) ; initUserMessageOfTheDayToolTip ( templates ) ; }
Source:
public org.ovirt.engine.api.model.Network lookupEntity ( org.ovirt.engine.core.compat.Guid id ) throws org.ovirt.engine.api.restapi.resource.BackendFailureException { return getEntity ( org.ovirt.engine.api.model.Network.class , VdcQueryType.GetNetworkById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) , id.toString ( ) ) ; }

Target:
protected org.ovirt.engine.api.model.Network addParents ( org.ovirt.engine.api.model.Network model ) { org.ovirt.engine.api.model.Qos qos = model.getQos ( ) ; if ( qos != null ) { qos.setDataCenter ( model.getDataCenter ( ) ) ; } return model ; }
Source:
private boolean validateSourceStorageDomain ( org.ovirt.engine.core.common.businessentities.StorageDomain sourceDomain ) { org.ovirt.engine.core.bll.validator.StorageDomainValidator validator = new org.ovirt.engine.core.bll.validator.StorageDomainValidator ( sourceDomain ) ; return validate ( validator.isDomainExistAndActive ( ) ) ; }

Target:
private boolean validateSourceStorageDomain ( org.ovirt.engine.core.common.businessentities.StorageDomain sourceDomain ) { org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator validator = new org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator ( sourceDomain ) ; return validate ( validator.isDomainExistAndActive ( ) ) ; }
Source:
private org.ovirt.engine.core.compat.Guid createTaskImpl ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand , java.lang.String description , java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.VdcObjectType > entitiesMap ) { return org.ovirt.engine.core.bll.tasks.TaskManagerUtil.createTask ( taskId , this , asyncTaskCreationInfo , parentCommand , description , entitiesMap ) ; }

Target:
public org.ovirt.engine.core.bll.tasks.interfaces.SPMTask concreteCreateTask ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { return org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.concreteCreateTask ( taskId , this , asyncTaskCreationInfo , parentCommand ) ; }
Source:
public void testValidModifiedBondsFailsWhenInsufficientNumberOfSlaves ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Bond bond = createBond ( ) ; doTestValidModifiedBonds ( bond , ValidationResult.VALID , ValidationResult.VALID , new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.NETWORK_BONDS_INVALID_SLAVE_COUNT , org.ovirt.engine.core.utils.ReplacementUtils.createSetVariableString ( HostSetupNetworksValidator.VAR_NETWORK_BONDS_INVALID_SLAVE_COUNT_LIST , bond.getName ( ) ) ) , ValidationResult.VALID ) ; }

Target:
public void testValidModifiedBondsFailsWhenInsufficientNumberOfSlaves ( ) 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_BONDS_INVALID_SLAVE_COUNT , org.ovirt.engine.core.utils.ReplacementUtils.getVariableAssignmentString ( EngineMessage.NETWORK_BONDS_INVALID_SLAVE_COUNT , bond.getName ( ) ) ) , ValidationResult.VALID ) ; }
Source:
public void prepareConnectHostToStoragePoolServers ( org.ovirt.engine.core.common.action.ConnectHostToStoragePoolServersParameters parameters , java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > connections ) { }

Target:
public boolean prepareConnectHostToStoragePoolServers ( org.ovirt.engine.core.bll.context.CommandContext cmdContext , org.ovirt.engine.core.common.action.ConnectHostToStoragePoolServersParameters parameters , java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > connections ) { return true ; }
Source:
public final void setCallback ( org.ovirt.engine.core.utils.hostinstall.IVdsInstallerCallback callback ) { this . callback = callback ; }

Target:
public final void setCallback ( org.ovirt.engine.core.utils.hostinstall.IVdsInstallerCallback callback ) { org.ovirt.engine.core.utils.hostinstall.VdsInstallerSSH.log.debug ( "setCallback enter" ) ; this . callback = callback ; org.ovirt.engine.core.utils.hostinstall.VdsInstallerSSH.log.debug ( "setCallback leave" ) ; }
Source:
private void logFailureMessage ( java.lang.RuntimeException ex ) { org.ovirt.engine.core.vdsbroker.VdsManager.log.warnFormat ( "VdsManager::refreshVdsRunTimeInfo::Failed to refresh VDS , vds = {0} : {1}, error = '{2}', continuing." , _vds.getId ( ) , _vds.getvds_name ( ) , org.apache.commons.lang.exception.ExceptionUtils.getMessage ( ex ) ) ; }

Target:
private void logFailureMessage ( java.lang.RuntimeException ex ) { org.ovirt.engine.core.vdsbroker.VdsManager.log.warnFormat ( "Failed to refresh VDS , vds = {0} : {1}, error = '{2}', continuing." , _vds.getId ( ) , _vds.getVdsName ( ) , ex ) ; }
Source:
protected boolean canDoAction ( ) { if ( ! ( super . canDoAction ( ) ) ) { return false ; } try { getUpServer ( ) ; return true ; } catch ( org.ovirt.engine.core.common.errors.VdcBLLException e ) { addCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_NO_UP_SERVER_FOUND ) ; return false ; } }

Target:
protected boolean canDoAction ( ) { if ( ! ( super . canDoAction ( ) ) ) { return false ; } upServer = getUpServer ( ) ; if ( ( upServer ) == null ) { addCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_NO_UP_SERVER_FOUND ) ; return false ; } return true ; }
Source:
public void addToHistory_zeroLimit ( ) { org.junit.Assert.assertEquals ( java.util.Collections.emptyList ( ) , statistics.addToHistory ( java.util.Arrays.asList ( 9 , 10 , 11 , 12 ) , 13 , 0 ) ) ; }

Target:
public void addToHistoryZeroLimit ( ) { org.junit.Assert.assertEquals ( java.util.Collections.emptyList ( ) , statistics.addToHistory ( java.util.Arrays.asList ( 9 , 10 , 11 , 12 ) , 13 , 0 ) ) ; }
Source:
public 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 runMultipleActionsImpl ( actionType , parameters , true , executionContext ) ; }

Target:
public java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , boolean isRunOnlyIfAllCanDoPass ) { return runMultipleActions ( actionType , parameters , isRunOnlyIfAllCanDoPass , false ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid getCurrentVdsId ( ) { return ( getVdsDestinationId ( ) ) != null ? getVdsDestinationId ( ) : super . getCurrentVdsId ( ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VDS getDestinationVds ( ) { if ( ( ( cachedDestinationVds ) == null ) && ( ( destinationVdsId ) != null ) ) { cachedDestinationVds = org.ovirt.engine.core.bll.MigrateVmCommand.getVdsDAO ( ) . get ( destinationVdsId ) ; } return cachedDestinationVds ; }
Source:
public void canDoAction_testNameChange_Test ( ) { org.mockito.Mockito.doReturn ( new org.ovirt.engine.core.common.scheduling.AffinityGroup ( ) ) . when ( affinityGroupDao ) . getByName ( affinityGroup.getName ( ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.ACTION_TYPE_FAILED_AFFINITY_GROUP_NAME_EXISTS ) ; }

Target:
public void validate_testNameChange_Test ( ) { org.mockito.Mockito.doReturn ( new org.ovirt.engine.core.common.scheduling.AffinityGroup ( ) ) . when ( affinityGroupDao ) . getByName ( affinityGroup.getName ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_AFFINITY_GROUP_NAME_EXISTS ) ; }
Source:
public void setInfoMessage ( org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.String > infoMessage ) { this . infoMessage = infoMessage ; }

Target:
public void setInfoMessage ( org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.String > problemDescription ) { this . problemDescription = problemDescription ; }
Source:
protected void ExecuteVmCommand ( ) { performDiskUpdate ( ) ; }

Target:
protected void executeVmCommand ( ) { performDiskUpdate ( ) ; }
Source:
protected boolean isVmWithSameNameExists ( java.lang.String name ) { return org.ovirt.engine.core.bll.VmHandler.isVmWithSameNameExistStatic ( name ) ; }

Target:
protected boolean isVmWithSameNameExists ( java.lang.String name , org.ovirt.engine.core.compat.Guid storagePoolId ) { return org.ovirt.engine.core.bll.VmHandler.isVmWithSameNameExistStatic ( name , storagePoolId ) ; }
Source:
public void validateVmMemoryCantStartOnVdsHostTooSmall ( ) { vds.setMemFree ( 8835L ) ; boolean vmPassedMemoryRequirement = org.ovirt.engine.core.bll.scheduling.SlaValidator.getInstance ( ) . hasPhysMemoryToRunVM ( vds , vm , 0 ) ; org.junit.Assert.assertEquals ( vmPassedMemoryRequirement , false ) ; }

Target:
public void validateVmMemoryCantStartOnVdsVmTooBig ( ) { vm.setMinAllocatedMem ( 8865 ) ; vm.setVmMemSizeMb ( 8865 ) ; boolean vmPassedMemoryRequirement = slaValidator.hasPhysMemoryToRunVM ( vds , vm , 0 ) ; org.junit.Assert.assertFalse ( vmPassedMemoryRequirement ) ; }
Source:
private void processVm ( ) { if ( ( org.ovirt.engine.core.bll.MigrateVmCommand.getVm ( ) . getStatus ( ) ) != ( org.ovirt.engine.core.common.businessentities.VMStatus.Up ) ) { decreasePendingVms ( org.ovirt.engine.core.bll.MigrateVmCommand.getVds ( ) . getId ( ) ) ; } }

Target:
private int getMaximumMigrationDowntime ( ) { if ( ( org.ovirt.engine.core.bll.MigrateVmCommand.getVm ( ) . getMigrationDowntime ( ) ) != null ) { return org.ovirt.engine.core.bll.MigrateVmCommand.getVm ( ) . getMigrationDowntime ( ) ; } return org.ovirt.engine.core.common.config.Config.getValue ( ConfigValues.DefaultMaximumMigrationDowntime ) ; }
Source:
protected java.lang.String getSearchPattern ( ) { java.lang.String user_defined_pattern = org.ovirt.engine.api.common.util.QueryHelper.getConstraint ( getUriInfo ( ) , "" , modelType ) ; return user_defined_pattern.equals ( "Users : " ) ? user_defined_pattern + ( org.ovirt.engine.api.restapi.resource.BackendUsersResourceBase.USERS_SEARCH_PATTERN ) : ( user_defined_pattern + ( org.ovirt.engine.api.restapi.resource.BackendUsersResourceBase.AND_SEARCH_PATTERN ) ) + ( org.ovirt.engine.api.restapi.resource.BackendUsersResourceBase.USERS_SEARCH_PATTERN ) ; }

Target:
protected java.lang.String getSearchPattern ( ) { java.lang.String user_defined_pattern = org.ovirt.engine.api.common.util.QueryHelper.getConstraint ( getUriInfo ( ) , "" , modelType ) ; return filterOutGroups ( user_defined_pattern ) ; }
Source:
public void setEntity ( org.ovirt.engine.core.common.businessentities.VM value ) { super . setEntity ( value ) ; UpdateIsDiskHotPlugAvailable ( ) ; }

Target:
protected void OnEntityChanged ( ) { super . OnEntityChanged ( ) ; if ( ( getEntity ( ) ) != null ) { getSearchCommand ( ) . Execute ( ) ; } UpdateActionAvailability ( ) ; UpdateIsDiskHotPlugAvailable ( ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.action.LiveMigrateDiskParameters > createLiveMigrateVmDisksParameters ( org.ovirt.engine.core.compat.Guid srcStorageId , org.ovirt.engine.core.compat.Guid dstStorageId ) { return java.util.Arrays.asList ( new org.ovirt.engine.core.common.action.LiveMigrateDiskParameters ( diskImageId , srcStorageId , dstStorageId , vmId , quotaId , diskImageGroupId ) ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.action.LiveMigrateDiskParameters > createLiveMigrateVmDisksParameters ( org.ovirt.engine.core.compat.Guid srcStorageId , org.ovirt.engine.core.compat.Guid dstStorageId ) { return java.util.Arrays.asList ( new org.ovirt.engine.core.common.action.LiveMigrateDiskParameters ( diskImageId , srcStorageId , dstStorageId , vmId , quotaId , diskProfileId , diskImageGroupId ) ) ; }
Source:
public boolean isNetworkExclusivenessPermissiveValidation ( java.lang.String version ) { return ( ( java.lang.Boolean ) ( getConfigValuePreConverted ( ConfigurationValues.NetworkExclusivenessPermissiveValidation , version ) ) ) ; }

Target:
public java.lang.Boolean isMemoryHotUnplugSupportedByArchitecture ( org.ovirt.engine.core.common.businessentities.ArchitectureType architecture , org.ovirt.engine.core.compat.Version version ) { return memoryHotUnplugSupport.get ( architecture ) . get ( version ) ; }
Source:
public org.ovirt.engine.core.compat.NGuid getrun_on_vds ( ) { return this . runOnVds ; }

Target:
public org.ovirt.engine.core.compat.NGuid getRunOnVds ( ) { return this . runOnVds ; }
Source:
public void resetAndFocus ( ) { userNameEditor.asValueBox ( ) . selectAll ( ) ; userNameEditor.asValueBox ( ) . setFocus ( true ) ; clearErrorMessage ( ) ; }

Target:
public void resetAndFocus ( ) { userNameEditor.asValueBox ( ) . selectAll ( ) ; userNameEditor.asValueBox ( ) . setFocus ( true ) ; clearErrorMessage ( ) ; setToolTipPositionAndShow ( ) ; }
Source:
public void lowerVersionMgmtNetworkSupportedFeatures ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addManagementNetworkToPool ( ) ; setupNetworkValidator ( true ) ; org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }

Target:
public void lowerVersionMgmtNetworkAndRegularNetworks ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addNonManagementNetworksToPool ( 2 ) ; canDoActionFailed ( VdcBllMessages.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcActionParametersBase createActionParameters ( org.ovirt.engine.core.common.businessentities.VM vm ) { return new org.ovirt.engine.core.common.action.StopVmParameters ( vm.getId ( ) , org.ovirt.engine.core.common.action.StopVmTypeEnum.NORMAL ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcActionParametersBase createActionParameters ( org.ovirt.engine.core.common.businessentities.VM vm ) { return new org.ovirt.engine.core.common.action.StopVmParameters ( vm.getId ( ) , org.ovirt.engine.core.common.action.StopVmTypeEnum.NORMAL , model.getReason ( ) . getEntity ( ) ) ; }
Source:
public void networkNameTakenByDifferentNetwork ( ) throws java.lang.Exception { networkNameAvailableTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_NETWORK_NAME_IN_USE ) , getSingletonNamedNetworkList ( DEFAULT_NETWORK_NAME , OTHER_GUID ) ) ; }

Target:
public void networkNameTakenByDifferentNetwork ( ) throws java.lang.Exception { networkNameAvailableTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_NETWORK_NAME_IN_USE ) , org.ovirt.engine.core.bll.validator.NetworkValidatorTest.getSingletonNamedNetworkList ( org.ovirt.engine.core.bll.validator.NetworkValidatorTest.DEFAULT_NETWORK_NAME , org.ovirt.engine.core.bll.validator.NetworkValidatorTest.OTHER_GUID ) ) ; }
Source:
public void cancelConfirmFocusPM ( ) { org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel hostModel = ( ( org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel ) ( getWindow ( ) ) ) ; hostModel.setIsPowerManagementTabSelected ( true ) ; setConfirmWindow ( null ) ; }

Target:
public void cancelConfirmFocusPM ( ) { org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel hostModel = ( ( org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel ) ( org.ovirt.engine.ui.uicommonweb.models.hosts.HostListModel.getWindow ( ) ) ) ; hostModel.setIsPowerManagementTabSelected ( true ) ; org.ovirt.engine.ui.uicommonweb.models.hosts.HostListModel.setConfirmWindow ( null ) ; }
Source:
private static void addToAuditLogErrorMessage ( java.lang.String problematicRepoFilesList ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; logable.addCustomValue ( "imageDomains" , problematicRepoFilesList ) ; org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( logable , AuditLogType.REFRESH_REPOSITORY_IMAGE_LIST_FAILED ) ; }

Target:
private static void addToAuditLogErrorMessage ( java.lang.String problematicRepoFilesList ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; logable.addCustomValue ( "imageDomains" , problematicRepoFilesList ) ; org.ovirt.engine.core.bll.IsoDomainListSyncronizer.auditLogDirector.log ( logable , AuditLogType.REFRESH_REPOSITORY_IMAGE_LIST_FAILED ) ; }
Source:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return org.ovirt.engine.core.bll.pm.FenceVdsBaseCommand.createFenceExclusiveLocksMap ( org.ovirt.engine.core.bll.pm.VdsKdumpDetectionCommand.getVdsId ( ) ) ; }

Target:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return hostLocking.getPowerManagementLock ( org.ovirt.engine.core.bll.pm.VdsKdumpDetectionCommand.getVdsId ( ) ) ; }
Source:
private org.ovirt.engine.core.compat.Guid getVmSnapshotIdForType ( org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotType type ) { return org.ovirt.engine.core.bll.RestoreStatelessVmCommand.getSnapshotDao ( ) . getId ( org.ovirt.engine.core.bll.RestoreStatelessVmCommand.getVmId ( ) , type ) ; }

Target:
private org.ovirt.engine.core.compat.Guid getVmSnapshotIdForType ( org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotType type ) { return snapshotDao.getId ( org.ovirt.engine.core.bll.RestoreStatelessVmCommand.getVmId ( ) , type ) ; }
Source:
private void rdp_Disconnected ( java.lang.Object sender , org.ovirt.engine.ui.uicommonweb.models.vms.ErrorCodeEventArgs e ) { getrdp ( ) . getDisconnectedEvent ( ) . removeListener ( this ) ; if ( ( e.getErrorCode ( ) ) > 100 ) { getErrorEvent ( ) . raise ( this , e ) ; } }

Target:
public void raiseErrorEvent ( org.ovirt.engine.ui.uicommonweb.models.vms.ErrorCodeEventArgs e ) { getErrorEvent ( ) . raise ( this , e ) ; }
Source:
public void setpm_user ( java.lang.String value ) { mVdsStatic.setpm_user ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "pm_user" ) ) ; }

Target:
public java.lang.String getPmSecondaryIp ( ) { return mVdsStatic.getPmSecondaryIp ( ) ; }
Source:
protected org.ovirt.engine.core.aaa.DirectoryGroup getEntity ( int index ) { return new org.ovirt.engine.core.aaa.DirectoryGroup ( DOMAIN , new java.lang.String ( javax.xml.bind.DatatypeConverter.parseHexBinary ( EXTERNAL_IDS [ index ] ) , java.nio.charset.Charset.forName ( "UTF-8" ) ) , NAMES [ index ] ) ; }

Target:
protected org.ovirt.engine.core.aaa.DirectoryGroup getEntity ( int index ) { return new org.ovirt.engine.core.aaa.DirectoryGroup ( DOMAIN , NAMESPACE , new java.lang.String ( javax.xml.bind.DatatypeConverter.parseHexBinary ( EXTERNAL_IDS [ index ] ) , java.nio.charset.Charset.forName ( "UTF-8" ) ) , NAMES [ index ] ) ; }
Source:
public void run ( ) { processVmPoolOnStopVm ( ) ; }

Target:
protected void failedToRunVm ( ) { org.ovirt.engine.core.bll.RunVmCommandBase.log ( ) ; processVmPoolOnStopVm ( ) ; org.ovirt.engine.core.bll.job.ExecutionHandler.setAsyncJob ( org.ovirt.engine.core.bll.RunVmCommandBase.getExecutionContext ( ) , false ) ; org.ovirt.engine.core.bll.job.ExecutionHandler.endJob ( org.ovirt.engine.core.bll.RunVmCommandBase.getExecutionContext ( ) , false ) ; }
Source:
public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { updateInfoPanel ( ) ; }

Target:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( ) { return getModel ( ) . getRemoveCommand ( ) ; }
Source:
public static boolean setDiskAlias ( org.ovirt.engine.core.common.businessentities.BaseDisk disk , org.ovirt.engine.core.common.businessentities.VM vm ) { return org.ovirt.engine.core.bll.ImagesHandler.setDiskAlias ( disk , vm , org.ovirt.engine.core.bll.ImagesHandler.nullSafeGetCount ( vm ) ) ; }

Target:
public static boolean setDiskAlias ( org.ovirt.engine.core.common.businessentities.storage.BaseDisk disk , org.ovirt.engine.core.common.businessentities.VM vm ) { return org.ovirt.engine.core.bll.ImagesHandler.setDiskAlias ( disk , vm , org.ovirt.engine.core.bll.ImagesHandler.nullSafeGetCount ( vm ) ) ; }
Source:
private boolean hasVMs ( ) { return ! ( org.ovirt.engine.core.bll.ClearNonResponsiveVdsVmsCommand.getVmDao ( ) . getAllRunningForVds ( org.ovirt.engine.core.bll.ClearNonResponsiveVdsVmsCommand.getVdsId ( ) ) . isEmpty ( ) ) ; }

Target:
private boolean hasVMs ( ) { return ! ( org.ovirt.engine.core.bll.ClearNonResponsiveVdsVmsCommand.getVmDynamicDao ( ) . getAllRunningForVds ( org.ovirt.engine.core.bll.ClearNonResponsiveVdsVmsCommand.getVdsId ( ) ) . isEmpty ( ) ) ; }
Source:
public void setPrincipal ( java.lang.String sessionId , java.lang.String principal ) { setData ( sessionId , org.ovirt.engine.core.bll.aaa.SessionDataContainer.PRINCIPAL_PARAMETER_NAME , principal ) ; }

Target:
public org.ovirt.engine.core.aaa.AuthenticationProfile getProfile ( java.lang.String sessionId ) { return ( ( org.ovirt.engine.core.aaa.AuthenticationProfile ) ( getData ( sessionId , org.ovirt.engine.core.bll.aaa.SessionDataContainer.PROFILE_PARAMETER_NAME , false ) ) ) ; }
Source:
public void testUpdateFieldsQuotaEnforcementType ( ) { vm.setQuotaEnforcementType ( QuotaEnforcementTypeEnum.DISABLED ) ; vmStatic.setQuotaEnforcementType ( QuotaEnforcementTypeEnum.SOFT_ENFORCEMENT ) ; org.junit.Assert.assertTrue ( "Quota enforcement type should be updatable" , command.areUpdatedFieldsLegal ( ) ) ; }

Target:
public void testUpdateFieldsQuotaEnforcementType ( ) { vm.setQuotaEnforcementType ( QuotaEnforcementTypeEnum.DISABLED ) ; vmStatic.setQuotaEnforcementType ( QuotaEnforcementTypeEnum.SOFT_ENFORCEMENT ) ; org.junit.jupiter.api.Assertions.assertTrue ( command.areUpdatedFieldsLegal ( ) , "Quota enforcement type should be updatable" ) ; }
Source:
protected void OnEntityChanged ( ) { super . OnEntityChanged ( ) ; getSearchCommand ( ) . Execute ( ) ; }

Target:
protected void OnEntityChanged ( ) { super . OnEntityChanged ( ) ; Search ( ) ; }
Source:
public void CancelConfirmFocusPM ( ) { org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel hostModel = ( ( org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel ) ( getWindow ( ) ) ) ; hostModel.setIsPowerManagementTabSelected ( true ) ; setConfirmWindow ( null ) ; }

Target:
public void cancelConfirmFocusPM ( ) { org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel hostModel = ( ( org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel ) ( getWindow ( ) ) ) ; hostModel.setIsPowerManagementTabSelected ( true ) ; setConfirmWindow ( null ) ; }
Source:
public abstract java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getVmUnamagedDeviceList ( ) ;

Target:
public abstract java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getUnmanagedDeviceList ( ) ;
Source:
private boolean checkIsDomainLocked ( org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap domainMap ) { if ( ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Locked ) == ( domainMap.getStatus ( ) ) ) { addInvalidSDStatusMessage ( StorageDomainStatus.Locked ) ; return true ; } return false ; }

Target:
private boolean checkIsDomainLocked ( org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap domainMap ) { if ( ( ( domainMap.getStatus ( ) ) != null ) && ( domainMap.getStatus ( ) . isStorageDomainInProcess ( ) ) ) { addInvalidSDStatusMessage ( StorageDomainStatus.Locked ) ; return true ; } return false ; }
Source:
public static void startPollingTask ( org.ovirt.engine.core.compat.Guid taskID ) { org.ovirt.engine.core.bll.tasks.TaskManagerUtil.getAsyncTaskManager ( ) . startPollingTask ( taskID ) ; }

Target:
public static void startPollingTask ( org.ovirt.engine.core.compat.Guid taskID ) { org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.getAsyncTaskManager ( ) . startPollingTask ( taskID ) ; }
Source:
public void validateVmMemoryCanRunOnVds ( ) { boolean vmPassedMemoryRequirement = slaValidator.hasOvercommitMemoryToRunVM ( vds , vm ) ; org.junit.Assert.assertTrue ( vmPassedMemoryRequirement ) ; }

Target:
public void validateVmMemoryCanRunOnVds ( ) { boolean vmPassedMemoryRequirement = slaValidator.hasOvercommitMemoryToRunVM ( vds , vm ) ; org.junit.jupiter.api.Assertions.assertTrue ( vmPassedMemoryRequirement ) ; }
Source:
private void pause ( ) { org.ovirt.engine.core.common.businessentities.VM entity = ( ( org.ovirt.engine.core.common.businessentities.VM ) ( getItem ( ) . getEntity ( ) ) ) ; org.ovirt.engine.ui.frontend.Frontend.RunAction ( VdcActionType.HibernateVm , new org.ovirt.engine.core.common.action.VmOperationParameterBase ( entity.getId ( ) ) ) ; }

Target:
private void pause ( ) { org.ovirt.engine.core.common.businessentities.VM entity = ( ( org.ovirt.engine.core.common.businessentities.VM ) ( getItem ( ) . getEntity ( ) ) ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runAction ( VdcActionType.HibernateVm , new org.ovirt.engine.core.common.action.VmOperationParameterBase ( entity.getId ( ) ) ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotDisabledLegacyPolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; usb.setType ( "legacy" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED , null ) , UsbPolicy.DISABLED ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyNativeGotDisabledLegacyPolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; usb.setType ( "legacy" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE ) , UsbPolicy.DISABLED ) ; }
Source:
public org.ovirt.engine.api.resource.AssignedNetworksResource getAssignedNetworksSubResource ( ) { return org.ovirt.engine.api.restapi.resource.BackendClusterResource.inject ( new org.ovirt.engine.api.restapi.resource.BackendClusterNetworksResource ( id ) ) ; }

Target:
public org.ovirt.engine.api.resource.AssignedNetworksResource getAssignedNetworksResource ( ) { return org.ovirt.engine.api.restapi.resource.BackendClusterResource.inject ( new org.ovirt.engine.api.restapi.resource.BackendClusterNetworksResource ( id ) ) ; }
Source:
public final boolean connect ( java.lang.String server , java.lang.String rootPassword , long timeout ) { org.ovirt.engine.core.utils.hostinstall.Credentials creds = prepareCredentials ( rootPassword ) ; return _do_connect ( server , creds , timeout ) ; }

Target:
public final boolean connect ( java.lang.String server , java.lang.String rootPassword ) { return _doConnect ( server , _prepareCredentials ( rootPassword ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.DisplayType getDisplayType ( ) { return this . vmDynamic.getDisplayType ( ) ; }

Target:
public java.util.List < java.lang.Integer > getCpuUsageHistory ( ) { return this . vmStatistics.getCpuUsageHistory ( ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult clusterNetworkNotUsedByBricks ( ) { return new org.ovirt.engine.core.bll.network.cluster.PluralMessages ( org.ovirt.engine.core.common.errors.EngineMessage.VAR__ENTITIES__GLUSTER_BRICK , org.ovirt.engine.core.common.errors.EngineMessage.VAR__ENTITIES__GLUSTER_BRICKS ) . getNetworkInUse ( getEntitiesNames ( org.ovirt.engine.core.bll.network.cluster.DetachNetworkFromClusterInternalCommand.DetachNetworkValidator.getGlusterBrickDao ( ) . getAllByClusterAndNetworkId ( networkCluster.getClusterId ( ) , network.getId ( ) ) ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult clusterNetworkNotUsedByBricks ( ) { return new org.ovirt.engine.core.bll.network.cluster.PluralMessages ( org.ovirt.engine.core.common.errors.EngineMessage.VAR__ENTITIES__GLUSTER_BRICK , org.ovirt.engine.core.common.errors.EngineMessage.VAR__ENTITIES__GLUSTER_BRICKS ) . getNetworkInUse ( getEntitiesNames ( glusterBrickDao.getAllByClusterAndNetworkId ( networkCluster.getClusterId ( ) , network.getId ( ) ) ) ) ; }
Source:
public void testGetAllWithPermissionsDisabledForUnpriviligedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > result = dao.getAll ( org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , false ) ; org.ovirt.engine.core.dao.VmTemplateDAOTest.assertGetAllResult ( result ) ; }

Target:
public void testGetAllWithPermissionsDisabledForUnpriviligedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > result = dao.getAll ( org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , false , VmEntityType.TEMPLATE ) ; org.ovirt.engine.core.dao.VmTemplateDAOTest.assertGetAllResult ( result ) ; }
Source:
public void testGetImagesWithNoDiskReturnsEmptyList ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > result = dao.getImagesWithNoDisk ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetImagesWithNoDiskReturnsEmptyList ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > result = dao.getImagesWithNoDisk ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
protected void Perform ( ) { org.ovirt.engine.core.bll.StopVmCommand.Destroy ( ) ; org.ovirt.engine.core.bll.StopVmCommand.setSucceeded ( true ) ; }

Target:
protected void Perform ( ) { org.ovirt.engine.core.bll.StopVmCommand.destroyVm ( ) ; org.ovirt.engine.core.bll.StopVmCommand.setSucceeded ( true ) ; }
Source:
public void validateFailureOnCopyingLunDisk ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.LunDisk ( ) ) ; command.getParameters ( ) . setOperation ( ImageOperation.Copy ) ; command.init ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_NOT_SUPPORTED_DISK_STORAGE_TYPE ) ; }

Target:
public void passDiscardNotSupportedForDestSd ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) , VmEntityType.VM ) ; mockPassDiscardSupportedForDestSd ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_PASS_DISCARD_NOT_SUPPORTED_BY_DISK_INTERFACE ) , ImageOperation.Move ) ; org.junit.Assert.assertFalse ( command.validatePassDiscardSupportedForDestinationStorageDomain ( ) ) ; }
Source:
private boolean isRemoveCommandAvailable ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DiskImage > disks ) { for ( org.ovirt.engine.core.common.businessentities.DiskImage disk : disks ) { boolean isImageLocked = ( disk.getimageStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.ImageStatus.LOCKED ) ; if ( isImageLocked ) { return false ; } } return true ; }

Target:
private boolean isRemoveCommandAvailable ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DiskImage > disks ) { for ( org.ovirt.engine.core.common.businessentities.DiskImage disk : disks ) { boolean isImageLocked = ( disk.getImageStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.ImageStatus.LOCKED ) ; if ( isImageLocked ) { return false ; } } return true ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { getDefaultConfigurationVersion ( target ) ; }

Target:
public void onSuccess ( java.util.Map < org.ovirt.engine.core.compat.KeyValuePairCompat < org.ovirt.engine.core.common.queries.ConfigurationValues , java.lang.String > , java.lang.Object > returnValue ) { getDefaultConfigurationVersion ( loginModel ) ; }
Source:
protected boolean isVirtioScsiEnabled ( ) { java.lang.Boolean virtioScsiEnabled = org.ovirt.engine.core.bll.UpdateVmCommand.getParameters ( ) . isVirtioScsiEnabled ( ) ; return virtioScsiEnabled != null ? virtioScsiEnabled : org.ovirt.engine.core.bll.utils.VmDeviceUtils.isVirtioScsiControllerAttached ( getVmId ( ) ) ; }

Target:
protected boolean isSoundDeviceEnabled ( ) { java.lang.Boolean soundDeviceEnabled = org.ovirt.engine.core.bll.UpdateVmCommand.getParameters ( ) . isSoundDeviceEnabled ( ) ; return soundDeviceEnabled != null ? soundDeviceEnabled : org.ovirt.engine.core.bll.utils.VmDeviceUtils.isSoundDeviceEnabled ( getVmId ( ) ) ; }
Source:
public static boolean hasVmGraphicsDeviceOfType ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.common.businessentities.GraphicsType type ) { return ! ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDeviceDao ( ) . getVmDeviceByVmIdTypeAndDevice ( vmId , VmDeviceGeneralType.GRAPHICS , type.name ( ) . toLowerCase ( ) ) . isEmpty ( ) ) ; }

Target:
public static boolean hasVmGraphicsDeviceOfType ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.common.businessentities.GraphicsType type ) { return ! ( org.ovirt.engine.core.bll.utils.VmDeviceUtils.dbFacade.getVmDeviceDao ( ) . getVmDeviceByVmIdTypeAndDevice ( vmId , VmDeviceGeneralType.GRAPHICS , type.name ( ) . toLowerCase ( ) ) . isEmpty ( ) ) ; }