auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void postDataCenterWithClusterSelectedItemChanged ( ) { updateDefaultHost ( ) ; updateNumOfSockets ( ) ; updateQuotaByCluster ( template.getQuotaId ( ) , template.getQuotaName ( ) ) ; }

Target:
public void postDataCenterWithClusterSelectedItemChanged ( ) { updateDefaultHost ( ) ; updateNumOfSockets ( ) ; updateQuotaByCluster ( template.getQuotaId ( ) , template.getQuotaName ( ) ) ; updateMemoryBalloon ( ) ; }
Source:
public java.lang.String getMenuItemToolTip ( ) { return null ; }

Target:
public com.google.gwt.safehtml.shared.SafeHtml getMenuItemTooltip ( ) { return null ; }
Source:
public java.lang.String encode ( org.ovirt.engineextensions.aaa.ldap.ASN1OctetString value , org.ovirt.engineextensions.aaa.ldap.MapProperties props ) { return doPattern ( value.stringValue ( ) , props , "encode" ) ; }

Target:
public java.lang.String encode ( com.unboundid.asn1.ASN1OctetString value , org.ovirt.engineextensions.aaa.ldap.MapProperties props ) { return doPattern ( value.stringValue ( ) , props , "encode" ) ; }
Source:
public void externalNetworkIsNewInDataCenter ( ) { externalNetworkNewInDataCenterTestSetup ( false ) ; org.junit.Assert.assertThat ( validator.externalNetworkNewInDataCenter ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void externalNetworkIsNewInDataCenter ( ) { externalNetworkNewInDataCenterTestSetup ( false ) ; org.hamcrest.MatcherAssert.assertThat ( validator.externalNetworkNewInDataCenter ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void formatStringTest ( ) { testMessages.addFallback ( DynamicMessageKey.APPLICATION_TITLE , "Testing 123: {0}" ) ; java.lang.String result = testMessages.formatString ( DynamicMessageKey.APPLICATION_TITLE , "1.1.1" ) ; org.junit.Assert.assertEquals ( "Testing 123: 1.1.1" , result ) ; }

Target:
public void formatStringTest ( ) { testMessages.addFallback ( DynamicMessageKey.APPLICATION_TITLE , "Testing 123: {0}" ) ; java.lang.String result = testMessages.formatString ( DynamicMessageKey.APPLICATION_TITLE , "1.1.1" ) ; org.junit.jupiter.api.Assertions.assertEquals ( "Testing 123: 1.1.1" , result ) ; }
Source:
public java.util.Date getGuestLastLogoutTime ( ) { return this . vmDynamic.getGuestLastLogoutTime ( ) ; }

Target:
public java.lang.String getHibernationVolHandle ( ) { return hibernationVolHandle ; }
Source:
public org.ovirt.engine.core.common.queries.VdcQueryReturnValue runQuery ( org.ovirt.engine.core.common.queries.VdcQueryType queryType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase queryParams ) { org.ovirt.engine.core.common.interfaces.BackendLocal backend = getBackend ( ) ; setCorrelationId ( queryParams ) ; queryParams.setFiltered ( isFiltered ( ) ) ; return backend.runQuery ( queryType , sessionize ( queryParams ) ) ; }

Target:
public org.ovirt.engine.core.common.queries.QueryReturnValue runQuery ( org.ovirt.engine.core.common.queries.QueryType queryType , org.ovirt.engine.core.common.queries.QueryParametersBase queryParams ) { org.ovirt.engine.core.common.interfaces.BackendLocal backend = getBackend ( ) ; setCorrelationId ( queryParams ) ; queryParams.setFiltered ( isFiltered ( ) ) ; return backend.runQuery ( queryType , sessionize ( queryParams ) ) ; }
Source:
public void setVmPauseStatus ( org.ovirt.engine.core.common.businessentities.VmPauseStatus aPauseStatus ) { this . mVmDynamic.setPauseStatus ( aPauseStatus ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getId ( ) { return this . vmStatic.getId ( ) ; }
Source:
private void init ( ) { attributes = new org.asciidoctor.Attributes ( ) ; attributes.setSourceHighlighter ( "highlightjs" ) ; }

Target:
private void init ( ) { attributes = new org.asciidoctor.Attributes ( ) ; attributes.setSourceHighlighter ( "highlightjs" ) ; separator = "/" ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VDSGroup getEntity ( int index ) { return org.ovirt.engine.api.restapi.resource.BackendClustersResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.core.common.businessentities.VDSGroup.class ) , index ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.Cluster getEntity ( int index ) { return org.ovirt.engine.api.restapi.resource.BackendClustersResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.core.common.businessentities.Cluster.class ) , index ) ; }
Source:
public static java.lang.Object populate ( java.lang.Class < ? > clz ) { return org.ovirt.engine.api.restapi.types.MappingTestHelper.populate ( org.ovirt.engine.api.restapi.types.MappingTestHelper.instantiate ( clz ) , clz , new java.util.ArrayList < java.lang.Class < ? > > ( ) ) ; }

Target:
public static java.lang.Object populate ( java.lang.Class < ? > clz ) { java.util.List < java.lang.Class < ? > > seen = org.ovirt.engine.api.restapi.types.MappingTestHelper.getSetMethodTypes ( clz ) ; return org.ovirt.engine.api.restapi.types.MappingTestHelper.populate ( org.ovirt.engine.api.restapi.types.MappingTestHelper.instantiate ( clz ) , clz , seen , 1 ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult interfaceByNameExists ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.HOST_NETWORK_INTERFACE_NOT_EXIST ) . when ( ( ( ( iface ) == null ) || ( ( iface.getName ( ) ) == null ) ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult interfaceExists ( org.ovirt.engine.core.compat.Guid nicId ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.HOST_NETWORK_INTERFACE_HAVING_ID_DOES_NOT_EXIST , org.ovirt.engine.core.utils.ReplacementUtils.createSetVariableString ( org.ovirt.engine.core.bll.validator.HostInterfaceValidator.VAR_NIC_ID , nicId ) ) . when ( ( ( iface ) == null ) ) ; }
Source:
private boolean updateFloppyListFromVDSM ( org.ovirt.engine.core.compat.Guid repoStoragePoolId , org.ovirt.engine.core.compat.Guid repoStorageDomainId ) { org.ovirt.engine.core.common.vdscommands.VDSReturnValue fileStats = getFileStats ( repoStoragePoolId , repoStorageDomainId , org.ovirt.engine.core.bll.IsoDomainListSyncronizer.FLOPPY_FILE_PATTERN , VDSCommandType.GetFloppyList ) ; return refreshVdsmFileList ( repoStoragePoolId , repoStorageDomainId , null , ImageFileType.Floppy , fileStats ) ; }

Target:
private boolean updateFloppyListFromVDSM ( org.ovirt.engine.core.compat.Guid repoStoragePoolId , org.ovirt.engine.core.compat.Guid repoStorageDomainId ) { org.ovirt.engine.core.common.vdscommands.VDSReturnValue fileStats = getFileStats ( repoStoragePoolId , repoStorageDomainId , org.ovirt.engine.core.bll.IsoDomainListSyncronizer.FLOPPY_FILE_PATTERN , VDSCommandType.GetFloppyList ) ; return refreshVdsmFileList ( repoStoragePoolId , repoStorageDomainId , null , ImageFileType.Floppy , fileStatsFromVDSReturnValue ( fileStats ) ) ; }
Source:
public org.ovirt.engine.api.resource.PermissionResource getPermissionSubResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendPermissionResource ( id , this , suggestedParentType ) ) ; }

Target:
public org.ovirt.engine.api.resource.PermissionResource getPermissionResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendPermissionResource ( id , this , suggestedParentType ) ) ; }
Source:
public void setFeedbackText ( java.lang.String feedbackText ) { feedbackImagePanel.setVisible ( true ) ; feedbackImageLabel.setText ( feedbackText ) ; }

Target:
public void setFeedbackText ( java.lang.String feedbackText , java.lang.String feedbackTitle ) { feedbackImagePanel.setVisible ( true ) ; feedbackImageLabel.setText ( feedbackText ) ; if ( feedbackTitle != null ) { feedbackImageLabel.setTitle ( feedbackTitle ) ; } }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.gin.ClientGinjector ginjector ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( ginjector.getApplicationConstants ( ) . virtualMachineMainTabLabel ( ) , 6 , ginjector.getMainTabVirtualMachineModelProvider ( ) ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.MainModelProvider < org.ovirt.engine.core.common.businessentities.VM , org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.virtualMachineMainTabLabel ( ) , 6 , modelProvider ) ; }
Source:
protected boolean isCpuUpdatable ( org.ovirt.engine.core.common.businessentities.VDSGroup cluster ) { return org.ovirt.engine.core.bll.CpuFlagsManagerHandler.isCpuUpdatable ( cluster.getcpu_name ( ) , cluster.getcompatibility_version ( ) ) ; }

Target:
protected boolean isCpuUpdatable ( org.ovirt.engine.core.common.businessentities.VDSGroup cluster ) { return org.ovirt.engine.core.bll.CpuFlagsManagerHandler.isCpuUpdatable ( cluster.getCpuName ( ) , cluster.getCompatibilityVersion ( ) ) ; }
Source:
public void updateBricksStatuses ( org.ovirt.engine.core.compat.Guid volumeId , org.ovirt.engine.core.common.businessentities.gluster.GlusterStatus newStatus ) { for ( org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity brick : getGlusterBrickDao ( ) . getBricksOfVolume ( volumeId ) ) { getGlusterBrickDao ( ) . updateBrickStatus ( brick.getId ( ) , newStatus ) ; } }

Target:
public void updateBricksStatuses ( org.ovirt.engine.core.compat.Guid volumeId , org.ovirt.engine.core.common.businessentities.gluster.GlusterStatus newStatus ) { for ( org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity brick : glusterBrickDao.getBricksOfVolume ( volumeId ) ) { glusterBrickDao.updateBrickStatus ( brick.getId ( ) , newStatus ) ; } }
Source:
private java.util.List < T > cast ( T t ) { java.util.List < T > ret = new java.util.ArrayList < T > ( ) ; ret.add ( t ) ; return ret ; }

Target:
protected boolean isEnabled ( T value ) { org.ovirt.engine.ui.uicommonweb.UICommand command = resolveCommand ( value ) ; return command != null ? command.getIsExecutionAllowed ( ) : false ; }
Source:
public void setSession ( org.ovirt.engine.core.common.businessentities.SessionState value ) { this . vmDynamic.setsession ( value ) ; }

Target:
public java.lang.Boolean getAcpiEnable ( ) { return this . vmDynamic.getAcpiEnable ( ) ; }
Source:
public void testAlreadyExistStorageDomain ( ) { org.mockito.Mockito.when ( storageDomainStaticDao.get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( parameters.getStorageDomain ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_STORAGE_DOMAIN_ALREADY_EXIST ) ; }

Target:
public void testAlreadyExistStorageDomain ( ) { org.mockito.Mockito.when ( storageDomainStaticDao.get ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( parameters.getStorageDomain ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_STORAGE_DOMAIN_ALREADY_EXIST ) ; }
Source:
public static boolean IsUserAttachedToTag ( org.ovirt.engine.core.bll.Guid tagId , org.ovirt.engine.core.bll.Guid userId ) { return ( org.ovirt.engine.core.bll.DbFacade.getInstance ( ) . getTagDAO ( ) . getAllForUsersWithIds ( org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . GetTagIdAndChildrenIds ( tagId ) ) . size ( ) ) != 0 ; }

Target:
public static boolean IsUserAttachedToTag ( org.ovirt.engine.core.bll.Guid tagId , org.ovirt.engine.core.bll.Guid userId ) { return ( org.ovirt.engine.core.bll.DbFacade.getInstance ( ) . getTagDao ( ) . getAllForUsersWithIds ( org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . GetTagIdAndChildrenIds ( tagId ) ) . size ( ) ) != 0 ; }
Source:
public void testGetNotFound ( ) { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetDomainExpectations ( StorageType.NFS , false ) ; try { resource.get ( ) ; org.junit.jupiter.api.Assertions.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testGetNotFound ( ) { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetDomainExpectations ( StorageType.NFS , false ) ; verifyNotFoundException ( org.junit.jupiter.api.Assertions.assertThrows ( javax.ws.rs.WebApplicationException.class , ( ) -> org.ovirt.engine.api.restapi.resource.resource.get ( ) ) ) ; }
Source:
public void onMouseOut ( com.google.gwt.event.dom.client.MouseOutEvent event ) { setWidget ( infoImage ) ; infoPanel.hide ( true ) ; }

Target:
protected void onTooltipSourceMouseOut ( ) { this . setWidget ( infoImage ) ; }
Source:
public static java.lang.String map ( org.ovirt.engine.api.restapi.types.openstack.LibvirtSecretUsageType usageType , java.lang.String template ) { switch ( usageType ) { case CEPH : return OpenstackVolumeAuthenticationKeyUsageType.CEPH.value ( ) ; default : return null ; } }

Target:
public static org.ovirt.engine.api.model.OpenstackVolumeAuthenticationKeyUsageType map ( org.ovirt.engine.api.restapi.types.openstack.LibvirtSecretUsageType usageType , org.ovirt.engine.api.model.OpenstackVolumeAuthenticationKeyUsageType template ) { switch ( usageType ) { case CEPH : return org.ovirt.engine.api.model.OpenstackVolumeAuthenticationKeyUsageType.CEPH ; default : return null ; } }
Source:
protected void syncSearch ( ) { org.ovirt.engine.core.common.queries.SearchParameters tempVar = new org.ovirt.engine.core.common.queries.SearchParameters ( getSearchString ( ) , org.ovirt.engine.core.common.interfaces.SearchType.Network , isCaseSensitiveSearch ( ) ) ; tempVar.setMaxCount ( getSearchPageSize ( ) ) ; super . syncSearch ( VdcQueryType.Search , tempVar ) ; }

Target:
protected void syncSearch ( ) { org.ovirt.engine.core.common.queries.SearchParameters tempVar = new org.ovirt.engine.core.common.queries.SearchParameters ( applySortOptions ( getSearchString ( ) ) , org.ovirt.engine.core.common.interfaces.SearchType.Network , isCaseSensitiveSearch ( ) ) ; tempVar.setMaxCount ( getSearchPageSize ( ) ) ; super . syncSearch ( VdcQueryType.Search , tempVar ) ; }
Source:
public void activeDisallowed ( ) { testExecution ( StorageDomainStatus.Active ) ; canDoActionFails ( ) ; hasIllegalStatusMessage ( ) ; }

Target:
public void activeDisallowed ( ) { testExecution ( StorageDomainStatus.Active ) ; testActionDisallowed ( ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface , org.ovirt.engine.core.common.businessentities.VM > , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkListModel , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkVmListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.network.SubTabNetworkVmPresenter.constants.networkVmSubTabLabel ( ) , 5 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( ) { return new org.ovirt.engine.ui.common.uicommon.model.GroupedTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.network.SubTabNetworkVmPresenter.constants.networkVmSubTabLabel ( ) , 5 ) ; }
Source:
public void validateInvalidStorageType ( ) { org.mockito.Mockito.doReturn ( true ) . when ( command ) . validateVds ( ) ; org.mockito.Mockito.doReturn ( false ) . when ( command ) . validateStorageTypeOfStorageDomainsToSync ( ) ; org.junit.Assert.assertFalse ( command.validate ( ) ) ; }

Target:
public void validateInvalidStorageType ( ) { org.mockito.Mockito.doReturn ( true ) . when ( command ) . validateVds ( ) ; org.mockito.Mockito.doReturn ( false ) . when ( command ) . validateStorageTypeOfStorageDomainsToSync ( ) ; org.junit.jupiter.api.Assertions.assertFalse ( command.validate ( ) ) ; }
Source:
public void setup ( ) { org.mockito.Mockito.doReturn ( providerDao ) . when ( validator ) . getProviderDao ( ) ; }

Target:
public void setup ( ) { injectorRule.bind ( org.ovirt.engine.core.dao.provider.ProviderDao.class , providerDao ) ; }
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.VDSGroup > ( ) ; } return source ; }

Target:
public org.ovirt.engine.core.common.businessentities.ArchitectureType convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return ( ( org.ovirt.engine.core.common.businessentities.ArchitectureType ) ( source ) ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledLegacyPolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; usb.setType ( "legacy" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE , null ) , UsbPolicy.ENABLED_LEGACY ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotDisabledLegacyPolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; usb.setType ( "legacy" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED ) , UsbPolicy.DISABLED ) ; }
Source:
public void testGetCascadingResource_missingKey ( ) { org.junit.Assert.assertNull ( "getCascadingResource not using resources.properties properly" , testTheme.getCascadingResource ( "this_is_not_a_valid_key" ) ) ; }

Target:
public void testGetCascadingResourceMissingKey ( ) { org.junit.Assert.assertNull ( "getCascadingResource not using resources.properties properly" , testTheme.getCascadingResource ( "this_is_not_a_valid_key" ) ) ; }
Source:
private java.lang.String buildStatusUrl ( java.lang.String url ) { int index = url.lastIndexOf ( "/" ) ; return ( url.substring ( 0 , ( index + 1 ) ) ) + "Status" ; }

Target:
protected void onReveal ( ) { super . onReveal ( ) ; getModel ( ) . updateReportsAvailability ( ) ; }
Source:
public void vnicProfileNull ( ) { validator = new org.ovirt.engine.core.bll.validator.VnicProfileValidator ( null ) ; org.junit.Assert.assertThat ( validator.vnicProfileIsSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_VNIC_PROFILE_NOT_EXISTS ) ) ; }

Target:
public void vnicProfileSet ( ) { org.hamcrest.MatcherAssert.assertThat ( validator.vnicProfileIsSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
protected boolean validateUniqueVmName ( ) { return org.ovirt.engine.core.bll.VmHandler.isVmWithSameNameExistStatic ( org.ovirt.engine.core.bll.ImportVmCommandBase.getVm ( ) . getName ( ) , org.ovirt.engine.core.bll.ImportVmCommandBase.getStoragePoolId ( ) ) ? failCanDoAction ( EngineMessage.VM_CANNOT_IMPORT_VM_NAME_EXISTS ) : true ; }

Target:
protected org.ovirt.engine.core.compat.Version getEffectiveCompatibilityVersion ( ) { return effectiveCompatibilityVersion ; }
Source:
public org.ovirt.engine.api.model.StorageDomains list ( ) { return mapCollection ( getBackendCollection ( SearchType.StorageDomain ) ) ; }

Target:
public org.ovirt.engine.api.model.StorageDomains list ( ) { if ( isFiltered ( ) ) return mapCollection ( getBackendCollection ( VdcQueryType.GetAllStorageDomains , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ) ; else return mapCollection ( getBackendCollection ( SearchType.StorageDomain ) ) ; }
Source:
private void testManagementNetworkUnset ( boolean managementBefore , boolean managementAfter , org.hamcrest.Matcher < org.ovirt.engine.core.bll.ValidationResult > expectedResult ) { oldNetworkCluster.setManagement ( managementBefore ) ; networkCluster.setManagement ( managementAfter ) ; org.junit.Assert.assertThat ( validator.managementNetworkUnset ( ) , expectedResult ) ; }

Target:
private void testManagementNetworkUnset ( boolean managementBefore , boolean managementAfter , org.hamcrest.Matcher < org.ovirt.engine.core.bll.ValidationResult > expectedResult ) { oldNetworkCluster.setManagement ( managementBefore ) ; networkCluster.setManagement ( managementAfter ) ; org.hamcrest.MatcherAssert.assertThat ( validator.managementNetworkUnset ( ) , expectedResult ) ; }
Source:
public void testGetVdsInterfacesByNetworkId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > result = dao.getVdsInterfacesByNetworkId ( FixturesTool.NETWORK_ENGINE ) ; org.junit.Assert.assertEquals ( existingVdsInterface , result.get ( 0 ) ) ; }

Target:
public void testGetVdsInterfacesByNetworkId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > result = dao.getVdsInterfacesByNetworkId ( FixturesTool.NETWORK_ENGINE ) ; org.junit.jupiter.api.Assertions.assertEquals ( existingVdsInterface , result.get ( 0 ) ) ; }
Source:
protected void executeCommandAsynchronously ( ) { throw new org.apache.commons.lang.NotImplementedException ( ( ( this . getClass ( ) . getName ( ) ) + " does not provide setAsyncResult implementation" ) ) ; }

Target:
protected void executeCommandAsynchronously ( ) { throw new java.lang.UnsupportedOperationException ( ( ( this . getClass ( ) . getName ( ) ) + " does not provide setAsyncResult implementation" ) ) ; }
Source:
public void testDeleteByPoolVdsSpmIdMap ( ) { dao.removeByVdsAndStoragePool ( existingEntity.getId ( ) , existingEntity.getStoragePoolId ( ) ) ; org.ovirt.engine.core.common.businessentities.VdsSpmIdMap result = dao.get ( existingEntity.getId ( ) ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testDeleteByPoolVdsSpmIdMap ( ) { dao.removeByVdsAndStoragePool ( existingEntity.getId ( ) , existingEntity.getStoragePoolId ( ) ) ; org.ovirt.engine.core.common.businessentities.VdsSpmIdMap result = dao.get ( existingEntity.getId ( ) ) ; org.junit.jupiter.api.Assertions.assertNull ( result ) ; }
Source:
public void validateCantUploadToNonActiveDomain ( ) { initializeSuppliedImage ( ) ; org.mockito.Mockito.doReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_STORAGE_DOMAIN_STATUS_ILLEGAL2 , "" ) ) . when ( storageDomainValidator ) . isDomainExistAndActive ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( "Can't start a transfer to a non-active storage domain." , getCommand ( ) , EngineMessage.ACTION_TYPE_FAILED_STORAGE_DOMAIN_STATUS_ILLEGAL2 ) ; }

Target:
public void validateCantUploadToNonActiveDomain ( ) { initializeSuppliedImage ( ) ; org.mockito.Mockito.doReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_STORAGE_DOMAIN_STATUS_ILLEGAL2 , "" ) ) . when ( storageDomainValidator ) . isDomainExistAndActive ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( "Can't start a transfer to a non-active storage domain." , transferImageCommand , EngineMessage.ACTION_TYPE_FAILED_STORAGE_DOMAIN_STATUS_ILLEGAL2 ) ; }
Source:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > result = dao.getAll ( ) ; assertCorrectGetAllResult ( result ) ; }

Target:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > result = dao.getAll ( ) ; assertCorrectGetAllResult ( result ) ; }
Source:
private static void getIrsImageList ( org.ovirt.engine.ui.frontend.AsyncQuery < java.util.List < java.lang.String > > aQuery , org.ovirt.engine.core.compat.Guid storagePoolId , boolean forceRefresh , org.ovirt.engine.core.common.businessentities.storage.ImageFileType imageFileType ) { org.ovirt.engine.ui.uicommonweb.dataprovider.ImagesDataProvider.getIrsImageList ( aQuery , storagePoolId , forceRefresh , imageFileType , new org.ovirt.engine.ui.uicommonweb.dataprovider.ImagesDataProvider.RepoImageToImageFileNameAsyncConverter ( ) ) ; }

