auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testGetRelevantStorageQuotaForUserWithoutPrivileges ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Quota > quotas = dao.getAllRelevantQuotasForStorage ( FixturesTool.STORAGE_DOMAIN_NFS_MASTER , FixturesTool.UNPRIVILEGED_SESSION_ID , true ) ; org.junit.Assert.assertEquals ( "Unprivileged user is not allowed to fetch for quota" , 0 , quotas.size ( ) ) ; }

Target:
public void testGetRelevantStorageQuotaForUserWithoutPrivileges ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Quota > quotas = dao.getAllRelevantQuotasForStorage ( FixturesTool.STORAGE_DOMAIN_NFS_MASTER , FixturesTool.UNPRIVILEGED_SESSION_ID , true ) ; org.junit.jupiter.api.Assertions.assertEquals ( 0 , quotas.size ( ) , "Unprivileged user is not allowed to fetch for quota" ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid createTask ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand , org.ovirt.engine.core.common.VdcObjectType entityType , org.ovirt.engine.core.compat.Guid ... entityIds ) { return createTask ( taskId , asyncTaskCreationInfo , parentCommand , null , entityType , entityIds ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid createTask ( 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 , org.ovirt.engine.core.common.VdcObjectType entityType , org.ovirt.engine.core.compat.Guid ... entityIds ) { return createTask ( taskId , asyncTaskCreationInfo , parentCommand , description , createEntitiesMapForSingleEntityType ( entityType , entityIds ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { allNetworks = ( ( java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > ) ( returnValue ) ) ; queryInterfaces ( ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { allNetworks = ( ( java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > ) ( returnValue ) ) ; queryQoss ( ) ; }
Source:
public java.util.Collection < org.ovirt.engine.core.common.businessentities.network.ExternalVnicProfileMapping > mapFromModel ( org.ovirt.engine.api.model.VnicProfileMappings vnicProfileMappings ) { return isVnicProfileMappingSupplied ( vnicProfileMappings ) ? mapMultipleMappings ( vnicProfileMappings ) : java.util.Collections.emptyList ( ) ; }

Target:
public static java.util.Collection < org.ovirt.engine.core.common.businessentities.network.ExternalVnicProfileMapping > mapFromModel ( org.ovirt.engine.api.model.VnicProfileMappings vnicProfileMappings ) { return org.ovirt.engine.api.restapi.types.ExternalVnicProfileMappingMapper.isVnicProfileMappingSupplied ( vnicProfileMappings ) ? org.ovirt.engine.api.restapi.types.ExternalVnicProfileMappingMapper.mapVnicProfileMappings ( vnicProfileMappings ) : java.util.Collections.emptyList ( ) ; }
Source:
public static org.ovirt.engine.ui.uicompat.ConstantsManager getInstance ( ) { return org.ovirt.engine.ui.uicompat.ConstantsManager.INSTANCE ; }

Target:
public org.ovirt.engine.ui.uicompat.UIConstants getConstants ( ) { if ( ( org.ovirt.engine.ui.uicompat.ConstantsManager.GwtConstantsManager.constants ) == null ) { org.ovirt.engine.ui.uicompat.ConstantsManager.GwtConstantsManager.constants = com.google.gwt.core.client.GWT.create ( org.ovirt.engine.ui.uicompat.UIConstants.class ) ; } return org.ovirt.engine.ui.uicompat.ConstantsManager.GwtConstantsManager.constants ; }
Source:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result = dao.getAll ( ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }

Target:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result = dao.getAll ( ) ; assertCorrectGetAllResult ( result ) ; }
Source:
private boolean hasSnappableDisks ( org.ovirt.engine.core.common.businessentities.VM vm ) { return ! ( vm.getImages ( ) . isEmpty ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.Snapshot addActiveSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId ) { return new org.ovirt.engine.core.bll.snapshots.SnapshotsManager ( ) . addActiveSnapshot ( snapshotId , getVm ( ) , getCompensationContext ( ) ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > getBackendCollection ( ) { return getBackendCollection ( SearchType.AuditLog ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > getBackendCollection ( ) { if ( isFiltered ( ) ) { return getBackendCollection ( VdcQueryType.GetAllEventMessages , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ; } else { return getBackendCollection ( SearchType.AuditLog ) ; } }
Source:
public void deleteJobOlderThanDateWithStatus ( java.util.Date sinceDate , java.util.List < org.ovirt.engine.core.common.job.JobExecutionStatus > statusesList ) { updateQuery ( getEntityManager ( ) . createNamedQuery ( "Job.deleteJobOlderThanDateWithStatus" ) . setParameter ( "sinceDate" , sinceDate ) . setParameter ( "statuses" , statusesList ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.job.Job > getJobsByCorrelationId ( java.lang.String correlationId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "correlation_id" , correlationId ) ; return getCallsHandler ( ) . executeReadList ( "GetJobsByCorrelationId" , createEntityRowMapper ( ) , parameterSource ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetAllTagsQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . getAllTags ( ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetAllTagsQuery.getQueryReturnValue ( ) . setReturnValue ( tagsDirector.getAllTags ( ) ) ; }
Source:
public void onAcccept ( org.ovirt.vdsm.jsonrpc.client.reactors.ReactorListener listener , final org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient client ) { client.addEventListener ( new org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient.EventListener ( ) { @ java.lang.Override public void onMessageReceived ( byte [ ] message ) { client.sendMessage ( message ) ; } } ) ; }

Target:
public void onAcccept ( final org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient client ) { client.addEventListener ( new org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient.MessageListener ( ) { @ java.lang.Override public void onMessageReceived ( byte [ ] message ) { client.sendMessage ( message ) ; } } ) ; }
Source:
public void processResponse ( org.ovirt.vdsm.jsonrpc.client.JsonRpcResponse response ) { org.ovirt.vdsm.jsonrpc.client.internal.JsonRpcCall call = this . runningCalls.remove ( response.getId ( ) ) ; if ( call == null ) { return ; } call.addResponse ( response ) ; }

Target:
public void processResponse ( org.ovirt.vdsm.jsonrpc.client.JsonRpcResponse response ) { org.ovirt.vdsm.jsonrpc.client.internal.JsonRpcCall call = this . tracker.removeCall ( response.getId ( ) ) ; if ( call == null ) { return ; } call.addResponse ( response ) ; }
Source:
protected void OnSelectedItemChanging ( java.lang.Object newValue , java.lang.Object oldValue ) { initSelectionGeustAgentData ( newValue ) ; super . OnSelectedItemChanging ( newValue , oldValue ) ; }

Target:
protected void onSelectedItemChanging ( java.lang.Object newValue , java.lang.Object oldValue ) { initSelectionGeustAgentData ( newValue ) ; super . onSelectedItemChanging ( newValue , oldValue ) ; }
Source:
boolean ConnectStorageToLunByVdsId ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain , org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.common.businessentities.LUNs lun , org.ovirt.engine.core.compat.Guid storagePoolId ) ;

Target:
boolean connectStorageToLunByVdsId ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain , org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.common.businessentities.LUNs lun , org.ovirt.engine.core.compat.Guid storagePoolId ) ;
Source:
private void allVfsAreFree ( boolean isValid ) { org.mockito.Mockito.when ( validator.allVfsAreFree ( org.mockito.Matchers.any ( org.ovirt.engine.core.bll.network.host.HostNicVfsConfigHelper.class ) ) ) . thenReturn ( ( isValid ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_NUM_OF_VFS_CANNOT_BE_CHANGED ) ) ) ; }

Target:
private void allVfsAreFree ( boolean isValid ) { org.mockito.Mockito.when ( validator.allVfsAreFree ( org.mockito.Matchers.any ( org.ovirt.engine.core.bll.network.host.NetworkDeviceHelper.class ) ) ) . thenReturn ( ( isValid ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_NUM_OF_VFS_CANNOT_BE_CHANGED ) ) ) ; }
Source:
protected org.ovirt.engine.core.bll.RolesCommandBase < org.ovirt.engine.core.common.action.RolesParameterBase > generateCommand ( ) { return new org.ovirt.engine.core.bll.RolesCommandBase < org.ovirt.engine.core.common.action.RolesParameterBase > ( getParams ( ) , null ) { @ java.lang.Override protected void executeCommand ( ) { } } ; }

Target:
protected org.ovirt.engine.core.bll.RolesCommandBase < org.ovirt.engine.core.common.action.RolesParameterBase > generateCommand ( ) { return org.mockito.Mockito.mock ( org.ovirt.engine.core.bll.RolesCommandBase.class , org.mockito.Mockito.withSettings ( ) . defaultAnswer ( Answers.CALLS_REAL_METHODS ) . useConstructor ( getParams ( ) , null ) ) ; }
Source:
protected org.ovirt.engine.api.model.VM getVmConfiguration ( java.lang.String snapshotId ) { org.ovirt.engine.api.model.VM vmConfiguration = getEntity ( org.ovirt.engine.api.model.VM.class , VdcQueryType.GetVmConfigurationBySnapshot , new org.ovirt.engine.core.common.queries.IdQueryParameters ( asGuid ( snapshotId ) ) , "" ) ; return vmConfiguration ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VM getVmConfiguration ( java.lang.String snapshotId ) { org.ovirt.engine.api.restapi.resource.VM vmConfiguration = getEntity ( org.ovirt.engine.core.common.businessentities.VM.class , VdcQueryType.GetVmConfigurationBySnapshot , new org.ovirt.engine.core.common.queries.IdQueryParameters ( asGuid ( snapshotId ) ) , "" ) ; return vmConfiguration ; }
Source:
protected org.ovirt.engine.core.common.action.LockProperties applyLockProperties ( org.ovirt.engine.core.common.action.LockProperties lockProperties ) { return lockProperties.withScope ( Scope.Execution ) ; }

Target:
protected org.ovirt.engine.core.common.action.LockProperties applyLockProperties ( org.ovirt.engine.core.common.action.LockProperties lockProperties ) { return lockProperties.withScope ( Scope.Command ) ; }
Source:
public void executeQueryCommand ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup cluster = clusterDao.get ( org.ovirt.engine.core.bll.gluster.GetGlusterVolumeSnapshotCliScheduleFlagQuery.getParameters ( ) . getId ( ) ) ; org.ovirt.engine.core.bll.gluster.GetGlusterVolumeSnapshotCliScheduleFlagQuery.getQueryReturnValue ( ) . setReturnValue ( cluster.isGlusterCliBasedSchedulingOn ( ) ) ; }

Target:
public void executeQueryCommand ( ) { org.ovirt.engine.core.common.businessentities.Cluster cluster = clusterDao.get ( org.ovirt.engine.core.bll.gluster.GetGlusterVolumeSnapshotCliScheduleFlagQuery.getParameters ( ) . getId ( ) ) ; org.ovirt.engine.core.bll.gluster.GetGlusterVolumeSnapshotCliScheduleFlagQuery.getQueryReturnValue ( ) . setReturnValue ( cluster.isGlusterCliBasedSchedulingOn ( ) ) ; }
Source:
public void setActiveDetailModel ( org.ovirt.engine.ui.uicommonweb.models.EntityModel value ) { if ( ( activeDetailModel ) != value ) { activeDetailModelChanging ( value , getActiveDetailModel ( ) ) ; activeDetailModel = value ; activeDetailModelChanged ( ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "ActiveDetailModel" ) ) ; } }

Target:
public void setActiveDetailModel ( org.ovirt.engine.ui.uicommonweb.models.HasEntity < D > value ) { if ( ( activeDetailModel ) != value ) { activeDetailModelChanging ( value , getActiveDetailModel ( ) ) ; activeDetailModel = value ; activeDetailModelChanged ( ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "ActiveDetailModel" ) ) ; } }
Source:
protected java.lang.String getLockMessage ( ) { return VdcBllMessages.ACTION_TYPE_FAILED_OBJECT_LOCKED.name ( ) ; }

Target:
protected java.lang.String getLockMessage ( ) { return EngineMessage.ACTION_TYPE_FAILED_OBJECT_LOCKED.name ( ) ; }
Source:
public static boolean hasWatchdog ( org.ovirt.engine.core.compat.Guid vmId ) { return ! ( org.ovirt.engine.core.bll.utils.VmDeviceUtils.getWatchdogs ( vmId ) . isEmpty ( ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getGraphicsDevices ( org.ovirt.engine.core.compat.Guid vmId ) { return vmDeviceDao.getVmDeviceByVmIdAndType ( vmId , VmDeviceGeneralType.GRAPHICS ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.storage.DiskLunMap generateNewEntity ( ) { return new org.ovirt.engine.core.common.businessentities.storage.DiskLunMap ( new org.ovirt.engine.core.compat.Guid ( "1b26a52b-b60f-44cb-9f46-3ef333b04a34" ) , "1IET_00180001" ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.storage.DiskLunMap generateNewEntity ( ) { return new org.ovirt.engine.core.common.businessentities.storage.DiskLunMap ( new org.ovirt.engine.core.compat.Guid ( "1b26a52b-b60f-44cb-9f46-3ef333b04a34" ) , FixturesTool.LUN_ID1 ) ; }
Source:
public java.util.List < org.ovirt.api.metamodel.concepts.Locator > getDeclaredLocators ( ) { return new java.util.ArrayList ( locators ) ; }

Target:
public java.util.stream.Stream < org.ovirt.api.metamodel.concepts.Locator > locators ( ) { java.util.stream.Stream < org.ovirt.api.metamodel.concepts.Locator > result = declaredLocators ( ) ; if ( ( base ) != null ) { result = java.util.stream.Stream.concat ( base.locators ( ) , result ) ; } return result ; }
Source:
public void setDescription ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( description , value ) ) ) { description = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( org.ovirt.engine.ui.uicommonweb.models.providers.ProviderGeneralModel.PROPERTY_DESCRIPTION ) ) ; } }

Target:
public void setDescription ( java.lang.String value ) { if ( ! ( java.util.Objects.equals ( description , value ) ) ) { description = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( org.ovirt.engine.ui.uicommonweb.models.providers.ProviderGeneralModel.PROPERTY_DESCRIPTION ) ) ; } }
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.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface , org.ovirt.engine.core.common.businessentities.VmTemplate > , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkListModel , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkTemplateListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.networkTemplateSubTabLabel ( ) , 5 , modelProvider ) ; }

Target:
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.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface , org.ovirt.engine.core.common.businessentities.VmTemplate > , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkListModel , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkTemplateListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.networkTemplateSubTabLabel ( ) , 6 , modelProvider ) ; }
Source:
private static org.ovirt.engine.core.common.osinfo.OsRepository getOsRepository ( ) { return org.ovirt.engine.core.common.utils.SimpleDependecyInjector.getInstance ( ) . get ( org.ovirt.engine.core.common.osinfo.OsRepository.class ) ; }

Target:
private static org.ovirt.engine.core.common.osinfo.OsRepository getOsRepository ( ) { return org.ovirt.engine.core.common.utils.SimpleDependencyInjector.getInstance ( ) . get ( org.ovirt.engine.core.common.osinfo.OsRepository.class ) ; }
Source:
public java.lang.String render ( org.ovirt.engine.core.common.businessentities.VMStatus object ) { return translator.translate ( object.name ( ) ) ; }

Target:
public java.lang.String render ( org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.common.businessentities.VMStatus , java.lang.Boolean > object ) { if ( object.getSecond ( ) ) { return consoleInUse ; } return translator.translate ( object.getFirst ( ) . name ( ) ) ; }
Source:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( ( ( org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getParameters ( ) . getOperation ( ) ) == ( org.ovirt.engine.core.common.businessentities.ImageOperation.Copy ) ? org.ovirt.engine.core.common.errors.VdcBllMessages.VAR__ACTION__COPY : org.ovirt.engine.core.common.errors.VdcBllMessages.VAR__ACTION__MOVE ) ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__VM_DISK ) ; }

Target:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( ( ( org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getParameters ( ) . getOperation ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.ImageOperation.Copy ) ? org.ovirt.engine.core.common.errors.VdcBllMessages.VAR__ACTION__COPY : org.ovirt.engine.core.common.errors.VdcBllMessages.VAR__ACTION__MOVE ) ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__VM_DISK ) ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { _result = org.ovirt.engine.core.vdsbroker.vdsbroker.HSMGetTaskStatusVDSCommand.getBroker ( ) . getTaskStatus ( org.ovirt.engine.core.vdsbroker.vdsbroker.HSMGetTaskStatusVDSCommand.getParameters ( ) . getTaskId ( ) . toString ( ) ) ; proceedProxyReturnValue ( ) ; setReturnValue ( ParseTaskStatus ( _result.TaskStatus ) ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { _result = org.ovirt.engine.core.vdsbroker.vdsbroker.HSMGetTaskStatusVDSCommand.getBroker ( ) . getTaskStatus ( org.ovirt.engine.core.vdsbroker.vdsbroker.HSMGetTaskStatusVDSCommand.getParameters ( ) . getTaskId ( ) . toString ( ) ) ; proceedProxyReturnValue ( ) ; setReturnValue ( ParseTaskStatus ( _result.TaskStatus ) ) ; }
Source:
public java.lang.Boolean call ( ) throws java.lang.Exception { boolean reboot = ( _reboot ) && ( ! ( _isNode ) ) ; if ( reboot ) { _messages.post ( InstallerMessages.Severity.INFO , "Enforcing host reboot" ) ; } _parser.cliEnvironmentSet ( org.ovirt.ovirt_host_deploy.constants.CoreEnv.FORCE_REBOOT , reboot ) ; return true ; }

Target:
public java.lang.Boolean call ( ) throws java.lang.Exception { boolean reboot = ( _reboot ) && ( ! ( _isNode ) ) ; if ( reboot ) { userVisibleLog ( java.util.logging.Level.INFO , "Enforcing host reboot" ) ; } _parser.cliEnvironmentSet ( org.ovirt.ovirt_host_deploy.constants.CoreEnv.FORCE_REBOOT , reboot ) ; return true ; }
Source:
public void GetTagIdAndChildrenIdsAsList ( java.util.HashSet < org.ovirt.engine.core.compat.Guid > tagIds ) { tagIds.add ( gettag_id ( ) ) ; for ( org.ovirt.engine.core.common.businessentities.tags tag : _children ) { tag.GetTagIdAndChildrenIdsAsList ( tagIds ) ; } }

Target:
public void getTagIdAndChildrenIdsAsList ( java.util.HashSet < org.ovirt.engine.core.compat.Guid > tagIds ) { tagIds.add ( gettag_id ( ) ) ; for ( org.ovirt.engine.core.common.businessentities.tags tag : _children ) { tag.getTagIdAndChildrenIdsAsList ( tagIds ) ; } }
Source:
public void testIsNotLocalFsWithDefaultCluster ( ) { storagePool.setIsLocal ( true ) ; org.mockito.Mockito.doReturn ( false ) . when ( validator ) . containsDefaultCluster ( ) ; org.junit.Assert.assertThat ( validator.isNotLocalfsWithDefaultCluster ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testIsNotLocalFsWithDefaultCluster ( ) { storagePool.setIsLocal ( true ) ; org.mockito.Mockito.doReturn ( false ) . when ( validator ) . containsDefaultCluster ( ) ; org.hamcrest.MatcherAssert.assertThat ( validator.isNotLocalfsWithDefaultCluster ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void isRoleNetworkGluster ( ) { org.ovirt.engine.core.common.businessentities.network.NetworkCluster networkCluster = createNetworkCluster ( false , false , true ) ; org.junit.Assert.assertTrue ( org.ovirt.engine.core.utils.NetworkUtils.isRoleNetwork ( networkCluster ) ) ; }

Target:
public void isRoleNetworkGluster ( ) { org.ovirt.engine.core.common.businessentities.network.NetworkCluster networkCluster = createNetworkCluster ( false , false , true ) ; org.junit.jupiter.api.Assertions.assertTrue ( org.ovirt.engine.core.utils.NetworkUtils.isRoleNetwork ( networkCluster ) ) ; }
Source:
java.lang.String integerValidationNumberBetweenInvalidReason ( java.lang.String prefixMsg , int min , int max ) ;

Target:
java.lang.String integerValidationNumberLessInvalidReason ( java.lang.String prefixMsg , int max ) ;
Source:
public void onSucceeded ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { getCommand ( cmdId ) . onSucceeded ( ) ; org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.removeAllCommandsInHierarchy ( cmdId ) ; }

Target:
public void onSucceeded ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { getCommand ( cmdId ) . onSucceeded ( ) ; getCommand ( cmdId ) . endAction ( ) ; org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.removeAllCommandsInHierarchy ( cmdId ) ; }
Source:
protected boolean CheckStorageConnection ( java.lang.String storageDomainConnection ) { boolean returnValue = true ; if ( ( getStorageServerConnectionDAO ( ) . get ( storageDomainConnection ) ) == null ) { returnValue = false ; addCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_CONNECTION_NOT_EXIST ) ; } return returnValue ; }

Target:
protected boolean checkStorageConnection ( java.lang.String storageDomainConnection ) { boolean returnValue = true ; if ( ( getStorageServerConnectionDAO ( ) . get ( storageDomainConnection ) ) == null ) { returnValue = false ; addCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_CONNECTION_NOT_EXIST ) ; } return returnValue ; }
Source:
public java.lang.Void runInTransaction ( ) { logAndFailTaskOfCommandWithEmptyVdsmId ( task , "Engine was restarted before all tasks of the command could be submitted to vdsm." ) ; return null ; }

Target:
private void handlePartiallyExecutedTaskOfCommand ( final org.ovirt.engine.core.common.businessentities.AsyncTask task ) { if ( org.ovirt.engine.core.bll.tasks.AsyncTaskManager.hasEmptyVdsmId ( task ) ) { org.ovirt.engine.core.bll.tasks.AsyncTaskManager.removeTaskFromDbByTaskId ( task.getTaskId ( ) ) ; return ; } partiallyCompletedCommandTasks.put ( task.getVdsmTaskId ( ) , task ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.ServerCpu FindMaxServerCpuByFlags ( java.lang.String flags , org.ovirt.engine.core.compat.Version ver ) { final org.ovirt.engine.core.bll.CpuFlagsManagerHandler.CpuFlagsManager cpuFlagsManager = org.ovirt.engine.core.bll.CpuFlagsManagerHandler._managersDictionary.get ( ver ) ; if ( cpuFlagsManager != null ) { return cpuFlagsManager.FindMaxServerCpuByFlags ( flags ) ; } return null ; }

Target:
public static org.ovirt.engine.core.common.businessentities.ServerCpu findMaxServerCpuByFlags ( java.lang.String flags , org.ovirt.engine.core.compat.Version ver ) { final org.ovirt.engine.core.bll.CpuFlagsManagerHandler.CpuFlagsManager cpuFlagsManager = org.ovirt.engine.core.bll.CpuFlagsManagerHandler._managersDictionary.get ( ver ) ; if ( cpuFlagsManager != null ) { return cpuFlagsManager.FindMaxServerCpuByFlags ( flags ) ; } return null ; }
Source:
protected org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolManagerStrategy getMacPool ( ) { return org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolPerDcSingleton.getInstance ( ) . poolForDataCenter ( params.getStoragePoolId ( ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.StoragePool getStoragePool ( ) { if ( ( cachedStoragePool ) == null ) { cachedStoragePool = getStoragePoolDAO ( ) . get ( params.getStoragePoolId ( ) ) ; } return cachedStoragePool ; }
Source:
public void testCloneFromTemplateWithClonePermissionsClone ( ) throws java.lang.Exception { org.ovirt.engine.api.model.VM model = createModel ( createDisksCollection ( ) ) ; model.setPermissions ( new org.ovirt.engine.api.model.Permissions ( ) ) ; model.getPermissions ( ) . setClone ( true ) ; doTestCloneFromTemplateWithClonePermissions ( model , true ) ; }

Target:
public void testCloneFromTemplateWithClonePermissionsClone ( ) throws java.lang.Exception { org.ovirt.engine.api.model.Vm model = createModel ( createDisksCollection ( ) ) ; model.setPermissions ( new org.ovirt.engine.api.model.Permissions ( ) ) ; model.getPermissions ( ) . setClone ( true ) ; doTestCloneFromTemplateWithClonePermissions ( model , true ) ; }
Source:
public org.ovirt.engine.api.model.Cluster get ( ) { return performGet ( VdcQueryType.GetVdsGroupById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.Cluster get ( ) { return performGet ( VdcQueryType.GetClusterById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; }
Source:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand ) { onConfirmCommand.Execute ( ) ; parentModel.setWindow ( null ) ; }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand ) { onConfirmCommand.execute ( ) ; parentModel.setWindow ( null ) ; }
Source:
public org.ovirt.engine.extensions.aaa.builtin.kerberosldap.LdapQueryExecution build ( org.ovirt.engine.core.ldap.LdapProviderType providerType , org.ovirt.engine.extensions.aaa.builtin.kerberosldap.LdapQueryData queryData ) { org.ovirt.engine.extensions.aaa.builtin.kerberosldap.LdapQueryMetadata queryMetadata = org.ovirt.engine.extensions.aaa.builtin.kerberosldap.LdapQueryMetadataFactoryImpl.getInstance ( ) . getLdapQueryMetadata ( providerType , queryData ) ; return queryMetadata.getFormatter ( ) . format ( queryMetadata ) ; }

Target:
public org.ovirt.engine.extensions.aaa.builtin.kerberosldap.LdapQueryExecution build ( org.ovirt.engine.extensions.aaa.builtin.kerberosldap.utils.ldap.LdapProviderType providerType , org.ovirt.engine.extensions.aaa.builtin.kerberosldap.LdapQueryData queryData ) { org.ovirt.engine.extensions.aaa.builtin.kerberosldap.LdapQueryMetadata queryMetadata = org.ovirt.engine.extensions.aaa.builtin.kerberosldap.LdapQueryMetadataFactoryImpl.getInstance ( ) . getLdapQueryMetadata ( providerType , queryData ) ; return queryMetadata.getFormatter ( ) . format ( queryMetadata ) ; }
Source:
public void prepareParams ( ) { oldNFSConnection = createNFSConnection ( "multipass.my.domain.tlv.company.com:/export/allstorage/data1" , StorageType.NFS , NfsVersion.V4 , 50 , 0 ) ; oldPosixConnection = createPosixConnection ( "multipass.my.domain.tlv.company.com:/export/allstorage/data1" , StorageType.POSIXFS , "nfs" , "timeo=30" ) ; prepareCommand ( ) ; }

Target:
public void prepareMembers ( ) { oldNFSConnection = createNFSConnection ( "multipass.my.domain.tlv.company.com:/export/allstorage/data1" , StorageType.NFS , NfsVersion.V4 , 50 , 0 ) ; oldPosixConnection = createPosixConnection ( "multipass.my.domain.tlv.company.com:/export/allstorage/data1" , StorageType.POSIXFS , "nfs" , "timeo=30" ) ; prepareMocks ( ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc vmUpdateDevice ( java.lang.String vmId , org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct device ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.AlignmentScanReturnForXmlRpc getDiskAlignment ( java.lang.String vmId , java.util.Map < java.lang.String , java.lang.String > driveSpecs ) ;
Source:
private boolean isUpHostCheckCompleted ( ) { if ( ! ( getEntity ( ) . supportsGlusterService ( ) ) ) { return true ; } return ( isAnyHostUpInCluster ) != null ; }

Target:
private boolean isAnyUpHostInCluster ( ) { if ( ! ( getEntity ( ) . supportsGlusterService ( ) ) ) { return true ; } return isAnyHostUpInCluster ; }
Source:
public void testGetVmMapsInVmPoolByVmPoolIdAndStatus ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmPoolMap > result = dao.getVmMapsInVmPoolByVmPoolIdAndStatus ( existingVmPool.getVmPoolId ( ) , VMStatus.MigratingFrom ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }

Target:
public void testGetVmMapsInVmPoolByVmPoolIdAndStatus ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmPoolMap > result = dao.getVmMapsInVmPoolByVmPoolIdAndStatus ( existingVmPool.getVmPoolId ( ) , VMStatus.MigratingFrom ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertFalse ( result.isEmpty ( ) ) ; }
Source:
void setit_guid ( org.ovirt.engine.core.common.businessentities.Guid value ) ;

Target:
void setImageTemplateId ( org.ovirt.engine.core.compat.Guid value ) ;
Source:
private void setUpGetConnectionExpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.GetStorageServerConnectionById , org.ovirt.engine.core.common.queries.StorageServerConnectionQueryParametersBase.class , new java.lang.String [ ] { "ServerConnectionId" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendAttachedStorageDomainResourceTest.STORAGE_CONNECTION_ID.toString ( ) } , setUpConnectionExpectations ( ) ) ; }

Target:
private void setUpGetConnectionExpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( QueryType.GetStorageServerConnectionById , org.ovirt.engine.core.common.queries.StorageServerConnectionQueryParametersBase.class , new java.lang.String [ ] { "ServerConnectionId" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendAttachedStorageDomainResourceTest.STORAGE_CONNECTION_ID.toString ( ) } , setUpConnectionExpectations ( ) ) ; }
Source:
protected java.lang.String getStorageArgs ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageServerConnectionDAO ( ) . get ( org.ovirt.engine.core.bll.storage.AddStorageDomainCommon.getStorageDomain ( ) . getstorage ( ) ) . getconnection ( ) ; }

Target:
protected java.lang.String getStorageArgs ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageServerConnectionDao ( ) . get ( org.ovirt.engine.core.bll.storage.AddStorageDomainCommon.getStorageDomain ( ) . getstorage ( ) ) . getconnection ( ) ; }
Source:
protected void SyncSearch ( ) { if ( ( getEntity ( ) ) == null ) { return ; } super . SyncSearch ( ) ; org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery = new org.ovirt.engine.ui.frontend.AsyncQuery ( ) ; _asyncQuery.setModel ( this ) ; }

Target:
public void OnSuccess ( java.lang.Object model , java.lang.Object ReturnValue ) { this . setItems ( ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VmTemplate > ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( ReturnValue ) ) . getReturnValue ( ) ) ) ) ; }
Source:
public org.ovirt.engine.api.rsdl.ServiceTreeNode build ( ) { return node ; }

Target:
public org.ovirt.engine.api.rsdl.ServiceTreeNode build ( ) { if ( ( node.subServices ) != null ) { node.setSon ( node.getSubService ( "{id}" ) ) ; } return node ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.network.vm.UpdateVnicProfileCommand.getVnicProfileDao ( ) . update ( org.ovirt.engine.core.bll.network.vm.UpdateVnicProfileCommand.getVnicProfile ( ) ) ; org.ovirt.engine.core.bll.network.vm.UpdateVnicProfileCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { getOldVnicProfile ( ) ; org.ovirt.engine.core.bll.network.vm.UpdateVnicProfileCommand.getVnicProfileDao ( ) . update ( org.ovirt.engine.core.bll.network.vm.UpdateVnicProfileCommand.getVnicProfile ( ) ) ; org.ovirt.engine.core.bll.network.vm.UpdateVnicProfileCommand.setSucceeded ( true ) ; }
Source:
protected void endVmCommand ( ) { org.ovirt.engine.core.bll.storage.export.RemoveVmFromImportExportCommand.setCommandShouldBeLogged ( false ) ; org.ovirt.engine.core.bll.storage.export.RemoveVmFromImportExportCommand.setSucceeded ( true ) ; }

Target:
protected void endVmCommand ( ) { org.ovirt.engine.core.bll.exportimport.RemoveVmFromImportExportCommand.setCommandShouldBeLogged ( false ) ; org.ovirt.engine.core.bll.exportimport.RemoveVmFromImportExportCommand.setSucceeded ( true ) ; }
Source:
public int Compare ( org.ovirt.engine.core.common.businessentities.VM x , org.ovirt.engine.core.common.businessentities.VM y ) { return ( x.getPriority ( ) ) - ( y.getPriority ( ) ) ; }

Target:
public int compare ( org.ovirt.engine.core.common.businessentities.VM o1 , org.ovirt.engine.core.common.businessentities.VM o2 ) { return ( o1.getPriority ( ) ) - ( o2.getPriority ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.StorageType getDestintationDomainTypeFromDisk ( org.ovirt.engine.core.common.businessentities.DiskImage diskImage ) { return destStorages.get ( diskInfoDestinationMap.get ( diskImage.getId ( ) ) . getStorageIds ( ) . get ( 0 ) ) . getStorageStaticData ( ) . getStorageType ( ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.storage.StorageType getDestintationDomainTypeFromDisk ( org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage ) { return destStorages.get ( diskInfoDestinationMap.get ( diskImage.getId ( ) ) . getStorageIds ( ) . get ( 0 ) ) . getStorageStaticData ( ) . getStorageType ( ) ; }
Source:
java.lang.String lunAlreadyPartOfStorageDomainWarning ( java.lang.String storageDomainName ) ;

Target:
java.lang.String templateDiskDescription ( java.lang.String diskAlias , java.lang.String storageDomainName ) ;
Source:
public java.lang.Object getActionReturnValue ( ) { return returnValue ; }

Target:
public < T > T getActionReturnValue ( ) { return ( ( T ) ( returnValue ) ) ; }
Source:
public void updateWithLowerVersionThanHosts ( ) { createCommandWithDefaultVdsGroup ( ) ; setupCpu ( ) ; VdsExistWithHigherVersion ( ) ; architectureIsUpdatable ( ) ; canDoActionFailedWithReason ( EngineMessage.VDS_GROUP_CANNOT_UPDATE_COMPATIBILITY_VERSION_WITH_LOWER_HOSTS ) ; }

Target:
public void updateWithLowerVersionThanHosts ( ) { createCommandWithDefaultVdsGroup ( ) ; setupCpu ( ) ; vdsExistWithHigherVersion ( ) ; architectureIsUpdatable ( ) ; canDoActionFailedWithReason ( EngineMessage.VDS_GROUP_CANNOT_UPDATE_COMPATIBILITY_VERSION_WITH_LOWER_HOSTS ) ; }
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 ( "validate should fail for too long vm name." , command.validate ( ) ) ; assertValidateMessage ( EngineMessage.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.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_NAME_LENGTH_IS_TOO_LONG ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { interfaceMappings.setLabel ( ( ( java.lang.String ) ( model.getInterfaceMappingsLabel ( ) . getEntity ( ) ) ) ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { mappingsExplanation.setText ( templates.italicText ( ( ( java.lang.String ) ( model.getInterfaceMappingsExplanation ( ) . getEntity ( ) ) ) ) ) ; }
Source:
protected void AsyncSearch ( ) { super . AsyncSearch ( ) ; setAsyncResult ( org.ovirt.engine.ui.frontend.Frontend.RegisterSearch ( getSearchString ( ) , SearchType.VmPools , getSearchPageSize ( ) ) ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }

Target:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; setAsyncResult ( null ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }
Source:
public void testQuery ( ) throws java.lang.Exception { }

Target:
public void testList ( ) throws java.lang.Exception { javax.ws.rs.core.UriInfo uriInfo = setUpUriExpectations ( null ) ; setUpQueryExpectations ( org.ovirt.engine.api.restapi.resource.BackendGroupsResourceTest.QUERY ) ; collection.setUriInfo ( uriInfo ) ; verifyCollection ( getCollection ( ) ) ; }
Source:
protected boolean balloonEnabled ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel model ) { return ( model.getMemoryBalloonDeviceEnabled ( ) . getEntity ( ) ) && ( ( model.getSelectedCluster ( ) . getCompatibilityVersion ( ) . compareTo ( org.ovirt.engine.ui.uicommonweb.models.templates.VmBaseListModel.BALLOON_DEVICE_MIN_VERSION ) ) >= 0 ) ; }

Target:
protected boolean balloonEnabled ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel model ) { return org.ovirt.engine.ui.uicommonweb.models.vms.BalloonEnabled.balloonEnabled ( model ) ; }
Source:
public void setCpuLoad ( java.lang.Double value ) { this . mVdsStatistics.setCpuLoad ( value ) ; }

Target:
public void setCpuIdle ( java.lang.Double value ) { vdsStatistics.setCpuIdle ( value ) ; }
Source:
private java.lang.String getImageIdNullSafe ( ) { return ( org.ovirt.engine.core.bll.storage.disk.image.UploadImageCommand.getParameters ( ) . getImageId ( ) ) != null ? org.ovirt.engine.core.bll.storage.disk.image.UploadImageCommand.getParameters ( ) . getImageId ( ) . toString ( ) : "(null)" ; }

Target:
private java.lang.String getImageIdNullSafe ( ) { return ( org.ovirt.engine.core.bll.storage.disk.image.TransferImageCommand.getParameters ( ) . getImageId ( ) ) != null ? org.ovirt.engine.core.bll.storage.disk.image.TransferImageCommand.getParameters ( ) . getImageId ( ) . toString ( ) : "(null)" ; }
Source:
public org.ovirt.engine.core.common.queries.SearchReturnValue getQueryReturnValue ( ) { return ( ( org.ovirt.engine.core.common.queries.SearchReturnValue ) ( super . getQueryReturnValue ( ) ) ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > searchInstanceTypes ( ) { return genericSearch ( org.ovirt.engine.core.bll.SearchQuery.getDbFacade ( ) . getVmTemplateDao ( ) , true , null ) ; }
Source:
private static org.ovirt.engine.core.bll.validator.StorageDomainValidator mockStorageDomainValidatorWithoutSpace ( ) { org.ovirt.engine.core.bll.validator.StorageDomainValidator storageDomainValidator = org.ovirt.engine.core.bll.MoveOrCopyDiskCommandTest.mockStorageDomainValidator ( ) ; org.mockito.Mockito.when ( storageDomainValidator.hasSpaceForClonedDisk ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.DiskImage.class ) ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_TARGET_STORAGE_DOMAIN ) ) ; return storageDomainValidator ; }

Target:
private static org.ovirt.engine.core.bll.validator.StorageDomainValidator mockStorageDomainValidatorWithoutSpace ( ) { org.ovirt.engine.core.bll.validator.StorageDomainValidator storageDomainValidator = org.ovirt.engine.core.bll.MoveOrCopyDiskCommandTest.mockStorageDomainValidator ( ) ; org.mockito.Mockito.when ( storageDomainValidator.hasSpaceForClonedDisk ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.DiskImage.class ) ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN ) ) ; return storageDomainValidator ; }
Source:
public void setup ( ) { final org.ovirt.engine.core.common.config.IConfigUtilsInterface configUtils = org.mockito.Mockito.mock ( org.ovirt.engine.core.common.config.IConfigUtilsInterface.class ) ; org.mockito.Mockito.when ( configUtils.getValue ( ConfigValues.SearchResultsLimit , ConfigCommon.defaultConfigurationVersion ) ) . thenReturn ( 100 ) ; org.ovirt.engine.core.common.config.Config.setConfigUtils ( configUtils ) ; }

Target:
public void setUp ( ) { final org.ovirt.engine.core.common.config.IConfigUtilsInterface configUtils = org.mockito.Mockito.mock ( org.ovirt.engine.core.common.config.IConfigUtilsInterface.class ) ; org.mockito.Mockito.when ( configUtils.getValue ( ConfigValues.SearchResultsLimit , ConfigCommon.defaultConfigurationVersion ) ) . thenReturn ( 100 ) ; org.ovirt.engine.core.common.config.Config.setConfigUtils ( configUtils ) ; }
Source:
private java.lang.String getNetworkName ( ) { org.ovirt.engine.core.common.businessentities.VmNetworkInterface vmNetworkInterface = org.ovirt.engine.core.bll.ActivateDeactivateVmNicCommand.getVmNetworkInterfaceDAO ( ) . get ( org.ovirt.engine.core.bll.ActivateDeactivateVmNicCommand.getParameters ( ) . getNicId ( ) ) ; return vmNetworkInterface == null ? null : vmNetworkInterface.getNetworkName ( ) ; }

Target:
private java.lang.String getNetworkName ( ) { org.ovirt.engine.core.common.businessentities.VmNetworkInterface vmNetworkInterface = org.ovirt.engine.core.bll.ActivateDeactivateVmNicCommand.getVmNetworkInterfaceDao ( ) . get ( org.ovirt.engine.core.bll.ActivateDeactivateVmNicCommand.getParameters ( ) . getNicId ( ) ) ; return vmNetworkInterface == null ? null : vmNetworkInterface.getNetworkName ( ) ; }
Source:
java.lang.Integer size ( ) ;

Target:
java.lang.Integer transferred ( ) ;
Source:
public javax.ws.rs.core.Response performRemove ( java.lang.String id ) { return performAction ( VdcActionType.RemoveVm , new org.ovirt.engine.core.common.action.RemoveVmParameters ( asGuid ( id ) , false ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.InstanceType lookupInstance ( org.ovirt.engine.api.model.Template template ) { return getEntity ( org.ovirt.engine.core.common.businessentities.InstanceType.class , VdcQueryType.GetInstanceType , new org.ovirt.engine.core.common.queries.GetVmTemplateParameters ( asGuid ( template.getId ( ) ) ) , "GetInstanceType" ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.Permissions > getAllForEntity ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.compat.Guid userID , boolean isFiltered , boolean allUsersWithPermission ) ;

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.Permissions > getAllForEntity ( org.ovirt.engine.core.compat.Guid id , long engineSessionSeqId , boolean isFiltered , boolean allUsersWithPermission ) ;
Source:
public static org.ovirt.engine.api.model.DiskStatus map ( org.ovirt.engine.core.common.businessentities.storage.ImageStatus imageStatus ) { switch ( imageStatus ) { case ILLEGAL : return org.ovirt.engine.api.model.DiskStatus.ILLEGAL ; case LOCKED : return org.ovirt.engine.api.model.DiskStatus.LOCKED ; case OK : return org.ovirt.engine.api.model.DiskStatus.OK ; default : return null ; } }

Target:
private static org.ovirt.engine.api.model.DiskStatus mapDiskStatus ( org.ovirt.engine.core.common.businessentities.storage.ImageStatus status ) { switch ( status ) { case ILLEGAL : return org.ovirt.engine.api.model.DiskStatus.ILLEGAL ; case LOCKED : return org.ovirt.engine.api.model.DiskStatus.LOCKED ; case OK : return org.ovirt.engine.api.model.DiskStatus.OK ; default : return null ; } }
Source:
public void testAdd ( ) throws java.lang.Exception { setUpGetConsoleExpectations ( new int [ ] { 0 , 0 } ) ; super . testAdd ( ) ; }

Target:
public void testAdd ( ) throws java.lang.Exception { setUpGetGraphicsExpectations ( 1 ) ; setUpGetConsoleExpectations ( new int [ ] { 0 , 0 } ) ; super . testAdd ( ) ; }
Source:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__CREATE ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__GLUSTER_BRICK ) ; addCanDoActionMessageVariable ( "brickName" , getParameters ( ) . getLvName ( ) ) ; }

Target:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( EngineMessage.VAR__ACTION__CREATE ) ; addCanDoActionMessage ( EngineMessage.VAR__TYPE__GLUSTER_BRICK ) ; addCanDoActionMessageVariable ( "brickName" , getParameters ( ) . getLvName ( ) ) ; }
Source:
private void logInitializationError ( java.lang.String message ) { org.ovirt.engine.core.bll.network.MacPoolManager.log.error ( "The MAC addresses pool is not initialized" ) ; org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; logable.addCustomValue ( "Message" , message ) ; org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( logable , AuditLogType.MAC_ADDRESSES_POOL_NOT_INITIALIZED ) ; }

Target:
private void logInitializationError ( java.lang.String message ) { org.ovirt.engine.core.bll.network.MacPoolManager.log.errorFormat ( "{0}: The MAC addresses pool is not initialized" , instanceId ( ) ) ; org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; logable.addCustomValue ( "Message" , message ) ; org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( logable , AuditLogType.MAC_ADDRESSES_POOL_NOT_INITIALIZED ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcActionType getaction_type ( ) { return org.ovirt.engine.core.common.action.VdcActionType.forValue ( actionType ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcActionType getActionType ( ) { return org.ovirt.engine.core.common.action.VdcActionType.forValue ( actionType ) ; }
Source:
public void setStorageType ( org.ovirt.engine.ui.uicommonweb.models.ListModel value ) { storageType = value ; }

Target:
public void setAlias ( org.ovirt.engine.ui.uicommonweb.models.EntityModel alias ) { this . alias = alias ; }
Source:
public void nonPassthroughProfileContainsPortMirroringAndQos ( ) { passthroughProfileContainsSupportedPropertiesTest ( false , true , DEFAULT_GUID ) ; org.junit.Assert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void nonPassthroughProfileContainsPortMirroringAndQos ( ) { passthroughProfileContainsSupportedPropertiesTest ( false , true , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_GUID ) ; org.junit.Assert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void testMacIsNotContainedInRange ( ) { org.junit.Assert.assertThat ( rangeOf10Macs.contains ( org.ovirt.engine.core.bll.network.macpool.RangeTest.MAC_OUTSIDE_OF_RANGE ) , org.hamcrest.CoreMatchers.is ( false ) ) ; }

Target:
public void testMacIsNotContainedInRange ( ) { org.hamcrest.MatcherAssert.assertThat ( rangeOf10Macs.contains ( org.ovirt.engine.core.bll.network.macpool.RangeTest.MAC_OUTSIDE_OF_RANGE ) , org.hamcrest.CoreMatchers.is ( false ) ) ; }