auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void prepareNetworkClusterExpects ( ) { org.mockito.Mockito.when ( networkCluster.getClusterId ( ) ) . thenReturn ( org.ovirt.engine.core.bll.network.cluster.TEST_CLUSTER_ID ) ; }

Target:
public void setUp ( ) { oldNetworkCluster = new org.ovirt.engine.core.common.businessentities.network.NetworkCluster ( ) ; super . setup ( ) ; org.mockito.Mockito.doReturn ( vdsDao ) . when ( validator ) . getVdsDao ( ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult evaluate ( java.util.Map.Entry < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.bll.validator.StorageDomainValidator > entry ) { org.ovirt.engine.core.compat.Guid sdId = entry.getKey ( ) ; java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > disksList = disksMap.get ( sdId ) ; return getStorageDomainValidator ( entry ) . hasSpaceForDisksWithSnapshots ( disksList ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult evaluate ( java.util.Map.Entry < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.bll.validator.StorageDomainValidator > entry ) { org.ovirt.engine.core.compat.Guid sdId = entry.getKey ( ) ; java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > diskImages = disksMap.get ( sdId ) ; return getStorageDomainValidator ( entry ) . hasSpaceForDisksWithSnapshots ( diskImages ) ; }
Source:
public void prepareConnectHostToStoragePoolServers ( org.ovirt.engine.core.common.action.ConnectHostToStoragePoolServersParameters parameters , java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > connections ) { prepareStorageServer ( parameters , connections ) ; }

Target:
public boolean prepareConnectHostToStoragePoolServers ( org.ovirt.engine.core.bll.context.CommandContext cmdContext , org.ovirt.engine.core.common.action.ConnectHostToStoragePoolServersParameters parameters , java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > connections ) { return prepareStorageServer ( parameters , connections ) ; }
Source:
public java.lang.String getHost ( ) { return getProperty ( "ENGINE_FQDN" ) ; }

Target:
public boolean getBoolean ( java.lang.String key ) { return getBoolean ( key , null ) ; }
Source:
public org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorTest.HostSetupNetworksValidatorBuilder setExistingInterfaces ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > existingInterfaces ) { this . existingInterfaces = existingInterfaces ; return this ; }

Target:
public org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorTest.HostSetupNetworksValidatorBuilder addExistingInterfaces ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface ... existingInterfaces ) { if ( existingInterfaces == null ) { return this ; } return addExistingInterfaces ( java.util.Arrays.asList ( existingInterfaces ) ) ; }
Source:
public void testExistingUsbControllerModelWithNonExistingVersion ( ) { final org.ovirt.engine.core.common.businessentities.UsbControllerModel model = OsRepositoryImpl.INSTANCE.getOsUsbControllerModel ( OsRepositoryImpl.INSTANCE.getOsIdByUniqueName ( "rhel6" ) , Version.v4_1 , ChipsetType.I440FX ) ; org.junit.Assert.assertEquals ( UsbControllerModel.NEC_XHCI , model ) ; }

Target:
public void testExistingUsbControllerModelWithNonExistingVersion ( ) { final org.ovirt.engine.core.common.businessentities.UsbControllerModel model = OsRepositoryImpl.INSTANCE.getOsUsbControllerModel ( OsRepositoryImpl.INSTANCE.getOsIdByUniqueName ( "rhel6" ) , Version.v4_1 , ChipsetType.I440FX ) ; org.junit.jupiter.api.Assertions.assertEquals ( UsbControllerModel.NEC_XHCI , model ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.Network createNetwork ( ) { org.ovirt.engine.core.common.businessentities.network.Network network = new org.ovirt.engine.core.common.businessentities.network.Network ( ) ; network.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; network.setName ( "networkName" ) ; return network ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.Network createNetwork ( ) { org.ovirt.engine.core.common.businessentities.network.Network network = new org.ovirt.engine.core.common.businessentities.network.Network ( ) ; network.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; network.setName ( org.ovirt.engine.core.bll.validator.NetworkAttachmentValidatorTest.NETWORK_NAME ) ; return network ; }
Source:
org.ovirt.engine.core.vdsbroker.irsbroker.OneUuidReturnForXmlRpc glusterVolumeCreate ( java.lang.String volumeName , java.lang.String [ ] brickList , int replicaCount , int stripeCount , java.lang.String [ ] transportList ) ;

Target:
org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumesListReturnForXmlRpc glusterVolumeInfo ( org.ovirt.engine.core.compat.Guid clusterId , java.lang.String volumeName ) ;
Source:
protected void initWidget ( com.google.gwt.user.client.ui.Widget widget ) { super . initWidget ( widget ) ; initTable ( ) ; }

Target:
protected void initWidget ( com.google.gwt.user.client.ui.Widget widget ) { super . initWidget ( widget ) ; initTable ( ) ; addScrollListener ( ) ; }
Source:
public void canDoActionFailsWithForceNotSupported ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( volumeId1 , getBricks ( volumeId1 , 2 ) , 0 , 4 , true ) ) ; prepareMocks ( cmd ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_GLUSTER_VOLUME_ADD_BRICK_FORCE_NOT_SUPPORTED ) ; }

Target:
public void validateFailsWithForceNotSupported ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( volumeId1 , getBricks ( volumeId1 , 2 ) , 0 , 4 , true ) ) ; prepareMocks ( cmd ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_GLUSTER_VOLUME_ADD_BRICK_FORCE_NOT_SUPPORTED ) ; }
Source:
public org.ovirt.engine.core.vdsbroker.monitoring.VdsmVm setVmGuestAgentInterfaces ( java.util.List < org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface > vmGuestAgentInterfaces ) { this . vmGuestAgentInterfaces = vmGuestAgentInterfaces ; return this ; }

Target:
public org.ovirt.engine.core.vdsbroker.monitoring.VdsmVm setVmGuestAgentInterfaces ( java.util.List < org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface > vmGuestAgentInterfaces ) { this . vmGuestAgentInterfaces = vmGuestAgentInterfaces ; vmDynamic.setGuestAgentNicsHash ( java.util.Objects.hashCode ( vmGuestAgentInterfaces ) ) ; return this ; }
Source:
public void testValidNetworkFilterIdNoDefaultNoFilterId ( ) { org.junit.Assert.assertThat ( validator.validUseDefaultNetworkFilterFlag ( false ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void validVnicProfileNullNetworkFilterId ( ) { org.mockito.Mockito.when ( vnicProfile.getNetworkFilterId ( ) ) . thenReturn ( null ) ; org.hamcrest.MatcherAssert.assertThat ( validator.validNetworkFilterId ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
protected java.util.List < ? > getSelectedItems ( ) { return hasTableSelectionModel ( ) ? org.ovirt.engine.ui.common.presenter.AbstractSubTabPresenter.getView ( ) . getTableSelectionModel ( ) . getSelectedList ( ) : null ; }

Target:
protected java.util.List < ? > getSelectedItems ( ) { return ( org.ovirt.engine.ui.common.presenter.AbstractSubTabPresenter.getView ( ) . getTable ( ) ) != null ? org.ovirt.engine.ui.common.presenter.AbstractSubTabPresenter.getView ( ) . getTable ( ) . getSelectionModel ( ) . getSelectedList ( ) : null ; }
Source:
java.util.List < java.lang.String > translateErrorMessages ( java.util.List < java.lang.String > messages ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) . getErrorsTranslator ( ) . TranslateErrorText ( messages ) ; }

Target:
java.util.List < java.lang.String > translateErrorMessages ( java.util.List < java.lang.String > messages ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) . getErrorsTranslator ( ) . translateErrorText ( messages ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid getPoolId ( ) { org.ovirt.engine.core.bll.UpdateVmPoolCommand.getVmPoolDao ( ) . update ( org.ovirt.engine.core.bll.UpdateVmPoolCommand.getVmPool ( ) ) ; return org.ovirt.engine.core.bll.UpdateVmPoolCommand.getVmPool ( ) . getVmPoolId ( ) ; }

Target:
protected void createOrUpdateVmPool ( ) { org.ovirt.engine.core.bll.UpdateVmPoolCommand.getVmPoolDao ( ) . update ( org.ovirt.engine.core.bll.UpdateVmPoolCommand.getVmPool ( ) ) ; }
Source:
public org.ovirt.engine.core.compat.Guid mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { return org.ovirt.engine.core.compat.Guid.createGuidFromString ( rs.getString ( "vm_guid" ) ) ; }

Target:
public org.ovirt.engine.core.dao.network.VnicProfileDao getVnicProfileDao ( ) { return getDao ( org.ovirt.engine.core.dao.network.VnicProfileDao.class ) ; }
Source:
public void getPoolName_noVmsAlloved ( ) { assertGeneratesCorrect ( 5 , 4 , 0 ) ; }

Target:
public void getPoolName_noVmsAllowed ( ) { assertGeneratesCorrect ( 5 , 4 , 0 ) ; }
Source:
protected boolean checkImageConfiguration ( java.util.List < java.lang.String > canDoActionMessages ) { return org.ovirt.engine.core.bll.ImagesHandler.CheckImageConfiguration ( org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getStorageDomain ( ) . getStorageStaticData ( ) , org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getImage ( ) , canDoActionMessages ) ; }

Target:
protected boolean checkImageConfiguration ( ) { return org.ovirt.engine.core.bll.ImagesHandler.CheckImageConfiguration ( org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getStorageDomain ( ) . getStorageStaticData ( ) , org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getImage ( ) , org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getReturnValue ( ) . getCanDoActionMessages ( ) ) ; }
Source:
public java.util.List < org.ovirt.api.metamodel.concepts.Constraint > getDeclaredConstraints ( ) { return new java.util.ArrayList ( constraints ) ; }

Target:
public java.util.List < org.ovirt.api.metamodel.concepts.Constraint > getDeclaredConstraints ( ) { return new java.util.concurrent.CopyOnWriteArrayList ( constraints ) ; }
Source:
public org.ovirt.engine.api.resource.AssignedPermissionsResource getPermissionsResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendAssignedPermissionsResource ( guid , org.ovirt.engine.core.common.queries.VdcQueryType.GetPermissionsForObject , new org.ovirt.engine.core.common.queries.GetPermissionsForObjectParameters ( guid ) , org.ovirt.engine.api.model.StorageDomain.class , org.ovirt.engine.core.common.VdcObjectType.Storage ) ) ; }

Target:
public org.ovirt.engine.api.resource.AssignedPermissionsResource getPermissionsResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendAssignedPermissionsResource ( guid , org.ovirt.engine.core.common.queries.QueryType.GetPermissionsForObject , new org.ovirt.engine.core.common.queries.GetPermissionsForObjectParameters ( guid ) , org.ovirt.engine.api.model.StorageDomain.class , org.ovirt.engine.core.common.VdcObjectType.Storage ) ) ; }
Source:
public void setUp ( ) { org.ovirt.engine.core.bll.VmHandlerTest.injectorRule.bind ( org.ovirt.engine.core.bll.CpuFlagsManagerHandler.class , cpuFlagsManagerHandler ) ; org.ovirt.engine.core.bll.VmHandler.init ( ) ; }

Target:
public void setUp ( ) { injectorRule.bind ( org.ovirt.engine.core.bll.CpuFlagsManagerHandler.class , cpuFlagsManagerHandler ) ; org.ovirt.engine.core.bll.VmHandler.init ( ) ; }
Source:
public org.ovirt.engine.core.bll.network.cluster.transformer.NetworkClustersToSetupNetworksParametersTransformer createNetworkClustersToSetupNetworksParametersTransformer ( org.ovirt.engine.core.bll.context.CommandContext commandContext ) { return new org.ovirt.engine.core.bll.network.cluster.transformer.NetworkClustersToSetupNetworksParametersTransformerImpl ( networkDao , interfaceDao , manageLabeledNetworksParametersBuilderFactory , commandContext ) ; }

Target:
public org.ovirt.engine.core.bll.network.cluster.transformer.NetworkClustersToSetupNetworksParametersTransformer createNetworkClustersToSetupNetworksParametersTransformer ( org.ovirt.engine.core.bll.context.CommandContext commandContext ) { return new org.ovirt.engine.core.bll.network.cluster.transformer.NetworkClustersToSetupNetworksParametersTransformerImpl ( networkDao , interfaceDao , vdsStaticDao , networkClusterDao , networkAttachmentDao , manageLabeledNetworksParametersBuilderFactory , commandContext ) ; }
Source:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > interfaces = dao.getAll ( ) ; org.junit.Assert.assertNotNull ( interfaces ) ; org.junit.Assert.assertEquals ( FixturesTool.NUMBER_OF_VM_INTERFACE_VIEWS , interfaces.size ( ) ) ; }

Target:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > interfaces = dao.getAll ( ) ; org.junit.jupiter.api.Assertions.assertNotNull ( interfaces ) ; org.junit.jupiter.api.Assertions.assertEquals ( FixturesTool.NUMBER_OF_VM_INTERFACE_VIEWS , interfaces.size ( ) ) ; }
Source:
public void setForceLabelMessage ( java.lang.String forceLabelMessage ) { forceEditor.setLabel ( ( forceLabelMessage == null ? constants.notAvailableLabel ( ) : forceLabelMessage ) ) ; forceEditor.setVisible ( ( forceLabelMessage != null ) ) ; }

