auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.VmTemplate , org.ovirt.engine.ui.uicommonweb.models.disks.DiskListModel , org.ovirt.engine.ui.uicommonweb.models.disks.DiskTemplateListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.disk.SubTabDiskTemplatePresenter.constants.diskTemplateSubTabLabel ( ) , 2 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( ) { return new org.ovirt.engine.ui.common.uicommon.model.GroupedTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.disk.SubTabDiskTemplatePresenter.constants.diskTemplateSubTabLabel ( ) , 2 ) ; }
Source:
protected java.util.Set < org.ovirt.engine.core.common.businessentities.HostDevice > getAffectedHostDevices ( ) { java.util.Set < org.ovirt.engine.core.common.businessentities.HostDevice > affectedDevices = new java.util.HashSet < > ( ) ; for ( org.ovirt.engine.core.common.businessentities.HostDevice hostDevice : getHostDevices ( ) ) { affectedDevices.addAll ( getDeviceAtomicGroup ( hostDevice ) ) ; } return affectedDevices ; }

Target:
protected java.util.Set < org.ovirt.engine.core.common.businessentities.HostDevice > getAffectedHostDevices ( ) { return getHostDevices ( ) . stream ( ) . map ( this :: getDeviceAtomicGroup ) . flatMap ( java.util.Collection :: stream ) . collect ( java.util.stream.Collectors.toSet ( ) ) ; }
Source:
public boolean connectStorageToDomainByVdsId ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.compat.Guid vdsId ) { return runConnectionStorageToDomain ( storageDomain , vdsId , VdcActionType.ConnectStorageToVds.getValue ( ) ) ; }

Target:
public org.ovirt.engine.core.common.utils.Pair < java.lang.Boolean , org.ovirt.engine.core.common.errors.VdcFault > connectStorageToDomainByVdsIdDetails ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.compat.Guid vdsId ) { return runConnectionStorageToDomain ( storageDomain , vdsId , VdcActionType.ConnectStorageToVds.getValue ( ) ) ; }
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 ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > ( ) ; }

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.network.Network > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.Network > ( ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.VDSGroup createVdsGroupWithBadVersion ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup group = org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.createNewVdsGroup ( ) ; group.setCompatibilityVersion ( new org.ovirt.engine.core.compat.Version ( 5 , 0 ) ) ; return group ; }

Target:
private static org.ovirt.engine.core.common.businessentities.Cluster createClusterWithBadVersion ( ) { org.ovirt.engine.core.common.businessentities.Cluster group = org.ovirt.engine.core.bll.UpdateClusterCommandTest.createNewCluster ( ) ; group.setCompatibilityVersion ( new org.ovirt.engine.core.compat.Version ( 5 , 0 ) ) ; return group ; }
Source:
protected org.ovirt.engine.core.common.action.VdcActionType getChildActionType ( ) { return org.ovirt.engine.core.common.action.VdcActionType.RemoveSnapshotSingleDisk ; }

Target:
private org.ovirt.engine.core.common.action.VdcActionType getSnapshotActionType ( ) { return org.ovirt.engine.core.bll.RemoveSnapshotCommand.getVm ( ) . isDown ( ) ? org.ovirt.engine.core.common.action.VdcActionType.RemoveSnapshotSingleDisk : org.ovirt.engine.core.common.action.VdcActionType.RemoveSnapshotSingleDiskLive ; }
Source:
protected boolean CanAddDomain ( ) { return org.ovirt.engine.core.bll.storage.AddExistingNFSStorageDomainCommand.CheckExistingStorageDomain ( ) ; }

Target:
protected boolean canAddDomain ( ) { return org.ovirt.engine.core.bll.storage.AddExistingNFSStorageDomainCommand.checkExistingStorageDomain ( ) ; }
Source:
public void writeData ( java.io.ObjectOutputStream dos ) { try { dos.writeInt ( this . history_id ) ; } catch ( java.io.IOException e ) { throw new java.lang.RuntimeException ( e ) ; } }

Target:
public void writeData ( java.io.ObjectOutputStream dos ) { try { dos.writeLong ( this . history_id ) ; } catch ( java.io.IOException e ) { throw new java.lang.RuntimeException ( e ) ; } }
Source:
public void testGetHostsForStorageOperationByStoragePool ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result = dao.getHostsForStorageOperation ( FixturesTool.STORAGE_POOL_RHEL6_ISCSI , false ) ; org.junit.Assert.assertNotNull ( result ) ; assertGetHostsForStorageOperationCorrectStoragePool ( result ) ; }

Target:
public void testGetHostsForStorageOperationByStoragePool ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result = dao.getHostsForStorageOperation ( FixturesTool.STORAGE_POOL_RHEL6_ISCSI , false ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; assertGetHostsForStorageOperationCorrectStoragePool ( result ) ; }
Source:
public java.lang.Void runInTransaction ( ) { org.ovirt.engine.core.bll.VmTemplateHandler.SetVmTemplateStatus ( vmTemplateGuid , VmTemplateStatus.Locked , compensationContext ) ; compensationContext.stateChanged ( ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { org.ovirt.engine.core.bll.VmTemplateHandler.setVmTemplateStatus ( vmTemplateGuid , VmTemplateStatus.Locked , compensationContext ) ; compensationContext.stateChanged ( ) ; return null ; }
Source:
public void runMultipleActions ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , final java.util.List < org.ovirt.engine.ui.uicompat.IFrontendActionAsyncCallback > callbacks ) { runMultipleActions ( actionType , parameters , callbacks , null ) ; }

Target:
public void runMultipleActions ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , final java.util.List < org.ovirt.engine.ui.uicompat.IFrontendActionAsyncCallback > callbacks , final boolean aggregateErrors ) { runMultipleActions ( actionType , parameters , callbacks , null , aggregateErrors ) ; }
Source:
public void testMacToString ( ) throws java.lang.Exception { final java.lang.String macString = "00:1A:4A:01:00:00" ; final long macLong = 112910729216L ; org.junit.Assert.assertThat ( org.ovirt.engine.core.utils.MacAddressRangeUtils.macToString ( macLong ) , org.hamcrest.CoreMatchers.is ( macString ) ) ; }

