auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void invalidProviderType ( ) { org.mockito.Mockito.when ( provider.getType ( ) ) . thenReturn ( org.ovirt.engine.core.bll.provider.NetworkProviderValidatorTest.NON_NETWORK_PROVIDER_TYPE ) ; org.junit.Assert.assertThat ( validator.providerTypeValid ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_PROVIDER_TYPE_MISMATCH ) ) ; }

Target:
public void invalidProviderType ( ) { org.mockito.Mockito.when ( provider.getType ( ) ) . thenReturn ( org.ovirt.engine.core.bll.provider.NetworkProviderValidatorTest.NON_NETWORK_PROVIDER_TYPE ) ; org.junit.Assert.assertThat ( validator.providerTypeIsOpenstack ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_PROVIDER_TYPE_MISMATCH ) ) ; }
Source:
java.util.Comparator < org.ovirt.engine.ui.uicommonweb.models.SortedListModelTest.TestItem > makeSaltComparator ( ) { return new java.util.Comparator < org.ovirt.engine.ui.uicommonweb.models.SortedListModelTest.TestItem > ( ) { @ java.lang.Override public int compare ( org.ovirt.engine.ui.uicommonweb.models.SortedListModelTest.TestItem a , org.ovirt.engine.ui.uicommonweb.models.SortedListModelTest.TestItem b ) { return ( a.salt ) - ( b.salt ) ; } } ; }

Target:
java.util.Comparator < org.ovirt.engine.ui.uicommonweb.models.SortedListModelTest.TestItem > makeSaltComparator ( ) { return java.util.Comparator.comparingInt ( ( t ) -> t.salt ) ; }
Source:
public void getVMProperties ( org.ovirt.engine.core.compat.Version version , java.util.Map < java.lang.String , java.lang.String > propertiesMap , java.lang.String vmPropertiesFieldValue ) { if ( org.ovirt.engine.core.compat.StringHelper.isNullOrEmpty ( vmPropertiesFieldValue ) ) { return ; } populateVMProperties ( version , vmPropertiesFieldValue , propertiesMap ) ; }

Target:
public void getVMProperties ( org.ovirt.engine.core.compat.Version version , java.util.Map < java.lang.String , java.lang.String > propertiesMap , java.lang.String vmPropertiesFieldValue ) { if ( org.apache.commons.lang.StringUtils.isEmpty ( vmPropertiesFieldValue ) ) { return ; } populateVMProperties ( version , vmPropertiesFieldValue , propertiesMap ) ; }
Source:
protected void setUpGetEntityExpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( false ) ; }

Target:
public void testRemoveFailed ( ) throws java.lang.Exception { doTestBadRemove ( true , false , org.ovirt.engine.api.restapi.resource.FAILURE ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc validateStorageDomain ( java.lang.String sdUUID ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterHookUpdate ( java.lang.String glusterCommand , java.lang.String stage , java.lang.String hookName , java.lang.String content , java.lang.String checksum ) ;
Source:
public org.ovirt.engine.api.resource.NetworkResource getNetworkResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendNetworkResource ( id , this ) ) ; }

Target:
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 ) ; }
Source:
public void setmem_commited_percent ( java.lang.Integer value ) { }

Target:
public void setMemSharedPercent ( java.lang.Integer value ) { }
Source:
public java.util.List < org.ovirt.engine.core.dal.VdcBllMessages > getViolations ( ) { return violations ; }

Target:
public java.util.List < java.lang.String > getRemoveNetworks ( ) { return removedNetworks ; }
Source:
public static java.lang.String map ( org.ovirt.engine.api.model.ExternalSystemType type ) { switch ( type ) { case VDSM : return ExternalSystemType.VDSM.toString ( ) ; case GLUSTER : return ExternalSystemType.GLUSTER.toString ( ) ; default : return null ; } }

Target:
public static org.ovirt.engine.api.model.ExternalSystemType map ( org.ovirt.engine.api.model.ExternalSystemType type ) { switch ( type ) { case VDSM : return org.ovirt.engine.api.model.ExternalSystemType.VDSM ; case GLUSTER : return org.ovirt.engine.api.model.ExternalSystemType.GLUSTER ; default : return null ; } }
Source:
protected boolean saveDiskIfNotExists ( org.ovirt.engine.core.common.businessentities.DiskImage image ) { if ( ! ( getBaseDiskDao ( ) . exists ( image.getId ( ) ) ) ) { getBaseDiskDao ( ) . save ( image ) ; return true ; } return false ; }

Target:
protected boolean saveDiskIfNotExists ( org.ovirt.engine.core.common.businessentities.storage.DiskImage image ) { if ( ! ( getBaseDiskDao ( ) . exists ( image.getId ( ) ) ) ) { getBaseDiskDao ( ) . save ( image ) ; return true ; } return false ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc reconstructMaster ( java.lang.String spUUID , java.lang.String poolName , java.lang.String masterDom , java.util.Map < java.lang.String , java.lang.String > domDict , int masterVersion , java.lang.String lockPolicy , int lockRenewalIntervalSec , int leaseTimeSec , int ioOpTimeoutSec , int leaseRetries ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc reconstructMaster ( java.lang.String spUUID , java.lang.String poolName , java.lang.String masterDom , java.util.Map < java.lang.String , java.lang.String > domDict , int masterVersion , java.lang.String lockPolicy , int lockRenewalIntervalSec , int leaseTimeSec , int ioOpTimeoutSec , int leaseRetries , int hostSpmId ) ;
Source:
public static boolean IsFieldsUpdated ( org.ovirt.engine.core.common.businessentities.VdsStatic source , org.ovirt.engine.core.common.businessentities.VdsStatic distination , java.lang.Iterable < java.lang.String > list ) { return org.ovirt.engine.core.bll.VdsHandler.mUpdateVdsStatic.IsFieldsUpdated ( source , distination , list ) ; }

Target:
public static boolean IsFieldsUpdated ( org.ovirt.engine.core.common.businessentities.VdsStatic source , org.ovirt.engine.core.common.businessentities.VdsStatic destination , java.lang.Iterable < java.lang.String > list ) { return org.ovirt.engine.core.bll.VdsHandler.mUpdateVdsStatic.IsFieldsUpdated ( source , destination , list ) ; }
Source:
private void setUpGetEntityExpectations ( int index , org.ovirt.engine.api.model.IscsiBond result ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.GetIscsiBondById , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ index ] } , result ) ; }

