auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void ExpandAll ( ) { SetIsExpandedRecursively ( true , getItems ( ) . get ( 0 ) ) ; }

Target:
private void expandAll ( ) { setIsExpandedRecursively ( true , getItems ( ) . get ( 0 ) ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.IsVmPoolWithSameNameExistsQuery.getQueryReturnValue ( ) . setReturnValue ( ( ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmPoolDAO ( ) . getByName ( org.ovirt.engine.core.bll.IsVmPoolWithSameNameExistsQuery.getParameters ( ) . getVmPoolName ( ) ) ) != null ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.IsVmPoolWithSameNameExistsQuery.getQueryReturnValue ( ) . setReturnValue ( ( ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmPoolDao ( ) . getByName ( org.ovirt.engine.core.bll.IsVmPoolWithSameNameExistsQuery.getParameters ( ) . getVmPoolName ( ) ) ) != null ) ) ; }
Source:
public void testRemoveUnregisteredDiskRelatedToVM ( ) { dao.removeUnregisteredDisk ( FixturesTool.UNREGISTERED_DISK , FixturesTool.STORAGE_DOAMIN_NFS2_1 ) ; java.util.List < org.ovirt.engine.core.common.businessentities.storage.UnregisteredDisk > unregisteredDisk = dao.getByDiskIdAndStorageDomainId ( FixturesTool.UNREGISTERED_DISK , null ) ; org.junit.Assert.assertTrue ( "Disk should not exists in the UnregisteredDisks table after being deleted." , unregisteredDisk.isEmpty ( ) ) ; }

Target:
public void testRemoveUnregisteredDiskRelatedToVM ( ) { dao.removeUnregisteredDisk ( FixturesTool.UNREGISTERED_DISK , FixturesTool.STORAGE_DOMAIN_NFS2_1 ) ; java.util.List < org.ovirt.engine.core.common.businessentities.storage.UnregisteredDisk > unregisteredDisk = dao.getByDiskIdAndStorageDomainId ( FixturesTool.UNREGISTERED_DISK , null ) ; org.junit.Assert.assertTrue ( "Disk should not exists in the UnregisteredDisks table after being deleted." , unregisteredDisk.isEmpty ( ) ) ; }
Source:
public void vnicProfileNull ( ) throws java.lang.Exception { validator = new org.ovirt.engine.core.bll.validator.VnicProfileValidator ( vmDao , null ) ; org.junit.Assert.assertThat ( validator.vnicProfileIsSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_VNIC_PROFILE_NOT_EXISTS ) ) ; }

Target:
public void vnicProfileNull ( ) throws java.lang.Exception { validator = new org.ovirt.engine.core.bll.validator.VnicProfileValidator ( null , vmDao , dcDao ) ; org.junit.Assert.assertThat ( validator.vnicProfileIsSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_VNIC_PROFILE_NOT_EXISTS ) ) ; }
Source:
private boolean isContainImages ( ) { return ! ( org.ovirt.engine.core.bll.ImagesHandler.filterImageDisks ( getSourceImages ( ) , true , false , true ) . isEmpty ( ) ) ; }

Target:
private boolean isContainImages ( ) { return ! ( org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.filterImageDisks ( getSourceImages ( ) , true , false , true ) . isEmpty ( ) ) ; }
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 updateBootOrder ( org.ovirt.engine.core.common.businessentities.VmDevice vmDevice ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource paramsForUpdate = createParameterSourceForUpdate ( vmDevice ) . addValue ( "boot_order" , vmDevice.getBootOrder ( ) ) ; getCallsHandler ( ) . executeModification ( "UpdateVmDeviceBootOrder" , paramsForUpdate ) ; }
Source:
protected org.ovirt.engine.core.vdsbroker.vdsbroker.StatusForXmlRpc getReturnStatus ( ) { return glusterTaskReturn.getXmlRpcStatus ( ) ; }