Target:
public void testMacToLong ( ) throws java.lang.Exception { org.junit.Assert.assertThat ( org.ovirt.engine.core.utils.MacAddressRangeUtils.macToLong ( "00:1a:4a:01:00:00" ) , org.hamcrest.CoreMatchers.is ( 112910729216L ) ) ; }
Source:
protected java.lang.String getObjectName ( java.lang.Object object ) { return ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData ) ( object ) ) . getVm ( ) . getName ( ) ; }

Target:
protected void onSelectedItemChanged ( ) { super . onSelectedItemChanged ( ) ; updateActionsAvailability ( ) ; }
Source:
public void testCompleteParametersAlternativesFirst ( ) throws java.lang.Exception { org.ovirt.engine.api.model.VM vm = new org.ovirt.engine.api.model.VM ( ) ; vm.setName ( "foo" ) ; vm.setHost ( new org.ovirt.engine.api.model.Host ( ) ) ; org.ovirt.engine.api.common.util.CompletenessAssertor.validateParameters ( vm , "name" , "host|status" ) ; }

Target:
public void testCompleteParametersAlternativesFirst ( ) throws java.lang.Exception { org.ovirt.engine.api.model.Vm vm = new org.ovirt.engine.api.model.Vm ( ) ; vm.setName ( "foo" ) ; vm.setHost ( new org.ovirt.engine.api.model.Host ( ) ) ; org.ovirt.engine.api.common.util.CompletenessAssertor.validateParameters ( vm , "name" , "host|status" ) ; }
Source:
public static org.ovirt.engine.core.compat.Guid getMemoryDiskId ( java.lang.String memoryVolume ) { return org.apache.commons.lang.StringUtils.isEmpty ( memoryVolume ) ? null : org.ovirt.engine.core.utils.GuidUtils.getGuidListFromString ( memoryVolume ) . get ( 2 ) ; }

Target:
public static org.ovirt.engine.core.compat.Guid getMemoryDiskId ( java.lang.String memoryVolume ) { return org.apache.commons.lang.StringUtils.isEmpty ( memoryVolume ) ? null : org.ovirt.engine.core.compat.Guid.createGuidListFromString ( memoryVolume ) . get ( 2 ) ; }
Source:
private org.ovirt.engine.ui.uicommonweb.models.storage.IStorageModel PrepareFcpStorageForEdit ( org.ovirt.engine.core.common.businessentities.StorageDomain storage ) { org.ovirt.engine.ui.uicommonweb.models.storage.FcpStorageModel model = new org.ovirt.engine.ui.uicommonweb.models.storage.FcpStorageModel ( ) ; model.setRole ( storage.getStorageDomainType ( ) ) ; PrepareSanStorageForEdit ( model ) ; return model ; }