Target:
public static void getISOImagesList ( org.ovirt.engine.ui.frontend.AsyncQuery < java.util.List < org.ovirt.engine.core.common.businessentities.storage.RepoImage > > aQuery , org.ovirt.engine.core.compat.Guid storagePoolId , boolean forceRefresh ) { org.ovirt.engine.ui.uicommonweb.dataprovider.ImagesDataProvider.getIrsImageList ( aQuery , storagePoolId , forceRefresh , ImageFileType.ISO , new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.ListConverter ( ) ) ; }
Source:
public void MarkAllWithAttemptingEndAction ( ) { synchronized ( _listTasks ) { java.util.ArrayList < org.ovirt.engine.core.bll.EntityAsyncTask > CurrentActionTypeTasks = getCurrentTasks ( ) ; for ( org.ovirt.engine.core.bll.EntityAsyncTask task : CurrentActionTypeTasks ) { task.setState ( AsyncTaskState.AttemptingEndAction ) ; } } }

Target:
public void MarkAllWithAttemptingEndAction ( ) { synchronized ( _listTasks ) { java.util.ArrayList < org.ovirt.engine.core.bll.CommandAsyncTask > CurrentActionTypeTasks = getCurrentTasks ( ) ; for ( org.ovirt.engine.core.bll.CommandAsyncTask task : CurrentActionTypeTasks ) { task.setState ( AsyncTaskState.AttemptingEndAction ) ; } } }
Source:
private java.lang.String getUPN ( org.ovirt.engine.core.common.businessentities.DbUser user ) { java.lang.String retVal = user.getLoginName ( ) ; if ( ! ( retVal.contains ( "@" ) ) ) { retVal = ( retVal + "@" ) + ( user.getDomain ( ) ) ; } return retVal ; }

