auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void incorrect ( ) { junit.framework.Assert.assertFalse ( new org.ovirt.engine.ui.uicommonweb.validation.HostWithProtocolAndPortAddressValidationTest.TestableHostWithProtocolAndPortAddressValidation ( ) . validate ( "someHostname:" ) . getSuccess ( ) ) ; junit.framework.Assert.assertFalse ( new org.ovirt.engine.ui.uicommonweb.validation.HostWithProtocolAndPortAddressValidationTest.TestableHostWithProtocolAndPortAddressValidation ( ) . validate ( "://someHostname" ) . getSuccess ( ) ) ; junit.framework.Assert.assertFalse ( new org.ovirt.engine.ui.uicommonweb.validation.HostWithProtocolAndPortAddressValidationTest.TestableHostWithProtocolAndPortAddressValidation ( ) . validate ( "so m eHostname" ) . getSuccess ( ) ) ; junit.framework.Assert.assertFalse ( new org.ovirt.engine.ui.uicommonweb.validation.HostWithProtocolAndPortAddressValidationTest.TestableHostWithProtocolAndPortAddressValidation ( ) . validate ( "asd:/someHostname" ) . getSuccess ( ) ) ; junit.framework.Assert.assertFalse ( new org.ovirt.engine.ui.uicommonweb.validation.HostWithProtocolAndPortAddressValidationTest.TestableHostWithProtocolAndPortAddressValidation ( ) . validate ( "asd:someHostname" ) . getSuccess ( ) ) ; junit.framework.Assert.assertFalse ( new org.ovirt.engine.ui.uicommonweb.validation.HostWithProtocolAndPortAddressValidationTest.TestableHostWithProtocolAndPortAddressValidation ( ) . validate ( "someHostname:abc" ) . getSuccess ( ) ) ; }

Target:
public void incorrect ( ) { org.junit.Assert.assertFalse ( new org.ovirt.engine.ui.uicommonweb.validation.HostWithProtocolAndPortAddressValidationTest.TestableHostWithProtocolAndPortAddressValidation ( ) . validate ( "someHostname:" ) . getSuccess ( ) ) ; org.junit.Assert.assertFalse ( new org.ovirt.engine.ui.uicommonweb.validation.HostWithProtocolAndPortAddressValidationTest.TestableHostWithProtocolAndPortAddressValidation ( ) . validate ( "://someHostname" ) . getSuccess ( ) ) ; org.junit.Assert.assertFalse ( new org.ovirt.engine.ui.uicommonweb.validation.HostWithProtocolAndPortAddressValidationTest.TestableHostWithProtocolAndPortAddressValidation ( ) . validate ( "so m eHostname" ) . getSuccess ( ) ) ; org.junit.Assert.assertFalse ( new org.ovirt.engine.ui.uicommonweb.validation.HostWithProtocolAndPortAddressValidationTest.TestableHostWithProtocolAndPortAddressValidation ( ) . validate ( "asd:/someHostname" ) . getSuccess ( ) ) ; org.junit.Assert.assertFalse ( new org.ovirt.engine.ui.uicommonweb.validation.HostWithProtocolAndPortAddressValidationTest.TestableHostWithProtocolAndPortAddressValidation ( ) . validate ( "asd:someHostname" ) . getSuccess ( ) ) ; org.junit.Assert.assertFalse ( new org.ovirt.engine.ui.uicommonweb.validation.HostWithProtocolAndPortAddressValidationTest.TestableHostWithProtocolAndPortAddressValidation ( ) . validate ( "someHostname:abc" ) . getSuccess ( ) ) ; }
Source:
public void updateTag ( org.ovirt.engine.core.common.businessentities.tags from ) { setdescription ( from.getdescription ( ) ) ; settag_name ( from.gettag_name ( ) ) ; }

Target:
public void updateTag ( org.ovirt.engine.core.common.businessentities.Tags from ) { setdescription ( from.getdescription ( ) ) ; settag_name ( from.gettag_name ( ) ) ; }
Source:
public void setMainTabSelectedItem ( org.ovirt.engine.core.common.businessentities.StoragePool selectedItem ) { super . setMainTabSelectedItem ( selectedItem ) ; getModelProvider ( ) . onSubTabSelected ( ) ; vmNetworkModelProvider.onSubTabSelected ( ) ; hostNetworkModelProvider.onSubTabSelected ( ) ; cpuModelProvider.onSubTabSelected ( ) ; }

