auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected org.ovirt.engine.core.common.action.VdcReturnValueBase runInternalAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , org.ovirt.engine.core.bll.context.CommandContext context ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( actionType , parameters , context ) ; }

Target:
protected org.ovirt.engine.core.common.action.VdcReturnValueBase runInternalAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , org.ovirt.engine.core.bll.context.CommandContext context ) { return getBackend ( ) . runInternalAction ( actionType , parameters , context ) ; }
Source:
public void canCreateAsMuchNumaNodesAsVirtualCores ( ) { final org.ovirt.engine.core.bll.numa.vm.AddVmNumaNodesCommand command = mockedCommand ( ) ; vm.setNumOfSockets ( 1 ) ; vm.setCpuPerSocket ( 2 ) ; org.assertj.core.api.Assertions.assertThat ( command.canDoAction ( ) ) . isTrue ( ) ; }

Target:
public void canDetectMissingVM ( ) { org.mockito.Mockito.when ( vmDao.get ( org.mockito.Matchers.eq ( vm.getId ( ) ) ) ) . thenReturn ( null ) ; final org.ovirt.engine.core.bll.numa.vm.AddVmNumaNodesCommand command = mockedCommandWithVmFromDb ( ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.ACTION_TYPE_FAILED_VM_NOT_FOUND ) ; }
Source:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( ) { return getMainModel ( ) . getBrickListModel ( ) . getCommitRemoveBricksCommand ( ) ; }

Target:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( ) { return getMainModel ( ) . getNewGeoRepSessionCommand ( ) ; }
Source:
private boolean isSysprepUsed ( final org.ovirt.engine.core.common.businessentities.VM vm ) { return ( ( vm.useSysPrep ( ) ) && ( vm.getVmOs ( ) . isWindows ( ) ) ) && ( org.apache.commons.lang.StringUtils.isEmpty ( vm.getFloppyPath ( ) ) ) ; }

Target:
private boolean isSysprepUsed ( final org.ovirt.engine.core.common.businessentities.VM vm ) { return ( ( vm.useSysPrep ( ) ) && ( OsRepositoryImpl.INSTANCE.isWindows ( vm.getVmOsId ( ) ) ) ) && ( org.apache.commons.lang.StringUtils.isEmpty ( vm.getFloppyPath ( ) ) ) ; }
Source:
public java.util.Map < org.ovirt.engine.core.common.utils.Pair < java.lang.Integer , org.ovirt.engine.core.compat.Version > , java.util.Set < java.lang.String > > getUnsupportedCpus ( ) ;

Target:
java.lang.String getCdInterface ( int osId , org.ovirt.engine.core.compat.Version version , org.ovirt.engine.core.common.businessentities.ChipsetType chipset ) ;
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase Login ( java.lang.String user , java.lang.String password , java.lang.String domain ) ;

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase Login ( java.lang.String user , java.lang.String password , java.lang.String domain , org.ovirt.engine.core.common.action.VdcActionType loginType ) ;
Source:
public static < TSource > TSource firstOrNull ( java.lang.Iterable < TSource > source ) { return org.ovirt.engine.ui.uicommonweb.Linq.firstOrNull ( source , new org.ovirt.engine.ui.uicommonweb.Linq.TruePredicate < TSource > ( ) ) ; }

