auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void shouldFailtWhenNoGraphicsType ( ) { org.mockito.Mockito.when ( getQueryParameters ( ) . getOptions ( ) ) . thenReturn ( new org.ovirt.engine.core.common.console.ConsoleOptions ( ) ) ; org.junit.Assert.assertFalse ( getQuery ( ) . validateInputs ( ) ) ; }

Target:
public void shouldFailtWhenNoGraphicsType ( ) { org.mockito.Mockito.when ( getQueryParameters ( ) . getOptions ( ) ) . thenReturn ( new org.ovirt.engine.core.common.console.ConsoleOptions ( ) ) ; org.junit.jupiter.api.Assertions.assertFalse ( getQuery ( ) . validateInputs ( ) ) ; }
Source:
private void initListBoxEditors ( ) { dataCenterEditor = new org.ovirt.engine.ui.common.widget.editor.ListModelListBoxEditor < org.ovirt.engine.core.common.businessentities.StoragePool > ( new org.ovirt.engine.ui.common.widget.renderer.NullSafeRenderer < org.ovirt.engine.core.common.businessentities.StoragePool > ( ) { @ java.lang.Override public java.lang.String renderNullSafe ( org.ovirt.engine.core.common.businessentities.StoragePool pool ) { return pool.getName ( ) ; } } ) ; }

Target:
private void initListBoxEditors ( ) { dataCenterEditor = new org.ovirt.engine.ui.common.widget.editor.ListModelListBoxEditor ( new org.ovirt.engine.ui.common.widget.renderer.NameRenderer < org.ovirt.engine.core.common.businessentities.StoragePool > ( ) ) ; }
Source:
public void testGetByServerId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterServerService > services = dao.getByServerId ( org.ovirt.engine.core.dao.gluster.GlusterServerServiceDaoTest.SERVER1_ID ) ; org.junit.Assert.assertNotNull ( services ) ; org.junit.Assert.assertEquals ( 1 , services.size ( ) ) ; verifyServiceOnServer1 ( services.get ( 0 ) ) ; }

Target:
public void testGetByServerId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterServerService > services = dao.getByServerId ( FixturesTool.GLUSTER_BRICK_SERVER1 ) ; org.junit.Assert.assertNotNull ( services ) ; org.junit.Assert.assertEquals ( 1 , services.size ( ) ) ; verifyServiceOnServer1 ( services.get ( 0 ) ) ; }
Source:
public void testGetAllAttachableDisksByPoolIdNoDisks ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.storage.Disk > result = dao.getAllAttachableDisksByPoolId ( FixturesTool.STORAGE_POOL_NFS , null , null , false ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllAttachableDisksByPoolIdNoDisks ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.storage.Disk > result = dao.getAllAttachableDisksByPoolId ( FixturesTool.STORAGE_POOL_NFS , null , null , false ) ; org.junit.jupiter.api.Assertions.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public void managementNetworkNotExternalValid ( ) { testmanagementNetworkNotExternal ( true , false , org.ovirt.engine.core.bll.network.cluster.NetworkClusterValidatorTestBase.isValid ( ) ) ; }

Target:
public void managementNetworkNotExternalValid ( ) { testManagementNetworkNotExternal ( true , false , org.ovirt.engine.core.bll.network.cluster.NetworkClusterValidatorTestBase.isValid ( ) ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepSessionStop ( java.lang.String volumeName , java.lang.String remoteHost , java.lang.String remoteVolumeName , java.lang.Boolean force ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterGeoRepMountBrokerSetup ( java.lang.String userName , java.lang.String remoteGroupName , java.lang.String remoteVolumeName ) ;
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return 100 ; } return source ; }

Target:
public void getMaxVmPriority ( org.ovirt.engine.ui.frontend.AsyncQuery < java.lang.Integer > aQuery ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.DefaultValueConverter < > ( 100 ) ; getConfigFromCache ( new org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ( org.ovirt.engine.core.common.queries.ConfigurationValues.VmPriorityMaxValue , getDefaultConfigurationVersion ( ) ) , aQuery ) ; }
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.uicompat.PropertyChangedEventArgs pcArgs = ( ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ) ( args ) ) ; if ( PropertyChangedEventArgs.PROGRESS.equals ( pcArgs.propertyName ) ) { updatePopupProgress ( model , popup ) ; } }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs args ) { if ( PropertyChangedEventArgs.PROGRESS.equals ( args.propertyName ) ) { updatePopupProgress ( model , popup ) ; } }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { stopProgress ( ) ; cancel ( ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object result ) { java.util.List < org.ovirt.engine.core.common.businessentities.Provider > providers = ( ( java.util.List < org.ovirt.engine.core.common.businessentities.Provider > ) ( result ) ) ; getExternalProviders ( ) . setItems ( providers ) ; selectExternalProvider ( ) ; stopProgress ( ) ; }
Source:
public java.lang.String getRepoImageTitle ( ) { if ( ( repoImageName ) != null ) { return ( ( ( repoImageName ) + " (" ) + ( repoImageId.substring ( 0 , 7 ) ) ) + ")" ; } else { return repoImageId ; } }

Target:
public java.lang.String getRepoImageTitle ( ) { if ( ( repoImageName ) != null ) { return ( ( ( repoImageName ) + " (" ) + ( org.ovirt.engine.core.common.businessentities.storage.RepoImage.getShortHash ( repoImageId ) ) ) + ")" ; } else { return repoImageId ; } }
Source:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; if ( ( getEntity ( ) ) == null ) { return ; } org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity glusterVolumeEntity = ( ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity ) ( getEntity ( ) ) ) ; setItems ( glusterVolumeEntity.getBricks ( ) ) ; }

Target:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; getSearchCommand ( ) . execute ( ) ; }
Source:
public void testDetachVdsFromTag ( ) { dao.detachVdsFromTag ( existingVdsTag.gettag_id ( ) , existingVdsTag.getvds_id ( ) ) ; org.ovirt.engine.core.common.businessentities.tags_vds_map result = dao.getTagVdsByTagIdAndByVdsId ( existingVdsTag.gettag_id ( ) , existingVdsTag.getvds_id ( ) ) ; assertNull ( result ) ; }

