auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected org.ovirt.engine.core.common.action.MoveOrCopyImageGroupParameters createParameters ( org.ovirt.engine.core.compat.Guid sourceStorageDomainGuid , org.ovirt.engine.core.compat.Guid destStorageDomainGuid , org.ovirt.engine.core.common.businessentities.storage.DiskImage disk ) { return new org.ovirt.engine.core.common.action.MoveDiskParameters ( disk.getImageId ( ) , sourceStorageDomainGuid , destStorageDomainGuid ) ; }

Target:
protected org.ovirt.engine.core.common.action.MoveOrCopyImageGroupParameters createParameters ( org.ovirt.engine.core.compat.Guid sourceStorageDomainGuid , org.ovirt.engine.core.compat.Guid destStorageDomainGuid , org.ovirt.engine.core.common.businessentities.storage.DiskImage disk ) { org.ovirt.engine.core.common.action.MoveDiskParameters moveDiskParameters = new org.ovirt.engine.core.common.action.MoveDiskParameters ( disk.getImageId ( ) , sourceStorageDomainGuid , destStorageDomainGuid ) ; moveDiskParameters.setImageGroupID ( disk.getId ( ) ) ; return moveDiskParameters ; }
Source:
private static void setValidCpuVersionMap ( ) { org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.mcr.mockConfigValue ( ConfigValues.SupportedClusterLevels , org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.createVersionSet ( ) ) ; }

Target:
public void detachedClusterMovesToDcWithExistingManagementNetwork ( ) { prepareManagementNetworkMocks ( ) ; mcr.mockConfigValue ( ConfigValues.AutoRegistrationDefaultVdsGroupID , Guid.Empty ) ; createCommandWithDefaultVdsGroup ( ) ; oldGroupIsDetachedDefault ( ) ; setupCpu ( ) ; storagePoolIsLocalFS ( ) ; org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }
Source:
public void remove ( org.ovirt.engine.core.common.businessentities.ImageStorageDomainMapId id ) { getCallsHandler ( ) . executeModification ( "Deleteimage_storage_domain_map" , getCustomMapSqlParameterSource ( ) . addValue ( "image_id" , id.getImageId ( ) ) . addValue ( "storage_domain_id" , id.getStorageDomainId ( ) ) ) ; }

Target:
public void remove ( org.ovirt.engine.core.common.businessentities.storage.ImageStorageDomainMapId id ) { getCallsHandler ( ) . executeModification ( "Deleteimage_storage_domain_map" , getCustomMapSqlParameterSource ( ) . addValue ( "image_id" , id.getImageId ( ) ) . addValue ( "storage_domain_id" , id.getStorageDomainId ( ) ) ) ; }
Source:
protected void verifyCollection ( java.util.List < org.ovirt.engine.api.model.ExternalNetworkProviderConfiguration > collection ) { org.junit.Assert.assertNotNull ( collection ) ; org.junit.Assert.assertEquals ( 1 , collection.size ( ) ) ; verifyModel ( collection.get ( 0 ) , 0 ) ; }

Target:
protected void verifyCollection ( java.util.List < org.ovirt.engine.api.model.ExternalNetworkProviderConfiguration > collection ) { org.junit.jupiter.api.Assertions.assertNotNull ( collection ) ; org.junit.jupiter.api.Assertions.assertEquals ( 1 , collection.size ( ) ) ; verifyModel ( collection.get ( 0 ) , 0 ) ; }
Source:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.ExportVmCommand.getVmId ( ) . toString ( ) , LockMessagesMatchUtil.VM ) ; }

Target:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.ExportVmCommand.getVmId ( ) . toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.VM , VdcBllMessages.ACTION_TYPE_FAILED_OBJECT_LOCKED ) ) ; }
Source:
protected boolean canCreateSnapshot ( ) { if ( org.ovirt.engine.core.bll.ImagesHandler.isVmInPreview ( org.ovirt.engine.core.bll.BaseImagesCommand.getVmId ( ) ) ) { log.error ( "Cannot create snapshot. Vm is in preview status" ) ; return false ; } return true ; }

Target:
protected boolean canCreateSnapshot ( ) { if ( ! ( new org.ovirt.engine.core.bll.snapshots.SnapshotsValidator ( ) . vmNotDuringSnapshot ( org.ovirt.engine.core.bll.BaseImagesCommand.getVmId ( ) ) . isValid ( ) ) ) { log.error ( "Cannot create snapshot. Vm is in preview status" ) ; return false ; } return true ; }
Source:
private void RemoveVdsStaticFromDb ( ) { org.ovirt.engine.core.bll.RemoveVdsCommand.getVdsStaticDAO ( ) . remove ( org.ovirt.engine.core.bll.RemoveVdsCommand.getVdsId ( ) ) ; }