Target:
private java.lang.String getUPN ( org.ovirt.engine.core.common.businessentities.aaa.DbUser user ) { java.lang.String retVal = user.getLoginName ( ) ; if ( ! ( retVal.contains ( "@" ) ) ) { retVal = ( retVal + "@" ) + ( user.getDomain ( ) ) ; } return retVal ; }
Source:
protected boolean prepareFailureMessageForDomains ( java.lang.String domainNames ) { org.ovirt.engine.core.bll.storage.connection.RemoveStorageServerConnectionCommand.addCanDoActionMessageVariable ( "domainNames" , domainNames ) ; return failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_STORAGE_CONNECTION_BELONGS_TO_SEVERAL_STORAGE_DOMAINS ) ; }

Target:
protected boolean prepareFailureMessageForDomains ( java.lang.String domainNames ) { org.ovirt.engine.core.bll.storage.connection.RemoveStorageServerConnectionCommand.addValidationMessageVariable ( "domainNames" , domainNames ) ; return failValidation ( EngineMessage.ACTION_TYPE_FAILED_STORAGE_CONNECTION_BELONGS_TO_SEVERAL_STORAGE_DOMAINS ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.StorageDomain mockFirstStorageDomain ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain = new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ; storageDomain.setStatus ( StorageDomainStatus.Active ) ; storageDomain.setId ( firstStorageDomainId ) ; storageDomain.setStorageDomainType ( StorageDomainType.Data ) ; return storageDomain ; }

Target:
private org.ovirt.engine.core.common.businessentities.StorageDomain mockDomain ( org.ovirt.engine.core.compat.Guid id ) { org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain = new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ; storageDomain.setStatus ( StorageDomainStatus.Active ) ; storageDomain.setId ( id ) ; storageDomain.setStorageDomainType ( StorageDomainType.Data ) ; return storageDomain ; }
Source:
public void hasDomains ( ) { org.mockito.Mockito.when ( sdDao.getAllForStoragePool ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( java.util.Collections.singletonList ( new org.ovirt.engine.core.common.businessentities.StorageDomainStatic ( ) ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ERROR_CANNOT_CHANGE_STORAGE_POOL_TYPE_WITH_DOMAINS ) ; }

Target:
public void hasDomains ( ) { org.mockito.Mockito.when ( sdDao.getAllForStoragePool ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( java.util.Collections.singletonList ( new org.ovirt.engine.core.common.businessentities.StorageDomainStatic ( ) ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ERROR_CANNOT_CHANGE_STORAGE_POOL_TYPE_WITH_DOMAINS ) ; }
Source:
public void testSaveUserWithTooManyGroups ( ) { org.ovirt.engine.core.common.businessentities.DbUser tooManyGroupsUser = new org.ovirt.engine.core.common.businessentities.DbUser ( ) ; tooManyGroupsUser.setExternalId ( new byte [ 0 ] ) ; tooManyGroupsUser.setFirstName ( "I" ) ; tooManyGroupsUser.setLastName ( "Have" ) ; tooManyGroupsUser.setLoginName ( "too" ) ; tooManyGroupsUser.setEmail ( "many@redhat.com" ) ; tooManyGroupsUser.setDomain ( "domain" ) ; tooManyGroupsUser.setGroupNames ( "groups" ) ; tooManyGroupsUser.setGroupIds ( org.apache.commons.lang.StringUtils.leftPad ( "groups" , 2048 ) ) ; dao.save ( tooManyGroupsUser ) ; org.ovirt.engine.core.common.businessentities.DbUser result = dao.getByUsername ( tooManyGroupsUser.getLoginName ( ) ) ; org.junit.Assert.assertEquals ( tooManyGroupsUser , result ) ; }

Target:
public void testSaveUserWithTooManyGroups ( ) { org.ovirt.engine.core.common.businessentities.DbUser tooManyGroupsUser = new org.ovirt.engine.core.common.businessentities.DbUser ( ) ; tooManyGroupsUser.setExternalId ( new org.ovirt.engine.core.common.utils.ExternalId ( 0 ) ) ; tooManyGroupsUser.setFirstName ( "I" ) ; tooManyGroupsUser.setLastName ( "Have" ) ; tooManyGroupsUser.setLoginName ( "too" ) ; tooManyGroupsUser.setEmail ( "many@redhat.com" ) ; tooManyGroupsUser.setDomain ( "domain" ) ; tooManyGroupsUser.setGroupNames ( "groups" ) ; tooManyGroupsUser.setGroupIds ( org.apache.commons.lang.StringUtils.leftPad ( "groups" , 2048 ) ) ; dao.save ( tooManyGroupsUser ) ; org.ovirt.engine.core.common.businessentities.DbUser result = dao.getByUsername ( tooManyGroupsUser.getLoginName ( ) ) ; org.junit.Assert.assertEquals ( tooManyGroupsUser , result ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object result ) { populateDomains ( ( ( java.util.List < java.lang.String > ) ( result ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object result ) { populateProfiles ( ( ( java.util.List < org.ovirt.engine.core.aaa.ProfileEntry > ) ( result ) ) ) ; }
Source:
public void testNewStorageTypes ( ) { org.junit.Assert.assertTrue ( ( "A storage type was added/removed. Update this test, and the isFileDomain/isBlockDomain " + "method accordingly" ) , ( ( org.ovirt.engine.core.common.businessentities.StorageType.values ( ) . length ) == 8 ) ) ; }

Target:
public void testNewStorageTypes ( ) { org.junit.Assert.assertTrue ( ( "A storage type was added/removed. Update this test, and the isFileDomain/isBlockDomain " + "method accordingly" ) , ( ( org.ovirt.engine.core.common.businessentities.storage.StorageType.values ( ) . length ) == 8 ) ) ; }
Source:
private static org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator mockStorageDomainValidatorWithSpace ( ) { org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator storageDomainValidator = org.ovirt.engine.core.bll.storage.disk.MoveOrCopyDiskCommandTest.mockStorageDomainValidator ( ) ; org.mockito.Mockito.when ( storageDomainValidator.hasSpaceForDiskWithSnapshots ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.storage.DiskImage.class ) ) ) . thenReturn ( ValidationResult.VALID ) ; return storageDomainValidator ; }

Target:
private static org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator mockStorageDomainValidatorWithSpace ( ) { org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator storageDomainValidator = org.ovirt.engine.core.bll.storage.disk.MoveOrCopyDiskCommandTest.mockStorageDomainValidator ( ) ; org.mockito.Mockito.when ( storageDomainValidator.hasSpaceForDiskWithSnapshots ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.common.businessentities.storage.DiskImage.class ) ) ) . thenReturn ( ValidationResult.VALID ) ; return storageDomainValidator ; }
Source:
public java.lang.String getDestinationStorageDomainName ( ) { return org.ovirt.engine.core.bll.storage.repoimage.ExportRepoImageCommand.getStorageDomainDao ( ) . get ( org.ovirt.engine.core.bll.storage.repoimage.ExportRepoImageCommand.getParameters ( ) . getDestinationDomainId ( ) ) . getName ( ) ; }

Target:
public java.lang.String getDestinationStorageDomainName ( ) { return storageDomainDao.get ( org.ovirt.engine.core.bll.storage.repoimage.ExportRepoImageCommand.getParameters ( ) . getDestinationDomainId ( ) ) . getName ( ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getGlusterBrickDao ( ) ; server = dbFacade.getVdsStaticDao ( ) . get ( org.ovirt.engine.core.dao.gluster.GlusterBrickDaoTest.SERVER_ID ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getGlusterBrickDao ( ) ; server = dbFacade.getVdsStaticDao ( ) . get ( FixturesTool.GLUSTER_SERVER_UUID3 ) ; }
Source:
public void getClusterWithId ( ) { b.setClusterId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; final org.ovirt.engine.core.common.businessentities.Cluster g = b.getCluster ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID , g.getId ( ) ) ; }

Target:
public void getClusterWithId ( ) { b.setClusterId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; final org.ovirt.engine.core.common.businessentities.Cluster g = b.getCluster ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID , g.getId ( ) ) ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.bookmarks.BookmarkListModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.bookmarks.BookmarkListModel ) ( result.getState ( ) ) ) ; localModel.PostOnSave ( result.getReturnValue ( ) ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.bookmarks.BookmarkListModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.bookmarks.BookmarkListModel ) ( result.getState ( ) ) ) ; localModel.postOnSave ( result.getReturnValue ( ) ) ; }
Source:
private static void handleNotLoggedInEvent ( java.lang.String errorMessage ) { if ( ( errorMessage != null ) && ( errorMessage.equals ( "USER_IS_NOT_LOGGED_IN" ) ) ) { org.ovirt.engine.ui.frontend.Frontend.frontendNotLoggedInEvent.raise ( org.ovirt.engine.ui.frontend.Frontend.class , EventArgs.Empty ) ; } }

Target:
private static void handleNotLoggedInEvent ( java.lang.String errorMessage ) { if ( ( errorMessage != null ) && ( errorMessage.equals ( org.ovirt.engine.ui.frontend.Frontend.canDoActionErrorsTranslator.translateErrorTextSingle ( "USER_IS_NOT_LOGGED_IN" , false ) ) ) ) { org.ovirt.engine.ui.frontend.Frontend.frontendNotLoggedInEvent.raise ( org.ovirt.engine.ui.frontend.Frontend.class , EventArgs.Empty ) ; } }
Source:
private static org.ovirt.engine.core.bll.validator.StorageDomainValidator mockStorageDomainValidatorWithSpace ( ) { org.ovirt.engine.core.bll.validator.StorageDomainValidator storageDomainValidator = org.ovirt.engine.core.bll.AddDiskCommandTest.mockStorageDomainValidator ( ) ; org.mockito.Mockito.when ( storageDomainValidator.hasSpaceForNewDisk ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.DiskImage.class ) ) ) . thenReturn ( ValidationResult.VALID ) ; return storageDomainValidator ; }

