auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void nonPassthroughProfileContainsPortMirroringAndQos ( ) { passthroughProfileContainsSupportedPropertiesTest ( false , true , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_GUID , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.VALID_NETWORK_FILTER_ID ) ; org.junit.Assert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( false ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void nonPassthroughProfileContainsPortMirroringAndQos ( ) { passthroughProfileContainsSupportedPropertiesTest ( false , true , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_GUID , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.VALID_NETWORK_FILTER_ID ) ; org.junit.Assert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
private void updateHeartbeatPolicy ( boolean isHeartbeat ) { org.ovirt.vdsm.jsonrpc.client.utils.retry.RetryPolicy policy = client.getClientRetryPolicy ( ) ; policy.setIncomingHeartbeat ( isHeartbeat ) ; policy.setOutgoingHeartbeat ( isHeartbeat ) ; client.setClientRetryPolicy ( policy ) ; }

Target:
private void updateHeartbeatPolicy ( org.ovirt.vdsm.jsonrpc.client.utils.retry.RetryPolicy policy , boolean isHeartbeat ) { policy.setIncomingHeartbeat ( isHeartbeat ) ; policy.setOutgoingHeartbeat ( isHeartbeat ) ; client.setClientRetryPolicy ( policy ) ; }
Source:
public void testGet ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( 1 ) ; control.replay ( ) ; verifyModel ( resource.get ( ) , 0 ) ; }

Target:
public void testGet ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( 1 ) ; verifyModel ( resource.get ( ) , 0 ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getVdsGroupId ( ) { return this . vdsGroupId ; }

Target:
public org.ovirt.engine.core.compat.Guid getVdsGroupId ( ) { return vdsGroupId ; }
Source:
public void setup ( ) throws org.ovirt.engine.core.common.utils.exceptions.InitializationException { mockVmPropertiesUtils ( ) ; mockOsRepository ( ) ; org.mockito.Mockito.doReturn ( snapshotValidator ) . when ( runVmValidator ) . getSnapshotValidator ( ) ; }

Target:
public void setup ( ) throws org.ovirt.engine.core.common.utils.exceptions.InitializationException { mockVmPropertiesUtils ( ) ; mockOsRepository ( ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getSourceStorageDomainId ( ) { return getSourceDomainId ( ) . getValue ( ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getSourceStorageDomainId ( ) { return getSourceDomainId ( ) ; }
Source:
public static org.ovirt.engine.core.bll.adbroker.LdapBroker getInstance ( java.lang.String domain ) { if ( domain.equalsIgnoreCase ( org.ovirt.engine.core.bll.adbroker.LdapFactory.internalDomain ) ) { return org.ovirt.engine.core.bll.adbroker.LdapFactory.internalInstance ; } else { return org.ovirt.engine.core.bll.adbroker.LdapFactory.ldapInstance ; } }

Target:
public static org.ovirt.engine.core.bll.adbroker.LdapBroker getInstance ( java.lang.String domain ) { return org.ovirt.engine.core.bll.adbroker.LdapFactory.ldapInstance ; }
Source:
private void mockVdsFenceOptions ( boolean agentsCompatibleWithProxy ) { vdsFenceOptions = org.mockito.Mockito.mock ( org.ovirt.engine.core.utils.pm.VdsFenceOptions.class ) ; org.mockito.Mockito.doReturn ( agentsCompatibleWithProxy ) . when ( vdsFenceOptions ) . isAgentSupported ( org.mockito.Matchers.any ( java.lang.String.class ) ) ; }

Target:
private void mockVdsFenceOptions ( boolean agentsCompatibleWithProxy ) { vdsFenceOptions = org.mockito.Mockito.mock ( org.ovirt.engine.core.utils.pm.VdsFenceOptions.class ) ; org.mockito.Mockito.when ( vdsFenceOptions.isAgentSupported ( org.mockito.Matchers.any ( java.lang.String.class ) ) ) . thenReturn ( agentsCompatibleWithProxy ) ; }
Source:
private static java.lang.Boolean execute ( org.ovirt.engine.core.bll.adbroker.GetRootDSETask task ) throws java.lang.InterruptedException , java.util.concurrent.ExecutionException , java.util.concurrent.TimeoutException { return org.ovirt.engine.core.bll.adbroker.DirectorySearcherTest.executerService.submit ( task ) . get ( 20 , java.util.concurrent.TimeUnit.SECONDS ) ; }

Target:
private static java.lang.Boolean execute ( org.ovirt.engine.core.bll.adbroker.GetRootDSETask task ) throws java.lang.InterruptedException , java.util.concurrent.ExecutionException , java.util.concurrent.TimeoutException { return org.ovirt.engine.core.bll.adbroker.DirectorySearcherTest.executerService.submit ( task ) . get ( 1 , java.util.concurrent.TimeUnit.SECONDS ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { mappings.setExplanation ( org.ovirt.engine.ui.webadmin.widget.provider.NeutronAgentWidget.templates.italicText ( model.getInterfaceMappingsExplanation ( ) . getEntity ( ) ) ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { mappings.setExplanation ( model.getInterfaceMappingsExplanation ( ) . getEntity ( ) ) ; }
Source:
public javax.ws.rs.core.Response allocateVm ( org.ovirt.engine.api.model.Action action ) { return doAction ( VdcActionType.AttachUserToVmFromPoolAndRun , new org.ovirt.engine.core.common.action.AttachUserToVmFromPoolAndRunParameters ( guid , getCurrent ( ) . getUser ( ) . getId ( ) , false ) , action , new org.ovirt.engine.api.restapi.resource.BackendVmPoolResource.VmQueryIdResolver ( org.ovirt.engine.core.common.queries.VdcQueryType.GetVmByVmId , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) ) ; }

Target:
public javax.ws.rs.core.Response allocateVm ( org.ovirt.engine.api.model.Action action ) { return doAction ( VdcActionType.AttachUserToVmFromPoolAndRun , new org.ovirt.engine.core.common.action.AttachUserToVmFromPoolAndRunParameters ( guid , getCurrent ( ) . getUser ( ) . getId ( ) ) , action , new org.ovirt.engine.api.restapi.resource.BackendVmPoolResource.VmQueryIdResolver ( org.ovirt.engine.core.common.queries.VdcQueryType.GetVmByVmId , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) ) ; }
Source:
private java.lang.String defaultClusterRngSourcesCsv ( org.ovirt.engine.core.compat.Version ver ) { java.lang.String srcs = ( ( java.lang.String ) ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getConfigValuePreConverted ( ConfigurationValues.ClusterRequiredRngSourcesDefault , ver.toString ( ) ) ) ) ; return srcs == null ? "" : srcs ; }

Target:
private java.lang.String defaultClusterRngSourcesCsv ( org.ovirt.engine.core.compat.Version ver ) { java.lang.String srcs = ( ( java.lang.String ) ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . getConfigValuePreConverted ( ConfigurationValues.ClusterRequiredRngSourcesDefault , ver.toString ( ) ) ) ) ; return srcs == null ? "" : srcs ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VDSGroup map ( org.ovirt.engine.core.common.businessentities.storage_pool pool ) { return getMapper ( org.ovirt.engine.core.common.businessentities.storage_pool.class , org.ovirt.engine.core.common.businessentities.VDSGroup.class ) . map ( pool , null ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VDSGroup map ( org.ovirt.engine.core.common.businessentities.StoragePool pool ) { return getMapper ( org.ovirt.engine.core.common.businessentities.StoragePool.class , org.ovirt.engine.core.common.businessentities.VDSGroup.class ) . map ( pool , null ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.Role > getAllForUserAndGroups ( org.ovirt.engine.core.compat.Guid id , java.lang.String groupIds ) { java.lang.Integer appMode = org.ovirt.engine.core.common.config.Config.< java.lang.Integer > GetValue ( ConfigValues.ApplicationMode ) ; return getAllForUserAndGroups ( id , groupIds , appMode.intValue ( ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.Role > getAllForUserAndGroups ( org.ovirt.engine.core.compat.Guid id , java.lang.String groupIds ) { java.lang.Integer appMode = org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.ApplicationMode ) ; return getAllForUserAndGroups ( id , groupIds , appMode.intValue ( ) ) ; }
Source:
private void mockStorageDomainValidator ( ) { org.mockito.Mockito.doReturn ( storageDomainValidator ) . when ( command ) . getStorageDomainValidator ( org.mockito.ArgumentMatchers.any ( ) ) ; org.mockito.Mockito.when ( storageDomainValidator.isDomainExistAndActive ( ) ) . thenReturn ( ValidationResult.VALID ) ; }

Target:
private void mockStorageDomainValidator ( ) { org.mockito.Mockito.doReturn ( storageDomainValidator ) . when ( command ) . getStorageDomainValidator ( org.mockito.ArgumentMatchers.any ( ) ) ; }
Source:
protected void disableLoginScreen ( ) { getUserName ( ) . setIsChangeable ( false ) ; getPassword ( ) . setIsChangeable ( false ) ; getProfile ( ) . setIsChangeable ( false ) ; getLoginCommand ( ) . setIsExecutionAllowed ( false ) ; }

Target:
protected void disableLoginScreen ( ) { getUserName ( ) . setIsChangeable ( false ) ; getPassword ( ) . setIsChangeable ( false ) ; getProfile ( ) . setIsChangeable ( false ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface object ) { return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromTrustedString ( org.ovirt.engine.ui.uicompat.external.StringUtils.join ( object.getIpv6Addresses ( ) , ", " ) ) ; }

Target:
public java.lang.String getTooltip ( org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface object ) { return org.ovirt.engine.ui.uicompat.external.StringUtils.join ( object.getIpv6Addresses ( ) , ", " ) ; }
Source:
public java.lang.Object getConfigValuePreConverted ( org.ovirt.engine.core.common.queries.ConfigurationValues configValue ) { org.ovirt.engine.core.compat.KeyValuePairCompat < org.ovirt.engine.core.common.queries.ConfigurationValues , java.lang.String > key = new org.ovirt.engine.core.compat.KeyValuePairCompat < org.ovirt.engine.core.common.queries.ConfigurationValues , java.lang.String > ( configValue , getDefaultConfigurationVersion ( ) ) ; return cachedConfigValuesPreConvert.get ( key ) ; }

Target:
public java.lang.Object getConfigValuePreConverted ( org.ovirt.engine.core.common.queries.ConfigurationValues configValue , java.lang.String version ) { org.ovirt.engine.core.compat.KeyValuePairCompat < org.ovirt.engine.core.common.queries.ConfigurationValues , java.lang.String > key = new org.ovirt.engine.core.compat.KeyValuePairCompat ( configValue , version ) ; return cachedConfigValuesPreConvert.get ( key ) ; }
Source:
public void testGet ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( asList ( getEntity ( 1 ) ) ) ; control.replay ( ) ; verifyModel ( resource.get ( ) , 1 ) ; }

Target:
public void testGet ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( asList ( getEntity ( 1 ) ) ) ; verifyModel ( resource.get ( ) , 1 ) ; }
Source:
public void validateFailsIsoVersionNotCompatible ( ) { mockVdsWithOsVersion ( org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.INVALID_OVIRT_VERSION ) ; org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters param = org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.createParameters ( ) ; param.setoVirtIsoFile ( org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.VALID_VERSION_OVIRT_ISO_FILENAME ) ; org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommand < org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters > command = createCommand ( param ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.VDS_CANNOT_UPGRADE_BETWEEN_MAJOR_VERSION ) ; }

Target:
public void validateFailsIsoVersionNotCompatible ( ) { mockVdsWithOsVersion ( org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.INVALID_OVIRT_VERSION ) ; command.getParameters ( ) . setoVirtIsoFile ( org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.VALID_VERSION_OVIRT_ISO_FILENAME ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.VDS_CANNOT_UPGRADE_BETWEEN_MAJOR_VERSION ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VDSGroup lookupCluster ( org.ovirt.engine.core.compat.Guid id ) { return getEntity ( org.ovirt.engine.core.common.businessentities.VDSGroup.class , VdcQueryType.GetVdsGroupByVdsGroupId , new org.ovirt.engine.core.common.queries.GetVdsGroupByVdsGroupIdParameters ( id ) , "GetVdsGroupByVdsGroupId" ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.VDSGroup lookupCluster ( org.ovirt.engine.core.compat.Guid id ) { return getEntity ( org.ovirt.engine.core.common.businessentities.VDSGroup.class , VdcQueryType.GetVdsGroupByVdsGroupId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) , "GetVdsGroupByVdsGroupId" ) ; }
Source:
private java.util.Set < java.lang.String > getInterfaceNetworkNames ( ) { if ( ( cachedInterfaceNetworkNames ) == null ) { return org.ovirt.engine.core.common.businessentities.Entities.vmInterfacesByNetworkName ( vm.getInterfaces ( ) ) . keySet ( ) ; } return cachedInterfaceNetworkNames ; }

Target:
private java.util.Set < java.lang.String > getInterfaceNetworkNames ( ) { if ( ( cachedInterfaceNetworkNames ) == null ) { cachedInterfaceNetworkNames = org.ovirt.engine.core.common.businessentities.Entities.vmInterfacesByNetworkName ( vm.getInterfaces ( ) ) . keySet ( ) ; } return cachedInterfaceNetworkNames ; }
Source:
protected org.ovirt.engine.api.model.StorageDomain map ( org.ovirt.engine.core.common.businessentities.storage_domains entity , org.ovirt.engine.api.model.StorageDomain template ) { return parent.map ( entity , template ) ; }

Target:
protected org.ovirt.engine.api.model.StorageDomain map ( org.ovirt.engine.api.model.StorageDomain entity , org.ovirt.engine.api.model.StorageDomain template ) { return parent.map ( entity , template ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network n ) { return iface.getNetworkName ( ) . equals ( n.getname ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.Network n ) { return iface.getNetworkName ( ) . equals ( n.getname ( ) ) ; }
Source:
public void runMultipleAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , final org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback callback ) { runMultipleAction ( actionType , parameters , callback , null , true ) ; }

Target:
public void runMultipleAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters ) { runMultipleAction ( actionType , parameters , null , null ) ; }
Source:
protected org.ovirt.engine.core.dal.dbbroker.DbFacade getDbFacade ( ) { return facade ; }

Target:
public org.ovirt.engine.core.dal.dbbroker.DbFacade getDbFacade ( ) { return facade ; }
Source:
public void testNoIsoDomain ( ) { org.ovirt.engine.core.bll.validator.RunVmValidatorTest.validateResult ( runVmValidator.validateBootSequence ( new org.ovirt.engine.core.common.businessentities.VM ( ) , BootSequence.CD , new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Disk > ( ) ) , false , VdcBllMessages.VM_CANNOT_RUN_FROM_CD_WITHOUT_ACTIVE_STORAGE_DOMAIN_ISO ) ; }

Target:
public void testNoIsoDomain ( ) { org.ovirt.engine.core.bll.validator.RunVmValidatorTest.validateResult ( runVmValidator.validateBootSequence ( new org.ovirt.engine.core.common.businessentities.VM ( ) , BootSequence.CD , new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Disk > ( ) , null ) , false , VdcBllMessages.VM_CANNOT_RUN_FROM_CD_WITHOUT_ACTIVE_STORAGE_DOMAIN_ISO ) ; }
Source:
protected void buildChildCommandInfos ( ) { org.ovirt.engine.core.compat.Guid vmSnapshotId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; for ( org.ovirt.engine.core.common.businessentities.DiskImage image : getDisksList ( ) ) { addChildCommandInfo ( image.getImageId ( ) , VdcActionType.CreateSnapshot , buildCreateSnapshotParameters ( image , vmSnapshotId ) ) ; } }

Target:
protected void buildChildCommandInfos ( ) { for ( org.ovirt.engine.core.common.businessentities.DiskImage image : getDisksList ( ) ) { addChildCommandInfo ( image.getImageId ( ) , VdcActionType.CreateSnapshot , buildCreateSnapshotParameters ( image ) ) ; } }
Source:
public void lowerVersionMgmtNetworkSupportedFeatures ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addManagementNetworksToPool ( org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommandTest.TEST_MANAGEMENT_NETWORK_ID ) ; setupNetworkValidator ( true ) ; org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }

Target:
public void lowerVersionMgmtNetworkSupportedFeatures ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addManagementNetworksToPool ( 2 ) ; setupNetworkValidator ( true ) ; org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }
Source:
private java.util.List < org.ovirt.engine.core.authentication.DirectoryGroup > getDomainGroups ( ) { return asCollection ( org.ovirt.engine.core.authentication.DirectoryGroup.class , getEntity ( java.util.ArrayList.class , SearchType.DirectoryGroup , getSearchPattern ( ) ) ) ; }

Target:
private java.util.List < org.ovirt.engine.core.authentication.DirectoryGroup > getDomainGroups ( ) { return asCollection ( org.ovirt.engine.core.authentication.DirectoryGroup.class , getEntity ( java.util.List.class , SearchType.DirectoryGroup , getSearchPattern ( ) ) ) ; }
Source:
protected void executeVdsBrokerCommand ( ) { org.ovirt.engine.core.vdsbroker.vdsbroker.HotUnPlugDiskVDSCommand.buildSendDataToVdsm ( ) ; status = org.ovirt.engine.core.vdsbroker.vdsbroker.HotUnPlugDiskVDSCommand.getBroker ( ) . hotunplugDisk ( sendInfo ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.HotUnPlugDiskVDSCommand.proceedProxyReturnValue ( ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.vdsbroker.HotUnPlugDiskVDSCommand.getBroker ( ) . hotunplugDisk ( org.ovirt.engine.core.vdsbroker.vdsbroker.HotUnPlugDiskVDSCommand.buildSendDataToVdsm ( ) ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.HotUnPlugDiskVDSCommand.proceedProxyReturnValue ( ) ; }
Source:
public void clearSession ( ) { container.removeSession ( ) ; container.removeSession ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID ) ; org.ovirt.engine.core.utils.ThreadLocalParamsContainer.setHttpSessionId ( null ) ; }

Target:
public void clearSession ( ) { container.removeSession ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID ) ; }
Source:
public void setCpuSys ( java.lang.Double value ) { this . mVdsStatistics.setcpu_sys ( value ) ; }

Target:
public void setCpuSys ( java.lang.Double value ) { this . mVdsStatistics.setCpuSys ( value ) ; }
Source:
public org.ovirt.engine.core.compat.Guid runInTransaction ( ) { getCompensationContext ( ) . resetCompensation ( ) ; return createTaskInCurrentTransaction ( ret1.getCreationInfo ( ) , VdcActionType.HibernateVm , VdcObjectType.Storage , getStorageDomainId ( ) . getValue ( ) ) ; }

Target:
public org.ovirt.engine.core.compat.Guid runInTransaction ( ) { getCompensationContext ( ) . resetCompensation ( ) ; return createTaskInCurrentTransaction ( ret1.getCreationInfo ( ) , VdcActionType.HibernateVm , VdcObjectType.Storage , getStorageDomainId ( ) ) ; }
Source:
private void logFailureMessage ( java.lang.String messagePrefix , java.lang.RuntimeException ex ) { org.ovirt.engine.core.vdsbroker.VdsUpdateRunTimeInfo.log.error ( "{} vds={}({}): {}" , messagePrefix , org.apache.commons.lang.exception.ExceptionUtils.getMessage ( ex ) , _vds.getName ( ) , _vds.getId ( ) ) ; }

Target:
private void logFailureMessage ( java.lang.String messagePrefix , java.lang.RuntimeException ex ) { org.ovirt.engine.core.vdsbroker.VdsUpdateRunTimeInfo.log.error ( "{} vds={}({}): {}" , messagePrefix , _vds.getName ( ) , _vds.getId ( ) , ex.getMessage ( ) ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.core.common.businessentities.network.Network nwk ) { java.lang.String tooltipContent = org.ovirt.engine.ui.uicompat.EnumTranslator.getInstance ( ) . translate ( nwk.getCluster ( ) . getStatus ( ) ) ; return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromString ( tooltipContent ) ; }

Target:
public java.lang.String getTooltip ( org.ovirt.engine.core.common.businessentities.network.Network nwk ) { java.lang.String tooltipContent = org.ovirt.engine.ui.uicompat.EnumTranslator.getInstance ( ) . translate ( nwk.getCluster ( ) . getStatus ( ) ) ; return tooltipContent ; }
Source:
public void setUri ( java.lang.String uri ) { if ( org.ovirt.engine.ui.uicommonweb.ReportInit.getInstance ( ) . isCommunityEdition ( ) ) { htmlParams.setParameter ( "reportUnit" , uri ) ; } else { htmlParams.setParameter ( "dashboardResource" , uri ) ; } }

Target:
public void setUri ( java.lang.String uri ) { this . uri = uri ; if ( org.ovirt.engine.ui.uicommonweb.ReportInit.getInstance ( ) . isCommunityEdition ( ) ) { htmlParams.setParameter ( "reportUnit" , uri ) ; } else { htmlParams.setParameter ( "dashboardResource" , uri ) ; } }
Source:
private void updateEditorStyle ( org.ovirt.engine.ui.common.widget.AbstractValidatedWidgetWithLabel editor , java.lang.String contentStyle ) { editor.setContentWidgetContainerStyleName ( contentStyle ) ; editor.addContentWidgetContainerStyleName ( "avw_contentWidgetContainer_pfly_fix" ) ; editor.addWrapperStyleName ( style.editorWrapper ( ) ) ; editor.setLabelStyleName ( style.editorLabel ( ) ) ; }

Target:
private void updateEditorStyle ( org.ovirt.engine.ui.common.widget.AbstractValidatedWidgetWithLabel editor , java.lang.String contentStyle ) { editor.setContentWidgetContainerStyleName ( contentStyle ) ; editor.addWrapperStyleName ( style.editorWrapper ( ) ) ; editor.setLabelStyleName ( style.editorLabel ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.Cluster doPersist ( ) { clusterDao.save ( object ) ; return object ; }

Target:
protected org.ovirt.engine.core.common.businessentities.Cluster doPersist ( ) { clusterDao.save ( object ) ; return clusterDao.get ( object.getId ( ) ) ; }
Source:
private void stubDaos ( ) { mockVmStatic ( true ) ; mockVdsDao ( ) ; }

Target:
private void stubDaos ( ) { mockVdsDao ( ) ; }
Source:
public void getFreeVfNotSriovNic ( ) { commonIsSriovDevice ( false ) ; try { hostNicVfsConfigHelper.getFreeVf ( nic ) ; } catch ( java.lang.Exception exception ) { org.junit.Assert.assertTrue ( ( exception instanceof java.lang.UnsupportedOperationException ) ) ; } }

Target:
public void getFreeVfNotSriovNic ( ) { commonIsSriovDevice ( false ) ; hostNicVfsConfigHelper.getFreeVf ( nic , null ) ; }
Source:
public java.lang.String getIScsiInitiatorName ( ) { return this . iScsiInitiatorName ; }

Target:
public java.lang.String getIScsiInitiatorName ( ) { return iScsiInitiatorName ; }
Source:
public void onSucceeded ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { super . onSucceeded ( cmdId , childCmdIds ) ; getCommand ( ) . endAction ( ) ; org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.removeAllCommandsInHierarchy ( cmdId ) ; }

Target:
public void onSucceeded ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { super . onSucceeded ( cmdId , childCmdIds ) ; getCommand ( ) . endAction ( ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VmNetworkInterface i ) { return i.getId ( ) . equals ( getParameters ( ) . getInterface ( ) . getId ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VmNetworkInterface i ) { return i.getId ( ) . equals ( getInterface ( ) . getId ( ) ) ; }
Source:
private void validateSource ( ) { clearProblem ( ) ; if ( ( ( importSources.getSelectedItem ( ) ) == ( ImportSource.EXPORT_DOMAIN ) ) && ( ( exportDomain ) == null ) ) { setError ( constants.notAvailableWithNoActiveExportDomain ( ) ) ; } }

Target:
private void validateSource ( ) { clearProblem ( ) ; if ( ( ( importSources.getSelectedItem ( ) ) == ( ImportSource.EXPORT_DOMAIN ) ) && ( ( exportDomain.getEntity ( ) ) == null ) ) { setError ( constants.notAvailableWithNoActiveExportDomain ( ) ) ; } }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { if ( ( getSpecificStorageQuota ( ) . getEntity ( ) ) == true ) { getGlobalStorageQuota ( ) . setEntity ( false ) ; } }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { if ( getSpecificStorageQuota ( ) . getEntity ( ) ) { getGlobalStorageQuota ( ) . setEntity ( false ) ; } }
Source:
protected org.ovirt.engine.core.dao.ActionGroupDAO getActionGroupDao ( ) { return getDbFacade ( ) . getActionGroupDAO ( ) ; }

Target:
protected org.ovirt.engine.core.dao.ActionGroupDAO getActionGroupDao ( ) { return getDbFacade ( ) . getActionGroupDao ( ) ; }
Source:
public void testGet ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpEntityQueryExpectations ( 1 , false ) ; control.replay ( ) ; verifyModel ( resource.get ( ) , 1 ) ; }

Target:
public void testGet ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpEntityQueryExpectations ( 1 , false , false ) ; control.replay ( ) ; verifyModel ( resource.get ( ) , 1 ) ; }
Source:
public void testGetAllForStorageDomain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllForStorageDomain ( existingDomain.getId ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForStorageDomain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllForStorageDomain ( existingDomain.getId ( ) ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }
Source:
private void setCustomProperties ( java.util.Map < java.lang.String , java.lang.String > customProperties ) { this . customProperties = customProperties ; }

Target:
public void setCustomProperties ( java.util.Map < java.lang.String , java.lang.String > customProperties ) { this . customProperties = customProperties ; }
Source:
protected org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.String > createGhostValue ( ) { org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.String > value = new org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.String > ( ) ; value.setEntity ( "" ) ; return value ; }

Target:
protected org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.String > createGhostValue ( ) { org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.String > value = new org.ovirt.engine.ui.uicommonweb.models.EntityModel ( ) ; value.setEntity ( "" ) ; return value ; }
Source:
protected boolean canDoAction ( ) { return ( ( super . canDoAction ( ) ) && ( validate ( getVfsConfigValidator ( ) . settingSpecificNetworksAllowed ( ) ) ) ) && ( validate ( getVfsConfigValidator ( ) . networkExists ( getNetworkId ( ) ) ) ) ; }

Target:
protected boolean validate ( ) { return ( ( super . validate ( ) ) && ( validate ( getVfsConfigValidator ( ) . settingSpecificNetworksAllowed ( ) ) ) ) && ( validate ( getVfsConfigValidator ( ) . networkExists ( getNetworkId ( ) ) ) ) ; }
Source:
public org.ovirt.engine.api.model.Snapshots list ( ) { return mapCollection ( getBackendCollection ( VdcQueryType.GetAllVmSnapshotsByVmId , new org.ovirt.engine.core.common.queries.GetAllVmSnapshotsByVmIdParameters ( parentId ) ) ) ; }

Target:
public org.ovirt.engine.api.model.Snapshots list ( ) { return mapCollection ( getBackendCollection ( VdcQueryType.GetAllVmSnapshotsByVmId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( parentId ) ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkView > getAllWithQuery ( java.lang.String query ) { return new org.springframework.jdbc.core.simple.SimpleJdbcTemplate ( jdbcTemplate ) . query ( query , org.ovirt.engine.core.dao.network.NetworkViewDaoDbFacadeImpl.NetworkViewRowMapper.instance ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkView > getAllWithQuery ( java.lang.String query ) { return jdbcTemplate.query ( query , org.ovirt.engine.core.dao.network.NetworkViewDaoDbFacadeImpl.NetworkViewRowMapper.instance ) ; }
Source:
protected void noPaddingNoFixes ( ) { org.ovirt.engine.ui.common.widget.editor.BaseEntityModelCheckboxEditor.getValidatedWidgetStyle ( ) . clearPadding ( ) ; getCheckboxWidgetLabel ( ) . removeClassName ( org.ovirt.engine.ui.common.widget.editor.BaseEntityModelCheckboxEditor.CBE_LABEL_PFLY_FIX ) ; getContentWidgetElement ( ) . removeClassName ( org.ovirt.engine.ui.common.widget.editor.BaseEntityModelCheckboxEditor.CBE_CHECKBOX_PFLY_FIX ) ; getContentWidgetElement ( ) . removeClassName ( Styles.FORM_CONTROL ) ; removeContentWidgetStyleName ( Styles.FORM_CONTROL ) ; }

Target:
protected void noPaddingNoFixes ( ) { org.ovirt.engine.ui.common.widget.editor.BaseEntityModelCheckboxEditor.getValidatedWidgetStyle ( ) . clearPadding ( ) ; getCheckboxWidgetLabel ( ) . removeClassName ( org.ovirt.engine.ui.common.widget.editor.BaseEntityModelCheckboxEditor.CBE_LABEL_PFLY_FIX ) ; getContentWidgetElement ( ) . removeClassName ( Styles.FORM_CONTROL ) ; removeContentWidgetStyleName ( Styles.FORM_CONTROL ) ; }
Source:
public java.lang.String getbookmark_value ( ) { return value ; }

Target:
public java.lang.String getValue ( ) { return value ; }
Source:
public void setIpVersion ( org.ovirt.engine.ui.uicommonweb.models.ListModel < org.ovirt.engine.core.common.businessentities.network.ExternalSubnet.IpVersion > ipVersion ) { this . ipVersion = ipVersion ; }

Target:
private void setIpVersion ( org.ovirt.engine.ui.uicommonweb.models.ListModel < org.ovirt.engine.core.common.businessentities.network.ExternalSubnet.IpVersion > ipVersion ) { this . ipVersion = ipVersion ; }
Source:
public int compare ( org.ovirt.engine.core.common.businessentities.network x , org.ovirt.engine.core.common.businessentities.network y ) { return x.getname ( ) . compareTo ( y.getname ( ) ) ; }

Target:
public int compare ( org.ovirt.engine.core.common.businessentities.Network x , org.ovirt.engine.core.common.businessentities.Network y ) { return x.getname ( ) . compareTo ( y.getname ( ) ) ; }
Source:
public void setvm_count ( int value ) { this . mVdsDynamic.setvm_count ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "vm_count" ) ) ; }

Target:
public void setvm_count ( int value ) { this . mVdsDynamic.setvm_count ( value ) ; }
Source:
public org.ovirt.engine.api.resource.StatisticsResource getStatisticsResource ( ) { org.ovirt.engine.api.restapi.resource.StepStatisticalQuery query = new org.ovirt.engine.api.restapi.resource.StepStatisticalQuery ( new org.ovirt.engine.api.restapi.resource.BackendStepResource.TaskQueryResolver < org.ovirt.engine.core.compat.Guid > ( ) , newModel ( id ) ) ; return inject ( new org.ovirt.engine.api.restapi.resource.BackendStatisticsResource < org.ovirt.engine.api.model.Step , org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeTaskStatusEntity > ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeTaskStatusEntity.class , guid , query ) ) ; }

Target:
public org.ovirt.engine.api.resource.StatisticsResource getStatisticsResource ( ) { org.ovirt.engine.api.restapi.resource.StepStatisticalQuery query = new org.ovirt.engine.api.restapi.resource.StepStatisticalQuery ( new org.ovirt.engine.api.restapi.resource.BackendStepResource.TaskQueryResolver < org.ovirt.engine.core.compat.Guid > ( ) , newModel ( id ) ) ; return inject ( new org.ovirt.engine.api.restapi.resource.BackendStatisticsResource ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeTaskStatusEntity.class , guid , query ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.StoragePool getStoragePool ( ) { if ( ( cachedStoragePool ) == null ) { cachedStoragePool = getStoragePoolDAO ( ) . get ( params.getStoragePoolId ( ) ) ; } return cachedStoragePool ; }

Target:
public org.ovirt.engine.core.common.businessentities.StoragePool getStoragePool ( ) { if ( ( cachedStoragePool ) == null ) { cachedStoragePool = getStoragePoolDAO ( ) . get ( params.getStoragePoolId ( ) ) ; } return cachedStoragePool ; }
Source:
private void unlockImageInDb ( ) { final org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage = ( ( org.ovirt.engine.core.common.businessentities.storage.DiskImage ) ( getOldDisk ( ) ) ) ; diskImage.setImageStatus ( ImageStatus.OK ) ; org.ovirt.engine.core.bll.ImagesHandler.updateImageStatus ( diskImage.getImageId ( ) , ImageStatus.OK ) ; }

Target:
public void unlockImageInDb ( ) { final org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage = ( ( org.ovirt.engine.core.common.businessentities.storage.DiskImage ) ( getOldDisk ( ) ) ) ; diskImage.setImageStatus ( ImageStatus.OK ) ; org.ovirt.engine.core.bll.ImagesHandler.updateImageStatus ( diskImage.getImageId ( ) , ImageStatus.OK ) ; }
Source:
public void add ( ) { runAddAndVerify ( org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.createNewInterface ( ) , false , org.mockito.Mockito.times ( 0 ) , org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.OS_ID ) ; }

Target:
public void add ( ) { runAddAndVerify ( org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.createNewInterface ( ) , true ) ; }
Source:
protected void clearSelection ( ) { org.ovirt.engine.ui.webadmin.section.main.presenter.AbstractMainTabWithDetailsPresenter.getView ( ) . getTable ( ) . getSelectionModel ( ) . clear ( ) ; }

Target:
protected void clearSelection ( ) { getTable ( ) . getSelectionModel ( ) . clear ( ) ; }
Source:
protected org.ovirt.engine.core.dao.network.NetworkDao getNetworkDAO ( ) { return getDbFacade ( ) . getNetworkDao ( ) ; }

Target:
protected org.ovirt.engine.core.dao.network.NetworkDao getNetworkDao ( ) { return getDbFacade ( ) . getNetworkDao ( ) ; }
Source:
public void testConvertMegaBytesToTB ( ) { long mb = ( 5 * 1024 ) * 1024 ; int tbs = org.ovirt.engine.core.common.utils.SizeConverter.convert ( mb , SizeUnit.MiB , SizeUnit.TiB ) . intValue ( ) ; org.junit.Assert.assertEquals ( tbs , 5 ) ; }

Target:
public void testConvertMegaBytesToTB ( ) { long mb = ( 5 * 1024 ) * 1024 ; int tbs = org.ovirt.engine.core.common.utils.SizeConverter.convert ( mb , SizeUnit.MiB , SizeUnit.TiB ) . intValue ( ) ; org.junit.Assert.assertEquals ( 5 , tbs ) ; }
Source:
public void canDoActionFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.StopRemoveGlusterVolumeBricksCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters ( null , getBricks ( volumeWithRemoveBricksTaskCompleted , 2 ) ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }

Target:
public void canDoActionFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.StopRemoveGlusterVolumeBricksCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters ( null , getBricks ( volumeWithRemoveBricksTaskCompleted ) ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }
Source:
public void cpuTuneToString ( ) { for ( java.lang.String sample : new java.lang.String [ ] { "0#0" , "0#0_1#1" , "0#0_1#1,2,3,6" } ) { org.junit.Assert.assertEquals ( sample , org.ovirt.engine.api.restapi.types.VmMapper.cpuTuneToString ( org.ovirt.engine.api.restapi.types.VmMapper.stringToCpuTune ( sample ) ) ) ; } }

Target:
public void cpuTuneToString ( ) { for ( java.lang.String sample : new java.lang.String [ ] { "0#0" , "0#0_1#1" , "0#0_1#1,2,3,6" } ) { assertEquals ( sample , org.ovirt.engine.api.restapi.types.VmMapper.cpuTuneToString ( org.ovirt.engine.api.restapi.types.VmMapper.stringToCpuTune ( sample ) ) ) ; } }
Source:
public void update ( int index , org.ovirt.engine.core.common.businessentities.Cluster cluster , java.lang.String value ) { transitionHandler.handlePlaceTransition ( ) ; }

Target:
public void update ( int index , org.ovirt.engine.core.common.businessentities.Cluster cluster , java.lang.String value ) { transitionHandler.handlePlaceTransition ( true ) ; }
Source:
public java.lang.String toString ( ) { java.lang.String prefix = "" ; if ( ( TotalMilliseconds ) < 0 ) { prefix = "-" ; } return java.lang.String.format ( "%s%d.%02d:%02d:%02d.%03d" , prefix , Days , Hours , Minutes , Seconds , Milliseconds ) ; }

Target:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s%d.%02d:%02d:%02d.%03d" , ( ( TotalMilliseconds ) < 0 ? "-" : "" ) , Days , Hours , Minutes , Seconds , Milliseconds ) ; }
Source:
public void setCountThreadsAsCores ( boolean value ) { this . countThreadsAsCores = value ; }

Target:
public void setCountThreadsAsCores ( boolean value ) { countThreadsAsCores = value ; }
Source:
protected void syncSearch ( ) { if ( ( getEntity ( ) ) == null ) { return ; } super . syncSearch ( VdcQueryType.GetVmTemplatesDisks , new org.ovirt.engine.core.common.queries.IdQueryParameters ( getEntityStronglyTyped ( ) . getId ( ) ) ) ; }

Target:
protected void syncSearch ( ) { if ( ( getEntity ( ) ) == null ) { return ; } super . syncSearch ( VdcQueryType.GetVmTemplatesDisks , new org.ovirt.engine.core.common.queries.IdQueryParameters ( getEntity ( ) . getId ( ) ) ) ; }
Source:
public void onSuccess ( java.lang.Object result ) { org.ovirt.engine.ui.uicommonweb.models.vms.RunOnceModel runOnceModel = new org.ovirt.engine.ui.uicommonweb.models.vms.UserPortalRunOnceModel ( ( ( org.ovirt.engine.core.common.businessentities.VM ) ( result ) ) , this ) ; setWindow ( runOnceModel ) ; runOnceModel.init ( ) ; }

Target:
public void onSuccess ( org.ovirt.engine.core.common.businessentities.VM result ) { org.ovirt.engine.ui.uicommonweb.models.vms.RunOnceModel runOnceModel = new org.ovirt.engine.ui.uicommonweb.models.vms.UserPortalRunOnceModel ( result , this ) ; setWindow ( runOnceModel ) ; runOnceModel.init ( ) ; }
Source:
public org.ovirt.engine.api.model.StorageDomain getStorageDomain ( ) { return getEntity ( org.ovirt.engine.api.model.StorageDomain.class , VdcQueryType.GetStorageDomainById , new org.ovirt.engine.core.common.queries.StorageDomainQueryParametersBase ( storageDomainId ) , storageDomainId.toString ( ) ) ; }

Target:
public org.ovirt.engine.api.model.StorageDomain getStorageDomain ( ) { return getEntity ( org.ovirt.engine.api.model.StorageDomain.class , VdcQueryType.GetStorageDomainById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( storageDomainId ) , storageDomainId.toString ( ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterServerHook > getGlusterServerHooks ( org.ovirt.engine.core.compat.Guid hookId ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterServerHook > serverHooks = getCallsHandler ( ) . executeReadList ( "GetGlusterServerHooksById" , org.ovirt.engine.core.dao.gluster.GlusterHooksDaoImpl.glusterServerHookRowMapper , createIdParameterMapper ( hookId ) ) ; return serverHooks ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterServerHook > getGlusterServerHooks ( org.ovirt.engine.core.compat.Guid hookId ) { return getCallsHandler ( ) . executeReadList ( "GetGlusterServerHooksById" , org.ovirt.engine.core.dao.gluster.GlusterHooksDaoImpl.glusterServerHookRowMapper , createIdParameterMapper ( hookId ) ) ; }
Source:
public void versionDecreaseWithHost ( ) { createCommandWithOlderVersion ( ) ; setupCpu ( ) ; VdsExist ( ) ; canDoActionFailedWithReason ( EngineMessage.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION ) ; }

Target:
public void versionDecreaseWithHost ( ) { createCommandWithOlderVersion ( true , false ) ; setupCpu ( ) ; VdsExist ( ) ; canDoActionFailedWithReason ( EngineMessage.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION ) ; }
Source:
public static org.ovirt.engine.core.bll.tasks.SPMAsyncTask construct ( org.ovirt.engine.core.bll.tasks.interfaces.CommandCoordinator coco , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo creationInfo , org.ovirt.engine.core.common.businessentities.AsyncTask asyncTask ) { org.ovirt.engine.core.common.asynctasks.AsyncTaskParameters asyncTaskParams = new org.ovirt.engine.core.common.asynctasks.AsyncTaskParameters ( creationInfo , asyncTask ) ; return org.ovirt.engine.core.bll.tasks.AsyncTaskFactory.construct ( coco , creationInfo.getTaskType ( ) , asyncTaskParams , true ) ; }

Target:
public org.ovirt.engine.core.bll.tasks.SPMAsyncTask construct ( org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo creationInfo , org.ovirt.engine.core.common.businessentities.AsyncTask asyncTask ) { org.ovirt.engine.core.common.asynctasks.AsyncTaskParameters asyncTaskParams = new org.ovirt.engine.core.common.asynctasks.AsyncTaskParameters ( creationInfo , asyncTask ) ; return construct ( creationInfo.getTaskType ( ) , asyncTaskParams , true ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.ActionGroup lookupEntity ( org.ovirt.engine.core.compat.Guid guid ) { return actionGroup ; }

Target:
public org.ovirt.engine.core.common.businessentities.ActionGroup lookupEntity ( org.ovirt.engine.core.compat.Guid id ) { return actionGroup ; }
Source:
protected void fillImagesMapBasedOnTemplate ( ) { org.ovirt.engine.core.bll.ImagesHandler.fillImagesMapBasedOnTemplate ( vmDisksSource , getPoolDomains ( ) , diskInfoDestinationMap , destStorages , false ) ; }

Target:
protected void fillImagesMapBasedOnTemplate ( ) { org.ovirt.engine.core.bll.ImagesHandler.fillImagesMapBasedOnTemplate ( vmDisksSource , getPoolDomains ( ) , diskInfoDestinationMap , destStorages ) ; }
Source:
private void updateVolumeFormat ( org.ovirt.engine.core.common.businessentities.VolumeType volumeType , org.ovirt.engine.core.common.businessentities.StorageType storageType ) { setVolumeFormat ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getDiskVolumeFormat ( volumeType , storageType ) ) ; }

Target:
private void updateVolumeFormat ( org.ovirt.engine.core.common.businessentities.VolumeType volumeType , org.ovirt.engine.core.common.businessentities.StorageType storageType ) { setVolumeFormat ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . getDiskVolumeFormat ( volumeType , storageType ) ) ; }
Source:
protected void vdsNonOperational ( org.ovirt.engine.core.common.businessentities.VDS vds , org.ovirt.engine.core.common.businessentities.NonOperationalReason reason , java.util.Map < java.lang.String , java.lang.String > customLogValues ) { org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . getEventListener ( ) . vdsNonOperational ( vds.getId ( ) , reason , true , true , Guid.Empty , customLogValues ) ; }

Target:
protected void vdsNonOperational ( org.ovirt.engine.core.common.businessentities.VDS vds , org.ovirt.engine.core.common.businessentities.NonOperationalReason reason , java.util.Map < java.lang.String , java.lang.String > customLogValues ) { org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . getEventListener ( ) . vdsNonOperational ( vds.getId ( ) , reason , true , Guid.Empty , customLogValues ) ; }
Source:
public void validateFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.RemoveGlusterServerCommand ( new org.ovirt.engine.core.common.action.gluster.RemoveGlusterServerParameters ( org.ovirt.engine.core.bll.gluster.RemoveGlusterServerCommandTest.CLUSTER_ID , null , false ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.RemoveGlusterServerCommand ( new org.ovirt.engine.core.common.action.gluster.RemoveGlusterServerParameters ( org.ovirt.engine.core.bll.gluster.RemoveGlusterServerCommandTest.CLUSTER_ID , null , false ) , null ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
public void shutdown ( ) { this . pool.getConnectionManager ( ) . shutdown ( ) ; }

Target:
public void shutdown ( ) { this . pool.shutdown ( ) ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { model.stopProgress ( ) ; cancel ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { model.stopProgress ( ) ; if ( result.getReturnValue ( ) . getSucceeded ( ) ) { cancel ( ) ; } }
Source:
private static boolean glusterModeSupported ( ) { java.lang.Integer appMode = org.ovirt.engine.core.common.config.Config.< java.lang.Integer > GetValue ( ConfigValues.ApplicationMode ) ; return ( appMode & ( ApplicationMode.GlusterOnly.getValue ( ) ) ) > 0 ; }

Target:
private static boolean glusterModeSupported ( ) { java.lang.Integer appMode = org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.ApplicationMode ) ; return ( appMode & ( ApplicationMode.GlusterOnly.getValue ( ) ) ) > 0 ; }
Source:
public void currentUserDefault ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; final org.ovirt.engine.core.common.businessentities.aaa.DbUser u = b.getCurrentUser ( ) ; org.junit.Assert.assertNull ( u ) ; }

Target:
public void currentUserDefault ( ) { final org.ovirt.engine.core.common.businessentities.aaa.DbUser u = b.getCurrentUser ( ) ; org.junit.Assert.assertNull ( u ) ; }
Source:
public java.util.ArrayList < org.ovirt.engine.core.common.businessentities.NumaTuneMode > getNumaTuneModeList ( ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.NumaTuneMode > ( java.util.Arrays.asList ( new org.ovirt.engine.core.common.businessentities.NumaTuneMode [ ] { org.ovirt.engine.core.common.businessentities.NumaTuneMode.STRICT , org.ovirt.engine.core.common.businessentities.NumaTuneMode.PREFERRED , org.ovirt.engine.core.common.businessentities.NumaTuneMode.INTERLEAVE } ) ) ; }

Target:
public java.util.ArrayList < org.ovirt.engine.core.common.businessentities.NumaTuneMode > getNumaTuneModeList ( ) { return new java.util.ArrayList ( java.util.Arrays.asList ( new org.ovirt.engine.core.common.businessentities.NumaTuneMode [ ] { org.ovirt.engine.core.common.businessentities.NumaTuneMode.STRICT , org.ovirt.engine.core.common.businessentities.NumaTuneMode.PREFERRED , org.ovirt.engine.core.common.businessentities.NumaTuneMode.INTERLEAVE } ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source != null ) { return ( ( ( java.util.List < java.lang.String > ) ( source ) ) . size ( ) ) > 0 ; } return false ; }

Target:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source != null ) { return ! ( ( ( java.util.List < ? > ) ( source ) ) . isEmpty ( ) ) ; } return false ; }
Source:
private void mockDaos ( ) { mockDiskImageDao ( ) ; mockStorageDomainDao ( ) ; mockStoragePoolDao ( ) ; mockDynamicVmDao ( ) ; org.mockito.Mockito.doReturn ( snapshotDao ) . when ( spyCommand ) . getSnapshotDao ( ) ; }

Target:
private void mockDaos ( ) { mockDiskImageDao ( ) ; mockStorageDomainDao ( ) ; mockStoragePoolDao ( ) ; mockDynamicVmDao ( ) ; }