Target:
private org.ovirt.engine.ui.uicommonweb.models.storage.IStorageModel prepareIscsiStorageForEdit ( org.ovirt.engine.core.common.businessentities.StorageDomain storage ) { org.ovirt.engine.ui.uicommonweb.models.storage.IscsiStorageModel model = new org.ovirt.engine.ui.uicommonweb.models.storage.IscsiStorageModel ( ) ; model.setRole ( storage.getStorageDomainType ( ) ) ; prepareSanStorageForEdit ( model ) ; return model ; }
Source:
public java.lang.Void runInTransaction ( ) { setStorageDomainStatus ( StorageDomainStatus.InActive , getCompensationContext ( ) ) ; calcStoragePoolStatusByDomainsStatus ( ) ; getCompensationContext ( ) . stateChanged ( ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { setStorageDomainStatus ( StorageDomainStatus.Inactive , getCompensationContext ( ) ) ; calcStoragePoolStatusByDomainsStatus ( ) ; getCompensationContext ( ) . stateChanged ( ) ; return null ; }
Source:
private org.ovirt.engine.core.compat.Guid getMaintenanceCmdId ( java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { if ( ( maintenanceCmdId ) == null ) { maintenanceCmdId = findChildCommandByActionType ( VdcActionType.MaintenanceNumberOfVdss , childCmdIds ) ; } return maintenanceCmdId ; }

Target:
private org.ovirt.engine.core.compat.Guid getMaintenanceCmdId ( java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { if ( ( maintenanceCmdId ) == null ) { maintenanceCmdId = findChildCommandByActionType ( ActionType.MaintenanceNumberOfVdss , childCmdIds ) ; } return maintenanceCmdId ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { postPrepareSanStorageForEdit ( model , true ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.storage.StorageListModel storageListModel = ( ( org.ovirt.engine.ui.uicommonweb.models.storage.StorageListModel ) ( result.getState ( ) ) ) ; cleanConnection ( storageListModel.fileConnection , storageListModel.hostId ) ; storageListModel.fileConnection = null ; }
Source:
public void testGetAllForVmWithInvalidVm ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Tags > result = dao.getAllForVm ( org.ovirt.engine.core.compat.Guid.newGuid ( ) . getUuid ( ) . toString ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForVmWithInvalidVm ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Tags > result = dao.getAllForVm ( org.ovirt.engine.core.compat.Guid.newGuid ( ) . getUuid ( ) . toString ( ) ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public void inboundAverageMissing ( ) { qos.setInboundPeak ( org.ovirt.engine.core.bll.validator.NetworkQosValidatorTest.BANDWIDTH_MEDIUM ) ; qos.setInboundBurst ( org.ovirt.engine.core.bll.validator.NetworkQosValidatorTest.BANDWIDTH_MEDIUM ) ; valuesPresentTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_NETWORK_QOS_MISSING_VALUES ) ) ; }

Target:
public void inboundAverageMissing ( ) { qos.setInboundPeak ( org.ovirt.engine.core.bll.validator.NetworkQosValidatorTest.BANDWIDTH_MEDIUM ) ; qos.setInboundBurst ( org.ovirt.engine.core.bll.validator.NetworkQosValidatorTest.BANDWIDTH_MEDIUM ) ; valuesPresentTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_NETWORK_QOS_MISSING_VALUES ) ) ; }
Source:
public void addToHistoryOneOverLimitValuesBefore ( ) { org.junit.Assert.assertEquals ( java.util.Arrays.asList ( 11 , 12 , 13 ) , statistics.addToHistory ( java.util.Arrays.asList ( 10 , 11 , 12 ) , 13 , 3 ) ) ; }

Target:
public void addToHistoryOneOverLimitValuesBefore ( ) { org.junit.jupiter.api.Assertions.assertEquals ( java.util.Arrays.asList ( 11 , 12 , 13 ) , statistics.addToHistory ( java.util.Arrays.asList ( 10 , 11 , 12 ) , 13 , 3 ) ) ; }
Source:
public void testIsDomainExistAndActiveDomainNotExists ( ) { validator = new org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator ( null ) ; org.junit.Assert.assertEquals ( "Wrong failure for null domain" , EngineMessage.ACTION_TYPE_FAILED_STORAGE_DOMAIN_NOT_EXIST , validator.isDomainExistAndActive ( ) . getMessage ( ) ) ; }

Target:
public void testIsDomainExistAndActiveDomainNotExists ( ) { validator = new org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator ( null ) ; org.junit.Assert.assertThat ( "Wrong failure for null domain" , validator.isDomainExistAndActive ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_STORAGE_DOMAIN_NOT_EXIST ) ) ; }
Source:
public org.ovirt.engine.core.compat.Guid persistAsyncTaskPlaceHolder ( java.lang.String taskKey ) { return super . persistAsyncTaskPlaceHolder ( getActionType ( ) , taskKey ) ; }

Target:
public org.ovirt.engine.core.bll.tasks.interfaces.CommandCallback getCallback ( ) { return org.ovirt.engine.core.bll.snapshots.CreateAllSnapshotsFromVmCommand.getParameters ( ) . isUseCinderCommandCallback ( ) ? new org.ovirt.engine.core.bll.ConcurrentChildCommandsExecutionCallback ( ) : null ; }
Source:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s, domain=%s, password=%s, userName=%s" , super . toString ( ) , getDomain ( ) , ( ( getPassword ( ) ) == null ? null : "******" ) , getUserName ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.utils.ToStringBuilder appendAttributes ( org.ovirt.engine.core.common.utils.ToStringBuilder tsb ) { return super . appendAttributes ( tsb ) . append ( "domain" , getDomain ( ) ) . appendFiltered ( "password" , getPassword ( ) ) . append ( "userName" , getUserName ( ) ) ; }
Source:
public void vnicCreated ( org.ovirt.engine.core.compat.Guid vmId ) { if ( ( getWindow ( ) ) != null ) { getWindow ( ) . stopProgress ( ) ; } cancel ( ) ; updateActionAvailability ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { stopProgress ( result.getState ( ) ) ; cancel ( ) ; }
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 org.ovirt.engine.core.aaa.AuthenticationProfile getProfile ( java.lang.String sessionId ) { return ( ( org.ovirt.engine.core.aaa.AuthenticationProfile ) ( getData ( sessionId , org.ovirt.engine.core.bll.aaa.SessionDataContainer.PROFILE_PARAMETER_NAME , false ) ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.bll.utils.PermissionSubject > getPermissionCheckSubjects ( ) { return permissionsChecker.findPermissionCheckSubjects ( getNetworkId ( ) , org.ovirt.engine.core.bll.network.cluster.UpdateNetworkOnClusterCommand.getVdsGroupId ( ) , org.ovirt.engine.core.bll.network.cluster.UpdateNetworkOnClusterCommand.getActionType ( ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.bll.utils.PermissionSubject > getPermissionCheckSubjects ( ) { return permissionsChecker.findPermissionCheckSubjects ( getNetworkId ( ) , org.ovirt.engine.core.bll.network.cluster.UpdateNetworkOnClusterCommand.getClusterId ( ) , org.ovirt.engine.core.bll.network.cluster.UpdateNetworkOnClusterCommand.getActionType ( ) ) ; }
Source:
public final int [ ] getDefaultTokens ( ) { return new int [ ] { com.puppycrawl.tools.checkstyle.api.TokenTypes.VARIABLE_DEF } ; }

Target:
public int [ ] getRequiredTokens ( ) { return new int [ ] { com.puppycrawl.tools.checkstyle.api.TokenTypes.VARIABLE_DEF } ; }
Source:
protected java.lang.String hostnameOrIp ( ) { return ( ( ( "(" + ( ip ( ) ) ) + "|" ) + ( fqdn ( ) ) ) + ")" ; }

Target:
protected java.lang.String hostnameOrIp ( ) { return ( ( ( "(?:" + ( ip ( ) ) ) + "|" ) + ( fqdn ( ) ) ) + ")" ; }
Source:
public void testGetAllForCpuProfiles ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > result = dao.getAllForCpuProfiles ( java.util.Collections.singleton ( FixturesTool.CPU_PROFILE_1 ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( 6 , result.size ( ) ) ; }

Target:
public void testGetAllForCpuProfiles ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > result = dao.getAllForCpuProfiles ( java.util.Collections.singleton ( FixturesTool.CPU_PROFILE_1 ) ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertEquals ( 6 , result.size ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.utils.ToStringBuilder appendAttributes ( org.ovirt.engine.core.common.utils.ToStringBuilder tsb ) { return super . appendAttributes ( tsb ) . append ( "memoryDevice" , getMemoryDevice ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.utils.ToStringBuilder appendAttributes ( org.ovirt.engine.core.common.utils.ToStringBuilder tsb ) { return super . appendAttributes ( tsb ) . append ( "memoryDevice" , getMemoryDevice ( ) ) . append ( "minAllocatedMem" , getMinAllocatedMem ( ) ) ; }
Source:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s, postZeros = %s, forceDelete = %s" , super . toString ( ) , getPostZero ( ) , getForceDelete ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.utils.ToStringBuilder appendAttributes ( org.ovirt.engine.core.common.utils.ToStringBuilder tsb ) { return super . appendAttributes ( tsb ) . append ( "postZeros" , getPostZero ( ) ) . append ( "forceDelete" , getForceDelete ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.network.Bond createBond ( java.lang.String bondName ) { org.ovirt.engine.core.common.businessentities.network.Bond bond = new org.ovirt.engine.core.common.businessentities.network.Bond ( ) ; bond.setName ( bondName ) ; bond.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; return bond ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.Bond createBond ( java.lang.String bondName , java.lang.String networkName , org.ovirt.engine.core.compat.Guid id ) { org.ovirt.engine.core.common.businessentities.network.Bond bond = new org.ovirt.engine.core.common.businessentities.network.Bond ( ) ; bond.setId ( id ) ; bond.setName ( bondName ) ; bond.setNetworkName ( networkName ) ; return bond ; }
Source:
java.util.Map < java.lang.String , java.lang.Object > snapshot ( java.lang.String vmId , java.util.Map < java.lang.String , java.lang.String > [ ] snapParams ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > getDiskAlignment ( java.lang.String vmId , java.util.Map < java.lang.String , java.lang.String > driveSpecs ) ;
Source:
public void testRemoveCantDo ( ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetVdsGroupsByStoragePoolId , org.ovirt.engine.core.common.queries.StoragePoolQueryParametersBase.class , new java.lang.String [ ] { "StoragePoolId" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendDataCenterClustersResourceTest.dataCenterId } , setUpVDSGroups ( ) , null ) ; doTestBadRemove ( false , true , org.ovirt.engine.api.restapi.resource.CANT_DO ) ; }

Target:
public void testRemoveCantDo ( ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetVdsGroupsByStoragePoolId , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendDataCenterClustersResourceTest.dataCenterId } , setUpVDSGroups ( ) , null ) ; doTestBadRemove ( false , true , org.ovirt.engine.api.restapi.resource.CANT_DO ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.storage.CinderDisk getDisk ( ) { if ( ( disk ) == null ) { disk = ( ( org.ovirt.engine.core.common.businessentities.storage.CinderDisk ) ( getDiskDao ( ) . get ( getCommand ( ) . getParameters ( ) . getDestinationImageId ( ) ) ) ) ; } return disk ; }

Target:
protected org.ovirt.engine.core.common.businessentities.storage.CinderDisk getDisk ( ) { if ( ( disk ) == null ) { disk = ( ( org.ovirt.engine.core.common.businessentities.storage.CinderDisk ) ( getDiskDao ( ) . get ( org.ovirt.engine.core.bll.storage.CloneSingleCinderDiskCommandCallback.getCommand ( ) . getParameters ( ) . getDestinationImageId ( ) ) ) ) ; } return disk ; }
Source:
protected void updateVmDisks ( ) { org.ovirt.engine.core.bll.VmHandler.updateDisksFromDb ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getVm ( ) ) ; org.ovirt.engine.core.bll.VmHandler.filterImageDisksForVM ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getVm ( ) , false , false , true ) ; mImages.addAll ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getVm ( ) . getDiskList ( ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > getVmDisksFromDB ( ) { org.ovirt.engine.core.bll.VmHandler.updateDisksFromDb ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getVm ( ) ) ; org.ovirt.engine.core.bll.VmHandler.filterImageDisksForVM ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getVm ( ) ) ; return org.ovirt.engine.core.bll.AddVmTemplateCommand.getVm ( ) . getDiskList ( ) ; }
Source:
protected void executeCommand ( ) { getMacPoolDao ( ) . remove ( getMacPoolId ( ) ) ; poolPerDc.removePool ( getMacPoolId ( ) ) ; getReturnValue ( ) . setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { registerRollbackHandler ( new org.ovirt.engine.core.bll.RemoveMacPoolCommand.CustomTransactionCompletionListener ( ) ) ; getMacPoolDao ( ) . remove ( getMacPoolId ( ) ) ; macPoolPerCluster.removePool ( getMacPoolId ( ) ) ; getReturnValue ( ) . setSucceeded ( true ) ; }
Source:
public org.ovirt.engine.core.utils.ISingleAsyncOperation createSingleAsyncOperation ( ) { return new org.ovirt.engine.core.bll.storage.pool.RefreshStoragePoolAndDisconnectAsyncOperation ( getVdss ( ) , getStorageDomain ( ) , getStoragePool ( ) ) ; }

Target:
public org.ovirt.engine.core.utils.ISingleAsyncOperation createSingleAsyncOperation ( ) { return org.ovirt.engine.core.di.Injector.injectMembers ( new org.ovirt.engine.core.bll.storage.pool.RefreshStoragePoolAndDisconnectAsyncOperation ( getVdss ( ) , getStorageDomain ( ) , getStoragePool ( ) ) ) ; }
Source:
public final void setUser ( java.lang.String sessionId , org.ovirt.engine.core.common.businessentities.DbUser user ) { setData ( sessionId , org.ovirt.engine.core.bll.session.SessionDataContainer.USER_PARAMETER_NAME , user ) ; }

Target:
public final void setUser ( java.lang.String sessionId , org.ovirt.engine.core.common.businessentities.DbUser user ) { setData ( sessionId , org.ovirt.engine.core.bll.aaa.SessionDataContainer.USER_PARAMETER_NAME , user ) ; }
Source:
protected boolean canDoAction ( ) { if ( org.ovirt.engine.core.bll.storage.disk.MoveDisksCommand.getParameters ( ) . getParametersList ( ) . isEmpty ( ) ) { return failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_NO_DISKS_SPECIFIED ) ; } return verifyUnsupportedDisks ( ) ; }

Target:
protected boolean validate ( ) { if ( org.ovirt.engine.core.bll.storage.disk.MoveDisksCommand.getParameters ( ) . getParametersList ( ) . isEmpty ( ) ) { return failValidation ( EngineMessage.ACTION_TYPE_FAILED_NO_DISKS_SPECIFIED ) ; } return verifyUnsupportedDisks ( ) ; }
Source:
protected org.ovirt.engine.api.model.NIC deprecatedPopulate ( org.ovirt.engine.api.model.NIC model , org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface entity ) { org.ovirt.engine.api.restapi.resource.BackendVmNicsResource parent = ( ( org.ovirt.engine.api.restapi.resource.BackendVmNicsResource ) ( collection ) ) ; parent.addStatistics ( model , entity ) ; return model ; }

Target:
protected org.ovirt.engine.api.model.Nic deprecatedPopulate ( org.ovirt.engine.api.model.Nic model , org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface entity ) { org.ovirt.engine.api.restapi.resource.BackendVmNicsResource parent = ( ( org.ovirt.engine.api.restapi.resource.BackendVmNicsResource ) ( collection ) ) ; parent.addStatistics ( model , entity ) ; return model ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.VDS , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterHostListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.clusterHostSubTabLabel ( ) , 2 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.VDS , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterHostListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.cluster.SubTabClusterHostPresenter.constants.clusterHostSubTabLabel ( ) , 2 , modelProvider ) ; }
Source:
public void sameBondNameSentTwice ( ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface bond = createBond ( org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.BOND_NAME , null ) ; mockExistingIfaces ( bond ) ; org.ovirt.engine.core.bll.network.host.SetupNetworksHelper helper = createHelper ( createParametersForNics ( bond , bond ) ) ; validateAndExpectViolation ( helper , VdcBllMessages.NETWORK_INTERFACES_ALREADY_SPECIFIED , bond.getName ( ) ) ; }

Target:
public void bondWithNoSlaves ( ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface bond = createBond ( org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.BOND_NAME , null ) ; mockExistingIfaces ( bond ) ; org.ovirt.engine.core.bll.network.host.SetupNetworksHelper helper = createHelper ( createParametersForNics ( bond ) ) ; validateAndExpectViolation ( helper , EngineMessage.NETWORK_BONDS_INVALID_SLAVE_COUNT , bond.getName ( ) ) ; }
Source:
public void setHasSearchStringPrefix ( boolean hasSearchStringPrefix ) { searchStringPrefixLabel.setVisible ( hasSearchStringPrefix ) ; }

Target:
public void setSearchStringPrefix ( java.lang.String searchStringPrefix ) { searchStringPrefixLabel.setText ( searchStringPrefix ) ; oracle.setSearchPrefix ( searchStringPrefix ) ; }
Source:
private static boolean isIsoVersionSupported ( org.ovirt.engine.core.compat.Version isoVersion ) { org.ovirt.engine.core.compat.Version supported = new org.ovirt.engine.core.compat.Version ( org.ovirt.engine.core.common.config.Config.< java.lang.String > GetValue ( ConfigValues.OvirtInitialSupportedIsoVersion ) ) ; return ( isoVersion.compareTo ( supported ) ) >= 0 ; }

Target:
private boolean isIsoVersionSupported ( java.lang.String isoVersion ) { java.lang.String supported = org.ovirt.engine.core.common.config.Config.< java.lang.String > GetValue ( ConfigValues.OvirtInitialSupportedIsoVersion ) ; return ( org.ovirt.engine.core.common.utils.RpmVersionUtils.compareRpmParts ( isoVersion , supported ) ) >= 0 ; }
Source:
public void testValidateImageNotInTemplateFalse ( ) { org.mockito.Mockito.when ( vmTemplateDAO.get ( mockSourceImage ( ) ) ) . thenReturn ( new org.ovirt.engine.core.common.businessentities.VmTemplate ( ) ) ; org.junit.Assert.assertFalse ( "validation should succeed" , cmd.validateImageNotInTemplate ( ) ) ; }

Target:
public void testValidateImageNotInTemplateFalse ( ) { org.mockito.Mockito.when ( vmTemplateDAO.get ( mockSourceImageAndGetId ( ) ) ) . thenReturn ( new org.ovirt.engine.core.common.businessentities.VmTemplate ( ) ) ; org.junit.Assert.assertFalse ( "validation should succeed" , cmd.validateImageNotInTemplate ( ) ) ; }
Source:
public void Repoll ( ) { synchronized ( _listTasks ) { java.util.ArrayList < org.ovirt.engine.core.bll.EntityAsyncTask > CurrentActionTypeTasks = GetCurrentActionTypeTasks ( ) ; for ( org.ovirt.engine.core.bll.EntityAsyncTask task : CurrentActionTypeTasks ) { task.setState ( AsyncTaskState.Ended ) ; } } }

Target:
public void ClearTasks ( ) { synchronized ( _listTasks ) { java.util.ArrayList < org.ovirt.engine.core.bll.EntityAsyncTask > CurrentActionTypeTasks = getCurrentTasks ( ) ; for ( org.ovirt.engine.core.bll.EntityAsyncTask task : CurrentActionTypeTasks ) { task.clearAsyncTask ( ) ; } } }
Source:
public java.lang.Object Resolve ( java.lang.Class type ) { return implementation.Resolve ( type ) ; }

Target:
public java.lang.Object resolve ( java.lang.Class type ) { return implementation.resolve ( type ) ; }
Source:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent event ) { profileEditor.asEditor ( ) . getSubEditor ( ) . setValue ( event.getValue ( ) ) ; }

Target:
public com.google.gwt.event.shared.HandlerRegistration addValueChangeHandler ( final com.google.gwt.event.logical.shared.ValueChangeHandler < org.ovirt.engine.ui.uicommonweb.models.vms.VnicInstanceType > handler ) { return addHandler ( handler , com.google.gwt.event.logical.shared.ValueChangeEvent.getType ( ) ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > setVmTicket ( java.lang.String vmId , java.lang.String otp64 , java.lang.String sec , java.lang.String connectionAction , java.util.Map < java.lang.String , java.lang.String > params ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > getHostJobs ( java.lang.String job_type , java.util.List < java.lang.String > jobIds ) ;
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { resiliencePolicyTab.setVisible ( object.getisResiliencePolicyTabAvailable ( ) ) ; applyModeCustomizations ( ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { if ( ( ( java.lang.Boolean ) ( object.getOptimizationCustom_IsSelected ( ) . getEntity ( ) ) ) ) { optimizationCustomFormatter ( object ) ; optimizationCustomEditor.setVisible ( true ) ; } }
Source:
public void validateGenerateVmNameMaskInside ( ) { junit.framework.Assert.assertEquals ( "my001pool" , org.ovirt.engine.core.utils.NameForVmInPoolGenerator.generateVmName ( "my???pool" . replace ( '?' , VmPool.MASK_CHARACTER ) , 1 ) ) ; }

Target:
public void validateGenerateVmNameMaskInside ( ) { org.ovirt.engine.core.utils.NameForVmInPoolGenerator generator = createNameForVmInPoolGenerator ( "my???pool" ) ; junit.framework.Assert.assertEquals ( "my001pool" , generator.generateVmName ( ) ) ; }
Source:
public java.util.Set < java.lang.String > getConsumedEvents ( ) { java.util.Set < java.lang.String > set = new java.util.HashSet < java.lang.String > ( ) ; org.ovirt.engine.ui.common.widget.tooltip.TooltipMixin.addTooltipsEvents ( set ) ; set.addAll ( super . getConsumedEvents ( ) ) ; return set ; }

Target:
public java.util.Set < java.lang.String > getConsumedEvents ( ) { java.util.Set < java.lang.String > set = new java.util.HashSet < java.lang.String > ( ) ; org.ovirt.engine.ui.common.widget.tooltip.ElementTooltipUtils.addTooltipsEvents ( set ) ; set.addAll ( super . getConsumedEvents ( ) ) ; return set ; }
Source:
public void OnManage ( ) { }

Target:
private void doFinish ( ) { windowModel.StopProgress ( ) ; Cancel ( ) ; ForceRefresh ( ) ; }
Source:
public void remove ( org.ovirt.engine.core.compat.Guid id ) { getCallsHandler ( ) . executeModification ( "DeleteVmTemplates" , getCustomMapSqlParameterSource ( ) . addValue ( "vmt_guid" , id ) ) ; }

Target:
public void updateStatus ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.common.businessentities.VmTemplateStatus status ) { getCallsHandler ( ) . executeModification ( "UpdateVmTemplateStatus" , createIdParameterMapper ( id ) . addValue ( "status" , status ) ) ; }
Source:
public java.lang.String getQuotaName ( ) { return this . mVmStatic.getQuotaName ( ) ; }

Target:
public java.lang.String getQuotaName ( ) { return this . vmStatic.getQuotaName ( ) ; }
Source:
void localize ( ) { usageTypeEditor.setLabel ( org.ovirt.engine.ui.webadmin.section.main.view.popup.provider.ProviderSecretPopupView.constants.usageTypeLibvirtSecret ( ) ) ; descriptionEditor.setLabel ( org.ovirt.engine.ui.webadmin.section.main.view.popup.provider.ProviderSecretPopupView.constants.descriptionLabel ( ) ) ; uuidEditor.setLabel ( org.ovirt.engine.ui.webadmin.section.main.view.popup.provider.ProviderSecretPopupView.constants.idLibvirtSecret ( ) ) ; valueEditor.setLabel ( org.ovirt.engine.ui.webadmin.section.main.view.popup.provider.ProviderSecretPopupView.constants.valueLibvirtSecret ( ) ) ; }

Target:
public void focusInput ( ) { uuidEditor.setFocus ( true ) ; }
Source:
public static < P extends org.ovirt.engine.core.common.action.VdcActionParametersBase > boolean hasConstructor ( org.ovirt.engine.core.common.action.VdcActionType action , P parameters ) { return ( org.ovirt.engine.core.utils.ReflectionUtils.findConstructor ( org.ovirt.engine.core.bll.CommandsFactory.getCommandClass ( action.name ( ) ) , parameters.getClass ( ) ) ) != null ; }

Target:
protected java.lang.String [ ] getCommandPackages ( ) { return org.ovirt.engine.core.bll.CommandsFactory.COMMAND_PACKAGES ; }
Source:
public void testCanDoiActionCommand ( ) throws java.lang.Exception { org.ovirt.engine.core.bll.AddQuotaCommand < org.ovirt.engine.core.common.action.QuotaCRUDParameters > addQuotaCommand = createCommand ( ) ; addQuotaCommand.canDoAction ( ) ; }

Target:
public void testCanDoActionCommand ( ) throws java.lang.Exception { org.ovirt.engine.core.bll.AddQuotaCommand addQuotaCommand = createCommand ( ) ; addQuotaCommand.canDoAction ( ) ; }
Source:
public void addISCSIInvalidPort ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections newISCSIConnection = createISCSIConnection ( "10.35.16.25" , StorageType.ISCSI , "iqn.2013-04.myhat.com:aaa-target1" , "-3650" , "user1" , "mypassword123" ) ; parameters.setStorageServerConnection ( newISCSIConnection ) ; parameters.setVdsId ( Guid.Empty ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( getCommand ( ) , VdcBllMessages.VALIDATION_STORAGE_CONNECTION_INVALID_PORT ) ; }

Target:
public void testISCSIInvalidPort ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections newISCSIConnection = createISCSIConnection ( "10.35.16.25" , StorageType.ISCSI , "iqn.2013-04.myhat.com:aaa-target1" , "-3650" , "user1" , "mypassword123" ) ; parameters.setStorageServerConnection ( newISCSIConnection ) ; parameters.setVdsId ( Guid.Empty ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( getCommand ( ) , VdcBllMessages.VALIDATION_STORAGE_CONNECTION_INVALID_PORT ) ; }
Source:
public org.apache.commons.httpclient.HttpClient getHttpClient ( ) { return httpClient ; }

Target:
public void close ( ) { org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcUtils.shutDownConnection ( httpClient ) ; }
Source:
private void saveVdsGroupSpecificQuotas ( org.ovirt.engine.core.common.businessentities.Quota quota ) { for ( org.ovirt.engine.core.common.businessentities.QuotaVdsGroup quotaVdsGroup : quota.getQuotaVdsGroups ( ) ) { getCallsHandler ( ) . executeModification ( "InsertQuotaLimitation" , getQuotaVdsGroupParameterMap ( quota.getId ( ) , quotaVdsGroup ) ) ; } }

Target:
private void saveClusterSpecificQuotas ( org.ovirt.engine.core.common.businessentities.Quota quota ) { for ( org.ovirt.engine.core.common.businessentities.QuotaCluster quotaCluster : quota.getQuotaClusters ( ) ) { getCallsHandler ( ) . executeModification ( "InsertQuotaLimitation" , getQuotaClusterParameterMap ( quota.getId ( ) , quotaCluster ) ) ; } }
Source:
protected void updateBrickStatus ( org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickStatus status ) { for ( org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity brick : org.ovirt.engine.core.bll.gluster.GlusterVolumeCommandBase.getGlusterVolume ( ) . getBricks ( ) ) { getGlusterBrickDao ( ) . updateBrickStatus ( brick.getId ( ) , status ) ; } }

Target:
protected void updateBrickStatus ( org.ovirt.engine.core.common.businessentities.gluster.GlusterStatus status ) { for ( org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity brick : org.ovirt.engine.core.bll.gluster.GlusterVolumeCommandBase.getGlusterVolume ( ) . getBricks ( ) ) { getGlusterBrickDao ( ) . updateBrickStatus ( brick.getId ( ) , status ) ; } }
Source:
public void initConfiguredWithDefaultMinValue ( ) { org.ovirt.engine.core.common.config.IConfigUtilsInterface configUtils = initConfigUtils ( ) ; org.mockito.Mockito.when ( configUtils.GetValue ( ConfigValues.ConnectToServerTimeoutInSeconds , Config.DefaultConfigurationVersion ) ) . thenReturn ( org.ovirt.engine.core.common.utils.ConfiguredRangeValidatorTest.TEST_MIN_RANGE ) ; org.ovirt.engine.core.common.config.Config.setConfigUtils ( configUtils ) ; }

Target:
public void initConfiguredWithDefaultMinValue ( ) { org.ovirt.engine.core.common.config.IConfigUtilsInterface configUtils = initConfigUtils ( ) ; org.mockito.Mockito.when ( configUtils.GetValue ( ConfigValues.ConnectToServerTimeoutInSeconds , ConfigCommon.defaultConfigurationVersion ) ) . thenReturn ( org.ovirt.engine.core.common.utils.ConfiguredRangeValidatorTest.TEST_MIN_RANGE ) ; org.ovirt.engine.core.common.config.Config.setConfigUtils ( configUtils ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase runAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue = notAllowToRunAction ( actionType ) ; if ( returnValue != null ) { return returnValue ; } return runActionImpl ( actionType , parameters , false , null ) ; }

Target:
public org.ovirt.engine.core.common.action.ActionReturnValue runInternalAction ( org.ovirt.engine.core.common.action.ActionType actionType , org.ovirt.engine.core.common.action.ActionParametersBase parameters ) { return runActionImpl ( actionType , parameters , true , null ) ; }
Source:
public java.lang.String getPassword ( java.lang.String sessionId ) { return ( ( java.lang.String ) ( getData ( sessionId , org.ovirt.engine.core.bll.session.SessionDataContainer.PASSWORD_PARAMETER_NAME , false ) ) ) ; }

Target:
public java.lang.String getPassword ( java.lang.String sessionId ) { return ( ( java.lang.String ) ( getData ( sessionId , org.ovirt.engine.core.bll.aaa.SessionDataContainer.PASSWORD_PARAMETER_NAME , false ) ) ) ; }
Source:
public int getvm_mem_size_mb ( ) { return this . mVmStatic.getmem_size_mb ( ) ; }

Target:
public int getVmMemSizeMb ( ) { return this . vmStatic.getMemSizeMb ( ) ; }
Source:
public int count ( T key ) { final org.ovirt.engine.core.bll.network.macpoolmanager.ObjectCounter.Counter counter = map.get ( key ) ; return counter == null ? 0 : counter.toInt ( ) ; }

Target:
public int count ( T key ) { final org.ovirt.engine.core.bll.network.macpool.ObjectCounter.Counter counter = map.get ( key ) ; return counter == null ? 0 : counter.toInt ( ) ; }
Source:
public java.util.Set < java.lang.String > getConsumedEvents ( ) { java.util.Set < java.lang.String > set = new java.util.HashSet ( super . getConsumedEvents ( ) ) ; set.add ( BrowserEvents.CLICK ) ; return set ; }

Target:
public java.util.Set < java.lang.String > getConsumedEvents ( ) { java.util.Set < java.lang.String > set = new java.util.HashSet ( super . getConsumedEvents ( ) ) ; set.add ( BrowserEvents.CLICK ) ; set.add ( BrowserEvents.CONTEXTMENU ) ; return set ; }
Source:
public org.ovirt.engine.core.common.queries.VdcQueryReturnValue runQuery ( org.ovirt.engine.core.common.queries.VdcQueryType queryType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase queryParams ) { org.ovirt.engine.core.common.interfaces.BackendLocal backend = getBackend ( ) ; setCorrelationId ( queryParams ) ; queryParams.setFiltered ( isFiltered ( ) ) ; return backend.runQuery ( queryType , sessionize ( queryParams ) ) ; }

Target:
public org.ovirt.engine.core.common.queries.VdcQueryReturnValue runQuery ( org.ovirt.engine.core.common.queries.QueryType queryType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase queryParams ) { org.ovirt.engine.core.common.interfaces.BackendLocal backend = getBackend ( ) ; setCorrelationId ( queryParams ) ; queryParams.setFiltered ( isFiltered ( ) ) ; return backend.runQuery ( queryType , sessionize ( queryParams ) ) ; }
Source:
public static java.util.Map < org.ovirt.engine.core.common.EventNotificationEntity , java.util.HashSet < org.ovirt.engine.core.common.AuditLogType > > GetAvailableNotificationEvents ( ) { return org.ovirt.engine.core.common.VdcEventNotificationUtils.GetNotificationEvents ( ) ; }

Target:
public static java.util.Map < org.ovirt.engine.core.common.EventNotificationEntity , java.util.HashSet < org.ovirt.engine.core.common.AuditLogType > > getAvailableNotificationEvents ( ) { return org.ovirt.engine.core.common.VdcEventNotificationUtils.GetNotificationEvents ( ) ; }
Source:
public static void GetManagementNetworkName ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.GetConfigFromCache ( ConfigurationValues.ManagementNetwork , aQuery ) ; }

Target:
public static void GetManagementNetworkName ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.GetConfigFromCache ( new org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ( org.ovirt.engine.core.common.queries.ConfigurationValues.ManagementNetwork , org.ovirt.engine.core.common.config.Config.DefaultConfigurationVersion ) , aQuery ) ; }
Source:
public static < TSource > TSource FirstOrDefault ( java.lang.Iterable < TSource > source , org.ovirt.engine.ui.uicommonweb.Linq.IPredicate < TSource > predicate ) { for ( TSource item : source ) { if ( predicate.Match ( item ) ) { return item ; } } return null ; }

Target:
public static < TSource > TSource firstOrDefault ( java.lang.Iterable < TSource > source , org.ovirt.engine.ui.uicommonweb.Linq.IPredicate < TSource > predicate ) { for ( TSource item : source ) { if ( predicate.match ( item ) ) { return item ; } } return null ; }
Source:
public java.util.List < org.ovirt.engine.core.bll.utils.PermissionSubject > getPermissionCheckSubjects ( ) { return java.util.Collections.singletonList ( new org.ovirt.engine.core.bll.utils.PermissionSubject ( org.ovirt.engine.core.bll.AddVdsGroupCommand.getVdsGroup ( ) . getStoragePoolId ( ) , org.ovirt.engine.core.common.VdcObjectType.StoragePool , org.ovirt.engine.core.bll.AddVdsGroupCommand.getActionType ( ) . getActionGroup ( ) ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.bll.utils.PermissionSubject > getPermissionCheckSubjects ( ) { return java.util.Collections.singletonList ( new org.ovirt.engine.core.bll.utils.PermissionSubject ( org.ovirt.engine.core.bll.AddClusterCommand.getCluster ( ) . getStoragePoolId ( ) , org.ovirt.engine.core.common.VdcObjectType.StoragePool , org.ovirt.engine.core.bll.AddClusterCommand.getActionType ( ) . getActionGroup ( ) ) ) ; }
Source:
public void testSubResourceLocator ( ) throws java.lang.Exception { control.replay ( ) ; java.lang.Object subResource = collection.getDeviceResource ( GUIDS [ 0 ] . toString ( ) ) ; assertFalse ( ( subResource instanceof org.ovirt.engine.api.resource.DeviceResource ) ) ; assertTrue ( ( subResource instanceof org.ovirt.engine.api.resource.ReadOnlyDeviceResource ) ) ; }

Target:
protected void setUpQueryExpectations ( java.lang.String query ) throws java.lang.Exception { setUpEntityQueryExpectations ( 1 ) ; control.replay ( ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult allValuesPresent ( ) { if ( ( getQos ( ) . getCpuLimit ( ) ) == null ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_QOS_MISSING_VALUES ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult requiredValuesPresent ( ) { if ( ( getQos ( ) . getCpuLimit ( ) ) == null ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_QOS_MISSING_VALUES ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
protected void setUpQueryExpectations ( java.lang.String query , java.lang.Object failure ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetErrataForEngine , org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , getErrata ( ) , failure ) ; control.replay ( ) ; }

Target:
protected void setUpQueryExpectations ( java.lang.String query , java.lang.Object failure ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetErrataForEngine , org.ovirt.engine.core.common.queries.GetErrataCountsParameters.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , getErrataData ( ) , failure ) ; control.replay ( ) ; }
Source:
public static org.ovirt.engine.core.common.action.VdcActionParametersBase eqActionParams ( java.lang.Class < ? extends org.ovirt.engine.core.common.action.VdcActionParametersBase > clz , java.lang.String [ ] names , java.lang.Object [ ] values ) { return org.mockito.Matchers.argThat ( new org.ovirt.engine.api.restapi.test.util.TestHelper.ActionParametersEquals ( clz , names , values ) ) ; }

Target:
public static org.ovirt.engine.core.common.action.VdcActionParametersBase eqActionParams ( java.lang.Class < ? extends org.ovirt.engine.core.common.action.VdcActionParametersBase > clz , java.lang.String [ ] names , java.lang.Object [ ] values ) { return org.mockito.ArgumentMatchers.argThat ( new org.ovirt.engine.api.restapi.test.util.TestHelper.ActionParametersEquals ( clz , names , values ) ) ; }
Source:
public void successfulStatusOff ( ) { org.ovirt.engine.core.common.businessentities.pm.FenceOperationResult result = new org.ovirt.engine.core.common.businessentities.pm.FenceOperationResult ( FenceActionType.STATUS , 0 , null , "off" , null ) ; org.junit.Assert.assertEquals ( Status.SUCCESS , result.getStatus ( ) ) ; org.junit.Assert.assertEquals ( PowerStatus.OFF , result.getPowerStatus ( ) ) ; }

Target:
public void successfulStatusOff ( ) { org.ovirt.engine.core.common.businessentities.pm.FenceOperationResult result = new org.ovirt.engine.core.common.businessentities.pm.FenceOperationResult ( FenceActionType.STATUS , 0 , null , "off" , null ) ; org.junit.jupiter.api.Assertions.assertEquals ( Status.SUCCESS , result.getStatus ( ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( PowerStatus.OFF , result.getPowerStatus ( ) ) ; }