auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void handleAuthenticationException ( org.ovirt.engine.core.bll.adbroker.LdapSearchExceptionHandlingResponse response ) { org.ovirt.engine.core.bll.adbroker.LdapSearchExceptionHandler.log.error ( "Ldap authentication failed. Please check that the login name , password and path are correct. " ) ; org.ovirt.engine.core.bll.adbroker.AuthenticationResultException ex = new org.ovirt.engine.core.bll.adbroker.AuthenticationResultException ( org.ovirt.engine.core.utils.kerberos.AuthenticationResult.OTHER ) ; response.setServerScore ( Score.HIGH ) . setTranslatedException ( ex ) . setTryNextServer ( false ) ; }

Target:
private void handleAuthenticationException ( org.ovirt.engine.core.bll.adbroker.LdapSearchExceptionHandlingResponse response ) { org.ovirt.engine.core.bll.adbroker.LdapSearchExceptionHandler.log.error ( "Ldap authentication failed. Please check that the login name , password and path are correct. " ) ; org.ovirt.engine.core.bll.adbroker.AuthenticationResultException ex = new org.ovirt.engine.core.bll.adbroker.AuthenticationResultException ( org.ovirt.engine.core.utils.kerberos.AuthenticationResult.OTHER ) ; response.setOrderingAlgorithm ( OrderingAlgorithmType.NO_OP ) . setTranslatedException ( ex ) . setTryNextServer ( false ) ; }
Source:
private void dbFacadeReturnCluster ( ) { org.mockito.Mockito.when ( mockClusterDao.get ( org.mockito.Matchers.any ( ) ) ) . thenReturn ( existingGroup ) ; }

Target:
private void dbFacadeReturnCluster ( ) { org.mockito.Mockito.when ( mockClusterDao.get ( org.mockito.ArgumentMatchers.any ( ) ) ) . thenReturn ( existingGroup ) ; }
Source:
protected void onReveal ( ) { super . onReveal ( ) ; roleModelProvider.getModel ( ) . Search ( ) ; systemPermissionModelProvider.getModel ( ) . Search ( ) ; }

Target:
protected void onReveal ( ) { super . onReveal ( ) ; roleModelProvider.getModel ( ) . Search ( ) ; systemPermissionModelProvider.refresh ( ) ; systemPermissionModelProvider.getModel ( ) . Search ( ) ; }
Source:
public static org.ovirt.engine.api.model.Status create ( java.lang.String statusStr ) { if ( org.ovirt.engine.api.common.util.StringUtils.isNullOrEmpty ( statusStr ) ) { return null ; } else { org.ovirt.engine.api.model.Status status = new org.ovirt.engine.api.model.Status ( ) ; status.setState ( statusStr.toLowerCase ( ) ) ; return status ; } }

Target:
public static org.ovirt.engine.api.model.Status create ( java.lang.String statusStr ) { if ( org.apache.commons.lang.StringUtils.isEmpty ( statusStr ) ) { return null ; } else { org.ovirt.engine.api.model.Status status = new org.ovirt.engine.api.model.Status ( ) ; status.setState ( statusStr.toLowerCase ( ) ) ; return status ; } }
Source:
protected void endVmCommand ( ) { org.ovirt.engine.core.bll.RestoreAllSnapshotsCommand.getSnapshotDao ( ) . updateStatus ( org.ovirt.engine.core.bll.RestoreAllSnapshotsCommand.getParameters ( ) . getSnapshotId ( ) , SnapshotStatus.OK ) ; super . endVmCommand ( ) ; }

Target:
protected void endVmCommand ( ) { unlockSnapshot ( org.ovirt.engine.core.bll.RestoreAllSnapshotsCommand.getParameters ( ) . getSnapshotId ( ) ) ; super . endVmCommand ( ) ; }
Source:
public boolean Match ( org.ovirt.engine.core.common.action.VdcReturnValueBase source ) { return source.getCanDoAction ( ) ; }

Target:
public boolean match ( org.ovirt.engine.core.common.action.VdcReturnValueBase source ) { return source.getCanDoAction ( ) ; }
Source:
private org.ovirt.engine.core.common.action.CloneCinderDisksParameters buildCinderChildCommandParameters ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.CinderDisk > cinderDisks , org.ovirt.engine.core.compat.Guid vmSnapshotId ) { org.ovirt.engine.core.common.action.CloneCinderDisksParameters createParams = new org.ovirt.engine.core.common.action.CloneCinderDisksParameters ( cinderDisks , vmSnapshotId , diskInfoDestinationMap ) ; return withRootCommandInfo ( createParams ) ; }