Target:
public void setMainTabSelectedItem ( org.ovirt.engine.core.common.businessentities.StoragePool selectedItem ) { super . setMainTabSelectedItem ( selectedItem ) ; cpuModelProvider.activateDetailModel ( ) ; vmNetworkModelProvider.activateDetailModel ( ) ; hostNetworkModelProvider.activateDetailModel ( ) ; getModelProvider ( ) . activateDetailModel ( ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VmNetworkInterface getInterface ( int id , java.lang.String name ) { org.ovirt.engine.core.common.businessentities.VmNetworkInterface inter = new org.ovirt.engine.core.common.businessentities.VmNetworkInterface ( ) ; inter.setId ( GUIDS [ id ] ) ; inter.setName ( name ) ; return inter ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface getInterface ( int id , java.lang.String name ) { org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface inter = new org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface ( ) ; inter.setId ( GUIDS [ id ] ) ; inter.setName ( name ) ; return inter ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml profileAndNetwork ( java.lang.String profileName , java.lang.String networkName ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml profileAndNetworkSelected ( java.lang.String profileName , java.lang.String networkName ) ;
Source:
public void updateVdsDynamicPowerManagementPolicyFlag ( org.ovirt.engine.core.compat.Guid id , boolean controlledByPmPolicy ) { org.ovirt.engine.core.common.businessentities.VdsDynamic entity = get ( id ) ; entity.setPowerManagementControlledByPolicy ( controlledByPmPolicy ) ; update ( entity ) ; }

Target:
public void updateNetConfigDirty ( org.ovirt.engine.core.compat.Guid id , java.lang.Boolean netConfigDirty ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "vds_guid" , id ) . addValue ( "net_config_dirty" , netConfigDirty ) ; getCallsHandler ( ) . executeModification ( "UpdateVdsDynamicNetConfigDirty" , parameterSource ) ; }
Source:
public double getUsed ( ) { return used ; }

Target:
public double getUsed ( ) { double result = used ; if ( ( used ) > ( getTotal ( ) ) ) { result = getTotal ( ) ; } return result ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.VmNetworkInterface , org.ovirt.engine.core.common.businessentities.VM > object ) { return object.getSecond ( ) . getvm_ip ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.VmNetworkInterface , org.ovirt.engine.core.common.businessentities.VM > object ) { return object.getSecond ( ) . getVmIp ( ) ; }
Source:
public void testUpdateFieldsQuotaEnforcementType ( ) { vm.setQuotaEnforcementType ( QuotaEnforcementTypeEnum.DISABLED ) ; vmStatic.setQuotaEnforcementType ( QuotaEnforcementTypeEnum.SOFT_ENFORCEMENT ) ; org.junit.Assert.assertTrue ( "Quota enforcement type should be updatable" , command.areUpdatedFieldsLegal ( ) ) ; }

Target:
public void testUpdateFieldsQutoaDefault ( ) { vm.setIsQuotaDefault ( true ) ; vmStatic.setIsQuotaDefault ( false ) ; junit.framework.Assert.assertTrue ( "Quota default should be updatable" , command.areUpdatedFieldsLegal ( ) ) ; }
Source:
public void setmethod_id ( int value ) { this . id.methodId = value ; }

Target:
public void setevent_notification_method ( org.ovirt.engine.core.common.EventNotificationMethods eventNotificationMethod ) { this . id.eventNotificationMethod = eventNotificationMethod ; }
Source:
private void freeLockExecute ( ) { if ( ( releaseLocksAtEndOfExecute ) || ( ! ( getSucceeded ( ) ) ) ) { freeLock ( ) ; } }

Target:
private void freeLockExecute ( ) { if ( ( ( releaseLocksAtEndOfExecute ) || ( ! ( getSucceeded ( ) ) ) ) || ( ! ( hasTasks ( ) ) ) ) { freeLock ( ) ; } }
Source:
public void testGetNotFound ( ) { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpEntityQueryExpectations ( null ) ; try { resource.get ( ) ; org.junit.Assert.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testGetNotFound ( ) { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpEntityQueryExpectations ( null ) ; try { resource.get ( ) ; org.junit.jupiter.api.Assertions.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }
Source:
public void validateSucceedsInitFormatExportDomain ( ) { sd.setStorageFormat ( null ) ; sd.setStorageDomainType ( StorageDomainType.ImportExport ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( cmd ) ; org.junit.Assert.assertEquals ( "Format not initialized correctly" , StorageFormatType.V1 , sd.getStorageFormat ( ) ) ; }

Target:
public void validateSucceedsInitFormatExportDomain ( ) { sd.setStorageFormat ( null ) ; sd.setStorageDomainType ( StorageDomainType.ImportExport ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( cmd ) ; org.junit.jupiter.api.Assertions.assertEquals ( StorageFormatType.V1 , sd.getStorageFormat ( ) , "Format not initialized correctly" ) ; }
Source:
public java.lang.Void runInTransaction ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getCommandEntityDao ( ) . saveOrUpdate ( cmdEntity ) ; return null ; }

Target:
public void put ( final org.ovirt.engine.core.common.businessentities.CommandEntity cmdEntity ) { commandMap.put ( cmdEntity.getId ( ) , cmdEntity ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getCommandEntityDao ( ) . saveOrUpdate ( cmdEntity ) ; }
Source:
public void testcheckUnsyncedEntriesWithDownBricks ( ) { org.mockito.Mockito.doReturn ( getBricksFromServer ( org.ovirt.engine.core.bll.gluster.GlusterHostValidatorTest.SERVER_ID_1 , GlusterStatus.DOWN ) ) . when ( brickDao ) . getGlusterVolumeBricksByServerId ( org.ovirt.engine.core.bll.gluster.GlusterHostValidatorTest.SERVER_ID_1 ) ; org.junit.Assert.assertTrue ( "Unsynced entries test is failing for bricks with down status" , hostValidator.checkUnsyncedEntries ( java.util.Arrays.asList ( org.ovirt.engine.core.bll.gluster.GlusterHostValidatorTest.SERVER_ID_1 ) ) . isEmpty ( ) ) ; }

Target:
public void testcheckUnsyncedEntriesWithDownBricks ( ) { org.mockito.Mockito.doReturn ( getBricksFromServer ( org.ovirt.engine.core.bll.gluster.GlusterHostValidatorTest.SERVER_ID_1 , GlusterStatus.DOWN ) ) . when ( brickDao ) . getGlusterVolumeBricksByServerId ( org.ovirt.engine.core.bll.gluster.GlusterHostValidatorTest.SERVER_ID_1 ) ; org.junit.jupiter.api.Assertions.assertTrue ( hostValidator.checkUnsyncedEntries ( java.util.Arrays.asList ( org.ovirt.engine.core.bll.gluster.GlusterHostValidatorTest.SERVER_ID_1 ) ) . isEmpty ( ) , "Unsynced entries test is failing for bricks with down status" ) ; }
Source:
public void persistCommand ( org.ovirt.engine.core.common.action.VdcActionType parentCommand , boolean enableCallBack ) { persistCommand ( parentCommand , getContext ( ) , enableCallBack ) ; }

Target:
protected void clearTaskHandlers ( ) { taskHandlers = null ; }
Source:
public void testGetSingleSupportedVersionsByNetworkFilterName ( ) { final java.lang.String networkFilterName = org.ovirt.engine.core.dao.FixturesTool.NETWORK_FILTER_NAME ; org.ovirt.engine.core.compat.Version actualMinimalVersion = dao.getMinimalSupportedVersionByNetworkFilterName ( networkFilterName ) ; final org.ovirt.engine.core.compat.Version expectedMinimalVersion = org.ovirt.engine.core.dao.FixturesTool.NETWORK_FILTER_VERSION ; org.junit.Assert.assertEquals ( expectedMinimalVersion , actualMinimalVersion ) ; }

Target:
public void testGetMinimalSupportedVersionByNetworkFilterName ( ) { final java.lang.String networkFilterName = org.ovirt.engine.core.dao.FixturesTool.NETWORK_FILTER_NAME ; org.ovirt.engine.core.compat.Version actualMinimalVersion = dao.getMinimalSupportedVersionByNetworkFilterName ( networkFilterName ) ; final org.ovirt.engine.core.compat.Version expectedMinimalVersion = org.ovirt.engine.core.dao.FixturesTool.NETWORK_FILTER_VERSION ; org.junit.Assert.assertEquals ( expectedMinimalVersion , actualMinimalVersion ) ; }
Source:
public void onFailed ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { getCommand ( cmdId ) . endAction ( ) ; org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.removeAllCommandsInHierarchy ( cmdId ) ; }

Target:
private void endAction ( org.ovirt.engine.core.compat.Guid cmdId , boolean exitStatus ) { getCommand ( cmdId ) . endAction ( ) ; org.ovirt.engine.core.bll.job.ExecutionHandler.endJob ( getCommand ( cmdId ) . getExecutionContext ( ) , exitStatus ) ; org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.removeAllCommandsInHierarchy ( cmdId ) ; }
Source:
protected void processResponse ( com.google.gwt.http.client.Response response ) { java.lang.String sessionIdFromHeader = response.getHeader ( org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.SESSION_ID_HEADER ) ; if ( sessionIdFromHeader != null ) { setCurrentSessionId ( sessionIdFromHeader ) ; } reuseCurrentSession ( ) ; }

Target:
protected void processResponse ( com.google.gwt.http.client.Response response ) { java.lang.String sessionIdFromHeader = response.getHeader ( org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.SESSION_ID_HEADER ) ; if ( sessionIdFromHeader != null ) { setSessionId ( sessionIdFromHeader ) ; } reuseSession ( ) ; }
Source:
private void addStyles ( ) { storageValueEditor.addContentWidgetContainerStyleName ( style.textBoxWidth ( ) ) ; specificStorageRadioButtonEditor.addContentWidgetContainerStyleName ( style.radioButtonWidth ( ) ) ; unlimitedStorageRadioButtonEditor.addContentWidgetContainerStyleName ( style.radioButtonWidth ( ) ) ; }

Target:
private void addStyles ( ) { storageValueEditor.addContentWidgetContainerStyleName ( style.textBoxWidth ( ) ) ; storageValueEditor.hideLabel ( ) ; specificStorageRadioButtonEditor.addContentWidgetContainerStyleName ( style.radioButtonWidth ( ) ) ; unlimitedStorageRadioButtonEditor.addContentWidgetContainerStyleName ( style.radioButtonWidth ( ) ) ; }
Source:
public void setGroupIds ( java.util.LinkedList < org.ovirt.engine.core.compat.Guid > groupIds ) { this . groupIds = groupIds ; }

Target:
public void setGroupIds ( java.util.Collection < org.ovirt.engine.core.compat.Guid > groupIds ) { this . groupIds = new java.util.HashSet < org.ovirt.engine.core.compat.Guid > ( groupIds ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcActionParametersBase getActionParameters ( ) { return actionParameters ; }

Target:
public org.ovirt.engine.core.common.action.VdcActionParametersBase getActionParameters ( ) { return rootCmdEntity.getCommandParameters ( ) ; }
Source:
protected java.lang.String composeMessage ( ) { return org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) . specialAsciiOrNoneValidationMsg ( ) ; }

Target:
protected java.lang.String composeMessage ( ) { return org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) . specialAsciiI18NOrNoneValidationMsg ( ) ; }
Source:
public void describeTo ( org.hamcrest.Description description ) { description.appendText ( ( "with message " + ( expected.name ( ) ) ) ) ; }

Target:
public void describeTo ( org.hamcrest.Description description ) { description.appendText ( ( ( "message \"" + ( expected.name ( ) ) ) + "\"" ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.storage.ImageStatus checkImageStatus ( org.ovirt.engine.core.common.businessentities.storage.CinderDisk removedVolume ) { try { return getCinderBroker ( ) . getImageStatusByClassificationType ( removedVolume ) ; } catch ( java.lang.Exception e ) { log.error ( "An exception occured while verifying status for volume id '{0}' with the following exception: {1}." , removedVolume.getImageId ( ) , e ) ; return org.ovirt.engine.core.common.businessentities.storage.ImageStatus.ILLEGAL ; } }

Target:
private void logError ( org.ovirt.engine.core.common.businessentities.storage.CinderDisk removedVolume , java.lang.Exception ex ) { log.error ( "An exception occurred while verifying status for volume id '{}' with the following exception: {}." , removedVolume.getImageId ( ) , ex ) ; }
Source:
java.lang.String integerValidationNumberLessInvalidReason ( java.lang.String prefixMsg , int max ) ;

Target:
java.lang.String integerValidationNumberGreaterInvalidReason ( java.lang.String prefixMsg , int min ) ;
Source:
public void setExportDate ( java.util.Date value ) { this . mVmStatic.setExportDate ( value ) ; }

Target:
public void setMigrationSupport ( org.ovirt.engine.core.common.businessentities.MigrationSupport migrationSupport ) { this . vmStatic.setMigrationSupport ( migrationSupport ) ; }
Source:
private void reboot ( ) { org.ovirt.engine.ui.uicompat.UIConstants constants = org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) ; powerAction ( "Reboot" , constants.rebootVirtualMachinesTitle ( ) , constants.areYouSureYouWantToRebootTheFollowingVirtualMachinesMsg ( ) ) ; }

Target:
private void reboot ( ) { org.ovirt.engine.ui.uicompat.UIConstants constants = org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) ; powerAction ( org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel.REBOOT , constants.rebootVirtualMachinesTitle ( ) , constants.areYouSureYouWantToRebootTheFollowingVirtualMachinesMsg ( ) , false ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > createVolume ( java.lang.String sdUUID , java.lang.String spUUID , java.lang.String imgGUID , int size , int volFormat , int volType , int diskType , java.lang.String volUUID , java.lang.String descr , java.lang.String srcImgGUID , java.lang.String srcVolUUID ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > createVolume ( java.lang.String sdUUID , java.lang.String spUUID , java.lang.String imgGUID , java.lang.String size , int volFormat , int volType , int diskType , java.lang.String volUUID , java.lang.String descr , java.lang.String srcImgGUID , java.lang.String srcVolUUID , java.lang.String initialSize ) ;
Source:
protected void updateBrickStatus ( org.ovirt.engine.core.common.businessentities.gluster.GlusterStatus status ) { for ( org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity brick : org.ovirt.engine.core.bll.gluster.GlusterVolumeCommandBase.getGlusterVolume ( ) . getBricks ( ) ) { getGlusterBrickDao ( ) . updateBrickStatus ( brick.getId ( ) , status ) ; } }

Target:
public java.util.Map < java.lang.String , java.lang.String > getJobMessageProperties ( ) { if ( ( jobProperties ) == null ) { jobProperties = super . getJobMessageProperties ( ) ; jobProperties.put ( GlusterConstants.VOLUME , org.ovirt.engine.core.bll.gluster.GlusterVolumeCommandBase.getGlusterVolumeName ( ) ) ; } return jobProperties ; }
Source:
protected java.lang.String getDefaultDomain ( ) { return org.ovirt.engine.core.aaa.AuthenticationProfileRepository.getInstance ( ) . getProfiles ( ) . get ( 0 ) . getDirectory ( ) . getName ( ) ; }

Target:
protected java.lang.String getDefaultDomain ( ) { return org.ovirt.engine.core.aaa.AuthzUtils.getName ( org.ovirt.engine.core.aaa.AuthenticationProfileRepository.getInstance ( ) . getProfiles ( ) . get ( 0 ) . getAuthz ( ) ) ; }
Source:
public com.google.gwt.resources.client.ImageResource getValue ( java.lang.Object object ) { return new org.ovirt.engine.ui.webadmin.widget.table.column.VmTypeColumn ( ) . getValue ( ( ( org.ovirt.engine.core.common.businessentities.VM ) ( object ) ) ) ; }

Target:
public java.lang.String getValue ( java.lang.Object object ) { return java.lang.String.valueOf ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData ) ( object ) ) . getVm ( ) . getDiskMap ( ) . size ( ) ) ; }
Source:
public void runningSucceded ( ) { removeMemoryFromSnapshot ( ) ; super . runningSucceded ( ) ; }

Target:
public void runningSucceded ( ) { removeMemoryFromActiveSnapshot ( ) ; super . runningSucceded ( ) ; }
Source:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( EngineMessage.VAR__ACTION__REMOVE ) ; super . setActionMessageParameters ( ) ; }

Target:
protected void setActionMessageParameters ( ) { addValidationMessage ( EngineMessage.VAR__ACTION__REMOVE ) ; super . setActionMessageParameters ( ) ; }
Source:
protected void initDetailModels ( ) { super . initDetailModels ( ) ; org.ovirt.engine.ui.uicompat.ObservableCollection < org.ovirt.engine.ui.uicommonweb.models.EntityModel > list = new org.ovirt.engine.ui.uicompat.ObservableCollection < org.ovirt.engine.ui.uicommonweb.models.EntityModel > ( ) ; permissionListModel = new org.ovirt.engine.ui.uicommonweb.models.configure.PermissionListModel ( ) ; list.add ( permissionListModel ) ; setDetailModels ( list ) ; }

Target:
private void setDetailList ( ) { java.util.List < org.ovirt.engine.ui.uicommonweb.models.EntityModel > list = new java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.EntityModel > ( ) ; list.add ( permissionListModel ) ; setDetailModels ( list ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.String ) ( source ) ) : "" ; }

Target:
public void getClusterList ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { getClusterList ( aQuery , true ) ; }
Source:
public void testAddActionVersionMap ( ) { dao.addActionVersionMap ( newActionMap ) ; org.ovirt.engine.core.common.businessentities.action_version_map result = dao.getActionVersionMapByActionType ( newActionMap.getaction_type ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( newActionMap , result ) ; }

Target:
public void testAddActionVersionMap ( ) { dao.addActionVersionMap ( newActionMap ) ; org.ovirt.engine.core.common.businessentities.ActionVersionMap result = dao.getActionVersionMapByActionType ( newActionMap.getaction_type ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( newActionMap , result ) ; }
Source:
public org.ovirt.engine.api.resource.StorageServerConnectionResource getStorageConnectionSubResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendIscsiBondStorageServerConnection ( id , this ) ) ; }

Target:
public org.ovirt.engine.api.resource.StorageServerConnectionResource getStorageConnectionSubResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendIscsiBondStorageConnectionResource ( id , this ) ) ; }
Source:
protected void auditLog ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase auditLogable , org.ovirt.engine.core.common.AuditLogType logType ) { new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector ( ) . log ( auditLogable , logType ) ; }

Target:
protected void updateV2VJobs ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.V2VJobInfo > v2vJobInfos = vds.getV2VJobs ( ) ; if ( v2vJobInfos != null ) { vdsManager.updateV2VJobInfos ( v2vJobInfos ) ; } }
Source:
private void updateConnectionsTypeMap ( ) { connectionsTypeMap = new java.util.HashMap < > ( ) ; for ( org.ovirt.engine.core.common.businessentities.StorageServerConnections conn : _connections ) { org.ovirt.engine.core.common.businessentities.StorageType connType = conn.getstorage_type ( ) ; org.ovirt.engine.core.utils.collections.MultiValueMapUtils.addToMap ( connType , conn , connectionsTypeMap ) ; } }

Target:
private void updateConnectionsTypeMap ( ) { connectionsTypeMap = new java.util.HashMap < > ( ) ; for ( org.ovirt.engine.core.common.businessentities.StorageServerConnections conn : _connections ) { org.ovirt.engine.core.common.businessentities.storage.StorageType connType = conn.getstorage_type ( ) ; org.ovirt.engine.core.utils.collections.MultiValueMapUtils.addToMap ( connType , conn , connectionsTypeMap ) ; } }
Source:
public void setIsReadOnly ( java.lang.Boolean isReadOnly ) { this . isReadOnly = isReadOnly ; }

Target:
public void setReadOnly ( java.lang.Boolean readOnly ) { this . readOnly = readOnly ; }
Source:
public void validateFailsIsoVersionNotCompatible ( ) { mockVdsWithOsVersion ( org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.INVALID_OVIRT_VERSION ) ; org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters param = org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.createParameters ( ) ; param.setoVirtIsoFile ( org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.VALID_VERSION_OVIRT_ISO_FILENAME ) ; org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommand < org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters > command = createCommand ( param ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.VDS_CANNOT_UPGRADE_BETWEEN_MAJOR_VERSION ) ; }

Target:
public void validateFailsIfHostDoesNotExists ( ) { org.mockito.Mockito.when ( vdsDao.get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( null ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_HOST_NOT_EXIST ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VDSGroup getVdsGroup ( ) { return _vdsGroup ; }

Target:
public org.ovirt.engine.core.common.businessentities.Cluster getCluster ( ) { return cluster ; }
Source:
public javax.ws.rs.core.Response remove ( ) { return adaptRemove ( delegate :: remove ) ; }

Target:
public org.ovirt.engine.api.v3.types.V3GlusterHook get ( ) { return adaptGet ( getDelegate ( ) :: get ) ; }
Source:
public void setBootProtocolsAvailable ( boolean value ) { if ( ( bootProtocolsAvailable ) != value ) { bootProtocolsAvailable = value ; updateCanSpecify ( ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "BootProtocolsAvailable" ) ) ; } }

Target:
private void setIpv6Gateway ( org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.String > value ) { ipv6Gateway = value ; }
Source:
private boolean isStoragePoolMemoryBackend ( ) { return org.ovirt.engine.core.common.FeatureSupported.storagePoolMemoryBackend ( org.ovirt.engine.core.vdsbroker.vdsbroker.ConnectStoragePoolVDSCommand.getParameters ( ) . getStoragePool ( ) . getcompatibility_version ( ) ) ; }

Target:
private boolean isStoragePoolMemoryBackend ( ) { return org.ovirt.engine.core.common.FeatureSupported.storagePoolMemoryBackend ( org.ovirt.engine.core.vdsbroker.vdsbroker.ConnectStoragePoolVDSCommand.getParameters ( ) . getStoragePool ( ) . getCompatibilityVersion ( ) ) ; }
Source:
public void setstatus ( org.ovirt.engine.core.common.businessentities.VMStatus value ) { if ( ( this . mVmDynamic.getstatus ( ) ) != value ) { this . mVmDynamic.setstatus ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "status" ) ) ; } }

Target:
public void setStatus ( org.ovirt.engine.core.common.businessentities.VMStatus value ) { this . vmDynamic.setstatus ( value ) ; }
Source:
public static synchronized boolean isIsoDomain ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain ) { org.ovirt.engine.api.model.StorageDomainType type = storageDomain.getstorage_domain_type ( ) ; return ( type != null ) && ( type == org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.StorageDomainType ) ? true : false ; }

Target:
public static synchronized boolean isIsoDomain ( org.ovirt.engine.api.model.StorageDomain storageDomain ) { org.ovirt.engine.api.model.StorageDomainType type = storageDomain.getStorageDomainType ( ) ; return ( type != null ) && ( type == org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.StorageDomainType ) ? true : false ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.Model setIsChangeable ( boolean value ) { if ( ( isChangable ) != value ) { isChangable = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "IsChangable" ) ) ; if ( isChangable ) { setChangeProhibitionReason ( null ) ; } } return this ; }

Target:
public void setWindowProperty ( java.lang.String propName , org.ovirt.engine.ui.uicommonweb.models.Model value ) { if ( org.ovirt.engine.ui.uicommonweb.models.Model.PROP_WINDOW.equals ( propName ) ) { setWindow ( value ) ; } }
Source:
public java.lang.Void runInTransaction ( ) { for ( org.ovirt.engine.core.common.businessentities.storage.image_storage_domain_map imageStorageDomainMap : copiedTemplateDisks ) { getImageStorageDomainMapDao ( ) . save ( imageStorageDomainMap ) ; } return null ; }

Target:
public java.lang.Void runInTransaction ( ) { for ( org.ovirt.engine.core.common.businessentities.storage.ImageStorageDomainMap imageStorageDomainMap : copiedTemplateDisks ) { getImageStorageDomainMapDao ( ) . save ( imageStorageDomainMap ) ; } return null ; }
Source:
public void setAddStyleName ( java.lang.String style ) { getLabel ( ) . addStyleName ( style ) ; }

Target:
public void setAddStyleName ( java.lang.String style ) { label.addStyleName ( style ) ; }
Source:
private static void detachNetwork ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > allNics , org.ovirt.engine.ui.uicommonweb.models.hosts.network.LogicalNetworkModel networkToDetach ) { if ( networkToDetach.hasVlan ( ) ) { allNics.remove ( networkToDetach.getVlanNicModel ( ) . getEntity ( ) ) ; } networkToDetach.detach ( ) ; }

Target:
private static void detachNetworkWithoutUpdatingHostSetupNetworksParameters ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > allNics , org.ovirt.engine.ui.uicommonweb.models.hosts.network.LogicalNetworkModel networkToDetach ) { if ( networkToDetach.hasVlan ( ) ) { allNics.remove ( networkToDetach.getVlanNicModel ( ) . getIface ( ) ) ; } networkToDetach.detach ( ) ; }
Source:
protected void setUpEntityQueryExpectations ( ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetVdsInterfacesByVdsId , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendHostNicsResourceTest.PARENT_GUID } , org.ovirt.engine.api.restapi.resource.BackendHostNicsResourceTest.setUpInterfaces ( ) ) ; }

