auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public java.net.URL getExternalHttpsUrl ( java.lang.String path ) throws java.net.MalformedURLException { return new java.net.URL ( "https" , getHost ( ) , getExternalHttpsPort ( ) , path ) ; }

Target:
public java.net.URL getExternalHttpsUrl ( java.lang.String path ) throws java.net.MalformedURLException { return new java.net.URL ( "https" , getHost ( ) , getExternalHttpsPort ( ) , ( ( getEngineURI ( ) ) + path ) ) ; }
Source:
public void testGetStorageDomainDR ( ) { org.ovirt.engine.core.common.businessentities.StorageDomainDR result = dao.get ( FixturesTool.POSIX_STORAGE_DOMAIN_ID , FixturesTool.GLUSTER_GEOREP_SESSION_ID2 ) ; org.junit.Assert.assertEquals ( storageDomainDR , result ) ; }

Target:
public void testGetStorageDomainDR ( ) { org.ovirt.engine.core.common.businessentities.StorageDomainDR result = dao.get ( FixturesTool.POSIX_STORAGE_DOMAIN_ID , FixturesTool.GLUSTER_GEOREP_SESSION_ID2 ) ; org.junit.jupiter.api.Assertions.assertEquals ( storageDomainDR , result ) ; }
Source:
public void testGetDiskIdByLunId ( ) { org.junit.Assert.assertEquals ( dao.getDiskIdByLunId ( org.ovirt.engine.core.dao.DiskLunMapDaoTest.EXISTING_DISK_LUN_MAP_ID.getLunId ( ) ) , new org.ovirt.engine.core.common.businessentities.DiskLunMap ( org.ovirt.engine.core.dao.DiskLunMapDaoTest.EXISTING_DISK_LUN_MAP_ID.getDiskId ( ) , org.ovirt.engine.core.dao.DiskLunMapDaoTest.EXISTING_DISK_LUN_MAP_ID.getLunId ( ) ) ) ; }

Target:
public void testGetDiskIdByLunId ( ) { org.junit.Assert.assertEquals ( dao.getDiskIdByLunId ( org.ovirt.engine.core.dao.DiskLunMapDaoTest.EXISTING_DISK_LUN_MAP_ID.getLunId ( ) ) , new org.ovirt.engine.core.common.businessentities.storage.DiskLunMap ( org.ovirt.engine.core.dao.DiskLunMapDaoTest.EXISTING_DISK_LUN_MAP_ID.getDiskId ( ) , org.ovirt.engine.core.dao.DiskLunMapDaoTest.EXISTING_DISK_LUN_MAP_ID.getLunId ( ) ) ) ; }
Source:
public java.lang.Integer getdisplay_secure_port ( ) { return this . display_secure_port ; }

Target:
public void setKvmEnable ( java.lang.Boolean value ) { this . kvmEnable = value ; }
Source:
private void setUpMockQueryParameters ( ) { params = org.ovirt.engine.core.bll.AbstractQueryTest.mock ( getParameterType ( ) ) ; }

