auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testStorageDomainForMemoryIsNotValidWhenItHasLowSpace ( ) { org.mockito.Mockito.when ( storageDomainValidator.isDomainWithinThresholds ( ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN ) ) ; org.junit.Assert.assertFalse ( filter.getPredicate ( memoryDisks ) . test ( storageDomain ) ) ; }

Target:
public void testStorageDomainForMemoryIsNotValidWhenItHasLowSpace ( ) { org.mockito.Mockito.when ( storageDomainValidator.isDomainWithinThresholds ( ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN ) ) ; org.junit.Assert.assertFalse ( filter.test ( storageDomain ) ) ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.provider.RemoveProviderCommand.getDbFacade ( ) . getProviderDao ( ) . remove ( org.ovirt.engine.core.bll.provider.RemoveProviderCommand.getParameters ( ) . getProvider ( ) . getId ( ) ) ; org.ovirt.engine.core.bll.provider.RemoveProviderCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { getProviderDao ( ) . remove ( org.ovirt.engine.core.bll.provider.RemoveProviderCommand.getParameters ( ) . getProvider ( ) . getId ( ) ) ; org.ovirt.engine.core.bll.provider.RemoveProviderCommand.setSucceeded ( true ) ; }
Source:
public org.ovirt.engine.api.model.StorageConnection update ( org.ovirt.engine.api.model.StorageConnection connection ) { validateEnums ( org.ovirt.engine.api.model.StorageConnection.class , connection ) ; return performUpdate ( connection , new org.ovirt.engine.api.restapi.resource.QueryIdResolver < java.lang.String > ( org.ovirt.engine.core.common.queries.VdcQueryType.GetStorageServerConnectionById , org.ovirt.engine.core.common.queries.StorageServerConnectionQueryParametersBase.class ) , VdcActionType.UpdateStorageServerConnection , new org.ovirt.engine.api.restapi.resource.BackendStorageServerConnectionResource.UpdateParametersProvider ( ) ) ; }

Target:
public org.ovirt.engine.api.model.StorageConnection update ( org.ovirt.engine.api.model.StorageConnection connection ) { validateEnums ( org.ovirt.engine.api.model.StorageConnection.class , connection ) ; return performUpdate ( connection , new org.ovirt.engine.api.restapi.resource.QueryIdResolver ( org.ovirt.engine.core.common.queries.VdcQueryType.GetStorageServerConnectionById , org.ovirt.engine.core.common.queries.StorageServerConnectionQueryParametersBase.class ) , VdcActionType.UpdateStorageServerConnection , new org.ovirt.engine.api.restapi.resource.BackendStorageServerConnectionResource.UpdateParametersProvider ( ) ) ; }
Source:
public java.lang.String getNetworkName ( ) { return org.ovirt.engine.core.bll.network.dc.NetworkCommon.getParameters ( ) . getNetwork ( ) . getname ( ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.Network getNetwork ( ) { return org.ovirt.engine.core.bll.network.dc.NetworkCommon.getParameters ( ) . getNetwork ( ) ; }
Source:
public void setNetwork ( org.ovirt.engine.ui.uicommonweb.models.ListModel < org.ovirt.engine.core.common.businessentities.network.NetworkView > network ) { this . network = network ; }

Target:
private void setNetwork ( org.ovirt.engine.ui.uicommonweb.models.ListModel < org.ovirt.engine.core.common.businessentities.network.NetworkView > network ) { this . network = network ; }
Source:
private void UpdateDomainInProblemData ( org.ovirt.engine.core.compat.Guid domainId , org.ovirt.engine.core.compat.Guid vdsId , java.lang.String vdsName ) { org.ovirt.engine.core.vdsbroker.irsbroker.IrsBrokerCommand.log.debugFormat ( "domain {0} still in problem. vds: {1}" , org.ovirt.engine.core.vdsbroker.irsbroker.IrsBrokerCommand.IrsProxyData.getDomainIdTuple ( domainId ) , vdsName ) ; _domainsInProblem.get ( domainId ) . add ( vdsId ) ; UpdateVdsInProblem ( domainId , vdsId ) ; }

Target:
private void UpdateDomainInProblemData ( org.ovirt.engine.core.compat.Guid domainId , org.ovirt.engine.core.compat.Guid vdsId , java.lang.String vdsName ) { org.ovirt.engine.core.vdsbroker.irsbroker.IrsBrokerCommand.log.debugFormat ( "domain {0} still in problem. vds: {1}" , org.ovirt.engine.core.vdsbroker.irsbroker.IrsBrokerCommand.IrsProxyData.getDomainIdTuple ( domainId ) , vdsName ) ; _domainsInProblem.get ( domainId ) . add ( vdsId ) ; }
Source:
public void testSetup ( ) { org.mockito.Mockito.when ( quotaDao.getById ( org.mockito.ArgumentMatchers.any ( ) ) ) . thenReturn ( mockGeneralStorageQuota ( ) ) ; command.init ( ) ; }

Target:
public void testSetup ( ) { command.init ( ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VmInit getVmInit ( ) { return vmInit ; }

Target:
public org.ovirt.engine.core.common.businessentities.VmInit getVmInit ( ) { if ( ( vmInit ) != null ) { vmInit.setId ( id ) ; } return vmInit ; }
Source:
protected void buildVmConsoleDevice ( ) { buildVmDevicesFromDb ( VmDeviceGeneralType.CONSOLE , false ) ; }

Target:
protected void buildVmConsoleDevice ( ) { buildVmDevicesFromDb ( VmDeviceGeneralType.CONSOLE , false , null ) ; }
Source:
private org.ovirt.engine.ui.webadmin.ApplicationResources getResources ( ) { return org.ovirt.engine.ui.webadmin.gin.ClientGinjectorProvider.instance ( ) . getApplicationResources ( ) ; }

Target:
private org.ovirt.engine.ui.webadmin.ApplicationResources getResources ( ) { return org.ovirt.engine.ui.webadmin.gin.ClientGinjectorProvider.getApplicationResources ( ) ; }
Source:
protected void HandleError ( ) { addCanDoActionMessage ( VdcBllMessages.VDS_FENCE_OPERATION_FAILED ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__HOST ) ; addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__RESTART ) ; org.ovirt.engine.core.bll.RestartVdsCommand.log.errorFormat ( "Failed to run RestartVdsCommand on vds :{0}" , org.ovirt.engine.core.bll.RestartVdsCommand.getVdsName ( ) ) ; }

Target:
protected void HandleError ( ) { addCanDoActionMessage ( VdcBllMessages.VDS_FENCE_OPERATION_FAILED ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__HOST ) ; addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__RESTART ) ; log.errorFormat ( "Failed to run RestartVdsCommand on vds :{0}" , org.ovirt.engine.core.bll.RestartVdsCommand.getVdsName ( ) ) ; }
Source:
public void interfaceBasedOnNullProposedVlan ( ) { org.junit.Assert.assertFalse ( org.ovirt.engine.core.utils.NetworkUtils.interfaceBasedOn ( null , org.ovirt.engine.core.utils.NetworkUtilsTest.IFACE_NAME ) ) ; }

Target:
public void interfaceBasedOnNullProposedVlan ( ) { org.junit.Assert.assertFalse ( org.ovirt.engine.core.utils.NetworkUtils.interfaceBasedOn ( ( ( java.lang.String ) ( null ) ) , org.ovirt.engine.core.utils.NetworkUtilsTest.IFACE_NAME ) ) ; }
Source:
public boolean isValid ( java.lang.Integer value , javax.validation.ConstraintValidatorContext context ) { return ( value == 0 ) || ( ( 68 <= value ) && ( value <= ( org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.MaxMTU ) ) ) ) ; }

Target:
public boolean isValid ( java.lang.Integer value , javax.validation.ConstraintValidatorContext context ) { return ( value == 0 ) || ( value >= 68 ) ; }
Source:
public static < T > org.ovirt.engine.ui.common.widget.editor.TakesValueWithChangeHandlersEditor < T > of ( com.google.gwt.user.client.TakesValue < T > peer , com.google.gwt.event.logical.shared.HasValueChangeHandlers < T > peerWithValueChangeHandlers ) { return new org.ovirt.engine.ui.common.widget.editor.TakesValueWithChangeHandlersEditor < T > ( peer , peerWithValueChangeHandlers ) ; }

Target:
public static < T > org.ovirt.engine.ui.common.widget.editor.TakesValueWithChangeHandlersEditor < T > of ( com.google.gwt.user.client.TakesValue < T > peer , com.google.gwt.event.logical.shared.HasValueChangeHandlers < T > peerWithValueChangeHandlers ) { return new org.ovirt.engine.ui.common.widget.editor.TakesValueWithChangeHandlersEditor ( peer , peerWithValueChangeHandlers ) ; }
Source:
private static boolean isVlan ( org.ovirt.engine.core.common.businessentities.Network net ) { return ( net.getvlan_id ( ) ) != null ; }

Target:
private static boolean isVlan ( org.ovirt.engine.core.common.businessentities.network.Network net ) { return ( net.getvlan_id ( ) ) != null ; }
Source:
protected void executeVmCommand ( ) { if ( GetRunningOnVds ( ) ) { Perform ( ) ; return ; } setActionReturnValue ( ( ( org.ovirt.engine.core.bll.VmOperationCommandBase.getVm ( ) ) != null ? org.ovirt.engine.core.bll.VmOperationCommandBase.getVm ( ) . getstatus ( ) : org.ovirt.engine.core.common.businessentities.VMStatus.Down ) ) ; }

Target:
protected void executeVmCommand ( ) { if ( GetRunningOnVds ( ) ) { Perform ( ) ; return ; } setActionReturnValue ( ( ( org.ovirt.engine.core.bll.VmOperationCommandBase.getVm ( ) ) != null ? org.ovirt.engine.core.bll.VmOperationCommandBase.getVm ( ) . getStatus ( ) : org.ovirt.engine.core.common.businessentities.VMStatus.Down ) ) ; }
Source:
public static void RunPublicQuery ( final org.ovirt.engine.core.common.queries.VdcQueryType queryType , final org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters , final org.ovirt.engine.ui.frontend.AsyncQuery callback ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runPublicQuery ( queryType , parameters , callback ) ; }

Target:
public void runQuery ( final org.ovirt.engine.core.common.queries.VdcQueryType queryType , final org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters , final org.ovirt.engine.ui.frontend.AsyncQuery callback ) { runQuery ( queryType , parameters , callback , false ) ; }
Source:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__ACTIVATE ) ; }