Target:
protected void setUpEntityQueryExpectations ( ) throws java.lang.Exception { setUpEntityQueryExpectations ( QueryType.GetVdsInterfacesByVdsId , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendHostNicsResourceTest.PARENT_GUID } , org.ovirt.engine.api.restapi.resource.BackendHostNicsResourceTest.setUpInterfaces ( ) ) ; }
Source:
public void init ( ) { initState ( ) ; setReportBaseUrl ( org.ovirt.engine.ui.uicommonweb.ReportInit.buildUrl ( org.ovirt.engine.ui.uicommonweb.ReportInit.REDIRECT_SERVICE ) ) ; parseReportsXML ( ) ; }

Target:
public void init ( ) { initState ( ) ; setReportBaseUrl ( org.ovirt.engine.ui.uicommonweb.ReportInit.buildUrl ( org.ovirt.engine.ui.uicommonweb.ReportInit.REDIRECT_SERVICE ) ) ; setReportRightClickUrl ( org.ovirt.engine.ui.uicommonweb.ReportInit.buildUrl ( org.ovirt.engine.ui.uicommonweb.ReportInit.RIGHT_CLICK_REDIRECT_SERVICE ) ) ; parseReportsXML ( ) ; }
Source:
public java.lang.Boolean getValue ( org.ovirt.engine.ui.uicommonweb.models.hosts.VfsConfigNetwork vfsConfigNetwork ) { return vfsConfigNetwork.isAttached ( ) ; }

