auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testValidateNetworkExclusiveOnNicsVmNetworkMustBeSoleAttachedInterface2 ( ) throws java.lang.Exception { checkVmNetworkIsSoleAssignedInterface ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NETWORK_INTERFACES_NOT_EXCLUSIVELY_USED_BY_NETWORK ) , vmNetwork1 , nonVmNetwork1 ) ; }

Target:
public void testValidateNetworkExclusiveOnNicAtMostOneNonVmNetwork ( ) throws java.lang.Exception { checkVmNetworkIsSoleAssignedInterface ( true , java.util.Arrays.asList ( NetworkType.VLAN , NetworkType.NON_VM ) , vlanNetwork , nonVmNetwork1 ) ; }
Source:
protected void updateVMDetails ( org.ovirt.engine.core.common.businessentities.VM vm ) { org.ovirt.engine.core.bll.VmHandler.updateDisksFromDb ( vm ) ; org.ovirt.engine.core.bll.VmHandler.UpdateVmGuestAgentVersion ( vm ) ; org.ovirt.engine.core.bll.VmHandler.updateNetworkInterfacesFromDb ( vm ) ; }

Target:
protected void updateVMDetails ( org.ovirt.engine.core.common.businessentities.VM vm ) { org.ovirt.engine.core.bll.VmHandler.updateDisksFromDb ( vm ) ; org.ovirt.engine.core.bll.VmHandler.updateVmGuestAgentVersion ( vm ) ; org.ovirt.engine.core.bll.VmHandler.updateNetworkInterfacesFromDb ( vm ) ; }
Source:
public void setTooltip ( com.google.gwt.safehtml.shared.SafeHtml tooltip ) { org.ovirt.engine.ui.common.widget.tooltip.TooltipMixin.addTooltipToElement ( tooltip , getElement ( ) ) ; }

Target:
public void setTooltip ( java.lang.String tooltip ) { org.ovirt.engine.ui.common.widget.tooltip.ElementTooltipUtils.setTooltipOnElement ( tooltip , getElement ( ) ) ; }
Source:
public void testRemoveNonExistant ( ) { setUpGetDomainExpectations ( StorageType.NFS , false ) ; try { resource.remove ( ) ; org.junit.jupiter.api.Assertions.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testRemoveNonExistant ( ) { setUpGetDomainExpectations ( StorageType.NFS , false ) ; verifyNotFoundException ( org.junit.jupiter.api.Assertions.assertThrows ( javax.ws.rs.WebApplicationException.class , ( ) -> org.ovirt.engine.api.restapi.resource.resource.remove ( ) ) ) ; }
Source:
private void setupExpectations ( org.ovirt.engine.core.common.mode.ApplicationMode appMode ) { current.setApplicationMode ( appMode ) ; resource.setUriInfo ( setUpUriInfo ( ) ) ; setUpGetSystemVersionExpectations ( ) ; setUpGetSystemStatisticsExpectations ( ) ; }

Target:
private void setupExpectations ( org.ovirt.engine.core.common.mode.ApplicationMode appMode ) { current.setApplicationMode ( appMode ) ; resource.setUriInfo ( setUpUriInfo ( ) ) ; setUpGetSystemVersionExpectations ( ) ; setUpGetUserBySessionExpectations ( ) ; setUpGetSystemStatisticsExpectations ( ) ; }
Source:
public void setSearchStringPrefix ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( searchStringPrefix , value ) ) ) { searchStringPrefix = value ; SearchStringPrefixChanged ( ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "SearchStringPrefix" ) ) ; } }

Target:
public void setSearchStringPrefix ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( searchStringPrefix , value ) ) ) { searchStringPrefix = value ; searchStringPrefixChanged ( ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "SearchStringPrefix" ) ) ; } }
Source:
public void testExecuteQueryWithFilteringLUNsDisabled ( ) { org.ovirt.engine.core.bll.storage.GetDeviceListQueryTest.mcr.mockConfigValue ( ConfigValues.FilteringLUNsEnabled , Version.v3_1 , false ) ; lunsExpected = lunsInput ; internalExecuteQuery ( ) ; }

Target:
public void testExecuteQueryWithFilteringLUNsDisabled ( ) { mcr.mockConfigValue ( ConfigValues.FilteringLUNsEnabled , Version.v3_1 , false ) ; lunsExpected = lunsInput ; internalExecuteQuery ( ) ; }
Source:
public java.lang.Void runInTransaction ( ) { getVmDeviceDao ( ) . updateAll ( "UpdateVmDeviceForHotPlugDisk" , devices ) ; org.ovirt.engine.core.bll.VmHandler.updateDisksFromDb ( getVm ( ) ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { getVmStaticDAO ( ) . incrementDbGeneration ( getVm ( ) . getId ( ) ) ; getVmDeviceDao ( ) . updateAll ( "UpdateVmDeviceForHotPlugDisk" , devices ) ; org.ovirt.engine.core.bll.VmHandler.updateDisksFromDb ( getVm ( ) ) ; return null ; }
Source:
public void getEngineTimeStamp ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetEngineTimestamp , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , aQuery ) ; }

Target:
public void getGlusterSnapshotConfig ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid clusterId , org.ovirt.engine.core.compat.Guid volumeId ) { aQuery.setHandleFailure ( true ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetGlusterVolumeSnapshotConfig , new org.ovirt.engine.core.common.queries.gluster.GlusterVolumeQueriesParameters ( clusterId , volumeId ) , aQuery ) ; }
Source:
private boolean isActivateDeactivateAllowedForVmStatus ( org.ovirt.engine.core.common.businessentities.VMStatus vmStatus ) { return ( vmStatus == ( org.ovirt.engine.core.common.businessentities.VMStatus.Up ) ) || ( vmStatus == ( org.ovirt.engine.core.common.businessentities.VMStatus.Down ) ) ; }