Target:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__ACTIVATE ) ; super . setActionMessageParameters ( ) ; }
Source:
public void setupMocks ( T cmd ) { setupMocks ( cmd , true ) ; }

Target:
public void setupMocks ( ) { setupMocks ( true ) ; }
Source:
protected java.util.Set < java.lang.String > removeVmSnapshots ( ) { return new org.ovirt.engine.core.bll.snapshots.SnapshotsManager ( ) . removeSnapshots ( org.ovirt.engine.core.bll.VmCommand.getVmId ( ) ) ; }

Target:
protected void removeVmSnapshots ( ) { new org.ovirt.engine.core.bll.snapshots.SnapshotsManager ( ) . removeSnapshots ( org.ovirt.engine.core.bll.VmCommand.getVmId ( ) ) ; }
Source:
protected org.ovirt.engine.core.compat.Version getClusterVersion ( ) { return org.ovirt.engine.core.bll.network.cluster.UpdateNetworkOnClusterCommand.getVdsGroupDAO ( ) . get ( org.ovirt.engine.core.bll.network.cluster.UpdateNetworkOnClusterCommand.getNetworkCluster ( ) . getClusterId ( ) ) . getCompatibilityVersion ( ) ; }

Target:
private org.ovirt.engine.core.compat.Version getClusterVersion ( ) { return org.ovirt.engine.core.bll.network.cluster.UpdateNetworkOnClusterCommand.getVdsGroupDAO ( ) . get ( org.ovirt.engine.core.bll.network.cluster.UpdateNetworkOnClusterCommand.getNetworkCluster ( ) . getClusterId ( ) ) . getCompatibilityVersion ( ) ; }
Source:
private void updateProperties ( ) { org.ovirt.engine.core.common.businessentities.aaa.DbUser user = ( ( org.ovirt.engine.core.common.businessentities.aaa.DbUser ) ( getEntity ( ) ) ) ; setDomain ( user.getDomain ( ) ) ; setEmail ( user.getEmail ( ) ) ; setActive ( user.isActive ( ) ) ; }

