auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public boolean isAutoStartup ( ) { return vmStatic.getauto_startup ( ) ; }

Target:
public void setAutoStartup ( boolean value ) { vmStatic.setAutoStartup ( value ) ; }
Source:
private void addStorageDomainOvfInfoToDb ( org.ovirt.engine.core.compat.Guid diskId ) { org.ovirt.engine.core.common.businessentities.StorageDomainOvfInfo storageDomainOvfInfo = new org.ovirt.engine.core.common.businessentities.StorageDomainOvfInfo ( org.ovirt.engine.core.bll.storage.ovfstore.CreateOvfVolumeForStorageDomainCommand.getStorageDomainId ( ) , null , diskId , org.ovirt.engine.core.common.businessentities.StorageDomainOvfInfoStatus.DISABLED , null ) ; org.ovirt.engine.core.bll.storage.ovfstore.CreateOvfVolumeForStorageDomainCommand.getStorageDomainOvfInfoDao ( ) . save ( storageDomainOvfInfo ) ; }

Target:
private void addStorageDomainOvfInfoToDb ( org.ovirt.engine.core.compat.Guid diskId ) { org.ovirt.engine.core.common.businessentities.StorageDomainOvfInfo storageDomainOvfInfo = new org.ovirt.engine.core.common.businessentities.StorageDomainOvfInfo ( org.ovirt.engine.core.bll.storage.ovfstore.CreateOvfVolumeForStorageDomainCommand.getStorageDomainId ( ) , null , diskId , org.ovirt.engine.core.common.businessentities.StorageDomainOvfInfoStatus.DISABLED , null ) ; storageDomainOvfInfoDao.save ( storageDomainOvfInfo ) ; }
Source:
public void testValidateQosNotPartiallyConfiguredWhenNotUpdatingAttachments ( ) { org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator validator = new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorTest.HostSetupNetworksValidatorBuilder ( ) . build ( ) ; java.util.Collection < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > networkAttachments = java.util.Collections.emptyList ( ) ; org.junit.Assert.assertThat ( validator.validateQosNotPartiallyConfigured ( networkAttachments ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testValidateQosNotPartiallyConfiguredWhenNotUpdatingAttachments ( ) { org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator validator = new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorTest.HostSetupNetworksValidatorBuilder ( ) . build ( ) ; java.util.Collection < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > networkAttachments = java.util.Collections.emptyList ( ) ; org.hamcrest.MatcherAssert.assertThat ( validator.validateQosNotPartiallyConfigured ( networkAttachments ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void writeElement ( java.lang.String uri , java.lang.String name , java.lang.String value ) { writeStartElement ( uri , name ) ; writeCharacters ( value ) ; writeEndElement ( ) ; }

Target:
public void writeStartElement ( java.lang.String uri , java.lang.String name ) { try { writer.writeStartElement ( uri , name ) ; } catch ( javax.xml.stream.XMLStreamException exception ) { throw new org.ovirt.api.metamodel.runtime.xml.XmlException ( ( ( "Can\'t write start element for tag \"" + name ) + "\"" ) , exception ) ; } }
Source:
private void setSearchStringPage ( int newSearchPageNumber ) { this . pagingSearchString = " page " + newSearchPageNumber ; }

Target:
private void setSearchStringPage ( int newSearchPageNumber ) { this . pagingSearchString = " page " + newSearchPageNumber ; this . currentPageNumber = newSearchPageNumber ; }
Source:
public void testGetWithTrailingSlashVirtOnly ( ) { doTestGet ( ApplicationMode.VirtOnly , ( ( org.ovirt.engine.api.restapi.resource.BackendApiResourceTest.URI_BASE ) + "/" ) ) ; }

Target:
public void testGetGlusterOnly ( ) { doTestGlusterOnlyGet ( ) ; }
Source:
public org.ovirt.engine.api.model.HostNIC get ( ) ;

Target:
org.ovirt.engine.api.resource.NetworkAttachmentsResource getNetworkAttachmentsResource ( ) ;
Source:
protected org.ovirt.engine.core.common.businessentities.StorageDomain getSourceDomain ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain source = new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ; source.setstorage_domain_type ( StorageDomainType.ImportExport ) ; source.setstatus ( StorageDomainStatus.Active ) ; return source ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StorageDomain getSourceDomain ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain source = new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ; source.setStorageDomainType ( StorageDomainType.ImportExport ) ; source.setStatus ( StorageDomainStatus.Active ) ; return source ; }
Source:
public void invalidCpuSelection ( ) { createSimpleCommand ( ) ; canDoActionFailedWithReason ( VdcBllMessages.ACTION_TYPE_FAILED_CPU_NOT_FOUND ) ; }

Target:
public void invalidCpuSelection ( ) { createCommandWithDefaultVdsGroup ( ) ; canDoActionFailedWithReason ( VdcBllMessages.ACTION_TYPE_FAILED_CPU_NOT_FOUND ) ; }
Source:
public static void revertTasks ( final org.ovirt.engine.core.bll.CommandBase command ) { org.ovirt.engine.core.bll.tasks.TaskManagerUtil.coco.revertTasks ( command ) ; }

Target:
public static void revertTasks ( final org.ovirt.engine.core.bll.CommandBase command ) { org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.coco.revertTasks ( command ) ; }
Source:
public void validCorrelationId ( ) { org.ovirt.engine.core.common.action.ActionParametersBase parameters = new org.ovirt.engine.core.common.action.ActionParametersBase ( ) ; parameters.setCorrelationId ( "VALID_CORRELATION_ID" ) ; org.ovirt.engine.core.common.action.ActionReturnValue result = org.ovirt.engine.core.bll.job.ExecutionHandler.evaluateCorrelationId ( parameters ) ; org.junit.Assert.assertNull ( "Correlation id is valid" , result ) ; }

Target:
public void validCorrelationId ( ) { org.ovirt.engine.core.common.action.ActionParametersBase parameters = new org.ovirt.engine.core.common.action.ActionParametersBase ( ) ; parameters.setCorrelationId ( "VALID_CORRELATION_ID" ) ; org.ovirt.engine.core.common.action.ActionReturnValue result = org.ovirt.engine.core.bll.job.ExecutionHandler.evaluateCorrelationId ( parameters ) ; org.junit.jupiter.api.Assertions.assertNull ( result , "Correlation id is valid" ) ; }
Source:
public java.lang.String render ( java.util.Date entity ) { if ( entity == null ) { return org.ovirt.engine.ui.webadmin.section.main.view.popup.gluster.VolumeRebalanceStatusPopupView.constants.unAvailablePropertyLabel ( ) ; } return org.ovirt.engine.ui.common.widget.renderer.GlusterRebalanceDateTimeRenderer.getLocalizedDateTimeFormat ( ) . format ( entity ) ; }

Target:
public java.lang.String render ( java.util.Date entity ) { if ( entity == null ) { return org.ovirt.engine.ui.webadmin.section.main.view.popup.gluster.VolumeRebalanceStatusPopupView.constants.unAvailablePropertyLabel ( ) ; } return renderer.render ( entity ) ; }
Source:
public org.ovirt.engine.core.bll.tasks.interfaces.CommandCallback getCallback ( ) { return org.ovirt.engine.core.di.Injector.injectMembers ( new org.ovirt.engine.core.bll.storage.dr.GlusterStorageGeoRepSyncCallback ( ) ) ; }

Target:
public org.ovirt.engine.core.bll.tasks.interfaces.CommandCallback getCallback ( ) { return callbackProvider.get ( ) ; }
Source:
public org.ovirt.engine.core.bll.CommandBase < ? > createAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , org.ovirt.engine.core.bll.context.CommandContext context ) { return org.ovirt.engine.core.bll.CommandsFactory.createCommand ( actionType , parameters , context ) ; }

Target:
public org.ovirt.engine.core.bll.CommandBase < ? > createAction ( org.ovirt.engine.core.common.action.ActionType actionType , org.ovirt.engine.core.common.action.ActionParametersBase parameters , org.ovirt.engine.core.bll.context.CommandContext context ) { return org.ovirt.engine.core.bll.CommandsFactory.createCommand ( actionType , parameters , context ) ; }
Source:
protected void AsyncSearch ( ) { super . AsyncSearch ( ) ; setAsyncResult ( org.ovirt.engine.ui.frontend.Frontend.RegisterSearch ( getSearchString ( ) , SearchType.VDS , getSearchPageSize ( ) ) ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }

Target:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; setAsyncResult ( org.ovirt.engine.ui.frontend.Frontend.RegisterSearch ( getSearchString ( ) , SearchType.VDS , getSearchPageSize ( ) ) ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }
Source:
public void testGetStorageTypesInPoolForMixedTypes ( ) { org.ovirt.engine.core.compat.Guid poolId = FixturesTool.STORAGE_POOL_MIXED_TYPES ; java.util.List < org.ovirt.engine.core.common.businessentities.StorageType > storageTypes = dao.getStorageTypesInPool ( poolId ) ; assertStorageTypes ( storageTypes , StorageType.POSIXFS , StorageType.NFS , StorageType.ISCSI ) ; }

Target:
public void testGetStorageTypesInPoolForMixedTypes ( ) { org.ovirt.engine.core.compat.Guid poolId = FixturesTool.STORAGE_POOL_MIXED_TYPES ; java.util.List < org.ovirt.engine.core.common.businessentities.storage.StorageType > storageTypes = dao.getStorageTypesInPool ( poolId ) ; assertStorageTypes ( storageTypes , StorageType.POSIXFS , StorageType.NFS , StorageType.ISCSI ) ; }
Source:
public void handlePlaceTransition ( ) { }

Target:
public void handlePlaceTransition ( boolean linkClicked ) { }
Source:
public java.lang.Object runInTransaction ( ) { org.ovirt.engine.core.common.businessentities.Snapshot s = getSnapshotDao ( ) . get ( snapshotId ) ; s = org.ovirt.engine.core.bll.ImagesHandler.prepareSnapshotConfigWithAlternateImage ( s , oldImageId , newImage ) ; getSnapshotDao ( ) . update ( s ) ; return null ; }

Target:
public java.lang.Object runInTransaction ( ) { org.ovirt.engine.core.common.businessentities.Snapshot s = getSnapshotDao ( ) . get ( snapshotId ) ; s = org.ovirt.engine.core.bll.ImagesHandler.prepareSnapshotConfigWithoutImageSingleImage ( s , imageId ) ; getSnapshotDao ( ) . update ( s ) ; return null ; }
Source:
public void ExecuteCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { super . ExecuteCommand ( command ) ; if ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( command.getName ( ) , "OnSave" ) ) { onSave ( ) ; } }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { super . executeCommand ( command ) ; if ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( command.getName ( ) , "OnSave" ) ) { onSave ( ) ; } }
Source:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createBond ( java.lang.String name , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , name , true , null , null , networkName , true , null ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createNic ( java.lang.String nicName , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , nicName , false , null , null , networkName , true , null , false , null ) ; }
Source:
public void testGetLunsThatBreakDiscardAfterDeleteSupportStorageDomainDiscardAfterDeleteDisabled ( ) { storageDomain.setDiscardAfterDelete ( false ) ; assertGetLunsThatBreakDiscardAfterDeleteSupportContainsExpectedLuns ( java.util.Arrays.asList ( createLunWithDiscardFunctionality ( 1024L , true ) , createLunWithDiscardFunctionality ( 0L , false ) ) , java.util.Collections.emptyList ( ) ) ; }

Target:
public void testExistingDiscardAfterDeleteFunctionalityPreservedNoDiscardAfterDeleteFunctionality ( ) { storageDomain.setDiscardAfterDelete ( false ) ; org.junit.Assert.assertTrue ( discardHelper.isExistingDiscardAfterDeleteFunctionalityPreserved ( java.util.Arrays.asList ( createLunWithDiscardSupport ( 0L ) , createLunWithDiscardSupport ( 0L ) ) , storageDomain ) ) ; }
Source:
public void afterCompletion ( int status ) { if ( ! ( org.ovirt.engine.core.utils.transaction.TransactionSupport.needToRollback ( status ) ) ) return ; rollbackHandler.rollback ( ) ; }

Target:
public void afterCompletion ( int status ) { if ( org.ovirt.engine.core.utils.transaction.TransactionSupport.needToRollback ( status ) ) { transactionCompletionListener.onRollback ( ) ; } else { transactionCompletionListener.onSuccess ( ) ; } }
Source:
protected void setTooltip ( com.google.gwt.safehtml.shared.SafeHtml tooltipText ) { this . tooltipText = tooltipText ; }

Target:
protected void setHeaderTooltipStyle ( com.google.gwt.safehtml.shared.SafeHtml tooltipText ) { if ( ( tooltipText == null ) || ( tooltipText.asString ( ) . isEmpty ( ) ) ) { renderedHeaderText = this . headerText ; } else { renderedHeaderText = org.ovirt.engine.ui.common.widget.table.header.SafeHtmlHeader.templates.hasTooltip ( headerText ) ; } }
Source:
public javax.ws.rs.core.Response remove ( ) { return adaptRemove ( delegate :: remove ) ; }

Target:
public org.ovirt.engine.api.v3.types.V3VM update ( org.ovirt.engine.api.v3.types.V3VM vm ) { return adaptUpdate ( getDelegate ( ) :: update , vm ) ; }
Source:
public void testIsNetworkInSyncWhenAverageLinkShareDifferentIfaceQosOverridden ( ) throws java.lang.Exception { ifaceQos.setOutAverageLinkshare ( 1 ) ; networkQos.setOutAverageLinkshare ( 2 ) ; iface.setQosOverridden ( true ) ; org.junit.Assert.assertThat ( createTestedInstanceWithSameNonQosValues ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testIsNetworkInSyncWhenNetworkQosIsNull ( ) throws java.lang.Exception { networkQos = null ; org.junit.Assert.assertThat ( createTestedInstanceWithSameNonQosValues ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.MainModelProvider < org.ovirt.engine.core.common.businessentities.VDS , org.ovirt.engine.ui.uicommonweb.models.hosts.HostListModel < java.lang.Void > > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.hostMainTabLabel ( ) , 2 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.MainModelProvider < org.ovirt.engine.core.common.businessentities.VDS , org.ovirt.engine.ui.uicommonweb.models.hosts.HostListModel < java.lang.Void > > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.MainTabHostPresenter.constants.hostMainTabLabel ( ) , 2 , modelProvider ) ; }
Source:
public void testIsUpdInvalid ( ) { storagePool.setStatus ( StoragePoolStatus.NonResponsive ) ; org.ovirt.engine.core.bll.storage.StoragePoolValidatorTest.assertMessage ( validator.isUp ( ) , VdcBllMessages.ACTION_TYPE_FAILED_IMAGE_REPOSITORY_NOT_FOUND ) ; }

Target:
public void testIsUpdInvalid ( ) { storagePool.setStatus ( StoragePoolStatus.NonResponsive ) ; org.junit.Assert.assertThat ( validator.isUp ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_IMAGE_REPOSITORY_NOT_FOUND ) ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { org.ovirt.engine.ui.common.uicommon.model.CommonModelManager.commonModel = null ; loginModel.resetAfterLogout ( ) ; user.onUserLogout ( ) ; frontendFailureEventListener.hide ( ) ; }

Target:
public void execute ( ) { org.ovirt.engine.ui.common.uicommon.model.CommonModelManager.commonModel = null ; }
Source:
protected void executeValidatedCommands ( org.ovirt.engine.core.bll.CommandBase < ? > command ) { command.acquireLock ( ) ; super . executeValidatedCommands ( command ) ; }

Target:
protected void executeValidatedCommand ( org.ovirt.engine.core.bll.CommandBase < ? > command ) { command.acquireLock ( ) ; super . executeValidatedCommand ( command ) ; }
Source:
public void getUserProfile ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetUserProfile , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , aQuery ) ; }

Target:
public void getIrsImageList ( org.ovirt.engine.ui.frontend.AsyncQuery < java.util.List < java.lang.String > > aQuery , org.ovirt.engine.core.compat.Guid storagePoolId , boolean forceRefresh , org.ovirt.engine.core.common.businessentities.storage.ImageFileType imageFileType ) { getIrsImageList ( aQuery , storagePoolId , forceRefresh , imageFileType , new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.RepoImageToImageFileNameAsyncConverter ( ) ) ; }
Source:
private static java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLockForHostDevices ( org.ovirt.engine.core.compat.Guid vdsId ) { return java.util.Collections.singletonMap ( vdsId.toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.HOST_DEVICES , VdcBllMessages.ACTION_TYPE_FAILED_OBJECT_LOCKED ) ) ; }

Target:
private static java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLockForHostDevices ( org.ovirt.engine.core.compat.Guid vdsId ) { return java.util.Collections.singletonMap ( vdsId.toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.HOST_DEVICES , EngineMessage.ACTION_TYPE_FAILED_OBJECT_LOCKED ) ) ; }
Source:
public org.ovirt.engine.api.resource.LabelResource getLabelResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendHostNicLabelResource ( id , this ) ) ; }