Target:
private static org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator mockStorageDomainValidatorWithSpace ( ) { org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator storageDomainValidator = org.ovirt.engine.core.bll.AddDiskCommandTest.mockStorageDomainValidator ( ) ; org.mockito.Mockito.when ( storageDomainValidator.hasSpaceForNewDisk ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.DiskImage.class ) ) ) . thenReturn ( ValidationResult.VALID ) ; return storageDomainValidator ; }
Source:
public java.lang.Float clientBrowserVersion ( ) { return org.ovirt.engine.ui.webadmin.uicommon.WebAdminConfigurator.clientAgentType.version ; }

Target:
public java.lang.Float clientBrowserVersion ( ) { return clientAgentType.version ; }
Source:
private boolean mustChangeAddress ( int oldType , int newType ) { int spaprVlanType = VmInterfaceType.spaprVlan.getValue ( ) ; return ( oldType == spaprVlanType ) ^ ( newType == spaprVlanType ) ; }

Target:
private boolean mustChangeAddress ( int oldType , int newType ) { int spaprVlanType = VmInterfaceType.spaprVlan.getValue ( ) ; return wasTypeChangedToOrFromTestedType ( oldType , newType , spaprVlanType ) ; }
Source:
public void setnum_of_monitors ( int value ) { this . mVmStatic.setnum_of_monitors ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "num_of_monitors" ) ) ; }