Target:
private void setUpMockQueryParameters ( ) { params = org.ovirt.engine.core.bll.AbstractQueryTest.mock ( getParameterType ( ) ) ; org.mockito.Mockito.when ( params.getSessionId ( ) ) . thenReturn ( "test" ) ; org.mockito.Mockito.when ( params.getRefresh ( ) ) . thenReturn ( true ) ; }
Source:
public void testStorage ( ) { testValidSql ( "Storage: " , "SELECT * FROM ((SELECT distinct storage_domains_for_search.* FROM storage_domains_for_search ) ORDER BY storage_name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "Storage: datacenter = Default" , "SELECT * FROM ((SELECT distinct storage_domains_for_search.* FROM storage_domains_for_search WHERE Default LIKE ANY(string_to_array(storage_domains_for_search.storage_pool_name::text, ','))) ORDER BY storage_name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "Storage: host.name = fake1" , "SELECT * FROM ((SELECT distinct storage_domains_for_search.* FROM storage_domains_for_search LEFT OUTER JOIN vds_with_tags ON storage_domains_for_search.id=vds_with_tags.storage_id WHERE vds_with_tags.vds_name LIKE fake1 ) ORDER BY storage_name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; }

Target:
public void testStorage ( ) { testValidSql ( "Storage: " , "SELECT * FROM ((SELECT distinct storage_domains_for_search.* FROM storage_domains_for_search ) ORDER BY storage_name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "Storage: datacenter = Default" , "SELECT * FROM ((SELECT distinct storage_domains_for_search.* FROM storage_domains_for_search WHERE Default LIKE ANY(string_to_array(storage_domains_for_search.storage_pool_name::text, ','))) ORDER BY storage_name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "Storage: host.name = fake1" , "SELECT * FROM ((SELECT distinct storage_domains_for_search.* FROM storage_domains_for_search LEFT OUTER JOIN vds_with_tags ON storage_domains_for_search.id=vds_with_tags.storage_id WHERE vds_with_tags.vds_name LIKE fake1 ) ORDER BY storage_name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "Storage: datacenter != Default and datacenter != DC42" , "SELECT * FROM ((SELECT distinct storage_domains_for_search.* FROM storage_domains_for_search WHERE ( NOT Default LIKE ANY(string_to_array(storage_domains_for_search.storage_pool_name::text, ',')) AND NOT DC42 LIKE ANY(string_to_array(storage_domains_for_search.storage_pool_name::text, ',')) )) ORDER BY storage_name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; }
Source:
public void setpm_enabled ( boolean value ) { mVdsStatic.setpm_enabled ( value ) ; }

Target:
public void setPmType ( java.lang.String value ) { mVdsStatic.setPmType ( value ) ; }
Source:
public void testGetFullPath_NonSaneParameter ( ) { java.io.File file = testServlet.getFile ( mockFile , "../something" ) ; org.junit.Assert.assertNull ( "Path should be null" , file ) ; }

Target:
public void testGetFullPathNonSaneParameter ( ) { java.io.File file = testServlet.getFile ( mockFile , "../something" ) ; org.junit.Assert.assertNull ( "Path should be null" , file ) ; }
Source:
public void canDoActionFailsExportOnLocal ( ) { sd.setStorageDomainType ( StorageDomainType.ImportExport ) ; sd.setStorageType ( StorageType.LOCALFS ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_DOMAIN_TYPE_CAN_BE_CREATED_ONLY_ON_SPECIFIC_STORAGE_DOMAINS ) ; }

Target:
public void canDoActionSucceedsExportOnLocal ( ) { sd.setStorageDomainType ( StorageDomainType.ImportExport ) ; sd.setStorageType ( StorageType.LOCALFS ) ; sd.setStorageFormat ( StorageFormatType.V1 ) ; sp.setIsLocal ( true ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionSuccess ( cmd ) ; }
Source:
public void setDeviceInfoText ( java.lang.String raidType ) { deviceSelectionInfo.setText ( ( ( ( "(" + ( org.ovirt.engine.ui.webadmin.section.main.view.popup.gluster.CreateBrickPopupView.constants.getStorageDeviceSelectionInfo ( ) ) ) + raidType ) + ")" ) ) ; }

Target:
public void setRaidInfoMessages ( java.lang.String raidType , int stripeSize ) { deviceSelectionInfo.setText ( org.ovirt.engine.ui.webadmin.section.main.view.popup.gluster.CreateBrickPopupView.applicationMessages.getStorageDeviceSelectionInfo ( raidType ) ) ; this . stripeSizeWithInfo.setExplanation ( org.ovirt.engine.ui.webadmin.section.main.view.popup.gluster.CreateBrickPopupView.templates.italicText ( org.ovirt.engine.ui.webadmin.section.main.view.popup.gluster.CreateBrickPopupView.applicationMessages.stripSizeInfoForGlusterBricks ( stripeSize , raidType ) ) ) ; }
Source:
public void testLogReturnDoesntLogWhenLogLevelInactive ( ) throws java.lang.Exception { org.ovirt.engine.core.utils.log.Log log = org.mockito.Mockito.mock ( org.ovirt.engine.core.utils.log.Log.class ) ; org.ovirt.engine.core.utils.log.LoggedUtils.logReturn ( log , "" , new org.ovirt.engine.core.utils.log.LoggedUtilsTest.LoggedOverridingSubclass ( ) , new java.lang.Object ( ) ) ; org.ovirt.engine.core.utils.log.LoggedUtilsTest.verifyNoLogging ( log ) ; }

Target:
public void testLogReturnDoesntLogWhenLogLevelInactive ( ) throws java.lang.Exception { org.slf4j.Logger log = org.mockito.Mockito.mock ( org.slf4j.Logger.class ) ; org.ovirt.engine.core.utils.log.LoggedUtils.logReturn ( log , "" , new org.ovirt.engine.core.utils.log.LoggedUtilsTest.LoggedOverridingSubclass ( ) , new java.lang.Object ( ) ) ; org.ovirt.engine.core.utils.log.LoggedUtilsTest.verifyNoLogging ( log ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { java.util.Collection < org.ovirt.engine.core.common.businessentities.VDSGroup > clusters = ( ( java.util.Collection < org.ovirt.engine.core.common.businessentities.VDSGroup > ) ( returnValue ) ) ; dcClusters.put ( dcId , clusters ) ; attachNetworkToClusters ( network , clusters ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { network.setId ( ( ( org.ovirt.engine.core.compat.Guid ) ( result.getReturnValue ( ) . getActionReturnValue ( ) ) ) ) ; fetchDcClusters ( dcId , network , externalNetwork.isPublicUse ( ) ) ; }
Source:
public boolean isVirtioScsiEnabledForVm ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.isVirtioScsiControllerAttached ( vmId ) ; }

Target:
public boolean isVirtioScsiEnabledForVm ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.hasVirtioScsiController ( vmId ) ; }
Source:
public void setWidgetColSize ( org.gwtbootstrap3.client.ui.constants.ColumnSize size ) { addContentWidgetContainerStyleName ( size.getCssName ( ) ) ; }

Target:
public void setWidgetColSize ( org.gwtbootstrap3.client.ui.constants.ColumnSize size ) { if ( ( sizeContainer ) != null ) { sizeContainer.addStyleName ( size.getCssName ( ) ) ; } }
Source:
public void testBootProtocolSetForDisplayNetworkWhenIpConfigurationIsNull ( ) { doTestBootProtocolSetForDisplayNetworkWhenNullValuedIpConfigurationAndWhenNetworkClusterDisplay ( true , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_DISPLAY_NETWORK_HAS_NO_BOOT_PROTOCOL ) ) ; }

Target:
public void testBootProtocolSetForDisplayNetworkWhenIpConfigurationIsNull ( ) { doTestBootProtocolSetForDisplayNetworkWhenNullValuedIpConfigurationAndWhenNetworkClusterDisplay ( true , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_DISPLAY_NETWORK_HAS_NO_BOOT_PROTOCOL ) ) ; }
Source:
protected org.ovirt.engine.core.common.utils.ToStringBuilder appendAttributes ( org.ovirt.engine.core.common.utils.ToStringBuilder tsb ) { return super . appendAttributes ( tsb ) . append ( "postZeros" , getPostZero ( ) ) . append ( "forceDelete" , getForceDelete ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.utils.ToStringBuilder appendAttributes ( org.ovirt.engine.core.common.utils.ToStringBuilder tsb ) { return super . appendAttributes ( tsb ) . append ( "postZeros" , getPostZero ( ) ) . append ( "discard" , isDiscard ( ) ) . append ( "forceDelete" , getForceDelete ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VM mockVmAndReturnFromDao ( ) { vm = mockVm ( ) ; org.mockito.Mockito.when ( vmDao.get ( vmId , getQuery ( ) . getUserID ( ) , getQueryParameters ( ) . isFiltered ( ) ) ) . thenReturn ( vm ) ; return vm ; }

Target:
private org.ovirt.engine.core.common.businessentities.VM mockVmAndReturnFromDao ( ) { vm = mockVm ( ) ; org.mockito.Mockito.when ( vmDao.get ( org.ovirt.engine.core.bll.GetNextAvailableDiskAliasNameByVMIdQueryTest.vmId , getQuery ( ) . getUserID ( ) , getQueryParameters ( ) . isFiltered ( ) ) ) . thenReturn ( vm ) ; return vm ; }
Source:
public void setLastVdsRunOn ( org.ovirt.engine.core.compat.NGuid value ) { this . vmDynamic.setlast_vds_run_on ( value ) ; }

Target:
public java.lang.Integer getDisplaySecurePort ( ) { return this . vmDynamic.getDisplaySecurePort ( ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source != null ) { return ! ( ( java.lang.Boolean ) ( source ) ) ; } return false ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source != null ) { return ! ( ( java.lang.Boolean ) ( source ) ) ; } return false ; }
Source:
private java.util.Set < java.lang.String > getClusterNetworksNames ( ) { if ( ( cachedClusterNetworksNames ) == null ) { cachedClusterNetworksNames = org.ovirt.engine.core.common.businessentities.Entities.objectNames ( getClusterNetworks ( ) ) ; } return cachedClusterNetworksNames ; }

Target:
private java.util.Set < java.lang.String > getClusterNetworksNames ( ) { if ( ( cachedClusterNetworksNames ) == null ) { cachedClusterNetworksNames = getClusterNetworks ( ) . stream ( ) . map ( Network :: getName ) . collect ( java.util.stream.Collectors.toSet ( ) ) ; } return cachedClusterNetworksNames ; }
Source:
public void testIsNetworkInSyncWhenIfaceQosIsNull ( ) throws java.lang.Exception { iface.setQos ( null ) ; org.junit.Assert.assertThat ( createTestedInstanceWithSameNonQosValues ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testIsNetworkInSyncWhenIfaceQosEqual ( ) { org.hamcrest.MatcherAssert.assertThat ( createTestedInstanceWithSameNonQosValues ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
protected boolean isImageExclusiveLockNeeded ( ) { return ( ( getDiskType ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.DiskStorageType.IMAGE ) ) && ( ( ( ( org.ovirt.engine.core.common.businessentities.storage.DiskImage ) ( getDisk ( ) ) ) . getVolumeFormat ( ) ) != ( org.ovirt.engine.core.common.businessentities.storage.VolumeFormat.RAW ) ) ; }

Target:
protected boolean isImageExclusiveLockNeeded ( ) { return ( ( getDiskStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.DiskStorageType.IMAGE ) ) && ( ( ( ( org.ovirt.engine.core.common.businessentities.storage.DiskImage ) ( getDisk ( ) ) ) . getVolumeFormat ( ) ) != ( org.ovirt.engine.core.common.businessentities.storage.VolumeFormat.RAW ) ) ; }
Source:
public java.lang.String getdisplay_ip ( ) { return this . mVmDynamic.getdisplay_ip ( ) ; }

Target:
public java.lang.Boolean getAcpiEnable ( ) { return this . vmDynamic.getacpi_enable ( ) ; }
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.VM > ( ) ; } return source ; }

Target:
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.VmTemplate > ( ) ; } return source ; }
Source:
public void onFocus ( com.google.gwt.event.dom.client.FocusEvent event ) { asSuggestBox ( ) . showSuggestionList ( ) ; }

Target:
public void onFocus ( com.google.gwt.event.dom.client.FocusEvent event ) { com.google.gwt.core.client.Scheduler.get ( ) . scheduleDeferred ( new com.google.gwt.core.client.Scheduler.ScheduledCommand ( ) { @ java.lang.Override public void execute ( ) { asSuggestBox ( ) . showSuggestionList ( ) ; } } ) ; }
Source:
public void setIsBootable ( org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.Boolean > isBootable ) { this . isBootable = isBootable ; }

Target:
protected void setDiskVmElement ( org.ovirt.engine.core.common.businessentities.storage.DiskVmElement diskVmElement ) { this . diskVmElement = diskVmElement ; }
Source:
protected void build ( org.ovirt.engine.core.common.businessentities.VmBase source , org.ovirt.engine.core.common.businessentities.VmBase destination ) { destination.setDedicatedVmForVds ( source.getDedicatedVmForVds ( ) ) ; }

Target:
protected void build ( org.ovirt.engine.core.common.businessentities.VmBase source , org.ovirt.engine.core.common.businessentities.VmBase destination ) { destination.setDedicatedVmForVdsList ( source.getDedicatedVmForVdsList ( ) ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.Permission , org.ovirt.engine.ui.uicommonweb.models.templates.TemplateListModel , org.ovirt.engine.ui.uicommonweb.models.configure.PermissionListModel < org.ovirt.engine.core.common.businessentities.VmTemplate > > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.template.SubTabTemplatePermissionPresenter.constants.templatePermissionSubTabLabel ( ) , 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.template.SubTabTemplatePermissionPresenter.constants.templatePermissionSubTabLabel ( ) , 5 ) ; }
Source:
public final void setUser ( java.lang.String sessionId , org.ovirt.engine.core.common.users.VdcUser user ) { SetData ( sessionId , org.ovirt.engine.core.bll.session.SessionDataContainer.VDC_USER_PARAMETER_NAME , user ) ; }

Target:
public final void setUser ( java.lang.String sessionId , org.ovirt.engine.core.common.businessentities.DbUser user ) { SetData ( sessionId , org.ovirt.engine.core.bll.session.SessionDataContainer.USER_PARAMETER_NAME , user ) ; }
Source:
public void setLabels ( java.util.Set < java.lang.String > labels ) { this . labels = labels ; }

Target:
public void setNetworkLabels ( java.util.Set < java.lang.String > networkLabels ) { this . networkLabels = networkLabels ; }
Source:
public void testFetchNotExistingRepoFileListById ( ) { org.ovirt.engine.core.compat.Guid falseGuid = new org.ovirt.engine.core.compat.Guid ( "11111111-1111-1111-1111-111111111111" ) ; java.util.List < org.ovirt.engine.core.common.businessentities.storage.RepoImage > listOfRepoFiles = dao.getRepoListForStorageDomain ( falseGuid , ImageFileType.ISO ) ; org.junit.Assert.assertNotNull ( listOfRepoFiles ) ; org.junit.Assert.assertTrue ( listOfRepoFiles.isEmpty ( ) ) ; }

Target:
public void testFetchNotExistingRepoFileListById ( ) { org.ovirt.engine.core.compat.Guid falseGuid = new org.ovirt.engine.core.compat.Guid ( "11111111-1111-1111-1111-111111111111" ) ; java.util.List < org.ovirt.engine.core.common.businessentities.storage.RepoImage > listOfRepoFiles = dao.getRepoListForStorageDomain ( falseGuid , ImageFileType.ISO ) ; org.junit.jupiter.api.Assertions.assertNotNull ( listOfRepoFiles ) ; org.junit.jupiter.api.Assertions.assertTrue ( listOfRepoFiles.isEmpty ( ) ) ; }
Source:
public java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > RunMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > multipleParams ) ;

Target:
public java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > RunMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > multipleParams , boolean isRunOnlyIfAllCanDoPass ) ;
Source:
private static void translateErrors ( java.util.List < org.ovirt.engine.core.common.action.VdcReturnValueBase > errors ) { for ( org.ovirt.engine.core.common.action.VdcReturnValueBase retVal : errors ) { retVal.setCanDoActionMessages ( org.ovirt.engine.ui.frontend.Frontend.canDoActionErrorsTranslator.translateErrorText ( retVal.getCanDoActionMessages ( ) ) ) ; } }

Target:
public static org.ovirt.engine.ui.frontend.ErrorTranslator getAppErrorsTranslator ( ) { if ( ( org.ovirt.engine.ui.frontend.Frontend.canDoActionErrorsTranslator ) == null ) { org.ovirt.engine.ui.frontend.Frontend.setAppErrorsTranslator ( new org.ovirt.engine.ui.frontend.ErrorTranslator ( ( ( org.ovirt.engine.ui.frontend.AppErrors ) ( com.google.gwt.core.client.GWT.create ( org.ovirt.engine.ui.frontend.AppErrors.class ) ) ) ) ) ; } return org.ovirt.engine.ui.frontend.Frontend.canDoActionErrorsTranslator ; }
Source:
public java.util.Map deleteImage ( java.lang.String sdUUID , java.lang.String spUUID , java.lang.String imgGUID , java.lang.String postZero ) { return getOKStatusNotImplemented ( ) ; }

Target:
public java.util.Map list ( java.lang.String isFull , java.util.List < java.lang.String > vmIds ) { return vmService.list ( java.lang.Boolean.parseBoolean ( isFull ) , vmIds ) ; }
Source:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAll ( ) ; org.ovirt.engine.core.dao.StorageDomainDaoTest.assertCorrectGetAllResult ( result ) ; }

Target:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAll ( ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }
Source:
protected org.codehaus.jackson.node.ObjectNode getEngineSessionTimeoutObject ( java.lang.Integer engineSessionTimeout ) { org.codehaus.jackson.node.ObjectNode obj = createObjectNode ( ) ; obj.put ( "value" , java.lang.String.valueOf ( engineSessionTimeout ) ) ; return obj ; }

Target:
protected org.codehaus.jackson.node.ObjectNode getEngineSessionTimeoutObject ( java.lang.Integer engineSessionTimeout , java.lang.Integer userSessionHardLimit ) { org.codehaus.jackson.node.ObjectNode obj = createObjectNode ( ) ; obj.put ( "sessionTimeout" , java.lang.String.valueOf ( engineSessionTimeout ) ) ; obj.put ( "sessionHardLimit" , java.lang.String.valueOf ( userSessionHardLimit ) ) ; return obj ; }
Source:
public void testGetWithInvalidId ( ) { org.ovirt.engine.core.common.businessentities.LdapGroup result = dao.get ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; assertNull ( result ) ; }

Target:
public void testGetWithInvalidId ( ) { org.ovirt.engine.core.common.businessentities.LdapGroup result = dao.get ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; org.junit.Assert.assertNull ( result ) ; }
Source:
private void initBricksCountLabele ( ) { bricksCountEditor.setText ( org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getMessages ( ) . noOfBricksSelected ( 0 ) ) ; }

Target:
private void initBricksCountLabel ( ) { bricksCountEditor.setText ( org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getMessages ( ) . noOfBricksSelected ( 0 ) ) ; }
Source:
public void update ( int index , org.ovirt.engine.ui.uicommonweb.models.EntityModel model , java.lang.Boolean value ) { ( ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel ) ( model ) ) . setRequired ( value ) ; refreshNetworksTable ( ) ; }

Target:
public void update ( int index , org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel clusterNetworkModel , java.lang.Boolean value ) { clusterNetworkModel.setRequired ( value ) ; refreshNetworksTable ( ) ; }
Source:
public void logAndFailTaskOfCommandWithEmptyVdsmId ( org.ovirt.engine.core.compat.Guid asyncTaskId , java.lang.String message ) { org.ovirt.engine.core.common.businessentities.AsyncTask task = coco.getAsyncTaskFromDb ( asyncTaskId ) ; if ( task != null ) { logAndFailTaskOfCommandWithEmptyVdsmId ( task , message ) ; } }

Target:
public void logAndFailTaskOfCommandWithEmptyVdsmId ( org.ovirt.engine.core.compat.Guid asyncTaskId , java.lang.String message ) { org.ovirt.engine.core.common.businessentities.AsyncTask task = coco.getAsyncTaskFromDb ( asyncTaskId ) ; if ( task != null ) { logAndFailPartiallySubmittedTaskOfCommand ( task , message ) ; } }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase getReturnValue ( ) { if ( ( _returnValue ) == null ) { _returnValue = CreateReturnValue ( ) ; } return _returnValue ; }

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase getReturnValue ( ) { if ( ( _returnValue ) == null ) { _returnValue = createReturnValue ( ) ; } return _returnValue ; }
Source:
private org.ovirt.engine.core.common.businessentities.VDSGroup getExistingVdsGroup ( ) { return existingGroup ; }

Target:
private org.ovirt.engine.core.common.businessentities.Cluster getExistingCluster ( ) { return existingGroup ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > getImages ( ) { return getVm ( ) . getImages ( ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > getImages ( ) { return getVm ( ) . getImages ( ) ; }
Source:
protected java.lang.String getUploadDescription ( ) { return java.lang.String.format ( "%s '%s' (id '%s')" , getUploadType ( ) , getImageAlias ( ) , getImageIdNullSafe ( ) ) ; }

Target:
protected java.lang.String getTransferDescription ( ) { return java.lang.String.format ( "%s '%s' (id '%s')" , getImageType ( ) , getImageAlias ( ) , getImageIdNullSafe ( ) ) ; }
Source:
public void testGet ( ) { org.ovirt.engine.core.common.businessentities.ad_groups result = dao.get ( existingAdGroup.getid ( ) ) ; assertNotNull ( result ) ; assertEquals ( existingAdGroup , result ) ; }

Target:
public void testGet ( ) { org.ovirt.engine.core.common.businessentities.LdapGroup result = dao.get ( existingAdGroup.getid ( ) ) ; assertNotNull ( result ) ; assertEquals ( existingAdGroup , result ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase endAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { return endAction ( actionType , parameters , null ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase endAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , org.ovirt.engine.core.bll.context.CommandContext context ) { return org.ovirt.engine.core.bll.CommandsFactory.createCommand ( actionType , parameters , context ) . endAction ( ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.UsbPolicy forValue ( int value ) { return org.ovirt.engine.core.common.businessentities.UsbPolicy.values ( ) [ value ] ; }

Target:
public static org.ovirt.engine.core.common.businessentities.UsbPolicy forValue ( int value ) { for ( org.ovirt.engine.core.common.businessentities.UsbPolicy usbPolicy : org.ovirt.engine.core.common.businessentities.UsbPolicy.values ( ) ) { if ( ( usbPolicy.getValue ( ) ) == value ) { return usbPolicy ; } } return org.ovirt.engine.core.common.businessentities.UsbPolicy.DISABLED ; }
Source:
private org.ovirt.engine.api.model.VM createModel ( org.ovirt.engine.api.model.Disks disks , org.ovirt.engine.api.model.Snapshots snapshots ) { org.ovirt.engine.api.model.VM model = createModel ( disks ) ; if ( snapshots != null ) { model.setSnapshots ( snapshots ) ; } return model ; }

Target:
private org.ovirt.engine.api.model.Vm createModel ( org.ovirt.engine.api.model.Disks disks , org.ovirt.engine.api.model.Snapshots snapshots ) { org.ovirt.engine.api.model.Vm model = createModel ( disks ) ; if ( snapshots != null ) { model.setSnapshots ( snapshots ) ; } return model ; }
Source:
protected void checkMaxMemoryOverCommitValue ( ) { if ( ( getVdsGroup ( ) . getMaxVdsMemoryOverCommit ( ) ) <= 0 ) { getVdsGroup ( ) . setMaxVdsMemoryOverCommit ( org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.MaxVdsMemOverCommit ) ) ; } }

Target:
protected void checkMaxMemoryOverCommitValue ( ) { if ( ( getCluster ( ) . getMaxVdsMemoryOverCommit ( ) ) <= 0 ) { getCluster ( ) . setMaxVdsMemoryOverCommit ( org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.MaxVdsMemOverCommit ) ) ; } }
Source:
public java.lang.String getQuotaName ( ) { return this . mVmStatic.getQuotaName ( ) ; }

Target:
public void setQuotaEnforcementType ( org.ovirt.engine.core.common.businessentities.QuotaEnforcementTypeEnum quotaEnforcementType ) { this . vmStatic.setQuotaEnforcementType ( quotaEnforcementType ) ; }
Source:
public void setvds_group_id ( org.ovirt.engine.core.compat.Guid value ) { this . vdsGroupId = value ; }

Target:
public void setvm_pool_id ( org.ovirt.engine.core.compat.Guid value ) { this . id = value ; }
Source:
public boolean isDisplay ( ) { return this . isDisplay ; }

Target:
public boolean isDisplay ( ) { return this . display ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml progressBarWithId ( int progress , java.lang.String text , java.lang.String color , java.lang.String id ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml vmCountWithMigrations ( java.lang.String title , com.google.gwt.safehtml.shared.SafeHtml incomingMigrations , java.lang.String vmCountStr , com.google.gwt.safehtml.shared.SafeHtml outgoingMigrations ) ;
Source:
public void setValue ( java.lang.String value ) { this . value = value ; }

Target:
public void setValue ( java.lang.String value ) { setDefaultValue ( value ) ; }
Source:
public java.lang.String getSysprepFileName ( int osId , org.ovirt.engine.core.compat.Version version ) ;

Target:
java.lang.String getSysprepPath ( int osId , org.ovirt.engine.core.compat.Version version ) ;
Source:
public void testValidateStoragePoolNoStoragePoolId ( ) { org.junit.Assert.assertFalse ( command.validate ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.assertValidationMessages ( "" , command , EngineMessage.ACTION_TYPE_FAILED_STORAGE_POOL_NOT_EXIST ) ; }

Target:
public void testValidateStoragePoolNoStoragePoolId ( ) { org.junit.jupiter.api.Assertions.assertFalse ( command.validate ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.assertValidationMessages ( "" , command , EngineMessage.ACTION_TYPE_FAILED_STORAGE_POOL_NOT_EXIST ) ; }
Source:
public void checkNullSubnet ( ) { org.junit.Assert.assertTrue ( underTest.equalSubnet ( null , null ) ) ; }

Target:
public void checkNullSubnet ( ) { org.junit.jupiter.api.Assertions.assertTrue ( underTest.equalSubnet ( null , null ) ) ; }
Source:
public void testAddGroup ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( ( ( "ADGROUP@" + ( DOMAIN ) ) + ": name=*" ) , SearchType.AdGroup , getAdGroup ( 0 ) ) ; setUpCreationExpectations ( VdcActionType.AddUser , org.ovirt.engine.core.common.action.AddUserParameters.class , new java.lang.String [ ] { "AdGroup.id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , true , true , null , VdcQueryType.GetAdGroupById , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , getEntity ( 0 ) ) ; org.ovirt.engine.api.model.Group model = new org.ovirt.engine.api.model.Group ( ) ; model.setName ( NAMES [ 0 ] ) ; javax.ws.rs.core.Response response = collection.add ( model ) ; assertEquals ( 201 , response.getStatus ( ) ) ; assertTrue ( ( ( response.getEntity ( ) ) instanceof org.ovirt.engine.api.model.Group ) ) ; verifyModel ( ( ( org.ovirt.engine.api.model.Group ) ( response.getEntity ( ) ) ) , 0 ) ; }

Target:
public void testAddGroupWithExplicitDirectoryName ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( ( ( ( "ADGROUP@" + ( DOMAIN ) ) + ": allnames=" ) + ( NAMES [ 0 ] ) ) , SearchType.AdGroup , getDirectoryGroup ( 0 ) ) ; setUpCreationExpectations ( VdcActionType.AddGroup , org.ovirt.engine.core.common.action.AddGroupParameters.class , new java.lang.String [ ] { "Group.id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , true , true , null , VdcQueryType.GetDbGroupById , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , getEntity ( 0 ) ) ; org.ovirt.engine.api.model.Domain domain = new org.ovirt.engine.api.model.Domain ( ) ; domain.setName ( org.ovirt.engine.api.restapi.resource.DOMAIN ) ; org.ovirt.engine.api.model.Group model = new org.ovirt.engine.api.model.Group ( ) ; model.setName ( NAMES [ 0 ] ) ; model.setDomain ( domain ) ; javax.ws.rs.core.Response response = collection.add ( model ) ; assertEquals ( 201 , response.getStatus ( ) ) ; assertTrue ( ( ( response.getEntity ( ) ) instanceof org.ovirt.engine.api.model.Group ) ) ; verifyModel ( ( ( org.ovirt.engine.api.model.Group ) ( response.getEntity ( ) ) ) , 0 ) ; }
Source:
public void testValidateNull ( ) { org.ovirt.engine.core.config.entity.helper.WebSocketProxyLocationValueHelper helper = new org.ovirt.engine.core.config.entity.helper.WebSocketProxyLocationValueHelper ( ) ; org.junit.Assert.assertFalse ( helper.validate ( null , null ) . isOk ( ) ) ; }

Target:
public void testValidateNull ( ) { org.ovirt.engine.core.config.entity.helper.WebSocketProxyLocationValueHelper helper = new org.ovirt.engine.core.config.entity.helper.WebSocketProxyLocationValueHelper ( ) ; org.junit.jupiter.api.Assertions.assertFalse ( helper.validate ( null , null ) . isOk ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSession getGeoRepSession ( org.ovirt.engine.core.compat.Guid masterVolumeId , java.lang.String slaveHost , java.lang.String slaveVolumeName ) ;

Target:
public org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSession getGeoRepSession ( org.ovirt.engine.core.compat.Guid masterVolumeId , org.ovirt.engine.core.compat.Guid slaveHostId , java.lang.String slaveVolumeName ) ;
Source:
public static java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getBalloonDevices ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDeviceDao ( ) . getVmDeviceByVmIdAndType ( vmId , VmDeviceGeneralType.BALLOON ) ; }

Target:
public static java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getBalloonDevices ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.dbFacade.getVmDeviceDao ( ) . getVmDeviceByVmIdAndType ( vmId , VmDeviceGeneralType.BALLOON ) ; }
Source:
protected org.ovirt.engine.core.dao.scheduling.ClusterPolicyDao getClusterPolicyDao ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getClusterPolicyDao ( ) ; }

Target:
protected org.ovirt.engine.core.dao.scheduling.ClusterPolicyDao getClusterPolicyDao ( ) { return dbFacade.getClusterPolicyDao ( ) ; }
Source:
protected java.lang.Long getRawValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.DiskImage diskImage = ( ( org.ovirt.engine.core.common.businessentities.DiskImage ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ) ) ; return diskImage.getSize ( ) ; }

Target:
protected java.lang.Long getRawValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage = ( ( org.ovirt.engine.core.common.businessentities.storage.DiskImage ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ) ) ; return diskImage.getSize ( ) ; }
Source:
protected void filterVms ( ) { for ( org.ovirt.engine.core.vdsbroker.monitoring.VdsmVm vdsmVm : vdsmVms.values ( ) ) { org.ovirt.engine.core.common.businessentities.VM dbVm = dbVms.get ( vdsmVm.getVmDynamic ( ) . getId ( ) ) ; gatherChangedVms ( dbVm , vdsmVm ) ; } }

Target:
protected void filterVms ( ) { for ( org.ovirt.engine.core.vdsbroker.monitoring.VdsmVm vdsmVm : vdsmVms.values ( ) ) { org.ovirt.engine.core.common.businessentities.VmDynamic dbVm = dbVms.get ( vdsmVm.getVmDynamic ( ) . getId ( ) ) ; gatherChangedVms ( dbVm , vdsmVm ) ; } }
Source:
public void setStyle ( final org.ovirt.engine.ui.webadmin.section.main.view.popup.host.panels.NetworkPanelsStyle style ) { super . setStyle ( style ) ; stylePanel ( requiredPanel ) ; stylePanel ( nonRequiredPanel ) ; requiredTitlePanel = initTitlePanel ( constants.requiredNetwork ( ) ) ; nonRequiredTitlePanel = initTitlePanel ( constants.nonRequiredNetwork ( ) ) ; }

Target:
public void setStyle ( final org.ovirt.engine.ui.webadmin.section.main.view.popup.host.panels.NetworkPanelsStyle style ) { super . setStyle ( style ) ; stylePanel ( requiredPanel ) ; stylePanel ( nonRequiredPanel ) ; requiredTitlePanel = initTitlePanel ( org.ovirt.engine.ui.webadmin.section.main.view.popup.host.panels.InternalNetworksPanel.constants.requiredNetwork ( ) ) ; nonRequiredTitlePanel = initTitlePanel ( org.ovirt.engine.ui.webadmin.section.main.view.popup.host.panels.InternalNetworksPanel.constants.nonRequiredNetwork ( ) ) ; }
Source:
protected void findGroups ( java.lang.String searchString , org.ovirt.engine.ui.frontend.AsyncQuery query ) { org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.AdGroupsSearch , new org.ovirt.engine.core.common.queries.AdGroupsSearchParameters ( searchString ) , query ) ; }

Target:
protected void findGroups ( java.lang.String searchString , org.ovirt.engine.ui.frontend.AsyncQuery query ) { org.ovirt.engine.ui.uicommonweb.models.users.AdElementListModel adElementListModel = ( ( org.ovirt.engine.ui.uicommonweb.models.users.AdElementListModel ) ( query.getModel ( ) ) ) ; adElementListModel.setgroups ( new java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.EntityModel > ( ) ) ; super . onUserAndAdGroupsLoaded ( adElementListModel ) ; }
Source:
public void rerun ( ) { setFlow ( null ) ; acquireHostDevicesLock ( ) ; super . rerun ( ) ; }

Target:
public void rerun ( ) { cleanupPassthroughVnics ( ) ; setFlow ( null ) ; acquireHostDevicesLock ( ) ; super . rerun ( ) ; }
Source:
public void setSelectedItem ( java.lang.Object value ) { setIsQueryFirstTime ( true ) ; super . setSelectedItem ( value ) ; setIsQueryFirstTime ( false ) ; }

Target:
public void setSelectedItem ( T value ) { setIsQueryFirstTime ( true ) ; super . setSelectedItem ( value ) ; setIsQueryFirstTime ( false ) ; }
Source:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.v3.types.V3Quota quota ) { return adaptAdd ( delegate :: add , quota ) ; }

Target:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.v3.types.V3Quota quota ) { return adaptAdd ( getDelegate ( ) :: add , quota ) ; }
Source:
org.ovirt.engine.core.compat.Guid createTask ( org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand , org.ovirt.engine.core.common.VdcObjectType entityType , org.ovirt.engine.core.compat.Guid ... entityIds ) ;

Target:
org.ovirt.engine.core.compat.Guid createTask ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand , org.ovirt.engine.core.common.VdcObjectType entityType , org.ovirt.engine.core.compat.Guid ... entityIds ) ;
Source:
protected org.ovirt.engine.core.common.businessentities.BaseDisk generateNewEntity ( ) { return new org.ovirt.engine.core.common.businessentities.BaseDisk ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , org.ovirt.engine.core.common.businessentities.DiskInterface.IDE , true , org.ovirt.engine.core.common.businessentities.PropagateErrors.Off , "DiskName" , "" , false , false ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.BaseDisk generateNewEntity ( ) { return new org.ovirt.engine.core.common.businessentities.BaseDisk ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , org.ovirt.engine.core.common.businessentities.DiskInterface.IDE , true , org.ovirt.engine.core.common.businessentities.PropagateErrors.Off , "DiskName" , "" , false , false , org.ovirt.engine.core.common.businessentities.ScsiGenericIO.FILTERED ) ; }
Source:
public void setDisplaySecurePort ( java.lang.Integer value ) { this . displaySecurePort = value ; }

Target:
public void setGuestAgentStatus ( org.ovirt.engine.core.common.businessentities.GuestAgentStatus guestAgentStatus ) { this . guestAgentStatus = guestAgentStatus ; }
Source:
public void clearSession ( ) { org.ovirt.engine.core.utils.ThreadLocalParamsContainer.clean ( ) ; }

Target:
public void clearSession ( ) { org.ovirt.engine.core.utils.CorrelationIdTracker.clean ( ) ; }
Source:
public void validTimeSpan ( ) { junit.framework.Assert.assertFalse ( BaseConditionFieldAutoCompleter.validTimeSpan.isValid ( null , "" ) ) ; junit.framework.Assert.assertFalse ( BaseConditionFieldAutoCompleter.validTimeSpan.isValid ( null , "not valid" ) ) ; junit.framework.Assert.assertTrue ( BaseConditionFieldAutoCompleter.validTimeSpan.isValid ( null , "-1.02:03:04.05" ) ) ; }

Target:
public void validTimeSpan ( ) { org.junit.Assert.assertFalse ( BaseConditionFieldAutoCompleter.validTimeSpan.isValid ( null , "" ) ) ; org.junit.Assert.assertFalse ( BaseConditionFieldAutoCompleter.validTimeSpan.isValid ( null , "not valid" ) ) ; org.junit.Assert.assertTrue ( BaseConditionFieldAutoCompleter.validTimeSpan.isValid ( null , "-1.02:03:04.05" ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VDSGroup getVdsGroup ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup cluster = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; cluster.setId ( org.ovirt.engine.core.bll.gluster.RefreshGlusterHooksCommandTest.CLUSTER_ID ) ; cluster.setName ( "TestCluster" ) ; return cluster ; }

Target:
private org.ovirt.engine.core.common.businessentities.Cluster getCluster ( ) { org.ovirt.engine.core.common.businessentities.Cluster cluster = new org.ovirt.engine.core.common.businessentities.Cluster ( ) ; cluster.setId ( org.ovirt.engine.core.bll.gluster.RefreshGlusterHooksCommandTest.CLUSTER_ID ) ; cluster.setName ( "TestCluster" ) ; return cluster ; }
Source:
public int hashCode ( org.ovirt.engine.core.common.businessentities.Tags tag ) { return tag.gettag_id ( ) . hashCode ( ) ; }

Target:
public int hashCode ( org.ovirt.engine.core.common.businessentities.Tags tag ) { return tag.getTagId ( ) . hashCode ( ) ; }
Source:
public void testAuthTypes ( ) { org.junit.Assert.assertEquals ( "Unknown should not be an admin query" , QueryAuthType.User , QueryType.Unknown.getAuthType ( ) ) ; org.junit.Assert.assertFalse ( "Unknown should not be an admin query" , QueryType.Unknown.isAdmin ( ) ) ; }

Target:
public void testAuthTypes ( ) { org.junit.jupiter.api.Assertions.assertEquals ( QueryAuthType.User , QueryType.Unknown.getAuthType ( ) , "Unknown should not be an admin query" ) ; org.junit.jupiter.api.Assertions.assertFalse ( QueryType.Unknown.isAdmin ( ) , "Unknown should not be an admin query" ) ; }
Source:
private static void doTestNoStringSubstitution ( java.lang.String name ) { org.ovirt.engine.core.common.interfaces.ErrorTranslator et = new org.ovirt.engine.core.utils.ErrorTranslatorImpl ( name ) ; java.lang.String error = et.TranslateErrorTextSingle ( org.ovirt.engine.core.utils.ErrorTranslatorTest.TEST_KEY_NO_REPLACEMENT ) ; assertEquals ( "String should equal" , "VM not found" , error ) ; }

Target:
private static void doTestNoStringSubstitution ( java.lang.String name ) { org.ovirt.engine.core.common.interfaces.ErrorTranslator et = new org.ovirt.engine.core.utils.ErrorTranslatorImpl ( name ) ; java.lang.String error = et.TranslateErrorTextSingle ( org.ovirt.engine.core.utils.ErrorTranslatorTest.TEST_KEY_NO_REPLACEMENT ) ; org.junit.Assert.assertEquals ( "String should equal" , "VM not found" , error ) ; }
Source:
public int compareTo ( org.ovirt.engine.core.compat.TimeSpan o ) { throw new org.ovirt.engine.core.compat.NotImplementedException ( ) ; }

Target:
public int compareTo ( org.ovirt.engine.core.compat.TimeSpan o ) { throw new java.lang.UnsupportedOperationException ( ) ; }
Source:
public void testGetWithInvalidId ( ) { org.ovirt.engine.core.common.businessentities.VDS result = dao.get ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetWithInvalidId ( ) { org.ovirt.engine.core.common.businessentities.VDS result = dao.get ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.jupiter.api.Assertions.assertNull ( result ) ; }
Source:
protected void verifyEntityModification ( org.ovirt.engine.core.common.job.Step result ) { org.junit.Assert.assertEquals ( JobExecutionStatus.FINISHED , result.getStatus ( ) ) ; }

Target:
protected void verifyEntityModification ( org.ovirt.engine.core.common.job.Step result ) { org.junit.Assert.assertEquals ( JobExecutionStatus.FINISHED , result.getStatus ( ) ) ; org.junit.Assert.assertEquals ( 1 , result.getSteps ( ) . size ( ) ) ; }
Source:
org.ovirt.engine.core.common.businessentities.UsbControllerModel getOsUsbControllerModel ( int osId , org.ovirt.engine.core.compat.Version version ) ;

Target:
org.ovirt.engine.core.common.businessentities.UsbControllerModel getOsUsbControllerModel ( int osId , org.ovirt.engine.core.compat.Version version , org.ovirt.engine.core.common.businessentities.ChipsetType chipset ) ;
Source:
public org.ovirt.engine.core.common.businessentities.storage.Disk loadActiveDisk ( org.ovirt.engine.core.compat.Guid diskId ) { return org.ovirt.engine.core.bll.storage.disk.DiskHandler.getDiskDao ( ) . get ( diskId ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.storage.Disk loadActiveDisk ( org.ovirt.engine.core.compat.Guid diskId ) { return diskDao.get ( diskId ) ; }
Source:
public void testCanDoActionDuplicateTemplateName ( ) { org.mockito.Mockito.doReturn ( true ) . when ( cmd ) . isVmTemlateWithSameNameExist ( "templateName" , spId ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_NAME_ALREADY_USED ) ; }

Target:
public void testValidate ( ) { org.mockito.Mockito.doReturn ( true ) . when ( cmd ) . validateVmNotDuringSnapshot ( ) ; vm.setStatus ( VMStatus.Up ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.VMT_CANNOT_CREATE_TEMPLATE_FROM_DOWN_VM ) ; }
Source:
public int compare ( org.ovirt.engine.ui.uicommonweb.models.users.UserGroup userGroup1 , org.ovirt.engine.ui.uicommonweb.models.users.UserGroup userGroup2 ) { return org.ovirt.engine.ui.uicommonweb.comparators.UserGroupComparator.lexoNumeric.compare ( userGroup1.getOrganizationalUnit ( ) , userGroup2.getOrganizationalUnit ( ) ) ; }

Target:
public int compare ( org.ovirt.engine.ui.uicommonweb.models.users.UserGroup userGroup1 , org.ovirt.engine.ui.uicommonweb.models.users.UserGroup userGroup2 ) { return org.ovirt.engine.ui.uicommonweb.comparators.UserGroupComparator.lexoNumeric.compare ( userGroup1.getNamespace ( ) , userGroup2.getNamespace ( ) ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid getPoolId ( ) { org.ovirt.engine.core.bll.UpdateVmPoolWithVmsCommand.getVmPoolDao ( ) . update ( org.ovirt.engine.core.bll.UpdateVmPoolWithVmsCommand.getVmPool ( ) ) ; return org.ovirt.engine.core.bll.UpdateVmPoolWithVmsCommand.getVmPool ( ) . getVmPoolId ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid getPoolId ( ) { org.ovirt.engine.core.bll.UpdateVmPoolCommand.getVmPoolDao ( ) . update ( org.ovirt.engine.core.bll.UpdateVmPoolCommand.getVmPool ( ) ) ; return org.ovirt.engine.core.bll.UpdateVmPoolCommand.getVmPool ( ) . getVmPoolId ( ) ; }
Source:
protected void addItemText ( java.lang.Object item ) { org.ovirt.engine.core.common.businessentities.Permission permissions = ( ( org.ovirt.engine.core.common.businessentities.Permission ) ( item ) ) ; addItemLabel ( messages.roleOnUser ( permissions.getRoleName ( ) , permissions.getOwnerName ( ) ) ) ; }

Target:
protected void addItemText ( java.lang.Object item ) { org.ovirt.engine.core.common.businessentities.Permission permissions = ( ( org.ovirt.engine.core.common.businessentities.Permission ) ( item ) ) ; addItemLabel ( org.ovirt.engine.ui.common.view.popup.RolePermissionsRemoveConfirmationPopupView.messages.roleOnUser ( permissions.getRoleName ( ) , permissions.getOwnerName ( ) ) ) ; }
Source:
public javax.ws.rs.core.Response activate ( org.ovirt.engine.api.model.Action action ) { org.ovirt.engine.core.common.action.ActivateDeactivateVmNicParameters params = new org.ovirt.engine.core.common.action.ActivateDeactivateVmNicParameters ( guid , org.ovirt.engine.core.common.action.PlugAction.PLUG ) ; org.ovirt.engine.api.restapi.resource.BackendNicsResource parent = ( ( org.ovirt.engine.api.restapi.resource.BackendNicsResource ) ( collection ) ) ; params.setVmId ( parent.parentId ) ; return doAction ( VdcActionType.ActivateDeactivateVmNic , params , action ) ; }

Target:
protected org.ovirt.engine.api.model.NIC doPopulate ( org.ovirt.engine.api.model.NIC model , org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface entity ) { org.ovirt.engine.api.restapi.resource.BackendVmNicsResource parent = ( ( org.ovirt.engine.api.restapi.resource.BackendVmNicsResource ) ( collection ) ) ; parent.addReportedDevices ( model , entity ) ; return model ; }