Target:
public java.lang.Boolean getValue ( org.ovirt.engine.ui.uicommonweb.models.hosts.VfsConfigNetwork vfsConfigNetwork ) { return shouldNetworkBeDisplayedAsAttached ( vfsConfigNetwork ) ; }
Source:
public void saveAll ( java.util.Collection < org.ovirt.engine.core.common.businessentities.VdsDynamic > entities ) { updateAll ( entities ) ; }

Target:
protected org.springframework.jdbc.core.RowMapper < org.ovirt.engine.core.common.businessentities.VdsDynamic > createEntityRowMapper ( ) { return org.ovirt.engine.core.dao.VdsDynamicDAODbFacadeImpl.VdcDynamicRowMapper.instance ; }
Source:
public void setguest_last_logout_time ( java.util.Date value ) { this . guest_last_logout_time = value ; }

Target:
public java.lang.String getGuestOs ( ) { return this . guestOs ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Boolean ) ( source ) ) . booleanValue ( ) : false ; }

Target:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return java.util.Collections.< org.ovirt.engine.core.common.businessentities.CertificateInfo > emptyList ( ) ; } return source ; }
Source:
public static void openUrlInNewWindow ( java.lang.String name , java.lang.String url ) { com.google.gwt.user.client.Window.open ( url , name.replace ( " " , "_" ) , null ) ; }