Target:
private void setUpGetEntityExpectations ( int index , org.ovirt.engine.api.model.IscsiBond result ) throws java.lang.Exception { setUpGetEntityExpectations ( QueryType.GetIscsiBondById , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ index ] } , result ) ; }
Source:
java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > getAll ( ) ;

Target:
java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > getAll ( org.ovirt.engine.core.compat.Guid userID , boolean isFiltered ) ;
Source:
public void onClick ( java.util.List < T > selectedItems ) { command.Execute ( ) ; }

Target:
public void onClick ( java.util.List < T > selectedItems ) { command.execute ( ) ; }
Source:
private void logFailureMessage ( java.lang.RuntimeException ex ) { org.ovirt.engine.core.vdsbroker.VdsManager.log.warnFormat ( "Failed to refresh VDS , vds = {0} : {1}, error = '{2}', continuing." , vds.getId ( ) , vds.getName ( ) , ex ) ; }

Target:
private void logFailureMessage ( java.lang.RuntimeException ex ) { org.ovirt.engine.core.vdsbroker.VdsManager.log.warn ( "Failed to refresh VDS, continuing, vds ='{}' ('{}'): {}" , vds.getName ( ) , vds.getId ( ) , ex.getMessage ( ) ) ; org.ovirt.engine.core.vdsbroker.VdsManager.log.error ( "Exception" , ex ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VM getVm ( ) { org.ovirt.engine.core.common.businessentities.VM vm = new org.ovirt.engine.core.common.businessentities.VM ( ) ; vm.setId ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; vm.setStoragePoolId ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; return vm ; }

Target:
public org.ovirt.engine.core.common.businessentities.VM getVm ( ) { org.ovirt.engine.core.common.businessentities.VM vm = new org.ovirt.engine.core.common.businessentities.VM ( ) ; vm.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; vm.setStoragePoolId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; return vm ; }
Source:
public void run ( ) { runInternalActionWithTasksContext ( VdcActionType.ProcessDownVm , new org.ovirt.engine.core.common.action.IdParameters ( getVm ( ) . getId ( ) ) ) ; }

Target:
public void run ( ) { runInternalActionWithTasksContext ( VdcActionType.ProcessDownVm , new org.ovirt.engine.core.common.action.ProcessDownVmParameters ( getVm ( ) . getId ( ) ) ) ; }
Source:
private void CleanConnection ( org.ovirt.engine.core.common.businessentities.StorageServerConnections connection , org.ovirt.engine.core.compat.Guid hostId ) { org.ovirt.engine.ui.frontend.Frontend.RunAction ( VdcActionType.DisconnectStorageServerConnection , new org.ovirt.engine.core.common.action.StorageServerConnectionParametersBase ( connection , hostId ) , null , this ) ; }

Target:
private void CleanConnection ( org.ovirt.engine.core.common.businessentities.StorageServerConnections connection , org.ovirt.engine.core.compat.Guid hostId ) { org.ovirt.engine.ui.frontend.Frontend.RunAction ( VdcActionType.RemoveStorageServerConnection , new org.ovirt.engine.core.common.action.StorageServerConnectionParametersBase ( connection , hostId ) , null , this ) ; }
Source:
public void testRefreshUserSession ( ) { initDataForClearTest ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.USER ) ; container.getData ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID , org.ovirt.engine.core.bll.session.SessionDataContainerTest.USER , true ) ; container.cleanExpiredUsersSessions ( ) ; org.junit.Assert.assertNotNull ( "Get should return null since the session wasn't refresh" , container.getData ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID , org.ovirt.engine.core.bll.session.SessionDataContainerTest.USER , false ) ) ; }

Target:
public void testRefreshUserSession ( ) { initDataForClearTest ( org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.USER ) ; container.getData ( org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_SESSION_ID , org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.USER , true ) ; container.cleanExpiredUsersSessions ( ) ; org.junit.Assert.assertNotNull ( "Get should return null since the session wasn't refresh" , container.getData ( org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_SESSION_ID , org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.USER , false ) ) ; }
Source:
public java.lang.String getMessage ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op1 , org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op2 ) { return getVerb ( op1 ) ; }

Target:
public java.lang.String getVerb ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op1 ) { return org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkOperation.BOND_WITH.getVerb ( op1 ) ; }
Source:
public void testGetAllForVdsGroupWithPermissionsForPriviligedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result = dao.getAllForVdsGroup ( existingVds.getVdsGroupId ( ) , org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , true ) ; assertGetAllForVdsGroupCorrectResult ( result ) ; }

Target:
public void testGetAllForClusterWithPermissionsForPriviligedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result = dao.getAllForCluster ( existingVds.getClusterId ( ) , org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , true ) ; assertGetAllForClusterCorrectResult ( result ) ; }
Source:
void initEditors ( ) { applyCpuLaterEditor = new org.ovirt.engine.ui.common.widget.editor.generic.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; }

Target:
void initEditors ( ) { applyCpuLaterEditor = new org.ovirt.engine.ui.common.widget.editor.generic.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; vmUnpinnedLatchEditor = new org.ovirt.engine.ui.common.widget.editor.generic.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; }
Source:
protected org.ovirt.engine.core.dao.StorageServerConnectionLunMapDAO setUpStorageServerConnectionLunMapDAO ( ) { org.ovirt.engine.core.dao.StorageServerConnectionLunMapDAO dao = org.mockito.Mockito.mock ( org.ovirt.engine.core.dao.StorageServerConnectionLunMapDAO.class ) ; org.mockito.Mockito.when ( getDbFacadeMockInstance ( ) . getStorageServerConnectionLunMapDAO ( ) ) . thenReturn ( dao ) ; return dao ; }