Target:
private org.ovirt.engine.core.common.action.CloneCinderDisksParameters buildCinderChildCommandParameters ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.CinderDisk > cinderDisks , org.ovirt.engine.core.compat.Guid vmSnapshotId ) { org.ovirt.engine.core.common.action.CloneCinderDisksParameters createParams = new org.ovirt.engine.core.common.action.CloneCinderDisksParameters ( cinderDisks , vmSnapshotId , diskInfoDestinationMap ) ; return withRootCommandInfo ( createParams , org.ovirt.engine.core.bll.AddVmCommand.getActionType ( ) ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > glusterGeoRepMountBrokerSetup ( java.lang.String remoteUserName , java.lang.String remoteGroupName , java.lang.String remoteVolumeName ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterGeoRepMountBrokerSetup ( java.lang.String userName , java.lang.String remoteGroupName , java.lang.String remoteVolumeName , java.lang.Boolean partial ) ;
Source:
public void canDoActionSucceedsOnDiskDomainCheckWhenStorageGuidInParamsMatches ( ) throws java.lang.Exception { org.ovirt.engine.core.compat.Guid storageId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; initializeCommand ( storageId ) ; mockVmWithDisk ( storageId ) ; mockStorageDomain ( storageId ) ; mockStoragePoolIsoMap ( ) ; runAndAssertCanDoActionSuccess ( ) ; }

Target:
public void canDoActionSucceedsOnDiskDomainCheckWhenStorageGuidInParamsMatches ( ) throws java.lang.Exception { org.ovirt.engine.core.compat.Guid storageId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; initializeCommand ( storageId ) ; mockVmWithDisk ( storageId ) ; mockStorageDomain ( storageId ) ; mockStoragePoolIsoMap ( ) ; mockInterfaceList ( ) ; runAndAssertCanDoActionSuccess ( ) ; }
Source:
public void validateFailsOnNonExistingEvent ( ) { command = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.RemoveAuditLogByIdCommand ( new org.ovirt.engine.core.common.action.RemoveAuditLogByIdParameters ( org.ovirt.engine.core.bll.RemoveAuditLogByIdCommandTest.EVENT_ID_1 ) , null ) ) ; prepareMocks ( command ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.AUDIT_LOG_CANNOT_REMOVE_AUDIT_LOG_NOT_EXIST ) ; }

Target:
public void validateFailsOnNonExistingEvent ( ) { command.getParameters ( ) . setAuditLogId ( org.ovirt.engine.core.bll.RemoveAuditLogByIdCommandTest.EVENT_ID_1 ) ; prepareMocks ( command ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.AUDIT_LOG_CANNOT_REMOVE_AUDIT_LOG_NOT_EXIST ) ; }
Source:
public javax.ws.rs.core.Response suspend ( org.ovirt.engine.api.v3.types.V3Action action ) { return adaptAction ( delegate :: suspend , action ) ; }

Target:
public javax.ws.rs.core.Response start ( org.ovirt.engine.api.v3.types.V3Action action ) { return adaptAction ( getDelegate ( ) :: start , action ) ; }
Source:
public boolean ignoreChildCommandFailure ( ) { return false ; }

Target:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.snapshots.ColdMergeSnapshotSingleDiskCommand.getParameters ( ) . setCommandStep ( RemoveSnapshotSingleDiskStep.PREPARE_MERGE ) ; org.ovirt.engine.core.bll.snapshots.ColdMergeSnapshotSingleDiskCommand.getParameters ( ) . setChildCommands ( new java.util.HashMap < > ( ) ) ; org.ovirt.engine.core.bll.snapshots.ColdMergeSnapshotSingleDiskCommand.setSucceeded ( true ) ; }
Source:
public org.ovirt.optimizer.service.problemspace.OptimalDistributionStepsSolution run ( ) { prepare ( ) ; solver.solve ( bestSolution ) ; return ( ( org.ovirt.optimizer.service.problemspace.OptimalDistributionStepsSolution ) ( solver.getBestSolution ( ) ) ) ; }

Target:
public org.ovirt.optimizer.service.problemspace.OptimalDistributionStepsSolution run ( ) { prepare ( ) ; solver.solve ( bestSolution ) ; org.ovirt.optimizer.service.problemspace.OptimalDistributionStepsSolution solution = ( ( org.ovirt.optimizer.service.problemspace.OptimalDistributionStepsSolution ) ( solver.getBestSolution ( ) ) ) ; cleanup ( ) ; return solution ; }
Source:
public void passwordIsEmptyWhenUsingPublicKey ( ) { org.junit.Assert.assertThat ( validator.passwordNotEmpty ( false , AuthenticationMethod.PublicKey , null ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void passwordIsEmptyWhenUsingPublicKey ( ) { org.hamcrest.MatcherAssert.assertThat ( validator.passwordNotEmpty ( false , AuthenticationMethod.PublicKey , null ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public boolean isRequired ( ) { return getEntity ( ) . getCluster ( ) . isRequired ( ) ; }

Target:
public boolean isVmNetwork ( ) { return getEntity ( ) . isVmNetwork ( ) ; }
Source:
public void processOnVmStop ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( VdcActionType.ProcessDownVm , new org.ovirt.engine.core.common.action.IdParameters ( vmId ) ) ; }

Target:
public void run ( ) { for ( org.ovirt.engine.core.compat.Guid vmId : vmIds ) { org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( VdcActionType.ProcessDownVm , new org.ovirt.engine.core.common.action.IdParameters ( vmId ) ) ; } }
Source:
private static org.ovirt.engine.core.common.businessentities.StoragePool getStoragePool ( ) { org.ovirt.engine.core.common.businessentities.StoragePool storagePool = new org.ovirt.engine.core.common.businessentities.StoragePool ( ) ; storagePool.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; storagePool.setcompatibility_version ( Version.v3_5 ) ; return storagePool ; }

Target:
private static org.ovirt.engine.core.common.businessentities.StoragePool getStoragePool ( ) { org.ovirt.engine.core.common.businessentities.StoragePool storagePool = new org.ovirt.engine.core.common.businessentities.StoragePool ( ) ; storagePool.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; storagePool.setCompatibilityVersion ( Version.v3_5 ) ; return storagePool ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult networkAttachmentIsSet ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.NETWORK_ATTACHMENT_NOT_EXISTS ) . when ( ( ( attachment ) == null ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult networkAttachmentIsSet ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.NETWORK_ATTACHMENT_NOT_EXISTS , HostSetupNetworksValidator.VAR_NETWORK_ATTACHMENT_NOT_EXISTS_ENTITY , "null" ) . when ( ( ( attachment ) == null ) ) ; }
Source:
public void testGetAllForEntityFilteredWithNoPermissionsFilteringDisabled ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Permissions > result = dao.getAllForEntity ( org.ovirt.engine.core.dao.PermissionDAOTest.VM_ENTITY_ID , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_SESSION_ID , false ) ; org.ovirt.engine.core.dao.PermissionDAOTest.assertGetAllForEntityResult ( result ) ; }

Target:
public void testGetAllForEntityFilteredWithNoPermissionsFilteringDisabled ( ) { org.junit.Assert.assertNotNull ( unprivilegedUserSession ) ; java.util.List < org.ovirt.engine.core.common.businessentities.Permissions > result = dao.getAllForEntity ( org.ovirt.engine.core.dao.PermissionDAOTest.VM_ENTITY_ID , unprivilegedUserSession.getId ( ) , false ) ; org.ovirt.engine.core.dao.PermissionDAOTest.assertGetAllForEntityResult ( result ) ; }
Source:
public void ExecuteCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { setLastExecutedCommand ( command ) ; if ( command == ( getOpenDocumentationCommand ( ) ) ) { OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "OpenDocumentation" ) ) ; } }

Target:
public void ExecuteCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { setLastExecutedCommand ( command ) ; if ( command == ( getOpenDocumentationCommand ( ) ) ) { OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "OpenDocumentation" ) ) ; } }
Source:
public org.ovirt.engine.api.resource.DataCenterNetworkResource getNetworkResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendDataCenterNetworkResource ( id ) ) ; }