Target:
public static void openUrlInNewWindow ( final java.lang.String name , final java.lang.String url ) { org.ovirt.engine.ui.common.utils.WebUtils.openUrlInNewWindow ( name , url , null ) ; }
Source:
public java.lang.String getDiskAlias ( ) { if ( ( disk ) != null ) { return disk.getDiskAlias ( ) ; } return "" ; }

Target:
public java.lang.String getDiskAlias ( ) { if ( ( getDisk ( ) ) != null ) { return getDisk ( ) . getDiskAlias ( ) ; } return "" ; }
Source:
public void e1000VmInterfaceTypeWhenNotIsCompatibleWithOs ( ) throws java.lang.Exception { isCompatibleWithOsTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_VM_INTERFACE_TYPE_IS_NOT_SUPPORTED_BY_OS ) , VmInterfaceType.e1000.getValue ( ) ) ; }

Target:
public void e1000VmInterfaceTypeWhenNotIsCompatibleWithOs ( ) throws java.lang.Exception { isCompatibleWithOsTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_VM_INTERFACE_TYPE_IS_NOT_SUPPORTED_BY_OS ) , VmInterfaceType.e1000.getValue ( ) ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getId ( boolean generateIfNull ) { if ( ( ( id ) == null ) && generateIfNull ) { id = org.ovirt.engine.core.compat.Guid.NewGuid ( ) ; } return id ; }