Target:
protected javax.ws.rs.core.Response performCreate ( java.lang.String labelId ) { return performCreate ( VdcActionType.LabelNic , new org.ovirt.engine.core.common.action.LabelNicParameters ( nicId , labelId ) , new org.ovirt.engine.api.restapi.resource.NetworkLabelIdResolver ( nicId ) ) ; }
Source:
public void testGetSystemStatisticsValueWithoutSpecifiedStatus ( ) { int numOfUsers = dbFacade.GetSystemStatisticsValue ( "User" , "" ) ; org.junit.Assert.assertTrue ( ( numOfUsers == ( org.ovirt.engine.core.dao.DbFacadeDAOTest.NUM_OF_USERS_IN_FIXTURES ) ) ) ; }

Target:
public void testGetSystemStatisticsValueWithoutSpecifiedStatus ( ) { int numOfUsers = dbFacade.getSystemStatisticsValue ( "User" , "" ) ; org.junit.Assert.assertTrue ( ( numOfUsers == ( org.ovirt.engine.core.dao.DbFacadeDAOTest.NUM_OF_USERS_IN_FIXTURES ) ) ) ; }
Source:
java.lang.String removeStorageQoSMessage ( int numOfProfiles ) ;

Target:
java.lang.String removeNetworkQoSMessage ( int numOfProfiles ) ;
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { getBehavior ( ) . updateTimeZone ( ) ; }