Target:
public org.ovirt.engine.api.resource.NetworkResource getNetworkResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendDataCenterNetworkResource ( id , this ) ) ; }
Source:
public boolean supportsGlusterAsyncTasksFeature ( org.ovirt.engine.core.common.businessentities.VDSGroup cluster ) { return ( cluster.supportsGlusterService ( ) ) && ( org.ovirt.engine.core.common.gluster.GlusterFeatureSupported.glusterAsyncTasks ( cluster.getcompatibility_version ( ) ) ) ; }

Target:
public boolean supportsGlusterAsyncTasksFeature ( org.ovirt.engine.core.common.businessentities.VDSGroup cluster ) { return ( cluster.supportsGlusterService ( ) ) && ( org.ovirt.engine.core.common.gluster.GlusterFeatureSupported.glusterAsyncTasks ( cluster.getCompatibilityVersion ( ) ) ) ; }
Source:
public boolean equals ( java.lang.Object obj ) { return ( super . equals ( obj ) ) && ( equalValues ( ( ( org.ovirt.engine.core.common.businessentities.qos.QosBase ) ( obj ) ) ) ) ; }

Target:
public boolean equals ( java.lang.Object obj ) { return ( super . equals ( obj ) ) && ( equalValues ( ( ( org.ovirt.engine.core.common.businessentities.qos.StorageQos ) ( obj ) ) ) ) ; }
Source:
public void testEncryptThreads ( ) throws java.lang.Exception { java.util.List < java.lang.Thread > l = new java.util.LinkedList < java.lang.Thread > ( ) ; final java.lang.String plain = "Test123!32@" ; final java.util.concurrent.atomic.AtomicBoolean failed = new java.util.concurrent.atomic.AtomicBoolean ( ) ; for ( int i = 0 ; i < 100 ; i ++ ) { l.add ( new java.lang.Thread ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { try { java.lang.String encrypted = org.ovirt.engine.core.utils.crypt.EncryptionUtils.encrypt ( plain , org.ovirt.engine.core.utils.crypt.EncryptionUtilsTest.keyStoreURL , org.ovirt.engine.core.utils.crypt.EncryptionUtilsTest.keyStorePass , org.ovirt.engine.core.utils.crypt.EncryptionUtilsTest.certAlias ) ; java.lang.String plain2 = org.ovirt.engine.core.utils.crypt.EncryptionUtils.decrypt ( encrypted , org.ovirt.engine.core.utils.crypt.EncryptionUtilsTest.keyStoreURL , org.ovirt.engine.core.utils.crypt.EncryptionUtilsTest.keyStorePass , org.ovirt.engine.core.utils.crypt.EncryptionUtilsTest.certAlias ) ; if ( ! ( plain.equals ( plain2 ) ) ) { failed.set ( true ) ; java.lang.System.out.println ( "BAD" ) ; java.lang.System.out.println ( ( "plain2: " + plain2 ) ) ; } } catch ( java.lang.Exception e ) { throw new java.lang.RuntimeException ( e ) ; } } } ) ) ; } for ( java.lang.Thread t : l ) { t.start ( ) ; } for ( java.lang.Thread t : l ) { t.join ( ) ; } org.junit.Assert.assertFalse ( failed.get ( ) ) ; }

Target:
public void testEncryptThreads ( ) throws java.lang.Exception { java.util.List < java.lang.Thread > l = new java.util.LinkedList < java.lang.Thread > ( ) ; final java.lang.String plain = "Test123!32@" ; final java.util.concurrent.atomic.AtomicBoolean failed = new java.util.concurrent.atomic.AtomicBoolean ( ) ; final java.lang.StringBuffer failures = new java.lang.StringBuffer ( ) ; for ( int i = 0 ; i < 100 ; i ++ ) { final int threadCount = i ; l.add ( new java.lang.Thread ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { try { java.lang.String encrypted = org.ovirt.engine.core.utils.crypt.EncryptionUtils.encrypt ( plain , org.ovirt.engine.core.utils.crypt.EncryptionUtilsTest.keyStoreURL , org.ovirt.engine.core.utils.crypt.EncryptionUtilsTest.keyStorePass , org.ovirt.engine.core.utils.crypt.EncryptionUtilsTest.certAlias ) ; java.lang.String actualDecrypted = org.ovirt.engine.core.utils.crypt.EncryptionUtils.decrypt ( encrypted , org.ovirt.engine.core.utils.crypt.EncryptionUtilsTest.keyStoreURL , org.ovirt.engine.core.utils.crypt.EncryptionUtilsTest.keyStorePass , org.ovirt.engine.core.utils.crypt.EncryptionUtilsTest.certAlias ) ; if ( ! ( plain.equals ( actualDecrypted ) ) ) { java.lang.String failure = java.lang.String.format ( "Failure in test %d, plain is %s%n" , threadCount , actualDecrypted ) ; failures.append ( failure ) ; failed.set ( true ) ; } } catch ( java.lang.Exception e ) { throw new java.lang.RuntimeException ( e ) ; } } } ) ) ; } for ( java.lang.Thread t : l ) { t.start ( ) ; } for ( java.lang.Thread t : l ) { t.join ( ) ; } org.junit.Assert.assertFalse ( failures.toString ( ) , failed.get ( ) ) ; }
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 ) { return RunMultipleActions ( actionType , multipleParams , isRunOnlyIfAllCanDoPass , false ) ; }

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 ) { return runMultipleActions ( actionType , multipleParams , isRunOnlyIfAllCanDoPass , false ) ; }
Source:
public void validateVmMemoryCanStartOnVdsHighPendingButSwapHelps ( ) { vds.setSwapFree ( 80L ) ; boolean vmPassedMemoryRequirement = org.ovirt.engine.core.bll.scheduling.SlaValidator.getInstance ( ) . hasPhysMemoryToRunVM ( vds , vm , 65 ) ; org.junit.Assert.assertEquals ( vmPassedMemoryRequirement , true ) ; }