Target:
public void testDetachVdsFromTag ( ) { dao.detachVdsFromTag ( existingVdsTag.gettag_id ( ) , existingVdsTag.getvds_id ( ) ) ; org.ovirt.engine.core.common.businessentities.TagsVdsMap result = dao.getTagVdsByTagIdAndByVdsId ( existingVdsTag.gettag_id ( ) , existingVdsTag.getvds_id ( ) ) ; assertNull ( result ) ; }
Source:
public void addColumn ( com.google.gwt.user.cellview.client.Column < T , ? > column , java.lang.String headerText ) { addColumn ( column , createHeader ( column , headerText , false ) ) ; }

Target:
public void addColumn ( com.google.gwt.user.cellview.client.Column < T , ? > column , java.lang.String headerText ) { com.google.gwt.user.cellview.client.Header < ? > header = new org.ovirt.engine.ui.common.widget.table.header.SafeHtmlHeader ( com.google.gwt.safehtml.shared.SafeHtmlUtils.fromString ( headerText ) ) ; addColumn ( column , header ) ; }
Source:
protected void verifyModel ( org.ovirt.engine.api.model.User model , int index ) { assertEquals ( GUIDS [ index ] . toString ( ) , model.getId ( ) ) ; assertEquals ( ( ( ( NAMES [ index ] ) + "@" ) + ( DOMAIN ) ) , model.getUserName ( ) ) ; assertNotNull ( model.getDomain ( ) ) ; assertEquals ( org.ovirt.engine.api.restapi.utils.DirectoryEntryIdUtils.encode ( org.ovirt.engine.api.restapi.resource.aaa.DOMAIN ) , model.getDomain ( ) . getId ( ) ) ; assertTrue ( model.isSetGroups ( ) ) ; assertEquals ( org.ovirt.engine.api.restapi.resource.aaa.BackendUsersResourceTest.PARSED_GROUPS.length , model.getGroups ( ) . getGroups ( ) . size ( ) ) ; java.util.Set < java.lang.String > groupNames = model.getGroups ( ) . getGroups ( ) . stream ( ) . map ( Group :: getName ) . collect ( java.util.stream.Collectors.toSet ( ) ) ; assertEquals ( new java.util.HashSet < > ( java.util.Arrays.asList ( org.ovirt.engine.api.restapi.resource.aaa.BackendUsersResourceTest.PARSED_GROUPS ) ) , groupNames ) ; verifyLinks ( model ) ; }

Target:
protected void verifyModel ( org.ovirt.engine.api.model.User model , int index ) { org.junit.Assert.assertEquals ( GUIDS [ index ] . toString ( ) , model.getId ( ) ) ; org.junit.Assert.assertEquals ( ( ( ( NAMES [ index ] ) + "@" ) + ( DOMAIN ) ) , model.getUserName ( ) ) ; org.junit.Assert.assertNotNull ( model.getDomain ( ) ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.api.restapi.utils.DirectoryEntryIdUtils.encode ( org.ovirt.engine.api.restapi.resource.aaa.DOMAIN ) , model.getDomain ( ) . getId ( ) ) ; org.junit.Assert.assertTrue ( model.isSetGroups ( ) ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.api.restapi.resource.aaa.BackendUsersResourceTest.PARSED_GROUPS.length , model.getGroups ( ) . getGroups ( ) . size ( ) ) ; java.util.Set < java.lang.String > groupNames = model.getGroups ( ) . getGroups ( ) . stream ( ) . map ( Group :: getName ) . collect ( java.util.stream.Collectors.toSet ( ) ) ; org.junit.Assert.assertEquals ( new java.util.HashSet < > ( java.util.Arrays.asList ( org.ovirt.engine.api.restapi.resource.aaa.BackendUsersResourceTest.PARSED_GROUPS ) ) , groupNames ) ; verifyLinks ( model ) ; }
Source:
public void cancel ( ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . unsubscribe ( ) ; cancelConfirmation ( ) ; setGuideContext ( null ) ; setWindow ( null ) ; updateActionAvailability ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { getWindow ( ) . stopProgress ( ) ; setWindow ( null ) ; }
Source:
protected void onReveal ( ) { super . onReveal ( ) ; setInSlot ( org.ovirt.engine.ui.userportal.section.main.presenter.MainSectionPresenter.TYPE_SetHeader , header ) ; }

Target:
protected void onReveal ( ) { super . onReveal ( ) ; setInSlot ( org.ovirt.engine.ui.userportal.section.main.presenter.MainSectionPresenter.TYPE_SetHeader , header ) ; alertManager.setCanShowAlerts ( true ) ; }
Source:
private boolean networkExists ( ) { return ( org.ovirt.engine.core.bll.network.cluster.AttachNetworkToClusterInternalCommand.getNetworkClusterDao ( ) . get ( org.ovirt.engine.core.bll.network.cluster.AttachNetworkToClusterInternalCommand.getNetworkCluster ( ) . getId ( ) ) ) != null ; }

Target:
private boolean networkExists ( ) { return ( networkClusterDao.get ( org.ovirt.engine.core.bll.network.cluster.AttachNetworkToClusterInternalCommand.getNetworkCluster ( ) . getId ( ) ) ) != null ; }
Source:
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 ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createLabeledNic ( java.lang.String string , java.lang.String networkName , java.lang.String ... labels ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface nic = createNic ( "nic0" , networkName ) ; nic.setLabels ( new java.util.HashSet < > ( java.util.Arrays.asList ( labels ) ) ) ; return nic ; }
Source:
public org.ovirt.engine.core.vdsbroker.vdsbroker.VmInfoBuilder createVmInfoBuilder ( org.ovirt.engine.core.common.businessentities.VM vm , org.ovirt.engine.core.compat.Guid vdsId , java.util.Map createInfo ) { return new org.ovirt.engine.core.vdsbroker.vdsbroker.VmInfoBuilder ( vm , vdsId , createInfo , vdsNumaNodeDao , vmDeviceDao , vmNumaNodeDao , vmInfoBuildUtils ) ; }

Target:
public org.ovirt.engine.core.vdsbroker.builder.vminfo.VmInfoBuilder createVmInfoBuilder ( org.ovirt.engine.core.common.businessentities.VM vm , org.ovirt.engine.core.compat.Guid vdsId , java.util.Map < java.lang.String , java.lang.Object > createInfo ) { return new org.ovirt.engine.core.vdsbroker.builder.vminfo.VmInfoBuilderImpl ( vm , vdsId , createInfo , clusterDao , networkClusterDao , networkDao , vdsNumaNodeDao , vmDeviceDao , vmNumaNodeDao , vmInfoBuildUtils ) ; }
Source:
public void testIsNetworkInSyncWhenIfaceQosEqual ( ) throws java.lang.Exception { org.junit.Assert.assertThat ( createTestedInstanceWithSameNonQosValues ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testIsNetworkInSyncWhenNetworkQosIsNullIfaceQosOverridden ( ) { networkQos = null ; org.hamcrest.MatcherAssert.assertThat ( createTestedInstanceWithSameNonQosValues ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
public void validateFails ( ) { cmd.getParameters ( ) . setActionType ( "InvalidActionType" ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFails ( ) { cmd.getParameters ( ) . setActionType ( "InvalidActionType" ) ; org.junit.jupiter.api.Assertions.assertFalse ( cmd.validate ( ) ) ; }
Source:
public void getUsbPolicyIsSetDisabled ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; org.ovirt.engine.core.common.businessentities.VDSGroup vdsGroup = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb , vdsGroup.getcompatibility_version ( ) ) , UsbPolicy.DISABLED ) ; }

Target:
public void getUsbPolicyIsSetDisabled ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; org.ovirt.engine.core.common.businessentities.VDSGroup vdsGroup = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb , vdsGroup.getCompatibilityVersion ( ) ) , UsbPolicy.DISABLED ) ; }
Source:
public void setusage_cpu_percent ( java.lang.Integer value ) { this . mVmStatistics.setusage_cpu_percent ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "usage_cpu_percent" ) ) ; }