Target:
private void vmTypeChanged ( ) { behavior.vmTypeChanged ( ( ( org.ovirt.engine.core.common.businessentities.VmType ) ( getVmType ( ) . getSelectedItem ( ) ) ) ) ; }
Source:
public void validPropertyValidDeviceType ( ) { 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.INTERFACE , utils.convertProperties ( "speed=10;duplex=half;debug=" ) ) ; org.junit.Assert.assertTrue ( errors.isEmpty ( ) ) ; }

Target:
public void validPropertyValidDeviceType ( ) { 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.INTERFACE , utils.convertProperties ( "speed=10;duplex=half;debug=" ) ) ; org.junit.Assert.assertTrue ( errors.isEmpty ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.BootSequence getDefaultBootSequence ( ) { return this . vmStatic.getdefault_boot_sequence ( ) ; }

Target:
public void setFailBack ( boolean value ) { this . vmStatic.setFailBack ( value ) ; }
Source:
public org.ovirt.engine.core.common.queries.VdcQueryReturnValue runQuery ( org.ovirt.engine.core.common.queries.VdcQueryType actionType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters ) { return runQueryImpl ( actionType , parameters , true ) ; }

Target:
protected org.ovirt.engine.core.common.queries.VdcQueryReturnValue runQueryImpl ( org.ovirt.engine.core.common.queries.VdcQueryType actionType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters , boolean isPerformUserCheck ) { return runQueryImpl ( actionType , parameters , isPerformUserCheck , null ) ; }
Source:
public void setKey ( java.lang.String key ) { this . key = key ; }

Target:
public void setAllowedValues ( java.util.List < java.lang.String > allowedValues ) { this . allowedValues = allowedValues ; }
Source:
public void checkValidKeyValuePair ( ) { org.ovirt.engine.ui.uicommonweb.validation.ValidationResult validationResult = underTest.validate ( "a=a" ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.ui.uicommonweb.validation.KeyValueFormatValidationTest.successfulValidationResult , validationResult ) ; }

Target:
public void checkValidKeyValuePair ( ) { org.ovirt.engine.ui.uicommonweb.validation.ValidationResult validationResult = underTest.validate ( "a=a" ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.ui.uicommonweb.validation.KeyValueFormatValidationTest.successfulValidationResult , validationResult ) ; }
Source:
protected void HandleError ( ) { addCanDoActionMessage ( VdcBllMessages.VDS_FENCE_OPERATION_FAILED ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__HOST ) ; addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__STOP ) ; org.ovirt.engine.core.bll.StopVdsCommand.log.errorFormat ( "Failed to run StopVdsCommand on vds :{0}" , org.ovirt.engine.core.bll.StopVdsCommand.getVdsName ( ) ) ; }