Target:
protected org.ovirt.engine.core.vdsbroker.vdsbroker.Status getReturnStatus ( ) { return glusterTaskReturn.getStatus ( ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > call ( ) throws java.lang.Exception { updateHeartbeatPolicy ( policy.clone ( ) , false ) ; return new org.ovirt.engine.core.vdsbroker.jsonrpc.FutureMap ( client , request ) . withResponseKey ( "status" ) ; }

Target:
public boolean isDone ( ) { if ( callable.isDone ( ) ) { if ( isPolicyReset ) { updateHeartbeatPolicy ( client.getClientRetryPolicy ( ) , true ) ; } return true ; } return false ; }
Source:
public void testBadGuid ( ) throws java.lang.Exception { try { new org.ovirt.engine.api.restapi.resource.BackendDataCenterClusterResource ( new org.ovirt.engine.api.restapi.resource.BackendDataCenterClustersResource ( org.ovirt.engine.api.restapi.resource.BackendDataCenterClusterResourceTest.dataCenterId.toString ( ) ) , "foo" ) ; 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.BackendDataCenterClusterResource ( new org.ovirt.engine.api.restapi.resource.BackendDataCenterClustersResource ( org.ovirt.engine.api.restapi.resource.BackendDataCenterClusterResourceTest.dataCenterId.toString ( ) ) , "foo" ) ; org.junit.Assert.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }
Source:
public void build ( ) { createImageForVmMetaData ( ) ; createImageForMemoryDump ( ) ; }

Target:
private org.ovirt.engine.core.compat.Guid addMetadataDisk ( ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage metadataDisk = org.ovirt.engine.core.bll.memory.MemoryUtils.createSnapshotMetadataDisk ( ) ; return addDisk ( metadataDisk ) ; }
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.api.model.StorageDomain getEntity ( int index ) { 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.NFS ) ; }
Source:
private org.ovirt.engine.api.model.Network getNetwork ( ) { return getEntity ( org.ovirt.engine.api.model.Network.class , VdcQueryType.GetNetworkById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) , guid.toString ( ) ) ; }

Target:
private org.ovirt.engine.api.model.Network getNetwork ( ) { return getEntity ( org.ovirt.engine.api.model.Network.class , QueryType.GetNetworkById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) , guid.toString ( ) ) ; }
Source:
private void commitLabelChanges ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > srcIfaces , org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface dstIface ) { org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkOperation.moveLabels ( srcIfaces , dstIface ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > getExistingNetworkAttachments ( ) { return existingNetworkAttachments ; }
Source:
public void markAllExternalPoliciesAsDisabled ( ) { markExternalPoliciesAsDisabled ( getPolicyUnitDao ( ) . getAll ( ) ) ; }

Target:
public void markAllExternalPoliciesAsDisabled ( ) { markExternalPoliciesAsDisabled ( policyUnitDao.getAll ( ) ) ; }
Source:
public java.lang.Long getSwapFree ( ) { return this . mVdsStatistics.getswap_free ( ) ; }

Target:
public void setMemShared ( java.lang.Long value ) { this . mVdsStatistics.setMemShared ( value ) ; }
Source:
public boolean evaluate ( java.lang.Object o ) { return ( ( org.ovirt.engine.core.common.businessentities.storage.LUNs ) ( o ) ) . getId ( ) . equals ( lun.getId ( ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult validRemovableHostedEngineDisks ( org.ovirt.engine.core.common.businessentities.VM vm ) { return ( isHostedEngineDirectLunDisk ( ) ) || ( ! ( vm.isHostedEngine ( ) ) ) ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_HOSTED_ENGINE_DISK ) ; }
Source:
protected void emitOnMessageReceived ( org.ovirt.vdsm.jsonrpc.client.reactors.stomp.impl.Message message ) { message.trimEndOfMessage ( ) ; headerBuffer = java.nio.ByteBuffer.allocate ( org.ovirt.vdsm.jsonrpc.client.reactors.stomp.BUFFER_SIZE ) ; this . ibuff = null ; this . message = null ; processMessage ( message ) ; }

Target:
protected void emitOnMessageReceived ( org.ovirt.vdsm.jsonrpc.client.reactors.stomp.impl.Message message ) { message.trimEndOfMessage ( ) ; clean ( ) ; processMessage ( message ) ; }
Source:
public void ExecuteCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand ) { actionButtonInterface.onClick ( ) . invoke ( org.ovirt.engine.ui.webadmin.plugin.entity.BaseEntity.arrayFrom ( table.getSelectedItems ( ) ) , null ) ; }

Target:
public void ExecuteCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand ) { actionButtonInterface.onClick ( ) . invoke ( org.ovirt.engine.ui.webadmin.plugin.entity.EntityObject.arrayFrom ( table.getSelectedItems ( ) ) , null ) ; }
Source:
public void testGetNotFound ( ) { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( 0 , true ) ; try { resource.get ( ) ; org.junit.jupiter.api.Assertions.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testBadGuid ( ) { verifyNotFoundException ( org.junit.jupiter.api.Assertions.assertThrows ( javax.ws.rs.WebApplicationException.class , ( ) -> new org.ovirt.engine.api.restapi.resource.BackendIconResource ( "foo" ) ) ) ; }
Source:
public void search ( ) { if ( ( getEntity ( ) ) != null ) { super . search ( ) ; } }

Target:
public void search ( ) { if ( ( org.ovirt.engine.ui.uicommonweb.models.configure.PermissionListModel.getEntity ( ) ) != null ) { super . search ( ) ; } }
Source:
java.lang.String getRefreshRateItemKey ( ) { return ( ( org.ovirt.engine.ui.common.widget.refresh.AbstractRefreshManager.GRID_REFRESH_RATE_PREFIX ) + "_" ) + ( controller.getId ( ) ) ; }

Target:
public void setCurrentRefreshRate ( int newRefreshRate ) { saveRefreshRate ( newRefreshRate ) ; getModelTimer ( ) . setRefreshRate ( readRefreshRate ( ) ) ; updateTimer ( ) ; }
Source:
public java.lang.String getDiskName ( ) { return org.ovirt.engine.core.compat.backendcompat.Path.GetFileName ( mCdImagePath ) ; }

Target:
public java.lang.String getDiskName ( ) { return new java.io.File ( mCdImagePath ) . getName ( ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { loginAllButton.getCommand ( ) . Execute ( ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { loginAllButton.getCommand ( ) . execute ( ) ; }
Source:
protected java.lang.String composeRegex ( ) { return ( ( start ( ) ) + ( onlyTheseChars ( ) ) ) + ( end ( ) ) ; }

Target:
protected java.lang.String composeRegex ( ) { return ( ( ( ( start ( ) ) + ( letters ( ) ) ) + ( numbers ( ) ) ) + ( specialCharacters ( ) ) ) + ( end ( ) ) ; }
Source:
public void importVms ( org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback callback , java.util.Map < org.ovirt.engine.core.compat.Guid , java.lang.Object > cloneObjectMap ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runMultipleAction ( VdcActionType.ImportVm , buildImportVmParameters ( cloneObjectMap ) , callback , this ) ; }

Target:
public void importVms ( org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback callback , java.util.Map < org.ovirt.engine.core.compat.Guid , java.lang.Object > cloneObjectMap ) { startProgress ( null ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runMultipleAction ( VdcActionType.ImportVm , buildImportVmParameters ( cloneObjectMap ) , callback , this ) ; }
Source:
public boolean isLinux ( int osId ) ;

Target:
int getMinimumRam ( int osId , org.ovirt.engine.core.compat.Version version ) ;
Source:
public void validateVmMemoryCantRunOnVdsSmallHost ( ) { vds.setPhysicalMemMb ( 5000 ) ; boolean vmPassedMemoryRequirement = org.ovirt.engine.core.bll.scheduling.SlaValidator.getInstance ( ) . hasOvercommitMemoryToRunVM ( vds , vm ) ; org.junit.Assert.assertEquals ( vmPassedMemoryRequirement , false ) ; }

Target:
public void validateVmMemoryCantRunOnVdsSmallHost ( ) { vds.setPhysicalMemMb ( 5000 ) ; boolean vmPassedMemoryRequirement = slaValidator.hasOvercommitMemoryToRunVM ( vds , vm ) ; org.junit.Assert.assertFalse ( vmPassedMemoryRequirement ) ; }
Source:
public org.ovirt.engine.core.compat.Guid createTask ( org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { return super . createTask ( asyncTaskCreationInfo , parentCommand ) ; }

Target:
public org.ovirt.engine.core.compat.Guid persistAsyncTaskPlaceHolder ( java.lang.String taskKey ) { return super . persistAsyncTaskPlaceHolder ( getActionType ( ) , taskKey ) ; }
Source:
protected java.util.List < java.lang.String > missingServerCpuFlags ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return org.ovirt.engine.core.bll.CpuFlagsManagerHandler.missingServerCpuFlags ( org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getCpuName ( ) , vds.getCpuFlags ( ) , org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getCompatibilityVersion ( ) ) ; }

Target:
protected java.util.List < java.lang.String > missingServerCpuFlags ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getCpuFlagsManagerHandler ( ) . missingServerCpuFlags ( org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getCpuName ( ) , vds.getCpuFlags ( ) , org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getCompatibilityVersion ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.network.Network getNetwork ( ) { if ( ( network ) == null ) { network = getDbFacade ( ) . getNetworkDao ( ) . get ( attachment.getNetworkId ( ) ) ; } return network ; }

Target:
protected boolean isRoleNetwork ( ) { return ( ( getNetworkCluster ( ) . isDisplay ( ) ) || ( getNetworkCluster ( ) . isMigration ( ) ) ) || ( getNetworkCluster ( ) . isGluster ( ) ) ; }
Source:
public org.ovirt.engine.core.dao.gluster.GlusterBrickDao getGlusterBrickDao ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getGlusterBrickDao ( ) ; }

Target:
private org.ovirt.engine.core.dal.dbbroker.DbFacade getDbFacade ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) ; }
Source:
public void setOutAverageUpperlimit ( java.lang.Integer outAverageUpperlimit ) { this . outAverageUpperlimit = outAverageUpperlimit ; }

Target:
public void setOutAverageLinkshare ( java.lang.Integer outAverageLinkshare ) { hostNetworkQosProperties.setOutAverageLinkshare ( outAverageLinkshare ) ; }
Source:
public org.ovirt.engine.core.bll.storage.ISingleAsyncOperation CreateSingleAsyncOperation ( ) { return new org.ovirt.engine.core.bll.storage.DisconnectStoragePoolAsyncOperation ( getVdss ( ) , getStoragePool ( ) ) ; }

Target:
public org.ovirt.engine.core.bll.storage.ISingleAsyncOperation createSingleAsyncOperation ( ) { return new org.ovirt.engine.core.bll.storage.DisconnectStoragePoolAsyncOperation ( getVdss ( ) , getStoragePool ( ) ) ; }
Source:
public void testValidName ( ) { prepareVmToPassCanDoAction ( ) ; mockVmValidator ( ) ; boolean c = command.canDoAction ( ) ; org.junit.Assert.assertTrue ( "canDoAction should have passed." , c ) ; }

Target:
public void testChangeToExistingName ( ) { prepareVmToPassValidate ( ) ; mockSameNameQuery ( true ) ; org.junit.Assert.assertFalse ( "validate should have failed with vm name already in use." , command.validate ( ) ) ; assertValidateMessage ( EngineMessage.ACTION_TYPE_FAILED_NAME_ALREADY_USED ) ; }
Source:
public void setId ( org.ovirt.engine.core.compat.Guid id ) { getStorageStaticData ( ) . setId ( id ) ; getStorageDynamicData ( ) . setId ( id ) ; getStoragePoolIsoMapData ( ) . setstorage_id ( id ) ; }

Target:
public void setId ( org.ovirt.engine.core.compat.Guid id ) { getStorageStaticData ( ) . setId ( id ) ; getStorageDynamicData ( ) . setId ( id ) ; getStoragePoolIsoMapData ( ) . setStorageId ( id ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VDSGroup lookupCluster ( org.ovirt.engine.core.compat.Guid id ) { return getEntity ( org.ovirt.engine.core.common.businessentities.VDSGroup.class , VdcQueryType.GetVdsGroupByVdsGroupId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) , "GetVdsGroupByVdsGroupId" ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.Cluster lookupCluster ( org.ovirt.engine.core.compat.Guid id ) { return getEntity ( org.ovirt.engine.core.common.businessentities.Cluster.class , VdcQueryType.GetClusterByClusterId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) , "GetClusterByClusterId" ) ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.vms.ExportVmModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ExportVmModel ) ( result.getState ( ) ) ) ; localModel.StopProgress ( ) ; Cancel ( ) ; }

Target:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.vms.ExportVmModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ExportVmModel ) ( result.getState ( ) ) ) ; localModel.StopProgress ( ) ; cancel ( ) ; }
Source:
public void testGetAllByVMTemplateNameInvalidName ( ) { org.ovirt.engine.core.dao.AuditLogDAOTest.assertGetByNameInvalidResults ( dao.getAllByVMTemplateName ( "There is no such VM!!!" ) ) ; }

Target:
public void testGetAllByVMTemplateName ( ) { org.ovirt.engine.core.dao.AuditLogDAOTest.assertGetByNameValidResults ( dao.getAllByVMTemplateId ( org.ovirt.engine.core.dao.AuditLogDAOTest.VM_TEMPLATE_ID ) ) ; }
Source:
public static boolean validHostname ( java.lang.String s ) { if ( ( s == null ) || ( s.trim ( ) . isEmpty ( ) ) ) { return false ; } try { java.net.URI host = new java.net.URI ( ( "http://" + s ) ) ; return s.equals ( host.getHost ( ) ) ; } catch ( java.net.URISyntaxException use ) { return false ; } }

Target:
private static boolean isValidIpAddressOrHostname ( java.lang.String address ) { try { java.net.URI uri = new java.net.URI ( ( "http://" + address ) ) ; return address.equals ( uri.getHost ( ) ) ; } catch ( java.net.URISyntaxException use ) { return false ; } }
Source:
private org.ovirt.engine.core.dao.MacPoolDao getMacPoolDao ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getMacPoolDao ( ) ; }

Target:
public org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolManagerStrategy getPoolById ( org.ovirt.engine.core.compat.Guid macPoolId ) { try ( org.ovirt.engine.core.utils.lock.AutoCloseableLock lock = readLockResource ( ) ) { return getPoolWithoutLocking ( macPoolId ) ; } }
Source:
private org.ovirt.engine.core.common.businessentities.VdsStatic getVdsStatic ( ) { org.ovirt.engine.core.common.businessentities.VdsStatic vds = new org.ovirt.engine.core.common.businessentities.VdsStatic ( ) ; vds.setVdsGroupId ( clusterId ) ; vds.setHostName ( org.ovirt.engine.core.bll.gluster.ReplaceGlusterVolumeBrickCommandTest.serverName ) ; return vds ; }

Target:
private org.ovirt.engine.core.common.businessentities.VdsStatic getVdsStatic ( ) { org.ovirt.engine.core.common.businessentities.VdsStatic vds = new org.ovirt.engine.core.common.businessentities.VdsStatic ( ) ; vds.setClusterId ( clusterId ) ; vds.setHostName ( org.ovirt.engine.core.bll.gluster.ReplaceGlusterVolumeBrickCommandTest.serverName ) ; return vds ; }
Source:
public void updateAll ( java.lang.String procedureName , java.util.Collection < T > entities ) { for ( T entity : entities ) { update ( entity , ( procedureName == null ? org.ovirt.engine.core.dao.MassOperationsGenericDaoDbFacade.getProcedureNameForUpdate ( ) : procedureName ) ) ; } }

Target:
public void updateAllInBatch ( java.util.Collection < T > entities ) { updateAllInBatch ( org.ovirt.engine.core.dao.MassOperationsGenericDaoDbFacade.getProcedureNameForUpdate ( ) , entities , getBatchMapper ( ) ) ; }
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.StoragePool > ) ( source ) ) : null ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( org.ovirt.engine.core.common.businessentities.StorageServerConnections ) ( source ) ) : null ; }
Source:
public void validateIsoPrefixWithBackSlash ( ) throws java.lang.Exception { java.lang.String initrd = "iso:\\" ; org.ovirt.engine.core.common.businessentities.VM vm = createVmForTesting ( initrd , null ) ; org.junit.Assert.assertEquals ( vm.getinitrd_url ( ) , "iso:\\" ) ; }