Target:
public void setStoragePoolName ( java.lang.String value ) { storagePoolName = value ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { java.util.ArrayList < java.lang.String > pmTypes = ( ( java.util.ArrayList < java.lang.String > ) ( returnValue ) ) ; updatePmTypeList ( pmTypes , getPmType ( ) ) ; updatePmTypeList ( pmTypes , getPmSecondaryType ( ) ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel ) ( target ) ) ; model.maxSpmPriority = ( ( java.lang.Integer ) ( returnValue ) ) ; initSpmPriorities1 ( ) ; }
Source:
private org.ovirt.engine.core.vdsbroker.RefresherFactory getRefresherFactory ( ) { return org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.vdsbroker.RefresherFactory.class ) ; }

Target:
private org.ovirt.engine.core.vdsbroker.monitoring.RefresherFactory getRefresherFactory ( ) { return org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.vdsbroker.monitoring.RefresherFactory.class ) ; }
Source:
void clearSessionId ( ) { clientStorage.removeLocalItem ( org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.SESSION_ID_KEY ) ; }

Target:
java.lang.String getSessionId ( ) { return restApiSessionId ; }
Source:
void ExecuteCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand , java.lang.Object ... parameters ) ;

Target:
void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand , java.lang.Object ... parameters ) ;
Source:
public final boolean IsDynamicVariable ( java.lang.String strMessage ) { return strMessage.startsWith ( "$" ) ; }

Target:
public final boolean IsDynamicVariable ( java.lang.String strMessage ) { return org.ovirt.engine.core.utils.ErrorTranslatorImpl.startsWithVariableDefinitionPattern.matcher ( strMessage ) . matches ( ) ; }
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 ) { return source != null ? ( ( java.util.Set < org.ovirt.engine.core.common.businessentities.AdditionalFeature > ) ( source ) ) : new java.util.HashSet < org.ovirt.engine.core.common.businessentities.AdditionalFeature > ( ) ; }
Source:
public void testRemove ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity existingBrick = dao.getById ( FixturesTool.GLUSTER_BRICK_UUID1 ) ; org.junit.Assert.assertNotNull ( existingBrick ) ; dao.removeBrick ( FixturesTool.GLUSTER_BRICK_UUID1 ) ; org.junit.Assert.assertNull ( dao.getById ( FixturesTool.GLUSTER_BRICK_UUID1 ) ) ; }

Target:
public void testRemove ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity existingBrick = dao.getById ( FixturesTool.GLUSTER_BRICK_UUID1 ) ; org.junit.jupiter.api.Assertions.assertNotNull ( existingBrick ) ; dao.removeBrick ( FixturesTool.GLUSTER_BRICK_UUID1 ) ; org.junit.jupiter.api.Assertions.assertNull ( dao.getById ( FixturesTool.GLUSTER_BRICK_UUID1 ) ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VdsNetworkInterface i ) { if ( ( i.getBondName ( ) ) != null ) { return i.getBondName ( ) . equals ( org.ovirt.engine.core.utils.NetworkUtils.StripVlan ( bond.getName ( ) ) ) ; } return false ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VdsNetworkInterface i ) { return org.ovirt.engine.core.utils.NetworkUtils.interfaceBasedOn ( bond.getName ( ) , i.getBondName ( ) ) ; }
Source:
public static void updateAllDiskImageSnapshotsStatus ( org.ovirt.engine.core.compat.Guid diskId , org.ovirt.engine.core.common.businessentities.ImageStatus status ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getImageDao ( ) . updateStatusOfImagesByImageGroupId ( diskId , status ) ; }