Target:
protected void handleError ( ) { addCanDoActionMessage ( VdcBllMessages.VDS_FENCE_OPERATION_FAILED ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__HOST ) ; addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__STOP ) ; org.ovirt.engine.core.bll.StopVdsCommand.log.errorFormat ( "Failed to run StopVdsCommand on vds :{0}" , org.ovirt.engine.core.bll.StopVdsCommand.getVdsName ( ) ) ; }
Source:
public static org.ovirt.engine.api.model.User map ( org.ovirt.engine.core.common.businessentities.DbUser entity , org.ovirt.engine.api.model.User template ) { org.ovirt.engine.api.model.User model = ( template != null ) ? template : new org.ovirt.engine.api.model.User ( ) ; model.setName ( entity.getFirstName ( ) ) ; model.setUserName ( ( ( ( entity.getLoginName ( ) ) + "@" ) + ( entity.getDomain ( ) ) ) ) ; model.setId ( entity.getId ( ) . toString ( ) ) ; model.setLastName ( entity.getLastName ( ) ) ; model.setEmail ( entity.getEmail ( ) ) ; model.setDepartment ( entity.getDepartment ( ) ) ; model.setDomainEntryId ( org.ovirt.engine.api.restapi.utils.DirectoryEntryIdUtils.encode ( entity.getExternalId ( ) ) ) ; model.setNamespace ( entity.getNamespace ( ) ) ; if ( ( ( entity.getGroupNames ( ) ) != null ) && ( ( entity.getGroupNames ( ) . size ( ) ) > 0 ) ) { model.setGroups ( new org.ovirt.engine.api.model.Groups ( ) ) ; for ( java.lang.String name : entity.getGroupNames ( ) ) { org.ovirt.engine.api.model.Group group = new org.ovirt.engine.api.model.Group ( ) ; group.setName ( name ) ; model.getGroups ( ) . getGroups ( ) . add ( group ) ; } } if ( ! ( org.apache.commons.lang.StringUtils.isEmpty ( entity.getDomain ( ) ) ) ) { org.ovirt.engine.api.model.Domain dom = new org.ovirt.engine.api.model.Domain ( ) ; dom.setId ( new org.ovirt.engine.core.compat.Guid ( entity.getDomain ( ) . getBytes ( ) , true ) . toString ( ) ) ; model.setDomain ( dom ) ; } return model ; }

Target:
public static org.ovirt.engine.api.model.User map ( org.ovirt.engine.core.common.businessentities.aaa.DbUser entity , org.ovirt.engine.api.model.User template ) { org.ovirt.engine.api.model.User model = ( template != null ) ? template : new org.ovirt.engine.api.model.User ( ) ; model.setName ( entity.getFirstName ( ) ) ; model.setUserName ( ( ( ( entity.getLoginName ( ) ) + "@" ) + ( entity.getDomain ( ) ) ) ) ; model.setId ( entity.getId ( ) . toString ( ) ) ; model.setLastName ( entity.getLastName ( ) ) ; model.setEmail ( entity.getEmail ( ) ) ; model.setDepartment ( entity.getDepartment ( ) ) ; model.setDomainEntryId ( org.ovirt.engine.api.restapi.utils.DirectoryEntryIdUtils.encode ( entity.getExternalId ( ) ) ) ; model.setNamespace ( entity.getNamespace ( ) ) ; if ( ( ( entity.getGroupNames ( ) ) != null ) && ( ( entity.getGroupNames ( ) . size ( ) ) > 0 ) ) { model.setGroups ( new org.ovirt.engine.api.model.Groups ( ) ) ; for ( java.lang.String name : entity.getGroupNames ( ) ) { org.ovirt.engine.api.model.Group group = new org.ovirt.engine.api.model.Group ( ) ; group.setName ( name ) ; model.getGroups ( ) . getGroups ( ) . add ( group ) ; } } if ( ! ( org.apache.commons.lang.StringUtils.isEmpty ( entity.getDomain ( ) ) ) ) { org.ovirt.engine.api.model.Domain dom = new org.ovirt.engine.api.model.Domain ( ) ; dom.setId ( new org.ovirt.engine.core.compat.Guid ( entity.getDomain ( ) . getBytes ( ) , true ) . toString ( ) ) ; model.setDomain ( dom ) ; } return model ; }
Source:
public void shouldCreateAsMuchNumaNodesAsVirtualCores ( ) { vm.setNumOfSockets ( 1 ) ; vm.setCpuPerSocket ( 2 ) ; org.junit.Assert.assertTrue ( underTest.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) . isValid ( ) ) ; }