Target:
public static < TSource > TSource firstOrNull ( java.util.Collection < TSource > source ) { return org.ovirt.engine.ui.uicommonweb.Linq.firstOrNull ( source , new org.ovirt.engine.ui.uicommonweb.Linq.TruePredicate < TSource > ( ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? new java.util.ArrayList < org.ovirt.engine.core.compat.RpmVersion > ( ( ( java.util.ArrayList < org.ovirt.engine.core.compat.RpmVersion > ) ( source ) ) ) : new java.util.ArrayList < org.ovirt.engine.core.compat.RpmVersion > ( ) ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.ServerCpu > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.ServerCpu > ( ) ; }
Source:
public boolean isManaged ( ) { org.ovirt.engine.core.common.businessentities.VdsNetworkInterface.NetworkImplementationDetails details = getNetworkImplementationDetails ( ) ; return details != null ? details.isManaged ( ) : true ; }

Target:
public boolean isManaged ( ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface.NetworkImplementationDetails details = getNetworkImplementationDetails ( ) ; return details != null ? details.isManaged ( ) : true ; }
Source:
protected boolean isUserAuthorizedToRunAction ( ) { if ( isSystemSuperUserPredicate.eval ( org.ovirt.engine.core.bll.aaa.TerminateSessionCommand.getCurrentUser ( ) . getId ( ) ) ) { return true ; } else { addCanDoActionMessage ( VdcBllMessages.USER_NOT_AUTHORIZED_TO_PERFORM_ACTION ) ; return false ; } }

Target:
protected boolean isUserAuthorizedToRunAction ( ) { if ( isSystemSuperUserPredicate.eval ( org.ovirt.engine.core.bll.aaa.TerminateSessionCommand.getCurrentUser ( ) . getId ( ) ) ) { return true ; } else { addCanDoActionMessage ( EngineMessage.USER_NOT_AUTHORIZED_TO_PERFORM_ACTION ) ; return false ; } }
Source:
public javax.ws.rs.core.Response clone ( org.ovirt.engine.api.v3.types.V3Action action ) { return adaptAction ( getDelegate ( ) :: clone , action ) ; }

Target:
public javax.ws.rs.core.Response doClone ( org.ovirt.engine.api.v3.types.V3Action action ) { return adaptAction ( getDelegate ( ) :: doClone , action ) ; }
Source:
public void shouldAllowUpgradeForVM ( ) { org.hamcrest.MatcherAssert.assertThat ( validator.isVmReadyForUpgrade ( validVM ) , org.hamcrest.core.Is.is ( org.hamcrest.Matchers.empty ( ) ) ) ; }

Target:
public void shouldDetectClusterUpgradeIsDisabled ( ) { final org.ovirt.engine.core.common.businessentities.VDSGroup cluster = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; cluster.setCompatibilityVersion ( org.ovirt.engine.core.bll.validator.InClusterUpgradeValidatorTest.VERSION_1_2 ) ; org.hamcrest.MatcherAssert.assertThat ( validator.checkClusterUpgradeIsEnabled ( cluster ) , org.hamcrest.core.Is.is ( ValidationResult.VALID ) ) ; }
Source:
public void SpiceConnect ( ) { try { getspice ( ) . Connect ( ) ; } catch ( java.lang.RuntimeException ex ) { getLogger ( ) . Error ( "Exception on Spice connect" , ex ) ; } }

Target:
public void spiceConnect ( ) { try { getspice ( ) . connect ( ) ; } catch ( java.lang.RuntimeException ex ) { getLogger ( ) . error ( "Exception on Spice connect" , ex ) ; } }
Source:
public org.ovirt.engine.core.bll.CommandBase < ? > createAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , org.ovirt.engine.core.bll.context.CommandContext context ) { return org.ovirt.engine.core.bll.CommandsFactory.createCommand ( actionType , parameters , context ) ; }

Target:
public org.ovirt.engine.core.bll.CommandBase < ? > createAction ( org.ovirt.engine.core.common.action.ActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , org.ovirt.engine.core.bll.context.CommandContext context ) { return org.ovirt.engine.core.bll.CommandsFactory.createCommand ( actionType , parameters , context ) ; }
Source:
protected void executeQueryCommand ( ) { getQueryReturnValue ( ) . setReturnValue ( getDbFacade ( ) . getStorageQosDao ( ) . get ( getParameters ( ) . getId ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { getQueryReturnValue ( ) . setReturnValue ( getDbFacade ( ) . getQosBaseDao ( ) . get ( getParameters ( ) . getId ( ) ) ) ; }
Source:
public boolean validate ( ) { if ( isNoSelection ( ) ) { getInvalidityReasons ( ) . add ( org.ovirt.engine.ui.uicommonweb.models.vms.AttachDiskModel.CONSTANTS.noDisksSelected ( ) ) ; setIsValid ( false ) ; return false ; } return true ; }

Target:
public boolean validate ( ) { if ( isNoSelection ( ) ) { getInvalidityReasons ( ) . add ( org.ovirt.engine.ui.uicommonweb.models.vms.AttachDiskModel.constants.noDisksSelected ( ) ) ; setIsValid ( false ) ; return false ; } return true ; }
Source:
public org.ovirt.engine.core.vdsbroker.vdsbroker.entities.VdsmVm setLunsMap ( java.util.Map < java.lang.String , org.ovirt.engine.core.common.businessentities.storage.LUNs > lunsMap ) { this . lunsMap = lunsMap ; return this ; }

Target:
public org.ovirt.engine.core.vdsbroker.monitoring.VdsmVm setLunsMap ( java.util.Map < java.lang.String , org.ovirt.engine.core.common.businessentities.storage.LUNs > lunsMap ) { this . lunsMap = lunsMap ; return this ; }
Source:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { if ( event.getValue ( ) ) { roleModelProvider.getModel ( ) . setItemsFilter ( RoleType.USER ) ; roleModelProvider.getModel ( ) . ForceRefresh ( ) ; } }

Target:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { if ( event.getValue ( ) ) { roleModelProvider.getModel ( ) . setItemsFilter ( RoleType.USER ) ; roleModelProvider.getModel ( ) . forceRefresh ( ) ; } }
Source:
protected void logAutheticationFailure ( ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; logable.setUserName ( org.ovirt.engine.core.bll.aaa.LoginBaseCommand.getUserName ( ) ) ; org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( logable , AuditLogType.USER_VDC_LOGIN_FAILED ) ; }

Target:
protected void logAutheticationFailure ( ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; logable.setUserName ( org.ovirt.engine.core.bll.aaa.LoginBaseCommand.getUserName ( ) ) ; auditLogDirector.log ( logable , AuditLogType.USER_VDC_LOGIN_FAILED ) ; }
Source:
org.ovirt.engine.ui.common.widget.table.SimpleActionTable < org.ovirt.engine.core.common.businessentities.AuditLog > createActionTable ( org.ovirt.engine.ui.common.uicommon.model.SearchableTabModelProvider < org.ovirt.engine.core.common.businessentities.AuditLog , ? > modelProvider ) { return new org.ovirt.engine.ui.common.widget.table.SimpleActionTable < org.ovirt.engine.core.common.businessentities.AuditLog > ( modelProvider , getTableResources ( ) , org.ovirt.engine.ui.webadmin.gin.ClientGinjectorProvider.getEventBus ( ) , org.ovirt.engine.ui.webadmin.gin.ClientGinjectorProvider.getClientStorage ( ) ) ; }

Target:
org.ovirt.engine.ui.common.widget.table.SimpleActionTable < org.ovirt.engine.core.common.businessentities.AuditLog > createActionTable ( org.ovirt.engine.ui.common.uicommon.model.SearchableTabModelProvider < org.ovirt.engine.core.common.businessentities.AuditLog , ? > modelProvider , com.google.gwt.event.shared.EventBus eventBus , org.ovirt.engine.ui.common.system.ClientStorage clientStorage ) { return new org.ovirt.engine.ui.common.widget.table.SimpleActionTable < org.ovirt.engine.core.common.businessentities.AuditLog > ( modelProvider , getTableResources ( ) , eventBus , clientStorage ) ; }
Source:
public void testSingletonDaoAnnotation ( ) { for ( java.lang.Class < ? extends org.ovirt.engine.core.dao.DAO > dao : org.ovirt.engine.core.dao.DaoCdiIntegrationTest.daos ) { if ( isConcreteClass ( dao ) ) { org.junit.Assert.assertTrue ( ( "A concrete DAO class has to be annotated with @Singleton: " + ( dao.getCanonicalName ( ) ) ) , dao.isAnnotationPresent ( javax.inject.Singleton.class ) ) ; } } }

Target:
public void testSingletonDaoAnnotationPresent ( ) { for ( java.lang.Class daoClass : org.ovirt.engine.core.dao.DaoCdiIntegrationTest.daoClasses ) { if ( isConcreteClass ( daoClass ) ) { org.junit.Assert.assertTrue ( ( "A concrete DAO class has to be annotated with @Singleton: " + ( daoClass.getCanonicalName ( ) ) ) , daoClass.isAnnotationPresent ( javax.inject.Singleton.class ) ) ; } } }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.tags > getTagsAttachedToObject ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getTagDao ( ) . getAllForVmPools ( org.ovirt.engine.core.bll.VmPoolCommandBase.getParameters ( ) . getVmPoolId ( ) . toString ( ) ) ; }

Target:
private static org.ovirt.engine.core.compat.Guid findActiveISODomain ( org.ovirt.engine.core.compat.Guid storagePoolId ) { return org.ovirt.engine.core.bll.IsoDomainListSyncronizer.getInstance ( ) . findActiveISODomain ( storagePoolId ) ; }
Source:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { if ( getSucceeded ( ) ) { return org.ovirt.engine.core.common.AuditLogType.GEOREP_SESSION_DELETE ; } else { return ( errorType ) == null ? org.ovirt.engine.core.common.AuditLogType.GEOREP_SESSION_DELETE_FAILED : errorType ; } }

Target:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { if ( getSucceeded ( ) ) { return org.ovirt.engine.core.common.AuditLogType.GEOREP_SESSION_DELETED ; } else { return ( errorType ) == null ? org.ovirt.engine.core.common.AuditLogType.GEOREP_SESSION_DELETE_FAILED : errorType ; } }
Source:
public static org.ovirt.engine.core.common.action.VdcReturnValueBase instantiate ( com.google.gwt.user.client.rpc.SerializationStreamReader streamReader ) throws com.google.gwt.user.client.rpc.SerializationException { return new org.ovirt.engine.core.common.action.VdcReturnValueBase ( ) ; }

Target:
public static org.ovirt.engine.core.common.action.ActionReturnValue instantiate ( com.google.gwt.user.client.rpc.SerializationStreamReader streamReader ) throws com.google.gwt.user.client.rpc.SerializationException { return new org.ovirt.engine.core.common.action.ActionReturnValue ( ) ; }
Source:
org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatusForXmlRpc glusterVolumeGeoRepStatus ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterVolumeGeoRepSessionDelete ( java.lang.String volumeName , java.lang.String remoteHost , java.lang.String remoteVolumeName , java.lang.String userName ) ;
Source:
protected void AlertIfPowerManagementOperationSkipped ( java.lang.String operation , java.lang.Throwable throwable ) { Alert ( AuditLogType.VDS_ALERT_FENCE_OPERATION_SKIPPED , operation , throwable ) ; }

Target:
protected void alertIfPowerManagementOperationSkipped ( java.lang.String operation , java.lang.Throwable throwable ) { Alert ( AuditLogType.VDS_ALERT_FENCE_OPERATION_SKIPPED , operation , throwable ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.DiskImage createShareableDisk ( org.ovirt.engine.core.common.businessentities.VolumeFormat volumeFormat ) { org.ovirt.engine.core.common.businessentities.DiskImage disk = createDiskImage ( ) ; disk.setvolumeFormat ( volumeFormat ) ; disk.setShareable ( true ) ; return disk ; }

Target:
private org.ovirt.engine.core.common.businessentities.DiskImage createShareableDisk ( org.ovirt.engine.core.common.businessentities.VolumeFormat volumeFormat ) { org.ovirt.engine.core.common.businessentities.DiskImage disk = createDiskImage ( ) ; disk.setvolumeFormat ( volumeFormat ) ; disk.setShareable ( true ) ; disk.setDiskInterface ( DiskInterface.VirtIO ) ; return disk ; }
Source:
private void cpuManufacturersMatch ( ) { org.mockito.Mockito.doReturn ( true ) . when ( cmd ) . checkIfCpusSameManufacture ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.VDSGroup.class ) ) ; }

Target:
private void cpuManufacturersMatch ( ) { org.mockito.Mockito.doReturn ( true ) . when ( cmd ) . checkIfCpusSameManufacture ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.Cluster.class ) ) ; }
Source:
public static boolean isGlusterBrickProvisioningSupported ( org.ovirt.engine.core.compat.Version version ) { return ( Version.v3_6.compareTo ( version ) ) <= 0 ; }

Target:
public static boolean isGlusterBrickProvisioningSupported ( org.ovirt.engine.core.compat.Version version ) { return ( Version.v3_5.compareTo ( version ) ) <= 0 ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.scheduling.SchedulingManager.getInstance ( ) . removeExternalPolicyUnit ( getPolicyUnitId ( ) ) ; setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { schedulingManager.removeExternalPolicyUnit ( getPolicyUnitId ( ) ) ; setSucceeded ( true ) ; }
Source:
protected void validateContainerFormat ( com.woorea.openstack.glance.model.Image glanceImage ) { if ( ! ( glanceImage.getContainerFormat ( ) . equals ( org.ovirt.engine.core.bll.provider.OpenstackImageProviderProxy.GlanceImageContainer.BARE.getValue ( ) ) ) ) { throw new java.lang.RuntimeException ( "Unsupported container format" ) ; } }

Target:
protected void validateContainerFormat ( com.woorea.openstack.glance.model.Image glanceImage ) { if ( ! ( glanceImage.getContainerFormat ( ) . equals ( org.ovirt.engine.core.bll.provider.OpenStackImageProviderProxy.GlanceImageContainer.BARE.getValue ( ) ) ) ) { throw new java.lang.RuntimeException ( "Unsupported container format" ) ; } }
Source:
private void BootProtocolChanged ( ) { UpdateCanSpecify ( ) ; getAddress ( ) . setIsValid ( true ) ; getSubnet ( ) . setIsValid ( true ) ; }

Target:
private void bootProtocolChanged ( ) { updateCanSpecify ( ) ; getAddress ( ) . setIsValid ( true ) ; getSubnet ( ) . setIsValid ( true ) ; }
Source:
public boolean eval ( T a ) { return ( a.getDiskInterface ( ) ) == ( org.ovirt.engine.core.common.businessentities.DiskInterface.IDE ) ; }

Target:
public boolean eval ( T a ) { return ( a.getDiskInterface ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.DiskInterface.IDE ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.storage_domains getStorageDomainEntity ( int index ) { org.ovirt.engine.core.common.businessentities.storage_domains entity = control.createMock ( org.ovirt.engine.core.common.businessentities.storage_domains.class ) ; return org.ovirt.engine.api.restapi.resource.BackendVmDiskResourceTest.setUpStorageDomainEntityExpectations ( entity , index , StorageType.NFS ) ; }

Target:
protected org.ovirt.engine.api.model.StorageDomain getStorageDomainEntity ( int index ) { org.ovirt.engine.api.model.StorageDomain entity = control.createMock ( org.ovirt.engine.api.model.StorageDomain.class ) ; return org.ovirt.engine.api.restapi.resource.BackendVmDiskResourceTest.setUpStorageDomainEntityExpectations ( entity , index , StorageType.NFS ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VmPoolType getvm_pool_type ( ) { return type ; }

Target:
public org.ovirt.engine.core.common.businessentities.VmPoolType getVmPoolType ( ) { return type ; }
Source:
protected void configure ( ) { bindInfrastructure ( ) ; bindConfiguration ( ) ; }

Target:
protected void configure ( ) { requestStaticInjection ( org.ovirt.engine.ui.webadmin.gin.ClientGinjectorProvider.class ) ; bindInfrastructure ( ) ; bindConfiguration ( ) ; }
Source:
protected void executeCommand ( ) { if ( ( org.ovirt.engine.core.bll.RemoveVmFromPoolCommand.getVmPoolId ( ) ) != null ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmPoolDao ( ) . removeVmFromVmPool ( org.ovirt.engine.core.bll.RemoveVmFromPoolCommand.getVmId ( ) ) ; org.ovirt.engine.core.bll.RemoveVmFromPoolCommand.setSucceeded ( true ) ; } }

Target:
protected void executeCommand ( ) { if ( ( org.ovirt.engine.core.bll.RemoveVmFromPoolCommand.getVmPoolId ( ) ) != null ) { org.ovirt.engine.core.bll.RemoveVmFromPoolCommand.getVmPoolDAO ( ) . removeVmFromVmPool ( org.ovirt.engine.core.bll.RemoveVmFromPoolCommand.getVmId ( ) ) ; org.ovirt.engine.core.bll.RemoveVmFromPoolCommand.setSucceeded ( true ) ; } }
Source:
public boolean getBondingOptionsOverrideNotification ( ) { return getbondingOptionsOverrideNotification ( ) ; }

Target:
public boolean getBondingOptionsOverrideNotification ( ) { return bondingOptionsOverrideNotification ; }
Source:
public void testUrlWithPagination ( ) { org.ovirt.engine.core.common.queries.ErrataFilter errataFilter = new org.ovirt.engine.core.common.queries.ErrataFilter ( ) ; errataFilter.setPageSize ( 20 ) ; errataFilter.setPageNumber ( 3 ) ; org.ovirt.engine.core.bll.host.provider.foreman.FilteredErrataRelativeUrlBuilder underTest = createFilteredErrataRelativeUrlBuilder ( errataFilter ) ; org.junit.Assert.assertEquals ( "/katello/api/v2/systems/xxx/errata?page=3&per_page=20" , underTest.build ( ) ) ; }

Target:
public void testUrlWithPagination ( ) { org.ovirt.engine.core.common.queries.ErrataFilter errataFilter = new org.ovirt.engine.core.common.queries.ErrataFilter ( ) ; errataFilter.setPageSize ( 20 ) ; errataFilter.setPageNumber ( 3 ) ; org.ovirt.engine.core.bll.host.provider.foreman.FilteredErrataRelativeUrlBuilder underTest = createFilteredErrataRelativeUrlBuilder ( errataFilter ) ; org.junit.jupiter.api.Assertions.assertEquals ( "/katello/api/v2/systems/xxx/errata?page=3&per_page=20" , underTest.build ( ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) . intValue ( ) : 0 ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) : 1 ; }
Source:
public void canDoActionFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.ManageGlusterServiceCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterServiceParameters ( null , null , org.ovirt.engine.core.common.businessentities.gluster.ServiceType.NFS , org.ovirt.engine.core.common.constants.gluster.GlusterConstants.MANAGE_GLUSTER_SERVICE_ACTION_TYPE_START ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }

Target:
public void validateFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.ManageGlusterServiceCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterServiceParameters ( null , null , org.ovirt.engine.core.common.businessentities.gluster.ServiceType.NFS , org.ovirt.engine.core.common.constants.gluster.GlusterConstants.MANAGE_GLUSTER_SERVICE_ACTION_TYPE_START ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.gin.ClientGinjector ginjector ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( ginjector.getApplicationConstants ( ) . dataCenterStorageSubTabLabel ( ) , 0 , ginjector.getSubTabDataCenterStorageModelProvider ( ) ) ; }

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.businessentities.StorageDomain , org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterListModel , org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterStorageListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.dataCenterStorageSubTabLabel ( ) , 0 , modelProvider ) ; }
Source:
public org.ovirt.engine.api.model.Nic get ( ) { return super . get ( ) ; }

Target:
public org.ovirt.engine.api.resource.CreationResource getCreationResource ( java.lang.String oid ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendCreationResource ( oid ) ) ; }
Source:
public boolean disconnectStorageFromDomainByVdsId ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain , org.ovirt.engine.core.compat.Guid vdsId ) { return runConnectionStorageToDomain ( storageDomain , vdsId , VdcActionType.RemoveStorageServerConnection.getValue ( ) ) ; }

Target:
public boolean disconnectStorageFromDomainByVdsId ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain , org.ovirt.engine.core.compat.Guid vdsId ) { return runConnectionStorageToDomain ( storageDomain , vdsId , VdcActionType.DisconnectStorageServerConnection.getValue ( ) ) ; }
Source:
protected void onSelectedItemChanged ( ) { super . onSelectedItemChanged ( ) ; updateActionAvailability ( ) ; getBrickListModel ( ) . setEntity ( provideDetailModelEntity ( getSelectedItem ( ) ) ) ; }

Target:
protected void onSelectedItemChanged ( ) { super . onSelectedItemChanged ( ) ; updateActionAvailability ( ) ; getBrickListModel ( ) . setVolumeEntity ( ( ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity ) ( provideDetailModelEntity ( getSelectedItem ( ) ) ) ) ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase runAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue = notAllowToRunAction ( actionType ) ; if ( returnValue != null ) { return returnValue ; } return runActionImpl ( actionType , parameters , false , null ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase runAction ( org.ovirt.engine.core.common.action.ActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue = notAllowToRunAction ( actionType ) ; if ( returnValue != null ) { return returnValue ; } return runActionImpl ( actionType , parameters , false , null ) ; }
Source:
protected void auditLog ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase auditLogable , org.ovirt.engine.core.common.AuditLogType logType ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( auditLogable , logType ) ; }

Target:
protected void auditLog ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase auditLogable , org.ovirt.engine.core.common.AuditLogType logType ) { new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector ( ) . log ( auditLogable , logType ) ; }
Source:
public void testPosixEmptyVFSType ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections newPosixConnection = createPosixConnection ( "multipass.my.domain.tlv.company.com:/export/allstorage/data1" , StorageType.POSIXFS , null , "timeo=30" ) ; parameters.setStorageServerConnection ( newPosixConnection ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( getCommand ( ) , EngineMessage.VALIDATION_STORAGE_CONNECTION_EMPTY_VFSTYPE ) ; }

Target:
public void testPosixEmptyVFSType ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections newPosixConnection = createPosixConnection ( "multipass.my.domain.tlv.company.com:/export/allstorage/data1" , StorageType.POSIXFS , null , "timeo=30" ) ; parameters.setStorageServerConnection ( newPosixConnection ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( getCommand ( ) , EngineMessage.VALIDATION_STORAGE_CONNECTION_EMPTY_VFSTYPE ) ; }
Source:
public static java.lang.String getConstraint ( javax.ws.rs.core.UriInfo uriInfo , java.lang.Class < ? > clz , boolean typePrefix ) { return org.ovirt.engine.api.common.util.QueryHelper.getConstraint ( uriInfo , null , clz , typePrefix ) ; }

Target:
public static java.lang.String getConstraint ( javax.ws.rs.core.HttpHeaders headers , javax.ws.rs.core.UriInfo ui , java.lang.String defaultQuery , java.lang.Class < ? > clz ) { return org.ovirt.engine.api.common.util.QueryHelper.getConstraint ( headers , ui , defaultQuery , clz , true ) ; }
Source:
protected void handleVmNotUp ( ) { if ( org.ovirt.engine.core.bll.lsm.LiveMigrateDiskCommand.isEndSuccessfully ( ) ) { getParameters ( ) . incrementExecutionIndex ( ) ; } getParameters ( ) . setTaskGroupSuccess ( false ) ; org.ovirt.engine.core.bll.lsm.LiveMigrateDiskCommand.setSucceeded ( true ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getVdsId ( ) { return ( getVm ( ) . getrun_on_vds ( ) ) != null ? getVm ( ) . getrun_on_vds ( ) . getValue ( ) : org.ovirt.engine.core.compat.Guid.Empty ; }
Source:
public void calculateNetworkImplementationDetailsNetworkDefaultMtuOutOfSync ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface = createNetworkDevice ( ) ; calculateNetworkImplementationDetailsAndAssertSync ( iface , false , iface.isBridged ( ) , 0 , iface.getVlanId ( ) , createQos ( ) ) ; }

Target:
public void calculateNetworkImplementationDetailsNetworkIsSync ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface = createNetworkDevice ( ) ; calculateNetworkImplementationDetailsAndAssertSync ( iface , true , iface.isBridged ( ) , iface.getMtu ( ) , iface.getVlanId ( ) , createQos ( ) ) ; }
Source:
protected org.ovirt.engine.api.model.Network addParents ( org.ovirt.engine.api.model.Network model ) { return org.ovirt.engine.api.restapi.resource.BackendNetworkHelper.addParents ( model ) ; }

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 void InvokeUIThread ( org.ovirt.engine.ui.uicompat.ITaskTarget target , java.lang.Object state ) { setState ( state ) ; target.run ( this ) ; }

Target:
public void invokeUIThread ( org.ovirt.engine.ui.uicompat.ITaskTarget target , java.lang.Object state ) { setState ( state ) ; target.run ( this ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { com.google.gwt.event.logical.shared.ValueChangeEvent.fire ( this , object ) ; updateKeyTitle ( object ) ; }

Target:
protected void init ( ) { driver.initialize ( this ) ; hideLabels ( ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { model.getDetachAllCommand ( ) . Execute ( ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { model.getApplyCommand ( ) . Execute ( ) ; }
Source:
org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeProfileInfoReturnForXmlRpc glusterVolumeProfileInfo ( org.ovirt.engine.core.compat.Guid clusterId , java.lang.String volumeName ) ;

Target:
org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeProfileInfoReturnForXmlRpc glusterVolumeProfileInfo ( org.ovirt.engine.core.compat.Guid clusterId , java.lang.String volumeName , boolean nfs ) ;
Source:
public void render ( org.ovirt.engine.ui.common.widget.table.column.Context context , java.lang.String value , com.google.gwt.safehtml.shared.SafeHtmlBuilder sb ) { org.ovirt.engine.ui.common.widget.table.column.ScrollableTextCell.CellTemplate template = com.google.gwt.core.client.GWT.create ( org.ovirt.engine.ui.common.widget.table.column.ScrollableTextCell.CellTemplate.class ) ; sb.append ( template.input ( value , "" ) ) ; }

Target:
public void render ( org.ovirt.engine.ui.common.widget.table.cell.Context context , java.lang.String value , com.google.gwt.safehtml.shared.SafeHtmlBuilder sb ) { org.ovirt.engine.ui.common.widget.table.cell.ScrollableTextCell.CellTemplate template = com.google.gwt.core.client.GWT.create ( org.ovirt.engine.ui.common.widget.table.cell.ScrollableTextCell.CellTemplate.class ) ; sb.append ( template.input ( value , "" ) ) ; }
Source:
public org.ovirt.engine.api.model.Statistic setDatum ( org.ovirt.engine.api.model.Statistic statistic , java.lang.String datum ) { statistic.getValues ( ) . getValues ( ) . get ( 0 ) . setDetail ( datum ) ; return statistic ; }

Target:
public org.ovirt.engine.api.model.Statistic setDatum ( org.ovirt.engine.api.model.Statistic statistic , java.lang.String datum ) { return org.ovirt.engine.api.restapi.utils.StatisticResourceUtils.setDatum ( statistic , datum ) ; }
Source:
public void isVlanDeviceNonNetworkFree ( ) { freeVfCommon ( 0 , 0 , 0 , 0 , 1 ) ; org.ovirt.engine.core.common.businessentities.HostDevice hostDevice = getSingleMockedNonFreeDevice ( ) ; org.junit.Assert.assertFalse ( networkDeviceHelper.isDeviceNetworkFree ( hostDevice ) ) ; }

Target:
public void noNicDeviceNonNetworkFree ( ) { freeVfCommon ( 0 , 0 , 1 , 0 , 0 , 0 ) ; org.ovirt.engine.core.common.businessentities.HostDevice hostDevice = getSingleMockedNonFreeDevice ( ) ; org.junit.Assert.assertFalse ( networkDeviceHelper.isDeviceNetworkFree ( hostDevice ) ) ; }
Source:
public void setUser ( java.lang.String user ) { _dialog.setUser ( user ) ; }

Target:
public void close ( ) { stop ( ) ; if ( ( _dialog ) != null ) { _dialog.disconnect ( ) ; _dialog = null ; } }
Source:
protected void verifyModel ( org.ovirt.engine.core.common.businessentities.network.NetworkAttachment model ) { assertEquals ( org.ovirt.engine.api.restapi.resource.HOST_NIC_ID.toString ( ) , model.getHostNic ( ) . getId ( ) ) ; }

Target:
protected void verifyModel ( org.ovirt.engine.core.common.businessentities.network.NetworkAttachment model ) { org.junit.Assert.assertEquals ( org.ovirt.engine.api.restapi.resource.HOST_NIC_ID.toString ( ) , model.getHostNic ( ) . getId ( ) ) ; }
Source:
public void lowerVersionNoHostsNoNetwork ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( cmd ) ; }

Target:
public void hasNoStorageDomains ( ) { org.mockito.Mockito.when ( sdDao.getAllForStoragePool ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( java.util.Collections.emptyList ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( cmd ) ; }
Source:
private void mockStepDao ( org.ovirt.engine.core.compat.Guid jobId ) { org.ovirt.engine.core.common.job.Step step = new org.ovirt.engine.core.common.job.Step ( ) ; step.setJobId ( jobId ) ; org.mockito.Mockito.when ( stepDao.getStepsByJobId ( org.mockito.Matchers.eq ( jobId ) ) ) . thenReturn ( java.util.Collections.singletonList ( step ) ) ; }

Target:
private void mockStepDao ( org.ovirt.engine.core.compat.Guid jobId ) { org.ovirt.engine.core.common.job.Step step = new org.ovirt.engine.core.common.job.Step ( ) ; step.setJobId ( jobId ) ; org.mockito.Mockito.when ( stepDao.getStepsByJobId ( org.mockito.ArgumentMatchers.eq ( jobId ) ) ) . thenReturn ( java.util.Collections.singletonList ( step ) ) ; }
Source:
public void setSelectionAlgorithm ( org.ovirt.engine.core.common.businessentities.VdsSelectionAlgorithm value ) { this . selectionAlgorithm = value ; }

Target:
public java.lang.Long getMemFree ( ) { return this . mVdsStatistics.getMemFree ( ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotEnabledNotSetNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setType ( UsbType.NATIVE ) ; assertEquals ( UsbPolicy.DISABLED , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED ) ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotEnabledNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; usb.setType ( UsbType.NATIVE ) ; org.junit.Assert.assertEquals ( UsbPolicy.ENABLED_NATIVE , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED ) ) ; }
Source:
public boolean isSetValue ( ) { return ( this . value ) != null ; }

Target:
public boolean isSetActualValue ( ) { return ( this . actualValue ) != null ; }
Source:
public java.util.List < java.lang.String > getMessages ( org.ovirt.engine.core.compat.Guid hostId ) { if ( messages.containsKey ( hostId ) ) { return messages.get ( hostId ) ; } else { return null ; } }

Target:
public java.util.List < java.lang.String > getMessages ( org.ovirt.engine.core.compat.Guid hostId ) { if ( messages.containsKey ( hostId ) ) { return messages.get ( hostId ) ; } else { return java.util.Collections.emptyList ( ) ; } }
Source:
public void setTemplate ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( template , value ) ) ) { template = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Template" ) ) ; } }

Target:
public void setTemplate ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( template , value ) ) ) { template = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Template" ) ) ; } }
Source:
public java.lang.String getDisplayIp ( ) { return this . vmDynamic.getdisplay_ip ( ) ; }

Target:
public void setRunOnVds ( org.ovirt.engine.core.compat.Guid value ) { this . vmDynamic.setRunOnVds ( value ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VdsNetworkInterface lookupInterfaceById ( java.lang.String id ) { for ( org.ovirt.engine.core.common.businessentities.VdsNetworkInterface iface : getCollection ( ) ) { if ( iface.getId ( ) . toString ( ) . equals ( id ) ) { return iface ; } } return null ; }

Target:
protected org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface lookupInterfaceByName ( java.lang.String name ) { for ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface : getCollection ( ) ) { if ( iface.getName ( ) . equals ( name ) ) { return iface ; } } return null ; }
Source:
public static java.util.List < java.lang.String > runAndAssertValidateFailure ( java.lang.String assertionMessage , org.ovirt.engine.core.bll.CommandBase < ? > command , org.ovirt.engine.core.common.errors.EngineMessage message ) { org.junit.Assert.assertFalse ( "Command's validate expected to fail, but succeeded" , command.validate ( ) ) ; return org.ovirt.engine.core.bll.ValidateTestUtils.assertValidationMessages ( assertionMessage , command , message ) ; }

Target:
public static java.util.List < java.lang.String > runAndAssertValidateFailure ( java.lang.String assertionMessage , org.ovirt.engine.core.bll.CommandBase < ? > command , org.ovirt.engine.core.common.errors.EngineMessage message ) { org.junit.jupiter.api.Assertions.assertFalse ( command.validate ( ) , "Command's validate expected to fail, but succeeded" ) ; return org.ovirt.engine.core.bll.ValidateTestUtils.assertValidationMessages ( assertionMessage , command , message ) ; }
Source:
private void RemoveVdsFromCollection ( ) { org.ovirt.engine.core.bll.Backend.getInstance ( ) . getResourceManager ( ) . RunVdsCommand ( VDSCommandType.RemoveVds , new org.ovirt.engine.core.common.vdscommands.RemoveVdsVDSCommandParameters ( org.ovirt.engine.core.bll.RemoveVdsCommand.getVdsId ( ) ) ) ; }

Target:
private void RemoveVdsFromCollection ( ) { org.ovirt.engine.core.bll.RemoveVdsCommand.getBackend ( ) . getResourceManager ( ) . RunVdsCommand ( VDSCommandType.RemoveVds , new org.ovirt.engine.core.common.vdscommands.RemoveVdsVDSCommandParameters ( org.ovirt.engine.core.bll.RemoveVdsCommand.getVdsId ( ) ) ) ; }
Source:
public void InternalSetVmStatus ( org.ovirt.engine.core.common.businessentities.VM vm , final org.ovirt.engine.core.common.businessentities.VMStatus status ) { InternalSetVmStatus ( vm , status , VmExitStatus.Normal , StringUtils.EMPTY , VmExitReason.Unknown ) ; }

Target:
public void internalSetVmStatus ( org.ovirt.engine.core.common.businessentities.VM vm , final org.ovirt.engine.core.common.businessentities.VMStatus status ) { internalSetVmStatus ( vm , status , VmExitStatus.Normal , StringUtils.EMPTY , VmExitReason.Unknown ) ; }
Source:
private void updateVmDevices ( org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct [ ] vms ) { for ( org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct vm : vms ) { processVmDevices ( vm ) ; } }

Target:
protected void auditLog ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase auditLogable , org.ovirt.engine.core.common.AuditLogType logType ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( auditLogable , logType ) ; }
Source:
protected final void addCanDoActionMessages ( org.ovirt.engine.core.common.errors.EngineMessage ... messages ) { for ( org.ovirt.engine.core.common.errors.EngineMessage msg : messages ) { addCanDoActionMessage ( msg ) ; } }

Target:
protected final void addValidationMessages ( org.ovirt.engine.core.common.errors.EngineMessage ... messages ) { for ( org.ovirt.engine.core.common.errors.EngineMessage msg : messages ) { addValidationMessage ( msg ) ; } }
Source:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledNotSetNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setType ( "native" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE , null ) , UsbPolicy.ENABLED_NATIVE ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotEnabledNotSetNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setType ( "native" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED ) , UsbPolicy.DISABLED ) ; }
Source:
public void testIsUsingScsiReservationValidWhenSgioIsUnFiltered ( ) { setupForLun ( ) ; org.ovirt.engine.core.common.businessentities.storage.LunDisk lunDisk1 = createLunDisk ( ScsiGenericIO.UNFILTERED ) ; org.junit.Assert.assertThat ( lunValidator.isUsingScsiReservationValid ( org.ovirt.engine.core.bll.validator.storage.DiskValidatorTest.createVM ( ) , org.ovirt.engine.core.bll.validator.storage.DiskValidatorTest.createDiskVmElementUsingScsiReserevation ( ) , lunDisk1 ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testIsUsingScsiReservationValidWhenSgioIsUnFiltered ( ) { setupForLun ( ) ; org.ovirt.engine.core.common.businessentities.storage.LunDisk lunDisk1 = createLunDisk ( ScsiGenericIO.UNFILTERED ) ; org.hamcrest.MatcherAssert.assertThat ( lunValidator.isUsingScsiReservationValid ( org.ovirt.engine.core.bll.validator.storage.DiskValidatorTest.createVM ( ) , org.ovirt.engine.core.bll.validator.storage.DiskValidatorTest.createDiskVmElementUsingScsiReserevation ( ) , lunDisk1 ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public java.lang.String getError ( ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) . getVdsErrorsTranslator ( ) . TranslateErrorTextSingle ( org.ovirt.engine.core.bll.storage.pool.SetStoragePoolStatusCommand.getParameters ( ) . getError ( ) . toString ( ) ) ; }

Target:
public java.lang.String getError ( ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) . getVdsErrorsTranslator ( ) . translateErrorTextSingle ( org.ovirt.engine.core.bll.storage.pool.SetStoragePoolStatusCommand.getParameters ( ) . getError ( ) . toString ( ) ) ; }
Source:
public void run ( ) { int mSecToWait = ( org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.DisableFenceAtStartupInSec ) ) * 1000 ; org.ovirt.engine.core.utils.ThreadUtils.sleep ( mSecToWait ) ; startHosts ( hostsWithPMInReboot ) ; }

Target:
public void run ( ) { waitUntilFencingAllowed ( ) ; startHosts ( hostsWithPMInReboot ) ; }
Source:
public void UpdateVmConfigurationBySnapshot ( org.ovirt.engine.core.compat.Guid snapshotId ) { org.ovirt.engine.ui.uicommonweb.models.vms.SnapshotModel snapshotModel = snapshotsMap.get ( snapshotId ) ; snapshotModel.UpdateVmConfiguration ( ) ; }

Target:
public void updateVmConfigurationBySnapshot ( org.ovirt.engine.core.compat.Guid snapshotId ) { org.ovirt.engine.ui.uicommonweb.models.vms.SnapshotModel snapshotModel = snapshotsMap.get ( snapshotId ) ; snapshotModel.updateVmConfiguration ( ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.ConsoleProtocol resolveSelectedProtocol ( org.ovirt.engine.ui.uicommonweb.models.HasConsoleModel item ) { return consoleModelsCache.resolveSelectedProtocol ( item ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.ConsoleProtocol resolveSelectedProtocol ( org.ovirt.engine.ui.uicommonweb.models.HasConsoleModel item ) { return consoleModelsCache.resolveUserSelectedProtocol ( item ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.OriginType getRawValue ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.VM ) ( object ) ) . getOrigin ( ) ; }

Target:
public java.lang.String getValue ( java.lang.Object object ) { return ( java.lang.String.valueOf ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData ) ( object ) ) . getVm ( ) . getVmMemSizeMb ( ) ) ) + " MB" ; }
Source:
public void onFailureTryNextAgent ( ) { mockExecutor ( agent1 , false ) ; mockExecutor ( agent2 , true ) ; mockCheckStatus ( "on" ) ; command.executeCommand ( ) ; org.junit.Assert.assertTrue ( command.getSucceeded ( ) ) ; }

Target:
private void mockDbFacades ( ) { mockVdsGroupDao ( ) ; mockVmDao ( ) ; mockAuditLogDao ( ) ; mockVdsDao ( ) ; mockVdsDynamicDao ( ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult checkStorageDomainSharedStatusNotLocked ( ) { if ( ( storageDomain ) != null ) { if ( ( storageDomain.getStorageDomainSharedStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainSharedStatus.Locked ) ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAIN_STATUS_ILLEGAL ) ; } } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult checkStorageDomainSharedStatusNotLocked ( ) { if ( ( storageDomain ) != null ) { if ( ( storageDomain.getStorageDomainSharedStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainSharedStatus.Locked ) ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_STORAGE_DOMAIN_STATUS_ILLEGAL ) ; } } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
public void setNonOperationalReasonEntity ( org.ovirt.engine.core.common.businessentities.NonOperationalReason value ) { if ( ( nonOperationalReasonEntity ) != value ) { nonOperationalReasonEntity = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "NonOperationalReasonEntity" ) ) ; } }

Target:
public void setAutomaticLargePage ( java.lang.Object value ) { if ( ( automaticLargePage ) != value ) { automaticLargePage = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "AutomaticLargePage" ) ) ; } }
Source:
protected void executeVmCommand ( ) { super . executeVmCommand ( ) ; org.ovirt.engine.core.bll.AddVmAndCloneImageCommand.setVm ( null ) ; org.ovirt.engine.core.bll.AddVmAndCloneImageCommand.getVm ( ) . setvmt_guid ( VmTemplateHandler.BlankVmTemplateId ) ; org.ovirt.engine.core.bll.AddVmAndCloneImageCommand.getVmStaticDao ( ) . update ( org.ovirt.engine.core.bll.AddVmAndCloneImageCommand.getVm ( ) . getStaticData ( ) ) ; }

Target:
protected void executeVmCommand ( ) { super . executeVmCommand ( ) ; org.ovirt.engine.core.bll.AddVmAndCloneImageCommand.setVm ( null ) ; org.ovirt.engine.core.bll.AddVmAndCloneImageCommand.getVm ( ) . setVmtGuid ( VmTemplateHandler.BlankVmTemplateId ) ; org.ovirt.engine.core.bll.AddVmAndCloneImageCommand.getVmStaticDao ( ) . update ( org.ovirt.engine.core.bll.AddVmAndCloneImageCommand.getVm ( ) . getStaticData ( ) ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.LunDisk disk = ( ( org.ovirt.engine.core.common.businessentities.LunDisk ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ) ) ; return java.lang.String.valueOf ( disk.getLun ( ) . getPathCount ( ) ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.storage.LunDisk disk = ( ( org.ovirt.engine.core.common.businessentities.storage.LunDisk ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ) ) ; return disk.getId ( ) . toString ( ) ; }