auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected boolean isStoragePoolUnique ( java.lang.String storagePoolName ) { org.ovirt.engine.core.dao.StoragePoolDao spDao = org.ovirt.engine.core.bll.storage.pool.StoragePoolManagementCommandBase.getStoragePoolDao ( ) ; java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > sps = spDao.getByName ( storagePoolName , true ) ; return ( sps == null ) || ( sps.isEmpty ( ) ) ; }

Target:
protected boolean isStoragePoolUnique ( java.lang.String storagePoolName ) { java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > sps = storagePoolDao.getByName ( storagePoolName , true ) ; return ( sps == null ) || ( sps.isEmpty ( ) ) ; }
Source:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.core.common.businessentities.Disk object ) { setTitle ( ( object.isBoot ( ) ? org.ovirt.engine.ui.common.widget.uicommon.disks.DisksViewColumns.constants.bootableDisk ( ) : null ) ) ; return object.isBoot ( ) ? org.ovirt.engine.ui.common.widget.uicommon.disks.DisksViewColumns.resources.bootableDiskIcon ( ) : null ; }

Target:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.core.common.businessentities.Disk object ) { setTitle ( ( object.isBoot ( ) ? getDefaultTitle ( ) : null ) ) ; return object.isBoot ( ) ? getDefaultImage ( ) : null ; }
Source:
protected java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runInternalMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalMultipleActions ( actionType , parameters ) ; }

Target:
protected java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runInternalMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters ) { return getBackend ( ) . runInternalMultipleActions ( actionType , parameters , context.clone ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.queries.VdcQueryParametersBase queryProductRPMVersionParams ( ) { return org.ovirt.engine.api.restapi.test.util.TestHelper.eqQueryParams ( org.ovirt.engine.core.common.queries.GetConfigurationValueParameters.class , new java.lang.String [ ] { "SessionId" } , new java.lang.Object [ ] { getSessionId ( ) } ) ; }

Target:
private org.ovirt.engine.core.common.queries.VdcQueryParametersBase getProductVersionParams ( ) { return org.ovirt.engine.api.restapi.test.util.TestHelper.eqQueryParams ( org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class , new java.lang.String [ 0 ] , new java.lang.Object [ 0 ] ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity getMultiBrickVolume ( org.ovirt.engine.core.compat.Guid volumeId ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity volume = getGlusterVolume ( volumeId ) ; volume.setStatus ( GlusterVolumeStatus.UP ) ; volume.setBricks ( getBricks ( volumeId , 2 ) ) ; volume.setClusterId ( clusterId ) ; return volume ; }

Target:
private org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity getMultiBrickVolume ( org.ovirt.engine.core.compat.Guid volumeId ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity volume = getGlusterVolume ( volumeId ) ; volume.setStatus ( GlusterStatus.UP ) ; volume.setBricks ( getBricks ( volumeId , 2 ) ) ; volume.setClusterId ( clusterId ) ; return volume ; }
Source:
protected boolean hasWatchdog ( ) { return ( org.ovirt.engine.core.bll.UpdateVmCommand.getParameters ( ) . getWatchdog ( ) ) != null ? true : org.ovirt.engine.core.bll.utils.VmDeviceUtils.hasWatchdog ( getVmId ( ) ) ; }

Target:
protected boolean isVirtioScsiEnabled ( ) { java.lang.Boolean virtioScsiEnabled = org.ovirt.engine.core.bll.UpdateVmCommand.getParameters ( ) . isVirtioScsiEnabled ( ) ; return virtioScsiEnabled != null ? virtioScsiEnabled : isVirtioScsiEnabledForVm ( getVmId ( ) ) ; }
Source:
public void passDiscardSupportedForCopyFloatingDiskOp ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ) ; command.getParameters ( ) . setOperation ( ImageOperation.Copy ) ; initTemplateDiskImage ( ) ; org.junit.Assert.assertTrue ( command.validatePassDiscardSupportedForDestinationStorageDomain ( ) ) ; }

Target:
public void validateFailureOnMovingCinderDisk ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.CinderDisk ( ) , null ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_NOT_SUPPORTED_DISK_STORAGE_TYPE ) ; }
Source:
public void testGetEntityNameByIdAndTypeForTag ( ) { org.ovirt.engine.core.common.businessentities.Tags tag = tagDao.get ( org.ovirt.engine.core.dao.EntityDaoImplTest.TAG_ID ) ; org.junit.Assert.assertNotNull ( tag ) ; java.lang.String name = tag.getTagName ( ) ; org.junit.Assert.assertEquals ( name , dao.getEntityNameByIdAndType ( org.ovirt.engine.core.dao.EntityDaoImplTest.TAG_ID , VdcObjectType.Tags ) ) ; }

Target:
public void testGetEntityNameByIdAndTypeForTag ( ) { org.ovirt.engine.core.common.businessentities.Tags tag = tagDao.get ( org.ovirt.engine.core.dao.EntityDaoImplTest.TAG_ID ) ; org.junit.jupiter.api.Assertions.assertNotNull ( tag ) ; java.lang.String name = tag.getTagName ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( name , dao.getEntityNameByIdAndType ( org.ovirt.engine.core.dao.EntityDaoImplTest.TAG_ID , VdcObjectType.Tags ) ) ; }
Source:
public void onEngineSessionRefreshed ( org.ovirt.engine.ui.frontend.communication.EngineSessionRefreshedEvent event ) { if ( ( restApiSessionId ) != null ) { refreshRestApiSession = true ; } }

Target:
public void onEngineSessionRefreshed ( org.ovirt.engine.ui.frontend.communication.EngineSessionRefreshedEvent event ) { if ( ( ( restApiSessionId ) != null ) && ( ( ( restApiLoginTimePlusHardLimit ) == null ) || ( new java.util.Date ( ) . before ( restApiLoginTimePlusHardLimit ) ) ) ) { refreshRestApiSession = true ; } }
Source:
public void onScroll ( com.google.gwt.event.dom.client.ScrollEvent event ) { updateScrollPosition ( ) ; }