Target:
public void shouldCreateAsMuchNumaNodesAsVirtualCores ( ) { vm.setNumOfSockets ( 1 ) ; vm.setCpuPerSocket ( 2 ) ; org.junit.jupiter.api.Assertions.assertTrue ( underTest.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) . isValid ( ) ) ; }
Source:
public void setvmt_creation_date ( java.util.Date value ) { this . vmt_creation_dateField = value ; }

Target:
public org.ovirt.engine.core.compat.Version getVdsGroupCompatibilityVersion ( ) { return this . vdsGroupCompatibilityVersion ; }
Source:
public org.ovirt.engine.core.common.businessentities.DisplayType getdisplay_type ( ) { return this . mVmDynamic.getdisplay_type ( ) ; }

Target:
public void setExitMessage ( java.lang.String value ) { this . vmDynamic.setExitMessage ( value ) ; }
Source:
protected < T > boolean matchEntity ( org.ovirt.engine.api.model.Disk entity , T id ) { return ( id != null ) && ( id.equals ( entity.getId ( ) ) ) ; }

Target:
protected org.ovirt.engine.api.model.Disk addParents ( org.ovirt.engine.api.model.Disk disk ) { org.ovirt.engine.api.model.Vm vm = new org.ovirt.engine.api.model.Vm ( ) ; vm.setId ( vmId.toString ( ) ) ; disk.setVm ( vm ) ; return disk ; }
Source:
protected final void executeQueryCommand ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain storage = getStorage ( ) ; T returnValue = getAllFromStorage ( storage ) ; org.ovirt.engine.core.bll.storage.export.GetAllFromExportDomainQuery.getQueryReturnValue ( ) . setReturnValue ( returnValue ) ; }

Target:
protected final void executeQueryCommand ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain storage = getStorage ( ) ; T returnValue = getAllFromStorage ( storage ) ; org.ovirt.engine.core.bll.exportimport.GetAllFromExportDomainQuery.getQueryReturnValue ( ) . setReturnValue ( returnValue ) ; }
Source:
public void clearErrorMessage ( ) { setErrorMessage ( null ) ; }

Target:
public void clearErrorMessage ( ) { setErrorMessageHtml ( null ) ; }
Source:
protected void updateMainTabSelection ( java.util.List < T > mainTabSelectedItems ) { this . mainTabSelectedItems = mainTabSelectedItems ; T firstSelectedItem = getMainTabSelectedItem ( ) ; if ( firstSelectedItem != null ) { org.ovirt.engine.ui.common.presenter.AbstractSubTabPresenter.getView ( ) . setMainTabSelectedItem ( firstSelectedItem ) ; } }

Target:
protected org.ovirt.engine.ui.common.presenter.AbstractMainTabSelectedItems < T > getSelectedMainItems ( ) { return selectedMainItems ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.storage.connection.GetStorageServerConnectionsForDomainQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.storage.connection.GetStorageServerConnectionsForDomainQuery.getDbFacade ( ) . getStorageServerConnectionDao ( ) . getAllForDomain ( org.ovirt.engine.core.bll.storage.connection.GetStorageServerConnectionsForDomainQuery.getParameters ( ) . getId ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.storage.connection.GetStorageServerConnectionsForDomainQuery.getQueryReturnValue ( ) . setReturnValue ( storageServerConnectionDao.getAllForDomain ( org.ovirt.engine.core.bll.storage.connection.GetStorageServerConnectionsForDomainQuery.getParameters ( ) . getId ( ) ) ) ; }
Source:
private static org.ovirt.engine.api.model.NetworkPluginType map ( java.lang.String entity ) { if ( OpenstackNetworkPluginType.OPEN_VSWITCH.name ( ) . equalsIgnoreCase ( entity ) ) { return org.ovirt.engine.api.model.NetworkPluginType.OPEN_VSWITCH ; } throw new java.lang.IllegalArgumentException ( ( ( "Unknown network plugin type \"" + entity ) + "\"" ) ) ; }

Target:
private static java.lang.String mapPluginType ( org.ovirt.engine.api.model.NetworkPluginType pluginType ) { if ( pluginType == ( org.ovirt.engine.api.model.NetworkPluginType.OPEN_VSWITCH ) ) { return OpenstackNetworkPluginType.OPEN_VSWITCH.name ( ) ; } throw new java.lang.IllegalArgumentException ( ( ( "Unknown Neutron network plugin type \"" + pluginType ) + "\"" ) ) ; }
Source:
protected abstract boolean getRefreshStatistics ( ) ;

Target:
protected abstract boolean isTimeToRefreshStatistics ( ) ;
Source:
public void testInvalidNumberOfMonitors ( ) { prepareVmToPassCanDoAction ( ) ; vmStatic.setNumOfMonitors ( 99 ) ; junit.framework.Assert.assertFalse ( "canDoAction should have failed with invalid number of monitors." , command.canDoAction ( ) ) ; assertCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_ILLEGAL_NUM_OF_MONITORS ) ; }

Target:
public void testInvalidNumberOfMonitors ( ) { prepareVmToPassCanDoAction ( ) ; vmStatic.setNumOfMonitors ( 99 ) ; org.junit.Assert.assertFalse ( "canDoAction should have failed with invalid number of monitors." , command.canDoAction ( ) ) ; assertCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_ILLEGAL_NUM_OF_MONITORS ) ; }
Source:
public java.lang.String SizeParser ( int sizeInMb ) { return ( sizeInMb >= 1024 ) && ( ( sizeInMb % 1024 ) == 0 ) ? ( sizeInMb / 1024 ) + "GB" : sizeInMb + "MB" ; }