Target:
public void validateIsoPrefixWithBackSlash ( ) throws java.lang.Exception { java.lang.String initrd = "iso:\\" ; org.ovirt.engine.core.common.businessentities.VM vm = createVmForTesting ( initrd , null ) ; org.junit.Assert.assertEquals ( vm.getInitrdUrl ( ) , "iso:\\" ) ; }
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.StorageDomain > ) ( source ) ) : null ; }

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.StorageDomain > ) ( source ) ) : null ; }
Source:
public void checkValidIpv6ConfigurationDHCPBootProtocol ( ) { initIpv6ConfigurationDetails ( Ipv6BootProtocol.AUTOCONF , false , false ) ; org.junit.Assert.assertThat ( underTest.validateNetworkAttachmentIpConfiguration ( networkAttachments ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void checkValidIpv6ConfigurationDHCPBootProtocol ( ) { initIpv6ConfigurationDetails ( Ipv6BootProtocol.AUTOCONF , false , false ) ; org.hamcrest.MatcherAssert.assertThat ( underTest.validateNetworkAttachmentIpConfiguration ( networkAttachments ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public org.ovirt.engine.api.model.User getUserByName ( java.lang.String name ) { return performGet ( VdcQueryType.GetDbUserByUserName , new org.ovirt.engine.core.common.queries.NameQueryParameters ( name ) , org.ovirt.engine.api.model.BaseResource.class ) ; }

Target:
public org.ovirt.engine.api.model.User getUserByNameAndDomain ( java.lang.String userName , java.lang.String domainName ) { return performGet ( VdcQueryType.GetDbUserByUserNameAndDomain , new org.ovirt.engine.core.common.queries.GetDbUserByUserNameAndDomainQueryParameters ( userName , domainName ) , org.ovirt.engine.api.model.BaseResource.class ) ; }
Source:
protected void endWithFailure ( ) { removeDRSnapshots ( ) ; super . endWithFailure ( ) ; }

Target:
protected void endWithFailure ( ) { org.ovirt.engine.core.bll.storage.dr.GlusterStorageSyncCommand.getParameters ( ) . setTaskGroupSuccess ( false ) ; org.ovirt.engine.core.bll.storage.dr.GlusterStorageSyncCommand.setSucceeded ( false ) ; removeDRSnapshots ( ) ; }
Source:
public static boolean hasTasksForEntityIdAndAction ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.common.action.VdcActionType type ) { return org.ovirt.engine.core.bll.tasks.TaskManagerUtil.getAsyncTaskManager ( ) . hasTasksForEntityIdAndAction ( id , type ) ; }

Target:
public static boolean hasTasksForEntityIdAndAction ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.common.action.VdcActionType type ) { return org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.getAsyncTaskManager ( ) . hasTasksForEntityIdAndAction ( id , type ) ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { Cancel ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { }
Source:
public org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorTest.HostSetupNetworksValidatorBuilder setNetworkBusinessEntityMap ( org.ovirt.engine.core.common.businessentities.BusinessEntityMap < org.ovirt.engine.core.common.businessentities.network.Network > networkBusinessEntityMap ) { this . networkBusinessEntityMap = networkBusinessEntityMap ; return this ; }

Target:
public org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorTest.HostSetupNetworksValidatorBuilder addNetworks ( org.ovirt.engine.core.common.businessentities.network.Network ... networks ) { if ( ( networks.length ) == 0 ) { return this ; } addNetworks ( java.util.Arrays.asList ( networks ) ) ; return this ; }
Source:
public void testIsNotLocalFsWithDefaultCluster ( ) { storagePool.setStorageType ( StorageType.LOCALFS ) ; org.mockito.Mockito.doReturn ( false ) . when ( validator ) . containsDefaultCluster ( ) ; org.junit.Assert.assertTrue ( validator.isNotLocalfsWithDefaultCluster ( ) . isValid ( ) ) ; }

Target:
public void testIsNotLocalFsWithDefaultCluster ( ) { storagePool.setIsLocal ( true ) ; org.mockito.Mockito.doReturn ( false ) . when ( validator ) . containsDefaultCluster ( ) ; org.junit.Assert.assertTrue ( validator.isNotLocalfsWithDefaultCluster ( ) . isValid ( ) ) ; }
Source:
public java.lang.Void runInTransaction ( ) { AddVmTemplateToDb ( ) ; getCompensationContext ( ) . stateChanged ( ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { addVmTemplateToDb ( ) ; getCompensationContext ( ) . stateChanged ( ) ; return null ; }
Source:
public void testDataCenterLinks ( ) throws java.lang.Exception { org.ovirt.engine.api.model.DataCenter dataCenter = new org.ovirt.engine.api.model.DataCenter ( ) ; dataCenter.setId ( org.ovirt.engine.api.restapi.util.LinkHelperTest.DATA_CENTER_ID ) ; org.ovirt.engine.api.restapi.util.LinkHelper.addLinks ( dataCenter ) ; assertEquals ( org.ovirt.engine.api.restapi.util.LinkHelperTest.DATA_CENTER_HREF , dataCenter.getHref ( ) ) ; }

Target:
public void testDataCenterLinks ( ) throws java.lang.Exception { org.ovirt.engine.api.model.DataCenter dataCenter = new org.ovirt.engine.api.model.DataCenter ( ) ; dataCenter.setId ( org.ovirt.engine.api.restapi.util.LinkHelperTest.DATA_CENTER_ID ) ; org.ovirt.engine.api.restapi.util.LinkHelper.addLinks ( dataCenter ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.api.restapi.util.LinkHelperTest.DATA_CENTER_HREF , dataCenter.getHref ( ) ) ; }
Source:
public static void removeVolumeAlert ( org.ovirt.engine.core.compat.Guid volumeId , org.ovirt.engine.core.common.AuditLogType type ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getAuditLogDao ( ) . removeAllOfTypeForVolume ( volumeId , type.getValue ( ) ) ; }

Target:
public void removeVolumeAlert ( org.ovirt.engine.core.compat.Guid volumeId , org.ovirt.engine.core.common.AuditLogType type ) { auditLogDao.removeAllOfTypeForVolume ( volumeId , type.getValue ( ) ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel determineAdditionalConsoleModelForVm ( org.ovirt.engine.core.common.businessentities.VM vm ) { if ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.IsWindowsOsType ( vm.getVmOs ( ) ) ) { return cachedConsoleModels.get ( vm.getId ( ) ) . get ( org.ovirt.engine.ui.uicommonweb.models.ConsoleModelsCache.RDP_INDEX ) ; } return null ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel determineAdditionalConsoleModelForVm ( org.ovirt.engine.core.common.businessentities.VM vm ) { if ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.isWindowsOsType ( vm.getVmOsId ( ) ) ) { return cachedConsoleModels.get ( vm.getId ( ) ) . get ( org.ovirt.engine.ui.uicommonweb.models.ConsoleModelsCache.RDP_INDEX ) ; } return null ; }
Source:
private org.ovirt.engine.core.compat.Guid createTaskImpl ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand , java.lang.String description , java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.VdcObjectType > entitiesMap ) { return org.ovirt.engine.core.bll.tasks.TaskManagerUtil.createTask ( taskId , this , asyncTaskCreationInfo , parentCommand , description , entitiesMap ) ; }

Target:
private org.ovirt.engine.core.compat.Guid createTaskImpl ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand , java.lang.String description , java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.VdcObjectType > entitiesMap ) { return org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.createTask ( taskId , this , asyncTaskCreationInfo , parentCommand , description , entitiesMap ) ; }
Source:
public static void addPermissions ( org.ovirt.engine.core.compat.Guid userId , org.ovirt.engine.core.compat.Guid networkId , boolean publicUse ) { org.ovirt.engine.core.bll.network.cluster.NetworkHelper.addPermission ( userId , networkId , PredefinedRoles.NETWORK_ADMIN ) ; if ( publicUse ) { org.ovirt.engine.core.bll.network.cluster.NetworkHelper.addPermission ( MultiLevelAdministrationHandler.EVERYONE_OBJECT_ID , networkId , PredefinedRoles.NETWORK_USER ) ; } }

Target:
public static void addPermissionsOnVnicProfile ( org.ovirt.engine.core.compat.Guid userId , org.ovirt.engine.core.compat.Guid vnicProfileId , boolean publicUse ) { org.ovirt.engine.core.bll.network.cluster.NetworkHelper.addPermission ( userId , vnicProfileId , PredefinedRoles.NETWORK_ADMIN ) ; if ( publicUse ) { org.ovirt.engine.core.bll.network.cluster.NetworkHelper.addPermission ( MultiLevelAdministrationHandler.EVERYONE_OBJECT_ID , vnicProfileId , PredefinedRoles.VNIC_PROFILE_USER ) ; } }
Source:
private org.ovirt.engine.core.common.action.VdcReturnValueBase verifyCalled ( org.ovirt.engine.core.common.action.ActionType actionType , org.mockito.verification.VerificationMode times ) { return org.mockito.Mockito.verify ( backend , times ) . runInternalAction ( org.mockito.ArgumentMatchers.eq ( actionType ) , org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.common.action.VdcActionParametersBase.class ) ) ; }

Target:
private org.ovirt.engine.core.common.action.VdcReturnValueBase verifyCalled ( org.ovirt.engine.core.common.action.ActionType actionType , org.mockito.verification.VerificationMode times ) { return org.mockito.Mockito.verify ( backend , times ) . runInternalAction ( org.mockito.ArgumentMatchers.eq ( actionType ) , org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.common.action.ActionParametersBase.class ) ) ; }
Source:
public void setvds_group_compatibility_version ( org.ovirt.engine.core.compat.Version value ) { if ( org.ovirt.engine.core.compat.Version.OpInequality ( getvds_group_compatibility_version ( ) , value ) ) { this . vds_group_compatibility_versionField = value ; } }

Target:
public void setVdsGroupCompatibilityVersion ( org.ovirt.engine.core.compat.Version value ) { if ( org.ovirt.engine.core.compat.Version.OpInequality ( getVdsGroupCompatibilityVersion ( ) , value ) ) { this . vdsGroupCompatibilityVersion = value ; } }
Source:
public void logoutUser ( final java.lang.Object userObject , final org.ovirt.engine.ui.frontend.communication.VdcUserCallback < ? > callback ) { communicationProvider.logout ( userObject , callback ) ; }

Target:
public void logoutUser ( final java.lang.Object userObject , final org.ovirt.engine.ui.frontend.communication.UserCallback < ? > callback ) { communicationProvider.logout ( userObject , callback ) ; }
Source:
public void setfail_back ( boolean value ) { this . mVmStatic.setfail_back ( value ) ; }

Target:
public void setExportDate ( java.util.Date value ) { this . vmStatic.setExportDate ( value ) ; }
Source:
public void init ( ) { this . mapper = new org.codehaus.jackson.map.ObjectMapper ( ) ; setBrandingManager ( new org.ovirt.engine.ui.frontend.server.gwt.branding.BrandingManager ( ) ) ; }

Target:
void init ( org.codehaus.jackson.map.ObjectMapper mapper , org.ovirt.engine.ui.frontend.server.gwt.branding.BrandingManager brandingManager ) { this . mapper = mapper ; this . brandingManager = brandingManager ; }
Source:
public void vlanIdNoNetworks ( ) throws java.lang.Exception { vlanIdAvailableTest ( ValidationResult.VALID , java.util.Collections.< org.ovirt.engine.core.common.businessentities.network.Network > emptyList ( ) ) ; }

Target:
public void vlanIdNoNetworks ( ) throws java.lang.Exception { vlanIdAvailableTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , java.util.Collections.< org.ovirt.engine.core.common.businessentities.network.Network > emptyList ( ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { return source != null ? source : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSession > ( ) ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? source : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity > ( ) ; }
Source:
protected void finalize ( ) throws java.lang.Throwable { Dispose ( ) ; super . finalize ( ) ; }

Target:
protected void finalize ( ) throws java.lang.Throwable { dispose ( ) ; super . finalize ( ) ; }
Source:
public org.ovirt.engine.core.searchbackend.IConditionValueAutoCompleter getFieldValueAutoCompleter ( java.lang.String fieldName ) { org.ovirt.engine.core.searchbackend.IConditionValueAutoCompleter retval = null ; if ( org.ovirt.engine.core.searchbackend.StringHelper.EqOp ( fieldName , "TYPE" ) ) { retval = new org.ovirt.engine.core.searchbackend.EnumValueAutoCompleter ( org.ovirt.engine.core.searchbackend.VmPoolType.class ) ; } else { } return retval ; }

Target:
public org.ovirt.engine.core.searchbackend.IConditionValueAutoCompleter getFieldValueAutoCompleter ( java.lang.String fieldName ) { org.ovirt.engine.core.searchbackend.IConditionValueAutoCompleter retval = null ; if ( "TYPE" . equals ( fieldName ) ) { retval = new org.ovirt.engine.core.searchbackend.EnumValueAutoCompleter ( org.ovirt.engine.core.common.businessentities.VmPoolType.class ) ; } return retval ; }
Source:
public void getSubPaths_malformedPath ( ) { tested.getSubPaths ( ".a." ) ; }

Target:
public void getSubPaths_malformedPath ( ) { org.junit.jupiter.api.Assertions.assertThrows ( java.lang.IllegalStateException.class , ( ) -> tested.getSubPaths ( ".a." ) ) ; }
Source:
private void updateDisplayProtocols ( ) { boolean isVncSelected = ( vm.getDefaultDisplayType ( ) ) == ( org.ovirt.engine.core.common.businessentities.DisplayType.vnc ) ; getDisplayConsole_Vnc_IsSelected ( ) . setEntity ( isVncSelected ) ; getDisplayConsole_Spice_IsSelected ( ) . setEntity ( ( ! isVncSelected ) ) ; }

Target:
private void updateDisplayProtocols ( ) { boolean isVncSelected = ( vm.getDefaultDisplayType ( ) ) == ( org.ovirt.engine.core.common.businessentities.DisplayType.vga ) ; getDisplayConsole_Vnc_IsSelected ( ) . setEntity ( isVncSelected ) ; getDisplayConsole_Spice_IsSelected ( ) . setEntity ( ( ! isVncSelected ) ) ; }
Source:
private void acquireHostDevicesLock ( ) { if ( needsHostDevices ) { hostDeviceManager.acquireHostDevicesLock ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getDedicatedVmForVds ( ) ) ; } }

Target:
private void acquireHostDevicesLock ( ) { if ( needsHostDevices ) { hostDeviceManager.acquireHostDevicesLock ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getDedicatedVmForVdsList ( ) . get ( 0 ) ) ; } }
Source:
public void shouldCreateLessNumaNodesAsVirtualCores ( ) { vm.setNumOfSockets ( 1 ) ; vm.setCpuPerSocket ( 3 ) ; assertTrue ( org.ovirt.engine.core.bll.numa.vm.NumaValidator.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) . isValid ( ) ) ; }

Target:
public void shouldCreateLessNumaNodesAsVirtualCores ( ) { vm.setNumOfSockets ( 1 ) ; vm.setCpuPerSocket ( 3 ) ; org.junit.Assert.assertTrue ( org.ovirt.engine.core.bll.numa.vm.NumaValidator.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) . isValid ( ) ) ; }
Source:
public java.lang.String exportVm ( org.ovirt.engine.core.common.businessentities.VM vm , java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > images , org.ovirt.engine.core.compat.Version version ) { org.ovirt.engine.core.utils.ovf.OvfWriter ovf = new org.ovirt.engine.core.utils.ovf.OvfVmWriter ( vm , images , version ) ; buildOvf ( ovf ) ; return ovf.getStringRepresentation ( ) ; }

Target:
public java.lang.String exportVm ( org.ovirt.engine.core.common.businessentities.VM vm , java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > images , org.ovirt.engine.core.compat.Version version ) { return new org.ovirt.engine.core.utils.ovf.OvfVmWriter ( vm , images , version ) . build ( ) . getStringRepresentation ( ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VM > getVmList ( ) { return org.ovirt.engine.core.bll.pm.FenceVdsBaseCommand.getVmDAO ( ) . getAllRunningForVds ( org.ovirt.engine.core.bll.pm.FenceVdsBaseCommand.getVdsId ( ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VM > getVmList ( ) { return org.ovirt.engine.core.bll.pm.FenceVdsBaseCommand.getVmDao ( ) . getAllRunningForVds ( org.ovirt.engine.core.bll.pm.FenceVdsBaseCommand.getVdsId ( ) ) ; }
Source:
public void testGetFullPath_nullParameter ( ) { java.lang.String fullPath = testServlet.getFullPath ( mockFile , null ) ; org.junit.Assert.assertNull ( "Path should be null" , fullPath ) ; }

Target:
public void testGetFullPath_NonSaneParameter ( ) { java.io.File file = testServlet.getFile ( mockFile , "../something" ) ; org.junit.Assert.assertNull ( "Path should be null" , file ) ; }
Source:
private org.ovirt.engine.core.bll.FenceExecutor createFenceExecutor ( org.ovirt.engine.core.common.businessentities.FenceActionType actionType ) { return new org.ovirt.engine.core.bll.FenceExecutor ( org.ovirt.engine.core.bll.FenceVdsBaseCommand.getVds ( ) , actionType ) ; }

Target:
private org.ovirt.engine.core.bll.FenceExecutor createFenceExecutor ( org.ovirt.engine.core.common.businessentities.FenceActionType actionType ) { return new org.ovirt.engine.core.bll.FenceExecutor ( org.ovirt.engine.core.bll.FenceVdsBaseCommand.getVds ( ) , actionType , org.ovirt.engine.core.bll.FenceVdsBaseCommand.getParameters ( ) . getFencingPolicy ( ) ) ; }
Source:
public Q lookupEntity ( org.ovirt.engine.core.compat.Guid id ) throws org.ovirt.engine.api.restapi.resource.BackendFailureException { return doGetEntity ( entityType , query , getQueryParams ( queryParamsClass , id ) , id.toString ( ) ) ; }

Target:
public Q lookupEntity ( T id ) throws org.ovirt.engine.api.restapi.resource.BackendFailureException { return doGetEntity ( entityType , query , getQueryParams ( queryParamsClass , id ) , id.toString ( ) ) ; }
Source:
public void setProtocol ( org.ovirt.engine.core.common.businessentities.VdsProtocol value ) { this . mVdsStatic.setProtocol ( value ) ; }

Target:
public void setProtocol ( org.ovirt.engine.core.common.businessentities.VdsProtocol value ) { vdsStatic.setProtocol ( value ) ; }
Source:
public void canDoActionFailsOnNonExistingEvent ( ) { command = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.RemoveAuditLogByIdCommand ( new org.ovirt.engine.core.common.action.RemoveAuditLogByIdParameters ( org.ovirt.engine.core.bll.RemoveAuditLogByIdCommandTest.EVENT_ID_1 ) ) ) ; prepareMocks ( command ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.AUDIT_LOG_CANNOT_REMOVE_AUDIT_LOG_NOT_EXIST ) ; }

Target:
public void validateFailsOnNonExistingEvent ( ) { command = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.RemoveAuditLogByIdCommand ( new org.ovirt.engine.core.common.action.RemoveAuditLogByIdParameters ( org.ovirt.engine.core.bll.RemoveAuditLogByIdCommandTest.EVENT_ID_1 ) ) ) ; prepareMocks ( command ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.AUDIT_LOG_CANNOT_REMOVE_AUDIT_LOG_NOT_EXIST ) ; }
Source:
org.ovirt.engine.ui.uicommonweb.models.IModel setIsChangable ( boolean value ) ;

Target:
org.ovirt.engine.ui.uicommonweb.models.IModel setIsChangeable ( boolean value ) ;
Source:
protected void ExecuteIrsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.irsbroker.SetStoragePoolDescriptionVDSCommand.getIrsProxy ( ) . setStoragePoolDescription ( org.ovirt.engine.core.vdsbroker.irsbroker.SetStoragePoolDescriptionVDSCommand.getParameters ( ) . getStoragePoolId ( ) . toString ( ) , org.ovirt.engine.core.vdsbroker.irsbroker.SetStoragePoolDescriptionVDSCommand.getParameters ( ) . getDescription ( ) ) ; org.ovirt.engine.core.vdsbroker.irsbroker.SetStoragePoolDescriptionVDSCommand.proceedProxyReturnValue ( ) ; }

Target:
protected void executeIrsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.irsbroker.SetStoragePoolDescriptionVDSCommand.getIrsProxy ( ) . setStoragePoolDescription ( org.ovirt.engine.core.vdsbroker.irsbroker.SetStoragePoolDescriptionVDSCommand.getParameters ( ) . getStoragePoolId ( ) . toString ( ) , org.ovirt.engine.core.vdsbroker.irsbroker.SetStoragePoolDescriptionVDSCommand.getParameters ( ) . getDescription ( ) ) ; org.ovirt.engine.core.vdsbroker.irsbroker.SetStoragePoolDescriptionVDSCommand.proceedProxyReturnValue ( ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.storage.LunDisk disk = ( ( org.ovirt.engine.core.common.businessentities.storage.LunDisk ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ) ) ; return disk.getLun ( ) . getLUN_id ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.storage.LunDisk disk = ( ( org.ovirt.engine.core.common.businessentities.storage.LunDisk ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ) ) ; return disk.getLun ( ) . getLUNId ( ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.AsyncTasks getAsyncTask ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.bll.CommandBase command , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { return org.ovirt.engine.core.bll.tasks.TaskManagerUtil.coco.getAsyncTask ( taskId , command , asyncTaskCreationInfo , parentCommand ) ; }

Target:
public static org.ovirt.engine.core.common.businessentities.AsyncTasks getAsyncTask ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.bll.CommandBase command , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { return org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.coco.getAsyncTask ( taskId , command , asyncTaskCreationInfo , parentCommand ) ; }
Source:
private org.ovirt.engine.core.bll.ValidationResult notManagementNetwork ( ) { java.lang.String managementNetwork = org.ovirt.engine.core.common.config.Config.< java.lang.String > GetValue ( ConfigValues.ManagementNetwork ) ; return managementNetwork.equals ( geRemovedtNetwork ( ) . getName ( ) ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.NETWORK_CAN_NOT_REMOVE_DEFAULT_NETWORK ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
private org.ovirt.engine.core.bll.ValidationResult notManagementNetwork ( ) { java.lang.String managementNetwork = org.ovirt.engine.core.common.config.Config.< java.lang.String > GetValue ( ConfigValues.ManagementNetwork ) ; return managementNetwork.equals ( getRemovedNetwork ( ) . getName ( ) ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.NETWORK_CAN_NOT_REMOVE_DEFAULT_NETWORK ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
protected void setUpQueryExpectations ( java.lang.String query ) throws java.lang.Exception { if ( org.apache.commons.lang.StringUtils.isNotBlank ( query ) ) { query = ( " AND (" + query ) + ")" ; } super . setUpQueryExpectations ( query ) ; }

Target:
protected void setUpQueryExpectations ( java.lang.String query ) throws java.lang.Exception { if ( org.apache.commons.lang.StringUtils.isNotBlank ( query ) ) { query = " AND " + query ; } super . setUpQueryExpectations ( query ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.LdapGroup getEntity ( int index ) { org.ovirt.engine.core.common.businessentities.LdapGroup entity = new org.ovirt.engine.core.common.businessentities.LdapGroup ( ) ; entity.setid ( EXTERNAL_IDS [ index ] ) ; entity.setname ( NAMES [ index ] ) ; return entity ; }

Target:
protected org.ovirt.engine.core.authentication.DirectoryGroup getEntity ( int index ) { return new org.ovirt.engine.core.authentication.DirectoryGroup ( new org.ovirt.engine.core.authentication.DirectoryStub ( DOMAIN ) , EXTERNAL_IDS [ index ] , NAMES [ index ] ) ; }
Source:
protected com.gwtplatform.mvp.client.proxy.PlaceRequest getMainTabRequest ( ) { return new com.gwtplatform.mvp.client.proxy.PlaceRequest ( org.ovirt.engine.ui.webadmin.place.ApplicationPlaces.reportsMainTabPlace ) ; }

Target:
protected com.gwtplatform.mvp.client.proxy.PlaceRequest getMainTabRequest ( ) { return org.ovirt.engine.ui.common.place.PlaceRequestFactory.get ( ApplicationPlaces.reportsMainTabPlace ) ; }
Source:
public org.ovirt.engine.core.common.queries.ValueObjectMap getFencingAgentInstanceOptionsMap ( ) { return new org.ovirt.engine.core.common.queries.ValueObjectMap ( org.ovirt.engine.core.utils.pm.VdsFencingOptions.fencingAgentInstanceOptions , false ) ; }

Target:
public org.ovirt.engine.core.common.queries.ValueObjectMap getFencingAgentInstanceOptionsMap ( ) { return new org.ovirt.engine.core.common.queries.ValueObjectMap ( org.ovirt.engine.core.utils.pm.VdsFenceOptions.fencingAgentInstanceOptions , false ) ; }
Source:
private void attachFloppy_EntityChanged ( ) { getFloppyImage ( ) . setIsChangable ( getAttachFloppy ( ) . getEntity ( ) ) ; updateInitialRunFields ( ) ; }

Target:
private void attachFloppy_EntityChanged ( ) { getFloppyImage ( ) . setIsChangeable ( getAttachFloppy ( ) . getEntity ( ) ) ; updateInitialRunFields ( ) ; }
Source:
private boolean shouldReturnValue ( org.ovirt.engine.core.common.queries.ConfigurationValues configValue ) { return ( ! ( org.ovirt.engine.core.bll.GetConfigurationValuesQuery.getParameters ( ) . isFiltered ( ) ) ) || ( ! ( configValue.isAdmin ( ) ) ) ; }

Target:
private boolean shouldReturnValue ( org.ovirt.engine.core.common.config.ConfigValues configValue ) { return ( ! ( org.ovirt.engine.core.bll.GetConfigurationValuesQuery.getParameters ( ) . isFiltered ( ) ) ) || ( configValue.nonAdminVisible ( ) ) ; }