Target:
private boolean activateDeactivateVmNicAllowed ( org.ovirt.engine.core.common.businessentities.VMStatus vmStatus ) { return ( vmStatus == ( org.ovirt.engine.core.common.businessentities.VMStatus.Up ) ) || ( vmStatus == ( org.ovirt.engine.core.common.businessentities.VMStatus.Down ) ) ; }
Source:
public boolean isExtendImageSizeEnabled ( ) { return ( getEntity ( ) ) != null ? org.ovirt.engine.core.common.VdcActionUtils.CanExecute ( java.util.Arrays.asList ( getEntity ( ) ) , org.ovirt.engine.core.common.businessentities.VM.class , VdcActionType.ExtendImageSize ) : false ; }

Target:
public boolean isExtendImageSizeEnabled ( ) { return ( getEntity ( ) ) != null ? org.ovirt.engine.core.common.VdcActionUtils.canExecute ( java.util.Arrays.asList ( getEntity ( ) ) , org.ovirt.engine.core.common.businessentities.VM.class , VdcActionType.ExtendImageSize ) : false ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.DetailTabModelProvider < org.ovirt.engine.ui.uicommonweb.models.EngineErrataListModel , org.ovirt.engine.ui.uicommonweb.models.EntityModel < org.ovirt.engine.core.common.businessentities.Erratum > > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.errata.SubTabEngineErrataDetailsPresenter.constants.errataDetailsSubTabLabel ( ) , 1 , 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.errata.SubTabEngineErrataDetailsPresenter.constants.errataDetailsSubTabLabel ( ) , 1 ) ; }
Source:
protected boolean canDoAction ( ) { if ( ( getAffinityGroupDao ( ) . getByName ( getParameters ( ) . getAffinityGroup ( ) . getName ( ) ) ) != null ) { return failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_AFFINITY_GROUP_NAME_EXISTS ) ; } return validateParameters ( ) ; }

Target:
protected boolean validate ( ) { if ( ( getAffinityGroupDao ( ) . getByName ( getParameters ( ) . getAffinityGroup ( ) . getName ( ) ) ) != null ) { return failValidation ( EngineMessage.ACTION_TYPE_FAILED_AFFINITY_GROUP_NAME_EXISTS ) ; } return validateParameters ( ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > getVdsGroups ( ) { return getBackendCollection ( VdcQueryType.GetVdsGroupsByStoragePoolId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( dataCenterId ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > getClusters ( ) { return getBackendCollection ( VdcQueryType.GetClustersByStoragePoolId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( dataCenterId ) ) ; }
Source:
public void networkNull ( ) throws java.lang.Exception { validator = new org.ovirt.engine.core.bll.validator.NetworkValidator ( null ) ; org.junit.Assert.assertEquals ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.NETWORK_NOT_EXISTS ) , validator.networkIsSet ( ) ) ; }

Target:
public void networkNull ( ) throws java.lang.Exception { validator = new org.ovirt.engine.core.bll.validator.NetworkValidator ( null ) ; org.junit.Assert.assertThat ( validator.networkIsSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NETWORK_NOT_EXISTS ) ) ; }
Source:
public org.ovirt.engine.core.compat.Version getCompatibilityVersion ( org.ovirt.engine.core.common.businessentities.VM vm ) { return getCompatibilityVersion ( vm.getStaticData ( ) ) ; }

Target:
public static org.ovirt.engine.core.compat.Version getCompatibilityVersion ( org.ovirt.engine.core.common.businessentities.VM vm ) { return org.ovirt.engine.core.bll.utils.ClusterUtils.getCompatibilityVersion ( vm.getStaticData ( ) ) ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.provider.UpdateProviderCommand.getDbFacade ( ) . getNetworkProviderDao ( ) . update ( getProvider ( ) ) ; org.ovirt.engine.core.bll.provider.UpdateProviderCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { getProviderDao ( ) . update ( getProvider ( ) ) ; org.ovirt.engine.core.bll.provider.UpdateProviderCommand.setSucceeded ( true ) ; }
Source:
public boolean getRefreshStatistics ( ) { if ( ( vmsRefresher ) == null ) { return false ; } return vmsRefresher.getRefreshStatistics ( ) ; }

Target:
private void updateIteration ( ) { if ( ( refreshIteration ) == ( NUMBER_HOST_REFRESHES_BEFORE_SAVE ) ) { refreshIteration = 1 ; } else { ( refreshIteration ) ++ ; } }
Source:
public void getNonExistentVariable ( ) { org.ovirt.engine.core.common.ExternalVariable found = dao.get ( "non-existent" ) ; org.junit.Assert.assertNull ( found ) ; }

Target:
public void getNonExistentVariable ( ) { org.ovirt.engine.core.common.ExternalVariable found = dao.get ( "non-existent" ) ; org.junit.jupiter.api.Assertions.assertNull ( found ) ; }
Source:
private void addMemoryDisk ( ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage memoryDisk = org.ovirt.engine.core.bll.memory.MemoryUtils.createHibernationMemoryDisk ( org.ovirt.engine.core.bll.HibernateVmCommand.getVm ( ) , org.ovirt.engine.core.bll.HibernateVmCommand.getStorageDomain ( ) . getStorageType ( ) ) ; addDisk ( memoryDisk ) ; }

Target:
private void addMemoryDisk ( ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage memoryDisk = org.ovirt.engine.core.bll.memory.MemoryUtils.createHibernationMemoryDisk ( org.ovirt.engine.core.bll.HibernateVmCommand.getVm ( ) , org.ovirt.engine.core.bll.HibernateVmCommand.getStorageDomain ( ) . getStorageType ( ) , vmOverheadCalculator ) ; addDisk ( memoryDisk ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createVdsNetworkInterfaceWithStaticIp ( java.lang.String ip ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface networkInterface = new org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface ( ) ; networkInterface.setAddress ( ip ) ; networkInterface.setBootProtocol ( NetworkBootProtocol.STATIC_IP ) ; return networkInterface ; }

Target:
private static org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createVdsNetworkInterfaceWithStaticIp ( java.lang.String ip ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface networkInterface = new org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface ( ) ; networkInterface.setIpv4Address ( ip ) ; networkInterface.setIpv4BootProtocol ( NetworkBootProtocol.STATIC_IP ) ; return networkInterface ; }
Source:
public void testGetAllForStoragePoolNoVds ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result = dao.getAllForStoragePool ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; org.ovirt.engine.core.dao.VdsDAOTest.assertIncorrectGetResult ( result ) ; }

Target:
public void testGetAllForStoragePoolNoVds ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result = dao.getAllForStoragePool ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.ovirt.engine.core.dao.VdsDAOTest.assertIncorrectGetResult ( result ) ; }
Source:
public void setVmId ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( vmId , value ) ) ) { vmId = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "VmId" ) ) ; } }