Target:
public boolean isAutoSuspend ( ) { return this . vmStatic.isAutoSuspend ( ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.DbUser getUserByIdx ( int idx ) { org.ovirt.engine.core.common.businessentities.DbUser user = new org.ovirt.engine.core.common.businessentities.DbUser ( ) ; user.setuser_id ( GUIDS [ idx ] ) ; user.setname ( NAMES [ idx ] ) ; user.setusername ( NAMES [ idx ] ) ; return user ; }

Target:
protected org.ovirt.engine.core.common.businessentities.DbUser getUserByIdx ( int idx ) { org.ovirt.engine.core.common.businessentities.DbUser user = new org.ovirt.engine.core.common.businessentities.DbUser ( ) ; user.setId ( GUIDS [ idx ] ) ; user.setFirstName ( NAMES [ idx ] ) ; user.setLoginName ( NAMES [ idx ] ) ; return user ; }
Source:
public void testGetNegative ( ) { org.ovirt.engine.core.common.scheduling.ClusterPolicy result = dao.get ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , java.util.Collections.emptyMap ( ) ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetNegative ( ) { org.ovirt.engine.core.common.scheduling.ClusterPolicy result = dao.get ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , java.util.Collections.emptyMap ( ) ) ; org.junit.jupiter.api.Assertions.assertNull ( result ) ; }
Source:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.model.StorageConnection storageConnection ) { validateParameters ( storageConnection , "id" ) ; return performAction ( VdcActionType.AttachStorageConnectionToStorageDomain , new org.ovirt.engine.core.common.action.AttachDetachStorageConnectionParameters ( storageDomainId , storageConnection.getId ( ) ) ) ; }

Target:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.model.StorageConnection storageConnection ) { validateParameters ( storageConnection , "id" ) ; return performAction ( ActionType.AttachStorageConnectionToStorageDomain , new org.ovirt.engine.core.common.action.AttachDetachStorageConnectionParameters ( storageDomainId , storageConnection.getId ( ) ) ) ; }
Source:
public java.lang.String getPrincipal ( java.lang.String sessionId ) { return getPrincipalName ( sessionId ) ; }

