auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void localize ( org.ovirt.engine.ui.webadmin.ApplicationDynamicConstants constants ) { headerLabel.setText ( constants.mainHeaderLabel ( ) ) ; }

Target:
private void localize ( org.ovirt.engine.ui.webadmin.ApplicationDynamicMessages dynamicMessages ) { headerLabel.setText ( dynamicMessages.mainHeaderLabel ( ) ) ; }
Source:
protected org.ovirt.engine.core.bll.AsyncTaskManager getAsyncTaskManager ( ) { return org.ovirt.engine.core.bll.AsyncTaskManager.getInstance ( ) ; }

Target:
public org.ovirt.engine.core.compat.CommandStatus getCommandStatus ( ) { return commandStatus ; }
Source:
public java.lang.String getGlusterHookContent ( org.ovirt.engine.core.compat.Guid hookId ) { java.lang.String content = getCallsHandler ( ) . executeRead ( "GetGlusterHookById" , org.ovirt.engine.core.dao.gluster.GlusterHooksDaoDbFacadeImpl.GlusterHookContentRowMapper , createIdParameterMapper ( hookId ) . addValue ( "includeContent" , true ) ) ; return content ; }

Target:
public java.lang.String getGlusterHookContent ( org.ovirt.engine.core.compat.Guid hookId ) { java.lang.String content = getCallsHandler ( ) . executeRead ( "GetGlusterHookContentById" , org.ovirt.engine.core.dao.gluster.GlusterHooksDaoDbFacadeImpl.GlusterHookContentRowMapper , createIdParameterMapper ( hookId ) ) ; return content ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc startImageTransferSession ( java.lang.String ticketId , java.lang.String ops , long expiration , java.lang.String spId , java.lang.String sdId , java.lang.String imgId , java.lang.String volId ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc add_image_ticket ( java.lang.String ticketId , java.lang.String [ ] ops , long timeout , long size , java.lang.String url ) ;
Source:
protected void ExecuteNetworkCommand ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op1 , org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op2 , java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > allNics , java.lang.Object ... params ) { org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkOperation.ADD_TO_BOND.getCommand ( op2 , op1 , allNics ) . Execute ( ) ; }

Target:
protected void executeNetworkCommand ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op1 , org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op2 , java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > allNics , java.lang.Object ... params ) { org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkOperation.ADD_TO_BOND.getCommand ( op2 , op1 , allNics ) . execute ( ) ; }
Source:
public java.lang.String getPmSecondaryPassword ( ) { return mVdsStatic.getPmSecondaryPassword ( ) ; }

Target:
public java.lang.Boolean getLiveSnapshotSupport ( ) { return this . mVdsDynamic.getLiveSnapshotSupport ( ) ; }
Source:
void setUserName ( java.lang.String userName ) { this . userName = userName ; }

Target:
void setLoggedUser ( org.ovirt.engine.core.common.users.VdcUser loggedUser ) { this . loggedUser = loggedUser ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { status = executeSnapshotVerb ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.SnapshotVDSCommand.proceedProxyReturnValue ( ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { status = executeSnapshotVerb ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.SnapshotVDSCommand.proceedProxyReturnValue ( ) ; }
Source:
java.lang.String getItemText ( java.lang.Object item ) { return "- " + ( java.lang.String.valueOf ( item ) ) ; }

Target:
void addItemText ( java.lang.Object item ) { addItemLabel ( getItemTextFormatted ( java.lang.String.valueOf ( item ) ) ) ; }
Source:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; org.ovirt.engine.core.common.businessentities.IscsiBond iscsiBond = parent.getIscsiBond ( ) ; iscsiBond.getStorageConnectionIds ( ) . remove ( id ) ; return performAction ( VdcActionType.EditIscsiBond , new org.ovirt.engine.core.common.action.EditIscsiBondParameters ( iscsiBond ) ) ; }

Target:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; org.ovirt.engine.core.common.businessentities.IscsiBond iscsiBond = parent.getIscsiBond ( ) ; iscsiBond.getStorageConnectionIds ( ) . remove ( id ) ; return performAction ( ActionType.EditIscsiBond , new org.ovirt.engine.core.common.action.EditIscsiBondParameters ( iscsiBond ) ) ; }
Source:
protected org.ovirt.engine.core.common.action.VdcActionType getImagesActionType ( ) { if ( ( org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getParameters ( ) . getOperation ( ) ) == ( org.ovirt.engine.core.common.businessentities.ImageOperation.Move ) ) { return org.ovirt.engine.core.common.action.VdcActionType.MoveImageGroup ; } return org.ovirt.engine.core.common.action.VdcActionType.CopyImageGroup ; }

Target:
protected org.ovirt.engine.core.common.action.VdcActionType getImagesActionType ( ) { if ( ( org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getParameters ( ) . getOperation ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.ImageOperation.Move ) ) { return org.ovirt.engine.core.common.action.VdcActionType.MoveImageGroup ; } return org.ovirt.engine.core.common.action.VdcActionType.CopyImageGroup ; }
Source:
protected org.ovirt.engine.core.compat.Guid getEntityGuid ( ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . getEntityGuid ( getEntity ( ) ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid getEntityGuid ( ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . getEntityGuid ( org.ovirt.engine.ui.uicommonweb.models.configure.PermissionListModel.getEntity ( ) ) ; }
Source:
private org.ovirt.engine.api.restapi.resource.AbstractStatisticalQuery < org.ovirt.engine.api.model.Host , org.ovirt.engine.core.common.businessentities.VDS > getQuery ( ) { return ( ( org.ovirt.engine.api.restapi.resource.AbstractStatisticalQuery < org.ovirt.engine.api.model.Host , org.ovirt.engine.core.common.businessentities.VDS > ) ( control.createMock ( org.ovirt.engine.api.restapi.resource.AbstractStatisticalQuery.class ) ) ) ; }

Target:
private org.ovirt.engine.api.restapi.resource.AbstractStatisticalQuery < org.ovirt.engine.api.model.Host , org.ovirt.engine.core.common.businessentities.VDS > getQuery ( ) { return ( ( org.ovirt.engine.api.restapi.resource.AbstractStatisticalQuery < org.ovirt.engine.api.model.Host , org.ovirt.engine.core.common.businessentities.VDS > ) ( org.mockito.Mockito.mock ( org.ovirt.engine.api.restapi.resource.AbstractStatisticalQuery.class ) ) ) ; }
Source:
public void testIpConfiguredForStaticBootProtocolWhenIpConfigurationIsNotNullAndBootProtocolIsStaticAndNetmaskIsNull ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment = createNetworkAttachmentWithIpConfiguration ( NetworkBootProtocol.STATIC_IP , "" , null ) ; org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.validator.NetworkAttachmentValidator ( attachment , new org.ovirt.engine.core.common.businessentities.VDS ( ) ) . ipConfiguredForStaticBootProtocol ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NETWORK_ADDR_MANDATORY_IN_STATIC_IP ) ) ; }