Target:
public void onSelectionChange ( com.google.gwt.view.client.SelectionChangeEvent event ) { if ( selectionModel.getSelectedList ( ) . isEmpty ( ) ) { scrollOffset = 0 ; } else { updateScrollPosition ( ) ; } enforceScrollPosition ( ) ; }
Source:
public java.lang.Long getKsmPages ( ) { return this . mVdsStatistics.getksm_pages ( ) ; }

Target:
public java.lang.Long getSwapTotal ( ) { return this . mVdsStatistics.getSwapTotal ( ) ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue = result.getReturnValue ( ) ; context.addVDSGroupReturnValue = returnValue ; prepare3 ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue = result.getReturnValue ( ) ; context.addVDSGroupReturnValue = returnValue ; prepare3 ( ) ; }
Source:
java.util.concurrent.Future < java.util.Map < java.lang.String , java.lang.Object > > setupNetworks ( org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct networks , org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct bonding , org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct options ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc snapshot ( java.lang.String vmId , java.util.Map < java.lang.String , java.lang.String > [ ] disks , java.lang.String memory ) ;
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object ReturnValue ) { setItems ( ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( ReturnValue ) ) . getReturnValue ( ) ) ) ) ; }

Target:
protected void syncSearch ( ) { org.ovirt.engine.core.common.queries.IdQueryParameters tempVar = new org.ovirt.engine.core.common.queries.IdQueryParameters ( getEntity ( ) . getId ( ) ) ; tempVar.setRefresh ( getIsQueryFirstTime ( ) ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetStorageDomainsByStoragePoolId , tempVar , new org.ovirt.engine.ui.uicommonweb.models.datacenters.SetItemsAsyncQuery ( ) ) ; }
Source:
protected boolean isStorageDomainSpaceWithinThresholds ( ) { return validate ( new org.ovirt.engine.core.bll.validator.StorageDomainValidator ( org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getStorageDomain ( ) ) . isDomainWithinThresholds ( ) ) ; }