Target:
protected org.ovirt.engine.core.dao.StorageServerConnectionLunMapDAO setUpStorageServerConnectionLunMapDAO ( ) { org.ovirt.engine.core.dao.StorageServerConnectionLunMapDAO dao = org.mockito.Mockito.mock ( org.ovirt.engine.core.dao.StorageServerConnectionLunMapDAO.class ) ; org.mockito.Mockito.when ( getDbFacadeMockInstance ( ) . getStorageServerConnectionLunMapDao ( ) ) . thenReturn ( dao ) ; return dao ; }
Source:
public void addMainTab ( java.lang.String label , java.lang.String historyToken , java.lang.String contentUrl ) { addTab ( MainTabPanelPresenter.TYPE_RequestTabs , MainTabPanelPresenter.TYPE_SetTabContent , label , historyToken , true , contentUrl ) ; }

Target:
public void addMainTab ( java.lang.String label , java.lang.String historyToken , java.lang.String contentUrl , org.ovirt.engine.ui.webadmin.plugin.api.TabOptions options ) { addTab ( MainTabPanelPresenter.TYPE_RequestTabs , MainTabPanelPresenter.TYPE_SetTabContent , label , historyToken , true , contentUrl , options ) ; }
Source:
public static void TryRunHighAvailableVmsOnVmDown ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.common.businessentities.VM vm = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDao ( ) . get ( vmId ) ; org.ovirt.engine.core.bll.HighAvailableVmsDirector.TryRunHighAvailableVm ( vm.getvds_group_name ( ) ) ; }

Target:
public static void TryRunHighAvailableVmsOnVmDown ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.common.businessentities.VM vm = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDao ( ) . get ( vmId ) ; org.ovirt.engine.core.bll.HighAvailableVmsDirector.TryRunHighAvailableVm ( vm.getVdsGroupName ( ) ) ; }
Source:
public static void checkStatusAndLockVm ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.bll.context.CompensationContext compensationContext ) { org.ovirt.engine.core.common.businessentities.VmDynamic vmDynamic = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDynamicDao ( ) . get ( vmId ) ; org.ovirt.engine.core.bll.VmHandler.checkStatusBeforeLock ( vmDynamic.getStatus ( ) ) ; org.ovirt.engine.core.bll.VmHandler.LockVm ( vmDynamic , compensationContext ) ; }