Target:
public java.lang.String sizeParser ( int sizeInMb ) { return ( sizeInMb >= 1024 ) && ( ( sizeInMb % 1024 ) == 0 ) ? ( sizeInMb / 1024 ) + "GB" : sizeInMb + "MB" ; }
Source:
public void setDisplay ( java.lang.Integer value ) { this . display = value ; }

Target:
public void setGraphicsInfos ( java.util.Map < org.ovirt.engine.core.common.businessentities.GraphicsType , org.ovirt.engine.core.common.businessentities.GraphicsInfo > graphicsInfos ) { this . graphicsInfos = graphicsInfos ; }
Source:
public java.lang.Integer getdisplay_secure_port ( ) { return this . mVmDynamic.getdisplay_secure_port ( ) ; }

Target:
public void setGuestRequestedMemory ( java.lang.Integer value ) { this . vmDynamic.setguest_requested_memory ( value ) ; }
Source:
public void cpuIdIsNull ( ) { cpuId = null ; org.assertj.core.api.Assertions.assertThatThrownBy ( ( ) -> new org.ovirt.engine.core.utils.ovf.HostedEngineOvfWriter ( vm , images , luns , version , emulatedMachine , cpuId , osRepository ) ) . isInstanceOf ( java.lang.NullPointerException.class ) . hasMessageContaining ( "cpuId" ) ; }

Target:
public void cpuIdIsNull ( ) { cpuId = null ; org.assertj.core.api.Assertions.assertThatThrownBy ( ( ) -> new org.ovirt.engine.core.utils.ovf.HostedEngineOvfWriter ( vm , fullEntityOvfData , version , emulatedMachine , cpuId , osRepository ) ) . isInstanceOf ( java.lang.NullPointerException.class ) . hasMessageContaining ( "cpuId" ) ; }
Source:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand , java.lang.Object ... parameters ) { ProxyDown ( ) ; }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand , java.lang.Object ... parameters ) { proxyDown ( ) ; }
Source:
protected java.lang.String getDefaultDomain ( ) { return org.ovirt.engine.core.aaa.AuthenticationProfileRepository.getInstance ( ) . getProfiles ( ) . get ( 0 ) . getName ( ) ; }