Target:
private void updateProperties ( ) { org.ovirt.engine.core.common.businessentities.aaa.DbUser user = ( ( org.ovirt.engine.core.common.businessentities.aaa.DbUser ) ( getEntity ( ) ) ) ; setDomain ( user.getDomain ( ) ) ; setEmail ( user.getEmail ( ) ) ; }
Source:
public boolean Validate ( ) { getHostList ( ) . setIsValid ( ( ( getHostList ( ) . getSelectedItem ( ) ) != null ) ) ; return getHostList ( ) . getIsValid ( ) ; }

Target:
public boolean validate ( ) { getHostList ( ) . setIsValid ( ( ( getHostList ( ) . getSelectedItem ( ) ) != null ) ) ; return getHostList ( ) . getIsValid ( ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.StorageServerConnections createStorageConnection ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections conn = new org.ovirt.engine.core.common.businessentities.StorageServerConnections ( ) ; conn.setid ( org.ovirt.engine.core.compat.Guid.newGuid ( ) . toString ( ) ) ; return conn ; }

Target:
private org.ovirt.engine.core.common.businessentities.StorageServerConnections createStorageConnection ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections conn = new org.ovirt.engine.core.common.businessentities.StorageServerConnections ( ) ; conn.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) . toString ( ) ) ; return conn ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.Network n ) { return n.getId ( ) . equals ( getNetwork ( ) . getId ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.Network network ) { return network.getId ( ) . equals ( getNetwork ( ) . getId ( ) ) ; }
Source:
private void verifyDataCenterNetworks ( java.util.List < org.ovirt.engine.core.common.businessentities.Network > result ) { org.ovirt.engine.core.dao.NetworkDAOTest.assertGetAllForClusterResult ( result ) ; for ( org.ovirt.engine.core.common.businessentities.Network net : result ) { org.junit.Assert.assertEquals ( datacenter , net.getstorage_pool_id ( ) ) ; } }

Target:
private void verifyDataCenterNetworks ( java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > result ) { org.ovirt.engine.core.dao.NetworkDAOTest.assertGetAllForClusterResult ( result ) ; for ( org.ovirt.engine.core.common.businessentities.network.Network net : result ) { org.junit.Assert.assertEquals ( datacenter , net.getstorage_pool_id ( ) ) ; } }
Source:
public void passthroughProfileContainsPortMirroring ( ) { passthroughProfileContainsSupportedPropertiesTest ( true , true , null , null ) ; org.junit.Assert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( false ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_PASSTHROUGH_PROFILE_CONTAINS_NOT_SUPPORTED_PROPERTIES ) ) ; }

Target:
public void passthroughProfileContainsPortMirroring ( ) { passthroughProfileContainsSupportedPropertiesTest ( true , true , null , null ) ; org.junit.Assert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_PASSTHROUGH_PROFILE_CONTAINS_NOT_SUPPORTED_PROPERTIES ) ) ; }
Source:
private static java.lang.String getResourceBundleName ( ) { return "bundles/AuditLogMessages" ; }