Target:
public java.lang.Void runInTransaction ( ) { for ( org.ovirt.engine.core.compat.Guid diskId : diskIds ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getImageDao ( ) . updateStatusOfImagesByImageGroupId ( diskId , status ) ; } compensationContext.stateChanged ( ) ; return null ; }
Source:
protected void SyncSearch ( ) { OnEntityChanged ( ) ; }

Target:
protected void SyncSearch ( ) { onEntityChanged ( ) ; }
Source:
public org.ovirt.engine.api.model.Cluster get ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup entity = getVdsGroup ( ) ; if ( entity == null ) { return notFound ( ) ; } return addLinks ( map ( entity ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.Cluster get ( ) { org.ovirt.engine.core.common.businessentities.Cluster entity = getCluster ( ) ; if ( entity == null ) { return notFound ( ) ; } return addLinks ( map ( entity ) ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface , org.ovirt.engine.core.common.businessentities.VM > object ) { setTitle ( object.getSecond ( ) . getVmFQDN ( ) ) ; return object.getSecond ( ) . getVmFQDN ( ) ; }

Target:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface , org.ovirt.engine.core.common.businessentities.VM > object ) { java.lang.String tooltipContent = object.getSecond ( ) . getVmFQDN ( ) ; return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromString ( tooltipContent ) ; }
Source:
public void testGetFullPath_nullParameter ( ) { java.lang.String fullPath = testServlet.getFullPath ( mockFile , null ) ; org.junit.Assert.assertNull ( "Path should be null" , fullPath ) ; }

Target:
public void testGetFullPath_nullParameter ( ) { java.io.File file = testServlet.getFile ( mockFile , null ) ; org.junit.Assert.assertNull ( "Path should be null" , file ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.VDSGroup createNewVdsGroup ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup group = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; group.setCompatibilityVersion ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.VERSION_1_1 ) ; group.setName ( "Default" ) ; return group ; }

Target:
private static org.ovirt.engine.core.common.businessentities.Cluster createNewCluster ( ) { org.ovirt.engine.core.common.businessentities.Cluster group = new org.ovirt.engine.core.common.businessentities.Cluster ( ) ; group.setCompatibilityVersion ( org.ovirt.engine.core.bll.UpdateClusterCommandTest.VERSION_1_1 ) ; group.setName ( "Default" ) ; return group ; }
Source:
private org.ovirt.engine.core.common.businessentities.VmTemplate getTemplate ( ) { return getEntity ( org.ovirt.engine.core.common.businessentities.VmTemplate.class , VdcQueryType.GetVmTemplate , new org.ovirt.engine.core.common.queries.GetVmTemplateParameters ( templateId ) , templateId.toString ( ) , true ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.VmTemplate getTemplate ( ) { return getEntity ( org.ovirt.engine.core.common.businessentities.VmTemplate.class , QueryType.GetVmTemplate , new org.ovirt.engine.core.common.queries.GetVmTemplateParameters ( templateId ) , templateId.toString ( ) , true ) ; }
Source:
public void setComment ( java.lang.String value ) { comment = value ; }

Target:
public void setDescription ( java.lang.String value ) { this . description = ( value == null ) ? "" : value ; }
Source:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; syncSearch ( ) ; }

Target:
private void cancel ( ) { setWindow ( null ) ; }
Source:
public java.lang.String getValue ( java.lang.Object object ) { return ( java.lang.String.valueOf ( ( ( org.ovirt.engine.core.common.businessentities.VM ) ( object ) ) . getVmMemSizeMb ( ) ) ) + " MB" ; }

Target:
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.ui.uicommonweb.models.vms.ImportVmData ) ( object ) ) . getVm ( ) ) ; }
Source:
public java.lang.Object getQueryableId ( ) { return getVdsGroupId ( ) ; }

Target:
public java.lang.Object getQueryableId ( ) { return getClusterId ( ) ; }
Source:
public void setMessage ( java.lang.String message ) { messagePanel.setText ( ( message != null ? message.replace ( "\n" , "<br>" ) : "" ) ) ; }