Target:
public static void checkStatusAndLockVm ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.bll.context.CompensationContext compensationContext ) { org.ovirt.engine.core.common.businessentities.VmDynamic vmDynamic = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDynamicDao ( ) . get ( vmId ) ; org.ovirt.engine.core.bll.VmHandler.checkStatusBeforeLock ( vmDynamic.getStatus ( ) ) ; org.ovirt.engine.core.bll.VmHandler.lockVm ( vmDynamic , compensationContext ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > glusterServicesManage ( java.lang.String [ ] serviceNames , java.lang.String action , boolean failOnError ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterServicesAction ( java.lang.String [ ] serviceNames , java.lang.String action ) ;
Source:
public void loadFileFromPath ( ) { java.lang.String baseDir = java.lang.System.getProperty ( "basedir" ) ; org.junit.Assume.assumeNotNull ( baseDir ) ; file = new java.io.File ( baseDir , relativePath ) ; }

Target:
public void loadFileFromPath ( ) { java.lang.String baseDir = java.lang.System.getProperty ( "basedir" ) ; org.ovirt.engine.core.utils.AbstractPropertiesTestBase.assumeNotNull ( baseDir ) ; file = new java.io.File ( baseDir , relativePath ) ; }
Source:
protected void SyncSearch ( ) { if ( ( getEntity ( ) ) == null ) { return ; } org.ovirt.engine.core.common.businessentities.VM vm = getEntity ( ) ; super . SyncSearch ( VdcQueryType.GetAllDisksByVmId , new org.ovirt.engine.core.common.queries.GetAllDisksByVmIdParameters ( vm.getId ( ) ) ) ; }

Target:
protected void syncSearch ( ) { if ( ( getEntity ( ) ) == null ) { return ; } org.ovirt.engine.core.common.businessentities.VM vm = getEntity ( ) ; super . syncSearch ( VdcQueryType.GetAllDisksByVmId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( vm.getId ( ) ) ) ; }
Source:
private boolean isHealthy ( org.ovirt.engine.core.common.businessentities.FenceAgent agent , org.ovirt.engine.core.common.businessentities.VDS host ) { return new org.ovirt.engine.core.bll.FenceExecutor ( host ) . fence ( FenceActionType.STATUS , agent ) . getSucceeded ( ) ; }

Target:
private boolean isHealthy ( org.ovirt.engine.core.common.businessentities.pm.FenceAgent agent , org.ovirt.engine.core.common.businessentities.VDS host ) { return ( new org.ovirt.engine.core.bll.pm.HostFenceActionExecutor ( host ) . getFenceAgentStatus ( agent ) . getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.pm.FenceOperationResult.Status.SUCCESS ) ; }
Source:
private void logEventForUser ( java.lang.String userName , org.ovirt.engine.core.common.AuditLogType auditLogType ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase msg = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; msg.setUserName ( userName ) ; new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector ( ) . log ( msg , auditLogType ) ; }

Target:
private void logEventForUser ( java.lang.String userName , org.ovirt.engine.core.common.AuditLogType auditLogType ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase msg = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; msg.setUserName ( userName ) ; auditLogDirector.log ( msg , auditLogType ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.vms.ExternalVm vm ) { return vm.getStatus ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel < org.ovirt.engine.core.common.businessentities.VM > externalVmModel ) { return externalVmModel.getEntity ( ) . getName ( ) ; }
Source:
protected java.util.Set < org.ovirt.engine.core.utils.MockConfigRule.MockConfigDescriptor < java.lang.Object > > getExtraConfigDescriptors ( ) { return new java.util.HashSet ( java.util.Arrays.asList ( org.ovirt.engine.core.utils.MockConfigRule.mockConfig ( ConfigValues.LldpInformationSupported , Version.v4_1 , false ) , org.ovirt.engine.core.utils.MockConfigRule.mockConfig ( ConfigValues.LldpInformationSupported , Version.v4_2 , true ) ) ) ; }

Target:
protected java.util.Set < org.ovirt.engine.core.utils.MockConfigDescriptor < java.lang.Object > > getExtraConfigDescriptors ( ) { return new java.util.HashSet ( java.util.Arrays.asList ( org.ovirt.engine.core.utils.MockConfigDescriptor.of ( ConfigValues.LldpInformationSupported , Version.v4_1 , false ) , org.ovirt.engine.core.utils.MockConfigDescriptor.of ( ConfigValues.LldpInformationSupported , Version.v4_2 , true ) ) ) ; }
Source:
public synchronized org.ovirt.engine.sdk.Api getConnection ( ) throws java.io.IOException , org.ovirt.engine.sdk.exceptions.ServerException , org.ovirt.engine.sdk.exceptions.UnsecuredConnectionAttemptError { if ( ( api ) == null ) { java.lang.String url = java.lang.String.format ( "%s://%s:%s/ovirt-engine/api" , protocol , server , port ) ; org.ovirt.optimizer.service.OvirtClient.log.debug ( java.lang.String.format ( "Logging to %s as %s" , url , username ) ) ; api = new org.ovirt.engine.sdk.Api ( url , username , password , null , null , requestTimeout , true , true , null , false ) ; } return api ; }

Target:
public synchronized org.ovirt.engine.sdk.Api getConnection ( ) throws java.io.IOException , org.ovirt.engine.sdk.exceptions.ServerException , org.ovirt.engine.sdk.exceptions.UnsecuredConnectionAttemptError { if ( ( api ) == null ) { java.lang.String url = java.lang.String.format ( "%s://%s:%s/ovirt-engine/api" , protocol , server , port ) ; org.ovirt.optimizer.ovirt.OvirtClient.log.debug ( java.lang.String.format ( "Logging to %s as %s" , url , username ) ) ; api = new org.ovirt.engine.sdk.Api ( url , username , password , null , null , requestTimeout , true , true , null , false ) ; } return api ; }
Source:
public void setVmName ( java.lang.String vmName ) { consoleTitle.setText ( messages.selectConsoleFor ( vmName ) ) ; }

Target:
public void setSpiceProxyEnabled ( boolean enabled , java.lang.String reason ) { enableSpiceProxy.setEnabled ( enabled ) ; enableSpiceProxyTooltip.setText ( reason ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.action.LiveMigrateDiskParameters > createLiveMigrateVmDisksParameters ( ) { return java.util.Collections.singletonList ( new org.ovirt.engine.core.common.action.LiveMigrateDiskParameters ( diskImageId , srcStorageId , dstStorageId , vmId , quotaId , diskProfileId , diskImageGroupId ) ) ; }

Target:
private org.ovirt.engine.core.common.action.LiveMigrateDiskParameters createLiveMigrateDiskParameters ( ) { return new org.ovirt.engine.core.common.action.LiveMigrateDiskParameters ( diskImageId , srcStorageId , dstStorageId , vmId , quotaId , diskProfileId , diskImageGroupId ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.action.MoveDiskParameters > createMoveDisksParameters ( ) { return java.util.Arrays.asList ( new org.ovirt.engine.core.common.action.MoveDiskParameters ( diskImageId , srcStorageId , dstStorageId ) ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.action.MoveDiskParameters > createMoveDisksParameters ( ) { return java.util.Collections.singletonList ( new org.ovirt.engine.core.common.action.MoveDiskParameters ( diskImageId , srcStorageId , dstStorageId ) ) ; }
Source:
public void validateInvalidBlockToFile ( ) { validateInvalidDestinationAndSourceDomainOfDifferentStorageSubtypes ( StorageType.ISCSI , StorageType.NFS , false ) ; }

Target:
public void validateBlockToBlock ( ) { validateInvalidDestinationAndSourceDomainOfDifferentStorageSubtypes ( StorageType.ISCSI , StorageType.ISCSI ) ; }
Source:
public java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > RunMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > multipleParams , boolean isRunOnlyIfAllCanDoPass , boolean isWaitForResult ) ;

Target:
public java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > multipleParams , boolean isRunOnlyIfAllCanDoPass , boolean isWaitForResult ) ;
Source:
private void cleanUpCompensationData ( ) { getBusinessEntitySnapshotDAO ( ) . removeAllForCommandId ( commandId ) ; }

Target:
private void cleanUpCompensationData ( ) { if ( ! ( ( getCompensationContext ( ) ) instanceof org.ovirt.engine.core.bll.context.NoOpCompensationContext ) ) { getBusinessEntitySnapshotDAO ( ) . removeAllForCommandId ( commandId ) ; } }
Source:
protected java.util.List < T > getSelectedItems ( ) { return org.ovirt.engine.ui.webadmin.section.main.presenter.AbstractMainTabWithDetailsPresenter.getView ( ) . getTableSelectionModel ( ) . getSelectedList ( ) ; }

Target:
protected java.util.List < T > getSelectedItems ( ) { return org.ovirt.engine.ui.webadmin.section.main.presenter.AbstractMainTabWithDetailsPresenter.getView ( ) . getTable ( ) . getSelectionModel ( ) . getSelectedList ( ) ; }
Source:
public void canDeleteNodeWithHighestIndex ( ) { removeNumaNodes = new java.util.ArrayList ( java.util.Arrays.asList ( org.ovirt.engine.core.bll.utils.NumaTestUtils.createVmNumaNodeWithId ( 2 , org.ovirt.engine.core.bll.numa.vm.RemoveVmNumaNodesCommandTest.NODE_ID_2 ) ) ) ; vm.setvNumaNodeList ( existingNumaNodes ) ; final org.ovirt.engine.core.bll.numa.vm.RemoveVmNumaNodesCommand command = mockedCommandWithVmFromDb ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( command ) ; }

Target:
public void canDeleteNodeWithHighestIndex ( ) { removeNumaNodes = new java.util.ArrayList ( java.util.Collections.singletonList ( org.ovirt.engine.core.bll.utils.NumaTestUtils.createVmNumaNodeWithId ( 2 , org.ovirt.engine.core.bll.numa.vm.RemoveVmNumaNodesCommandTest.NODE_ID_2 ) ) ) ; vm.setvNumaNodeList ( existingNumaNodes ) ; final org.ovirt.engine.core.bll.numa.vm.RemoveVmNumaNodesCommand command = mockedCommandWithVmFromDb ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( command ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > createDiskList ( ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.DiskImage > ( ) { { add ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) { { setId ( GUIDS [ 0 ] ) ; } } ) ; } } ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > createDiskList ( ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; diskImage.setId ( GUIDS [ 0 ] ) ; return java.util.Collections.singletonList ( diskImage ) ; }
Source:
public void setSystemTreeSelectedItem ( org.ovirt.engine.ui.uicommonweb.models.SystemTreeItemModel value ) { if ( ( systemTreeSelectedItem ) != value ) { systemTreeSelectedItem = value ; OnSystemTreeSelectedItemChanged ( ) ; } }

Target:
private void setEditCommand ( org.ovirt.engine.ui.uicommonweb.UICommand value ) { editCommand = value ; }
Source:
public void setSslChanels ( java.lang.String sslChanels ) { this . sslChanels = org.ovirt.engine.ui.common.uicommon.AbstractSpice.adjustLegacySecureChannels ( sslChanels ) ; }

Target:
public void setTitle ( java.lang.String title ) { this . consoleOptions.setTitle ( title ) ; }
Source:
public void setDataCenterVersion ( org.ovirt.engine.core.compat.Version dataCenterVersion ) { if ( ( dataCenterVersion != null ) && ( ! ( dataCenterVersion.equals ( this . dataCenterVersion ) ) ) ) { this . dataCenterVersion = dataCenterVersion ; updateExtendImageSizeSupported ( ) ; } }

Target:
public void setDataCenterVersion ( org.ovirt.engine.core.compat.Version dataCenterVersion ) { if ( ( dataCenterVersion != null ) && ( ! ( dataCenterVersion.equals ( this . dataCenterVersion ) ) ) ) { this . dataCenterVersion = dataCenterVersion ; updateActionAvailability ( ) ; } }
Source:
public void setFailBack ( boolean value ) { this . vmStatic.setfail_back ( value ) ; }

Target:
public boolean isFailBack ( ) { return this . vmStatic.isFailBack ( ) ; }
Source:
public static java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getVirtioScsiControllers ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.compat.Guid userID , boolean isFiltered ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.dao.getVmDeviceByVmIdTypeAndDevice ( vmId , VmDeviceGeneralType.CONTROLLER , VmDeviceType.VIRTIOSCSI.getName ( ) , userID , isFiltered ) ; }

Target:
public static java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getVirtioScsiControllers ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.compat.Guid userID , boolean isFiltered ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.vmDeviceDao.getVmDeviceByVmIdTypeAndDevice ( vmId , VmDeviceGeneralType.CONTROLLER , VmDeviceType.VIRTIOSCSI.getName ( ) , userID , isFiltered ) ; }
Source:
public org.apache.http.HttpResponse send ( org.apache.http.client.methods.HttpUriRequest request ) { return send ( request , false ) ; }

Target:
public org.apache.http.HttpResponse send ( org.apache.http.client.methods.HttpUriRequest request ) { try { injectHeaders ( request ) ; return client.execute ( request ) ; } catch ( java.lang.Exception e ) { throw new java.lang.RuntimeException ( e ) ; } }
Source:
protected void syncSearch ( ) { org.ovirt.engine.core.common.queries.SearchParameters tempVar = new org.ovirt.engine.core.common.queries.SearchParameters ( applySortOptions ( getSearchString ( ) ) , org.ovirt.engine.core.common.interfaces.SearchType.Provider , isCaseSensitiveSearch ( ) ) ; tempVar.setMaxCount ( getSearchPageSize ( ) ) ; super . syncSearch ( VdcQueryType.Search , tempVar ) ; }

Target:
protected void syncSearch ( ) { org.ovirt.engine.core.common.queries.SearchParameters tempVar = new org.ovirt.engine.core.common.queries.SearchParameters ( applySortOptions ( getSearchString ( ) ) , org.ovirt.engine.core.common.interfaces.SearchType.Provider , isCaseSensitiveSearch ( ) ) ; tempVar.setMaxCount ( getSearchPageSize ( ) ) ; super . syncSearch ( QueryType.Search , tempVar ) ; }
Source:
public void validateFailsOnVolumeWithoutAsyncTask ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.StopRemoveGlusterVolumeBricksCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters ( volumeWithoutAsyncTask , getBricks ( volumeWithoutAsyncTask ) ) , null ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFailsWithEmptyBricksList ( ) { cmd.getParameters ( ) . setBricks ( java.util.Collections.emptyList ( ) ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
public java.lang.String getNetmask ( ) { return nic.getIpv4Subnet ( ) ; }

Target:
public java.lang.String getIpv4Netmask ( ) { return nic.getIpv4Subnet ( ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface getIface ( ) { return iface ; }

Target:
public org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface getOriginalIface ( ) { return iface ; }
Source:
public void testGetAllClustersByDefaultNetworkProviderIdForNonExistingDefaultNetworkProviderId ( ) { org.junit.Assert.assertThat ( dao.getAllClustersByDefaultNetworkProviderId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) . size ( ) , org.hamcrest.CoreMatchers.is ( 0 ) ) ; }

Target:
public void testGetAllClustersByDefaultNetworkProviderIdForNonExistingDefaultNetworkProviderId ( ) { org.hamcrest.MatcherAssert.assertThat ( dao.getAllClustersByDefaultNetworkProviderId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) . size ( ) , org.hamcrest.CoreMatchers.is ( 0 ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.DiskImage mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { org.ovirt.engine.core.common.businessentities.DiskImage entity = super . mapRow ( rs , rowNum ) ; mapEntity ( rs , entity ) ; return entity ; }

Target:
public org.ovirt.engine.core.common.businessentities.storage.DiskImage mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { org.ovirt.engine.core.common.businessentities.storage.DiskImage entity = super . mapRow ( rs , rowNum ) ; mapEntity ( rs , entity ) ; return entity ; }
Source:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; getSearchCommand ( ) . execute ( ) ; }

Target:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; getSearchCommand ( ) . execute ( ) ; if ( ( getEntity ( ) ) != null ) { updateActionAvailability ( ) ; } }
Source:
public void testGetWithInvalidId ( ) { org.ovirt.engine.core.common.businessentities.VdcOption result = dao.get ( 717 ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetWithInvalidId ( ) { org.ovirt.engine.core.common.businessentities.VdcOption result = dao.get ( org.ovirt.engine.core.dao.VdcOptionDAOTest.INVALID_ID ) ; org.junit.Assert.assertNull ( result ) ; }
Source:
private void applyModeCustomizations ( ) { if ( ( org.ovirt.engine.ui.uicommonweb.models.ApplicationModeHelper.getUiMode ( ) ) == ( org.ovirt.engine.core.common.mode.ApplicationMode.GlusterOnly ) ) { spmTab.setVisible ( false ) ; powerManagementTab.setVisible ( false ) ; } }

Target:
private void applyModeCustomizations ( ) { if ( ( org.ovirt.engine.ui.uicommonweb.models.ApplicationModeHelper.getUiMode ( ) ) == ( org.ovirt.engine.core.common.mode.ApplicationMode.GlusterOnly ) ) { spmTab.setVisible ( false ) ; powerManagementTab.setVisible ( false ) ; consoleTab.setVisible ( false ) ; } }
Source:
public void networkBelongsToClusterDataCenterValid ( ) { cluster.setStoragePoolId ( org.ovirt.engine.core.bll.network.cluster.NetworkClusterValidatorTestBase.TEST_DC_ID1 ) ; network.setDataCenterId ( org.ovirt.engine.core.bll.network.cluster.NetworkClusterValidatorTestBase.TEST_DC_ID1 ) ; org.junit.Assert.assertThat ( validator.networkBelongsToClusterDataCenter ( cluster , network ) , org.ovirt.engine.core.bll.network.cluster.NetworkClusterValidatorTestBase.isValid ( ) ) ; }

Target:
public void networkBelongsToClusterDataCenterValid ( ) { cluster.setStoragePoolId ( org.ovirt.engine.core.bll.network.cluster.NetworkClusterValidatorTestBase.TEST_DC_ID1 ) ; network.setDataCenterId ( org.ovirt.engine.core.bll.network.cluster.NetworkClusterValidatorTestBase.TEST_DC_ID1 ) ; org.hamcrest.MatcherAssert.assertThat ( validator.networkBelongsToClusterDataCenter ( cluster , network ) , org.ovirt.engine.core.bll.network.cluster.NetworkClusterValidatorTestBase.isValid ( ) ) ; }
Source:
public void testEvaluateNonVm ( ) { junit.framework.Assert.assertTrue ( underTest.evaluate ( NetworkType.NON_VM ) ) ; }

Target:
public void testEvaluateNonVm ( ) { org.junit.Assert.assertTrue ( underTest.evaluate ( NetworkType.NON_VM ) ) ; }
Source:
public void testGetWithPm ( ) { org.ovirt.engine.core.common.businessentities.network.VnicProfile result = dao.get ( FixturesTool.VM_NETWORK_INTERFACE_PM_PROFILE ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( FixturesTool.VM_NETWORK_INTERFACE_PM_PROFILE , result.getId ( ) ) ; org.junit.Assert.assertTrue ( result.isPortMirroring ( ) ) ; }

Target:
public void testGetWithPm ( ) { org.ovirt.engine.core.common.businessentities.network.VnicProfile result = dao.get ( FixturesTool.VM_NETWORK_INTERFACE_PM_PROFILE ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertEquals ( FixturesTool.VM_NETWORK_INTERFACE_PM_PROFILE , result.getId ( ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( result.isPortMirroring ( ) ) ; }
Source:
public void testHasUniqueNameUpdateNotChangingName ( ) { final org.ovirt.engine.core.compat.Guid macPoolId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; final java.lang.String poolName = "macPool1" ; org.junit.Assert.assertThat ( callHasUniqueName ( macPoolId , macPoolId , poolName , poolName ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testHasUniqueNameUpdateNotChangingName ( ) { final org.ovirt.engine.core.compat.Guid macPoolId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; final java.lang.String poolName = "macPool1" ; org.hamcrest.MatcherAssert.assertThat ( callHasUniqueName ( macPoolId , macPoolId , poolName , poolName ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.LdapUser getUserByUPN ( java.lang.String userName ) { org.ovirt.engine.core.common.businessentities.LdapUser retVal = null ; org.ovirt.engine.core.common.businessentities.DbUser dbUser = org.ovirt.engine.core.bll.adbroker.InternalBrokerUtils.getDbUserDAO ( ) . getByUsername ( userName ) ; if ( dbUser != null ) { retVal = new org.ovirt.engine.core.common.businessentities.LdapUser ( dbUser ) ; } return retVal ; }

Target:
public static org.ovirt.engine.core.common.businessentities.LdapUser getUserByUPN ( java.lang.String userName ) { org.ovirt.engine.core.common.businessentities.LdapUser retVal = null ; org.ovirt.engine.core.common.businessentities.DbUser dbUser = org.ovirt.engine.core.bll.adbroker.InternalBrokerUtils.getDbUserDAO ( ) . getByUsernameAndDomain ( userName , "internal" ) ; if ( dbUser != null ) { retVal = new org.ovirt.engine.core.common.businessentities.LdapUser ( dbUser ) ; } return retVal ; }
Source:
private void setNics ( java.util.Map < java.lang.String , org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkInterfaceModel > nics ) { nicMap = nics ; onNicsChanged ( ) ; getNicsChangedEvent ( ) . raise ( this , EventArgs.Empty ) ; }

Target:
private void setNics ( java.util.Map < java.lang.String , org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkInterfaceModel > nics ) { nicMap = nics ; onNicsChanged ( ) ; getNicsChangedEvent ( ) . raise ( this , EventArgs.EMPTY ) ; }
Source:
public void testNameNotChanged ( ) { prepareVmToPassCanDoAction ( ) ; vm.setName ( "vm1" ) ; mockSameNameQuery ( true ) ; mockVmValidator ( ) ; command.initEffectiveCompatibilityVersion ( ) ; org.junit.Assert.assertTrue ( "canDoAction should have passed." , command.canDoAction ( ) ) ; }

Target:
public void testNameNotChanged ( ) { prepareVmToPassValidate ( ) ; vm.setName ( "vm1" ) ; mockSameNameQuery ( true ) ; mockVmValidator ( ) ; command.initEffectiveCompatibilityVersion ( ) ; org.junit.Assert.assertTrue ( "validate should have passed." , command.validate ( ) ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.storage.Disk disk ) { return disk.isWipeAfterDelete ( ) ; }

Target:
protected boolean isHotPlugSupported ( ) { if ( org.ovirt.engine.core.common.FeatureSupported.hotPlug ( org.ovirt.engine.core.bll.VmCommand.getVm ( ) . getCompatibilityVersion ( ) ) ) { return true ; } return failValidation ( EngineMessage.HOT_PLUG_IS_NOT_SUPPORTED ) ; }
Source:
public void testRefreshHeavyWeight ( ) throws java.lang.Exception { setupMocks ( ) ; glusterManager.refreshHeavyWeightData ( ) ; verifyMocksForHeavyWeight ( ) ; }

Target:
public void testRefreshHeavyWeightFor31 ( ) throws java.lang.Exception { createCluster ( Version.v3_1 ) ; setupMocks ( ) ; glusterManager.refreshHeavyWeightData ( ) ; verifyMocksForHeavyWeight ( ) ; }
Source:
public void nonVmNetworkWhenNotSupported ( ) throws java.lang.Exception { vmNetworkSetupTest ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.NON_VM_NETWORK_NOT_SUPPORTED_FOR_POOL_LEVEL ) , false , false ) ; }

Target:
public void nonVmNetworkWhenNotSupported ( ) throws java.lang.Exception { vmNetworkSetupTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NON_VM_NETWORK_NOT_SUPPORTED_FOR_POOL_LEVEL ) , false , false ) ; }
Source:
public java.lang.String getDataCenterAlertMessage ( ) { return org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) . dataCenterUninitializedAlert ( ) ; }

Target:
public java.lang.String getDataCenterAlertMessage ( ) { return "" ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.provider.UpdateProviderCommand.getDbFacade ( ) . getNetworkProviderDao ( ) . update ( org.ovirt.engine.core.bll.provider.UpdateProviderCommand.getParameters ( ) . getProvider ( ) ) ; org.ovirt.engine.core.bll.provider.UpdateProviderCommand.setSucceeded ( true ) ; }

Target:
private org.ovirt.engine.core.dao.provider.ProviderDao getProviderDao ( ) { return org.ovirt.engine.core.bll.provider.UpdateProviderCommand.getDbFacade ( ) . getProviderDao ( ) ; }
Source:
public int hashCode ( ) { return getVm ( ) . hashCode ( ) ; }

Target:
public int hashCode ( ) { return org.ovirt.engine.core.bll.scheduling.utils.VmSpecificPendingResourceEqualizer.calcHashCode ( this ) ; }
Source:
public org.ovirt.engineextensions.aaa.ldap.ASN1OctetString decode ( java.lang.String value ) { return conversion.decode ( value ) ; }

Target:
public boolean isString ( ) { return conversion.isString ( ) ; }
Source:
public org.ovirt.api.metamodel.tool.JavaClassName getBuilderName ( org.ovirt.api.metamodel.concepts.Type type ) { return getTypeName ( type , javaPackages.getBuildersPackageName ( ) , org.ovirt.api.metamodel.tool.PlainJavaTypes.BUILDER_SUFFIX ) ; }

Target:
public org.ovirt.api.metamodel.tool.JavaClassName getInterfaceName ( org.ovirt.api.metamodel.concepts.Type type ) { return getTypeName ( type , javaPackages.getTypesPackageName ( ) , null , null ) ; }
Source:
public void testGetAllByStoragePoolAndConnectionWithInvalidInput ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllByStoragePoolAndConnection ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextString ( 10 ) ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllByStoragePoolAndConnectionWithInvalidInput ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllByStoragePoolAndConnection ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextString ( 10 ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( result.isEmpty ( ) ) ; }
Source:
private boolean supportsGlusterSnapshotFeature ( org.ovirt.engine.core.common.businessentities.VDSGroup cluster ) { return ( cluster.supportsGlusterService ( ) ) && ( getGlusterUtil ( ) . isGlusterSnapshotSupported ( cluster.getCompatibilityVersion ( ) , cluster.getId ( ) ) ) ; }

Target:
private boolean supportsGlusterSnapshotFeature ( org.ovirt.engine.core.common.businessentities.Cluster cluster ) { return ( cluster.supportsGlusterService ( ) ) && ( getGlusterUtil ( ) . isGlusterSnapshotSupported ( cluster.getCompatibilityVersion ( ) , cluster.getId ( ) ) ) ; }
Source:
public void validateFailsWithEmptyBricksList ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.StopRemoveGlusterVolumeBricksCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters ( volumeWithoutRemoveBricksTask , new java.util.ArrayList < > ( ) ) , null ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFailsWithEmptyBricksList ( ) { cmd.getParameters ( ) . setBricks ( java.util.Collections.emptyList ( ) ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
public org.ovirt.engine.api.v3.types.V3VnicProfile update ( org.ovirt.engine.api.v3.types.V3VnicProfile profile ) { return adaptUpdate ( delegate :: update , profile ) ; }

Target:
public org.ovirt.engine.api.v3.types.V3VnicProfile update ( org.ovirt.engine.api.v3.types.V3VnicProfile profile ) { return adaptUpdate ( getDelegate ( ) :: update , profile ) ; }
Source:
public java.lang.String toString ( ) { return ( ( ( getClass ( ) . getSimpleName ( ) ) + " [mStatus=" ) + ( mStatus ) ) + "]" ; }

Target:
public boolean isRequestCompleted ( ) { if ( ( innerMap ) instanceof org.ovirt.engine.core.vdsbroker.jsonrpc.FutureMap ) { return ( ( org.ovirt.engine.core.vdsbroker.jsonrpc.FutureMap ) ( innerMap ) ) . isRequestCompleted ( ) ; } return true ; }
Source:
private org.ovirt.engine.core.common.action.AttachDetachVmDiskParameters createParameters ( ) { org.ovirt.engine.core.common.action.AttachDetachVmDiskParameters parameters = new org.ovirt.engine.core.common.action.AttachDetachVmDiskParameters ( new org.ovirt.engine.core.common.businessentities.storage.DiskVmElement ( diskId , vmId ) ) ; parameters.setReadOnly ( true ) ; return parameters ; }

Target:
private org.ovirt.engine.core.common.action.AttachDetachVmDiskParameters createParameters ( ) { org.ovirt.engine.core.common.businessentities.storage.DiskVmElement dve = new org.ovirt.engine.core.common.businessentities.storage.DiskVmElement ( diskId , vmId ) ; dve.setReadOnly ( true ) ; org.ovirt.engine.core.common.action.AttachDetachVmDiskParameters parameters = new org.ovirt.engine.core.common.action.AttachDetachVmDiskParameters ( dve ) ; return parameters ; }
Source:
protected void OnTaskEndFailure ( ) { LogEndTaskFailure ( ) ; EndActionIfNecessary ( ) ; }

Target:
protected void onTaskEndFailure ( ) { logEndTaskFailure ( ) ; endActionIfNecessary ( ) ; }
Source:
public void trace ( java.lang.Object msg , java.lang.Throwable t ) { if ( log.isTraceEnabled ( ) ) { log.trace ( addPrefixToLogMessage ( msg ) , t ) ; } }

Target:
public void warn ( java.lang.Object msg ) { log.warn ( convertToString ( msg ) ) ; }
Source:
public void testGetAllMacsByStoragePool ( ) throws java.lang.Exception { java.util.List < java.lang.String > result = dao.getAllMacsByDataCenter ( FixturesTool.STORAGE_POOL_NFS_2 ) ; org.junit.Assert.assertEquals ( FixturesTool.MAC_ADDRESS , result.get ( 0 ) ) ; }

Target:
public void testGetAllMacsByStoragePool ( ) throws java.lang.Exception { java.util.List < java.lang.String > result = dao.getAllMacsByDataCenter ( FixturesTool.STORAGE_POOL_MIXED_TYPES ) ; org.junit.Assert.assertEquals ( FixturesTool.MAC_ADDRESS , result.get ( 0 ) ) ; }
Source:
public void execute ( ) { placeManager.revealPlace ( new com.gwtplatform.mvp.shared.proxy.PlaceRequest.Builder ( ) . nameToken ( placeToken ) . build ( ) ) ; }

Target:
public void execute ( ) { placeManager.revealPlace ( new com.gwtplatform.mvp.shared.proxy.PlaceRequest.Builder ( ) . nameToken ( historyToken ) . build ( ) ) ; }
Source:
public static < R extends org.ovirt.engine.api.model.BaseResource > R addLinks ( javax.ws.rs.core.UriInfo uriInfo , R model ) { return org.ovirt.engine.api.restapi.util.LinkHelper.addLinks ( uriInfo , model , null ) ; }

Target:
public static < R extends org.ovirt.engine.api.model.BaseResource > R addLinks ( R model , java.lang.Class < ? extends org.ovirt.engine.api.model.BaseResource > suggestedParentType ) { return org.ovirt.engine.api.restapi.util.LinkHelper.addLinks ( model , suggestedParentType , true ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.tags > getAllForVdsWithIds ( java.lang.String ids ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "tag_ids" , ids ) ; return getCallsHandler ( ) . executeReadList ( "GetVdsTagsByTagIds" , new org.ovirt.engine.core.dao.TagDAODbFacadeImpl.TagRowMapper ( ) , parameterSource ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.tags > getAllForVds ( java.lang.String ids ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "vds_ids" , ids ) ; return getCallsHandler ( ) . executeReadList ( "GetTagsByVdsId" , org.ovirt.engine.core.dao.TagDAODbFacadeImpl.TagRowMapper.instance , parameterSource ) ; }
Source:
private void init ( ) { loadPolicyUnits ( ) ; loadClusterPolicies ( ) ; org.ovirt.engine.core.bll.scheduling.external.ExternalSchedulerDiscoveryThread discoveryThread = new org.ovirt.engine.core.bll.scheduling.external.ExternalSchedulerDiscoveryThread ( ) ; discoveryThread.start ( ) ; }

Target:
public void init ( ) { org.ovirt.engine.core.bll.scheduling.SchedulingManager.log.info ( "Initializing Scheduling manager" ) ; loadPolicyUnits ( ) ; loadClusterPolicies ( ) ; org.ovirt.engine.core.bll.scheduling.external.ExternalSchedulerDiscoveryThread discoveryThread = new org.ovirt.engine.core.bll.scheduling.external.ExternalSchedulerDiscoveryThread ( ) ; discoveryThread.start ( ) ; org.ovirt.engine.core.bll.scheduling.SchedulingManager.log.info ( "Initialized Scheduling manager" ) ; }
Source:
public javax.ws.rs.core.Response copy ( org.ovirt.engine.api.model.Action action ) ;

Target:
public javax.ws.rs.core.Response doExport ( org.ovirt.engine.api.model.Action action ) ;
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.CommandEntity > getChildCmdsByParentCmdId ( org.ovirt.engine.core.compat.Guid cmdId ) { return commandsCache.getChildCmdsByParentCmdId ( cmdId ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.CommandEntity > getChildCmdsByRootCmdId ( org.ovirt.engine.core.compat.Guid cmdId ) { return commandsCache.getChildCmdsByParentCmdId ( cmdId ) ; }