Target:
protected boolean checkCanBeMoveInVm ( ) { return validate ( createDiskValidator ( ) . isDiskPluggedToVmsThatAreNotDown ( false , getVmsWithVmDeviceInfoForDiskId ( ) ) ) ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getNetworkDAO ( ) . remove ( org.ovirt.engine.core.bll.storage.RemoveNetworkCommand.getParameters ( ) . getNetwork ( ) . getId ( ) ) ; org.ovirt.engine.core.bll.storage.RemoveNetworkCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getNetworkDao ( ) . remove ( org.ovirt.engine.core.bll.storage.RemoveNetworkCommand.getParameters ( ) . getNetwork ( ) . getId ( ) ) ; org.ovirt.engine.core.bll.storage.RemoveNetworkCommand.setSucceeded ( true ) ; }
Source:
public void testPreImportedHostedEngineLunDiskRemove ( ) { disk = new org.ovirt.engine.core.common.businessentities.storage.LunDisk ( ) ; setupDisk ( ) ; disk.setDiskAlias ( StorageConstants.HOSTED_ENGINE_LUN_DISK_ALIAS ) ; org.mockito.Mockito.doReturn ( disk ) . when ( cmd ) . getDisk ( ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionSuccess ( cmd ) ; }

Target:
public void testPreImportedHostedEngineLunDiskRemove ( ) { disk = new org.ovirt.engine.core.common.businessentities.storage.LunDisk ( ) ; setupDisk ( ) ; disk.setDiskAlias ( StorageConstants.HOSTED_ENGINE_LUN_DISK_ALIAS ) ; org.mockito.Mockito.doReturn ( disk ) . when ( cmd ) . getDisk ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( cmd ) ; }
Source:
public boolean canBeRemoved ( ) { return ! ( isDefaultPool ( ) ) ; }

Target:
public java.lang.Object getQueryableId ( ) { return getId ( ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.InstanceType getInstanceType ( ) { if ( ( ( instanceType ) == null ) && ( ( getInstanceTypeId ( ) ) != null ) ) { instanceType = org.ovirt.engine.core.bll.VmManagementCommandBase.getVmTemplateDAO ( ) . getInstanceType ( getInstanceTypeId ( ) ) ; } return instanceType ; }

Target:
protected org.ovirt.engine.core.common.businessentities.InstanceType getInstanceType ( ) { if ( ( ( instanceType ) == null ) && ( ( getInstanceTypeId ( ) ) != null ) ) { instanceType = org.ovirt.engine.core.bll.VmManagementCommandBase.getVmTemplateDao ( ) . getInstanceType ( getInstanceTypeId ( ) ) ; } return instanceType ; }
Source:
public void update ( org.ovirt.engine.core.common.businessentities.bookmarks bookmark ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = new org.ovirt.engine.core.dao.BookmarkDAODbFacadeImpl.BookmarkSqlParameterSource ( bookmark ) ; getCallsHandler ( ) . executeModification ( "UpdateBookmark" , parameterSource ) ; }

Target:
public void update ( org.ovirt.engine.core.common.businessentities.Bookmark bookmark ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = new org.ovirt.engine.core.dao.BookmarkDAODbFacadeImpl.BookmarkSqlParameterSource ( bookmark ) ; getCallsHandler ( ) . executeModification ( "UpdateBookmark" , parameterSource ) ; }
Source:
public void setStartTime ( java.util.Date startTime ) { this . startTime = startTime ; if ( ( this . totalMigrationTime ) == null ) { this . totalMigrationTime = this . startTime ; } }

Target:
public void setTotalMigrationTime ( java.util.Date totalMigrationTime ) { if ( ( this . totalMigrationTime ) == null ) { this . totalMigrationTime = totalMigrationTime ; } }
Source:
protected org.ovirt.engine.core.bll.CommandBase < ? > getCommand ( org.ovirt.engine.core.compat.Guid cmdId ) { return org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.retrieveCommand ( cmdId ) ; }

Target:
protected org.ovirt.engine.core.bll.CommandBase < ? > getCommand ( org.ovirt.engine.core.compat.Guid cmdId ) { return commandCoordinatorUtil.retrieveCommand ( cmdId ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.ListModel < T > setIsChangable ( boolean value ) { if ( ! ( isVmAttachedToPool ( ) ) ) { super . setIsChangable ( value ) ; } return this ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.ListModel < T > setIsChangeable ( boolean value ) { if ( ! ( isVmAttachedToPool ( ) ) ) { super . setIsChangeable ( value ) ; } return this ; }
Source:
protected org.codehaus.jackson.node.ObjectNode getEngineSessionTimeoutObject ( java.lang.Integer engineSessionTimeout , java.lang.Integer userSessionHardLimit ) { org.codehaus.jackson.node.ObjectNode obj = createObjectNode ( ) ; obj.put ( "sessionTimeout" , java.lang.String.valueOf ( engineSessionTimeout ) ) ; obj.put ( "sessionHardLimit" , java.lang.String.valueOf ( userSessionHardLimit ) ) ; return obj ; }

Target:
protected org.codehaus.jackson.node.ObjectNode getEngineSessionTimeoutObject ( java.lang.Integer engineSessionTimeout ) { org.codehaus.jackson.node.ObjectNode obj = createObjectNode ( ) ; obj.put ( "value" , java.lang.String.valueOf ( engineSessionTimeout ) ) ; return obj ; }
Source:
public void editProfiles ( org.ovirt.engine.ui.uicommonweb.models.ListModel profiles , org.ovirt.engine.core.compat.Version dcCompatibilityVersion , org.ovirt.engine.core.compat.Guid dcId , org.ovirt.engine.ui.uicommonweb.models.profiles.VnicProfileModel defaultProfile ) { profilesEditor.edit ( profiles , dcCompatibilityVersion , dcId , defaultProfile ) ; }

Target:
public void edit ( T model ) { profilesEditor.edit ( model.getProfiles ( ) ) ; }
Source:
public void testGetAllOfTypeWithUnrepresentedType ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result = dao.getAllOfType ( VDSType.oVirtNode ) ; org.ovirt.engine.core.dao.VdsDaoTest.assertIncorrectGetResult ( result ) ; }

Target:
public void testGetAllOfTypeWithUnrepresentedType ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result = dao.getAllOfType ( VDSType.oVirtVintageNode ) ; org.ovirt.engine.core.dao.VdsDaoTest.assertIncorrectGetResult ( result ) ; }
Source:
private void onAssignTags ( ) { org.ovirt.engine.ui.uicommonweb.models.tags.TagListModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.tags.TagListModel ) ( getWindow ( ) ) ) ; getAttachedTagsToSelectedVMs ( model ) ; }

Target:
private void onAssignTags ( ) { org.ovirt.engine.ui.uicommonweb.models.tags.TagListModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.tags.TagListModel ) ( org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel.getWindow ( ) ) ) ; getAttachedTagsToSelectedVMs ( model ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { disk.getIsInternal ( ) . setEntity ( false ) ; revealStorageView ( disk ) ; revealDiskPanel ( disk ) ; }

Target:
public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { revealStorageView ( disk ) ; }
Source:
private boolean checkIsDomainLocked ( org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap domainMap ) { if ( ( ( domainMap.getStatus ( ) ) != null ) && ( domainMap.getStatus ( ) . isStorageDomainInProcess ( ) ) ) { addInvalidSDStatusMessage ( StorageDomainStatus.Locked ) ; return true ; } return false ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StorageDomain getNewMasterStorageDomain ( ) { if ( ( newMasterStorageDomainId ) == null ) { getNewMasterStorageDomainId ( ) ; } return newMasterStorageDomain ; }
Source:
public void setdisplay_ip ( java.lang.String value ) { this . mVmDynamic.setdisplay_ip ( value ) ; }

Target:
public java.lang.String getExitMessage ( ) { return this . vmDynamic.getExitMessage ( ) ; }
Source:
public boolean isSplitted ( ) { return ( ( getVmNumaNode ( ) . getVdsNumaNodeList ( ) ) != null ) && ( ( getVmNumaNode ( ) . getVdsNumaNodeList ( ) . size ( ) ) > 1 ) ; }

Target:
public boolean isSplitted ( ) { return ( ( vmNumaNode.getVdsNumaNodeList ( ) ) != null ) && ( ( vmNumaNode.getVdsNumaNodeList ( ) . size ( ) ) > 1 ) ; }
Source:
public void testWriteFileToStream_IOException ( ) throws java.io.IOException { java.io.File file = new java.io.File ( "/doesnotexist/iamprettysure" ) ; java.io.ByteArrayOutputStream out = new java.io.ByteArrayOutputStream ( ) ; org.ovirt.engine.core.utils.servlet.ServletUtils.writeFileToStream ( out , file ) ; }

Target:
public void testWriteFileToStream_IOException ( ) { java.io.File file = new java.io.File ( "/doesnotexist/iamprettysure" ) ; java.io.ByteArrayOutputStream out = new java.io.ByteArrayOutputStream ( ) ; org.junit.jupiter.api.Assertions.assertThrows ( java.io.IOException.class , ( ) -> org.ovirt.engine.core.utils.servlet.ServletUtils.writeFileToStream ( out , file ) ) ; }
Source:
protected void doGridTimerExecute ( ) { getRefreshCommand ( ) . execute ( ) ; }

Target:
public void stopRefresh ( ) { super . stopRefresh ( ) ; timer.stop ( ) ; }
Source:
public void testSchedule ( ) throws java.lang.Exception { org.junit.Assert.assertNotNull ( schedulingManager.get ( ) ) ; org.mockito.Mockito.verify ( schedulingManager.get ( ) ) . init ( ) ; }

Target:
public void testSchedule ( ) throws java.lang.Exception { org.junit.Assert.assertNotNull ( schedulingManager.get ( ) ) ; org.mockito.Mockito.verify ( schedulingManager.get ( ) ) . init ( ) ; org.junit.Assert.assertNotNull ( schedulingManager.get ( ) . getDefaultClusterPolicy ( ) ) ; }
Source:
protected void SelectedItemsChanged ( ) { super . SelectedItemsChanged ( ) ; UpdateActionAvailability ( ) ; }

Target:
public void setSystemTreeSelectedItem ( org.ovirt.engine.ui.uicommonweb.models.SystemTreeItemModel value ) { if ( ( systemTreeSelectedItem ) != value ) { systemTreeSelectedItem = value ; onSystemTreeSelectedItemChanged ( ) ; } }
Source:
protected boolean isStorageDomainSpaceWithinThresholds ( ) { return org.ovirt.engine.core.bll.command.utils.StorageDomainSpaceChecker.isWithinThresholds ( org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getStorageDomain ( ) ) ; }

Target:
protected boolean isStorageDomainSpaceWithinThresholds ( ) { return validate ( new org.ovirt.engine.core.bll.validator.StorageDomainValidator ( org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getStorageDomain ( ) ) . isDomainWithinThresholds ( ) ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { spice.setWANColorDepth ( ( ( org.ovirt.engine.core.common.console.ConsoleOptions.WanColorDepth ) ( returnValue ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { spice.getOptions ( ) . setWanColorDepth ( ( ( org.ovirt.engine.core.common.console.ConsoleOptions.WanColorDepth ) ( returnValue ) ) ) ; }
Source:
public void defaultClusterInLocalFs ( ) { prepareManagementNetworkMocks ( ) ; mcr.mockConfigValue ( ConfigValues.AutoRegistrationDefaultVdsGroupID , org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.DEFAULT_VDS_GROUP_ID ) ; createCommandWithDefaultVdsGroup ( ) ; oldGroupIsDetachedDefault ( ) ; storagePoolIsLocalFS ( ) ; setupCpu ( ) ; allQueriesForVms ( ) ; architectureIsUpdatable ( ) ; canDoActionFailedWithReason ( VdcBllMessages.DEFAULT_CLUSTER_CANNOT_BE_ON_LOCALFS ) ; }

Target:
public void defaultClusterInLocalFs ( ) { prepareManagementNetworkMocks ( ) ; mcr.mockConfigValue ( ConfigValues.AutoRegistrationDefaultVdsGroupID , org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.DEFAULT_VDS_GROUP_ID ) ; createCommandWithDefaultVdsGroup ( ) ; oldGroupIsDetachedDefault ( ) ; storagePoolIsLocalFS ( ) ; setupCpu ( ) ; allQueriesForVms ( ) ; architectureIsUpdatable ( ) ; canDoActionFailedWithReason ( EngineMessage.DEFAULT_CLUSTER_CANNOT_BE_ON_LOCALFS ) ; }
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.session.SessionDataContainer.USER_PARAMETER_NAME , user ) ; }
Source:
public void testHasSpiceSupport ( ) throws java.lang.Exception { org.junit.Assert.assertTrue ( OsRepositoryImpl.INSTANCE.getSpiceSupportMatrix ( ) . get ( 777 ) . get ( null ) ) ; }

Target:
public void testIsBalloonEnabled ( ) throws java.lang.Exception { org.junit.Assert.assertTrue ( OsRepositoryImpl.INSTANCE.isBalloonEnabled ( 777 , null ) ) ; org.junit.Assert.assertTrue ( OsRepositoryImpl.INSTANCE.getBalloonSupportMap ( ) . get ( 777 ) . get ( null ) ) ; }
Source:
private static int compNonDigitSequence ( java.lang.String seq1 , java.lang.String seq2 ) { return seq1.compareTo ( seq2 ) ; }

Target:
private static int compNonDigitSequence ( java.lang.String seq1 , java.lang.String seq2 , boolean caseSensitive ) { return java.lang.Integer.signum ( ( caseSensitive ? seq1.compareTo ( seq2 ) : seq1.compareToIgnoreCase ( seq2 ) ) ) ; }
Source:
public void validate_vmNotExists_Test ( ) { org.mockito.Mockito.doReturn ( null ) . when ( vmStaticDao ) . get ( org.mockito.ArgumentMatchers.any ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_INVALID_ENTITY_FOR_AFFINITY_GROUP ) ; }

Target:
public void validate_vmNotExists_Test ( ) { org.mockito.Mockito.doReturn ( java.util.Collections.emptyList ( ) ) . when ( vmStaticDao ) . getByIds ( org.mockito.ArgumentMatchers.any ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_INVALID_ENTITY_FOR_AFFINITY_GROUP ) ; }
Source:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.model.SchedulingPolicy schedulingPolicy ) { validateParameters ( schedulingPolicy , "name" ) ; return performCreate ( VdcActionType.AddClusterPolicy , new org.ovirt.engine.core.common.scheduling.parameters.ClusterPolicyCRUDParameters ( null , map ( schedulingPolicy ) ) , queryIdResolver ) ; }

Target:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.model.SchedulingPolicy schedulingPolicy ) { validateParameters ( schedulingPolicy , "name" ) ; return performCreate ( ActionType.AddClusterPolicy , new org.ovirt.engine.core.common.scheduling.parameters.ClusterPolicyCRUDParameters ( null , map ( schedulingPolicy ) ) , queryIdResolver ) ; }
Source:
public void validateNoDirectLunIdAndNoStoragePoolId ( ) { org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_STORAGE_POOL_NOT_EXIST ) ; }

Target:
public void validateNoDirectLunIdAndInvalidStoragePool ( ) { org.mockito.Mockito.doReturn ( false ) . when ( command ) . validateStoragePool ( ) ; org.junit.Assert.assertFalse ( command.validate ( ) ) ; }
Source:
private org.ovirt.engine.core.bll.network.host.SetupNetworksHelper createHelper ( org.ovirt.engine.core.common.action.SetupNetworksParameters params , org.ovirt.engine.core.common.businessentities.VDS vds ) { return createHelper ( params , vds , Version.v3_3 ) ; }

Target:
private org.ovirt.engine.core.bll.network.host.SetupNetworksHelper createHelper ( org.ovirt.engine.core.common.action.SetupNetworksParameters params ) { return createHelper ( params , Version.v3_5 ) ; }
Source:
public void setGuestLastLoginTime ( java.util.Date value ) { this . vmDynamic.setGuestLastLoginTime ( value ) ; }

Target:
public void setGuestAgentStatus ( org.ovirt.engine.core.common.businessentities.GuestAgentStatus status ) { vmDynamic.setGuestAgentStatus ( status ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.templates.TemplateListModel templateListModel = ( ( org.ovirt.engine.ui.uicommonweb.models.templates.TemplateListModel ) ( target ) ) ; boolean isNameUnique = ( ( java.lang.Boolean ) ( returnValue ) ) ; templateListModel.PostNameUniqueCheck ( isNameUnique ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.templates.TemplateListModel templateListModel = ( ( org.ovirt.engine.ui.uicommonweb.models.templates.TemplateListModel ) ( target ) ) ; boolean isNameUnique = ( ( java.lang.Boolean ) ( returnValue ) ) ; templateListModel.postNameUniqueCheck ( isNameUnique ) ; }
Source:
public java.lang.String getHelpTagMappingBaseURL ( ) { return ( ( org.ovirt.engine.ui.frontend.utils.FrontendUrlUtils.getRootURL ( ) ) + ( org.ovirt.engine.ui.uicommonweb.Configurator.HELPTAG_MAPPING_ROOT ) ) + "/" ; }

Target:
public java.lang.String getCshMappingUrl ( java.lang.String application ) { return ( ( ( ( org.ovirt.engine.ui.frontend.utils.FrontendUrlUtils.getRootURL ( ) ) + ( org.ovirt.engine.ui.uicommonweb.Configurator.CSH_ROOT ) ) + "/" ) + application ) + ( org.ovirt.engine.ui.uicommonweb.Configurator.JSON ) ; }
Source:
public void save ( org.ovirt.engine.core.common.businessentities.DbGroup group ) { insertOrUpdate ( group , "InsertGroup" ) ; }

Target:
public void save ( org.ovirt.engine.core.common.businessentities.DbGroup group ) { if ( org.ovirt.engine.core.compat.Guid.isNullOrEmpty ( group.getId ( ) ) ) { group.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; } insertOrUpdate ( group , "InsertGroup" ) ; }
Source:
public void testStorage ( ) { testValidSql ( "Storage: " , "SELECT * FROM ((SELECT distinct storage_domains_for_search.* FROM storage_domains_for_search ) ORDER BY storage_name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "Storage: datacenter = Default" , "SELECT * FROM ((SELECT distinct storage_domains_for_search.* FROM storage_domains_for_search WHERE Default LIKE ANY(string_to_array(storage_domains_for_search.storage_pool_name::text, ','))) ORDER BY storage_name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "Storage: host.name = fake1" , "SELECT * FROM ((SELECT distinct storage_domains_for_search.* FROM storage_domains_for_search LEFT OUTER JOIN vds_with_tags ON storage_domains_for_search.id=vds_with_tags.storage_id WHERE vds_with_tags.vds_name LIKE fake1 ) ORDER BY storage_name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; }

Target:
public void testStorage ( ) { testValidSql ( "Storage: " , "SELECT * FROM ((SELECT distinct storage_domains_for_search.* FROM storage_domains_for_search ) ORDER BY storage_name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "Storage: datacenter = Default" , "SELECT * FROM ((SELECT distinct storage_domains_for_search.* FROM storage_domains_for_search WHERE Default LIKE ANY(string_to_array(storage_domains_for_search.storage_pool_name::text, ','))) ORDER BY storage_name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "Storage: host.name = fake1" , "SELECT * FROM ((SELECT distinct storage_domains_for_search.* FROM storage_domains_for_search LEFT OUTER JOIN vds_with_tags ON storage_domains_for_search.id=vds_with_tags.storage_id WHERE (vds_with_tags.vds_name IS NULL OR vds_with_tags.vds_name LIKE fake1) ) ORDER BY storage_name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; }
Source:
private boolean isVnicProfilePermitted ( org.ovirt.engine.core.compat.Guid userId , org.ovirt.engine.core.common.businessentities.network.VnicProfile profile , org.ovirt.engine.core.common.businessentities.ActionGroup actionGroup ) { return ( getPermissionDAO ( ) . getEntityPermissions ( userId , actionGroup , profile.getId ( ) , VdcObjectType.VnicProfile ) ) != null ; }

Target:
private boolean isVnicProfilePermitted ( org.ovirt.engine.core.compat.Guid userId , org.ovirt.engine.core.common.businessentities.network.VnicProfile profile , org.ovirt.engine.core.common.businessentities.ActionGroup actionGroup ) { return ( org.ovirt.engine.core.bll.ImportVmCommand.getPermissionDAO ( ) . getEntityPermissions ( userId , actionGroup , profile.getId ( ) , VdcObjectType.VnicProfile ) ) != null ; }
Source:
public void validPropertyUnknownDeviceType ( ) { org.ovirt.engine.core.utils.customprop.DevicePropertiesUtils utils = mockDevicePropertiesUtils ( ) ; java.util.List < org.ovirt.engine.core.common.utils.customprop.ValidationError > errors = utils.validateProperties ( Version.v3_3 , VmDeviceGeneralType.UNKNOWN , utils.convertProperties ( "speed=10;duplex=half" ) ) ; org.ovirt.engine.core.common.utils.customprop.PropertiesUtilsTestHelper.validateFailure ( errors , ValidationFailureReason.INVALID_DEVICE_TYPE ) ; }

Target:
public void validPropertyUnknownDeviceType ( ) { org.ovirt.engine.core.utils.customprop.DevicePropertiesUtils utils = mockDevicePropertiesUtils ( ) ; java.util.List < org.ovirt.engine.core.common.utils.customprop.ValidationError > errors = utils.validateProperties ( Version.v4_0 , VmDeviceGeneralType.UNKNOWN , utils.convertProperties ( "speed=10;duplex=half" ) ) ; org.ovirt.engine.core.common.utils.customprop.PropertiesUtilsTestHelper.validateFailure ( errors , ValidationFailureReason.INVALID_DEVICE_TYPE ) ; }
Source:
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.provider.SubTabProviderSecretPresenter.constants.providerSecretsSubTabLabel ( ) , 2 ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( ) { return org.ovirt.engine.ui.webadmin.section.main.presenter.tab.DetailTabDataIndex.PROVIDER_SECRET ; }
Source:
public void loadAttachableDisks ( org.ovirt.engine.core.common.businessentities.storage.Disk prevSelected ) { doLoadAttachableDisks ( new org.ovirt.engine.ui.uicommonweb.models.vms.InstanceImagesAttachDiskModel.InstanceImageGetDisksCallback ( org.ovirt.engine.core.common.businessentities.storage.DiskStorageType.IMAGE , prevSelected ) , new org.ovirt.engine.ui.uicommonweb.models.vms.InstanceImagesAttachDiskModel.InstanceImageGetDisksCallback ( org.ovirt.engine.core.common.businessentities.storage.DiskStorageType.LUN , prevSelected ) ) ; }

Target:
public void loadAttachableDisks ( org.ovirt.engine.core.common.businessentities.storage.Disk prevSelected ) { doLoadAttachableDisks ( new org.ovirt.engine.ui.uicommonweb.models.vms.InstanceImagesAttachDiskModel.InstanceImageGetDisksCallback ( org.ovirt.engine.core.common.businessentities.storage.DiskStorageType.IMAGE , prevSelected ) , new org.ovirt.engine.ui.uicommonweb.models.vms.InstanceImagesAttachDiskModel.InstanceImageGetDisksCallback ( org.ovirt.engine.core.common.businessentities.storage.DiskStorageType.LUN , prevSelected ) , new org.ovirt.engine.ui.uicommonweb.models.vms.InstanceImagesAttachDiskModel.InstanceImageGetDisksCallback ( org.ovirt.engine.core.common.businessentities.storage.DiskStorageType.CINDER , prevSelected ) ) ; }
Source:
public void tSleep_2_error ( java.lang.Exception exception , java.lang.String errorComponent , final java.util.Map < java.lang.String , java.lang.Object > globalMap ) throws ovirt_engine_dwh.parallelrun_3_1.ParallelRun.TalendException { end_Hash.put ( "tSleep_2" , java.lang.System.currentTimeMillis ( ) ) ; tSleep_2_onSubJobError ( exception , errorComponent , globalMap ) ; }

Target:
public void tJava_3_error ( java.lang.Exception exception , java.lang.String errorComponent , final java.util.Map < java.lang.String , java.lang.Object > globalMap ) throws ovirt_engine_dwh.parallelrun_3_1.ParallelRun.TalendException { end_Hash.put ( "tJava_3" , java.lang.System.currentTimeMillis ( ) ) ; tJava_3_onSubJobError ( exception , errorComponent , globalMap ) ; }
Source:
public void testDefaultPoolFlagIsNotSetValidUsage ( ) throws java.lang.Exception { macPool.setDefaultPool ( false ) ; org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.MacPoolValidator ( macPool ) . defaultPoolFlagIsNotSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { this . macPoolValidator = createMacPoolValidator ( macPool ) ; org.mockito.Mockito.when ( dbFacadeMock.getMacPoolDao ( ) ) . thenReturn ( macPoolDaoMock ) ; org.mockito.Mockito.when ( dbFacadeMock.getStoragePoolDao ( ) ) . thenReturn ( storagePoolDao ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? source : new java.util.HashMap < org.ovirt.engine.core.common.businessentities.VmTemplate , java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.DiskImage > > ( ) ; }

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.storage.LUNs > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.LUNs > ( ) ; }
Source:
public void testValidName ( ) { prepareVmToPassValidate ( ) ; mockVmValidator ( ) ; command.initEffectiveCompatibilityVersion ( ) ; boolean c = command.validate ( ) ; org.junit.Assert.assertTrue ( "validate should have passed." , c ) ; }

Target:
public void testValidName ( ) { prepareVmToPassValidate ( ) ; mockVmValidator ( ) ; command.initEffectiveCompatibilityVersion ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( command ) ; }
Source:
public static boolean bigDecimalEqual ( java.math.BigDecimal bd1 , java.math.BigDecimal bd2 ) { return ( bd1 == bd2 ) || ( ( ( bd1 != null ) && ( bd2 != null ) ) && ( ( bd1.compareTo ( bd2 ) ) == 0 ) ) ; }

Target:
public static boolean bigDecimalEqual ( java.math.BigDecimal a , java.math.BigDecimal b ) { return ( a == b ) || ( ( ( a != null ) && ( b != null ) ) && ( ( a.compareTo ( b ) ) == 0 ) ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.UICommand getCancelCommand ( ) { return cancelCommand ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > getVmDisks ( ) { return vmDisks ; }
Source:
protected void onSelectedItemChanged ( ) { super . onSelectedItemChanged ( ) ; if ( ( getSelectedItem ( ) ) != null ) { updateFormat ( ) ; updateHost ( ) ; } }

Target:
protected void storageType_SelectedItemChanged ( ) { updateCurrentStorageItem ( ) ; if ( ( getCurrentStorageItem ( ) ) != null ) { updateFormat ( ) ; updateHost ( ) ; } updateWipeAfterDelete ( ) ; }
Source:
private void nullifyInternalProxies ( ) { if ( ( privatemIrsProxy ) != null ) { org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcUtils.shutDownConnection ( ( ( org.ovirt.engine.core.vdsbroker.irsbroker.IrsServerWrapper ) ( privatemIrsProxy ) ) . getHttpClient ( ) ) ; } setmCurrentIrsHost ( null ) ; privatemIrsProxy = null ; mCurrentVdsId = null ; }

Target:
private void nullifyInternalProxies ( ) { if ( ( privatemIrsProxy ) != null ) { org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcUtils.shutDownConnection ( ( ( org.ovirt.engine.core.vdsbroker.irsbroker.IrsServerWrapper ) ( privatemIrsProxy ) ) . getHttpClient ( ) ) ; } privatemCurrentIrsHost = null ; privatemIrsProxy = null ; mCurrentVdsId = null ; }
Source:
protected org.ovirt.engine.core.dao.profiles.CpuProfileDao getProfileDao ( ) { return getDbFacade ( ) . getCpuProfileDao ( ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VM > getVmsUsingProfile ( ) { return vmDao.getAllForCpuProfiles ( java.util.Collections.singletonList ( getProfile ( ) . getId ( ) ) ) ; }
Source:
public void testAddGroupWithExplicitDirectoryName ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( ( ( ( "ADGROUP@" + ( DOMAIN ) ) + ": allnames=" ) + ( NAMES [ 0 ] ) ) , SearchType.AdGroup , getDirectoryGroup ( 0 ) ) ; setUpCreationExpectations ( VdcActionType.AddGroup , org.ovirt.engine.core.common.action.AddDirectoryGroupParameters.class , new java.lang.String [ ] { "Group.id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , true , true , null , VdcQueryType.GetDbGroupById , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , getEntity ( 0 ) ) ; org.ovirt.engine.api.model.Domain domain = new org.ovirt.engine.api.model.Domain ( ) ; domain.setName ( org.ovirt.engine.api.restapi.resource.DOMAIN ) ; org.ovirt.engine.api.model.Group model = new org.ovirt.engine.api.model.Group ( ) ; model.setName ( NAMES [ 0 ] ) ; model.setDomain ( domain ) ; javax.ws.rs.core.Response response = collection.add ( model ) ; assertEquals ( 201 , response.getStatus ( ) ) ; assertTrue ( ( ( response.getEntity ( ) ) instanceof org.ovirt.engine.api.model.Group ) ) ; verifyModel ( ( ( org.ovirt.engine.api.model.Group ) ( response.getEntity ( ) ) ) , 0 ) ; }

Target:
public void testAddGroupWithExplicitDirectoryName ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( ( ( ( "ADGROUP@" + ( DOMAIN ) ) + ": allnames=" ) + ( NAMES [ 0 ] ) ) , SearchType.AdGroup , getDirectoryGroup ( 0 ) ) ; setUpCreationExpectations ( VdcActionType.AddGroup , org.ovirt.engine.core.common.action.DirectoryIdParameters.class , new java.lang.String [ ] { "Directory" , "Id" } , new java.lang.Object [ ] { DOMAIN , GUIDS [ 0 ] } , true , true , null , VdcQueryType.GetDbGroupById , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , getEntity ( 0 ) ) ; org.ovirt.engine.api.model.Domain domain = new org.ovirt.engine.api.model.Domain ( ) ; domain.setName ( org.ovirt.engine.api.restapi.resource.DOMAIN ) ; org.ovirt.engine.api.model.Group model = new org.ovirt.engine.api.model.Group ( ) ; model.setName ( NAMES [ 0 ] ) ; model.setDomain ( domain ) ; javax.ws.rs.core.Response response = collection.add ( model ) ; assertEquals ( 201 , response.getStatus ( ) ) ; assertTrue ( ( ( response.getEntity ( ) ) instanceof org.ovirt.engine.api.model.Group ) ) ; verifyModel ( ( ( org.ovirt.engine.api.model.Group ) ( response.getEntity ( ) ) ) , 0 ) ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.vms.NewDiskModel diskModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.NewDiskModel ) ( result.getState ( ) ) ) ; diskModel.stopProgress ( ) ; diskModel.cancel ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.vms.NewDiskModel diskModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.NewDiskModel ) ( result.getState ( ) ) ) ; diskModel.stopProgress ( ) ; diskModel.cancel ( ) ; postSave ( ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.StorageDomain createStorageDomain ( org.ovirt.engine.core.common.businessentities.StorageFormatType formatType , org.ovirt.engine.core.common.businessentities.StorageType storageType ) { org.ovirt.engine.core.common.businessentities.StorageDomain sd = new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ; sd.setStorageFormat ( formatType ) ; sd.setStorageType ( storageType ) ; return sd ; }

Target:
private org.ovirt.engine.core.common.businessentities.StorageDomain createStorageDomain ( org.ovirt.engine.core.common.businessentities.StorageFormatType formatType , org.ovirt.engine.core.common.businessentities.storage.StorageType storageType ) { org.ovirt.engine.core.common.businessentities.StorageDomain sd = new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ; sd.setStorageFormat ( formatType ) ; sd.setStorageType ( storageType ) ; return sd ; }
Source:
private org.ovirt.engine.core.bll.network.cluster.UpdateNetworkClusterValidator createNetworkClusterValidator ( ) { return new org.ovirt.engine.core.bll.network.cluster.UpdateNetworkClusterValidator ( interfaceDao , networkDao , org.ovirt.engine.core.bll.network.cluster.UpdateNetworkOnClusterCommand.getNetworkCluster ( ) , getOldNetworkCluster ( ) ) ; }

Target:
private org.ovirt.engine.core.bll.network.cluster.UpdateNetworkClusterValidator createNetworkClusterValidator ( ) { return new org.ovirt.engine.core.bll.network.cluster.UpdateNetworkClusterValidator ( interfaceDao , networkDao , vdsDao , org.ovirt.engine.core.bll.network.cluster.UpdateNetworkOnClusterCommand.getNetworkCluster ( ) , getOldNetworkCluster ( ) ) ; }
Source:
void initComboBoxEditors ( ) { networkListEditor = new org.ovirt.engine.ui.common.widget.editor.ListModelListBoxEditor < java.lang.Object > ( ) ; networkNameEditor = new org.ovirt.engine.ui.common.widget.editor.EntityModelTextBoxEditor ( ) ; networkComboBox = new org.ovirt.engine.ui.common.widget.ComboBox ( networkListEditor , networkNameEditor ) ; }

Target:
void initComboBoxEditors ( ) { networkListEditor = new org.ovirt.engine.ui.common.widget.editor.ListModelListBoxEditor < java.lang.String > ( ) ; networkNameEditor = new org.ovirt.engine.ui.common.widget.editor.generic.StringEntityModelTextBoxEditor ( ) ; networkComboBox = new org.ovirt.engine.ui.common.widget.ComboBox < java.lang.String > ( networkListEditor , networkNameEditor ) ; }
Source:
public void moveDiskToGluster ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ) ; initSrcStorageDomain ( ) ; initDestStorageDomain ( StorageType.GLUSTERFS ) ; initVmDiskImage ( false ) ; org.junit.Assert.assertTrue ( command.validate ( ) ) ; }

Target:
public void moveShareableDiskToGlusterDomain ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ) ; initSrcStorageDomain ( ) ; initDestStorageDomain ( StorageType.GLUSTERFS ) ; initVmDiskImage ( true ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_CANT_MOVE_SHAREABLE_DISK_TO_GLUSTERFS ) ; }
Source:
protected void syncSearch ( ) { super . syncSearch ( VdcQueryType.GetAllMacPools , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ; }

Target:
protected void syncSearch ( ) { super . syncSearch ( QueryType.GetAllMacPools , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ; }
Source:
private static void addOrEmpty ( java.util.Map < java.lang.String , java.lang.String > map , java.lang.String what , java.lang.String name ) { map.put ( name , ( org.ovirt.engine.core.compat.StringHelper.isNullOrEmpty ( what ) ? "" : what ) ) ; }

Target:
private static void addOrEmpty ( java.util.Map < java.lang.String , java.lang.String > map , java.lang.String what , java.lang.String name ) { map.put ( name , ( org.apache.commons.lang.StringUtils.isEmpty ( what ) ? "" : what ) ) ; }
Source:
public void unsupportedVersion ( ) { storagePoolWithInvalidVersion ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , org.ovirt.engine.core.bll.utils.VersionSupport.getUnsupportedVersionMessage ( ) ) ; }

Target:
public void unsupportedVersion ( ) { cmd.getStoragePool ( ) . setCompatibilityVersion ( org.ovirt.engine.core.bll.storage.pool.UpdateStoragePoolCommandTest.VERSION_2_0 ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , org.ovirt.engine.core.bll.utils.VersionSupport.getUnsupportedVersionMessage ( ) ) ; }
Source:
public boolean isNewerThan ( final org.ovirt.engine.core.bll.scheduling.OS os ) { return ( getVersion ( ) . compareTo ( os.getVersion ( ) ) ) > 0 ; }

Target:
public boolean isOlderThan ( final org.ovirt.engine.core.bll.scheduling.OS os ) { return getVersion ( ) . less ( os.getVersion ( ) ) ; }
Source:
public void getFilteredWithPermissionsNoPermissions ( ) { org.ovirt.engine.core.common.businessentities.Snapshot snapshot = dao.get ( org.ovirt.engine.core.dao.SnapshotDaoTest.EXISTING_SNAPSHOT_ID , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNull ( snapshot ) ; }

Target:
public void getFilteredWithPermissionsNoPermissions ( ) { org.ovirt.engine.core.common.businessentities.Snapshot snapshot = dao.get ( org.ovirt.engine.core.dao.SnapshotDaoTest.EXISTING_SNAPSHOT_ID , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.jupiter.api.Assertions.assertNull ( snapshot ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getVmDeviceByVmIdTypeAndDevice ( org.ovirt.engine.core.compat.Guid vmId , java.lang.String type , java.lang.String device ) { return getVmDeviceByVmIdTypeAndDevice ( vmId , type , device , null , false ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getVmDeviceByVmIdTypeAndDevice ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.common.businessentities.VmDeviceGeneralType type , java.lang.String device ) { return getVmDeviceByVmIdTypeAndDevice ( vmId , type , device , null , false ) ; }
Source:
org.ovirt.engine.core.bll.aaa.SessionDataContainer getSessionDataContainer ( ) { return org.ovirt.engine.core.bll.aaa.SessionDataContainer.getInstance ( ) ; }

Target:
protected org.ovirt.engine.core.bll.aaa.SessionDataContainer getSessionDataContainer ( ) { return sessionDataContainer ; }
Source:
private org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap getStoragePoolIsoMap ( ) { return org.ovirt.engine.core.bll.storage.StorageDomainCommandBase.getStoragePoolIsoMapDAO ( ) . get ( new org.ovirt.engine.core.common.businessentities.StoragePoolIsoMapId ( org.ovirt.engine.core.bll.storage.StorageDomainCommandBase.getStorageDomain ( ) . getId ( ) , org.ovirt.engine.core.bll.storage.StorageDomainCommandBase.getStoragePoolId ( ) ) ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap getStoragePoolIsoMap ( ) { return org.ovirt.engine.core.bll.storage.StorageDomainCommandBase.getStoragePoolIsoMapDao ( ) . get ( new org.ovirt.engine.core.common.businessentities.StoragePoolIsoMapId ( org.ovirt.engine.core.bll.storage.StorageDomainCommandBase.getStorageDomain ( ) . getId ( ) , org.ovirt.engine.core.bll.storage.StorageDomainCommandBase.getStoragePoolId ( ) ) ) ; }
Source:
public void addLabelStyleName ( java.lang.String styleName ) { getLabelElement ( ) . addClassName ( styleName ) ; }

Target:
public void removeContentWidgetStyleName ( java.lang.String styleName ) { getContentWidget ( ) . asWidget ( ) . removeStyleName ( styleName ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.Quota > searchQuota ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Quota > quotaList = genericSearch ( org.ovirt.engine.core.bll.SearchQuery.getDbFacade ( ) . getQuotaDao ( ) , true ) ; getQuotaManager ( ) . updateUsage ( quotaList ) ; return quotaList ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > searchImageTypes ( ) { return genericSearch ( vmTemplateDao , true ) ; }
Source:
protected java.util.Collection < org.ovirt.engine.core.compat.Guid > getStorageDomainsIds ( ) { return org.ovirt.engine.core.bll.ImagesHandler.getAllStorageIdsForImageIds ( getSourceImages ( ) ) ; }

Target:
protected java.util.Collection < org.ovirt.engine.core.compat.Guid > getStorageDomainsIds ( ) { return org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.getAllStorageIdsForImageIds ( getSourceImages ( ) ) ; }
Source:
public void setCpuSockets ( java.lang.Integer value ) { this . mVdsDynamic.setcpu_sockets ( value ) ; }

Target:
public void setCpuSockets ( java.lang.Integer value ) { vdsDynamic.setCpuSockets ( value ) ; }
Source:
public void testMapAutoconf ( ) { org.ovirt.engine.api.restapi.types.Ipv4BootProtocolMapper.map ( BootProtocol.AUTOCONF ) ; }

Target:
public void testMapAutoconf ( ) { org.junit.jupiter.api.Assertions.assertThrows ( javax.ws.rs.WebApplicationException.class , ( ) -> org.ovirt.engine.api.restapi.types.Ipv4BootProtocolMapper.map ( BootProtocol.AUTOCONF ) ) ; }