Target:
public final void setSoftLimitInterval ( java.lang.String sessionId , int softLimitInterval ) { setData ( sessionId , org.ovirt.engine.core.bll.aaa.SessionDataContainer.SOFT_LIMIT_INTERVAL_PARAMETER_NAME , softLimitInterval ) ; }
Source:
private static boolean isBelowPctThreshold ( final org.ovirt.engine.core.common.businessentities.storage_domains domain ) { return ( domain.getStorageDynamicData ( ) . getfreeDiskPercent ( ) ) > ( org.ovirt.engine.core.bll.command.utils.StorageDomainSpaceChecker.getLowDiskPercentThreshold ( ) ) ; }

Target:
private static boolean isEnoughFreePct ( final org.ovirt.engine.core.common.businessentities.storage_domains domain ) { return ( domain.getStorageDynamicData ( ) . getfreeDiskPercent ( ) ) > ( org.ovirt.engine.core.bll.command.utils.StorageDomainSpaceChecker.getLowDiskPercentThreshold ( ) ) ; }
Source:
private void initListBoxEditors ( ) { loadBalanceListEditor = new org.ovirt.engine.ui.common.widget.editor.ListModelListBoxOnlyEditor < org.ovirt.engine.core.common.scheduling.PolicyUnit > ( new org.ovirt.engine.ui.common.widget.renderer.NullSafeRenderer < org.ovirt.engine.core.common.scheduling.PolicyUnit > ( ) { @ java.lang.Override public java.lang.String renderNullSafe ( org.ovirt.engine.core.common.scheduling.PolicyUnit policyUnit ) { return policyUnit.getName ( ) ; } } ) ; }