Target:
public void testIpConfiguredForStaticBootProtocolWhenIpConfigurationIsNotNullAndBootProtocolIsStaticAndNetmaskIsNull ( ) throws java.lang.Exception { doTestIpConfiguredForStaticBootProtocol ( "192.168.1.1" , null ) ; }
Source:
public void setguest_cur_user_name ( java.lang.String value ) { this . guest_cur_user_name = value ; }

Target:
public void setGuestRequestedMemory ( java.lang.Integer value ) { this . guestRequestedMemory = value ; }
Source:
public void testCanDoFailReadOnlyOnInterface ( ) { org.mockito.Mockito.when ( diskValidator.isReadOnlyPropertyCompatibleWithInterface ( ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_INTERFACE_DOES_NOT_SUPPORT_READ_ONLY_ATTR ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.ACTION_TYPE_FAILED_INTERFACE_DOES_NOT_SUPPORT_READ_ONLY_ATTR ) ; org.mockito.Mockito.verify ( diskValidator ) . isReadOnlyPropertyCompatibleWithInterface ( ) ; }

Target:
public void testValidateFailReadOnlyOnInterface ( ) { org.mockito.Mockito.when ( diskValidator.isReadOnlyPropertyCompatibleWithInterface ( ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_INTERFACE_DOES_NOT_SUPPORT_READ_ONLY_ATTR ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_INTERFACE_DOES_NOT_SUPPORT_READ_ONLY_ATTR ) ; org.mockito.Mockito.verify ( diskValidator ) . isReadOnlyPropertyCompatibleWithInterface ( ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.Cluster getCluster ( ) { return getEntity ( org.ovirt.engine.core.common.businessentities.Cluster.class , VdcQueryType.GetClusterById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( asGuid ( clusterId ) ) , clusterId ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.Cluster getCluster ( ) { return getEntity ( org.ovirt.engine.core.common.businessentities.Cluster.class , QueryType.GetClusterById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( asGuid ( clusterId ) ) , clusterId ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.StoragePool createLowerVersionStoragePool ( ) { org.ovirt.engine.core.common.businessentities.StoragePool pool = org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommandTest.createBasicPool ( ) ; pool.setIsLocal ( true ) ; pool.setcompatibility_version ( org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommandTest.VERSION_1_0 ) ; return pool ; }

Target:
public void cantDowngradeIfPosixNotSupported ( ) { failOnDowngradingWithStorageType ( StorageType.POSIXFS ) ; }
Source:
private org.ovirt.engine.core.dao.NetworkDAO getNetworkDAO ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getNetworkDAO ( ) ; }

Target:
private org.ovirt.engine.core.dao.NetworkDAO getNetworkDAO ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getNetworkDao ( ) ; }
Source:
public void validateFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( null ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
private void setVolumeId ( org.ovirt.engine.core.compat.Guid volumeId ) { cmd.setGlusterVolumeId ( volumeId ) ; cmd.getParameters ( ) . setBricks ( getBricks ( volumeId , 1 ) ) ; }
Source:
public void setEntity ( org.ovirt.engine.core.common.businessentities.Network value ) { super . setEntity ( value ) ; }

Target:
public void setEntity ( org.ovirt.engine.core.common.businessentities.NetworkView value ) { super . setEntity ( value ) ; }
Source:
public void testVerbosityLevelZero ( ) { java.lang.String command = createCommand ( new org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilder ( ) . verboseLevel ( AnsibleVerbosity.LEVEL0 ) . playbook ( org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilderTest.ANSIBLE_PLAYBOOK ) ) ; org.junit.Assert.assertEquals ( join ( AnsibleCommandBuilder.ANSIBLE_COMMAND , org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilderTest.PRIVATE_KEY , org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilderTest.ANSIBLE_PLAYBOOK_FULL_PATH ) , command ) ; }

Target:
public void testDifferentVerbosity ( ) { java.lang.String command = createCommand ( new org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilder ( ) . verboseLevel ( AnsibleVerbosity.LEVEL2 ) . playbook ( org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilderTest.ANSIBLE_PLAYBOOK ) ) ; org.junit.Assert.assertEquals ( join ( AnsibleCommandBuilder.ANSIBLE_COMMAND , org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilderTest.IGNORE_SSH_CONFIG , "-vv" , org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilderTest.PRIVATE_KEY , org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilderTest.ANSIBLE_PLAYBOOK_FULL_PATH ) , command ) ; }
Source:
public void testGetAllVmTagsWithIds ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Tags > result = dao.getAllVmTagsWithIds ( existingTag.getTagId ( ) . toString ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllVmTagsWithIds ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Tags > result = dao.getAllVmTagsWithIds ( existingTag.getTagId ( ) . toString ( ) ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertFalse ( result.isEmpty ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VdsStatic getByVdsName ( java.lang.String vdsName ) { return singleResult ( entityManager.createNamedQuery ( "VdsStatic.getByVdsName" , org.ovirt.engine.core.common.businessentities.VdsStatic.class ) . setParameter ( "name" , vdsName ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VdsStatic getByVdsName ( java.lang.String vdsName ) { return getCallsHandler ( ) . executeRead ( "GetVdsStaticByVdsName" , org.ovirt.engine.core.dao.VdsStaticDAODbFacadeImpl.VdsStaticRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "host_name" , vdsName ) ) ; }
Source:
public void prepareFromRequest ( com.gwtplatform.mvp.client.proxy.PlaceRequest request ) { super . prepareFromRequest ( request ) ; if ( isTabAccessible ( ) ) { org.ovirt.engine.ui.common.presenter.DynamicTabPresenter.getProxy ( ) . manualReveal ( this ) ; } else { org.ovirt.engine.ui.common.presenter.DynamicTabPresenter.getProxy ( ) . manualRevealFailed ( ) ; } }

Target:
public void prepareFromRequest ( com.gwtplatform.mvp.shared.proxy.PlaceRequest request ) { super . prepareFromRequest ( request ) ; if ( isTabAccessible ( ) ) { org.ovirt.engine.ui.common.presenter.DynamicTabPresenter.getProxy ( ) . manualReveal ( this ) ; } else { org.ovirt.engine.ui.common.presenter.DynamicTabPresenter.getProxy ( ) . manualRevealFailed ( ) ; } }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.QuotaVdsGroup > getQuotaVdsGroupByVdsGroupGuid ( org.ovirt.engine.core.compat.Guid vdsGroupId , org.ovirt.engine.core.compat.Guid quotaId ) { return getQuotaVdsGroupByVdsGroupGuid ( vdsGroupId , quotaId , true ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.QuotaCluster > getQuotaClusterByClusterGuid ( org.ovirt.engine.core.compat.Guid clusterId , org.ovirt.engine.core.compat.Guid quotaId ) { return getQuotaClusterByClusterGuid ( clusterId , quotaId , true ) ; }
Source:
public void testCDAStoragePoolNotUp ( ) { storagePool.setStatus ( StoragePoolStatus.Uninitialized ) ; org.junit.Assert.assertFalse ( "canDoAction did not fail on a Storage Pool which is not up" , command.canDoAction ( ) ) ; org.ovirt.engine.core.bll.CommandAssertUtils.checkMessagesContains ( command , VdcBllMessages.ACTION_TYPE_FAILED_IMAGE_REPOSITORY_NOT_FOUND ) ; }

Target:
public void testCDAStoragePoolHasTasks ( ) { java.util.List < org.ovirt.engine.core.compat.Guid > tasks = java.util.Arrays.asList ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.mockito.Mockito.doReturn ( tasks ) . when ( asyncTaskDAOMock ) . getAsyncTaskIdsByStoragePoolId ( storagePoolId ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( "canDoAction did not fail on a Storage Pool with running tasks" , command , VdcBllMessages.CANNOT_FORCE_SELECT_SPM_STORAGE_POOL_HAS_RUNNING_TASKS ) ; }
Source:
private void filterAllStorageDomainsExceptOne ( java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > storageDomains , org.ovirt.engine.core.common.businessentities.StorageDomain expectedStorageDomain ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > filteredStorageDomains = new java.util.ArrayList ( memoryStorageHandler.filterStorageDomains ( storageDomains , memoryDisks ) ) ; org.junit.Assert.assertEquals ( filteredStorageDomains , java.util.Arrays.asList ( expectedStorageDomain ) ) ; }

Target:
private void filterAllStorageDomainsExceptOne ( java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > storageDomains , org.ovirt.engine.core.common.businessentities.StorageDomain expectedStorageDomain ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > filteredStorageDomains = new java.util.ArrayList ( memoryStorageHandler.filterStorageDomains ( storageDomains , memoryDisks ) ) ; org.junit.Assert.assertEquals ( filteredStorageDomains , java.util.Collections.singletonList ( expectedStorageDomain ) ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel model ) { return ( ( org.ovirt.engine.ui.uicommonweb.models.providers.ExternalNetwork ) ( model ) ) . getNetwork ( ) . getName ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel model ) { return ( ( org.ovirt.engine.ui.uicommonweb.models.providers.ExternalNetwork ) ( model ) ) . getDisplayName ( ) ; }
Source:
void changeStateOfElementsWhenAccessIsForEveryone ( boolean isEveryone ) ;

Target:
void changeStateOfElementsWhenAccessIsForEveryoneOrMyGroups ( boolean isEveryone , boolean isMyGroups ) ;
Source:
public void testSubResourceLocatorBadGuid ( ) throws java.lang.Exception { control.replay ( ) ; try { resource.getVmApplicationResource ( "foo" ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testSubResourceLocatorBadGuid ( ) throws java.lang.Exception { control.replay ( ) ; try { resource.getApplicationResource ( "foo" ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }
Source:
public org.ovirt.engine.core.common.businessentities.Snapshot addActiveSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId , org.ovirt.engine.core.common.businessentities.VM vm , org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotStatus snapshotStatus , final org.ovirt.engine.core.bll.context.CompensationContext compensationContext ) { return addSnapshot ( snapshotId , "Active VM" , snapshotStatus , SnapshotType.ACTIVE , vm , false , StringUtils.EMPTY , compensationContext ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.Snapshot addActiveSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId , org.ovirt.engine.core.common.businessentities.VM vm , org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotStatus snapshotStatus , final org.ovirt.engine.core.bll.context.CompensationContext compensationContext ) { return addActiveSnapshot ( snapshotId , vm , snapshotStatus , "" , compensationContext ) ; }
Source:
private boolean isConnectionException ( java.lang.Throwable e ) { return ( e.getCause ( ) ) instanceof java.net.ConnectException ; }

Target:
private void deleteObsoleteHistoryData ( ) throws java.sql.SQLException { eventsManager.deleteObsoleteHistoryData ( prop.getInteger ( NotificationProperties.DAYS_TO_KEEP_HISTORY ) ) ; }
Source:
protected void onClose ( ) { org.ovirt.engine.ui.common.presenter.AbstractPopupPresenterWidget.getView ( ) . hide ( ) ; }

Target:
protected void onClose ( ) { if ( shouldDestroyOnClose ( ) ) { hideAndUnbind ( ) ; } else { org.ovirt.engine.ui.common.presenter.AbstractPopupPresenterWidget.getView ( ) . hide ( ) ; } }
Source:
protected void setUpGetStorageDomainExpectations ( org.ovirt.engine.core.common.businessentities.StorageDomainType domainType , java.lang.Object failure ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetStorageDomainById , org.ovirt.engine.core.common.queries.StorageDomainQueryParametersBase.class , new java.lang.String [ ] { "StorageDomainId" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendExportDomainDisksResourceTest.STORAGE_DOMAIN_ID } , org.ovirt.engine.api.restapi.resource.BackendStorageDomainTemplatesResourceTest.setUpStorageDomain ( domainType ) , failure ) ; }

Target:
protected void setUpGetStorageDomainExpectations ( org.ovirt.engine.core.common.businessentities.StorageDomainType domainType , java.lang.Object failure ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetStorageDomainById , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendExportDomainDisksResourceTest.STORAGE_DOMAIN_ID } , org.ovirt.engine.api.restapi.resource.BackendStorageDomainTemplatesResourceTest.setUpStorageDomain ( domainType ) , failure ) ; }
Source:
org.ovirt.engine.core.common.businessentities.Erratum getErratumForHost ( org.ovirt.engine.core.common.businessentities.VdsStatic host , java.lang.String erratumId ) ;

Target:
org.ovirt.engine.core.common.businessentities.Erratum getErratumForHost ( java.lang.String hostName , java.lang.String erratumId ) ;
Source:
public static void validateFailure ( java.util.List < org.ovirt.engine.core.common.utils.customprop.ValidationError > errors , org.ovirt.engine.core.common.utils.customprop.ValidationFailureReason reason ) { org.junit.Assert.assertFalse ( errors.isEmpty ( ) ) ; org.junit.Assert.assertEquals ( reason , errors.get ( 0 ) . getReason ( ) ) ; }

Target:
public static void validateFailure ( java.util.List < org.ovirt.engine.core.common.utils.customprop.ValidationError > errors , org.ovirt.engine.core.common.utils.customprop.ValidationFailureReason reason ) { org.junit.jupiter.api.Assertions.assertFalse ( errors.isEmpty ( ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( reason , errors.get ( 0 ) . getReason ( ) ) ; }
Source:
public void updateGlusterHook ( org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity hook , org.ovirt.engine.core.compat.Guid hostId ) { getCallsHandler ( ) . executeModification ( "UpdateGlusterHook" , createFullParametersMapper ( hook ) ) ; updateGlusterServerHook ( hook , hostId ) ; }

Target:
public void updateGlusterHookConflictStatus ( org.ovirt.engine.core.compat.Guid hookId , java.lang.Integer conflictStatus ) { getCallsHandler ( ) . executeModification ( "UpdateGlusterHookConflictStatus" , createIdParameterMapper ( hookId ) . addValue ( "conflict_status" , conflictStatus ) ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.VDSGroup createDefaultVdsGroupWithDifferentCpuName ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup group = org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.createDefaultVdsGroup ( ) ; group.setcpu_name ( "Another CPU name" ) ; return group ; }

Target:
private static org.ovirt.engine.core.common.businessentities.VDSGroup createDefaultVdsGroupWithDifferentCpuName ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup group = org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.createDefaultVdsGroup ( ) ; group.setCpuName ( "Another CPU name" ) ; return group ; }
Source:
private java.util.Map < java.lang.String , java.lang.Object > executeImpl ( java.lang.String procedureName , org.springframework.jdbc.core.namedparam.MapSqlParameterSource paramsSource , org.ovirt.engine.core.dal.dbbroker.SimpleJdbcCallsHandler.CallCreator callCreator ) { org.springframework.jdbc.core.simple.SimpleJdbcCall call = getCall ( procedureName , callCreator ) ; return call.execute ( paramsSource ) ; }

Target:
private < T > java.util.Map < java.lang.String , java.lang.Object > executeImpl ( java.lang.String procedureName , org.springframework.jdbc.core.namedparam.MapSqlParameterSource paramsSource , org.ovirt.engine.core.dal.dbbroker.SimpleJdbcCallsHandler.CallCreator callCreatorr ) { return executeImpl ( procedureName , paramsSource , callCreatorr , null ) ; }
Source:
public java.lang.String getTooltip ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel value ) { return org.ovirt.engine.ui.uicompat.EnumTranslator.createAndTranslate ( value.getOsType ( ) ) ; }

Target:
public java.lang.String getTooltip ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel value ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getOsName ( value.getOsId ( ) ) ; }
Source:
public static java.lang.String GenerateOTP ( ) { java.security.SecureRandom secr = new java.security.SecureRandom ( ) ; byte [ ] arrRandom = new byte [ 9 ] ; secr.nextBytes ( arrRandom ) ; return org.apache.commons.codec.binary.Base64.encodeBase64String ( arrRandom ) ; }

Target:
public static java.lang.String GenerateOTP ( ) { java.security.SecureRandom secr = new java.security.SecureRandom ( ) ; byte [ ] arrRandom = new byte [ 9 ] ; secr.nextBytes ( arrRandom ) ; return new org.apache.commons.codec.binary.Base64 ( 0 ) . encodeToString ( arrRandom ) ; }
Source:
java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getVdsToRun ( org.ovirt.engine.core.common.businessentities.VDSType type , org.ovirt.engine.core.compat.Guid groupId , org.ovirt.engine.core.common.businessentities.VDSStatus status , int minNrOfCpus ) ;

Target:
java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAllOfType ( org.ovirt.engine.core.common.businessentities.VDSType vds ) ;
Source:
public boolean getAutoStart ( ) { return org.ovirt.engine.core.bll.RunVmCommandBase.getVm ( ) . getauto_startup ( ) ; }

Target:
public boolean getAutoStart ( ) { return org.ovirt.engine.core.bll.RunVmCommandBase.getVm ( ) . isAutoStartup ( ) ; }
Source:
public void markAsInvalid ( java.util.List < java.lang.String > validationHints ) { super . markAsInvalid ( validationHints ) ; }

Target:
public void markAsInvalid ( java.util.List < java.lang.String > validationHints ) { super . markAsInvalid ( validationHints ) ; getValidatedWidgetStyle ( ) . setWidth ( 75 , Unit.PCT ) ; }
Source:
protected org.ovirt.engine.core.bll.interfaces.BackendInternal getBackend ( ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) ; }

Target:
protected org.ovirt.engine.core.bll.interfaces.BackendInternal getBackend ( ) { return backend ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.scheduling.AffinityGroup affinityGroup ) { return affinityGroup.isEnforcing ( ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.scheduling.AffinityGroup > getAllHardAffinityGroups ( org.ovirt.engine.core.common.businessentities.Cluster cluster ) { return affinityGroupDao.getAllAffinityGroupsByClusterId ( cluster.getId ( ) ) . stream ( ) . filter ( AffinityGroup :: isEnforcing ) . collect ( java.util.stream.Collectors.toList ( ) ) ; }
Source:
java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getVdsToRun ( org.ovirt.engine.core.common.businessentities.VDSType [ ] types , org.ovirt.engine.core.compat.Guid groupId , org.ovirt.engine.core.common.businessentities.VDSStatus status , int minNrOfCpus ) ;

Target:
java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAllOfTypes ( org.ovirt.engine.core.common.businessentities.VDSType [ ] types ) ;
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { org.ovirt.engine.ui.uicommonweb.models.hosts.ConfigureLocalStorageModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.hosts.ConfigureLocalStorageModel ) ( ev.getContext ( ) ) ) ; model.stopProgress ( ) ; cancel ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel ) ( result.getState ( ) ) ) ; localModel.stopProgress ( ) ; cancelConfirm ( ) ; }
Source:
private void pinVmToHost ( org.ovirt.engine.core.compat.Guid hostId , org.ovirt.engine.ui.uicompat.IFrontendActionAsyncCallback callback ) { getEntity ( ) . setDedicatedVmForVds ( hostId ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runAction ( VdcActionType.UpdateVm , new org.ovirt.engine.core.common.action.VmManagementParametersBase ( getEntity ( ) . getStaticData ( ) ) , callback ) ; }

Target:
private void pinVmToHost ( org.ovirt.engine.core.compat.Guid hostId , org.ovirt.engine.ui.uicompat.IFrontendActionAsyncCallback callback ) { getEntity ( ) . setDedicatedVmForVdsList ( hostId ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runAction ( VdcActionType.UpdateVm , new org.ovirt.engine.core.common.action.VmManagementParametersBase ( getEntity ( ) . getStaticData ( ) ) , callback ) ; }
Source:
public void illegalCpuUpdate ( ) { createCommandWithDifferentCpuName ( ) ; cpuIsNotUpdatable ( ) ; cpuManufacturersMatch ( ) ; cpuExists ( ) ; clusterHasVMs ( ) ; clusterHasVds ( ) ; architectureIsUpdatable ( ) ; canDoActionFailedWithReason ( VdcBllMessages.VDS_GROUP_CPU_IS_NOT_UPDATABLE ) ; }

Target:
public void illegalCpuUpdate ( ) { createCommandWithDifferentCpuName ( ) ; cpuIsNotUpdatable ( ) ; cpuManufacturersMatch ( ) ; cpuExists ( ) ; clusterHasVMs ( ) ; clusterHasVds ( ) ; architectureIsUpdatable ( ) ; canDoActionFailedWithReason ( EngineMessage.VDS_GROUP_CPU_IS_NOT_UPDATABLE ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase call ( ) throws java.lang.Exception { return executeCommand ( command ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase call ( ) throws java.lang.Exception { return executeCommand ( command , cmdContext ) ; }
Source:
public java.lang.String getDefaultTitle ( ) { return org.ovirt.engine.ui.common.widget.table.column.AbstractImageResourceColumn.CONSTANTS.empty ( ) ; }

Target:
public org.ovirt.engine.ui.common.widget.table.cell.ImageResourceCell getCell ( ) { return ( ( org.ovirt.engine.ui.common.widget.table.cell.ImageResourceCell ) ( super . getCell ( ) ) ) ; }
Source:
public void setSanStorageModel ( org.ovirt.engine.ui.uicommonweb.models.storage.SanStorageModel value ) { sanStorageModel = value ; }

Target:
public int getQueryCounter ( ) { return queryCounter ; }
Source:
public void execute ( ) { executeCommand ( operation , commands.get ( 0 ) ) ; }

Target:
public void execute ( ) { executeCommand ( entry.getKey ( ) , commands.get ( 0 ) ) ; }
Source:
public void testValidModifiedBondsFailsWhenReferencingExistingNonBondInterface ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Bond bond = createBond ( ) ; org.ovirt.engine.core.bll.ValidationResult notABondValidationResult = new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.NETWORK_INTERFACE_IS_NOT_BOND , org.ovirt.engine.core.bll.validator.HostInterfaceValidator.VAR_NETWORK_INTERFACE_IS_NOT_BOND_ENTITY , bond.getName ( ) ) ; doTestValidModifiedBonds ( bond , ValidationResult.VALID , notABondValidationResult , notABondValidationResult , ValidationResult.VALID ) ; }

Target:
public void testValidModifiedBondsWhenAllOk ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Bond bond = new org.ovirt.engine.core.common.businessentities.network.Bond ( "bond1" ) ; bond.setSlaves ( java.util.Arrays.asList ( "slaveA" , "slaveB" ) ) ; doTestValidModifiedBonds ( bond , ValidationResult.VALID , ValidationResult.VALID , ValidationResult.VALID ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.StorageDomainStatic getStorageDomainStatic ( ) { return sd ; }

Target:
public org.ovirt.engine.core.common.businessentities.StorageDomainStatic getStorageDomain ( ) { return sd ; }
Source:
public boolean isMacInUse ( java.lang.String mac ) { return macsStorage.isMacInUse ( org.ovirt.engine.core.utils.MacAddressRangeUtils.macToLong ( mac ) ) ; }

Target:
public boolean isMacInUse ( java.lang.String mac ) { boolean result = macsStorage.isMacInUse ( org.ovirt.engine.core.utils.MacAddressRangeUtils.macToLong ( mac ) ) ; org.ovirt.engine.core.bll.network.macpool.MacPoolUsingRanges.log.debug ( "Mac isMacInUse={}" , mac , result ) ; return result ; }
Source:
private static org.ovirt.engine.core.common.businessentities.StoragePool createBasicPool ( ) { org.ovirt.engine.core.common.businessentities.StoragePool pool = new org.ovirt.engine.core.common.businessentities.StoragePool ( ) ; pool.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; pool.setName ( "Default" ) ; return pool ; }

Target:
private static org.ovirt.engine.core.common.businessentities.StoragePool createBasicPool ( ) { org.ovirt.engine.core.common.businessentities.StoragePool pool = new org.ovirt.engine.core.common.businessentities.StoragePool ( ) ; pool.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; pool.setName ( "Default" ) ; pool.setCompatibilityVersion ( Version.v3_5 ) ; return pool ; }
Source:
public org.ovirt.vdsm.jsonrpc.client.ResponseBuilder run ( org.codehaus.jackson.JsonNode params , org.ovirt.vdsm.jsonrpc.client.ResponseBuilder builder ) { return builder.withError ( ResultCodes.UNSUPPORTED.map ( ) ) ; }

Target:
public org.ovirt.vdsm.jsonrpc.client.JsonRpcResponse run ( org.codehaus.jackson.JsonNode params , org.codehaus.jackson.JsonNode requestId ) { return new org.ovirt.vdsm.jsonrpc.client.ResponseBuilder ( requestId ) . withError ( ResultCodes.UNSUPPORTED.map ( ) ) . build ( ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VdsStatic setUpVDStatic ( int index ) { org.ovirt.engine.core.common.businessentities.VdsStatic vds = new org.ovirt.engine.core.common.businessentities.VdsStatic ( ) ; vds.setId ( GUIDS [ index ] ) ; vds.setVdsName ( NAMES [ index ] ) ; return vds ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VdsStatic setUpVDStatic ( int index ) { org.ovirt.engine.core.common.businessentities.VdsStatic vds = new org.ovirt.engine.core.common.businessentities.VdsStatic ( ) ; vds.setId ( GUIDS [ index ] ) ; vds.setName ( NAMES [ index ] ) ; return vds ; }
Source:
public void run ( ) { switch ( getVdsGroup ( ) . getMigrateOnError ( ) ) { case YES : MigrateAllVms ( ) ; break ; case HA_ONLY : MigrateAllVms ( true ) ; break ; } }

Target:
public void run ( ) { switch ( getVdsGroup ( ) . getMigrateOnError ( ) ) { case YES : MigrateAllVms ( getExecutionContext ( ) ) ; break ; case HA_ONLY : MigrateAllVms ( getExecutionContext ( ) , true ) ; break ; } }
Source:
public void checkNotSync ( ) { initSyncStatus ( mockNetworkAttachment , false ) ; org.junit.Assert.assertTrue ( underTest.eval ( mockNetworkAttachment ) ) ; }

Target:
public void checkNotSync ( ) { initSyncStatus ( mockNetworkAttachment , false ) ; org.junit.Assert.assertTrue ( underTest.test ( mockNetworkAttachment ) ) ; }
Source:
protected org.ovirt.engine.core.bll.quota.QuotaManager getQuotaManager ( ) { return org.ovirt.engine.core.bll.quota.QuotaManager.getInstance ( ) ; }

Target:
private boolean isCompensationContext ( ) { return ( getParameters ( ) ) == null ; }
Source:
public void onRestApiSessionAcquired ( org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionAcquiredEvent event ) { manager.invokePluginsNowOrLater ( "RestApiSessionAcquired" , org.ovirt.engine.ui.webadmin.plugin.jsni.JsArrayHelper.createStringArray ( event.getSessionId ( ) ) ) ; }

Target:
public void onRestApiSessionAcquired ( org.ovirt.engine.ui.common.restapi.RestApiSessionAcquiredEvent event ) { manager.invokePluginsNowOrLater ( "RestApiSessionAcquired" , org.ovirt.engine.ui.webadmin.plugin.jsni.JsArrayHelper.createStringArray ( event.getSessionId ( ) ) ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase RunAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase params ) ;

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase runAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase params ) ;
Source:
private void AddErrorMessages ( org.ovirt.engine.core.dal.VdcBllMessages messageActionTypeParameter , org.ovirt.engine.core.dal.VdcBllMessages messageReason ) { addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__HOST ) ; addCanDoActionMessage ( messageActionTypeParameter ) ; addCanDoActionMessage ( messageReason ) ; }

Target:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__ACTIVATE ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__HOST ) ; }
Source:
private boolean TemplateExists ( ) { if ( ( ( getVmTemplate ( ) ) == null ) && ( ! ( getParameters ( ) . getCopyCollapse ( ) ) ) ) { addCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_TEMPLATE_DOES_NOT_EXIST ) ; return false ; } return true ; }

Target:
private boolean templateExists ( ) { if ( ( ( getVmTemplate ( ) ) == null ) && ( ! ( getParameters ( ) . getCopyCollapse ( ) ) ) ) { addCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_TEMPLATE_DOES_NOT_EXIST ) ; return false ; } return true ; }
Source:
public void setvds_strength ( int value ) { this . mVdsStatic.setvds_strength ( value ) ; }

Target:
public int getVdsStrength ( ) { return this . mVdsStatic.getVdsStrength ( ) ; }
Source:
protected java.lang.String getStorageArgs ( ) { return org.ovirt.engine.core.bll.storage.AddStorageDomainCommand.getStorageDomain ( ) . getstorage ( ) ; }

Target:
protected java.lang.String getStorageArgs ( ) { return org.ovirt.engine.core.bll.storage.AddStorageDomainCommand.getStorageDomain ( ) . getStorage ( ) ; }
Source:
public static void getHostList ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getHostListByStatus ( aQuery , null ) ; }

Target:
public void countAllTemplates ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { aQuery.converterCallback = new org.ovirt.engine.ui.frontend.IAsyncConverter ( ) { @ java.lang.Override public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; } } ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetVmTemplateCount , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , aQuery ) ; }
Source:
public void testNetworkNotChangedWhenOldAttachmentIsNull ( ) throws java.lang.Exception { org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.validator.NetworkAttachmentValidator ( null , null ) . networkNotChanged ( null ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testNetworkNotChangedWhenOldAttachmentIsNull ( ) throws java.lang.Exception { org.junit.Assert.assertThat ( createNetworkAttachmentValidator ( null ) . networkNotChanged ( null ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.Network network ) { return network.getId ( ) . equals ( nc.getnetwork_id ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.Network network ) { return network.getId ( ) . equals ( nc.getNetworkId ( ) ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.utils.customprop.ValidationError > validateCustomProperties ( org.ovirt.engine.core.common.businessentities.VmStatic vmStaticFromParams ) { return org.ovirt.engine.core.utils.customprop.VmPropertiesUtils.getInstance ( ) . validateVMProperties ( org.ovirt.engine.core.bll.VmCommand.getVdsGroup ( ) . getcompatibility_version ( ) , vmStaticFromParams ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.utils.customprop.ValidationError > validateCustomProperties ( org.ovirt.engine.core.common.businessentities.VmStatic vmStaticFromParams ) { return org.ovirt.engine.core.utils.customprop.VmPropertiesUtils.getInstance ( ) . validateVmProperties ( org.ovirt.engine.core.bll.VmCommand.getVdsGroup ( ) . getcompatibility_version ( ) , vmStaticFromParams.getCustomProperties ( ) ) ; }
Source:
public void clearAllDismissed ( ) { getCallsHandler ( ) . executeModification ( "ClearAllDismissedAuditLogs" , getCustomMapSqlParameterSource ( ) ) ; }

Target:
public void clearAllEvents ( ) { getCallsHandler ( ) . executeModification ( "ClearAllAuditLogs" , getCustomMapSqlParameterSource ( ) ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { testMessages = new org.ovirt.engine.ui.common.utils.DynamicMessages ( null ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { testMessages = new org.ovirt.engine.ui.common.utils.BaseDynamicMessages ( null ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( getBootProtocol ( ) , getAddress ( ) , getNetmask ( ) , getGateway ( ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.network.IPv4Address > getIPv4Addresses ( ) { return iPv4Addresses ; }
Source:
public void setVncHost ( java.lang.String vncHost ) { this . vncHost = vncHost ; }

Target:
public java.lang.String getVncHost ( ) { return consoleOptions.getHost ( ) ; }
Source:
public int hashCode ( ) { int hashCode = 23 ; hashCode = ( hashCode * 37 ) + ( java.lang.Integer.valueOf ( refreshRate ) . hashCode ( ) ) ; return hashCode ; }

Target:
public int hashCode ( ) { return java.util.Objects.hashCode ( refreshRate ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.StoragePool createHigherVersionStoragePool ( ) { org.ovirt.engine.core.common.businessentities.StoragePool pool = org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommandTest.createBasicPool ( ) ; pool.setIsLocal ( true ) ; pool.setcompatibility_version ( org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommandTest.VERSION_1_2 ) ; return pool ; }

Target:
private void failOnDowngradingWithStorageType ( org.ovirt.engine.core.common.businessentities.StorageType storageType ) { storagePoolVersion35 ( ) ; cmd.getStoragePool ( ) . setCompatibilityVersion ( Version.v3_1 ) ; org.ovirt.engine.core.common.businessentities.StorageDomain sd = createStorageDomain ( StorageFormatType.V3 , storageType ) ; setAttachedDomains ( sd ) ; canDoActionFailed ( VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAINS_ARE_NOT_SUPPORTED_IN_DOWNGRADED_VERSION ) ; }
Source:
public java.lang.String getVdcUserDomainController ( ) { return org.ovirt.engine.ui.frontend.Frontend.getLoggedInUser ( ) . getDomainControler ( ) ; }

Target:
public java.lang.String getUserDomainController ( ) { return org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . getLoggedInUser ( ) . getDomain ( ) ; }
Source:
public void lowerVersionNoHostsNoNetwork ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }

Target:
public void lowerVersionNoHostsNoNetwork ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionSuccess ( cmd ) ; }
Source:
protected void runningFailed ( ) { if ( memoryFromSnapshotUsed ) { removeMemoryFromActiveSnapshot ( ) ; } super . runningFailed ( ) ; }

Target:
protected void runningFailed ( ) { cleanupPassthroughVnics ( ) ; if ( memoryFromSnapshotUsed ) { removeMemoryFromActiveSnapshot ( ) ; } super . runningFailed ( ) ; }
Source:
public static boolean isDisplayStringCustom ( java.lang.String displayString ) { return ! ( org.ovirt.engine.ui.uicommonweb.models.providers.NeutronPluginTranslator.pluginForDisplay.containsKey ( displayString ) ) ; }

Target:
public static org.ovirt.engine.core.common.businessentities.OpenstackNetworkPluginType getPluginTypeForDisplayString ( java.lang.String displayString ) { return org.ovirt.engine.ui.uicommonweb.models.providers.NeutronPluginTranslator.pluginForDisplay.get ( displayString.toLowerCase ( ) ) ; }
Source:
public void checkRemoveNotExistingConnection ( ) { parameters.setStorageServerConnection ( NFSConnection ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_STORAGE_CONNECTION_NOT_EXIST ) ; }

Target:
public void checkRemoveNotExistingConnection ( ) { parameters.setStorageServerConnection ( org.ovirt.engine.core.bll.storage.connection.RemoveStorageServerConnectionCommandTest.NFSConnection ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_STORAGE_CONNECTION_NOT_EXIST ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.DiskImage createShareableCowDisk ( ) { org.ovirt.engine.core.common.businessentities.DiskImage disk = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; disk.setId ( diskImageGuid ) ; disk.setvolume_format ( VolumeFormat.COW ) ; disk.setShareable ( true ) ; return disk ; }

Target:
private org.ovirt.engine.core.common.businessentities.DiskImage createShareableDisk ( org.ovirt.engine.core.common.businessentities.VolumeFormat volumeFormat ) { org.ovirt.engine.core.common.businessentities.DiskImage disk = createDiskImage ( ) ; disk.setvolume_format ( volumeFormat ) ; disk.setShareable ( true ) ; return disk ; }
Source:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.aaa.DbUser > result = dao.getAll ( ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; org.junit.Assert.assertEquals ( 4 , result.size ( ) ) ; }

Target:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.aaa.DbUser > result = dao.getAll ( ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertFalse ( result.isEmpty ( ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( 4 , result.size ( ) ) ; }
Source:
public boolean hasSpiceSupport ( int osId , org.ovirt.engine.core.compat.Version version ) { return getBoolean ( getValueByVersion ( idToUnameLookup.get ( osId ) , "spiceSupport" , version ) , false ) ; }

Target:
public boolean hasNicHotplugSupport ( int osId , org.ovirt.engine.core.compat.Version version ) { return getBoolean ( getValueByVersion ( idToUnameLookup.get ( osId ) , "devices.network.hotplugSupport" , version ) , false ) ; }
Source:
public void testNicExistsWhenNicNameIsNull ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment = new org.ovirt.engine.core.common.businessentities.network.NetworkAttachment ( ) ; attachment.setNicName ( null ) ; org.junit.Assert.assertThat ( createNetworkAttachmentValidator ( attachment ) . nicExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.HOST_NETWORK_INTERFACE_NOT_EXIST ) ) ; }

Target:
public void testNicExistsWhenNicNameIsNotNull ( ) { org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment = new org.ovirt.engine.core.common.businessentities.network.NetworkAttachment ( ) ; attachment.setNicId ( null ) ; attachment.setNicName ( "whatever" ) ; org.junit.Assert.assertThat ( createNetworkAttachmentValidator ( attachment ) . nicNameIsSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; if ( ( getEntity ( ) ) == null ) { return ; } org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity glusterVolumeEntity = ( ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity ) ( getEntity ( ) ) ) ; setItems ( glusterVolumeEntity.getBricks ( ) ) ; }

Target:
protected void syncSearch ( ) { if ( ( getEntity ( ) ) == null ) { return ; } org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity glusterVolumeEntity = ( ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity ) ( getEntity ( ) ) ) ; setItems ( glusterVolumeEntity.getBricks ( ) ) ; }
Source:
public java.lang.Boolean getLiveSnapshotSupport ( ) { return vdsDynamic.getLiveSnapshotSupport ( ) ; }

Target:
public boolean isHostedEngineHost ( ) { return hostedEngineHost ; }