Target:
public org.ovirt.engine.core.compat.Guid getId ( boolean generateIfNull ) { if ( ( ( id ) == null ) && generateIfNull ) { id = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; } return id ; }
Source:
public void testUpdateVmPool ( ) { existingVmPool.setvm_pool_description ( "This is an updated VM pool." ) ; dao.update ( existingVmPool ) ; org.ovirt.engine.core.common.businessentities.VmPool result = dao.get ( existingVmPool.getvm_pool_id ( ) ) ; org.junit.Assert.assertEquals ( existingVmPool , result ) ; }

Target:
public void testUpdateVmPool ( ) { existingVmPool.setVmPoolDescription ( "This is an updated VM pool." ) ; dao.update ( existingVmPool ) ; org.ovirt.engine.core.common.businessentities.VmPool result = dao.get ( existingVmPool.getVmPoolId ( ) ) ; org.junit.Assert.assertEquals ( existingVmPool , result ) ; }
Source:
public void render ( org.ovirt.engine.ui.webadmin.widget.bookmark.Context context , org.ovirt.engine.core.common.businessentities.bookmarks value , com.google.gwt.safehtml.shared.SafeHtmlBuilder sb ) { sb.append ( templates.bookmarkItem ( org.ovirt.engine.ui.common.utils.ElementIdUtils.createElementId ( elementId , value.getbookmark_name ( ) ) , value.getbookmark_name ( ) ) ) ; }

Target:
public void render ( org.ovirt.engine.ui.webadmin.widget.bookmark.Context context , org.ovirt.engine.core.common.businessentities.Bookmark value , com.google.gwt.safehtml.shared.SafeHtmlBuilder sb ) { sb.append ( templates.bookmarkItem ( org.ovirt.engine.ui.common.utils.ElementIdUtils.createElementId ( elementId , value.getbookmark_name ( ) ) , value.getbookmark_name ( ) ) ) ; }
Source:
public void moveShareableDisk ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ) ; initSrcStorageDomain ( ) ; initDestStorageDomain ( StorageType.NFS ) ; initVmDiskImage ( true ) ; org.junit.Assert.assertTrue ( command.validate ( ) ) ; }

Target:
public void moveDiskToGluster ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ) ; initSrcStorageDomain ( ) ; initDestStorageDomain ( StorageType.GLUSTERFS ) ; initVmDiskImage ( false ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( command ) ; }
Source:
protected boolean UpdateVmImSpm ( ) { return org.ovirt.engine.core.bll.VmCommand.UpdateVmInSpm ( getVm ( ) . getstorage_pool_id ( ) , new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VM > ( java.util.Arrays.asList ( new org.ovirt.engine.core.common.businessentities.VM [ ] { getVm ( ) } ) ) ) ; }