Target:
private void initListBoxEditors ( ) { loadBalanceListEditor = new org.ovirt.engine.ui.common.widget.editor.ListModelListBoxOnlyEditor ( new org.ovirt.engine.ui.common.widget.renderer.NameRenderer < org.ovirt.engine.core.common.scheduling.PolicyUnit > ( ) ) ; }
Source:
public void passthroughChangedUsedByVms ( ) { passthroughNotChangedIfUsedByVmsTest ( true , false , true ) ; org.junit.Assert.assertThat ( validator.passthroughNotChangedIfUsedByVms ( ) , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.failsWithVnicProfileInUse ( ) ) ; }

Target:
public void passthroughChangedUsedByVms ( ) { passthroughNotChangedIfUsedByVmsTest ( true , false , true ) ; org.hamcrest.MatcherAssert.assertThat ( validator.passthroughNotChangedIfUsedByVms ( ) , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.failsWithVnicProfileInUse ( ) ) ; }
Source:
public void validateSucceeds ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( getVolume ( 2 , false ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertTrue ( cmd.validate ( ) ) ; }

Target:
public void validateSucceedsWithArbiter ( ) { setVolume ( getVolume ( 3 , false , GlusterVolumeType.REPLICATE , 3 , true ) ) ; org.junit.Assert.assertTrue ( cmd.validate ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createVlan ( java.lang.String baseIfaceName , int vlanId , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) , ( ( baseIfaceName + "." ) + vlanId ) , false , null , vlanId , networkName , true ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createVlan ( java.lang.String baseIfaceName , int vlanId , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , ( ( baseIfaceName + "." ) + vlanId ) , false , null , vlanId , networkName , true ) ; }
Source:
public void checkCidrNetworkAddressValidation ( ) { runSetup ( org.ovirt.engine.core.common.validation.CidrConstraintTest.TEST_CIDR , true , false , VdcBllMessages.CIDR_NOT_NETWORK_ADDRESS.name ( ) ) ; runVerify ( org.ovirt.engine.core.common.validation.CidrConstraintTest.TEST_CIDR , VdcBllMessages.CIDR_NOT_NETWORK_ADDRESS.name ( ) ) ; }

Target:
public void checkCidrNetworkAddressValidation ( ) { runSetup ( org.ovirt.engine.core.common.validation.CidrConstraintTest.TEST_CIDR , true , false , EngineMessage.CIDR_NOT_NETWORK_ADDRESS.name ( ) ) ; runVerify ( org.ovirt.engine.core.common.validation.CidrConstraintTest.TEST_CIDR , EngineMessage.CIDR_NOT_NETWORK_ADDRESS.name ( ) ) ; }
Source:
private void analyzeHostedEngineVm ( ) { if ( ( ( ( dbVm ) != null ) && ( ( vdsmVm ) != null ) ) && ( ( dbVm.getOrigin ( ) ) == ( org.ovirt.engine.core.common.businessentities.OriginType.HOSTED_ENGINE ) ) ) { hostedEngineUnmanaged = true ; } }

Target:
public org.ovirt.engine.core.common.businessentities.VmDynamic getVmDynamicToSave ( ) { return vmDynamicToSave ; }
Source:
public void setVmPauseStatus ( org.ovirt.engine.core.common.businessentities.VmPauseStatus aPauseStatus ) { this . mVmDynamic.setPauseStatus ( aPauseStatus ) ; }

Target:
public void setVmPauseStatus ( org.ovirt.engine.core.common.businessentities.VmPauseStatus aPauseStatus ) { this . vmDynamic.setPauseStatus ( aPauseStatus ) ; }
Source:
protected void executeVdsBrokerCommand ( ) { vmReturn = org.ovirt.engine.core.vdsbroker.vdsbroker.CreateBrokerVDSCommand.getBroker ( ) . create ( createInfo ( ) ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.CreateBrokerVDSCommand.proceedProxyReturnValue ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.updateVMDynamicData ( vm.getDynamicData ( ) , vmReturn.vm , org.ovirt.engine.core.vdsbroker.vdsbroker.CreateBrokerVDSCommand.getVds ( ) ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { vmReturn = org.ovirt.engine.core.vdsbroker.vdsbroker.CreateBrokerVDSCommand.getBroker ( ) . create ( createInfo ( ) ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.CreateBrokerVDSCommand.proceedProxyReturnValue ( ) ; vdsBrokerObjectsBuilder.updateVMDynamicData ( vm.getDynamicData ( ) , vmReturn.vm , org.ovirt.engine.core.vdsbroker.vdsbroker.CreateBrokerVDSCommand.getVds ( ) ) ; }
Source:
protected void ItemsCollectionChanged ( java.lang.Object sender , org.ovirt.engine.core.compat.NotifyCollectionChangedEventArgs e ) { super . ItemsCollectionChanged ( sender , e ) ; ResetIsEmpty ( ) ; UpdatePagingAvailability ( ) ; }

Target:
protected void ItemsCollectionChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.NotifyCollectionChangedEventArgs e ) { super . ItemsCollectionChanged ( sender , e ) ; ResetIsEmpty ( ) ; UpdatePagingAvailability ( ) ; }
Source:
public void settingSpecificNetworksAllowed ( ) { settingSpecificNetworksAllowedTest ( true ) ; org.junit.Assert.assertThat ( validator.settingSpecificNetworksAllowed ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_CANNOT_SET_SPECIFIC_NETWORKS , java.lang.String.format ( VfsConfigValidator.NIC_NAME_REPLACEMENT , nic.getName ( ) ) ) ) ; }

Target:
public void settingSpecificNetworksAllowed ( ) { settingSpecificNetworksAllowedTest ( true ) ; org.hamcrest.MatcherAssert.assertThat ( validator.settingSpecificNetworksAllowed ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_CANNOT_SET_SPECIFIC_NETWORKS , java.lang.String.format ( VfsConfigValidator.NIC_NAME_REPLACEMENT , nic.getName ( ) ) ) ) ; }
Source:
public java.lang.Integer getUsageCpuPercent ( ) { return this . usage_cpu_percentField ; }

Target:
public void setUsageMemPercent ( java.lang.Integer usageMemPercent ) { this . usageMemPercent = usageMemPercent ; }
Source:
public void ExecuteCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { ProxyUp ( ) ; }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand , java.lang.Object ... parameters ) { updateHosts ( ) ; }
Source:
protected java.lang.String ip ( ) { return "(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)" ; }

Target:
private java.lang.String ipv4 ( ) { return "(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)" ; }
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 moveShareableDisk ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ) ; initSrcStorageDomain ( ) ; initDestStorageDomain ( StorageType.NFS ) ; initVmDiskImage ( true ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( command ) ; }
Source:
public abstract org.ovirt.engine.core.bll.CommandBase < ? > retrieveCommand ( org.ovirt.engine.core.compat.Guid commandId ) ;

Target:
public void removeCommand ( org.ovirt.engine.core.compat.Guid commandId ) ;