Target:
private void RemoveVdsStaticFromDb ( ) { org.ovirt.engine.core.bll.RemoveVdsCommand.getVdsStaticDao ( ) . remove ( org.ovirt.engine.core.bll.RemoveVdsCommand.getVdsId ( ) ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase logOff ( org.ovirt.engine.core.common.businessentities.DbUser userToLogoff ) { org.ovirt.engine.core.common.action.LogoutUserParameters params = new org.ovirt.engine.core.common.action.LogoutUserParameters ( userToLogoff.getId ( ) ) ; params.setSessionId ( getEngineSessionId ( ) ) ; org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue = getBackend ( ) . logoff ( params ) ; return returnValue ; }

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase logOff ( org.ovirt.engine.core.common.businessentities.aaa.DbUser userToLogoff ) { org.ovirt.engine.core.common.action.LogoutUserParameters params = new org.ovirt.engine.core.common.action.LogoutUserParameters ( userToLogoff.getId ( ) ) ; params.setSessionId ( getEngineSessionId ( ) ) ; org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue = getBackend ( ) . logoff ( params ) ; return returnValue ; }
Source:
public void testRemove ( ) { dao.remove ( FixturesTool.GLUSTER_BRICK_SERVER1 ) ; org.ovirt.engine.core.common.businessentities.gluster.GlusterServer entity = dao.getByServerId ( FixturesTool.GLUSTER_BRICK_SERVER1 ) ; org.junit.Assert.assertNull ( entity ) ; }

Target:
public void testRemove ( ) { dao.remove ( FixturesTool.GLUSTER_BRICK_SERVER1 ) ; org.ovirt.engine.core.common.businessentities.gluster.GlusterServer entity = dao.getByServerId ( FixturesTool.GLUSTER_BRICK_SERVER1 ) ; org.junit.jupiter.api.Assertions.assertNull ( entity ) ; }
Source:
public void setAlignment ( java.lang.String value ) { if ( ( privateAlignment ) != value ) { privateAlignment = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Alignment" ) ) ; } }

Target:
public void setAlignment ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( privateAlignment , value ) ) ) { privateAlignment = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Alignment" ) ) ; } }
Source:
public static java.lang.String MigrationMethostoString ( org.ovirt.engine.core.common.businessentities.MigrationMethod method ) { if ( method == ( org.ovirt.engine.core.common.businessentities.MigrationMethod.OFFLINE ) ) { return org.ovirt.engine.core.vdsbroker.vdsbroker.VdsProperties.offline ; } else if ( method == ( org.ovirt.engine.core.common.businessentities.MigrationMethod.ONLINE ) ) { return org.ovirt.engine.core.vdsbroker.vdsbroker.VdsProperties.online ; } else { return "" ; } }

Target:
public static java.lang.String migrationMethodtoString ( org.ovirt.engine.core.common.businessentities.MigrationMethod method ) { if ( method == ( org.ovirt.engine.core.common.businessentities.MigrationMethod.OFFLINE ) ) { return org.ovirt.engine.core.vdsbroker.vdsbroker.VdsProperties.offline ; } else if ( method == ( org.ovirt.engine.core.common.businessentities.MigrationMethod.ONLINE ) ) { return org.ovirt.engine.core.vdsbroker.vdsbroker.VdsProperties.online ; } else { return "" ; } }
Source:
public void persistCommandWithoutContext ( org.ovirt.engine.core.common.action.VdcActionType parentCommand , boolean enableCallBack ) { persistCommand ( parentCommand , null , enableCallBack ) ; }

Target:
public void persistCommand ( org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { persistCommand ( parentCommand , getContext ( ) , false ) ; }
Source:
public void setMessages ( java.util.List < java.lang.String > value ) { if ( ! ( org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( messages , value ) ) ) { messages = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Message" ) ) ; } }

Target:
public void setMessages ( java.util.List < java.lang.String > value ) { if ( ! ( java.util.Objects.equals ( messages , value ) ) ) { messages = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Message" ) ) ; } }
Source:
protected void performLogout ( ) { getLoginModel ( ) . resetAfterLogout ( ) ; user.onUserLogout ( ) ; org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . clearCache ( ) ; org.ovirt.engine.ui.common.uicommon.model.CleanupModelEvent.fire ( eventBus ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object ReturnValue ) { Window.Location.reload ( ) ; }
Source:
private void checkConnection ( ) throws java.sql.SQLException { java.sql.Statement statement = null ; try { statement = connection.createStatement ( ) ; statement.executeQuery ( "select null" ) ; } finally { if ( statement != null ) { statement.close ( ) ; } } }

Target:
private void checkConnection ( ) throws java.sql.SQLException { if ( ! ( connection.isValid ( 0 ) ) ) { throw new java.sql.SQLException ( "The connection has been closed or invalid." ) ; } }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase logoff ( org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { return runAction ( ActionType.LogoutSession , parameters ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase logoff ( org.ovirt.engine.core.common.action.ActionParametersBase parameters ) { return runAction ( ActionType.LogoutSession , parameters ) ; }
Source:
protected void afterExecute ( java.lang.Runnable r , java.lang.Throwable t ) { super . afterExecute ( r , t ) ; org.ovirt.engine.core.utils.CorrelationIdTracker.clean ( ) ; }

Target:
protected void afterExecute ( java.lang.Runnable r , java.lang.Throwable t ) { if ( t != null ) { org.ovirt.engine.core.utils.threadpool.ThreadPoolUtil.log.error ( "Execution of task failed" , t ) ; } super . afterExecute ( r , t ) ; org.ovirt.engine.core.utils.CorrelationIdTracker.clean ( ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VmStatic > getAllByVdsGroup ( org.ovirt.engine.core.compat.Guid vdsGroup ) { return getCallsHandler ( ) . executeReadList ( "GetVmStaticByVdsGroup" , org.ovirt.engine.core.dao.VmStaticDaoImpl.VMStaticRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "vds_group_id" , vdsGroup ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VmStatic > getAllByCluster ( org.ovirt.engine.core.compat.Guid cluster ) { return getCallsHandler ( ) . executeReadList ( "GetVmStaticByCluster" , org.ovirt.engine.core.dao.VmStaticDaoImpl.VMStaticRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "cluster_id" , cluster ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.ArchitectureType getArchitectureFromOS ( int osId ) ;

Target:
int getMinimumRam ( int osId , org.ovirt.engine.core.compat.Version version ) ;
Source:
public void setUp ( ) throws java.lang.Exception { testServlet = new org.ovirt.engine.core.WelcomeServlet ( ) { private static final long serialVersionUID = 1446616158991683162L ; @ java.lang.Override public java.lang.String getCurrentSsoSessionUser ( javax.servlet.http.HttpServletRequest request , javax.servlet.http.HttpServletResponse response , java.lang.String token ) { return "admin@internal" ; } @ java.lang.Override public boolean isSessionValid ( javax.servlet.http.HttpServletRequest request , java.lang.String token ) { return true ; } @ java.lang.Override public java.util.Map < java.lang.String , java.lang.Object > isSsoWebappDeployed ( ) { return java.util.Collections.emptyMap ( ) ; } } ; testServlet.setBackend ( mockBackend ) ; testServlet.init ( mockBrandingManager , "/ovirt-engine" ) ; mockBackendQuery ( VdcQueryType.GetConfigurationValue , "oVirtVersion" ) ; org.mockito.Mockito.when ( mockBrandingManager.getBrandingThemes ( ) ) . thenReturn ( new java.util.ArrayList < > ( ) ) ; org.mockito.Mockito.when ( mockBrandingManager.getWelcomeSections ( org.mockito.Matchers.any ( java.util.Locale.class ) ) ) . thenReturn ( "Welcome Section HTML" ) ; }

Target:
public boolean getChangePasswordEnabled ( java.util.Map < java.lang.String , java.lang.Object > userInfoMap ) { return true ; }
Source:
protected org.ovirt.engine.api.model.GlusterBrick doPopulate ( org.ovirt.engine.api.model.GlusterBrick model , org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity entity ) { return model ; }

Target:
protected org.ovirt.engine.api.model.GlusterBrick addParents ( org.ovirt.engine.api.model.GlusterBrick model ) { parent.addParents ( model ) ; return model ; }
Source:
private void markExternalPoliciesAsDisabled ( java.util.List < org.ovirt.engine.core.common.scheduling.PolicyUnit > units ) { for ( org.ovirt.engine.core.common.scheduling.PolicyUnit policyUnit : units ) { if ( ! ( policyUnit.isInternal ( ) ) ) { policyUnit.setEnabled ( false ) ; getPolicyUnitDao ( ) . update ( policyUnit ) ; } } }

Target:
private void markExternalPoliciesAsDisabled ( java.util.List < org.ovirt.engine.core.common.scheduling.PolicyUnit > units ) { for ( org.ovirt.engine.core.common.scheduling.PolicyUnit policyUnit : units ) { if ( ! ( policyUnit.isInternal ( ) ) ) { policyUnit.setEnabled ( false ) ; policyUnitDao.update ( policyUnit ) ; } } }
Source:
private void setUpGetBallooningExpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.IsBalloonEnabled , org.ovirt.engine.core.common.queries.GetVmByVmIdParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , true ) ; }

Target:
private void setUpGetBallooningExpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.IsBalloonEnabled , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , true ) ; }
Source:
org.ovirt.engine.core.common.businessentities.VDS getVds ( ) { return cachedVds.clone ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VDS getCopyVds ( ) { return cachedVds.clone ( ) ; }
Source:
public void toFile ( java.lang.String krb5ConfPath , java.lang.StringBuffer sb ) throws java.io.FileNotFoundException , java.io.IOException { try ( java.io.FileOutputStream fos = new java.io.FileOutputStream ( krb5ConfPath ) ) { fos.write ( sb.toString ( ) . getBytes ( ) ) ; } }

Target:
public void toFile ( java.lang.String krb5ConfPath , java.lang.StringBuffer sb ) throws java.io.FileNotFoundException , java.io.IOException { try ( java.io.FileOutputStream fos = new java.io.FileOutputStream ( krb5ConfPath ) ) { fos.write ( sb.toString ( ) . getBytes ( java.nio.charset.Charset.forName ( "UTF-8" ) ) ) ; } }
Source:
public void testIsNetworkInSyncWhenStaticBootProtocolAddressEqual ( ) throws java.lang.Exception { initIpConfigurationBootProtocolAddress ( org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterfaceTest.BOOT_PROTOCOL , true ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testIsNetworkInSyncWhenIpv4BootProtocolEqual ( ) throws java.lang.Exception { initIpv4ConfigurationBootProtocol ( true ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.network.Network , org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterListModel , org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterNetworkListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.datacenter.SubTabDataCenterNetworkPresenter.constants.dataCenterNetworkSubTabLabel ( ) , 1 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( ) { return new org.ovirt.engine.ui.common.uicommon.model.GroupedTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.datacenter.SubTabDataCenterNetworkPresenter.constants.dataCenterNetworkSubTabLabel ( ) , 1 ) ; }
Source:
public void testIsManagementNetworkNameInGivenClusterPositive ( ) throws java.lang.Exception { testIsManagementNetworkNameInGivenClusterCommon ( org.ovirt.engine.core.bll.network.cluster.ManagementNetworkUtilImplTest.TEST_NETWORK_NAME , true ) ; }

Target:
public void testIsManagementNetworkNameInGivenClusterPositive ( ) throws java.lang.Exception { testIsManagementNetworkNameInGivenClusterCommon ( org.ovirt.engine.core.bll.network.cluster.ManagementNetworkUtilImplTest.TEST_NETWORK_NAME , org.ovirt.engine.core.bll.network.cluster.ManagementNetworkUtilImplTest.TEST_CLUSTER_ID , true ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.StoragePool getByName ( java.lang.String name ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "name" , name ) ; return getCallsHandler ( ) . executeRead ( "Getstorage_poolByName" , org.ovirt.engine.core.dao.StoragePoolDAODbFacadeImpl.mapper , parameterSource ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > getByName ( java.lang.String name , boolean isCaseSensitive ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "name" , name ) . addValue ( "is_case_sensitive" , isCaseSensitive ) ; return getCallsHandler ( ) . executeReadList ( "Getstorage_poolByName" , org.ovirt.engine.core.dao.StoragePoolDAODbFacadeImpl.mapper , parameterSource ) ; }
Source:
protected void addCanDoActionMessageVariable ( java.lang.String varName , java.lang.Object varValue ) { getReturnValue ( ) . getCanDoActionMessages ( ) . add ( java.lang.String.format ( "$%s %s" , varName , varValue ) ) ; }

Target:
protected void addValidationMessage ( java.lang.String message ) { getReturnValue ( ) . getValidationMessages ( ) . add ( message ) ; }
Source:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getSharedLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.ProcessOvfUpdateForStorageDomainCommand.getParameters ( ) . getStoragePoolId ( ) . toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.OVF_UPDATE , VdcBllMessages.ACTION_TYPE_FAILED_DOMAIN_OVF_ON_UPDATE ) ) ; }

Target:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getSharedLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.ProcessOvfUpdateForStorageDomainCommand.getParameters ( ) . getStoragePoolId ( ) . toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.OVF_UPDATE , EngineMessage.ACTION_TYPE_FAILED_DOMAIN_OVF_ON_UPDATE ) ) ; }
Source:
org.ovirt.engine.core.common.queries.VdcQueryReturnValue RunPublicQuery ( org.ovirt.engine.core.common.queries.VdcQueryType actionType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters ) ;

Target:
org.ovirt.engine.core.common.queries.VdcQueryReturnValue runPublicQuery ( org.ovirt.engine.core.common.queries.VdcQueryType actionType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters ) ;
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.userportal.gin.ClientGinjector ginjector ) { return new com.gwtplatform.mvp.client.TabDataBasic ( ginjector.getApplicationConstants ( ) . extendedTemplateEventsSubTabLabel ( ) , 3 ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.userportal.ApplicationConstants applicationConstants ) { return new com.gwtplatform.mvp.client.TabDataBasic ( applicationConstants.extendedTemplateEventsSubTabLabel ( ) , 3 ) ; }
Source:
public static boolean hasSpiceSupport ( int osId , org.ovirt.engine.core.compat.Version version ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getDisplayTypes ( osId , version ) . contains ( DisplayType.qxl ) ; }

Target:
public static boolean hasSpiceSupport ( int osId , org.ovirt.engine.core.compat.Version version ) { java.util.List < org.ovirt.engine.core.common.businessentities.DisplayType > osDisplayTypes = org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getDisplayTypes ( osId , version ) ; return osDisplayTypes == null ? false : osDisplayTypes.contains ( DisplayType.qxl ) ; }
Source:
private void mockStorageDomainSpaceChecker ( org.ovirt.engine.core.common.businessentities.storage_domains domain , boolean succeeded ) { org.powermock.api.mockito.PowerMockito.when ( org.ovirt.engine.core.bll.command.utils.StorageDomainSpaceChecker.isBelowThresholds ( domain ) ) . thenReturn ( succeeded ) ; }

Target:
private void mockStorageDomainSpaceCheckerRequest ( org.ovirt.engine.core.common.businessentities.storage_domains domain , boolean succeeded ) { org.mockito.Mockito.doReturn ( succeeded ) . when ( command ) . doesStorageDomainhaveSpaceForRequest ( domain ) ; }
Source:
public org.ovirt.engine.api.resource.ActionResource getActionSubresource ( @ javax.ws.rs.PathParam ( value = "action" ) java.lang.String action , @ javax.ws.rs.PathParam ( value = "oid" ) java.lang.String oid ) ;

Target:
public org.ovirt.engine.api.resource.ActionResource getActionResource ( @ javax.ws.rs.PathParam ( value = "action" ) java.lang.String action , @ javax.ws.rs.PathParam ( value = "oid" ) java.lang.String oid ) ;
Source:
protected org.ovirt.engine.core.bll.IsoDomainListSyncronizer getIsoDomainListSyncronizer ( ) { return org.ovirt.engine.core.bll.IsoDomainListSyncronizer.getInstance ( ) ; }

Target:
protected org.ovirt.engine.core.bll.storage.domain.IsoDomainListSyncronizer getIsoDomainListSyncronizer ( ) { return org.ovirt.engine.core.bll.storage.domain.IsoDomainListSyncronizer.getInstance ( ) ; }
Source:
public void versionDecreaseWithHost ( ) { createCommandWithOlderVersion ( ) ; cpuExists ( ) ; cpuManufacturersMatch ( ) ; VdsExist ( ) ; canDoActionFailedWithReason ( VdcBllMessages.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION ) ; }

Target:
public void versionDecreaseWithHost ( ) { createCommandWithOlderVersion ( ) ; setupCpu ( ) ; VdsExist ( ) ; canDoActionFailedWithReason ( VdcBllMessages.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION ) ; }
Source:
public org.ovirt.engine.core.bll.utils.GlusterGeoRepUtil getGeoRepUtilInstance ( ) { return org.ovirt.engine.core.bll.utils.Injector.get ( org.ovirt.engine.core.bll.utils.GlusterGeoRepUtil.class ) ; }

Target:
public org.ovirt.engine.core.bll.utils.GlusterGeoRepUtil getGeoRepUtilInstance ( ) { return org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.bll.utils.GlusterGeoRepUtil.class ) ; }
Source:
public void testUndelete ( ) throws java.lang.Exception { setUriInfo ( setUpActionExpectations ( VdcActionType.ClearAllDismissedAuditLogs , org.ovirt.engine.core.common.action.VdcActionParametersBase.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , true , true ) ) ; collection.undelete ( new org.ovirt.engine.api.model.Action ( ) ) ; }

Target:
public void testUndelete ( ) throws java.lang.Exception { setUriInfo ( setUpActionExpectations ( VdcActionType.DisplayAllAuditLogAlerts , org.ovirt.engine.core.common.action.VdcActionParametersBase.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , true , true ) ) ; collection.undelete ( new org.ovirt.engine.api.model.Action ( ) ) ; }
Source:
public void testGlusterDcAndMatchingCompatiblityVersion ( ) { storagePool.setcompatibility_version ( Version.v3_3 ) ; storagePool.setIsLocal ( false ) ; org.junit.Assert.assertTrue ( validator.isGlusterSupportedInDC ( ) . isValid ( ) ) ; }

Target:
public void testGlusterDcAndMatchingCompatiblityVersion ( ) { storagePool.setcompatibility_version ( org.ovirt.engine.core.bll.storage.StoragePoolValidatorTest.SUPPORTED_VERSION ) ; storagePool.setIsLocal ( false ) ; org.junit.Assert.assertTrue ( validator.isGlusterSupportedInDC ( ) . isValid ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.Quota mockStorageQuotaGlobalInGrace ( ) { org.ovirt.engine.core.common.businessentities.Quota quota = mockBasicQuota ( ) ; quota.setGlobalQuotaStorage ( getQuotaStorage ( 100 , 104 ) ) ; return quota ; }

Target:
private org.ovirt.engine.core.common.businessentities.Quota mockStorageQuotaGlobalInGrace ( ) { org.ovirt.engine.core.common.businessentities.Quota quota = mockBasicQuota ( ) ; quota.setId ( org.ovirt.engine.core.bll.quota.QuotaManagerTest.STORAGE_QUOTA_GLOBAL_IN_GRACE ) ; quota.setGlobalQuotaStorage ( getQuotaStorage ( 100 , 104 ) ) ; return quota ; }
Source:
public void onLoadOrError ( ) { final org.ovirt.engine.ui.uicommonweb.validation.ValidationResult validation = new org.ovirt.engine.ui.uicommonweb.validation.IconValidation ( ) . validate ( icon ) ; updateErrorIconLabel ( validation ) ; image.getElement ( ) . setAttribute ( "src" , icon ) ; }

Target:
public void onElementReady ( com.google.gwt.dom.client.ImageElement imageElement ) { validationResult = new org.ovirt.engine.ui.uicommonweb.validation.IconValidation ( imageElement ) . validate ( icon ) ; updateErrorIconLabel ( validationResult ) ; final org.ovirt.engine.ui.uicommonweb.models.vms.IconWithOsDefault newValue = getValue ( ) ; com.google.gwt.event.logical.shared.ValueChangeEvent.fireIfNotEqual ( this , oldValue , newValue ) ; }
Source:
public void onPowerringUp ( ) { decreasePendingVm ( org.ovirt.engine.core.bll.RunVmCommand.getVmStaticDao ( ) . get ( org.ovirt.engine.core.bll.RunVmCommand.getVmId ( ) ) ) ; }

Target:
public void onPowerringUp ( ) { decreasePendingVm ( vmStaticDao.get ( org.ovirt.engine.core.bll.RunVmCommand.getVmId ( ) ) ) ; }
Source:
public void testAddUser_4 ( ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetDomainList , org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , setUpDomains ( ) ) ; setUpAddUserExpectations ( ( ( ( "ADUSER@" + ( DOMAIN ) ) + ":: allnames=" ) + ( NAMES [ 0 ] ) ) ) ; org.ovirt.engine.api.model.User model = new org.ovirt.engine.api.model.User ( ) ; model.setUserName ( NAMES [ 0 ] ) ; org.ovirt.engine.api.model.Domain domain = new org.ovirt.engine.api.model.Domain ( ) ; domain.setId ( new org.ovirt.engine.core.compat.Guid ( org.ovirt.engine.api.restapi.resource.aaa.DOMAIN.getBytes ( ) , true ) . toString ( ) ) ; model.setDomain ( domain ) ; javax.ws.rs.core.Response response = collection.add ( model ) ; verifyAddUser ( response ) ; }

Target:
public void testAddUser_4 ( ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetDomainList , org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , setUpDomains ( ) ) ; setUpAddUserExpectations ( ( ( ( "ADUSER@" + ( DOMAIN ) ) + ":: allnames=" ) + ( NAMES [ 0 ] ) ) ) ; org.ovirt.engine.api.model.User model = new org.ovirt.engine.api.model.User ( ) ; model.setUserName ( NAMES [ 0 ] ) ; org.ovirt.engine.api.model.Domain domain = new org.ovirt.engine.api.model.Domain ( ) ; domain.setId ( new org.ovirt.engine.core.compat.Guid ( org.ovirt.engine.api.restapi.resource.aaa.DOMAIN.getBytes ( java.nio.charset.Charset.forName ( "UTF-8" ) ) , true ) . toString ( ) ) ; model.setDomain ( domain ) ; javax.ws.rs.core.Response response = collection.add ( model ) ; verifyAddUser ( response ) ; }
Source:
public java.lang.String getvm_name ( ) { return this . mVmStatic.getvm_name ( ) ; }

Target:
public void setVmName ( java.lang.String value ) { this . vmStatic.setvm_name ( value ) ; }
Source:
public void testGetDiskIdByLunId ( ) { org.junit.Assert.assertEquals ( dao.getDiskIdByLunId ( org.ovirt.engine.core.dao.DiskLunMapDaoTest.EXISTING_DISK_LUN_MAP_ID.getLunId ( ) ) , new org.ovirt.engine.core.common.businessentities.storage.DiskLunMap ( org.ovirt.engine.core.dao.DiskLunMapDaoTest.EXISTING_DISK_LUN_MAP_ID.getDiskId ( ) , org.ovirt.engine.core.dao.DiskLunMapDaoTest.EXISTING_DISK_LUN_MAP_ID.getLunId ( ) ) ) ; }

Target:
public void testGetDiskIdByLunId ( ) { org.junit.jupiter.api.Assertions.assertEquals ( dao.getDiskIdByLunId ( org.ovirt.engine.core.dao.DiskLunMapDaoTest.EXISTING_DISK_LUN_MAP_ID.getLunId ( ) ) , new org.ovirt.engine.core.common.businessentities.storage.DiskLunMap ( org.ovirt.engine.core.dao.DiskLunMapDaoTest.EXISTING_DISK_LUN_MAP_ID.getDiskId ( ) , org.ovirt.engine.core.dao.DiskLunMapDaoTest.EXISTING_DISK_LUN_MAP_ID.getLunId ( ) ) ) ; }
Source:
protected void OnSelectedItemChanged ( ) { super . OnSelectedItemChanged ( ) ; UpdateActionAvailability ( ) ; }

Target:
protected void selectedItemPropertyChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . selectedItemPropertyChanged ( sender , e ) ; UpdateActionAvailability ( ) ; }
Source:
protected void verifyActionModel ( org.ovirt.engine.api.model.VM model , int index ) { assertNotNull ( model ) ; assertEquals ( GUIDS [ index ] . toString ( ) , model.getId ( ) ) ; verifyLinks ( model ) ; }

Target:
protected void verifyActionModel ( org.ovirt.engine.api.model.Vm model , int index ) { assertNotNull ( model ) ; assertEquals ( GUIDS [ index ] . toString ( ) , model.getId ( ) ) ; verifyLinks ( model ) ; }
Source:
public void processOnVmPoweringUp ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.common.businessentities.IVdsAsyncCommand command = backend.getResourceManager ( ) . GetAsyncCommandForVm ( vmId ) ; if ( command != null ) { command.onPowerringUp ( ) ; } }

Target:
public boolean connectHostToDomainsInActiveOrUnknownStatus ( org.ovirt.engine.core.common.businessentities.VDS vds ) { org.ovirt.engine.core.common.businessentities.StoragePool sp = storagePoolDao.get ( vds.getStoragePoolId ( ) ) ; org.ovirt.engine.core.common.action.ConnectHostToStoragePoolServersParameters params = new org.ovirt.engine.core.common.action.ConnectHostToStoragePoolServersParameters ( sp , vds , false ) ; return backend.runInternalAction ( VdcActionType.ConnectHostToStoragePoolServers , params ) . getSucceeded ( ) ; }
Source:
protected void onAdd ( T value , V widget ) { }

Target:
protected void onAdd ( T value , V widget ) { modelItems.add ( value ) ; }
Source:
protected boolean isQuotaDependant ( ) { if ( ( org.ovirt.engine.core.bll.UpdateVmTemplateCommand.getVmTemplate ( ) . getTemplateType ( ) ) == ( org.ovirt.engine.core.common.businessentities.VmEntityType.INSTANCE_TYPE ) ) { return false ; } return super . isQuotaDependant ( ) ; }

Target:
protected boolean isQuotaDependant ( ) { if ( ( isInstanceType ( ) ) || ( org.ovirt.engine.core.bll.UpdateVmTemplateCommand.isBlankTemplate ( ) ) ) { return false ; } return super . isQuotaDependant ( ) ; }
Source:
public void clearErrorMessages ( ) { com.google.gwt.user.client.ui.IsWidget errorIconWidget = errorMessagePanel.getWidget ( 0 ) ; errorMessagePanel.clear ( ) ; errorMessagePanel.add ( errorIconWidget ) ; errorMessagePanel.setVisible ( false ) ; }

Target:
public void clearErrorMessages ( ) { errorMessagePanel.clearMessages ( ) ; errorMessagePanel.setVisible ( false ) ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml bookmarkItem ( java.lang.String id , java.lang.String text ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml treeItem ( com.google.gwt.safehtml.shared.SafeHtml imageHtml , java.lang.String text , java.lang.String id ) ;
Source:
private void setUpGetDiskExpectations ( ) { setUpEntityQueryExpectations ( VdcQueryType.GetDiskByDiskId , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendVmDisksResourceTest.DISK_ID } , asList ( getEntity ( 0 ) ) ) ; }

Target:
private void setUpGetDiskExpectations ( ) { setUpEntityQueryExpectations ( QueryType.GetDiskByDiskId , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendVmDisksResourceTest.DISK_ID } , asList ( getEntity ( 0 ) ) ) ; }
Source:
private boolean findDefaultManagementNetwork ( ) { managementNetwork = defaultManagementNetworkFinder.findDefaultManagementNetwork ( org.ovirt.engine.core.bll.AddVdsGroupCommand.getVdsGroup ( ) . getStoragePoolId ( ) ) ; if ( ( managementNetwork ) == null ) { addValidationMessage ( EngineMessage.ACTION_TYPE_FAILED_DEFAULT_MANAGEMENT_NETWORK_NOT_FOUND ) ; return false ; } return true ; }

Target:
private boolean findDefaultManagementNetwork ( ) { managementNetwork = defaultManagementNetworkFinder.findDefaultManagementNetwork ( org.ovirt.engine.core.bll.AddClusterCommand.getCluster ( ) . getStoragePoolId ( ) ) ; if ( ( managementNetwork ) == null ) { addValidationMessage ( EngineMessage.ACTION_TYPE_FAILED_DEFAULT_MANAGEMENT_NETWORK_NOT_FOUND ) ; return false ; } return true ; }
Source:
public void versionDecreaseWithHost ( ) { createCommandWithOlderVersion ( true , false ) ; setupCpu ( ) ; vdsExist ( ) ; validateFailedWithReason ( EngineMessage.ACTION_TYPE_FAILED_CANNOT_DECREASE_CLUSTER_WITH_HOSTS_COMPATIBILITY_VERSION ) ; }

Target:
public void versionDecreaseNoHostsOrNetwork ( ) { createCommandWithOlderVersion ( ) ; setupCpu ( ) ; org.mockito.Mockito.when ( storagePoolDao.get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( org.ovirt.engine.core.bll.UpdateClusterCommandTest.createStoragePoolLocalFS ( ) ) ; initAndAssertValidation ( true ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.DiskImageBase createSparseDiskImageBase ( ) { org.ovirt.engine.core.common.businessentities.DiskImageBase base = new org.ovirt.engine.core.common.businessentities.DiskImageBase ( ) ; base.setvolume_type ( VolumeType.Sparse ) ; base.setDiskInterface ( DiskInterface.IDE ) ; return base ; }

Target:
private static org.ovirt.engine.core.common.businessentities.DiskImage createSparseDiskImage ( ) { org.ovirt.engine.core.common.businessentities.DiskImage image = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; image.setvolume_type ( VolumeType.Sparse ) ; image.setDiskInterface ( DiskInterface.IDE ) ; return image ; }
Source:
public org.ovirt.engine.core.bll.network.macpool.MacPool getPoolById ( org.ovirt.engine.core.compat.Guid macPoolId ) { try ( org.ovirt.engine.core.utils.lock.AutoCloseableLock lock = readLockResource ( ) ) { return getPoolWithoutLocking ( macPoolId ) ; } }

Target:
private org.ovirt.engine.core.bll.network.macpool.MacPool getMacPoolById ( org.ovirt.engine.core.compat.Guid macPoolId , java.util.List < org.ovirt.engine.core.bll.network.macpool.MacPoolDecorator > decorators ) { try ( org.ovirt.engine.core.utils.lock.AutoCloseableLock lock = readLockResource ( ) ) { return getMacPoolWithoutLocking ( macPoolId , decorators ) ; } }
Source:
public void testExistingUsbControllerModelWithoutVersion ( ) { final org.ovirt.engine.core.common.businessentities.UsbControllerModel model = OsRepositoryImpl.INSTANCE.getOsUsbControllerModel ( OsRepositoryImpl.INSTANCE.getOsIdByUniqueName ( "rhel7" ) , null ) ; org.junit.Assert.assertEquals ( UsbControllerModel.NEC_XHCI , model ) ; }

Target:
public void testExistingUsbControllerModelWithoutVersion ( ) { final org.ovirt.engine.core.common.businessentities.UsbControllerModel model = OsRepositoryImpl.INSTANCE.getOsUsbControllerModel ( OsRepositoryImpl.INSTANCE.getOsIdByUniqueName ( "rhel7" ) , null , ChipsetType.I440FX ) ; org.junit.Assert.assertEquals ( UsbControllerModel.NEC_XHCI , model ) ; }
Source:
public void testVmDiskIsEmpty ( ) { org.ovirt.engine.sdk4.internal.containers.VmContainer vm = new org.ovirt.engine.sdk4.internal.containers.VmContainer ( ) ; vm.disks ( null ) ; org.junit.Assert.assertNotNull ( vm.disks ( ) ) ; org.junit.Assert.assertEquals ( 0 , vm.disks ( ) . size ( ) ) ; }

Target:
public void testVmDiskIsEmpty ( ) { org.ovirt.engine.sdk4.internal.containers.VmContainer vm = new org.ovirt.engine.sdk4.internal.containers.VmContainer ( ) ; vm.diskAttachments ( null ) ; org.junit.Assert.assertNotNull ( vm.diskAttachments ( ) ) ; org.junit.Assert.assertEquals ( 0 , vm.diskAttachments ( ) . size ( ) ) ; }
Source:
public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { UpdateStorageDomainCells ( ) ; }

Target:
public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { addStorageDomainsColumn ( object ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.AsyncTasks createAsyncTask ( org.ovirt.engine.core.bll.CommandBase command , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { return org.ovirt.engine.core.bll.tasks.TaskManagerUtil.coco.createAsyncTask ( command , asyncTaskCreationInfo , parentCommand ) ; }

Target:
public static org.ovirt.engine.core.common.businessentities.AsyncTasks createAsyncTask ( org.ovirt.engine.core.bll.CommandBase command , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { return org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.coco.createAsyncTask ( command , asyncTaskCreationInfo , parentCommand ) ; }
Source:
protected void ConcreteStartPollingTask ( ) { org.ovirt.engine.core.bll.EntityMultiAsyncTasks entityInfo = GetEntityMultiAsyncTasks ( ) ; entityInfo.StartPollingTask ( getVdsmTaskId ( ) ) ; }

Target:
protected void ConcreteStartPollingTask ( ) { org.ovirt.engine.core.bll.CommandMultiAsyncTasks entityInfo = GetCommandMultiAsyncTasks ( ) ; entityInfo.StartPollingTask ( getVdsmTaskId ( ) ) ; }
Source:
public void setSessionTimeout ( java.lang.String engineSessionTimeout ) { try { setSessionTimeout ( java.lang.Integer.valueOf ( engineSessionTimeout ) ) ; } catch ( java.lang.NumberFormatException ex ) { setSessionTimeout ( org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.DEFAULT_ENGINE_SESSION_TIMEOUT ) ; } }

Target:
public void setSessionTimeout ( java.lang.String engineSessionTimeout ) { try { setSessionTimeout ( java.lang.Integer.valueOf ( engineSessionTimeout ) ) ; } catch ( java.lang.NumberFormatException ex ) { setSessionTimeout ( org.ovirt.engine.ui.common.restapi.RestApiSessionManager.DEFAULT_ENGINE_SESSION_TIMEOUT ) ; } }
Source:
public static void TryRunHighAvailableVdsUp ( org.ovirt.engine.core.compat.Guid vdsId ) { org.ovirt.engine.core.common.businessentities.VDS vds = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDAO ( ) . get ( vdsId ) ; org.ovirt.engine.core.bll.HighAvailableVmsDirector.TryRunHighAvailableVm ( vds.getvds_group_name ( ) ) ; }

Target:
public static void TryRunHighAvailableVdsUp ( org.ovirt.engine.core.compat.Guid vdsId ) { org.ovirt.engine.core.common.businessentities.VDS vds = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDao ( ) . get ( vdsId ) ; org.ovirt.engine.core.bll.HighAvailableVmsDirector.TryRunHighAvailableVm ( vds.getvds_group_name ( ) ) ; }
Source:
void setActiveTab ( org.ovirt.engine.ui.common.widget.dialog.tab.DialogTab tab ) { if ( ( activeTab ) != null ) { activeTab.deactivate ( ) ; } if ( tab != null ) { tab.activate ( ) ; } activeTab = tab ; }

Target:
public void switchTab ( org.ovirt.engine.ui.common.widget.dialog.tab.DialogTab tab ) { switchTab ( tab.getTabListItem ( ) ) ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.common.businessentities.VmPool vmPool = org.ovirt.engine.core.bll.AddVmPoolCommand.getVmPool ( ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmPoolDao ( ) . save ( vmPool ) ; setActionReturnValue ( vmPool.getVmPoolId ( ) ) ; org.ovirt.engine.core.bll.AddVmPoolCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { org.ovirt.engine.core.common.businessentities.VmPool vmPool = org.ovirt.engine.core.bll.AddVmPoolCommand.getVmPool ( ) ; org.ovirt.engine.core.bll.AddVmPoolCommand.getVmPoolDAO ( ) . save ( vmPool ) ; setActionReturnValue ( vmPool.getVmPoolId ( ) ) ; org.ovirt.engine.core.bll.AddVmPoolCommand.setSucceeded ( true ) ; }
Source:
public void ExecuteCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { super . ExecuteCommand ( command ) ; OnExecute ( ) ; }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { super . executeCommand ( command ) ; OnExecute ( ) ; }
Source:
public void getAllForVm ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface > interfaces = dao.getAllForVm ( org.ovirt.engine.core.dao.VmGuestAgentInterfaceDaoTest.EXISTING_VM_ID ) ; assertVmGuestAgentInterfaceForVm ( interfaces ) ; }

Target:
public void getAllForVm ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface > interfaces = dao.getAllForVm ( FixturesTool.VM_RHEL5_POOL_50 ) ; assertVmGuestAgentInterfaceForVm ( interfaces ) ; }
Source:
public org.ovirt.engine.core.utils.ISingleAsyncOperation createSingleAsyncOperation ( ) { return new org.ovirt.engine.core.bll.storage.pool.DisconnectStoragePoolAsyncOperation ( getVdss ( ) , getStoragePool ( ) ) ; }

Target:
public org.ovirt.engine.core.utils.ISingleAsyncOperation createSingleAsyncOperation ( ) { return org.ovirt.engine.core.di.Injector.injectMembers ( new org.ovirt.engine.core.bll.storage.pool.DisconnectStoragePoolAsyncOperation ( getVdss ( ) , getStoragePool ( ) ) ) ; }
Source:
public void setPlaceTransitionHandler ( org.ovirt.engine.ui.common.presenter.PlaceTransitionHandler handler ) { placeTransitionHandler = handler ; }

Target:
public void setPlaceTransitionHandler ( org.ovirt.engine.ui.common.presenter.PlaceTransitionHandler handler ) { placeTransitionHandler = handler ; getModelBoundTableWidget ( ) . setPlaceTransitionHandler ( handler ) ; }
Source:
private void assertValidateSlaveHasNoLabelsFailed ( org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator validator , java.lang.String slaveName ) { final org.ovirt.engine.core.common.errors.EngineMessage engineMessage = org.ovirt.engine.core.common.errors.EngineMessage.LABEL_ATTACH_TO_IMPROPER_INTERFACE ; org.junit.Assert.assertThat ( validator.validateSlaveHasNoLabels ( slaveName ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( engineMessage , org.ovirt.engine.core.utils.ReplacementUtils.getVariableAssignmentString ( engineMessage , slaveName ) ) ) ; }

Target:
private void assertValidateSlaveHasNoLabelsFailed ( org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator validator , java.lang.String slaveName ) { final org.ovirt.engine.core.common.errors.EngineMessage engineMessage = org.ovirt.engine.core.common.errors.EngineMessage.LABEL_ATTACH_TO_IMPROPER_INTERFACE ; org.hamcrest.MatcherAssert.assertThat ( validator.validateSlaveHasNoLabels ( slaveName ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( engineMessage , org.ovirt.engine.core.utils.ReplacementUtils.getVariableAssignmentString ( engineMessage , slaveName ) ) ) ; }
Source:
public void testGetByName ( ) { newVolume = insertTestVolume ( ) ; org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity volume = dao.getByName ( org.ovirt.engine.core.dao.gluster.GlusterVolumeDaoTest.CLUSTER_ID , org.ovirt.engine.core.dao.gluster.GlusterVolumeDaoTest.NEW_VOL_NAME ) ; org.junit.Assert.assertNotNull ( volume ) ; org.junit.Assert.assertEquals ( newVolume , volume ) ; }

Target:
public void testGetByName ( ) { newVolume = insertTestVolume ( ) ; org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity volume = dao.getByName ( org.ovirt.engine.core.dao.gluster.GlusterVolumeDaoTest.CLUSTER_ID , org.ovirt.engine.core.dao.gluster.GlusterVolumeDaoTest.NEW_VOL_NAME ) ; org.junit.jupiter.api.Assertions.assertNotNull ( volume ) ; org.junit.jupiter.api.Assertions.assertEquals ( newVolume , volume ) ; }
Source:
private org.ovirt.engine.core.vdsbroker.vdsbroker.HostNetworkAttachmentsPersister createLegacyPersister ( java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > userNetworkAttachments ) { return createLegacyPersister ( userNetworkAttachments , interfaceWithAttachedClusterNetworkA , interfaceWithoutAttachedNetwork ) ; }

Target:
private org.ovirt.engine.core.vdsbroker.vdsbroker.HostNetworkAttachmentsPersister createPersister ( java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > userNetworkAttachments ) { return createPersister ( userNetworkAttachments , interfaceWithAttachedClusterNetworkA , interfaceWithoutAttachedNetwork ) ; }
Source:
protected boolean canDoAction ( ) { return org.ovirt.engine.core.bll.RemoveAdGroupCommand.CanRemoveAdGroup ( org.ovirt.engine.core.bll.RemoveAdGroupCommand.getParameters ( ) . getAdElementId ( ) , org.ovirt.engine.core.bll.RemoveAdGroupCommand.getReturnValue ( ) . getCanDoActionMessages ( ) ) ; }

Target:
protected boolean isLastSuperUserGroup ( org.ovirt.engine.core.compat.Guid groupId ) { return org.ovirt.engine.core.bll.MultiLevelAdministrationHandler.isLastSuperUserGroup ( groupId ) ; }
Source:
public static void updateCommandStatus ( org.ovirt.engine.core.compat.Guid commandId , org.ovirt.engine.core.compat.CommandStatus status ) { org.ovirt.engine.core.bll.tasks.TaskManagerUtil.coco.updateCommandStatus ( commandId , status ) ; }

Target:
public static void updateCommandStatus ( org.ovirt.engine.core.compat.Guid commandId , org.ovirt.engine.core.compat.CommandStatus status ) { org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.coco.updateCommandStatus ( commandId , status ) ; }
Source:
public void setForceHelp ( java.lang.String forceHelpText ) { geoRepForceHelpIcon.setText ( org.ovirt.engine.ui.webadmin.section.main.view.popup.gluster.GeoRepActionConfirmPopUpView.templates.italicText ( forceHelpText ) ) ; }

Target:
public void setForceHelp ( java.lang.String forceHelpText ) { boolean isForceHelpNonEmpty = forceHelpText != null ; if ( isForceHelpNonEmpty ) { geoRepForceHelpIcon.setText ( org.ovirt.engine.ui.webadmin.section.main.view.popup.gluster.GeoRepActionConfirmPopUpView.templates.italicText ( forceHelpText ) ) ; } geoRepForceHelpIcon.setVisible ( isForceHelpNonEmpty ) ; }
Source:
public org.ovirt.engine.core.vdsbroker.vdsbroker.VDSInfoReturnForXmlRpc getCapabilities ( ) { org.ovirt.vdsm.jsonrpc.client.JsonRpcRequest request = new org.ovirt.vdsm.jsonrpc.client.RequestBuilder ( "Host.getCapabilities" ) . build ( ) ; java.util.Map < java.lang.String , java.lang.Object > response = new org.ovirt.engine.core.vdsbroker.jsonrpc.FutureMap ( this . client , request ) . withResponseKey ( "info" ) ; return new org.ovirt.engine.core.vdsbroker.vdsbroker.VDSInfoReturnForXmlRpc ( response ) ; }

Target:
public org.ovirt.engine.core.vdsbroker.vdsbroker.VDSInfoReturn getCapabilities ( ) { org.ovirt.vdsm.jsonrpc.client.JsonRpcRequest request = new org.ovirt.vdsm.jsonrpc.client.RequestBuilder ( "Host.getCapabilities" ) . build ( ) ; java.util.Map < java.lang.String , java.lang.Object > response = new org.ovirt.engine.core.vdsbroker.jsonrpc.FutureMap ( this . client , request ) . withResponseKey ( "info" ) ; return new org.ovirt.engine.core.vdsbroker.vdsbroker.VDSInfoReturn ( response ) ; }
Source:
public void testSetup ( ) { mockQuotaDAO ( ) ; mockVmDAO ( ) ; mockStoragePoolDAO ( ) ; }

Target:
public void testSetup ( ) { mockQuotaDAO ( ) ; mockVmDAO ( ) ; mockStoragePoolDAO ( ) ; mockInjections ( ) ; }