Target:
public void setVmId ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( vmId , value ) ) ) { vmId = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "VmId" ) ) ; } }
Source:
public void setHosts ( java.util.List < org.ovirt.engine.ui.uicommonweb.models.common.HostInfo > value ) { if ( ( hosts ) != value ) { hosts = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "Hosts" ) ) ; } }

Target:
public void setHosts ( java.util.List < org.ovirt.engine.ui.uicommonweb.models.common.HostInfo > value ) { if ( ( hosts ) != value ) { hosts = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Hosts" ) ) ; } }
Source:
public org.ovirt.engine.core.common.businessentities.VmOsType getos ( ) { return this . getvm_os ( ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getQuotaId ( ) { return this . vmStatic.getQuotaId ( ) ; }
Source:
protected org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfigMap createWidgetConfiguration ( ) { return super . createWidgetConfiguration ( ) . putAll ( poolSpecificFields ( ) , org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfig.hiddenField ( ) ) ; }

Target:
protected org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfigMap createWidgetConfiguration ( ) { return super . createWidgetConfiguration ( ) . putAll ( poolSpecificFields ( ) , org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfig.hiddenField ( ) ) . update ( templateVersionNameEditor , org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfig.hiddenField ( ) ) ; }
Source:
public void testAddUser ( ) 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.GetAdGroupByIdParameters.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 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.GetAdGroupByIdParameters.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 ) ; }
Source:
public abstract void addColumnWithHtmlHeader ( com.google.gwt.user.cellview.client.Column < T , ? > column , com.google.gwt.safehtml.shared.SafeHtml headerHtml , java.lang.String width ) ;

Target:
void addColumn ( com.google.gwt.user.cellview.client.Column < T , ? > column , org.ovirt.engine.ui.common.widget.table.header.SafeHtmlHeader header ) ;
Source:
public void deleteRunningJobsOfTasklessCommands ( ) { updateQueryGetResult ( entityManager.createNativeQuery ( "select cast(DeleteRunningJobsOfTasklessCommands as text) from DeleteRunningJobsOfTasklessCommands()" ) ) ; }

Target:
public void deleteRunningJobsOfTasklessCommands ( ) { updateQueryGetResult ( getEntityManager ( ) . createNativeQuery ( "select cast(DeleteRunningJobsOfTasklessCommands as text) from DeleteRunningJobsOfTasklessCommands()" ) ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > shutdown ( java.lang.String vmId ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterHookDisable ( java.lang.String glusterCommand , java.lang.String level , java.lang.String hookName ) ;
Source:
public static boolean isDataActiveStorageDomain ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { boolean isData = storageDomain.getStorageDomainType ( ) . isDataDomain ( ) ; boolean isActive = org.ovirt.engine.ui.uicommonweb.Linq.isActiveStorageDomain ( storageDomain ) ; return isData && isActive ; }

Target:
public static boolean isDataActiveStorageDomain ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { boolean isData = storageDomain.getStorageDomainType ( ) . isDataDomain ( ) ; boolean isActive = ( storageDomain.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Active ) ; return isData && isActive ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { return source != null ? source : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSession > ( ) ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { return source ; }
Source:
private boolean logicalNetworkExists ( ) { if ( ( org.ovirt.engine.core.bll.network.cluster.AttachNetworkToVdsGroupCommand.getNetworkDAO ( ) . get ( getNetworkCluster ( ) . getnetwork_id ( ) ) ) != null ) { return true ; } addCanDoActionMessage ( VdcBllMessages.NETWORK_NOT_EXISTS ) ; return false ; }

Target:
private boolean logicalNetworkExists ( ) { if ( ( org.ovirt.engine.core.bll.network.cluster.AttachNetworkToVdsGroupCommand.getNetworkDAO ( ) . get ( getNetworkCluster ( ) . getNetworkId ( ) ) ) != null ) { return true ; } addCanDoActionMessage ( VdcBllMessages.NETWORK_NOT_EXISTS ) ; return false ; }
Source:
public void getAuditLogTest ( ) { addClusterCommand.setSucceeded ( true ) ; org.junit.Assert.assertEquals ( AuditLogType.USER_ADD_CLUSTER , addClusterCommand.getAuditLogTypeValue ( ) ) ; addClusterCommand.setSucceeded ( false ) ; org.junit.Assert.assertEquals ( AuditLogType.USER_ADD_CLUSTER_FAILED , addClusterCommand.getAuditLogTypeValue ( ) ) ; }

Target:
public void getAuditLogTest ( ) { addClusterCommand.setSucceeded ( true ) ; org.junit.jupiter.api.Assertions.assertEquals ( AuditLogType.USER_ADD_CLUSTER , addClusterCommand.getAuditLogTypeValue ( ) ) ; addClusterCommand.setSucceeded ( false ) ; org.junit.jupiter.api.Assertions.assertEquals ( AuditLogType.USER_ADD_CLUSTER_FAILED , addClusterCommand.getAuditLogTypeValue ( ) ) ; }
Source:
public void remove ( ) { }

Target:
public void remove ( ) { if ( ( getConfirmWindow ( ) ) != null ) { return ; } org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel model = new org.ovirt.engine.ui.uicommonweb.models.datacenters.RemoveNetworksModel ( this ) ; setConfirmWindow ( model ) ; }
Source:
public void testHasPeersFalse ( ) { org.mockito.Mockito.doReturn ( org.ovirt.engine.core.utils.gluster.GlusterUtilTest.OUTPUT_XML_NO_PEERS ) . when ( glusterUtil ) . executePeerStatusCommand ( client ) ; org.junit.Assert.assertTrue ( glusterUtil.getPeers ( client ) . isEmpty ( ) ) ; }

Target:
public void testHasPeersFalse ( ) { org.mockito.Mockito.doReturn ( org.ovirt.engine.core.bll.utils.GlusterUtilTest.OUTPUT_XML_NO_PEERS ) . when ( glusterUtil ) . executePeerStatusCommand ( client ) ; org.junit.Assert.assertTrue ( glusterUtil.getPeers ( client ) . isEmpty ( ) ) ; }
Source:
private void updateTasksWithActionParameters ( ) { for ( org.ovirt.engine.core.compat.Guid taskID : org.ovirt.engine.core.bll.VmCommand.getReturnValue ( ) . getTaskIdList ( ) ) { org.ovirt.engine.core.bll.VmCommand.getAsyncTaskManager ( ) . UpdateTaskWithActionParameters ( taskID , org.ovirt.engine.core.bll.VmCommand.getParameters ( ) ) ; } }

Target:
protected void setLoggingForCommand ( ) { org.ovirt.engine.core.bll.VmCommand.setCommandShouldBeLogged ( false ) ; }
Source:
public java.lang.Void call ( ) { disconnect ( ) ; return null ; }

Target:
public java.lang.Void call ( ) { disconnect ( message ) ; return null ; }
Source:
public void run ( ) { runInternalAction ( VdcActionType.InstallVdsInternal , installVdsParameters , new org.ovirt.engine.core.bll.context.CommandContext ( installCtx ) ) ; }

Target:
public void run ( ) { runInternalAction ( VdcActionType.InstallVdsInternal , installVdsParameters , cloneContextAndDetachFromParent ( ) . withExecutionContext ( installCtx ) ) ; }
Source:
protected boolean validate ( ) { org.ovirt.engine.core.common.businessentities.AuditLog event = org.ovirt.engine.core.bll.RemoveAuditLogByIdCommand.getAuditLogDao ( ) . get ( org.ovirt.engine.core.bll.RemoveAuditLogByIdCommand.getParameters ( ) . getAuditLogId ( ) ) ; if ( event == null ) { return failValidation ( EngineMessage.AUDIT_LOG_CANNOT_REMOVE_AUDIT_LOG_NOT_EXIST ) ; } return true ; }

Target:
protected boolean validate ( ) { org.ovirt.engine.core.common.businessentities.AuditLog event = auditLogDao.get ( org.ovirt.engine.core.bll.RemoveAuditLogByIdCommand.getParameters ( ) . getAuditLogId ( ) ) ; if ( event == null ) { return failValidation ( EngineMessage.AUDIT_LOG_CANNOT_REMOVE_AUDIT_LOG_NOT_EXIST ) ; } return true ; }
Source:
public void markAsInvalid ( java.util.List < java.lang.String > validationHints ) { markValidation ( true , validationHints ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.storage.SanStorageModelBase flush ( ) { return driver.flush ( ) ; }
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 , boolean isRunOnlyIfAllCanDoPass ) ;

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 org.ovirt.engine.core.vdsbroker.vdsbroker.HostNetworkAttachmentsPersister createPersister ( java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > userNetworkAttachments ) { return createPersister ( userNetworkAttachments , interfaceWithAttachedClusterNetworkA , interfaceWithoutAttachedNetwork ) ; }

Target:
private void assertIpConfigurationsEqual ( org.ovirt.engine.core.common.businessentities.network.IpConfiguration ipConfiguration1 , org.ovirt.engine.core.common.businessentities.network.IpConfiguration ipConfiguration2 ) { assertIpv4AddressesEqual ( ipConfiguration1.getIpv4PrimaryAddress ( ) , ipConfiguration2.getIpv4PrimaryAddress ( ) ) ; assertIpv6AddressesEqual ( ipConfiguration1.getIpv6PrimaryAddress ( ) , ipConfiguration2.getIpv6PrimaryAddress ( ) ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.VDSGroup createVdsGroupWithOlderVersion ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup group = org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.createNewVdsGroup ( ) ; group.setcompatibility_version ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.VERSION_1_0 ) ; group.setStoragePoolId ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.STORAGE_POOL_ID ) ; return group ; }

Target:
private static org.ovirt.engine.core.common.businessentities.VDSGroup createVdsGroupWithOlderVersion ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup group = org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.createNewVdsGroup ( ) ; group.setCompatibilityVersion ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.VERSION_1_0 ) ; group.setStoragePoolId ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.DC_ID1 ) ; return group ; }
Source:
public void testAddVmToPool ( ) { org.junit.Assert.assertNull ( vmDao.get ( org.ovirt.engine.core.dao.VmPoolDaoTest.FREE_VM_ID ) . getVmPoolId ( ) ) ; dao.addVmToPool ( newVmPoolMap ) ; org.junit.Assert.assertNotNull ( vmDao.get ( org.ovirt.engine.core.dao.VmPoolDaoTest.FREE_VM_ID ) . getVmPoolId ( ) ) ; }

Target:
public void testAddVmToPool ( ) { org.junit.jupiter.api.Assertions.assertNull ( vmDao.get ( org.ovirt.engine.core.dao.VmPoolDaoTest.FREE_VM_ID ) . getVmPoolId ( ) ) ; dao.addVmToPool ( newVmPoolMap ) ; org.junit.jupiter.api.Assertions.assertNotNull ( vmDao.get ( org.ovirt.engine.core.dao.VmPoolDaoTest.FREE_VM_ID ) . getVmPoolId ( ) ) ; }
Source:
public void setName ( java.lang.String value ) { name = value ; }

Target:
public void setDomain ( java.lang.String value ) { domain = ( value == null ) ? "" : value ; }
Source:
private void getVmsFromExportDomain ( org.ovirt.engine.core.compat.Guid dataCenterId , org.ovirt.engine.core.compat.Guid storageDomainId ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetVmsFromExportDomain , new org.ovirt.engine.core.common.queries.GetAllFromExportDomainQueryParameters ( dataCenterId , storageDomainId ) , new org.ovirt.engine.ui.frontend.AsyncQuery ( this , createGetVmsFromExportDomainCallback ( ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { updateVms ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . < java.util.List < org.ovirt.engine.core.common.businessentities.VM > > getReturnValue ( ) ) ; }
Source:
private void HandleEndAction ( ) { try { removeTemplateFromDb ( ) ; org.ovirt.engine.core.bll.RemoveVmTemplateCommand.setSucceeded ( true ) ; } catch ( java.lang.RuntimeException e ) { org.ovirt.engine.core.bll.RemoveVmTemplateCommand.getReturnValue ( ) . setEndActionTryAgain ( false ) ; log.error ( "Encountered a problem removing template from DB, setting the action not to retry." ) ; } }

Target:
private void handleEndAction ( ) { try { removeTemplateFromDb ( ) ; org.ovirt.engine.core.bll.RemoveVmTemplateCommand.setSucceeded ( true ) ; } catch ( java.lang.RuntimeException e ) { org.ovirt.engine.core.bll.RemoveVmTemplateCommand.getReturnValue ( ) . setEndActionTryAgain ( false ) ; log.error ( "Encountered a problem removing template from DB, setting the action not to retry." ) ; } }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.datacenters.EditNetworkModel object ) { driver.edit ( object ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.datacenters.EditNetworkModel object ) { super . edit ( object ) ; driver.edit ( object ) ; network = object.getNetwork ( ) ; }
Source:
private boolean logicalNetworkExists ( ) { if ( ( getPersistedNetwork ( ) ) != null ) { return true ; } addCanDoActionMessage ( VdcBllMessages.NETWORK_NOT_EXISTS ) ; return false ; }

Target:
private boolean logicalNetworkExists ( ) { if ( ( org.ovirt.engine.core.bll.network.cluster.AttachNetworkToVdsGroupCommand.getPersistedNetwork ( ) ) != null ) { return true ; } addCanDoActionMessage ( VdcBllMessages.NETWORK_NOT_EXISTS ) ; return false ; }
Source:
public void InitAsyncTaskManager ( ) { org.ovirt.engine.core.bll.AsyncTaskManager.log.info ( "Initialization of AsyncTaskManager completed successfully." ) ; }

Target:
public static void logAndFailTaskOfCommandWithEmptyVdsmId ( org.ovirt.engine.core.compat.Guid asyncTaskId , java.lang.String message ) { org.ovirt.engine.core.common.businessentities.AsyncTasks task = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getAsyncTaskDao ( ) . get ( asyncTaskId ) ; org.ovirt.engine.core.bll.AsyncTaskManager.logAndFailTaskOfCommandWithEmptyVdsmId ( task , message ) ; }
Source:
public void testBadGuid ( ) throws java.lang.Exception { control.replay ( ) ; try { new org.ovirt.engine.api.restapi.resource.BackendClusterResource ( "foo" ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testBadGuid ( ) throws java.lang.Exception { control.replay ( ) ; try { new org.ovirt.engine.api.restapi.resource.BackendClusterResource ( "foo" , new org.ovirt.engine.api.restapi.resource.BackendClustersResource ( ) ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }
Source:
public void testNonExistingParentOs ( ) { org.junit.Assert.assertEquals ( "" , OsRepositoryImpl.INSTANCE.getProductKey ( 666 , null ) ) ; }

Target:
public void testNonExistingParentOs ( ) { org.junit.jupiter.api.Assertions.assertEquals ( "" , OsRepositoryImpl.INSTANCE.getProductKey ( 666 , null ) ) ; }
Source:
public void testAttachFailDomainTypeIncorrect ( ) { storageDomain.setStorageType ( StorageType.LOCALFS ) ; org.ovirt.engine.core.bll.ValidationResult attachIncorrectTypeResult = validator.validateDomainCanBeAttachedToPool ( ) ; org.junit.Assert.assertThat ( attachIncorrectTypeResult , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ERROR_CANNOT_ATTACH_STORAGE_DOMAIN_STORAGE_TYPE_NOT_MATCH ) ) ; }

Target:
public void testAttachFailDomainTypeIncorrect ( ) { storageDomain.setStorageType ( StorageType.LOCALFS ) ; org.ovirt.engine.core.bll.ValidationResult attachIncorrectTypeResult = validator.validateDomainCanBeAttachedToPool ( ) ; org.hamcrest.MatcherAssert.assertThat ( attachIncorrectTypeResult , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ERROR_CANNOT_ATTACH_STORAGE_DOMAIN_STORAGE_TYPE_NOT_MATCH ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc movePV ( java.lang.String jobId , java.lang.String sdUUID , java.lang.String device ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.QemuImageInfoReturn getQemuImageInfo ( java.lang.String sdUUID , java.lang.String spUUID , java.lang.String imgUUID , java.lang.String volUUID ) ;
Source:
public void persistCommand ( org.ovirt.engine.core.common.action.VdcActionType parentCommand , boolean enableCallBack ) { persistCommand ( parentCommand , getContext ( ) , enableCallBack ) ; }

Target:
public void persistCommand ( org.ovirt.engine.core.common.action.VdcActionType parentCommand , boolean enableCallback ) { persistCommand ( parentCommand , getContext ( ) , enableCallback ) ; }
Source:
public boolean isHostExists ( org.ovirt.engine.core.common.businessentities.VDS vds , java.util.List < java.lang.String > messages ) { if ( vds == null ) { messages.add ( VdcBllMessages.ACTION_TYPE_FAILED_HOST_NOT_EXIST.name ( ) ) ; return false ; } else { return true ; } }

Target:
public boolean isHostExists ( org.ovirt.engine.core.common.businessentities.VDS vds , java.util.List < java.lang.String > messages ) { if ( vds == null ) { messages.add ( EngineMessage.ACTION_TYPE_FAILED_HOST_NOT_EXIST.name ( ) ) ; return false ; } else { return true ; } }
Source:
public void filterAllDomains ( ) { verifyDomainForMemory ( java.util.Arrays.asList ( invalidStorageDomain1 , invalidStorageDomain2 , invalidStorageDomain3 ) , null ) ; }

Target:
public void filterAllDomains ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > filteredStorageDomains = memoryStorageHandler.filterStorageDomains ( java.util.Arrays.asList ( invalidStorageDomain1 , invalidStorageDomain2 , invalidStorageDomain3 ) , memoryDisks ) ; org.junit.Assert.assertTrue ( filteredStorageDomains.isEmpty ( ) ) ; }
Source:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.AddVmPoolWithVmsCommand.getParameters ( ) . getVmPool ( ) . getName ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.VM_POOL_NAME , getVmPoolIsBeingCreatedMessage ( ) ) ) ; }

Target:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.AddVmPoolCommand.getParameters ( ) . getVmPool ( ) . getName ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.VM_POOL_NAME , getVmPoolIsBeingCreatedMessage ( ) ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.DbUser getUser ( java.lang.String sessionId , boolean refresh ) { return ( ( org.ovirt.engine.core.common.businessentities.DbUser ) ( GetData ( sessionId , org.ovirt.engine.core.bll.session.SessionDataContainer.USER_PARAMETER_NAME , refresh ) ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.DbUser getUser ( java.lang.String sessionId , boolean refresh ) { return ( ( org.ovirt.engine.core.common.businessentities.DbUser ) ( getData ( sessionId , org.ovirt.engine.core.bll.session.SessionDataContainer.USER_PARAMETER_NAME , refresh ) ) ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface t ) { return ( baseNic.getName ( ) . equals ( t.getBaseInterface ( ) ) ) && ( org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( t.getVlanId ( ) , vlanId ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface t ) { return ( baseNic.getName ( ) . equals ( t.getBaseInterface ( ) ) ) && ( java.util.Objects.equals ( t.getVlanId ( ) , vlanId ) ) ; }
Source:
protected org.ovirt.engine.core.bll.validator.storage.MultipleStorageDomainsValidator createStorageDomainValidator ( ) { java.util.Set < org.ovirt.engine.core.compat.Guid > storageIds = org.ovirt.engine.core.bll.ImagesHandler.getAllStorageIdsForImageIds ( getImagesList ( ) ) ; return new org.ovirt.engine.core.bll.validator.storage.MultipleStorageDomainsValidator ( org.ovirt.engine.core.bll.snapshots.RestoreAllSnapshotsCommand.getStoragePoolId ( ) , storageIds ) ; }

Target:
protected org.ovirt.engine.core.bll.validator.storage.MultipleStorageDomainsValidator createStorageDomainValidator ( ) { java.util.Set < org.ovirt.engine.core.compat.Guid > storageIds = org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.getAllStorageIdsForImageIds ( getImagesList ( ) ) ; return new org.ovirt.engine.core.bll.validator.storage.MultipleStorageDomainsValidator ( org.ovirt.engine.core.bll.snapshots.RestoreAllSnapshotsCommand.getStoragePoolId ( ) , storageIds ) ; }
Source:
public void writeEndElement ( ) { try { writer.writeEndElement ( ) ; } catch ( javax.xml.stream.XMLStreamException exception ) { throw new org.ovirt.api.metamodel.tool.XmlWriterException ( "Can't write end element" , exception ) ; } }

Target:
public void writeStartElement ( java.lang.String uri , java.lang.String name ) { try { writer.writeStartElement ( uri , name ) ; } catch ( javax.xml.stream.XMLStreamException exception ) { throw new org.ovirt.api.metamodel.runtime.xml.XmlException ( ( ( "Can\'t write start element for tag \"" + name ) + "\"" ) , exception ) ; } }
Source:
public boolean valid ( ) { return valid ; }

Target:
public boolean validAndActual ( ) { return ( actual ( ) ) && ( valid ) ; }
Source:
public void testValidateThereIsEnoughOfFreeMacsNoAllocations ( ) { final org.ovirt.engine.core.bll.ValidationResult actual = underTest.validateThereIsEnoughOfFreeMacs ( java.util.Collections.singletonList ( vmNetworkInterfaceMock ) , macPoolMock , org.ovirt.engine.core.bll.validator.VmNicMacsUtilsTest.ALWAYS_FALSE ) ; org.junit.Assert.assertThat ( actual , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testValidateThereIsEnoughOfFreeMacsNoAllocations ( ) { final org.ovirt.engine.core.bll.ValidationResult actual = underTest.validateThereIsEnoughOfFreeMacs ( java.util.Collections.singletonList ( vmNetworkInterfaceMock ) , macPoolMock , org.ovirt.engine.core.bll.validator.VmNicMacsUtilsTest.ALWAYS_FALSE ) ; org.hamcrest.MatcherAssert.assertThat ( actual , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
protected abstract void onExportChanged ( ) ;

Target:
private void setQos ( org.ovirt.engine.ui.uicommonweb.models.ListModel < org.ovirt.engine.core.common.businessentities.network.NetworkQoS > qos ) { this . qos = qos ; }
Source:
public java.lang.Object clone ( ) { return new java.util.concurrent.ConcurrentHashMap < org.ovirt.engine.api.extensions.ExtKey , java.lang.Object > ( map ) ; }

Target:
public org.ovirt.engine.api.extensions.ExtMap clone ( ) { return new org.ovirt.engine.api.extensions.ExtMap ( map ) ; }
Source:
private static org.ovirt.engine.api.model.DetailedLink createLink ( java.lang.String rel , org.ovirt.engine.api.utils.LinkHelper.LinkFlags flags , org.ovirt.engine.api.model.ParametersSet params , java.lang.String baseUri ) { return org.ovirt.engine.api.utils.LinkHelper.createLink ( baseUri , rel , flags , params ) ; }

Target:
private static org.ovirt.engine.api.model.DetailedLink createLink ( java.lang.String rel , org.ovirt.engine.api.utils.LinkCreator.LinkFlags flags , org.ovirt.engine.api.model.ParametersSet params , java.lang.String baseUri ) { return org.ovirt.engine.api.utils.LinkCreator.createLink ( baseUri , rel , flags , params ) ; }
Source:
public void canDoActionNonExternalJobFails ( ) throws java.lang.Exception { setupMock ( ) ; parameters.setParentId ( org.ovirt.engine.core.bll.AddExternalStepCommandTest.nonExternalJobId ) ; parameters.setStepId ( null ) ; org.junit.Assert.assertTrue ( ( ! ( commandMock.canDoAction ( ) ) ) ) ; }

Target:
public void validateNonExternalJobFails ( ) throws java.lang.Exception { setupMock ( ) ; parameters.setParentId ( org.ovirt.engine.core.bll.AddExternalStepCommandTest.nonExternalJobId ) ; parameters.setStepId ( null ) ; org.junit.Assert.assertTrue ( ( ! ( commandMock.validate ( ) ) ) ) ; }
Source:
public void setGuestLastLogoutTime ( java.util.Date value ) { this . vmDynamic.setGuestLastLogoutTime ( value ) ; }

Target:
public void setCustomEmulatedMachine ( java.lang.String value ) { this . vmStatic.setCustomEmulatedMachine ( value ) ; }
Source:
public void shouldDetectSuspendedVM ( ) { invalidVM.setStatus ( VMStatus.Suspended ) ; org.assertj.core.api.Assertions.assertThat ( validator.isVmReadyForUpgrade ( invalidVM ) ) . contains ( UPGRADE_ERROR.VM_SUSPENDED ) ; }

Target:
public void shouldAllowUnpinnedNumaNodes ( ) { validVM.setvNumaNodeList ( java.util.Arrays.asList ( org.ovirt.engine.core.bll.utils.NumaTestUtils.createVmNumaNode ( 1 ) ) ) ; org.assertj.core.api.Assertions.assertThat ( validator.checkVmReadyForUpgrade ( validVM ) ) . isEmpty ( ) ; }
Source:
protected abstract void onExportChanged ( ) ;

Target:
protected void onExportChanged ( ) { boolean externalNetwork = ( ( java.lang.Boolean ) ( getExport ( ) . getEntity ( ) ) ) ; getQos ( ) . setIsChangable ( ( ! externalNetwork ) ) ; getAddQosCommand ( ) . setIsExecutionAllowed ( ( ! externalNetwork ) ) ; }
Source:
public org.ovirt.engine.api.resource.ReadOnlyDeviceResource < D > getDeviceSubResource ( java.lang.String id ) { return org.ovirt.engine.api.restapi.resource.AbstractBackendReadOnlyDevicesResource.inject ( new org.ovirt.engine.api.restapi.resource.BackendReadOnlyDeviceResource < D , C , Q > ( modelType , entityType , org.ovirt.engine.api.restapi.resource.AbstractBackendReadOnlyDevicesResource.asGuidOr404 ( id ) , this ) ) ; }

Target:
public org.ovirt.engine.api.resource.ReadOnlyDeviceResource < D > getDeviceResource ( java.lang.String id ) { return org.ovirt.engine.api.restapi.resource.AbstractBackendReadOnlyDevicesResource.inject ( new org.ovirt.engine.api.restapi.resource.BackendReadOnlyDeviceResource < D , C , Q > ( modelType , entityType , org.ovirt.engine.api.restapi.resource.AbstractBackendReadOnlyDevicesResource.asGuidOr404 ( id ) , this ) ) ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.ListModel < T > excludedListModel , org.ovirt.engine.ui.uicommonweb.models.ListModel < T > includedListModel ) { edit ( excludedListModel , true ) ; edit ( includedListModel , false ) ; }

Target:
public void edit ( M excludedListModel , M includedListModel ) { edit ( excludedListModel , true ) ; edit ( includedListModel , false ) ; }
Source:
void localize ( org.ovirt.engine.ui.webadmin.ApplicationConstants constants ) { titleLabel.setText ( constants.aboutPopupCaption ( ) ) ; closeButton.setText ( constants.closeButtonLabel ( ) ) ; copyrightNotice.setText ( constants.copyRightNotice ( ) ) ; }

Target:
void localize ( org.ovirt.engine.ui.webadmin.ApplicationConstants constants , org.ovirt.engine.ui.webadmin.ApplicationDynamicConstants dynamicConstants ) { titleLabel.setText ( constants.aboutPopupCaption ( ) ) ; closeButton.setText ( constants.closeButtonLabel ( ) ) ; copyrightNotice.setText ( dynamicConstants.copyRightNotice ( ) ) ; }
Source:
public javax.ws.rs.core.Response remove ( ) { return adaptRemove ( delegate :: remove ) ; }

Target:
public javax.ws.rs.core.Response rebalance ( org.ovirt.engine.api.v3.types.V3Action action ) { return adaptAction ( getDelegate ( ) :: rebalance , action ) ; }
Source:
java.lang.String TranslateErrorTextSingle ( java.lang.String errorMsg , java.util.Locale locale ) ;

Target:
java.lang.String translateErrorTextSingle ( java.lang.String errorMsg , java.util.Locale locale ) ;
Source:
public void canRemoveNodesWithVmFromDb ( ) { final org.ovirt.engine.core.bll.numa.vm.RemoveVmNumaNodesCommand command = mockedCommandWithVmFromDb ( ) ; command.executeCommand ( ) ; org.mockito.Mockito.verify ( vmNumaNodeDao ) . massRemoveNumaNodeByNumaNodeId ( java.util.Arrays.asList ( org.ovirt.engine.core.bll.numa.vm.RemoveVmNumaNodesCommandTest.NODE_ID_1 , org.ovirt.engine.core.bll.numa.vm.RemoveVmNumaNodesCommandTest.NODE_ID_2 ) ) ; }

Target:
public void canRemoveNodesWithVmFromDb ( ) { final org.ovirt.engine.core.bll.numa.vm.RemoveVmNumaNodesCommand command = mockedCommandWithVmFromDb ( ) ; command.executeCommand ( ) ; org.mockito.Mockito.verify ( vmNumaNodeDao ) . massRemoveNumaNodeByNumaNodeId ( java.util.Arrays.asList ( org.ovirt.engine.core.bll.numa.vm.RemoveVmNumaNodesCommandTest.NODE_ID_0 , org.ovirt.engine.core.bll.numa.vm.RemoveVmNumaNodesCommandTest.NODE_ID_1 ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkView > getAllWithQuery ( java.lang.String query ) { return getJdbcTemplate ( ) . query ( query , org.ovirt.engine.core.dao.network.NetworkViewDaoImpl.NetworkViewRowMapper.instance ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkView > getAllWithQuery ( java.lang.String query ) { return getJdbcTemplate ( ) . query ( query , networkViewRowMapper ) ; }
Source:
private static void auditLogPluginError ( java.lang.String pluginName , java.lang.String errorMessage ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase loggable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; loggable.addCustomValue ( "PluginName" , pluginName ) ; loggable.addCustomValue ( "ErrorMessage" , errorMessage ) ; org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( loggable , AuditLogType.EXTERNAL_SCHEDULER_PLUGIN_ERROR ) ; }

Target:
private static void auditLogPluginError ( java.lang.String pluginName , java.lang.String errorMessage ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase loggable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; loggable.addCustomValue ( "PluginName" , pluginName ) ; loggable.addCustomValue ( "ErrorMessage" , errorMessage ) ; org.ovirt.engine.core.bll.scheduling.external.ExternalSchedulerBrokerObjectBuilder.auditLogDirector.log ( loggable , AuditLogType.EXTERNAL_SCHEDULER_PLUGIN_ERROR ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity getVolume ( int i ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity vol = new org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity ( ) ; vol.setStatus ( GlusterStatus.UP ) ; vol.setId ( org.ovirt.engine.core.bll.gluster.GlusterTasksSyncJobTest.VOL_GUIDS [ i ] ) ; return vol ; }

Target:
private org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity getVolume ( int i ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity vol = new org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity ( ) ; vol.setStatus ( GlusterStatus.UP ) ; vol.setId ( org.ovirt.engine.core.bll.gluster.GlusterTasksSyncJobTest.VOL_GUIDS [ i ] ) ; vol.setClusterId ( org.ovirt.engine.core.bll.gluster.GlusterTasksSyncJobTest.CLUSTER_GUIDS [ 1 ] ) ; return vol ; }
Source:
protected void AdditionalImageRemoveTreatment ( org.ovirt.engine.core.common.businessentities.DiskImage snapshot ) { _imagesToDelete.add ( _imagesToDelete.size ( ) , snapshot.getImageId ( ) ) ; }

Target:
protected void RemoveSnapshot ( org.ovirt.engine.core.common.businessentities.DiskImage snapshot ) { super . RemoveSnapshot ( snapshot ) ; _imagesToDelete.add ( _imagesToDelete.size ( ) , snapshot.getImageId ( ) ) ; }
Source:
public void setExtendImageSizeSupported ( boolean extendImageSizeSupported ) { if ( ( this . extendImageSizeSupported ) != extendImageSizeSupported ) { this . extendImageSizeSupported = extendImageSizeSupported ; updateActionAvailability ( ) ; } }

Target:
public void setDataCenterVersion ( org.ovirt.engine.core.compat.Version dataCenterVersion ) { if ( ( dataCenterVersion != null ) && ( ! ( dataCenterVersion.equals ( this . dataCenterVersion ) ) ) ) { this . dataCenterVersion = dataCenterVersion ; updateActionAvailability ( ) ; } }
Source:
public void edit ( final org.ovirt.engine.ui.uicommonweb.models.profiles.VnicProfileModel profile ) { driver.edit ( profile ) ; }

Target:
public void edit ( final org.ovirt.engine.ui.uicommonweb.models.profiles.VnicProfileModel profile ) { driver.edit ( profile ) ; customPropertiesSheetEditor.edit ( profile.getCustomPropertySheet ( ) ) ; }