Target:
static java.lang.String getResourceBundleName ( ) { return "bundles/AuditLogMessages" ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml volumeBrickStatusTemplate ( com.google.gwt.safehtml.shared.SafeHtml upImage , int upCount , com.google.gwt.safehtml.shared.SafeHtml downImage , int downCount ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml volumeBrickStatusTemplate ( com.google.gwt.safehtml.shared.SafeHtml upImage , int upCount , com.google.gwt.safehtml.shared.SafeHtml downImage , int downCount , java.lang.String id ) ;
Source:
public org.ovirt.engine.ui.uicommonweb.models.ListModel getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel network ) { return ( ( org.ovirt.engine.ui.uicommonweb.models.providers.ExternalNetwork ) ( network ) ) . getDataCenters ( ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.ListModel < org.ovirt.engine.core.common.businessentities.StoragePool > getValue ( org.ovirt.engine.ui.uicommonweb.models.providers.ExternalNetwork network ) { return network.getDataCenters ( ) ; }
Source:
public org.ovirt.engine.api.model.StorageDomains list ( ) { if ( isFiltered ( ) ) return mapCollection ( getBackendCollection ( VdcQueryType.GetAllStorageDomains , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ) ; else return mapCollection ( getBackendCollection ( SearchType.StorageDomain ) ) ; }

Target:
public org.ovirt.engine.api.model.StorageDomains list ( ) { if ( isFiltered ( ) ) return mapCollection ( getBackendCollection ( VdcQueryType.GetAllStorageDomains , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , SearchType.StorageDomain ) ) ; else return mapCollection ( getBackendCollection ( SearchType.StorageDomain ) ) ; }
Source:
private org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator createHostSetupNetworksValidator ( java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > networks , java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > existingInterfaces ) { return new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator ( host , new org.ovirt.engine.core.common.action.HostSetupNetworksParameters ( host.getId ( ) ) , existingInterfaces , null , new org.ovirt.engine.core.common.businessentities.BusinessEntityMap ( networks ) , managementNetworkUtil ) ; }

Target:
private org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator createHostSetupNetworksValidator ( java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > networks ) { return createHostSetupNetworksValidator ( networks , new org.ovirt.engine.core.common.action.HostSetupNetworksParameters ( host.getId ( ) ) ) ; }
Source:
private int getNumOfVfs ( final java.lang.String nicName , org.ovirt.engine.core.common.businessentities.HostDevice pciDevice , java.util.List < org.ovirt.engine.core.common.businessentities.HostDevice > deviceList ) { java.util.List < org.ovirt.engine.core.common.businessentities.HostDevice > vfs = getVfs ( pciDevice , deviceList ) ; return vfs.size ( ) ; }

Target:
private int getNumOfVfs ( org.ovirt.engine.core.common.businessentities.HostDevice pciDevice , java.util.List < org.ovirt.engine.core.common.businessentities.HostDevice > deviceList ) { java.util.List < org.ovirt.engine.core.common.businessentities.HostDevice > vfs = getVfs ( pciDevice , deviceList ) ; return vfs.size ( ) ; }
Source:
public void testSave ( ) { dao.save ( new_bookmark ) ; org.ovirt.engine.core.common.businessentities.Bookmark result = dao.getByName ( new_bookmark.getbookmark_name ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; }

Target:
public void testSave ( ) { dao.save ( new_bookmark ) ; org.ovirt.engine.core.common.businessentities.Bookmark result = dao.getByName ( new_bookmark.getName ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; }
Source:
public org.ovirt.engine.api.v3.types.V3VM get ( ) { return org.ovirt.engine.api.v3.helpers.V3VmHelper.addDisksLink ( adaptGet ( getDelegate ( ) :: get ) ) ; }

Target:
public org.ovirt.engine.api.v3.types.V3VM get ( ) { org.ovirt.engine.api.v3.types.V3VM vm = adaptGet ( getDelegate ( ) :: get ) ; org.ovirt.engine.api.v3.helpers.V3VmHelper.addDisksLink ( vm ) ; return vm ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageServerConnections > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageServerConnections > ( ) ; }

Target:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; }
Source:
public boolean canSelectProtocol ( org.ovirt.engine.ui.uicommonweb.models.ConsoleProtocol protocol ) { return consoleModels.get ( protocol ) . canBeSelected ( ) ; }

Target:
public boolean canSelectProtocol ( org.ovirt.engine.ui.uicommonweb.models.ConsoleProtocol protocol ) { return protocol == null ? false : consoleModels.get ( protocol ) . canBeSelected ( ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.storage.ImageTransfer updateEntity ( org.ovirt.engine.core.common.businessentities.storage.ImageTransferUpdates updates , boolean clearResourceId ) { return imageTransferUpdater.updateEntity ( updates , org.ovirt.engine.core.bll.storage.disk.image.UploadImageCommand.getCommandId ( ) , clearResourceId ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.storage.ImageTransfer updateEntity ( org.ovirt.engine.core.common.businessentities.storage.ImageTransfer updates , boolean clearResourceId ) { return imageTransferUpdater.updateEntity ( updates , org.ovirt.engine.core.bll.storage.disk.image.UploadImageCommand.getCommandId ( ) , clearResourceId ) ; }
Source:
public java.lang.String getVmPoolName ( ) { return ( getVmPool ( ) ) != null ? getVmPool ( ) . getName ( ) : null ; }

Target:
protected java.lang.String getVmPoolName ( ) { return ( getVmPool ( ) ) != null ? getVmPool ( ) . getName ( ) : null ; }
Source:
public static < T > org.ovirt.engine.core.utils.MockConfigRule.MockConfigDescriptor < T > mockConfig ( org.ovirt.engine.core.common.config.ConfigValues value , java.lang.String version , T returnValue ) { return new org.ovirt.engine.core.utils.MockConfigRule.MockConfigDescriptor < T > ( value , version , returnValue ) ; }

Target:
public static < T > org.ovirt.engine.core.utils.MockConfigRule.MockConfigDescriptor < T > mockConfig ( org.ovirt.engine.core.common.config.ConfigValues value , java.lang.String version , T returnValue ) { return new org.ovirt.engine.core.utils.MockConfigRule.MockConfigDescriptor ( value , version , returnValue ) ; }
Source:
public void insufficientDiskSpace ( ) { setupVolumeFormatAndTypeTest ( VolumeFormat.RAW , VolumeType.Preallocated , StorageType.NFS ) ; org.mockito.Mockito.doReturn ( false ) . when ( command ) . validateSpaceRequirements ( org.mockito.ArgumentMatchers.anyList ( ) ) ; org.junit.Assert.assertFalse ( command.validate ( ) ) ; }

Target:
public void insufficientDiskSpace ( ) { setupVolumeFormatAndTypeTest ( VolumeFormat.RAW , VolumeType.Preallocated , StorageType.NFS ) ; org.mockito.Mockito.doReturn ( false ) . when ( command ) . validateSpaceRequirements ( org.mockito.ArgumentMatchers.any ( ) ) ; org.junit.Assert.assertFalse ( command.validate ( ) ) ; }
Source:
public java.lang.String getIpv6Gateway ( ) { return networkAttachmentModel.getIpv6Gateway ( ) . getEntity ( ) ; }

Target:
public java.lang.String getIpv6Gateway ( ) { return ( networkAttachmentModel.getIpv6Gateway ( ) ) != null ? networkAttachmentModel.getIpv6Gateway ( ) . getEntity ( ) : null ; }
Source:
protected void init ( ) { fetchStorageDomainInfo ( ) ; setVdsId ( org.ovirt.engine.core.bll.storage.domain.ImportHostedEngineStorageDomainCommand.getParameters ( ) . getVdsId ( ) ) ; }

Target:
protected void init ( ) { setVdsId ( org.ovirt.engine.core.bll.storage.domain.ImportHostedEngineStorageDomainCommand.getParameters ( ) . getVdsId ( ) ) ; fetchStorageDomainInfo ( ) ; }
Source:
public java.lang.String renderNullSafe ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.compat.Version ) ( object ) ) . getValue ( ) ; }

Target:
public java.lang.String renderNullSafe ( org.ovirt.engine.core.compat.Version object ) { return object.getValue ( ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network network ) { return network.getname ( ) . equals ( getParameters ( ) . getInterface ( ) . getNetworkName ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.Network network ) { return network.getname ( ) . equals ( getParameters ( ) . getInterface ( ) . getNetworkName ( ) ) ; }
Source:
public static java.lang.String getSpiceBaseURL ( ) { return ( ( org.ovirt.engine.ui.frontend.utils.FrontendUrlUtils.getRootURL ( ) ) + ( org.ovirt.engine.ui.frontend.utils.BaseContextPathData.getInstance ( ) . getRelativePath ( ) ) ) + "services/files/spice/" ; }

Target:
public static java.lang.String getSpiceBaseURL ( ) { return ( ( org.ovirt.engine.ui.frontend.utils.FrontendUrlUtils.getRootURL ( ) ) + ( org.ovirt.engine.ui.frontend.utils.BaseContextPathData.getRelativePath ( ) ) ) + "services/files/spice/" ; }
Source:
public void testSetup ( ) { org.mockito.Mockito.when ( quotaDao.getById ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( mockGeneralStorageQuota ( ) ) ; }

Target:
public void testSetup ( ) { org.mockito.Mockito.when ( quotaDao.getById ( org.mockito.ArgumentMatchers.any ( ) ) ) . thenReturn ( mockGeneralStorageQuota ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.action.ProfileParametersBase < org.ovirt.engine.core.common.businessentities.profiles.CpuProfile > getParameters ( ) { org.ovirt.engine.core.common.action.CpuProfileParameters cpuProfileParameters = new org.ovirt.engine.core.common.action.CpuProfileParameters ( getProfile ( ) , getProfile ( ) . getId ( ) ) ; cpuProfileParameters.setAddPermissions ( true ) ; return cpuProfileParameters ; }

Target:
protected org.ovirt.engine.core.common.action.ProfileParametersBase < org.ovirt.engine.core.common.businessentities.profiles.CpuProfile > getParameters ( ) { org.ovirt.engine.core.common.action.CpuProfileParameters cpuProfileParameters = new org.ovirt.engine.core.common.action.CpuProfileParameters ( getProfile ( ) ) ; cpuProfileParameters.setAddPermissions ( true ) ; return cpuProfileParameters ; }
Source:
public void testBadGuid ( ) throws java.lang.Exception { control.replay ( ) ; try { new org.ovirt.engine.api.restapi.resource.BackendPermissionResource ( "foo" , null , null , null ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testBadGuid ( ) throws java.lang.Exception { try { new org.ovirt.engine.api.restapi.resource.BackendPermissionResource ( "foo" , null , null , null ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }
Source:
public void testList ( ) throws java.lang.Exception { javax.ws.rs.core.UriInfo uriInfo = setUpUriExpectations ( null ) ; setGetTemplateQueryExpectations ( 1 ) ; setGetNetworksQueryExpectations ( 1 ) ; setUpQueryExpectations ( "" ) ; collection.setUriInfo ( uriInfo ) ; verifyCollection ( getCollection ( ) ) ; }

Target:
public void testList ( ) throws java.lang.Exception { javax.ws.rs.core.UriInfo uriInfo = setUpUriExpectations ( null ) ; setUpQueryExpectations ( "" ) ; collection.setUriInfo ( uriInfo ) ; verifyCollection ( getCollection ( ) ) ; }
Source:
void write ( java.nio.ByteBuffer buff ) throws java.io.IOException { if ( ( nioEngine ) != null ) { nioEngine.write ( buff ) ; } else { channel.write ( buff ) ; } }

Target:
void write ( java.nio.ByteBuffer buff ) throws java.io.IOException { if ( ( this . nioEngine ) != null ) { this . nioEngine.write ( buff ) ; } else { channel.write ( buff ) ; } }
Source:
public static void addSmartcardDevice ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.addManagedDevice ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , vmId ) , VmDeviceGeneralType.SMARTCARD , VmDeviceType.SMARTCARD , new org.ovirt.engine.core.bll.smartcard.SmartcardSpecParams ( ) , true , false , null ) ; }

Target:
public static void addSmartcardDevice ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.addManagedDevice ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , vmId ) , VmDeviceGeneralType.SMARTCARD , VmDeviceType.SMARTCARD , new org.ovirt.engine.core.bll.smartcard.SmartcardSpecParams ( ) , true , false , null , false ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? new java.util.ArrayList < java.lang.String > ( ( ( java.util.ArrayList < java.lang.String > ) ( source ) ) ) : new java.util.ArrayList < java.lang.String > ( ) ; }

Target:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.HashMap < java.lang.String , java.util.List < java.lang.String > > ) ( source ) ) : new java.util.HashMap < java.lang.String , java.util.List < java.lang.String > > ( ) ; }
Source:
public void compareWhenSizesAreNotEqual ( ) { attachVmDisksToStorageDomain ( storageDomain1 , vmDisk1 , vmDisk2 ) ; attachVmDisksToStorageDomain ( storageDomain2 , vmDisk3 ) ; initComparator ( vmDisk1 , vmDisk2 , vmDisk3 ) ; assertBiggerThan ( storageDomain1 , storageDomain2 ) ; assertSmallerThan ( storageDomain2 , storageDomain1 ) ; }

Target:
public void compareWhenSizesAreNotEqual ( ) { attachVmDisksToStorageDomain ( storageDomain1 , vmDisk1 ) ; attachVmDisksToStorageDomain ( storageDomain2 , vmDisk2 , vmDisk3 ) ; initComparator ( vmDisk1 , vmDisk2 , vmDisk3 ) ; assertBiggerThan ( storageDomain1 , storageDomain2 ) ; assertSmallerThan ( storageDomain2 , storageDomain1 ) ; }
Source:
protected void updateActiveSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId ) { org.ovirt.engine.core.bll.ImportVmCommand.getSnapshotDao ( ) . update ( new org.ovirt.engine.core.common.businessentities.Snapshot ( snapshotId , org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotStatus.OK , getVm ( ) . getId ( ) , null , org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotType.ACTIVE , "Active VM snapshot" , new java.util.Date ( ) , null ) ) ; }

Target:
protected void updateActiveSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId ) { org.ovirt.engine.core.bll.ImportVmCommand.getSnapshotDao ( ) . update ( new org.ovirt.engine.core.common.businessentities.Snapshot ( snapshotId , org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotStatus.OK , org.ovirt.engine.core.bll.ImportVmCommand.getVm ( ) . getId ( ) , null , org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotType.ACTIVE , "Active VM snapshot" , new java.util.Date ( ) , null ) ) ; }
Source:
public void setWidth ( java.lang.String width , boolean isFixedLayout ) { table.setWidth ( "100%" , isFixedLayout ) ; tableHeader.setWidth ( "100%" , isFixedLayout ) ; }

Target:
public void setWidth ( java.lang.String width , boolean isFixedLayout ) { table.setWidth ( width , isFixedLayout ) ; tableHeader.setWidth ( width , isFixedLayout ) ; }
Source:
public void setEntity ( org.ovirt.engine.core.common.businessentities.StoragePool value ) { privateEntity = value ; initSelectedMacPool ( ) ; }

Target:
public void setEntity ( org.ovirt.engine.core.common.businessentities.StoragePool value ) { privateEntity = value ; }
Source:
public void cancel ( ) { resetData ( ) ; setWindow ( null ) ; org.ovirt.engine.ui.frontend.Frontend.Unsubscribe ( ) ; }

Target:
public void cancel ( ) { setWindow ( null ) ; org.ovirt.engine.ui.frontend.Frontend.Unsubscribe ( ) ; }
Source:
protected void executeCommand ( ) { getProviderDao ( ) . update ( getProvider ( ) ) ; org.ovirt.engine.core.bll.provider.UpdateProviderCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.provider.UpdateProviderCommand.getProviderDao ( ) . update ( getProvider ( ) ) ; org.ovirt.engine.core.bll.provider.UpdateProviderCommand.setSucceeded ( true ) ; }
Source:
protected void addCanDoActionMessage ( org.ovirt.engine.core.common.errors.VdcBllMessages message ) { getReturnValue ( ) . getCanDoActionMessages ( ) . add ( message.name ( ) ) ; }

Target:
protected void addCanDoActionMessage ( org.ovirt.engine.core.common.errors.VdcBllMessages message ) { addCanDoActionMessage ( message.name ( ) ) ; }
Source:
public void assertProgress ( java.lang.Integer expectedProgress , org.ovirt.engine.core.common.businessentities.storage.BaseDisk disk ) { org.junit.Assert.assertEquals ( "disk progress isn't as expected" , expectedProgress , disk.getProgress ( ) ) ; }

Target:
private void assertProgress ( java.lang.Integer expectedProgress , org.ovirt.engine.core.common.businessentities.storage.BaseDisk disk ) { org.junit.Assert.assertEquals ( "disk progress isn't as expected" , expectedProgress , disk.getProgress ( ) ) ; }
Source:
private org.ovirt.engine.core.dao.network.NetworkDao getNetworkDAO ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getNetworkDao ( ) ; }

Target:
private org.ovirt.engine.core.dao.network.NetworkDao getNetworkDao ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getNetworkDao ( ) ; }
Source:
public void importVms ( org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback callback ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runMultipleAction ( VdcActionType.ImportVmFromExternalProvider , buildImportVmFromExternalProviderParameters ( ) , callback ) ; }

Target:
public void importVms ( org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback callback ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runMultipleAction ( VdcActionType.ImportVmFromExternalProvider , buildImportVmFromExternalProviderParameters ( ) , true , callback , null ) ; }
Source:
public void setExplanation ( com.google.gwt.safehtml.shared.SafeHtml text ) { infoIcon.setTitle ( text.asString ( ) ) ; }

Target:
public void setExplanation ( java.lang.String text ) { infoIcon.setTitle ( text ) ; }
Source:
public static java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > getStoragePools ( org.ovirt.engine.core.compat.Guid storageDomainId , org.ovirt.engine.api.restapi.resource.AbstractBackendResource parent ) { return ( ( java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > ) ( parent.getEntity ( java.util.List.class , VdcQueryType.GetStoragePoolsByStorageDomainId , new org.ovirt.engine.core.common.queries.StorageDomainQueryParametersBase ( storageDomainId ) , "Datacenters" , true ) ) ) ; }

Target:
public static java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > getStoragePools ( org.ovirt.engine.core.compat.Guid storageDomainId , org.ovirt.engine.api.restapi.resource.AbstractBackendResource parent ) { return parent.getEntity ( java.util.List.class , VdcQueryType.GetStoragePoolsByStorageDomainId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( storageDomainId ) , "Datacenters" , true ) ; }
Source:
public void updateHotPlugDisk ( org.ovirt.engine.core.common.businessentities.VmDevice vmDevice ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource paramsForUpdate = createParameterSourceForUpdate ( vmDevice ) . addValue ( "boot_order" , vmDevice.getBootOrder ( ) ) . addValue ( "is_plugged" , vmDevice.getIsPlugged ( ) ) ; getCallsHandler ( ) . executeModification ( "UpdateVmDeviceForHotPlugDisk" , paramsForUpdate ) ; }

Target:
public void updateHotPlugDisk ( org.ovirt.engine.core.common.businessentities.VmDevice vmDevice ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource paramsForUpdate = createParameterSourceForUpdate ( vmDevice ) . addValue ( "is_plugged" , vmDevice.getIsPlugged ( ) ) ; getCallsHandler ( ) . executeModification ( "UpdateVmDeviceForHotPlugDisk" , paramsForUpdate ) ; }
Source:
public static java.util.List < java.lang.String > initRange ( java.lang.String start , java.lang.String end ) { return org.ovirt.engine.core.utils.MacAddressRangeUtils.innerInitRange ( start , end , false ) ; }

Target:
public static java.util.List < java.lang.String > initRange ( java.lang.String start , java.lang.String end , int size ) { return org.ovirt.engine.core.utils.MacAddressRangeUtils.innerInitRange ( start , end , size ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.LUNListReturnForXmlRpc getDeviceList ( int storageType , org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct options ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.LUNListReturnForXmlRpc getDeviceList ( int storageType ) ;
Source:
public org.ovirt.engine.core.dal.dbbroker.MapSqlParameterMapper < T > getBatchMapper ( ) { return new org.ovirt.engine.core.dal.dbbroker.MapSqlParameterMapper < T > ( ) { @ java.lang.Override public org.springframework.jdbc.core.namedparam.MapSqlParameterSource map ( T entity ) { return createFullParametersMapper ( entity ) ; } } ; }

Target:
public org.ovirt.engine.core.dal.dbbroker.MapSqlParameterMapper < T > getBatchMapper ( ) { return this :: createFullParametersMapper ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledLegacyPolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; usb.setType ( UsbType.LEGACY ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE ) , UsbPolicy.ENABLED_LEGACY ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledLegacyPolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; usb.setType ( UsbType.LEGACY ) ; assertEquals ( UsbPolicy.ENABLED_LEGACY , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE ) ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.storage.RegisterEntityModel flush ( ) { return super . flush ( ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.storage.RegisterEntityModel < org.ovirt.engine.core.common.businessentities.VmTemplate > flush ( ) { return super . flush ( ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase runInTransaction ( ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( VdcActionType.RemoveVds , new org.ovirt.engine.core.common.action.RemoveVdsParameters ( oVirtId ) ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase runInTransaction ( ) { return runInternalAction ( VdcActionType.RemoveVds , new org.ovirt.engine.core.common.action.RemoveVdsParameters ( oVirtId ) ) ; }
Source:
private static void updateBootOrder ( org.ovirt.engine.core.common.businessentities.VmBase oldVmBase , org.ovirt.engine.core.common.businessentities.VmBase newVmBase ) { if ( ( oldVmBase.getDefaultBootSequence ( ) ) != ( newVmBase.getDefaultBootSequence ( ) ) ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.updateBootOrder ( newVmBase.getId ( ) ) ; } }

Target:
private void updateBootOrder ( org.ovirt.engine.core.common.businessentities.VmBase oldVmBase , org.ovirt.engine.core.common.businessentities.VmBase newVmBase ) { if ( ( oldVmBase.getDefaultBootSequence ( ) ) != ( newVmBase.getDefaultBootSequence ( ) ) ) { updateBootOrder ( newVmBase.getId ( ) ) ; } }
Source:
protected org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity getEntity ( int index ) { return setUpEntityExpectations ( control.createMock ( org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity.class ) , index ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity getEntity ( int index ) { return setUpEntityExpectations ( control.createMock ( org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity.class ) , index , false ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.StoragePool object ) { return object.getname ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.StoragePool object ) { return object.getName ( ) ; }
Source:
protected void initLinked ( ) { if ( hotUpdateSupported ) { getLinked ( ) . setEntity ( true ) ; } else { getLinked ( ) . setEntity ( true ) ; getLinked ( ) . setIsAvailable ( false ) ; } }

Target:
protected void initLinked ( ) { getLinked ( ) . setEntity ( true ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.storage_pool getStoragePool ( org.ovirt.engine.core.compat.Guid id ) { org.ovirt.engine.core.common.businessentities.storage_pool pool = new org.ovirt.engine.core.common.businessentities.storage_pool ( ) ; pool.setId ( id ) ; return pool ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StoragePool getStoragePool ( org.ovirt.engine.core.compat.Guid id ) { org.ovirt.engine.core.common.businessentities.StoragePool pool = new org.ovirt.engine.core.common.businessentities.StoragePool ( ) ; pool.setId ( id ) ; return pool ; }
Source:
protected org.ovirt.engine.ui.uicommonweb.models.ListModel < java.lang.String > createGhostValue ( ) { org.ovirt.engine.ui.uicommonweb.models.ListModel < java.lang.String > value = new org.ovirt.engine.ui.uicommonweb.models.ListModel < java.lang.String > ( ) ; value.setItems ( suggestions ) ; value.setSelectedItem ( "" ) ; return value ; }

Target:
protected org.ovirt.engine.ui.uicommonweb.models.ListModel < java.lang.String > createGhostValue ( ) { org.ovirt.engine.ui.uicommonweb.models.ListModel < java.lang.String > value = new org.ovirt.engine.ui.uicommonweb.models.ListModel ( ) ; value.setItems ( suggestions ) ; value.setSelectedItem ( "" ) ; return value ; }
Source:
public void setSmartcardEnabled ( boolean isSmartcardEnabled ) { mVmStatic.setSmartcardEnabled ( isSmartcardEnabled ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "smartcardEnabled" ) ) ; }

Target:
public void setSmartcardEnabled ( boolean isSmartcardEnabled ) { mVmStatic.setSmartcardEnabled ( isSmartcardEnabled ) ; }
Source:
public java.lang.String getGlusterHookContent ( org.ovirt.engine.core.compat.Guid hookId ) { java.lang.String content = getCallsHandler ( ) . executeRead ( "GetGlusterHookContentById" , org.ovirt.engine.core.dao.gluster.GlusterHooksDaoImpl.GlusterHookContentRowMapper , createIdParameterMapper ( hookId ) ) ; return content ; }

Target:
public java.lang.String getGlusterHookContent ( org.ovirt.engine.core.compat.Guid hookId ) { return getCallsHandler ( ) . executeRead ( "GetGlusterHookContentById" , org.ovirt.engine.core.dao.gluster.GlusterHooksDaoImpl.GlusterHookContentRowMapper , createIdParameterMapper ( hookId ) ) ; }
Source:
public void registerProfile ( org.ovirt.engine.core.aaa.AuthenticationProfile profile ) { registerProfile ( profiles , profile ) ; }

Target:
public void registerProfile ( org.ovirt.engine.core.aaa.AuthenticationProfile profile ) { profiles.put ( profile.getName ( ) , profile ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VmTemplateStatus getRawValue ( org.ovirt.engine.core.common.businessentities.VmTemplate object ) { return object.getstatus ( ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VmTemplateStatus getRawValue ( org.ovirt.engine.core.common.businessentities.VmTemplate object ) { return object.getStatus ( ) ; }
Source:
public static org.ovirt.engine.api.extensions.ExtMap fetchPrincipalRecord ( final org.ovirt.engine.core.extensions.mgr.ExtensionProxy extension , org.ovirt.engine.api.extensions.ExtMap authRecord ) { return org.ovirt.engine.core.aaa.AuthzUtils.fetchPrincipalRecordImpl ( extension , Authn.InvokeKeys.AUTH_RECORD , authRecord ) ; }

Target:
public static org.ovirt.engine.api.extensions.ExtMap fetchPrincipalRecord ( final org.ovirt.engine.core.extensions.mgr.ExtensionProxy extension , org.ovirt.engine.api.extensions.ExtMap authRecord ) { return org.ovirt.engine.core.aaa.AuthzUtils.fetchPrincipalRecordImpl ( extension , Authn.InvokeKeys.AUTH_RECORD , authRecord , true , true ) ; }
Source:
public void testGetClusterByClusterPolicyIdNegative ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > result = dao.getClustersByClusterPolicyId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertEquals ( result.size ( ) , 0 ) ; }

Target:
public void testGetClusterByClusterPolicyIdNegative ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > result = dao.getClustersByClusterPolicyId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertEquals ( 0 , result.size ( ) ) ; }
Source:
public void testOnlyLoginNameWhenNoDirectorySet ( ) { org.ovirt.engine.core.common.businessentities.aaa.DbUser user = new org.ovirt.engine.core.common.businessentities.aaa.DbUser ( ) ; user.setLoginName ( "Legolas" ) ; user.setDomain ( "" ) ; command.setCurrentUser ( user ) ; org.junit.Assert.assertEquals ( command.getConsoleUserName ( ) , "Legolas" ) ; }

Target:
public void testOnlyLoginNameWhenNoDirectorySet ( ) { org.ovirt.engine.core.common.businessentities.aaa.DbUser user = new org.ovirt.engine.core.common.businessentities.aaa.DbUser ( ) ; user.setLoginName ( "Legolas" ) ; user.setDomain ( "" ) ; command.setCurrentUser ( user ) ; org.junit.Assert.assertEquals ( "Legolas" , command.getConsoleUserName ( ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { nicHotplugSupportMap = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; }

Target:
public void onSuccess ( java.lang.Object returnValue ) { nicHotplugSupportMap = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; }
Source:
private void mockVMTemplateDao ( ) { org.mockito.Mockito.doReturn ( vmTemplateDao ) . when ( command ) . getVmTemplateDao ( ) ; org.mockito.Mockito.when ( vmTemplateDao.get ( vmTemplateId ) ) . thenReturn ( vmTemplate ) ; }

Target:
private void mockVMTemplateDao ( ) { org.mockito.Mockito.when ( vmTemplateDao.get ( vmTemplateId ) ) . thenReturn ( vmTemplate ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.OriginType getRawValue ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData object ) { return ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData ) ( object ) ) . getVm ( ) . getOrigin ( ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.OriginType getRawValue ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData object ) { return object.getVm ( ) . getOrigin ( ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.storage_domains a ) { return ( ( a.getstorage_domain_type ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainType.Master ) ) && ( ( a.getstatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Active ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.StorageDomain a ) { return ( ( a.getstorage_domain_type ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainType.Master ) ) && ( ( a.getstatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Active ) ) ; }
Source:
public void vdsNonOperational ( org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.common.businessentities.NonOperationalReason reason , boolean logCommand , boolean saveToDb , org.ovirt.engine.core.compat.Guid domainId ) { vdsNonOperational ( vdsId , reason , logCommand , saveToDb , domainId , null ) ; }

Target:
public void vdsNonOperational ( org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.common.businessentities.NonOperationalReason reason , boolean logCommand , org.ovirt.engine.core.compat.Guid domainId ) { vdsNonOperational ( vdsId , reason , logCommand , domainId , null ) ; }
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.Network x , org.ovirt.engine.core.common.businessentities.network.Network y ) { return x.getname ( ) . compareTo ( y.getname ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.BaseDisk generateNewEntity ( ) { return new org.ovirt.engine.core.common.businessentities.BaseDisk ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) , org.ovirt.engine.core.common.businessentities.DiskInterface.SCSI , true , org.ovirt.engine.core.common.businessentities.PropagateErrors.Off , "DiskName" , "" , false , false , true ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.BaseDisk generateNewEntity ( ) { return new org.ovirt.engine.core.common.businessentities.BaseDisk ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) , org.ovirt.engine.core.common.businessentities.DiskInterface.SCSI , true , org.ovirt.engine.core.common.businessentities.PropagateErrors.Off , "DiskName" , "" , false , false ) ; }