Target:
public void validateVmMemoryCantStartOnVdsHostTooSmall ( ) { vds.setMemFree ( 8835L ) ; boolean vmPassedMemoryRequirement = slaValidator.hasPhysMemoryToRunVM ( vds , vm , 0 ) ; org.junit.Assert.assertFalse ( vmPassedMemoryRequirement ) ; }
Source:
private boolean isConsoleEditEnabled ( ) { return ( ( getSelectedItem ( ) ) != null ) && ( ( ( org.ovirt.engine.core.common.businessentities.VM ) ( getSelectedItem ( ) ) ) . isRunningOrPaused ( ) ) ; }

Target:
private boolean isConsoleEditEnabled ( ) { return ( ( org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel.getSelectedItem ( ) ) != null ) && ( org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel.getSelectedItem ( ) . isRunningOrPaused ( ) ) ; }
Source:
public void testMaxSizeRange ( ) throws java.lang.Exception { new org.ovirt.engine.core.bll.network.macpoolmanager.Range ( 0 , ( ( java.lang.Integer.MAX_VALUE ) - 1 ) ) ; }

Target:
public void testMaxSizeRange ( ) throws java.lang.Exception { new org.ovirt.engine.core.bll.network.macpool.Range ( 0 , ( ( java.lang.Integer.MAX_VALUE ) - 1 ) ) ; }
Source:
public boolean IsVmUp ( ) { switch ( getStatus ( ) ) { case WaitForLaunch : case PoweringUp : case RebootInProgress : case RestoringState : case MigratingFrom : case MigratingTo : case Up : return true ; default : return false ; } }