Target:
protected void RemoveVmNetwork ( ) { new org.ovirt.engine.core.bll.network.VmInterfaceManager ( ) . removeAll ( macAdded , getVmId ( ) ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > reconstructMaster ( java.lang.String spUUID , java.lang.String poolName , java.lang.String masterDom , java.util.Map < java.lang.String , java.lang.String > domDict , int masterVersion , java.lang.String lockPolicy , int lockRenewalIntervalSec , int leaseTimeSec , int ioOpTimeoutSec , int leaseRetries ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > reconstructMaster ( java.lang.String spUUID , java.lang.String poolName , java.lang.String masterDom , java.util.Map < java.lang.String , java.lang.String > domDict , int masterVersion , java.lang.String lockPolicy , int lockRenewalIntervalSec , int leaseTimeSec , int ioOpTimeoutSec , int leaseRetries , int hostSpmId ) ;
Source:
private static void addToAuditLogSuccessMessage ( java.lang.String IsoDomain , java.lang.String imageType ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; logable.addCustomValue ( "isoDomains" , java.lang.String.format ( "%s (%s file type)" , IsoDomain , imageType ) ) ; org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( logable , AuditLogType.REFRESH_REPOSITORY_FILE_LIST_SUCCEEDED ) ; }

Target:
private static void addToAuditLogSuccessMessage ( java.lang.String IsoDomain , java.lang.String imageType ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; logable.addCustomValue ( "imageDomains" , java.lang.String.format ( "%s (%s file type)" , IsoDomain , imageType ) ) ; org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( logable , AuditLogType.REFRESH_REPOSITORY_IMAGE_LIST_SUCCEEDED ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) . intValue ( ) : 0 ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > ) ( source ) ) : null ; }
Source:
public java.lang.String getCurrent_user_name ( ) { return this . current_user_name ; }

Target:
public java.lang.Object getCurrent_user_id ( ) { return this . current_user_id ; }
Source:
protected void SortCommands ( ) { java.util.Collections.sort ( getCommands ( ) , java.util.Collections.reverseOrder ( new org.ovirt.engine.core.bll.storage.StorageDomainsByTypeComparer ( ) ) ) ; }

Target:
protected void sortCommands ( ) { java.util.Collections.sort ( getCommands ( ) , java.util.Collections.reverseOrder ( new org.ovirt.engine.core.bll.storage.StorageDomainsByTypeComparer ( ) ) ) ; }
Source:
protected org.ovirt.engine.api.resource.AssignedPermissionsResource getPermissionsResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendAssignedPermissionsResource ( guid , org.ovirt.engine.core.common.queries.VdcQueryType.GetPermissionsForObject , new org.ovirt.engine.core.common.queries.GetPermissionsForObjectParameters ( guid ) , org.ovirt.engine.api.model.VnicProfile.class , org.ovirt.engine.core.common.VdcObjectType.VnicProfile ) ) ; }

Target:
protected org.ovirt.engine.api.resource.AssignedPermissionsResource getPermissionsResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendAssignedPermissionsResource ( guid , org.ovirt.engine.core.common.queries.QueryType.GetPermissionsForObject , new org.ovirt.engine.core.common.queries.GetPermissionsForObjectParameters ( guid ) , org.ovirt.engine.api.model.VnicProfile.class , org.ovirt.engine.core.common.VdcObjectType.VnicProfile ) ) ; }
Source:
public void snapshotExistsBySnapshotReturnsInvalidResultWhenNoSnapshot ( ) throws java.lang.Exception { validateInvalidResult ( validator.snapshotExists ( null ) , VdcBllMessages.ACTION_TYPE_FAILED_VM_SNAPSHOT_DOES_NOT_EXIST ) ; }

Target:
public void snapshotExistsBySnapshotReturnsInvalidResultWhenNoSnapshot ( ) throws java.lang.Exception { org.ovirt.engine.core.bll.snapshots.SnapshotsValidatorTest.validateInvalidResult ( validator.snapshotExists ( null ) , VdcBllMessages.ACTION_TYPE_FAILED_VM_SNAPSHOT_DOES_NOT_EXIST ) ; }
Source:
public static boolean CanUpdateField ( java.lang.Object fieldContainer , java.lang.String fieldName , java.lang.Enum < ? > status ) { return org.ovirt.engine.core.utils.ObjectIdentityChecker.CanUpdateField ( fieldContainer.getClass ( ) . getSimpleName ( ) , fieldName , status , fieldContainer ) ; }

Target:
public static boolean canUpdateField ( java.lang.Object fieldContainer , java.lang.String fieldName , java.lang.Enum < ? > status ) { return org.ovirt.engine.core.utils.ObjectIdentityChecker.canUpdateField ( fieldContainer.getClass ( ) . getSimpleName ( ) , fieldName , status , fieldContainer ) ; }
Source:
public void testGetAllVmPools ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmPool > result = dao.getAll ( ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.VmPoolDaoTest.VM_POOL_COUNT , result.size ( ) ) ; }