Target:
public void setActionConfirmationMessage ( java.lang.String message ) { boolean isNonEmptyMessage = message != null ; if ( isNonEmptyMessage ) { actionConfirmationMessage.setText ( message ) ; } }
Source:
public org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorTest.HostSetupNetworksValidatorBuilder setHost ( org.ovirt.engine.core.common.businessentities.VDS host ) { this . host = host ; return this ; }

Target:
public org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorTest.HostSetupNetworksValidatorBuilder addExistingInterfaces ( java.util.Collection < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > existingInterfaces ) { if ( existingInterfaces == null ) { return this ; } this . existingInterfaces.addAll ( existingInterfaces ) ; return this ; }
Source:
public void setActionParameters ( org.ovirt.engine.core.common.action.VdcActionParametersBase value ) { cmdEntity.setActionParameters ( value ) ; }

Target:
public void setTaskParameters ( org.ovirt.engine.core.common.action.VdcActionParametersBase value ) { cmdEntity.setActionParameters ( value ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.Collection < org.ovirt.engine.core.aaa.ProfileEntry > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.aaa.ProfileEntry > ( ) ; }

Target:
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.Role > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Role > ( ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { if ( "SearchString" . equals ( ( ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ) ( args ) ) . PropertyName ) ) { clearSelection ( ) ; } }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { if ( "SearchString" . equals ( ( ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ) ( args ) ) . propertyName ) ) { clearSelection ( ) ; } }
Source:
protected org.ovirt.engine.api.model.StorageDomain getEntity ( int index , org.ovirt.engine.core.common.businessentities.StorageType storageType ) { org.ovirt.engine.api.model.StorageDomain entity = control.createMock ( org.ovirt.engine.api.model.StorageDomain.class ) ; return org.ovirt.engine.api.restapi.resource.BackendAttachedStorageDomainsResourceTest.setUpEntityExpectations ( entity , index , storageType ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StorageDomainStatic getEntityStatic ( int index ) { org.ovirt.engine.api.restapi.resource.StorageDomainStatic entity = control.createMock ( org.ovirt.engine.core.common.businessentities.StorageDomainStatic.class ) ; return org.ovirt.engine.api.restapi.resource.BackendAttachedStorageDomainsResourceTest.setUpEntityExpectations ( entity , index , StorageType.NFS ) ; }
Source:
public void parseLunFromXmlRpcReturnsIscsiByDefault ( ) throws java.lang.Exception { testParseLunFromXmlRpcForDevtypeField ( StorageType.ISCSI , "" ) ; }

Target:
public void parseLunFromXmlRpcReturnsIscsiByDefault ( ) throws java.lang.Exception { org.ovirt.engine.core.vdsbroker.vdsbroker.GetDeviceListVDSCommandTest.testParseLunFromXmlRpcForDevtypeField ( StorageType.ISCSI , "" ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel model ) { return ( ( org.ovirt.engine.ui.uicommonweb.models.providers.ExternalNetwork ) ( model ) ) . getNetwork ( ) . getId ( ) . toString ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel model ) { return ( ( org.ovirt.engine.ui.uicommonweb.models.providers.ExternalNetwork ) ( model ) ) . getNetwork ( ) . getProvidedBy ( ) . getExternalId ( ) ; }
Source:
public void unsetNfsProfileDetail ( ) { this . nfsProfileDetail = null ; }

Target:
public void unsetNfsProfileDetails ( ) { this . nfsProfileDetails = null ; }
Source:
protected org.ovirt.engine.core.compat.Guid getDiskId ( ) { return getCommand ( ) . getParameters ( ) . getRemovedVolume ( ) . getImageId ( ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.storage.CinderDisk getDisk ( ) { return org.ovirt.engine.core.bll.storage.RemoveCinderDiskCommandCallback.getCommand ( ) . getParameters ( ) . getRemovedVolume ( ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) . intValue ( ) : 1 ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) : 1000 ; }
Source:
public static void getAttachedTagsToHost ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid id ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.setAttachedTagsConverter ( aQuery ) ; org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.GetTagsByVdsId , new org.ovirt.engine.core.common.queries.GetTagsByVdsIdParameters ( id.toString ( ) ) , aQuery ) ; }

Target:
public static void getAttachedTagsToVm ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid id ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.setAttachedTagsConverter ( aQuery ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetTagsByVmId , new org.ovirt.engine.core.common.queries.GetTagsByVmIdParameters ( id.toString ( ) ) , aQuery ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VmOsType getvm_os ( ) { return this . mVmStatic.getos ( ) ; }

Target:
public void setVmCreationDate ( java.util.Date value ) { this . vmStatic.setCreationDate ( value ) ; }
Source:
public void testDatacenter ( ) { testValidSql ( "DataCenter: sortby name" , "SELECT * FROM ((SELECT distinct storage_pool.* FROM storage_pool ) ORDER BY name,name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "DataCenter: Clusters.name =Default" , "SELECT * FROM ((SELECT distinct storage_pool.* FROM storage_pool LEFT OUTER JOIN vds_groups_storage_domain ON storage_pool.id=vds_groups_storage_domain.storage_pool_id WHERE vds_groups_storage_domain.name LIKE Default ) ORDER BY name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; }

Target:
public void testDatacenter ( ) { testValidSql ( "DataCenter: sortby name" , "SELECT * FROM ((SELECT distinct storage_pool.* FROM storage_pool ) ORDER BY name,name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "DataCenter: Clusters.name =Default" , "SELECT * FROM ((SELECT distinct storage_pool.* FROM storage_pool LEFT OUTER JOIN clusters_storage_domain ON storage_pool.id=clusters_storage_domain.storage_pool_id WHERE clusters_storage_domain.name LIKE Default ) ORDER BY name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyLegacyGotEnabledNotSetLegacyPolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setType ( "legacy" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_LEGACY , null ) , 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 ( "legacy" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE ) , UsbPolicy.ENABLED_LEGACY ) ; }
Source:
protected void OnEntityChanged ( ) { super . OnEntityChanged ( ) ; if ( ( getEntity ( ) ) != null ) { UpdateVolumeDetails ( ) ; updateAlerts ( ) ; } UpdateActionAvailability ( ) ; }

Target:
protected void OnEntityChanged ( ) { super . OnEntityChanged ( ) ; if ( ( getEntity ( ) ) != null ) { UpdateVolumeDetails ( ) ; updateAlerts ( ) ; updateConsoleAddressPartiallyOverridden ( getEntity ( ) ) ; } UpdateActionAvailability ( ) ; }
Source:
public java.lang.Integer getUtcDiff ( ) { return this . vmDynamic.getutc_diff ( ) ; }

Target:
public void setVmHost ( java.lang.String value ) { this . vmDynamic.setVmHost ( value ) ; }
Source:
public void testGetAllForStoragePoolWithPermissionsPrivilegedUser ( ) { org.ovirt.engine.core.compat.Guid storagePoolId = new org.ovirt.engine.core.compat.Guid ( "6d849ebf-755f-4552-ad09-9a090cda105d" ) ; java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllForStoragePool ( storagePoolId , org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , true ) ; org.ovirt.engine.core.dao.StorageDomainDaoTest.assertGetAllForStoragePoolResult ( result , storagePoolId ) ; }

Target:
public void testGetAllForStoragePoolWithPermissionsUnprivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllForStoragePool ( FixturesTool.STORAGE_POOL_NFS , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public void addNFSEmptyConn ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections newPosixConnection = createPosixConnection ( "" , StorageType.POSIXFS , "nfs" , "timeo=30" ) ; parameters.setStorageServerConnection ( newPosixConnection ) ; parameters.setVdsId ( Guid.Empty ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.VALIDATION_STORAGE_CONNECTION_EMPTY_CONNECTION ) ; }

Target:
public void addNFSEmptyConn ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections newPosixConnection = createPosixConnection ( "" , StorageType.POSIXFS , "nfs" , "timeo=30" ) ; parameters.setStorageServerConnection ( newPosixConnection ) ; parameters.setVdsId ( Guid.Empty ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.VALIDATION_STORAGE_CONNECTION_EMPTY_CONNECTION ) ; }
Source:
public void setvds_group_id ( org.ovirt.engine.core.compat.Guid value ) { this . mVmStatic.setvds_group_id ( value ) ; }

Target:
public void setVdsGroupId ( org.ovirt.engine.core.compat.Guid value ) { this . vmStatic.setvds_group_id ( value ) ; }
Source:
public void checkRemoveNotExistingConnection ( ) { parameters.setStorageServerConnection ( NFSConnection ) ; org.mockito.Mockito.when ( storageServerConnectionDao.get ( NFSConnection.getid ( ) ) ) . thenReturn ( null ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_CONNECTION_NOT_EXIST ) ; }

Target:
public void checkRemoveNotExistingConnection ( ) { parameters.setStorageServerConnection ( NFSConnection ) ; org.mockito.Mockito.when ( storageServerConnectionDao.get ( NFSConnection.getid ( ) ) ) . thenReturn ( null ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.ACTION_TYPE_FAILED_STORAGE_CONNECTION_NOT_EXIST ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.aaa.DbUser getLoggedInUser ( java.lang.String sessionId ) { return ( ( org.ovirt.engine.core.common.businessentities.aaa.DbUser ) ( runQuery ( QueryType.GetUserBySessionId , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , sessionId ) ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.aaa.DbUser getLoggedInUser ( java.lang.String sessionId ) { return ( ( org.ovirt.engine.core.common.businessentities.aaa.DbUser ) ( runQuery ( QueryType.GetUserBySessionId , new org.ovirt.engine.core.common.queries.QueryParametersBase ( ) , sessionId ) ) ) ; }
Source:
private void manageSwift ( java.lang.String action ) { org.ovirt.engine.core.common.action.gluster.GlusterServiceParameters parameters = new org.ovirt.engine.core.common.action.gluster.GlusterServiceParameters ( getEntity ( ) . getVdsGroupId ( ) , getEntity ( ) . getId ( ) , org.ovirt.engine.core.common.businessentities.gluster.ServiceType.GLUSTER_SWIFT , action ) ; org.ovirt.engine.ui.frontend.Frontend.RunAction ( VdcActionType.ManageGlusterService , parameters ) ; }

Target:
private void manageSwift ( java.lang.String action ) { org.ovirt.engine.core.common.action.gluster.GlusterServiceParameters parameters = new org.ovirt.engine.core.common.action.gluster.GlusterServiceParameters ( getEntity ( ) . getVdsGroupId ( ) , getEntity ( ) . getId ( ) , org.ovirt.engine.core.common.businessentities.gluster.ServiceType.GLUSTER_SWIFT , action ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runAction ( VdcActionType.ManageGlusterService , parameters ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcActionParametersBase getParentParameters ( ) { return parentParameters ; }

Target:
public org.ovirt.engine.core.common.action.ActionParametersBase getParentParameters ( ) { return parentParameters ; }
Source:
public abstract void setHeader ( com.google.gwt.user.client.ui.Widget header ) ;

Target:
public abstract void setHeader ( java.lang.String headerTitle ) ;
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.storage.Disk > ( ) , null ) , 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.storage.Disk > ( ) , null ) , false , EngineMessage.VM_CANNOT_RUN_FROM_CD_WITHOUT_ACTIVE_STORAGE_DOMAIN_ISO ) ; }
Source:
public void close ( ) { this . client.close ( ) ; }

Target:
public void close ( ) { org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcUtils.shutDownConnection ( this . httpClient ) ; this . client.close ( ) ; }
Source:
private org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommand < org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters > createCommand ( org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters params ) { org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommand < org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters > command = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommand ( params , null ) ) ; org.mockito.Mockito.doReturn ( vdsDao ) . when ( command ) . getVdsDao ( ) ; return command ; }

Target:
public void validateSucceeds ( ) { mockVdsWithOsVersion ( org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.VALID_OVIRT_VERSION ) ; command.getParameters ( ) . setoVirtIsoFile ( org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.VALID_VERSION_OVIRT_ISO_FILENAME ) ; org.junit.Assert.assertTrue ( command.validate ( ) ) ; }
Source:
public void testAllDomainsExistAndActiveAllActive ( ) { domain1.setStatus ( StorageDomainStatus.Active ) ; domain2.setStatus ( StorageDomainStatus.Active ) ; domain3.setStatus ( StorageDomainStatus.Active ) ; org.junit.Assert.assertTrue ( "Both domains should be active" , validator.allDomainsExistAndActive ( ) . isValid ( ) ) ; }

Target:
public void testAllDomainsExistAndActiveAllActive ( ) { domain1.setStatus ( StorageDomainStatus.Active ) ; domain2.setStatus ( StorageDomainStatus.Active ) ; domain3.setStatus ( StorageDomainStatus.Active ) ; org.junit.jupiter.api.Assertions.assertTrue ( validator.allDomainsExistAndActive ( ) . isValid ( ) , "Both domains should be active" ) ; }
Source:
protected void moveOrCopyAllImageGroups ( ) { moveOrCopyAllImageGroups ( org.ovirt.engine.core.bll.MoveVmCommand.getVmId ( ) , org.ovirt.engine.core.bll.ImagesHandler.filterImageDisks ( org.ovirt.engine.core.bll.MoveVmCommand.getVm ( ) . getDiskList ( ) , false , false , true ) ) ; }

Target:
protected void moveOrCopyAllImageGroups ( ) { moveOrCopyAllImageGroups ( org.ovirt.engine.core.bll.MoveVmCommand.getVmId ( ) , org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.filterImageDisks ( org.ovirt.engine.core.bll.MoveVmCommand.getVm ( ) . getDiskList ( ) , false , false , true ) ) ; }
Source:
public void testRemoveVmDevicesByVmIdAndType ( ) { dao.removeVmDevicesByVmIdAndType ( org.ovirt.engine.core.dao.VmDeviceDaoTest.EXISTING_VM_ID , VmDeviceGeneralType.HOSTDEV ) ; org.junit.Assert.assertFalse ( dao.existsVmDeviceByVmIdAndType ( org.ovirt.engine.core.dao.VmDeviceDaoTest.EXISTING_VM_ID , VmDeviceGeneralType.HOSTDEV ) ) ; org.junit.Assert.assertTrue ( dao.existsVmDeviceByVmIdAndType ( org.ovirt.engine.core.dao.VmDeviceDaoTest.EXISTING_VM_ID_2 , VmDeviceGeneralType.HOSTDEV ) ) ; }

Target:
public void testRemoveVmDevicesByVmIdAndType ( ) { dao.removeVmDevicesByVmIdAndType ( org.ovirt.engine.core.dao.VmDeviceDaoTest.EXISTING_VM_ID , VmDeviceGeneralType.HOSTDEV ) ; org.junit.jupiter.api.Assertions.assertFalse ( dao.existsVmDeviceByVmIdAndType ( org.ovirt.engine.core.dao.VmDeviceDaoTest.EXISTING_VM_ID , VmDeviceGeneralType.HOSTDEV ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( dao.existsVmDeviceByVmIdAndType ( org.ovirt.engine.core.dao.VmDeviceDaoTest.EXISTING_VM_ID_2 , VmDeviceGeneralType.HOSTDEV ) ) ; }
Source:
public void setkvm_enable ( java.lang.Boolean value ) { this . mVmDynamic.setkvm_enable ( value ) ; }

Target:
public java.lang.Boolean getKvmEnable ( ) { return this . vmDynamic.getkvm_enable ( ) ; }
Source:
public void vmNotHavingPassthroughVnicsNotValid ( ) { vmNotHavingPassthroughVnicsCommon ( vm.getId ( ) , 2 , 3 ) ; org.junit.Assert.assertThat ( validator.vmNotHavingPassthroughVnics ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_MIGRATION_OF_PASSTHROUGH_VNICS_IS_NOT_SUPPORTED ) ) ; }

Target:
public void testVmExceedsMaxNumOfVmCpus ( ) { setVmCpuValues ( 2 , 3 , 3 ) ; org.junit.Assert.assertThat ( org.ovirt.engine.core.bll.validator.VmValidator.validateCpuSockets ( vm.getStaticData ( ) , org.ovirt.engine.core.bll.validator.VmValidatorTest.COMPAT_VERSION_FOR_CPU_SOCKET_TEST ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_MAX_NUM_CPU ) ) ; }
Source:
public final boolean setData ( java.lang.String key , java.lang.Object value ) { java.lang.String sessionId = org.ovirt.engine.core.utils.ThreadLocalParamsContainer.getHttpSessionId ( ) ; if ( org.apache.commons.lang.StringUtils.isEmpty ( sessionId ) ) { return false ; } setData ( sessionId , key , value ) ; return true ; }

Target:
public void setPassword ( java.lang.String sessionId , java.lang.String password ) { setData ( sessionId , org.ovirt.engine.core.bll.session.SessionDataContainer.PASSWORD_PARAMETER_NAME , password ) ; }
Source:
void onIsAvailablePropertyChange ( org.ovirt.engine.ui.common.widget.HasAccess editor , org.ovirt.engine.ui.uicommonweb.models.EntityModel model ) { boolean isAvailable = model.getIsAvailable ( ) ; editor.setAccessible ( isAvailable ) ; }

Target:
void onIsAvailablePropertyChange ( org.ovirt.engine.ui.common.widget.HasAccess editor , org.ovirt.engine.ui.uicommonweb.models.Model model ) { boolean isAvailable = model.getIsAvailable ( ) ; editor.setAccessible ( isAvailable ) ; }
Source:
public void setGuestMemoryFree ( java.lang.Long guestMemoryFree ) { vmDynamic.setGuestMemoryFree ( guestMemoryFree ) ; }

Target:
public void setGuestContainers ( java.util.List < org.ovirt.engine.core.common.businessentities.GuestContainer > containers ) { vmDynamic.setGuestContainers ( containers ) ; }
Source:
public void testIpConfiguredForStaticBootProtocol_WhenIpConfigurationIsNotNullAndBootProtocolIsStaticAndAddressAndNetmaskIsNotNull ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment = createNetworkAttachmentWithIpConfiguration ( NetworkBootProtocol.STATIC_IP , "" , "" ) ; org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.validator.NetworkAttachmentValidator ( attachment , new org.ovirt.engine.core.common.businessentities.VDS ( ) ) . ipConfiguredForStaticBootProtocol ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
private void doTestIpConfiguredForStaticBootProtocolWhenIpConfigurationIsNotNullForBootProtocol ( org.ovirt.engine.core.common.businessentities.network.NetworkBootProtocol bootProtocol ) { org.ovirt.engine.core.common.businessentities.network.NetworkAttachment networkAttachmentWithIpConfiguration = createNetworkAttachmentWithIpConfiguration ( bootProtocol , null , null ) ; org.ovirt.engine.core.bll.validator.NetworkAttachmentValidator networkAttachmentValidator = createNetworkAttachmentValidator ( networkAttachmentWithIpConfiguration ) ; org.junit.Assert.assertThat ( networkAttachmentValidator.ipConfiguredForStaticBootProtocol ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
private org.ovirt.engine.core.bll.network.host.SetupNetworksHelper createHelper ( org.ovirt.engine.core.common.action.SetupNetworksParameters params ) { return createHelper ( params , Version.v3_3 ) ; }

Target:
private org.ovirt.engine.core.bll.network.host.SetupNetworksHelper createHelper ( org.ovirt.engine.core.common.action.SetupNetworksParameters params ) { return createHelper ( params , Version.v3_5 ) ; }
Source:
private static void addToAuditLogErrorMessage ( java.lang.String problematicRepoFilesList ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; logable.addCustomValue ( "isoDomains" , problematicRepoFilesList ) ; org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( logable , AuditLogType.REFRESH_REPOSITORY_FILE_LIST_FAILED ) ; }

Target:
private static void addToAuditLogErrorMessage ( java.lang.String problematicRepoFilesList ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; logable.addCustomValue ( "imageDomains" , problematicRepoFilesList ) ; org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( logable , AuditLogType.REFRESH_REPOSITORY_IMAGE_LIST_FAILED ) ; }
Source:
public void sparsifyNotSupportedWhenDiskIsPreallocated ( ) { createStorageDomainForDisk ( StorageType.NFS ) ; disk.getImage ( ) . setVolumeType ( VolumeType.Preallocated ) ; org.junit.Assert.assertThat ( validator.isSparsifySupported ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_DISK_SPARSIFY_NOT_SUPPORTED_FOR_PREALLOCATED ) ) ; }

Target:
public void sparsifyNotSupportedWhenDiskIsPreallocated ( ) { createStorageDomainForDisk ( StorageType.NFS ) ; disk.getImage ( ) . setVolumeType ( VolumeType.Preallocated ) ; org.hamcrest.MatcherAssert.assertThat ( validator.isSparsifySupported ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_DISK_SPARSIFY_NOT_SUPPORTED_FOR_PREALLOCATED ) ) ; }
Source:
public void updatePosixEmptyVFSType ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections newPosixConnection = createPosixConnection ( "multipass.my.domain.tlv.company.com:/export/allstorage/data1" , StorageType.POSIXFS , null , "timeo=30" ) ; parameters.setStorageServerConnection ( newPosixConnection ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , VdcBllMessages.VALIDATION_STORAGE_CONNECTION_EMPTY_VFSTYPE ) ; }

Target:
public void addPosixEmptyVFSType ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections newPosixConnection = createPosixConnection ( "multipass.my.domain.tlv.company.com:/export/allstorage/data1" , StorageType.POSIXFS , null , "timeo=30" ) ; parameters.setStorageServerConnection ( newPosixConnection ) ; parameters.setStoragePoolId ( Guid.Empty ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , VdcBllMessages.VALIDATION_STORAGE_CONNECTION_EMPTY_VFSTYPE ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult nameLengthIsLegal ( ) { int maxHostNameLength = org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.MaxVdsNameLength ) ; return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.ACTION_TYPE_FAILED_NAME_LENGTH_IS_TOO_LONG ) . when ( ( ( host.getName ( ) . length ( ) ) > maxHostNameLength ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult nameLengthIsLegal ( ) { int maxHostNameLength = org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.MaxVdsNameLength ) ; return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.ACTION_TYPE_FAILED_NAME_LENGTH_IS_TOO_LONG ) . when ( ( ( host.getName ( ) . length ( ) ) > maxHostNameLength ) ) ; }
Source:
protected boolean canDoAction ( ) { return org.ovirt.engine.core.bll.network.dc.RemoveNetworkCommand.CommonNetworkValidation ( org.ovirt.engine.core.bll.network.dc.RemoveNetworkCommand.getParameters ( ) . getNetwork ( ) , org.ovirt.engine.core.bll.network.dc.RemoveNetworkCommand.getReturnValue ( ) . getCanDoActionMessages ( ) ) ; }

Target:
protected boolean canDoAction ( ) { return networkNotAttachedToCluster ( org.ovirt.engine.core.bll.network.dc.RemoveNetworkCommand.getParameters ( ) . getNetwork ( ) ) ; }
Source:
public static < T extends java.lang.Object > T get ( java.lang.Class < T > clazz ) { return org.ovirt.engine.core.common.utils.Injector.injector.instanceOf ( clazz ) ; }

Target:
public static < T extends java.lang.Object > T get ( java.lang.Class < T > clazz ) { return org.ovirt.engine.core.bll.utils.Injector.injector.instanceOf ( clazz ) ; }
Source:
public final boolean SetData ( java.lang.String key , java.lang.Object value ) { java.lang.String sessionId = org.ovirt.engine.core.utils.ThreadLocalParamsContainer.getHttpSessionId ( ) ; if ( org.apache.commons.lang.StringUtils.isEmpty ( sessionId ) ) { return false ; } SetData ( sessionId , key , value ) ; return true ; }

Target:
public final boolean setData ( java.lang.String key , java.lang.Object value ) { java.lang.String sessionId = org.ovirt.engine.core.utils.ThreadLocalParamsContainer.getHttpSessionId ( ) ; if ( org.apache.commons.lang.StringUtils.isEmpty ( sessionId ) ) { return false ; } setData ( sessionId , key , value ) ; return true ; }
Source:
public void lowerVersionNoHostsNoNetwork ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( cmd ) ; }

Target:
public void lowerVersionNoHostsNoNetwork ( ) { cmd.getStoragePool ( ) . setCompatibilityVersion ( org.ovirt.engine.core.bll.storage.pool.UpdateStoragePoolCommandTest.VERSION_1_0 ) ; addNonDefaultClusterToPool ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( cmd ) ; }
Source:
public void setup ( ) { storagePool = new org.ovirt.engine.core.common.businessentities.StoragePool ( ) ; storagePool.setstatus ( StoragePoolStatus.Up ) ; validator = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.storage.StoragePoolValidator ( storagePool ) ) ; }

Target:
public void setup ( ) { storagePool = new org.ovirt.engine.core.common.businessentities.StoragePool ( ) ; storagePool.setStatus ( StoragePoolStatus.Up ) ; validator = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.storage.StoragePoolValidator ( storagePool ) ) ; }
Source:
public void testEvent ( ) { testValidSql ( "Event: " , "SELECT * FROM ((SELECT audit_log.* FROM audit_log WHERE not deleted) ORDER BY audit_log_id DESC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "Event: severity=error " , "SELECT * FROM ((SELECT audit_log.* FROM audit_log WHERE audit_log.severity = '2' AND not deleted) ORDER BY audit_log_id DESC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "Event: severity=alert " , "SELECT * FROM ((SELECT audit_log.* FROM audit_log WHERE audit_log.severity = '10' AND not deleted) ORDER BY audit_log_id DESC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "Event: host.name = \"host1\" " , "SELECT * FROM ((SELECT audit_log.* FROM audit_log LEFT OUTER JOIN vds_with_tags ON audit_log.vds_id=vds_with_tags.vds_id WHERE vds_with_tags.vds_name LIKE host1 AND not deleted) ORDER BY audit_log_id DESC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; }

Target:
public void testEvent ( ) { testValidSql ( "Event: " , "SELECT * FROM ((SELECT distinct audit_log.* FROM audit_log WHERE not deleted) ORDER BY audit_log_id DESC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "Event: severity=error " , "SELECT * FROM ((SELECT distinct audit_log.* FROM audit_log WHERE audit_log.severity = '2' AND not deleted) ORDER BY audit_log_id DESC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "Event: severity=alert " , "SELECT * FROM ((SELECT distinct audit_log.* FROM audit_log WHERE audit_log.severity = '10' AND not deleted) ORDER BY audit_log_id DESC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "Event: host.name = \"host1\" " , "SELECT * FROM ((SELECT distinct audit_log.* FROM audit_log LEFT OUTER JOIN vds_with_tags ON audit_log.vds_id=vds_with_tags.vds_id WHERE vds_with_tags.vds_name LIKE host1 AND not deleted) ORDER BY audit_log_id DESC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; }
Source:
public void validateNonExternalStepFails ( ) throws java.lang.Exception { setupMock ( ) ; parameters.setJobId ( org.ovirt.engine.core.bll.EndExternalStepCommandTest.jobId ) ; parameters.setId ( org.ovirt.engine.core.bll.EndExternalStepCommandTest.nonExternalStepId ) ; org.junit.Assert.assertTrue ( ( ! ( command.validate ( ) ) ) ) ; }

Target:
public void validateNonExternalJobFails ( ) throws java.lang.Exception { parameters.setId ( org.ovirt.engine.core.bll.EndExternalStepCommandTest.nonExternalStepId ) ; parameters.setJobId ( org.ovirt.engine.core.bll.EndExternalStepCommandTest.jobId ) ; org.junit.Assert.assertTrue ( ( ! ( command.validate ( ) ) ) ) ; }
Source:
public java.lang.Boolean call ( ) throws java.lang.Exception { if ( ( ( java.lang.Boolean ) ( _parser.cliEnvironmentGet ( VdsmEnv.OVIRT_NODE ) ) ) ) { _messages.post ( InstallerMessages.Severity.INFO , "Host is hypervisor" ) ; _setNode ( ) ; } return true ; }

Target:
public java.lang.Boolean call ( ) throws java.lang.Exception { if ( ( ( java.lang.Boolean ) ( _parser.cliEnvironmentGet ( VdsmEnv.OVIRT_NODE ) ) ) ) { userVisibleLog ( java.util.logging.Level.INFO , "Host is hypervisor" ) ; _setNode ( ) ; } return true ; }
Source:
public void onLogout ( ) { user.onUserLogout ( ) ; }

Target:
protected void performLogout ( ) { getLoginModel ( ) . resetAfterLogout ( ) ; user.onUserLogout ( ) ; org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.clearCache ( ) ; org.ovirt.engine.ui.common.uicommon.model.CleanupModelEvent.fire ( eventBus ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > getIscsiIfacesByHostIdAndStorageTargetId ( org.ovirt.engine.core.compat.Guid hostId , java.lang.String storageTargetId ) { return getCallsHandler ( ) . executeReadList ( "GetIscsiIfacesByHostIdAndStorageTargetId" , org.ovirt.engine.core.dao.network.InterfaceDaoDbFacadeImpl.vdsNetworkInterfaceRowMapper , getCustomMapSqlParameterSource ( ) . addValue ( "host_id" , hostId ) . addValue ( "target_id" , storageTargetId ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > getIscsiIfacesByHostIdAndStorageTargetId ( org.ovirt.engine.core.compat.Guid hostId , java.lang.String storageTargetId ) { return getCallsHandler ( ) . executeReadList ( "GetIscsiIfacesByHostIdAndStorageTargetId" , vdsNetworkInterfaceRowMapper , getCustomMapSqlParameterSource ( ) . addValue ( "host_id" , hostId ) . addValue ( "target_id" , storageTargetId ) ) ; }
Source:
public void setAuthn ( java.lang.String sessionId , org.ovirt.engine.core.extensions.mgr.ExtensionProxy authn ) { setData ( sessionId , org.ovirt.engine.core.bll.aaa.SessionDataContainer.AUTHN_PARAMETER_NAME , authn ) ; }

Target:
public final void setSoftLimitInterval ( java.lang.String sessionId , int softLimitInterval ) { setData ( sessionId , org.ovirt.engine.core.bll.aaa.SessionDataContainer.SOFT_LIMIT_INTERVAL_PARAMETER_NAME , softLimitInterval ) ; }
Source:
public void setDefaultConsoleModel ( org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel value ) { if ( ( defaultConsoleModel ) != value ) { defaultConsoleModel = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "DefaultConsoleModel" ) ) ; } }

Target:
public void setEditConsoleCommand ( org.ovirt.engine.ui.uicommonweb.UICommand editConsoleCommand ) { this . editConsoleCommand = editConsoleCommand ; }
Source:
static java.util.function.Predicate < org.ovirt.api.metamodel.concepts.Named > named ( org.ovirt.api.metamodel.concepts.Name name ) { return ( x ) -> java.util.Objects.equals ( x.getName ( ) , name ) ; }

Target:
static java.util.function.Predicate < org.ovirt.api.metamodel.concepts.Named > named ( org.ovirt.api.metamodel.concepts.Name name ) { return ( x ) -> org.ovirt.api.metamodel.concepts.Named.namesEqual ( name , x ) ; }
Source:
private boolean attachNetworks ( java.util.Collection < org.ovirt.engine.core.common.businessentities.network.NetworkCluster > attachments ) { return runNetworkClusterCommands ( attachments , VdcActionType.AttachNetworkToClusterInternal , networkClusterToAttachNetworkToVdsGroupParameterTransformer ) ; }

Target:
private boolean detachNetworks ( java.util.Collection < org.ovirt.engine.core.common.businessentities.network.NetworkCluster > detachments ) { return runNetworkClusterCommands ( detachments , VdcActionType.DetachNetworkFromClusterInternal , networkClusterToAttachNetworkToVdsGroupParameterTransformer ) ; }