Target:
protected java.lang.String getDefaultAuthz ( ) { return org.ovirt.engine.core.aaa.AuthenticationProfileRepository.getInstance ( ) . getProfiles ( ) . get ( 0 ) . getName ( ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { setItems ( new org.ovirt.engine.ui.frontend.INewAsyncCallback ( ) { @ java.lang.Override public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { doInit ( ) ; } } , externalVms ) ; }

Target:
public void onSuccess ( java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > returnValue ) { setItems ( new org.ovirt.engine.ui.frontend.AsyncCallback ( ) { @ java.lang.Override public void onSuccess ( java.lang.Object returnValue ) { doInit ( ) ; } } , externalVms ) ; }
Source:
protected void executeCommand ( ) { attachNetwork ( org.ovirt.engine.core.bll.network.cluster.AttachNetworkToClusterInternalCommand.getVdsGroupId ( ) , org.ovirt.engine.core.bll.network.cluster.AttachNetworkToClusterInternalCommand.getNetworkCluster ( ) , getNetwork ( ) ) ; org.ovirt.engine.core.bll.network.cluster.AttachNetworkToClusterInternalCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { attachNetwork ( org.ovirt.engine.core.bll.network.cluster.AttachNetworkToClusterInternalCommand.getClusterId ( ) , org.ovirt.engine.core.bll.network.cluster.AttachNetworkToClusterInternalCommand.getNetworkCluster ( ) , getNetwork ( ) ) ; org.ovirt.engine.core.bll.network.cluster.AttachNetworkToClusterInternalCommand.setSucceeded ( true ) ; }
Source:
public void setItems ( java.lang.Iterable value ) { if ( ( items ) != value ) { ItemsChanging ( value , items ) ; items = value ; getItemsChangedEvent ( ) . raise ( this , EventArgs.Empty ) ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Items" ) ) ; } }

Target:
public void setItems ( java.lang.Iterable value ) { if ( ( items ) != value ) { itemsChanging ( value , items ) ; items = value ; getItemsChangedEvent ( ) . raise ( this , EventArgs.Empty ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Items" ) ) ; } }
Source:
public void sendMessage ( byte [ ] message ) { waitForConnect ( ) ; send ( new org.ovirt.vdsm.jsonrpc.client.reactors.stomp.impl.Message ( ) . send ( ) . withHeader ( org.ovirt.vdsm.jsonrpc.client.reactors.stomp.impl.Message.HEADER_DESTINATION , org.ovirt.vdsm.jsonrpc.client.reactors.stomp.StompClient.REQUEST_QUEUE ) . withContent ( new java.lang.String ( message , org.ovirt.vdsm.jsonrpc.client.utils.JsonUtils.UTF8 ) ) . build ( ) ) ; }

Target:
public void sendMessage ( byte [ ] message ) { waitForConnect ( ) ; send ( new org.ovirt.vdsm.jsonrpc.client.reactors.stomp.impl.Message ( ) . send ( ) . withHeader ( org.ovirt.vdsm.jsonrpc.client.reactors.stomp.impl.Message.HEADER_DESTINATION , org.ovirt.vdsm.jsonrpc.client.reactors.stomp.REQUEST_QUEUE ) . withContent ( message ) . build ( ) ) ; }
Source:
private boolean isHostInSupportedClusterForProxyHost ( org.ovirt.engine.core.common.businessentities.VDS host ) { return org.ovirt.engine.core.common.FeatureSupported.importVmFromExternalProvider ( host.getVdsGroupCompatibilityVersion ( ) ) ; }

Target:
private boolean isHostInSupportedClusterForProxyHost ( org.ovirt.engine.core.common.businessentities.VDS host ) { return ( org.ovirt.engine.core.common.FeatureSupported.importVmFromExternalProvider ( host.getVdsGroupCompatibilityVersion ( ) ) ) && ( ( org.ovirt.engine.core.bll.ImportVmFromExternalProviderCommand.getVdsGroupDao ( ) . get ( host.getVdsGroupId ( ) ) . getArchitecture ( ) ) != ( org.ovirt.engine.core.common.businessentities.ArchitectureType.ppc64 ) ) ; }
Source:
public boolean IsVmConnectReady ( ) { if ( getForceVmStatusUp ( ) ) { return ( getEntity ( ) . getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.Up ) ; } return IsVmUp ( ) ; }

Target:
public boolean isVmConnectReady ( ) { if ( getForceVmStatusUp ( ) ) { return ( getEntity ( ) . getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.Up ) ; } return isVmUp ( ) ; }
Source:
public void testNonThinLvm ( ) { org.junit.Assert.assertFalse ( volumeInfo.getAvailableThinSizeForDevice ( "/dev/mapper/vg0-engine" ) . isPresent ( ) ) ; }

Target:
public void testNonThinLvm ( ) { org.junit.jupiter.api.Assertions.assertFalse ( volumeInfo.getAvailableThinSizeForDevice ( "/dev/mapper/vg0-engine" ) . isPresent ( ) ) ; }
Source:
protected final void Cancel ( ) { super . Cancel ( ) ; clearCachedAssignedVmNames ( ) ; }

Target:
protected final void cancel ( ) { super . cancel ( ) ; clearCachedAssignedVmNames ( ) ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Provider > ( ) ; } return source ; }

Target:
public java.util.List < T > convert ( java.lang.Object source ) { java.util.List < T > list = super . convert ( source ) ; java.util.Collections.sort ( list , comparator ) ; return list ; }
Source:
private void assertFailsWith ( java.lang.String errorMessage , org.ovirt.engine.core.bll.ValidationResult validationResult , org.ovirt.engine.core.common.errors.EngineMessage engineMessage ) { org.junit.Assert.assertThat ( errorMessage , validationResult , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( engineMessage ) ) ; }

Target:
private void assertFailsWith ( java.lang.String errorMessage , org.ovirt.engine.core.bll.ValidationResult validationResult , org.ovirt.engine.core.common.errors.EngineMessage engineMessage ) { org.hamcrest.MatcherAssert.assertThat ( errorMessage , validationResult , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( engineMessage ) ) ; }
Source:
public void testStorageDomainForMemoryIsNotValidWhenItHasLowSpace ( ) { org.mockito.Mockito.when ( storageDomainValidator.isDomainWithinThresholds ( ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN ) ) ; org.junit.Assert.assertFalse ( filter.getPredicate ( memoryDisks ) . eval ( storageDomain ) ) ; }

Target:
public void testStorageDomainForMemoryIsNotValidWhenItHasLowSpace ( ) { org.mockito.Mockito.when ( storageDomainValidator.isDomainWithinThresholds ( ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN ) ) ; org.junit.Assert.assertFalse ( filter.getPredicate ( memoryDisks ) . test ( storageDomain ) ) ; }
Source:
private void assertCorrectVDSGroup ( org.ovirt.engine.core.common.businessentities.VDSGroup group ) { org.junit.Assert.assertNotNull ( group ) ; org.junit.Assert.assertEquals ( existingVdsGroup , group ) ; }

Target:
private void assertCorrectCluster ( org.ovirt.engine.core.common.businessentities.Cluster group ) { org.junit.Assert.assertNotNull ( group ) ; org.junit.Assert.assertEquals ( existingCluster , group ) ; }
Source:
public void externalNetworkMtuChanged ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Network externalNetwork = mockExternalNetwork ( ) ; org.mockito.Mockito.when ( externalNetwork.getMtu ( ) ) . thenReturn ( 0 ) ; org.mockito.Mockito.when ( network.getMtu ( ) ) . thenReturn ( 1 ) ; assertThatExternalNetworkDetailsUnchangedFails ( externalNetwork ) ; }

Target:
public void externalNetworkVlanIdChanged ( ) { org.ovirt.engine.core.common.businessentities.network.Network externalNetwork = createExternalNetwork ( ) ; externalNetwork.setVlanId ( 0 ) ; network.setVlanId ( 1 ) ; assertThatExternalNetworkDetailsUnchangedFails ( externalNetwork ) ; }
Source:
public void setWidgetColSize ( org.gwtbootstrap3.client.ui.constants.ColumnSize size ) { contentWidget.addStyleName ( size.getCssName ( ) ) ; }

Target:
public void setWidgetColSize ( org.gwtbootstrap3.client.ui.constants.ColumnSize size ) { contentWidget.addStyleName ( size.getCssName ( ) ) ; switchToBootstrapMode ( ) ; }
Source:
public void mockBean ( org.ovirt.engine.core.utils.ejb.BeanType type , java.lang.Object bean ) { mockBeanMap.put ( type , bean ) ; }

Target:
public void mockBean ( org.ovirt.engine.core.utils.ejb.BeanType type , java.lang.Object bean ) { mockBeanMap.put ( type , bean ) ; org.mockito.Mockito.when ( mockStrategy.findBean ( org.mockito.Matchers.eq ( type ) , org.mockito.Matchers.any ( org.ovirt.engine.core.utils.ejb.BeanProxyType.class ) ) ) . thenReturn ( bean ) ; }
Source:
protected void entityChanging ( org.ovirt.engine.core.common.businessentities.VDSGroup newValue , org.ovirt.engine.core.common.businessentities.VDSGroup oldValue ) { getNewNetworkCommand ( ) . setIsExecutionAllowed ( ( ( newValue != null ) && ( ( newValue.getStoragePoolId ( ) ) != null ) ) ) ; }

Target:
private boolean isClusterDetached ( org.ovirt.engine.core.common.businessentities.VDSGroup cluster ) { return ( cluster == null ) || ( ( cluster.getStoragePoolId ( ) ) == null ) ; }
Source:
protected void refreshBootParameters ( org.ovirt.engine.core.common.action.RunVmParams runVmParameters ) { if ( runVmParameters == null ) { return ; } org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . setBootSequence ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getDefaultBootSequence ( ) ) ; }

Target:
protected void refreshBootParameters ( org.ovirt.engine.core.common.action.RunVmParams runVmParameters ) { org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . setBootSequence ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getDefaultBootSequence ( ) ) ; org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . setRunOnce ( false ) ; }
Source:
public void setSnapshotsMap ( java.util.HashMap < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.ui.uicommonweb.models.vms.SnapshotModel > value ) { snapshotsMap = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "SnapshotsMap" ) ) ; }

Target:
public void setSnapshotsMap ( java.util.HashMap < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.ui.uicommonweb.models.vms.SnapshotModel > value ) { snapshotsMap = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "SnapshotsMap" ) ) ; }
Source:
public void validate ( ) { initializeSuppliedImage ( ) ; org.junit.Assert.assertTrue ( transferImageCommand.validate ( ) ) ; }