Target:
public void testGetAllVmPools ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmPool > result = dao.getAll ( ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertFalse ( result.isEmpty ( ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.core.dao.VmPoolDaoTest.VM_POOL_COUNT , result.size ( ) ) ; }
Source:
public void mockDiskDao ( ) { org.ovirt.engine.core.searchbackend.SearchObjectAutoCompleter search = new org.ovirt.engine.core.searchbackend.SearchObjectAutoCompleter ( ) ; org.mockito.Mockito.when ( diskDao.getAllWithQuery ( org.mockito.Matchers.matches ( org.ovirt.engine.core.bll.SearchQueryTest.getDiskImageRegexString ( search ) ) ) ) . thenReturn ( diskImageResultList ) ; }

Target:
public void mockDiskDao ( ) { org.ovirt.engine.core.searchbackend.SearchObjectAutoCompleter search = new org.ovirt.engine.core.searchbackend.SearchObjectAutoCompleter ( ) ; org.mockito.Mockito.when ( diskDao.getAllWithQuery ( org.mockito.ArgumentMatchers.matches ( org.ovirt.engine.core.bll.SearchQueryTest.getDiskImageRegexString ( search ) ) ) ) . thenReturn ( diskImageResultList ) ; }
Source:
public void addContentWidgetContainerStyleName ( java.lang.String styleName ) { contentWidgetContainer.addStyleName ( styleName ) ; }

Target:
public void removeContentWidgetContainerStyleName ( java.lang.String styleName ) { contentWidgetContainer.removeStyleName ( styleName ) ; }
Source:
private void _nextTerminationEntry ( ) throws java.lang.Exception { try { if ( _terminationDialog.get ( _terminationIndex ) . call ( ) ) { ( _terminationIndex ) ++ ; } } catch ( java.lang.ArrayIndexOutOfBoundsException e ) { throw new java.lang.RuntimeException ( "Protocol violation" , e ) ; } }

Target:
private void nextTerminationEntry ( ) throws java.lang.Exception { try { if ( _terminationDialog.get ( _terminationIndex ) . call ( ) ) { ( _terminationIndex ) ++ ; } } catch ( java.lang.ArrayIndexOutOfBoundsException e ) { throw new java.lang.RuntimeException ( "Protocol violation" , e ) ; } }
Source:
public void init ( ) { startProgress ( null ) ; setTitle ( constants.importVirtualMachinesTitle ( ) ) ; setHelpTag ( HelpTag.import_virtual_machine ) ; setHashName ( "import_virtual_machine" ) ; initDataCenters ( ) ; }

Target:
public void init ( ) { startProgress ( null ) ; setTitle ( constants.importVirtualMachinesTitle ( ) ) ; setHelpTag ( HelpTag.import_virtual_machine ) ; setHashName ( "import_virtual_machine" ) ; initDataCenters ( ) ; initDataCenterCpuArchitectureMap ( ) ; }
Source:
private boolean validateNotTheSameName ( ) { if ( org.ovirt.engine.core.bll.storage.domain.UpdateStorageDomainCommand.isStorageWithSameNameExists ( ) ) { return failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_STORAGE_DOMAIN_NAME_ALREADY_EXIST ) ; } return true ; }

Target:
private boolean validateNotTheSameName ( ) { if ( org.ovirt.engine.core.bll.storage.domain.UpdateStorageDomainCommand.isStorageWithSameNameExists ( ) ) { return failValidation ( EngineMessage.ACTION_TYPE_FAILED_STORAGE_DOMAIN_NAME_ALREADY_EXIST ) ; } return true ; }
Source:
protected org.ovirt.engine.core.bll.validator.VmValidator getVmValidator ( org.ovirt.engine.core.common.businessentities.VM vm ) { return new org.ovirt.engine.core.bll.validator.VmValidator ( vm ) ; }

Target:
protected org.ovirt.engine.core.bll.validator.RunVmValidator getRunVmValidator ( ) { return new org.ovirt.engine.core.bll.validator.RunVmValidator ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) , org.ovirt.engine.core.bll.RunVmCommand.getParameters ( ) , org.ovirt.engine.core.bll.RunVmCommand.isInternalExecution ( ) ) ; }
Source:
public void disable ( java.lang.String disabilityHint ) { setEnabled ( false ) ; updateWidgetTitle ( disabilityHint ) ; }

Target:
public void markAsValid ( ) { if ( editorStateValid ) { super . markAsValid ( ) ; } labelTooltip.setText ( labelConfiguredTooltip ) ; labelTooltip.reconfigure ( ) ; contentWidgetContainerTooltip.setText ( contentWidgetContainerConfiguredTooltip ) ; contentWidgetContainerTooltip.reconfigure ( ) ; }
Source:
public void canDoActionFailsOnRemoveLastAdGroupWithSuperUserPrivileges ( ) throws java.lang.Exception { mockIsLastSuperUserGroup ( true ) ; org.junit.Assert.assertFalse ( command.canDoAction ( ) ) ; org.junit.Assert.assertTrue ( command.getReturnValue ( ) . getCanDoActionMessages ( ) . contains ( EngineMessage.ERROR_CANNOT_REMOVE_LAST_SUPER_USER_ROLE.toString ( ) ) ) ; }

Target:
public void validateFailsOnRemoveLastAdGroupWithSuperUserPrivileges ( ) throws java.lang.Exception { mockIsLastSuperUserGroup ( true ) ; org.junit.Assert.assertFalse ( command.validate ( ) ) ; org.junit.Assert.assertTrue ( command.getReturnValue ( ) . getValidationMessages ( ) . contains ( EngineMessage.ERROR_CANNOT_REMOVE_LAST_SUPER_USER_ROLE.toString ( ) ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterVolumeGeoRepConfigSet ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName , java.lang.String configKey , java.lang.String configValue ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterVolumeGeoRepConfigSet ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName , java.lang.String configKey , java.lang.String configValue , java.lang.String userName ) ;
Source:
protected void OnEntityChanged ( ) { super . OnEntityChanged ( ) ; if ( ( getEntity ( ) ) != null ) { getSearchCommand ( ) . Execute ( ) ; } }

Target:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; if ( ( getEntity ( ) ) != null ) { getSearchCommand ( ) . Execute ( ) ; } }
Source:
public void testIsmonitoringNeededGlusterTrue ( ) { org.ovirt.engine.core.common.businessentities.VDS vds = new org.ovirt.engine.core.common.businessentities.VDS ( ) ; vds.setstatus ( VDSStatus.NonOperational ) ; vds.setvm_count ( 0 ) ; org.junit.Assert.assertTrue ( strategy.isMonitoringNeeded ( vds ) ) ; }

Target:
public void testIsmonitoringNeededGlusterTrue ( ) { org.ovirt.engine.core.common.businessentities.VDS vds = new org.ovirt.engine.core.common.businessentities.VDS ( ) ; vds.setStatus ( VDSStatus.NonOperational ) ; vds.setVmCount ( 0 ) ; org.junit.Assert.assertTrue ( strategy.isMonitoringNeeded ( vds ) ) ; }
Source:
public void AddNamespace ( java.lang.String prefix , java.lang.String uri ) { prefixToUri.put ( prefix , uri ) ; }

Target:
public void addNamespace ( java.lang.String prefix , java.lang.String uri ) { prefixToUri.put ( prefix , uri ) ; }