Target:
public void setMessage ( java.lang.String message ) { java.lang.String escapedMessage = com.google.gwt.safehtml.shared.SafeHtmlUtils.htmlEscape ( ( message != null ? message : "" ) ) ; escapedMessage = escapedMessage.replace ( "\n" , "<br>" ) ; messagePanel.setHtmlText ( com.google.gwt.safehtml.shared.SafeHtmlUtils.fromTrustedString ( escapedMessage ) ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { updateSysprepVisibility ( object ) ; updateInitialRunTabVisibility ( object ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { updateCloudInitVisibility ( object ) ; updateInitialRunTabVisibility ( object ) ; }
Source:
public boolean isLsmBetweenMixedStorageDomainsSupported ( org.ovirt.engine.core.compat.Version version ) { return ( ( java.lang.Boolean ) ( getConfigValuePreConverted ( ConfigurationValues.LiveStorageMigrationBetweenDifferentStorageTypes , version.toString ( ) ) ) ) ; }

Target:
public boolean isEnableDeprecatedClientModeSpicePlugin ( ) { return ( ( java.lang.Boolean ) ( getConfigValuePreConverted ( ConfigurationValues.EnableDeprecatedClientModeSpicePlugin , getDefaultConfigurationVersion ( ) ) ) ) ; }
Source:
private void logFailureMessage ( java.lang.RuntimeException ex ) { org.ovirt.engine.core.vdsbroker.VdsManager.log.warnFormat ( "ResourceManager::refreshVdsRunTimeInfo::Failed to AfterRefreshTreatment VDS error = '{0}', continuing." , org.apache.commons.lang.exception.ExceptionUtils.getMessage ( ex ) ) ; }

Target:
private void logAfterRefreshFailureMessage ( java.lang.RuntimeException ex ) { org.ovirt.engine.core.vdsbroker.VdsManager.log.warnFormat ( "ResourceManager::refreshVdsRunTimeInfo::Failed to AfterRefreshTreatment VDS error = '{0}', continuing." , org.apache.commons.lang.exception.ExceptionUtils.getMessage ( ex ) ) ; }
Source:
public void setUsageMemPercent ( java.lang.Integer value ) { this . mVdsStatistics.setusage_mem_percent ( value ) ; }

Target:
public java.lang.Long getMemShared ( ) { return this . mVdsStatistics.getMemShared ( ) ; }
Source:
public void setSymbolMapsDirectory ( java.lang.String symbolMapsDir ) { deobfuscator = com.google.gwt.core.server.StackTraceDeobfuscator.fromFileSystem ( symbolMapsDir ) ; }

Target:
private void initDeobfuscator ( java.nio.file.FileSystem zipFs ) { deobfuscator = new com.google.gwt.core.server.StackTraceDeobfuscator ( ) { protected java.io.InputStream openInputStream ( java.lang.String fileName ) throws java.io.IOException { return java.nio.file.Files.newInputStream ( zipFs.getPath ( ( "/" + fileName ) ) ) ; } } ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { proxyUp ( widget.getModel ( ) ) ; updateButtonState ( ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { proxyDown ( widget.getModel ( ) ) ; updateButtonState ( ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( quotaId , quotaVdsGroupId , vdsGroupId , virtualCpu , memSizeMB ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( quotaId , quotaClusterId , clusterId , virtualCpu , memSizeMB ) ; }
Source:
public void shouldSetNumaPinning ( ) { org.junit.Assert.assertTrue ( underTest.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) . isValid ( ) ) ; }

Target:
public void shouldSetNumaPinning ( ) { org.junit.jupiter.api.Assertions.assertTrue ( underTest.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) . isValid ( ) ) ; }
Source:
protected abstract org.ovirt.engine.core.common.action.TagsActionParametersBase getAttachParams ( java.lang.String id ) ;

Target:
private org.ovirt.engine.core.common.action.TagsActionParametersBase getAttachParams ( java.lang.String id ) { return new org.ovirt.engine.core.common.action.AttachEntityToTagParameters ( asGuid ( id ) , asList ( asGuid ( parentId ) ) ) ; }
Source:
protected void configure ( ) { }

Target:
protected void configure ( ) { bind ( new com.google.inject.TypeLiteral < org.ovirt.engine.ui.common.uicommon.model.MainModelProvider < java.lang.Void , org.ovirt.engine.ui.uicommonweb.models.reports.ReportsListModel > > ( ) { } ) . to ( new com.google.inject.TypeLiteral < org.ovirt.engine.ui.common.uicommon.model.MainTabModelProvider < java.lang.Void , org.ovirt.engine.ui.uicommonweb.models.reports.ReportsListModel > > ( ) { } ) . in ( com.google.inject.Singleton.class ) ; }
Source:
public javax.ws.rs.core.Response remove ( ) { org.ovirt.engine.core.common.businessentities.Provider provider = org.ovirt.engine.api.restapi.resource.BackendExternalProviderHelper.getProvider ( this , id ) ; org.ovirt.engine.core.common.action.ProviderParameters parameters = new org.ovirt.engine.core.common.action.ProviderParameters ( provider ) ; return performAction ( ActionType.RemoveProvider , parameters ) ; }

Target:
public javax.ws.rs.core.Response remove ( ) { org.ovirt.engine.core.common.businessentities.Provider provider = org.ovirt.engine.api.restapi.resource.BackendExternalProviderHelper.getProvider ( this , id ) ; org.ovirt.engine.core.common.action.ProviderParameters parameters = new org.ovirt.engine.core.common.action.ProviderParameters ( provider , isForce ( ) ) ; return performAction ( ActionType.RemoveProvider , parameters ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getvmt_guid ( ) { return this . vmt_guid ; }

Target:
public void setVmtGuid ( org.ovirt.engine.core.compat.Guid value ) { this . vmtGuid = value ; }
Source:
public boolean connectStorageToDomainByVdsId ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.compat.Guid vdsId ) { return true ; }

Target:
protected org.ovirt.engine.core.common.utils.Pair < java.lang.Boolean , org.ovirt.engine.core.common.errors.EngineFault > runConnectionStorageToDomain ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.compat.Guid vdsId , int type ) { return runConnectionStorageToDomain ( storageDomain , vdsId , type , null , storageDomain.getStoragePoolId ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.queries.VdcQueryReturnValue runInternalQuery ( org.ovirt.engine.core.common.queries.QueryType actionType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters ) { parameters.setRefresh ( false ) ; return backend.runInternalQuery ( actionType , parameters , getEngineContext ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.queries.VdcQueryReturnValue runInternalQuery ( org.ovirt.engine.core.common.queries.QueryType actionType , org.ovirt.engine.core.common.queries.QueryParametersBase parameters ) { parameters.setRefresh ( false ) ; return backend.runInternalQuery ( actionType , parameters , getEngineContext ( ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc hotPlugNic ( org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct info ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterHookUpdate ( java.lang.String glusterCommand , java.lang.String stage , java.lang.String hookName , java.lang.String content , java.lang.String checksum ) ;
Source:
public void getVmDefault ( ) { final org.ovirt.engine.core.common.businessentities.VM v = b.getVm ( ) ; org.junit.Assert.assertNull ( v ) ; }

Target:
public void getVmDefault ( ) { final org.ovirt.engine.core.common.businessentities.VM v = b.getVm ( ) ; org.junit.jupiter.api.Assertions.assertNull ( v ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterGuideModel clusterGuideModel = ( ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterGuideModel ) ( target ) ) ; org.ovirt.engine.core.common.businessentities.VDS localStorageHost = ( ( org.ovirt.engine.core.common.businessentities.VDS ) ( returnValue ) ) ; clusterGuideModel.localStorageHost = localStorageHost ; clusterGuideModel.UpdateOptionsLocalFS ( ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterGuideModel clusterGuideModel = ( ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterGuideModel ) ( target ) ) ; org.ovirt.engine.core.common.businessentities.VDS localStorageHost = ( ( org.ovirt.engine.core.common.businessentities.VDS ) ( returnValue ) ) ; clusterGuideModel.localStorageHost = localStorageHost ; clusterGuideModel.updateOptionsLocalFS ( ) ; }
Source:
public java.lang.String getVdcUserNameAndDomain ( ) { java.lang.String username = org.ovirt.engine.ui.frontend.Frontend.getLoggedInUser ( ) . getUserName ( ) ; java.lang.String domain = org.ovirt.engine.ui.frontend.Frontend.getLoggedInUser ( ) . getDomainControler ( ) ; return username.contains ( "@" ) ? username : ( username + "@" ) + domain ; }

Target:
public java.lang.String getUserNameAndDomain ( ) { java.lang.String username = org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . getLoggedInUser ( ) . getLoginName ( ) ; java.lang.String domain = org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . getLoggedInUser ( ) . getDomain ( ) ; return username.contains ( "@" ) ? username : ( username + "@" ) + domain ; }
Source:
private void logFailureMessage ( java.lang.String messagePrefix , java.lang.RuntimeException ex ) { org.ovirt.engine.core.vdsbroker.HostMonitoring.log.errorFormat ( "{0} Error: {1}, vds = {2} : {3}" , messagePrefix , org.apache.commons.lang.exception.ExceptionUtils.getMessage ( ex ) , vds.getId ( ) , vds.getName ( ) ) ; }

Target:
private void logFailureMessage ( java.lang.String messagePrefix , java.lang.RuntimeException ex ) { org.ovirt.engine.core.vdsbroker.HostMonitoring.log.error ( "{} vds={}({}): {}" , messagePrefix , vds.getName ( ) , vds.getId ( ) , ex.getMessage ( ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.bll.utils.PermissionSubject > getPermissionCheckSubjects ( ) { return java.util.Collections.singletonList ( new org.ovirt.engine.core.bll.utils.PermissionSubject ( org.ovirt.engine.core.bll.gluster.GlusterCommandBase.getVdsGroupId ( ) , org.ovirt.engine.core.common.VdcObjectType.VdsGroups , org.ovirt.engine.core.bll.gluster.GlusterCommandBase.getActionType ( ) . getActionGroup ( ) ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.bll.utils.PermissionSubject > getPermissionCheckSubjects ( ) { return java.util.Collections.singletonList ( new org.ovirt.engine.core.bll.utils.PermissionSubject ( org.ovirt.engine.core.bll.gluster.GlusterCommandBase.getClusterId ( ) , org.ovirt.engine.core.common.VdcObjectType.Cluster , org.ovirt.engine.core.bll.gluster.GlusterCommandBase.getActionType ( ) . getActionGroup ( ) ) ) ; }
Source:
private void validateInvalidResult ( org.ovirt.engine.core.bll.ValidationResult validationResult , org.ovirt.engine.core.dal.VdcBllMessages message ) { validateResult ( validationResult , false , message ) ; }

Target:
private static void validateInvalidResult ( org.ovirt.engine.core.bll.ValidationResult validationResult , org.ovirt.engine.core.dal.VdcBllMessages message ) { org.ovirt.engine.core.bll.snapshots.SnapshotsValidatorTest.validateResult ( validationResult , false , message ) ; }
Source:
public java.lang.String getDocumentationBaseURL ( ) { return ( ( removeModulName ( com.google.gwt.core.client.GWT.getModuleBaseURL ( ) ) ) + ( getDocumentationBasePath ( ) ) ) + ( org.ovirt.engine.ui.uicommonweb.Configurator.documentationLangPath ) ; }

Target:
public java.lang.String getDocumentationBaseURL ( ) { return ( ( org.ovirt.engine.ui.uicommonweb.Configurator.getRootURL ( ) ) + ( getDocumentationBasePath ( ) ) ) + ( org.ovirt.engine.ui.uicommonweb.Configurator.documentationLangPath ) ; }
Source:
protected org.ovirt.engine.core.common.action.VdcActionType getActionType ( ) { return org.ovirt.engine.core.common.action.VdcActionType.MoveDisk ; }

Target:
protected org.ovirt.engine.core.common.action.VdcActionType getActionType ( ) { return org.ovirt.engine.core.common.action.VdcActionType.MoveDisks ; }
Source:
public void validateSucceeds ( ) { org.junit.Assert.assertTrue ( cmd.validate ( ) ) ; }

Target:
public void validateSucceeds ( ) { org.junit.jupiter.api.Assertions.assertTrue ( cmd.validate ( ) ) ; }
Source:
public void configureElementId ( java.lang.String elementIdPrefix , java.lang.String columnId ) { getCell ( ) . setElementIdPrefix ( elementIdPrefix ) ; getCell ( ) . setColumnId ( columnId ) ; }

Target:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.core.common.businessentities.storage.Disk object ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage = ( ( org.ovirt.engine.core.common.businessentities.storage.DiskImage ) ( object ) ) ; return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromString ( org.ovirt.engine.ui.uicompat.external.StringUtils.join ( diskImage.getStoragesNames ( ) , ", " ) ) ; }
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.StorageDomain > ( ) ; } return source ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.Disk > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.Disk > ( ) ; }
Source:
protected void initAllowConsoleReconnect ( ) { getAllowConsoleReconnect ( ) . setEntity ( true ) ; }

Target:
private void updateWatchdogModels ( ) { updateWatchdogModels ( ( ( java.lang.Integer ) ( getOSType ( ) . getSelectedItem ( ) ) ) ) ; }
Source:
public void setActionParameters ( org.ovirt.engine.core.common.action.VdcActionParametersBase value ) { this . actionParameters = value ; }

Target:
public void setTaskParameters ( org.ovirt.engine.core.common.action.VdcActionParametersBase value ) { childCmdEntity.setCommandParameters ( value ) ; }
Source:
public void remove ( org.ovirt.engine.core.common.businessentities.storage.LUNStorageServerConnectionMapId id ) { throw new org.apache.commons.lang.NotImplementedException ( ) ; }

Target:
public void remove ( org.ovirt.engine.core.common.businessentities.storage.LUNStorageServerConnectionMapId id ) { throw new java.lang.UnsupportedOperationException ( ) ; }
Source:
public javax.ws.rs.core.Response end ( org.ovirt.engine.api.model.Action action ) { validateParameters ( action , "succeeded" ) ; return doAction ( VdcActionType.EndExternalStep , new org.ovirt.engine.core.common.action.EndExternalStepParameters ( guid , action.isSucceeded ( ) ) , action ) ; }

Target:
public javax.ws.rs.core.Response end ( org.ovirt.engine.api.model.Action action ) { org.ovirt.engine.core.common.action.EndExternalStepParameters parameters = new org.ovirt.engine.core.common.action.EndExternalStepParameters ( guid , ( action.isSetSucceeded ( ) ? action.isSucceeded ( ) : true ) ) ; return doAction ( VdcActionType.EndExternalStep , parameters , action ) ; }
Source:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s, vds_spm_id = %s, masterDomainId = %s, masterVersion = %s" , super . toString ( ) , getvds_spm_id ( ) , getMasterDomainId ( ) , getMasterVersion ( ) ) ; }

Target:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s, masterDomainId = %s, masterVersion = %s" , super . toString ( ) , getMasterDomainId ( ) , getMasterVersion ( ) ) ; }
Source:
public void OnSuccess ( java.lang.Object model , java.lang.Object ReturnValue ) { setItems ( ( ( java.util.List < org.ovirt.engine.core.common.businessentities.Provider > ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( ReturnValue ) ) . getReturnValue ( ) ) ) ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { getSearchCommand ( ) . execute ( ) ; }
Source:
public int hashCode ( ) { final int prime = 31 ; int result = 1 ; result = ( prime * result ) + ( length ) ; result = ( prime * result ) + ( width ) ; return result ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( length , width ) ; }
Source:
public void isNotSameStorageType ( ) { domain.setStorageType ( StorageType.NFS ) ; org.junit.Assert.assertEquals ( VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_CONNECTION_UNSUPPORTED_ACTION_NOT_SAME_STORAGE_TYPE , validator.isSameStorageType ( domain ) . getMessage ( ) ) ; }

Target:
public void isNotSameStorageType ( ) { domain.setStorageType ( StorageType.NFS ) ; org.junit.Assert.assertEquals ( EngineMessage.ACTION_TYPE_FAILED_STORAGE_CONNECTION_UNSUPPORTED_ACTION_NOT_SAME_STORAGE_TYPE , validator.isSameStorageType ( domain ) . getMessage ( ) ) ; }
Source:
protected void executeCommand ( ) { InitOldParentTagName ( ) ; org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . moveTag ( org.ovirt.engine.core.bll.MoveTagCommand.getParameters ( ) . getTagId ( ) , org.ovirt.engine.core.bll.MoveTagCommand.getParameters ( ) . getNewParentId ( ) ) ; org.ovirt.engine.core.bll.MoveTagCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { initOldParentTagName ( ) ; org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . moveTag ( org.ovirt.engine.core.bll.MoveTagCommand.getParameters ( ) . getTagId ( ) , org.ovirt.engine.core.bll.MoveTagCommand.getParameters ( ) . getNewParentId ( ) ) ; org.ovirt.engine.core.bll.MoveTagCommand.setSucceeded ( true ) ; }
Source:
public void addLinks ( java.util.List < org.ovirt.api.metamodel.concepts.Link > links ) { this . links.addAll ( links ) ; }

Target:
public void addLinks ( java.util.List < org.ovirt.api.metamodel.concepts.Link > newLinks ) { links.addAll ( newLinks ) ; links.sort ( java.util.Comparator.comparing ( Link :: getName ) ) ; }
Source:
public java.lang.String getNetworkName ( ) { return org.ovirt.engine.core.bll.UpdateVmInterfaceCommand.getParameters ( ) . getInterface ( ) . getNetworkName ( ) ; }

Target:
private boolean liveActionRequired ( ) { return ( ( oldIface.isActive ( ) ) && ( getInterface ( ) . isActive ( ) ) ) && ( ( org.ovirt.engine.core.bll.UpdateVmInterfaceCommand.getVm ( ) . getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.Up ) ) ; }
Source:
public void testGetAllForStoragePool ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllForStoragePool ( org.ovirt.engine.core.dao.StorageDomainDaoTest.EXISTING_STORAGE_POOL_ID ) ; org.ovirt.engine.core.dao.StorageDomainDaoTest.assertGetAllForStoragePoolResult ( result , org.ovirt.engine.core.dao.StorageDomainDaoTest.EXISTING_STORAGE_POOL_ID ) ; }

Target:
public void testGetAllForStoragePoolWithPermissionsDisabledUnprivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllForStoragePool ( FixturesTool.STORAGE_POOL_NFS , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , false ) ; org.ovirt.engine.core.dao.StorageDomainDaoTest.assertGetAllForStoragePoolResult ( result , FixturesTool.STORAGE_POOL_NFS ) ; }
Source:
public void testIsDataDomainFails ( ) { domain.setStorageDomainType ( StorageDomainType.ISO ) ; org.junit.Assert.assertThat ( validator.isDataDomain ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_ACTION_IS_SUPPORTED_ONLY_FOR_DATA_DOMAINS ) ) ; }

Target:
public void testIsDataDomainFails ( ) { domain.setStorageDomainType ( StorageDomainType.ISO ) ; org.hamcrest.MatcherAssert.assertThat ( validator.isDataDomain ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_ACTION_IS_SUPPORTED_ONLY_FOR_DATA_DOMAINS ) ) ; }
Source:
public void canCreateLessNumaNodesAsVirtualCores ( ) { final org.ovirt.engine.core.bll.numa.vm.AddVmNumaNodesCommand command = mockedCommand ( ) ; vm.setNumOfSockets ( 1 ) ; vm.setCpuPerSocket ( 3 ) ; org.assertj.core.api.Assertions.assertThat ( command.canDoAction ( ) ) . isTrue ( ) ; }

Target:
public void canDetectMissingVM ( ) { org.mockito.Mockito.when ( vmDao.get ( org.mockito.Matchers.eq ( vm.getId ( ) ) ) ) . thenReturn ( null ) ; final org.ovirt.engine.core.bll.numa.vm.AddVmNumaNodesCommand command = mockedCommandWithVmFromDb ( ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.ACTION_TYPE_FAILED_VM_NOT_FOUND ) ; }
Source:
public java.lang.String getPrincipal ( java.lang.String sessionId ) { return getPrincipalName ( sessionId ) ; }

Target:
public java.lang.String getPrincipalName ( java.lang.String sessionId ) { java.lang.String principal = null ; org.ovirt.engine.api.extensions.ExtMap authRecord = getAuthRecord ( sessionId ) ; if ( authRecord != null ) { principal = authRecord.< java.lang.String > get ( Authn.AuthRecord.PRINCIPAL ) ; } return principal ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { return object.getTitle ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.RepoImage object ) { return object.getRepoImageTitle ( ) ; }
Source:
public void setVdsForUniqueId ( org.ovirt.engine.core.compat.Guid serverForUniqueId ) { this . vdsId = serverForUniqueId ; }

Target:
public void setVdsForUniqueId ( org.ovirt.engine.core.compat.Guid serverForUniqueId ) { this . hostId = serverForUniqueId ; }
Source:
protected void executeCommand ( ) { getAffinityGroupDao ( ) . remove ( getParameters ( ) . getAffinityGroupId ( ) ) ; setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { affinityGroupDao.remove ( getParameters ( ) . getAffinityGroupId ( ) ) ; setSucceeded ( true ) ; }
Source:
private java.util.Properties setCommonProperties ( org.ovirt.engine.core.notifier.utils.NotificationProperties aMailProps ) { java.util.Properties mailSessionProps = new java.util.Properties ( ) ; if ( org.ovirt.engine.core.notifier.utils.sender.mail.JavaMailSender.log.isTraceEnabled ( ) ) { mailSessionProps.put ( "mail.debug" , "true" ) ; } isBodyHtml = aMailProps.getBoolean ( NotificationProperties.HTML_MESSAGE_FORMAT , false ) ; return mailSessionProps ; }

Target:
private java.util.Properties setCommonProperties ( org.ovirt.engine.core.notifier.utils.NotificationProperties aMailProps ) { java.util.Properties mailSessionProps = new java.util.Properties ( ) ; if ( org.ovirt.engine.core.notifier.transport.smtp.JavaMailSender.log.isTraceEnabled ( ) ) { mailSessionProps.put ( "mail.debug" , "true" ) ; } isBodyHtml = aMailProps.getBoolean ( NotificationProperties.HTML_MESSAGE_FORMAT , false ) ; return mailSessionProps ; }
Source:
public int getLowUtilization ( ) { return this . lowUtilization ; }

Target:
public boolean getHighlyAvailableGlobalMaintenance ( ) { return this . mVdsStatistics.getHighlyAvailableGlobalMaintenance ( ) ; }
Source:
public void testAllLunsSupportDiscardFailsOneLunHasNullValue ( ) { junit.framework.Assert.assertFalse ( discardHelper.allLunsSupportDiscard ( java.util.Arrays.asList ( createLunWithDiscardFunctionality ( 1024L , true ) , createLunWithDiscardFunctionality ( 2048L , false ) , createLunWithDiscardFunctionality ( null , true ) ) ) ) ; }

Target:
public void testAllLunsSupportDiscardFailsOneLunHasNullValue ( ) { org.junit.Assert.assertFalse ( discardHelper.allLunsSupportDiscard ( java.util.Arrays.asList ( createLunWithDiscardFunctionality ( 1024L , true ) , createLunWithDiscardFunctionality ( 2048L , false ) , createLunWithDiscardFunctionality ( null , true ) ) ) ) ; }
Source:
public boolean shouldShowDataCenterAlert ( org.ovirt.engine.core.common.businessentities.StoragePool selectedDataCenter ) { return ( ( selectedDataCenter != null ) && ( ! ( getModel ( ) . UnassignedDataCenterId.equals ( selectedDataCenter.getId ( ) ) ) ) ) && ( ! ( isImportDataDomainEnabled ( selectedDataCenter ) ) ) ; }

Target:
public boolean shouldShowDataCenterAlert ( org.ovirt.engine.core.common.businessentities.StoragePool selectedDataCenter ) { return ( ( selectedDataCenter != null ) && ( ! ( StorageModel.UnassignedDataCenterId.equals ( selectedDataCenter.getId ( ) ) ) ) ) && ( ! ( isImportDataDomainEnabled ( selectedDataCenter ) ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > getAll ( ) { throw new org.apache.commons.lang.NotImplementedException ( ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > getAll ( ) { throw new java.lang.UnsupportedOperationException ( ) ; }
Source:
public void stop ( ) { if ( ( thread ) != null ) { while ( true ) { try { thread.join ( ) ; break ; } catch ( java.lang.InterruptedException e ) { } } thread = null ; } }

Target:
public void stop ( ) { if ( ( thread ) != null ) { while ( true ) { try { thread.join ( ) ; break ; } catch ( java.lang.InterruptedException ignore ) { } } thread = null ; } }
Source:
public void versionDecreaseWithHost ( ) { createCommandWithOlderVersion ( true , false ) ; setupCpu ( ) ; vdsExist ( ) ; validateFailedWithReason ( EngineMessage.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION ) ; }

Target:
public void versionDecreaseWithHost ( ) { createCommandWithOlderVersion ( true , false ) ; setupCpu ( ) ; vdsExist ( ) ; validateFailedWithReason ( EngineMessage.ACTION_TYPE_FAILED_CANNOT_DECREASE_CLUSTER_WITH_HOSTS_COMPATIBILITY_VERSION ) ; }