Target:
public void validate ( ) { initializeSuppliedImage ( ) ; org.junit.jupiter.api.Assertions.assertTrue ( transferImageCommand.validate ( ) ) ; }
Source:
public void initialize ( ) { super . initialize ( ) ; getModel ( ) . getActivateDomain ( ) . setEntity ( false ) ; getModel ( ) . getActivateDomain ( ) . setIsAvailable ( true ) ; }

Target:
private void updateAvailabilityByDatacenter ( org.ovirt.engine.core.common.businessentities.StoragePool datacenter ) { if ( datacenter == null ) { return ; } getModel ( ) . getActivateDomain ( ) . setIsAvailable ( ( ! ( StorageModel.UnassignedDataCenterId.equals ( datacenter.getId ( ) ) ) ) ) ; }
Source:
private void mockVmDao ( ) { org.mockito.Mockito.when ( vmDao.getAllRunningForVds ( org.mockito.Matchers.eq ( org.ovirt.engine.core.bll.pm.StartVdsCommandTest.FENCECD_HOST_ID ) ) ) . thenReturn ( new java.util.LinkedList < > ( ) ) ; }

Target:
private void mockVmDao ( ) { org.mockito.Mockito.when ( vmDao.getAllRunningForVds ( org.mockito.ArgumentMatchers.eq ( org.ovirt.engine.core.bll.pm.StartVdsCommandTest.FENCECD_HOST_ID ) ) ) . thenReturn ( new java.util.LinkedList < > ( ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult isNotLocalfsWithDefaultCluster ( ) { if ( ( storagePool.isLocal ( ) ) && ( containsDefaultCluster ( ) ) ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_POOL_WITH_DEFAULT_VDS_GROUP_CANNOT_BE_LOCALFS ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult isNotLocalfsWithDefaultCluster ( ) { if ( ( storagePool.isLocal ( ) ) && ( containsDefaultCluster ( ) ) ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_STORAGE_POOL_WITH_DEFAULT_VDS_GROUP_CANNOT_BE_LOCALFS ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
protected java.util.Map < org.ovirt.engine.core.compat.Guid , java.lang.String > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.storage.AddStoragePoolWithStoragesCommand.getStoragePoolId ( ) . getValue ( ) , getClass ( ) . getName ( ) ) ; }

Target:
protected java.util.Map < java.lang.String , java.lang.String > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.storage.AddStoragePoolWithStoragesCommand.getStoragePoolId ( ) . toString ( ) , LockingGroup.POOL.name ( ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult hostProviderTypeMatches ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.ACTION_TYPE_FAILED_HOST_PROVIDER_TYPE_MISMATCH ) . when ( ( ( ( getProvider ( ) ) != null ) && ( ( getProvider ( ) . getType ( ) ) != ( org.ovirt.engine.core.common.businessentities.ProviderType.FOREMAN ) ) ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult hostProviderTypeMatches ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.ACTION_TYPE_FAILED_HOST_PROVIDER_TYPE_MISMATCH ) . when ( ( ( ( getProvider ( ) ) != null ) && ( ( getProvider ( ) . getType ( ) ) != ( org.ovirt.engine.core.common.businessentities.ProviderType.FOREMAN ) ) ) ) ; }
Source:
private static void failureEventHandler ( java.lang.String description , java.lang.String errorMessage ) { org.ovirt.engine.ui.frontend.Frontend.handleNotLoggedInEvent ( errorMessage ) ; org.ovirt.engine.ui.frontend.Frontend.frontendFailureEvent.raise ( org.ovirt.engine.ui.frontend.Frontend.class , new org.ovirt.engine.ui.frontend.FrontendFailureEventArgs ( new org.ovirt.engine.ui.frontend.Message ( description , errorMessage ) ) ) ; }

Target:
private void failureEventHandler ( final java.lang.String description , final java.lang.String errorMessage ) { handleNotLoggedInEvent ( errorMessage ) ; frontendFailureEvent.raise ( org.ovirt.engine.ui.frontend.Frontend.class , new org.ovirt.engine.ui.frontend.FrontendFailureEventArgs ( new org.ovirt.engine.ui.frontend.Message ( description , errorMessage ) ) ) ; }
Source:
private void assertValidateSuccess ( ) { org.junit.Assert.assertTrue ( command.validate ( ) ) ; org.junit.Assert.assertTrue ( command.getReturnValue ( ) . getValidationMessages ( ) . isEmpty ( ) ) ; }

Target:
public void nicNotExist ( ) { nicExists ( false ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.HOST_NETWORK_INTERFACE_NOT_EXIST ) ; }
Source:
protected org.ovirt.engine.core.bll.FenceExecutor createFenceExecutor ( ) { return new org.ovirt.engine.core.bll.FenceExecutor ( org.ovirt.engine.core.bll.FenceVdsBaseCommand.getVds ( ) , org.ovirt.engine.core.bll.FenceVdsBaseCommand.getParameters ( ) . getFencingPolicy ( ) ) ; }

Target:
public org.ovirt.engine.core.bll.FenceExecutor getFenceExecutor ( ) { return fenceExecutor ; }
Source:
protected java.util.List < org.ovirt.engine.api.model.Network > getEntityList ( boolean isDisplay ) { return getEntities ( isDisplay ) ; }

Target:
protected java.util.List < org.ovirt.engine.api.model.Network > getEntityList ( boolean isDisplay , boolean isRequired ) { return getEntities ( isDisplay , isRequired ) ; }
Source:
private void removeTagFromHash ( org.ovirt.engine.core.common.businessentities.Tags tag ) { tagsMapByID.remove ( tag.gettag_id ( ) ) ; tagsMapByName.remove ( tag.gettag_name ( ) ) ; }

Target:
private void removeTagFromHash ( org.ovirt.engine.core.common.businessentities.Tags tag ) { tagsMapByID.remove ( tag.getTagId ( ) ) ; tagsMapByName.remove ( tag.getTagName ( ) ) ; }