Target:
public boolean isVmUp ( ) { switch ( getStatus ( ) ) { case WaitForLaunch : case PoweringUp : case RebootInProgress : case RestoringState : case MigratingFrom : case MigratingTo : case Up : return true ; default : return false ; } }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { defaultProfile.getName ( ) . setEntity ( getName ( ) . getEntity ( ) ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { updateSubnetChangeability ( ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { boolean isEnabled = bootSequenceModel.getNetworkOption ( ) . getIsChangable ( ) ; java.lang.String itemName = bootSequenceModel.getNetworkOption ( ) . getTitle ( ) ; updateItemAvailability ( itemName , isEnabled ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { updateBootSequenceItems ( ) ; bootSequenceBox.setSelectedIndex ( bootSequenceModel.getSelectedItemIndex ( ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.Provider < ? > > getAllWithQuery ( java.lang.String query ) { return jdbcTemplate.query ( query , org.ovirt.engine.core.dao.provider.ProviderDaoDbFacadeImpl.ProviderRowMapper.INSTANCE ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.Provider < ? > > getAllWithQuery ( java.lang.String query ) { return getJdbcTemplate ( ) . query ( query , org.ovirt.engine.core.dao.provider.ProviderDaoDbFacadeImpl.ProviderRowMapper.INSTANCE ) ; }
Source:
private void IsPm_EntityChanged ( ) { UpdatePmModels ( ) ; }

Target:
public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { UpdatePmModels ( ) ; }
Source:
public void setHeaders ( java.util.Map < java.lang.String , java.lang.String > headers ) { this . headers = headers ; }

Target:
public void setHeaders ( java.util.Map < java.lang.String , org.ovirt.engine.api.restapi.rsdl.ParamData > urlparams ) { this . headers = urlparams ; }
Source:
public java.lang.String getHostFingerprint ( ) throws java.io.IOException { java.lang.String fingerprint = org.ovirt.engine.core.engineencryptutils.OpenSSHUtils.getKeyFingerprintString ( getHostKey ( ) ) ; if ( fingerprint == null ) { throw new java.io.IOException ( "Unable to parse host key" ) ; } return fingerprint ; }

Target:
public java.lang.String getHostFingerprint ( ) throws java.io.IOException { java.lang.String fingerprint = org.ovirt.engine.core.utils.crypt.OpenSSHUtils.getKeyFingerprintString ( getHostKey ( ) ) ; if ( fingerprint == null ) { throw new java.io.IOException ( "Unable to parse host key" ) ; } return fingerprint ; }
Source:
protected < T > T getEntity ( java.lang.Class < T > clz , org.ovirt.engine.core.common.queries.VdcQueryType query , org.ovirt.engine.core.common.queries.VdcQueryParametersBase queryParams , java.lang.String identifier ) { return getEntity ( clz , query , queryParams , identifier , false ) ; }

Target:
protected < T > T getEntity ( java.lang.Class < T > clz , org.ovirt.engine.core.common.queries.QueryType query , org.ovirt.engine.core.common.queries.QueryParametersBase queryParams , java.lang.String identifier ) { return getEntity ( clz , query , queryParams , identifier , false ) ; }
Source:
public void validNetworkNameWhenUnlinkingSupported ( ) throws java.lang.Exception { networkNameTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , true , "net" ) ; }

Target:
public void nullVnicProfileWhenUnlinkingSupported ( ) throws java.lang.Exception { vnicProfileTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , true , null ) ; }
Source:
public int compare ( org.ovirt.engine.core.common.businessentities.NetworkInterface < ? > x , org.ovirt.engine.core.common.businessentities.NetworkInterface < ? > y ) { return x.getMacAddress ( ) . compareTo ( y.getMacAddress ( ) ) ; }

Target:
public int compare ( org.ovirt.engine.core.common.businessentities.network.NetworkInterface < ? > x , org.ovirt.engine.core.common.businessentities.network.NetworkInterface < ? > y ) { return x.getMacAddress ( ) . compareTo ( y.getMacAddress ( ) ) ; }
Source:
public long getContentLength ( ) { return entityBody.getBytes ( ) . length ; }

Target:
public long getContentLength ( ) { return entityBody.getBytes ( java.nio.charset.StandardCharsets.UTF_8 ) . length ; }
Source:
public void validateVmMemoryCantRunOnVdsHighOverhead ( ) { org.mockito.Mockito.doReturn ( 1024 ) . when ( vmOverheadCalculator ) . getStaticOverheadInMb ( org.mockito.Matchers.any ( ) ) ; boolean vmPassedMemoryRequirement = slaValidator.hasOvercommitMemoryToRunVM ( vds , vm ) ; org.junit.Assert.assertFalse ( vmPassedMemoryRequirement ) ; }

Target:
public void validateVmMemoryCantRunOnVdsHighOverhead ( ) { org.mockito.Mockito.doReturn ( 1024 ) . when ( vmOverheadCalculator ) . getStaticOverheadInMb ( org.mockito.Matchers.any ( ) ) ; boolean vmPassedMemoryRequirement = slaValidator.hasOvercommitMemoryToRunVM ( vds , vm ) ; org.junit.jupiter.api.Assertions.assertFalse ( vmPassedMemoryRequirement ) ; }
Source:
private org.hamcrest.Matcher < org.ovirt.engine.core.bll.ValidationResult > failsWithVnicProfileInUse ( ) { return org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_VNIC_PROFILE_IN_ONE_USE ) ; }

Target:
private org.hamcrest.Matcher < org.ovirt.engine.core.bll.ValidationResult > failsWithVnicProfileInUse ( ) { return org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_VNIC_PROFILE_IN_ONE_USE ) ; }
Source:
public void populateNamespaces ( ) { if ( ( namespacesMap ) != null ) { getNamespace ( ) . setItems ( getAuthzNamespaces ( ) ) ; getNamespace ( ) . setSelectedItem ( org.ovirt.engine.ui.uicommonweb.Linq.firstOrDefault ( getNamespace ( ) . getItems ( ) ) ) ; } }

Target:
public void populateNamespaces ( ) { if ( ( namespacesMap ) != null ) { getNamespace ( ) . setItems ( getAuthzNamespaces ( ) ) ; getNamespace ( ) . setSelectedItem ( org.ovirt.engine.ui.uicommonweb.Linq.firstOrNull ( getNamespace ( ) . getItems ( ) ) ) ; } }
Source:
private boolean isMaster ( ) { return ( org.ovirt.engine.core.bll.storage.StorageDomainCommandBase.getStorageDomain ( ) . getstorage_domain_type ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainType.Master ) ; }

Target:
private boolean isMaster ( ) { return ( org.ovirt.engine.core.bll.storage.StorageDomainCommandBase.getStorageDomain ( ) . getStorageDomainType ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainType.Master ) ; }
Source:
public java.lang.Boolean call ( ) throws java.lang.Exception { return getBackend ( ) . runInternalAction ( VdcActionType.UpdateGlusterHostPubKeyToSlaveInternal , new org.ovirt.engine.core.common.action.gluster.UpdateGlusterHostPubKeyToSlaveParameters ( currentRemoteHost.getId ( ) , pubKeys , getParameters ( ) . getUserName ( ) ) ) . getSucceeded ( ) ; }

Target:
public java.lang.Boolean call ( ) throws java.lang.Exception { return getBackend ( ) . runInternalAction ( VdcActionType.UpdateGlusterHostPubKeyToSlaveInternal , new org.ovirt.engine.core.common.action.gluster.UpdateGlusterHostPubKeyToSlaveParameters ( currentRemoteHostId , pubKeys , userName ) ) . getSucceeded ( ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.network.HostNetworkQos findHostNetworkQosById ( java.lang.Iterable < org.ovirt.engine.core.common.businessentities.network.HostNetworkQos > items , org.ovirt.engine.core.compat.Guid qosId ) { return org.ovirt.engine.ui.uicommonweb.Linq.firstOrDefault ( items , new org.ovirt.engine.ui.uicommonweb.Linq.IdPredicate ( qosId ) , NetworkModel.EMPTY_HOST_NETWORK_QOS ) ; }

Target:
public static org.ovirt.engine.core.common.businessentities.network.HostNetworkQos findHostNetworkQosById ( java.util.Collection < org.ovirt.engine.core.common.businessentities.network.HostNetworkQos > items , org.ovirt.engine.core.compat.Guid qosId ) { return org.ovirt.engine.ui.uicommonweb.Linq.firstOrDefault ( items , new org.ovirt.engine.ui.uicommonweb.Linq.IdPredicate ( qosId ) , NetworkModel.EMPTY_HOST_NETWORK_QOS ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.network.ExternalSubnet > getSubnets ( ) { org.ovirt.engine.core.common.queries.GetExternalSubnetsOnProviderByExternalNetworkQueryParameters parameters = new org.ovirt.engine.core.common.queries.GetExternalSubnetsOnProviderByExternalNetworkQueryParameters ( ) ; parameters.setProviderId ( asGuid ( providerId ) ) ; parameters.setNetworkId ( networkId ) ; return getBackendCollection ( org.ovirt.engine.core.common.businessentities.network.ExternalSubnet.class , VdcQueryType.GetExternalSubnetsOnProviderByExternalNetwork , parameters ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.network.ExternalSubnet > getSubnets ( ) { org.ovirt.engine.core.common.queries.GetExternalSubnetsOnProviderByExternalNetworkQueryParameters parameters = new org.ovirt.engine.core.common.queries.GetExternalSubnetsOnProviderByExternalNetworkQueryParameters ( ) ; parameters.setProviderId ( asGuid ( providerId ) ) ; parameters.setNetworkId ( networkId ) ; return getBackendCollection ( org.ovirt.engine.core.common.businessentities.network.ExternalSubnet.class , QueryType.GetExternalSubnetsOnProviderByExternalNetwork , parameters ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VDSGroup object ) { return object.getName ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.Cluster object ) { return object.getName ( ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc startImageTransferSession ( java.lang.String ticketId , java.lang.String ops , long expiration , java.lang.String spId , java.lang.String sdId , java.lang.String imgId , java.lang.String volId ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.PrepareImageReturnForXmlRpc prepareImage ( java.lang.String spID , java.lang.String sdID , java.lang.String imageID , java.lang.String volumeID ) ;
Source:
private static void addToAuditLogSuccessMessage ( java.lang.String IsoDomain , java.lang.String fileTypeExt ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; logable.addCustomValue ( "isoDomains" , java.lang.String.format ( "%s (%s file type)" , IsoDomain , fileTypeExt ) ) ; org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( logable , AuditLogType.REFRESH_REPOSITORY_FILE_LIST_SUCCEEDED ) ; }

Target:
private static void addToAuditLogSuccessMessage ( java.lang.String IsoDomain , java.lang.String imageType ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; logable.addCustomValue ( "isoDomains" , java.lang.String.format ( "%s (%s file type)" , IsoDomain , imageType ) ) ; org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( logable , AuditLogType.REFRESH_REPOSITORY_FILE_LIST_SUCCEEDED ) ; }
Source:
public void shouldDetectIndicesNotStartingWithZero ( ) { vmNumaNodes.get ( 0 ) . setIndex ( 2 ) ; vmNumaNodes.get ( 1 ) . setIndex ( 3 ) ; assertValidationFailure ( org.ovirt.engine.core.bll.numa.vm.NumaValidator.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) , EngineMessage.VM_NUMA_NODE_NON_CONTINUOUS_INDEX ) ; }

Target:
public void shouldDetectIndicesNotStartingWithZero ( ) { vmNumaNodes.get ( 0 ) . setIndex ( 2 ) ; vmNumaNodes.get ( 1 ) . setIndex ( 3 ) ; assertValidationFailure ( underTest.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) , EngineMessage.VM_NUMA_NODE_NON_CONTINUOUS_INDEX ) ; }
Source:
protected void assertNotAllDone ( org.ovirt.engine.ui.uicommonweb.action.UiAction.ActionFlowState flowState ) { org.junit.Assert.assertFalse ( flowState.isAllDone ( ) ) ; org.mockito.Mockito.verify ( model ) . startProgress ( ) ; org.mockito.Mockito.verify ( model , org.mockito.Mockito.never ( ) ) . stopProgress ( ) ; }

Target:
protected void assertNotAllDone ( org.ovirt.engine.ui.uicommonweb.action.UiAction.ActionFlowState flowState ) { org.junit.jupiter.api.Assertions.assertFalse ( flowState.isAllDone ( ) ) ; org.mockito.Mockito.verify ( model ) . startProgress ( ) ; org.mockito.Mockito.verify ( model , org.mockito.Mockito.never ( ) ) . stopProgress ( ) ; }
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 ) ) : 120 ; }
Source:
public void testIsInternalExecutionTrue ( ) { org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery query = new org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery ( org.mockito.Mockito.mock ( org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class ) ) ; query.setInternalExecution ( true ) ; junit.framework.Assert.assertTrue ( "Query should be marked for internel execution" , query.isInternalExecution ( ) ) ; }

Target:
public void testIsInternalExecutionTrue ( ) { org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery query = new org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery ( org.mockito.Mockito.mock ( org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class ) ) ; query.setInternalExecution ( true ) ; org.junit.Assert.assertTrue ( "Query should be marked for internel execution" , query.isInternalExecution ( ) ) ; }
Source:
private org.ovirt.engine.core.dao.SnapshotDao getSnapshotDao ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getSnapshotDao ( ) ; }

Target:
private org.ovirt.engine.core.dao.SnapshotDao getSnapshotDao ( ) { return org.ovirt.engine.core.bll.RunVmCommand.getDbFacade ( ) . getSnapshotDao ( ) ; }
Source:
public void search ( ) { super . search ( ) ; forceRefreshWithoutTimers ( ) ; }

Target:
protected void syncSearch ( ) { refreshModel ( ) ; }
Source:
private static java.util.Map < java.lang.String , java.lang.Object > getUsbSlotSpecParams ( ) { java.util.Map < java.lang.String , java.lang.Object > specParams = new java.util.HashMap < java.lang.String , java.lang.Object > ( ) ; return specParams ; }

Target:
private static java.util.Map < java.lang.String , java.lang.Object > getConsoleDeviceSpecParams ( ) { java.util.Map < java.lang.String , java.lang.Object > specParams = new java.util.HashMap < > ( ) ; specParams.put ( "enableSocket" , "true" ) ; return specParams ; }
Source:
private void buildImageReference ( ) { org.ovirt.engine.core.utils.ovf.xml.XmlNodeList list = _document.SelectNodes ( "//*/File" , _xmlNS ) ; for ( org.ovirt.engine.core.utils.ovf.xml.XmlNode node : list ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage disk = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; org.ovirt.engine.core.utils.ovf.xml.XmlNode xmlDiskStorageType = node.SelectSingleNode ( "rasd:DiskStorageType" , _xmlNS ) ; java.lang.String diskStorageTypeFromOvf = ( xmlDiskStorageType != null ) ? xmlDiskStorageType.innerText : null ; if ( org.apache.commons.lang.StringUtils.isNotEmpty ( diskStorageTypeFromOvf ) ) { org.ovirt.engine.core.common.businessentities.storage.DiskStorageType diskStorageType = org.ovirt.engine.core.common.businessentities.storage.DiskStorageType.valueOf ( diskStorageTypeFromOvf ) ; if ( diskStorageType == ( org.ovirt.engine.core.common.businessentities.storage.DiskStorageType.CINDER ) ) { disk = new org.ovirt.engine.core.common.businessentities.storage.CinderDisk ( ) ; } } disk.setImageId ( new org.ovirt.engine.core.compat.Guid ( node.attributes.get ( "ovf:id" ) . getValue ( ) ) ) ; disk.setId ( org.ovirt.engine.core.utils.ovf.OvfParser.GetImageGrupIdFromImageFile ( node.attributes.get ( "ovf:href" ) . getValue ( ) ) ) ; disk.setActive ( true ) ; disk.setImageStatus ( ImageStatus.OK ) ; disk.setDescription ( node.attributes.get ( "ovf:description" ) . getValue ( ) ) ; _images.add ( disk ) ; } }

Target:
private void buildImageReference ( ) { org.ovirt.engine.core.utils.ovf.xml.XmlNodeList list = _document.SelectNodes ( "//*/File" , _xmlNS ) ; for ( org.ovirt.engine.core.utils.ovf.xml.XmlNode node : list ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage disk = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; if ( ( node.attributes.get ( "ovf:disk_storage_type" ) ) != null ) { java.lang.String diskStorageType = node.attributes.get ( "ovf:disk_storage_type" ) . getValue ( ) ; if ( ( diskStorageType != null ) && ( diskStorageType.equals ( DiskStorageType.CINDER.name ( ) ) ) ) { disk = new org.ovirt.engine.core.common.businessentities.storage.CinderDisk ( ) ; } } disk.setImageId ( new org.ovirt.engine.core.compat.Guid ( node.attributes.get ( "ovf:id" ) . getValue ( ) ) ) ; disk.setId ( org.ovirt.engine.core.utils.ovf.OvfParser.GetImageGrupIdFromImageFile ( node.attributes.get ( "ovf:href" ) . getValue ( ) ) ) ; disk.setActive ( true ) ; disk.setImageStatus ( ImageStatus.OK ) ; disk.setDescription ( node.attributes.get ( "ovf:description" ) . getValue ( ) ) ; _images.add ( disk ) ; } }
Source:
public void statusMatches ( ) { storageDomainIsInactive ( ) ; org.junit.Assert.assertTrue ( cmd.checkStorageDomainStatus ( StorageDomainStatus.InActive ) ) ; org.junit.Assert.assertFalse ( commandHasInvalidStatusMessage ( ) ) ; }

Target:
public void statusMatches ( ) { setStorageDomainStatus ( StorageDomainStatus.InActive ) ; org.junit.Assert.assertTrue ( cmd.checkStorageDomainStatus ( StorageDomainStatus.InActive ) ) ; org.junit.Assert.assertFalse ( commandHasInvalidStatusMessage ( ) ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { getView ( ) . getSearchButton ( ) . getCommand ( ) . Execute ( ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { getView ( ) . getSearchButton ( ) . getCommand ( ) . execute ( ) ; }
Source:
protected boolean isDataOperationsByHSM ( ) { return org.ovirt.engine.core.common.FeatureSupported.dataOperationsByHSM ( org.ovirt.engine.core.bll.storage.disk.image.BaseImagesCommand.getStoragePool ( ) . getCompatibilityVersion ( ) ) ; }

Target:
protected boolean isDataOperationsByHSM ( ) { return isDataOperationsByHSM ( org.ovirt.engine.core.bll.storage.disk.image.BaseImagesCommand.getStorageDomain ( ) . getStorageStaticData ( ) ) ; }
Source:
public boolean getIsAvailable ( ) { return getModel ( ) . getHasHighlyAvailable ( ) ; }

Target:
public boolean getIsAvailable ( ) { return getModel ( ) . isQuotaAvailable ( ) ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.RemoveDiskSnapshotsCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { if ( isLiveMerge ( ) ) { org.ovirt.engine.core.bll.RemoveDiskSnapshotsCommand.getParameters ( ) . setLiveMerge ( true ) ; persistCommand ( org.ovirt.engine.core.bll.RemoveDiskSnapshotsCommand.getParameters ( ) . getParentCommand ( ) , true ) ; } org.ovirt.engine.core.bll.RemoveDiskSnapshotsCommand.setSucceeded ( true ) ; }
Source:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; return performAction ( VdcActionType.RemoveVmHostDevices , new org.ovirt.engine.core.common.action.VmHostDevicesParameters ( parent.getVmId ( ) , deviceName ) ) ; }

Target:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; return performAction ( ActionType.RemoveVmHostDevices , new org.ovirt.engine.core.common.action.VmHostDevicesParameters ( parent.getVmId ( ) , deviceName ) ) ; }
Source:
protected abstract int getRerties ( ) ;

Target:
protected abstract java.lang.String getRequestedAuditEvent ( ) ;
Source:
private boolean VdsGroupExists ( ) { if ( ! ( vdsGroupInDb ( ) ) ) { addCanDoActionMessage ( VdcBllMessages.VDS_CLUSTER_IS_NOT_VALID ) ; return false ; } return true ; }

Target:
private boolean vdsGroupExists ( ) { if ( ! ( vdsGroupInDb ( ) ) ) { addCanDoActionMessage ( VdcBllMessages.VDS_CLUSTER_IS_NOT_VALID ) ; return false ; } return true ; }
Source:
private void setUpGetEntityExcpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.GetTagByTagId , org.ovirt.engine.core.common.queries.GetTagByTagIdParameters.class , new java.lang.String [ ] { "TagId" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , getEntity ( 0 ) ) ; }

Target:
private void setUpGetEntityExcpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.GetTagByTagId , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , getEntity ( 0 ) ) ; }
Source:
public void tearDown ( ) { org.ovirt.engine.core.bll.session.SessionDataContainer.getInstance ( ) . removeSessionOnLogout ( sessionIdToUse ) ; }

Target:
public void tearDown ( ) { org.ovirt.engine.core.bll.aaa.SessionDataContainer.getInstance ( ) . removeSessionOnLogout ( sessionIdToUse ) ; }
Source:
public void testExistJobMessages ( ) { org.ovirt.engine.core.dal.job.ExecutionMessageDirector messageDirector = org.ovirt.engine.core.dal.job.ExecutionMessageDirector.getInstance ( ) ; messageDirector.initialize ( org.ovirt.engine.core.dal.job.ExecutionMessageDirectorTest.TEST_BUNDLE_NAME ) ; java.lang.String updateClusterMessage = messageDirector.getJobMessage ( VdcActionType.UpdateCluster ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dal.job.ExecutionMessageDirectorTest.UPDATE_CLUSTER_CLUSTERS_MESSAGE , updateClusterMessage ) ; }

Target:
public void testExistJobMessages ( ) { org.ovirt.engine.core.dal.job.ExecutionMessageDirector messageDirector = org.ovirt.engine.core.dal.job.ExecutionMessageDirector.getInstance ( ) ; messageDirector.initialize ( org.ovirt.engine.core.dal.job.ExecutionMessageDirectorTest.TEST_BUNDLE_NAME ) ; java.lang.String updateClusterMessage = messageDirector.getJobMessage ( ActionType.UpdateCluster ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dal.job.ExecutionMessageDirectorTest.UPDATE_CLUSTER_CLUSTERS_MESSAGE , updateClusterMessage ) ; }
Source:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; return performAction ( VdcActionType.RemovePermission , new org.ovirt.engine.core.common.action.PermissionsOperationsParameters ( getPermissions ( ) , targetId ) ) ; }

Target:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; return performAction ( ActionType.RemovePermission , new org.ovirt.engine.core.common.action.PermissionsOperationsParameters ( getPermissions ( ) , targetId ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object result ) { vmInitLoaded ( ( ( org.ovirt.engine.core.common.businessentities.VM ) ( result ) ) ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalListModel ) ( result.getState ( ) ) ) . getConfirmWindow ( ) ) ) ; model.stopProgress ( ) ; cancel ( ) ; }
Source:
public java.lang.String getPath ( ) { java.lang.String value = getValue ( ) ; assert value != null : "Missing baseContextPath JS object in host page" ; assert value.startsWith ( "/" ) : "Value of baseContextPath must start with '/' character" ; return value ; }

Target:
public static java.lang.String getPath ( ) { java.lang.String value = getValueFrom ( "baseContextPath" ) ; assert value != null : "Missing baseContextPath JS object in host page" ; assert value.startsWith ( "/" ) : "Value of baseContextPath must start with '/' character" ; return value ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > validateStorageDomain ( java.lang.String sdUUID ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterHookAdd ( java.lang.String glusterCommand , java.lang.String stage , java.lang.String hookName , java.lang.String content , java.lang.String checksum , java.lang.Boolean enabled ) ;
Source:
public void setText ( java.lang.String text ) { getLabel ( ) . setText ( text ) ; }

Target:
public void setEnabled ( boolean enabled ) { label.setEnabled ( enabled ) ; if ( enabled ) { tooltip.setText ( "" ) ; } }
Source:
private java.lang.String buildHashMapKey ( java.util.Map.Entry < java.lang.String , java.lang.String > entry ) { return ( entry.getKey ( ) ) + ( entry.getValue ( ) ) ; }

Target:
private java.lang.String buildHashMapKey ( java.util.Map.Entry < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > entry ) { return ( entry.getKey ( ) ) + ( entry.getValue ( ) . getFirst ( ) ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity > getExpectedVolumes ( ) { return java.util.Collections.singletonList ( baseTest.getGlusterVolume ( baseTest.getSLAVE_VOLUME_1_ID ( ) , baseTest.getSLAVE_CLUSTER_ID ( ) , GlusterStatus.UP , new org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeSizeInfo ( 10000L , 4000L , 6000L ) ) ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity > getExpectedVolumes ( ) { return java.util.Collections.singletonList ( baseTest.getGlusterVolume ( baseTest.getSLAVE_VOLUME_1_ID ( ) , baseTest.getSLAVE_CLUSTER_ID ( ) , GlusterStatus.UP , new org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeSizeInfo ( 10000L , 10000L , 0L ) ) ) ; }
Source:
private org.ovirt.engine.core.common.queries.VdcQueryParametersBase getProductVersionParams ( ) { return org.ovirt.engine.api.restapi.test.util.TestHelper.eqParams ( org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class , new java.lang.String [ 0 ] , new java.lang.Object [ 0 ] ) ; }

Target:
private org.ovirt.engine.core.common.queries.QueryParametersBase getProductVersionParams ( ) { return org.ovirt.engine.api.restapi.test.util.TestHelper.eqParams ( org.ovirt.engine.core.common.queries.QueryParametersBase.class , new java.lang.String [ 0 ] , new java.lang.Object [ 0 ] ) ; }
Source:
public void testCDAStoragePoolNotUp ( ) { storagePool.setStatus ( StoragePoolStatus.Uninitialized ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( "canDoAction did not fail on a Storage Pool which is not up" , command , EngineMessage.ACTION_TYPE_FAILED_IMAGE_REPOSITORY_NOT_FOUND ) ; }

Target:
public void testCDAStoragePoolNotUp ( ) { storagePool.setStatus ( StoragePoolStatus.Uninitialized ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( "validate did not fail on a Storage Pool which is not up" , command , EngineMessage.ACTION_TYPE_FAILED_IMAGE_REPOSITORY_NOT_FOUND ) ; }
Source:
public void validateSucceeds ( ) { setupMocks ( ) ; org.mockito.Mockito.doReturn ( getServer ( ) ) . when ( cmd ) . getUpServer ( ) ; org.junit.Assert.assertTrue ( cmd.validate ( ) ) ; }

Target:
public void validateSucceeds ( ) { setupMocks ( ) ; org.mockito.Mockito.doReturn ( getServer ( ) ) . when ( cmd ) . getUpServer ( ) ; org.junit.jupiter.api.Assertions.assertTrue ( cmd.validate ( ) ) ; }
Source:
public static void updateAllDiskImageSnapshotsStatus ( org.ovirt.engine.core.compat.Guid diskId , org.ovirt.engine.core.common.businessentities.ImageStatus status ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getImageDao ( ) . updateStatusOfImagesByImageGroupId ( diskId , status ) ; }

Target:
public static void updateAllDiskImageSnapshotsStatus ( org.ovirt.engine.core.compat.Guid diskId , org.ovirt.engine.core.common.businessentities.storage.ImageStatus status ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getImageDao ( ) . updateStatusOfImagesByImageGroupId ( diskId , status ) ; }
Source:
public void testGetOsIds ( ) throws java.lang.Exception { org.junit.Assert.assertTrue ( ( ( OsRepositoryImpl.INSTANCE.getOsIds ( ) . get ( 0 ) ) == 777 ) ) ; }

Target:
public void testGetOsIds ( ) throws java.lang.Exception { org.junit.Assert.assertTrue ( OsRepositoryImpl.INSTANCE.getOsIds ( ) . contains ( 777 ) ) ; }
Source:
public void testMinus1 ( ) { org.ovirt.engine.api.types.V4Vm object = objectFromJson ( "{'memory':-1}" ) ; org.junit.Assert.assertEquals ( java.math.BigInteger.ONE.negate ( ) , object.getMemory ( ) ) ; }

Target:
public void testMinus1 ( ) { org.ovirt.engine.api.types.V4Vm object = objectFromJson ( "{'memory':-1}" ) ; org.junit.Assert.assertEquals ( java.math.BigInteger.ONE.negate ( ) , object.memory ( ) ) ; }
Source:
private void initDisplayProtocol ( ) { getDisplayProtocol ( ) . getSelectedItemChangedEvent ( ) . addListener ( this ) ; }

Target:
private void setDisplayType ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel.NotChangableForVmInPoolListModel < org.ovirt.engine.core.common.businessentities.DisplayType > value ) { displayType = value ; }