auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs pcArgs = ( ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ) ( args ) ) ; if ( PropertyChangedEventArgs.Args.PROGRESS.toString ( ) . equals ( pcArgs.propertyName ) ) { updatePopupProgress ( model , popup ) ; } }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs pcArgs = ( ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ) ( args ) ) ; if ( PropertyChangedEventArgs.PROGRESS.equals ( pcArgs.propertyName ) ) { updatePopupProgress ( model , popup ) ; } }
Source:
public java.util.ArrayList < java.lang.String > getLunIds ( ) { return ( privateLunIds ) == null ? new java.util.ArrayList < java.lang.String > ( ) : privateLunIds ; }

Target:
public java.util.Set < java.lang.String > getLunIds ( ) { return ( privateLunIds ) == null ? new java.util.HashSet < > ( ) : privateLunIds ; }
Source:
protected abstract void writeContentItems ( ) ;

Target:
protected abstract void writeMacAddress ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface iface ) ;
Source:
boolean IsConnectSucceeded ( java.util.Map < java.lang.String , java.lang.String > returnValue , java.util.List < org.ovirt.engine.core.common.businessentities.storage_server_connections > connections ) ;

Target:
boolean isConnectSucceeded ( java.util.Map < java.lang.String , java.lang.String > returnValue , java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > connections ) ;
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.OneVmReturnForXmlRpc powerDown ( java.lang.String vmId ) ;

Target:
java.util.concurrent.Future < java.util.Map < java.lang.String , java.lang.Object > > setupNetworks ( java.util.Map networks , java.util.Map bonding , java.util.Map options ) ;
Source:
public void noValuesPresent ( ) { mockQos ( null , null , null ) ; requiredValuesTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_HOST_NETWORK_QOS_MISSING_VALUES ) ) ; }

Target:
public void noValuesPresent ( ) { mockQos ( null , null , null ) ; requiredValuesTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_HOST_NETWORK_QOS_MISSING_VALUES ) ) ; }
Source:
public void setSpiceProxyEnabled ( boolean enabled , java.lang.String reason ) { enableSpiceProxy.setEnabled ( enabled ) ; enableSpiceProxy.setTitle ( reason ) ; }

Target:
public void setSpiceProxyEnabled ( boolean enabled , java.lang.String reason ) { enableSpiceProxy.setEnabled ( enabled ) ; enableSpiceProxyTooltip.setText ( reason ) ; }
Source:
public T get ( ) { return performGet ( VdcQueryType.GetPolicyUnitById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; }

Target:
public T get ( ) { return performGet ( VdcQueryType.GetClusterPolicyById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( parentId ) ) ; }
Source:
public void auditLogTypeValue ( ) { final org.ovirt.engine.core.common.AuditLogType t = b.getAuditLogTypeValue ( ) ; org.junit.Assert.assertEquals ( AuditLogType.UNASSIGNED , t ) ; }

Target:
public void auditLogTypeValue ( ) { final org.ovirt.engine.core.common.AuditLogType t = b.getAuditLogTypeValue ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( AuditLogType.UNASSIGNED , t ) ; }
Source:
boolean isCpuHotplugSupported ( int os_id ) ;

Target:
boolean isCpuHotplugSupported ( int osId ) ;
Source:
public java.util.Map < java.lang.String , java.lang.Object > call ( ) throws java.lang.Exception { this . map = ( ( org.ovirt.engine.core.vdsbroker.jsonrpc.FutureMap ) ( this . callable.call ( ) ) ) ; return this . map ; }

Target:
public org.apache.commons.httpclient.HttpClient getHttpClient ( ) { return this . httpClient ; }
Source:
protected org.ovirt.engine.core.dao.VdsStaticDAO getDao ( ) { return dao ; }

Target:
public void testSave ( ) { dao.save ( newStaticVds ) ; org.ovirt.engine.core.common.businessentities.VdsStatic staticResult = dao.get ( newStaticVds.getId ( ) ) ; org.junit.Assert.assertNotNull ( staticResult ) ; org.junit.Assert.assertEquals ( newStaticVds , staticResult ) ; }
Source:
public void validInteger ( ) { junit.framework.Assert.assertFalse ( BaseConditionFieldAutoCompleter.validInteger.isValid ( null , "" ) ) ; junit.framework.Assert.assertFalse ( BaseConditionFieldAutoCompleter.validInteger.isValid ( null , "not valid integer" ) ) ; junit.framework.Assert.assertFalse ( BaseConditionFieldAutoCompleter.validInteger.isValid ( null , "$%@^%" ) ) ; junit.framework.Assert.assertFalse ( BaseConditionFieldAutoCompleter.validInteger.isValid ( null , "1$" ) ) ; junit.framework.Assert.assertFalse ( BaseConditionFieldAutoCompleter.validInteger.isValid ( null , "1.1" ) ) ; junit.framework.Assert.assertTrue ( BaseConditionFieldAutoCompleter.validInteger.isValid ( null , "1" ) ) ; junit.framework.Assert.assertTrue ( BaseConditionFieldAutoCompleter.validInteger.isValid ( null , "-1" ) ) ; }

Target:
public void validInteger ( ) { org.junit.Assert.assertFalse ( BaseConditionFieldAutoCompleter.validInteger.isValid ( null , "" ) ) ; org.junit.Assert.assertFalse ( BaseConditionFieldAutoCompleter.validInteger.isValid ( null , "not valid integer" ) ) ; org.junit.Assert.assertFalse ( BaseConditionFieldAutoCompleter.validInteger.isValid ( null , "$%@^%" ) ) ; org.junit.Assert.assertFalse ( BaseConditionFieldAutoCompleter.validInteger.isValid ( null , "1$" ) ) ; org.junit.Assert.assertFalse ( BaseConditionFieldAutoCompleter.validInteger.isValid ( null , "1.1" ) ) ; org.junit.Assert.assertTrue ( BaseConditionFieldAutoCompleter.validInteger.isValid ( null , "1" ) ) ; org.junit.Assert.assertTrue ( BaseConditionFieldAutoCompleter.validInteger.isValid ( null , "-1" ) ) ; }
Source:
public void setInSlot ( java.lang.Object slot , com.google.gwt.user.client.ui.Widget content ) { if ( slot == ( getContentSlot ( ) ) ) { setContent ( content ) ; } else { super . setInSlot ( slot , content ) ; } }

Target:
public void setInSlot ( java.lang.Object slot , com.google.gwt.user.client.ui.IsWidget content ) { if ( slot == ( getContentSlot ( ) ) ) { setContent ( content ) ; } else { super . setInSlot ( slot , content ) ; } }
Source:
public static void RunAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , final org.ovirt.engine.ui.uicompat.IFrontendActionAsyncCallback callback ) { org.ovirt.engine.ui.frontend.Frontend.RunAction ( actionType , parameters , callback , null ) ; }

Target:
public void runAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , final org.ovirt.engine.ui.uicompat.IFrontendActionAsyncCallback callback ) { runAction ( actionType , parameters , callback , null ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.DisplayType extractDisplayType ( org.ovirt.engine.core.common.businessentities.VmBase vmBase ) { if ( vmBase instanceof org.ovirt.engine.core.common.businessentities.VmStatic ) { return ( ( org.ovirt.engine.core.common.businessentities.VmStatic ) ( vmBase ) ) . getdefault_display_type ( ) ; } return null ; }

Target:
protected org.ovirt.engine.core.common.businessentities.DisplayType extractDisplayType ( org.ovirt.engine.core.common.businessentities.VmBase vmBase ) { if ( vmBase instanceof org.ovirt.engine.core.common.businessentities.VmStatic ) { return ( ( org.ovirt.engine.core.common.businessentities.VmStatic ) ( vmBase ) ) . getDefaultDisplayType ( ) ; } return null ; }
Source:
private void setUpGetEntityExpectations ( ) { setUpEntityQueryExpectations ( VdcQueryType.GetAllDisksByVmId , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { PARENT_ID } , getEntityList ( ) ) ; }

Target:
protected void setUpEntityQueryExpectations ( int times ) throws java.lang.Exception { setUpEntityQueryExpectations ( times , null ) ; }
Source:
public static boolean isVmDeviceExists ( java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.VmDevice > vmManagedDeviceMap , java.lang.String name ) { return ( org.ovirt.engine.core.common.utils.VmDeviceCommonUtils.findVmDeviceByName ( vmManagedDeviceMap , name ) ) != null ; }

Target:
public static boolean isVmDeviceExists ( java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.VmDevice > vmManagedDeviceMap , org.ovirt.engine.core.common.utils.VmDeviceType type ) { return org.ovirt.engine.core.common.utils.VmDeviceCommonUtils.isVmDeviceExists ( vmManagedDeviceMap , type.getName ( ) ) ; }
Source:
public void getClusterName ( ) { final org.ovirt.engine.core.common.businessentities.Cluster g = new org.ovirt.engine.core.common.businessentities.Cluster ( ) ; g.setName ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.NAME ) ; b.setCluster ( g ) ; final java.lang.String n = b.getClusterName ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.NAME , n ) ; }

Target:
public void getClusterName ( ) { final org.ovirt.engine.core.common.businessentities.Cluster g = new org.ovirt.engine.core.common.businessentities.Cluster ( ) ; g.setName ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.NAME ) ; b.setCluster ( g ) ; final java.lang.String n = b.getClusterName ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.NAME , n ) ; }
Source:
public void registerListener ( java.lang.String path , java.lang.String type , org.ovirt.engine.core.compat.IEventListener listener ) { java.lang.String key = getKey ( path , type ) ; if ( eventMap.containsKey ( key ) ) { eventMap.get ( key ) . addListener ( listener ) ; } }

Target:
public void registerListener ( java.lang.String path , java.lang.String type , org.ovirt.engine.ui.uicompat.IEventListener listener ) { java.lang.String key = getKey ( path , type ) ; if ( eventMap.containsKey ( key ) ) { eventMap.get ( key ) . addListener ( listener ) ; } }
Source:
public void OnSuccess ( java.lang.Object model , java.lang.Object result ) { java.lang.String version = ( ( java.lang.String ) ( result ) ) ; getView ( ) . setVersion ( version ) ; }

Target:
public void onKeyPress ( com.google.gwt.dom.client.NativeEvent event ) { if ( ( com.google.gwt.event.dom.client.KeyCodes.KEY_ESCAPE ) == ( event.getKeyCode ( ) ) ) { getView ( ) . hide ( ) ; unbind ( ) ; } }
Source:
public org.ovirt.engine.api.model.HostNIC addParents ( org.ovirt.engine.api.model.HostNIC nic ) { nic.setHost ( new org.ovirt.engine.api.model.Host ( ) ) ; nic.getHost ( ) . setId ( hostId ) ; return nic ; }

Target:
public java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.compat.Guid > retriveVfMap ( ) { final org.ovirt.engine.core.common.queries.VdcQueryReturnValue returnValue = runQuery ( VdcQueryType.GetVfToPfMapByHostId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( asGuid ( hostId ) ) ) ; return returnValue.getReturnValue ( ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? source : "" ; }

Target:
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.GlusterHookEntity > ( ) ; }
Source:
public void close ( ) { stop ( ) ; if ( ( _dialog ) != null ) { _dialog.disconnect ( ) ; _dialog = null ; } }

Target:
public void close ( ) throws java.io.IOException { stop ( ) ; if ( ( _dialog ) != null ) { _dialog.close ( ) ; _dialog = null ; } }
Source:
public java.lang.String getValue ( java.lang.Object object ) { return java.lang.String.valueOf ( ( ( org.ovirt.engine.core.common.businessentities.VM ) ( object ) ) . getNumOfCpus ( ) ) ; }

Target:
public java.lang.String getValue ( java.lang.Object object ) { return ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData ) ( object ) ) . getVm ( ) . getName ( ) ; }
Source:
public void noStpWhenVmNetwork ( ) throws java.lang.Exception { stpTest ( ValidationResult.VALID , true , false ) ; }

Target:
public void noStpWhenNonVmNetwork ( ) throws java.lang.Exception { stpTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , false , false ) ; }
Source:
public void refresh ( ) { getForceRefreshCommand ( ) . Execute ( ) ; }

Target:
public void refresh ( ) { getForceRefreshCommand ( ) . execute ( ) ; }
Source:
public void onSuccess ( java.lang.Integer returnValue ) { maxThreadsPerCore = returnValue ; totalCpuCoresChanged ( ) ; }

Target:
public void onSuccess ( java.lang.Integer returnValue ) { maxCpusPerSocket = returnValue ; postUpdateNumOfSockets3 ( ) ; }
Source:
protected void executeQueryCommand ( ) { getQueryReturnValue ( ) . setReturnValue ( getDbFacade ( ) . getCpuProfileDao ( ) . get ( getParameters ( ) . getId ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { getQueryReturnValue ( ) . setReturnValue ( cpuProfileDao.get ( getParameters ( ) . getId ( ) ) ) ; }
Source:
protected void EndWithFailure ( ) { UndoActionOnSourceAndDestination ( ) ; org.ovirt.engine.core.bll.BaseImagesCommand.setSucceeded ( true ) ; }

Target:
protected void endWithFailure ( ) { UndoActionOnSourceAndDestination ( ) ; org.ovirt.engine.core.bll.BaseImagesCommand.setSucceeded ( true ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.ActionGroup lookupId ( java.lang.String id ) { return getMapper ( java.lang.String.class , org.ovirt.engine.core.common.businessentities.ActionGroup.class ) . map ( id , null ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.ActionGroup lookupId ( java.lang.String id ) { try { return org.ovirt.engine.core.common.businessentities.ActionGroup.forValue ( java.lang.Integer.parseInt ( id ) ) ; } catch ( java.lang.NumberFormatException exception ) { return null ; } }
Source:
private boolean networkLinkingSupported ( ) { return org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > GetValue ( ConfigValues.NetworkLinkingSupported , version ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult networkNameValid ( ) { return ( ! ( org.ovirt.engine.core.bll.validator.VmNicValidator.networkLinkingSupported ( version ) ) ) && ( ( nic.getNetworkName ( ) ) == null ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.NULL_NETWORK_IS_NOT_SUPPORTED , clusterVersion ( ) ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
public static void RunAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , final org.ovirt.engine.ui.uicompat.IFrontendActionAsyncCallback callback , final java.lang.Object state , final boolean showErrorDialog ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runAction ( actionType , parameters , callback , state , showErrorDialog ) ; }

Target:
public void runAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { runAction ( actionType , parameters , org.ovirt.engine.ui.frontend.Frontend.NULLABLE_ASYNC_CALLBACK ) ; }
Source:
public void allocateVmHostDevices ( org.ovirt.engine.core.compat.Guid vmId ) { hostDeviceDao.markHostDevicesUsedByVmId ( vmId ) ; }

Target:
public void allocateVmHostDevices ( org.ovirt.engine.core.common.businessentities.VM vm ) { hostDeviceDao.markHostDevicesUsedByVmId ( vm.getId ( ) , vm.getDedicatedVmForVdsList ( ) . get ( 0 ) ) ; }
Source:
public void testOnlyLoginNameWhenNoDirectorySet ( ) { org.ovirt.engine.core.common.businessentities.DbUser user = new org.ovirt.engine.core.common.businessentities.DbUser ( ) ; user.setLoginName ( "Legolas" ) ; user.setDomain ( "" ) ; command.setCurrentUser ( user ) ; junit.framework.Assert.assertEquals ( command.getConsoleUserName ( ) , "Legolas" ) ; }

Target:
public void testOnlyLoginNameWhenNoDirectorySet ( ) { org.ovirt.engine.core.common.businessentities.DbUser user = new org.ovirt.engine.core.common.businessentities.DbUser ( ) ; user.setLoginName ( "Legolas" ) ; user.setDomain ( "" ) ; command.setCurrentUser ( user ) ; org.junit.Assert.assertEquals ( command.getConsoleUserName ( ) , "Legolas" ) ; }
Source:
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 ( ) ; Cancel ( ) ; }

Target:
public void setSelectedProtocol ( org.ovirt.engine.ui.uicommonweb.models.ConsoleProtocol protocol , org.ovirt.engine.ui.uicommonweb.models.HasConsoleModel item ) { consoleModelsCache.setSelectedProtocol ( protocol , item ) ; }
Source:
public void testGetFilteredWithPermissionsNoPermissions ( ) { org.ovirt.engine.core.common.businessentities.vm_pools result = dao.get ( existingVmPool.getvm_pool_id ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetFilteredWithPermissionsNoPermissions ( ) { org.ovirt.engine.core.common.businessentities.VmPool result = dao.get ( existingVmPool.getvm_pool_id ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNull ( result ) ; }
Source:
public org.ovirt.engine.core.common.utils.ansible.AnsibleReturnCode runCommand ( org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilder command ) throws java.io.IOException , java.lang.InterruptedException { return runCommand ( command , org.ovirt.engine.core.common.utils.ansible.AnsibleExecutor.ANSIBLE_PLAYBOOK_TIMEOUT ) ; }

Target:
public org.ovirt.engine.core.common.utils.ansible.AnsibleReturnValue runCommand ( org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilder command , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > ... envVars ) throws java.io.IOException , java.lang.InterruptedException { return runCommand ( command , org.ovirt.engine.core.common.utils.ansible.AnsibleExecutor.ANSIBLE_PLAYBOOK_TIMEOUT , true , envVars ) ; }
Source:
public org.ovirt.engine.core.dao.RoleDAO getRoleDao ( ) { return getDbFacade ( ) . getRoleDAO ( ) ; }

Target:
public org.ovirt.engine.core.dao.RoleGroupMapDAO getRoleGroupMapDAO ( ) { return getDbFacade ( ) . getRoleGroupMapDao ( ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? new java.util.ArrayList < > ( ( ( java.util.ArrayList < org.ovirt.engine.core.compat.RpmVersion > ) ( source ) ) ) : new java.util.ArrayList < org.ovirt.engine.core.compat.RpmVersion > ( ) ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > ( ) ; } return source ; }
Source:
public void setEntityId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable ) { logable.setVdsGroupId ( oldGroup.getId ( ) ) ; }

Target:
public void setEntityId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable ) { logable.setClusterId ( oldGroup.getId ( ) ) ; }
Source:
protected void updateWipeAfterDeleteChangeability ( ) { if ( isVmAttachedToPool ( ) ) { getIsWipeAfterDelete ( ) . setIsChangable ( false ) ; } else { getIsWipeAfterDelete ( ) . setIsChangable ( isEditEnabled ( ) ) ; } }

Target:
protected void updateWipeAfterDeleteChangeability ( ) { if ( isVmAttachedToPool ( ) ) { getIsWipeAfterDelete ( ) . setIsChangeable ( false ) ; } else { getIsWipeAfterDelete ( ) . setIsChangeable ( isEditEnabled ( ) ) ; } }
Source:
public void Configure ( org.ovirt.engine.ui.uicommonweb.models.SearchableListModel searchableListModel ) { searchableListModel.setIsAsync ( getIsAsync ( ) ) ; }

Target:
public boolean isClientWindowExplorerWithWebsockets ( ) { return isClientWindowsExplorer ( ) ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.String > object ) { driver.edit ( object ) ; this . model = object ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.hosts.FenceProxyModel object ) { driver.edit ( object ) ; this . model = object ; }
Source:
protected void AsyncSearch ( ) { super . AsyncSearch ( ) ; setAsyncResult ( org.ovirt.engine.ui.frontend.Frontend.RegisterQuery ( VdcQueryType.GetVmTemplatesDisks , new org.ovirt.engine.core.common.queries.GetVmTemplatesDisksParameters ( getEntityStronglyTyped ( ) . getId ( ) ) ) ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }

Target:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; setAsyncResult ( org.ovirt.engine.ui.frontend.Frontend.RegisterQuery ( VdcQueryType.GetVmTemplatesDisks , new org.ovirt.engine.core.common.queries.GetVmTemplatesDisksParameters ( getEntityStronglyTyped ( ) . getId ( ) ) ) ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }
Source:
public void ExecuteCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { super . ExecuteCommand ( command ) ; if ( command == ( getSetupNetworksCommand ( ) ) ) { SetupNetworks ( ) ; } }

Target:
private void setSetupNetworksCommand ( org.ovirt.engine.ui.uicommonweb.UICommand value ) { setupNetworksCommand = value ; }
Source:
protected org.ovirt.engine.ui.uicommonweb.models.ListModel < java.lang.String > mockCdListModel ( ) { final org.ovirt.engine.ui.uicommonweb.models.ListModel < java.lang.String > model = org.ovirt.engine.ui.uicommonweb.models.vms.BaseVmListModelTest.mockListModel ( org.ovirt.engine.ui.uicommonweb.models.vms.ISO_NAME ) ; org.mockito.Mockito.when ( model.getIsChangable ( ) ) . thenReturn ( true ) ; return model ; }

Target:
protected org.ovirt.engine.ui.uicommonweb.models.ListModel < org.ovirt.engine.core.common.businessentities.storage.RepoImage > mockCdListModel ( ) { final org.ovirt.engine.ui.uicommonweb.models.ListModel < org.ovirt.engine.core.common.businessentities.storage.RepoImage > model = org.ovirt.engine.ui.uicommonweb.models.vms.BaseVmListModelTest.mockListModel ( new org.ovirt.engine.core.common.businessentities.storage.RepoImage ( ISO_NAME ) ) ; org.mockito.Mockito.when ( model.getIsChangable ( ) ) . thenReturn ( true ) ; return model ; }
Source:
public org.ovirt.engine.core.common.businessentities.VDSType getHostType ( ) { return org.ovirt.engine.core.common.businessentities.VDSType.VDS ; }

Target:
public java.util.EnumSet < org.ovirt.engine.core.common.businessentities.VDSType > getHostTypes ( ) { return java.util.EnumSet.of ( VDSType.VDS , VDSType.oVirtNode ) ; }
Source:
protected abstract void ReadGeneralData ( ) ;

Target:
protected abstract void readGeneralData ( org.ovirt.engine.core.compat.backendcompat.XmlNode content ) ;
Source:
protected void onRemove ( org.ovirt.engine.ui.uicommonweb.models.ListModel < java.lang.String > value , org.ovirt.engine.ui.webadmin.section.main.view.popup.host.NicLabelEditor widget ) { super . onRemove ( value , widget ) ; com.google.gwt.event.logical.shared.ValueChangeEvent.fire ( this , null ) ; }

Target:
protected void onRemove ( org.ovirt.engine.ui.uicommonweb.models.ListModel < java.lang.String > value , org.ovirt.engine.ui.webadmin.section.main.view.popup.host.NicLabelEditor widget ) { super . onRemove ( value , widget ) ; getModel ( ) . updateSuggestedLabels ( ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VDSGroup createVdsGroup ( ) { org.ovirt.engine.core.compat.Guid id = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; org.ovirt.engine.core.common.businessentities.VDSGroup cluster = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; cluster.setVdsGroupId ( id ) ; cluster.setId ( id ) ; cluster.setName ( "Default cluster" ) ; return cluster ; }

Target:
protected org.ovirt.engine.core.common.businessentities.Cluster createCluster ( ) { org.ovirt.engine.core.compat.Guid id = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; org.ovirt.engine.core.common.businessentities.Cluster cluster = new org.ovirt.engine.core.common.businessentities.Cluster ( ) ; cluster.setClusterId ( id ) ; cluster.setId ( id ) ; cluster.setName ( "Default cluster" ) ; return cluster ; }
Source:
protected boolean updateVmInSpm ( ) { return org.ovirt.engine.core.bll.VmCommand.updateVmInSpm ( getVm ( ) . getstorage_pool_id ( ) , new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VM > ( java.util.Arrays.asList ( new org.ovirt.engine.core.common.businessentities.VM [ ] { getVm ( ) } ) ) ) ; }

Target:
protected void updateActiveSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId ) { getSnapshotDao ( ) . update ( new org.ovirt.engine.core.common.businessentities.Snapshot ( snapshotId , org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotStatus.OK , getVm ( ) . getId ( ) , null , org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotType.ACTIVE , "Active VM snapshot" , new java.util.Date ( ) , null ) ) ; }
Source:
protected void onReveal ( ) { super . onReveal ( ) ; org.ovirt.engine.ui.webadmin.section.main.presenter.UpdateMainContentLayoutEvent.fire ( this , true ) ; }

Target:
protected void onReveal ( ) { super . onReveal ( ) ; setInSlot ( org.ovirt.engine.ui.webadmin.section.main.presenter.AbstractSubTabPanelPresenter.TYPE_SetTabBar , tabBar ) ; org.ovirt.engine.ui.webadmin.section.main.presenter.UpdateMainContentLayoutEvent.fire ( this , true ) ; }
Source:
public static boolean isManagementNetwork ( java.lang.String networkName ) { return org.ovirt.engine.core.utils.NetworkUtils.getEngineNetwork ( ) . equals ( networkName ) ; }

Target:
public static boolean isManagementNetwork ( java.lang.String networkName ) { return org.ovirt.engine.core.utils.NetworkUtils.getDefaultManagementNetworkName ( ) . equals ( networkName ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.storage_pool mockStoragePool ( ) { org.ovirt.engine.core.common.businessentities.storage_pool storage_pool = new org.ovirt.engine.core.common.businessentities.storage_pool ( ) ; storage_pool.setstatus ( StoragePoolStatus.Up ) ; return storage_pool ; }

Target:
private org.ovirt.engine.core.common.businessentities.StoragePool mockStoragePool ( ) { org.ovirt.engine.core.common.businessentities.StoragePool storagePool = new org.ovirt.engine.core.common.businessentities.StoragePool ( ) ; storagePool.setstatus ( StoragePoolStatus.Up ) ; return storagePool ; }
Source:
private static void RefreshVdcOptionCache ( org.ovirt.engine.core.dal.dbbroker.DbFacade db ) { org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils._vdcOptionCache.clear ( ) ; java.util.List < org.ovirt.engine.core.common.businessentities.VdcOption > list = db.getVdcOptionDao ( ) . getAll ( ) ; for ( org.ovirt.engine.core.common.businessentities.VdcOption option : list ) { org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils.updateOption ( option ) ; } }

Target:
protected static void refreshVdcOptionCache ( org.ovirt.engine.core.dal.dbbroker.DbFacade db ) { org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils._vdcOptionCache.clear ( ) ; java.util.List < org.ovirt.engine.core.common.businessentities.VdcOption > list = db.getVdcOptionDao ( ) . getAll ( ) ; for ( org.ovirt.engine.core.common.businessentities.VdcOption option : list ) { org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils.updateOption ( option ) ; } }
Source:
public void validateFails ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( volumeId1 ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFails ( ) { setVolumeId ( volumeId1 ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
public void lowerVersion ( ) { storagePoolWithLowerVersion ( ) ; canDoActionFailed ( VdcBllMessages.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION.toString ( ) ) ; }

Target:
public void lowerVersionHostsNoNetwork ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addHostsToCluster ( ) ; org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.network.NetworkView getEntity ( ) { return ( ( org.ovirt.engine.core.common.businessentities.network.NetworkView ) ( ( super . getEntity ( ) ) instanceof org.ovirt.engine.core.common.businessentities.network.NetworkView ? super . getEntity ( ) : null ) ) ; }

Target:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; if ( ( getEntity ( ) ) != null ) { getSearchCommand ( ) . execute ( ) ; } updateActionAvailability ( ) ; }
Source:
public static boolean isVdsWithSameHostExistStatic ( java.lang.String hostName ) { java.util.List < org.ovirt.engine.core.common.businessentities.VdsStatic > vds = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsStaticDAO ( ) . getAllForHost ( hostName ) ; return ( vds.size ( ) ) != 0 ; }

Target:
public static boolean isVdsWithSameHostExistStatic ( java.lang.String hostName ) { java.util.List < org.ovirt.engine.core.common.businessentities.VdsStatic > vds = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsStaticDao ( ) . getAllForHost ( hostName ) ; return ( vds.size ( ) ) != 0 ; }
Source:
private void setClusterEmulatedMachine ( org.ovirt.engine.core.common.businessentities.VDS vds , java.lang.String matchedEmulatedMachine ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getClusterDao ( ) . setEmulatedMachine ( vds.getClusterId ( ) , matchedEmulatedMachine , false ) ; }

Target:
private void setClusterEmulatedMachine ( org.ovirt.engine.core.common.businessentities.VDS vds , java.lang.String matchedEmulatedMachine ) { clusterDao.setEmulatedMachine ( vds.getClusterId ( ) , matchedEmulatedMachine , false ) ; }
Source:
public void ensureColumnPresent ( com.google.gwt.user.cellview.client.Column < T , ? > column , org.ovirt.engine.ui.common.widget.table.header.SafeHtmlHeader header , boolean present , java.lang.String width ) { table.ensureColumnPresent ( column , header , present , width ) ; tableHeader.ensureColumnPresent ( column , header , present , width ) ; }

Target:
public void ensureColumnVisible ( com.google.gwt.user.cellview.client.Column < T , ? > column , java.lang.String headerText , boolean visible ) { table.ensureColumnVisible ( column , headerText , visible ) ; tableHeader.ensureColumnVisible ( column , headerText , visible ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult networkNameValid ( ) { return ( ! ( networkLinkingSupported ( ) ) ) && ( ( nic.getNetworkName ( ) ) == null ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.NULL_NETWORK_IS_NOT_SUPPORTED , clusterVersion ( ) ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult networkNameValid ( ) { return ( ! ( org.ovirt.engine.core.bll.validator.VmNicValidator.networkLinkingSupported ( version ) ) ) && ( ( nic.getNetworkName ( ) ) == null ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.NULL_NETWORK_IS_NOT_SUPPORTED , clusterVersion ( ) ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
protected void ExecuteIrsBrokerCommand ( ) { org.ovirt.engine.core.vdsbroker.irsbroker.ResourceManager.getInstance ( ) . runVdsCommand ( VDSCommandType.ResetIrs , new org.ovirt.engine.core.vdsbroker.irsbroker.ResetIrsVDSCommandParameters ( org.ovirt.engine.core.vdsbroker.irsbroker.SpmStopOnIrsVDSCommand.getParameters ( ) . getStoragePoolId ( ) , org.ovirt.engine.core.vdsbroker.irsbroker.SpmStopOnIrsVDSCommand.getCurrentIrsProxyData ( ) . getCurrentVdsId ( ) ) ) ; }

Target:
protected void ExecuteIrsBrokerCommand ( ) { org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . runVdsCommand ( VDSCommandType.ResetIrs , new org.ovirt.engine.core.common.vdscommands.ResetIrsVDSCommandParameters ( org.ovirt.engine.core.vdsbroker.irsbroker.SpmStopOnIrsVDSCommand.getParameters ( ) . getStoragePoolId ( ) , org.ovirt.engine.core.vdsbroker.irsbroker.SpmStopOnIrsVDSCommand.getCurrentIrsProxyData ( ) . getCurrentVdsId ( ) ) ) ; }
Source:
public org.ovirt.engine.api.model.Group addParents ( org.ovirt.engine.api.model.Group group ) { return parent.addParents ( group ) ; }

Target:
protected org.ovirt.engine.api.model.Group doPopulate ( org.ovirt.engine.api.model.Group model , org.ovirt.engine.core.common.businessentities.LdapGroup entity ) { return model ; }
Source:
public java.lang.String getError ( ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) . getVdsErrorsTranslator ( ) . translateErrorTextSingle ( org.ovirt.engine.core.bll.storage.pool.SetStoragePoolStatusCommand.getParameters ( ) . getError ( ) . toString ( ) ) ; }

Target:
public java.lang.String getError ( ) { return backend.getVdsErrorsTranslator ( ) . translateErrorTextSingle ( org.ovirt.engine.core.bll.storage.pool.SetStoragePoolStatusCommand.getParameters ( ) . getError ( ) . toString ( ) ) ; }
Source:
public void testDiskAttachedToAnyVM ( ) { org.junit.Assert.assertThat ( validator.isDiskAttachedToAnyVm ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testDiskAttachedToAnyNonDownVM ( ) { org.junit.Assert.assertThat ( validator.isDiskAttachedToAnyNonDownVm ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VDS getUpServer ( ) { return getGlusterUtils ( ) . getRandomUpServer ( org.ovirt.engine.core.bll.gluster.GlusterCommandBase.getClusterId ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VDS getUpServer ( ) { return glusterUtil.getRandomUpServer ( org.ovirt.engine.core.bll.gluster.GlusterCommandBase.getClusterId ( ) ) ; }
Source:
public org.ovirt.engine.api.model.GlusterBricks list ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity > bricks = getBackendCollection ( VdcQueryType.GetGlusterVolumeBricks , new org.ovirt.engine.core.common.queries.IdQueryParameters ( asGuid ( getVolumeId ( ) ) ) ) ; return mapCollection ( bricks ) ; }

Target:
public org.ovirt.engine.api.model.GlusterBricks list ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity > bricks = getBackendCollection ( VdcQueryType.GetGlusterVolumeBricks , new org.ovirt.engine.core.common.queries.IdQueryParameters ( asGuid ( getVolumeId ( ) ) ) ) ; org.ovirt.engine.api.model.GlusterBricks bricksModel = mapCollection ( bricks ) ; return addActions ( bricksModel ) ; }
Source:
public void setLiveSnapshotSupport ( java.lang.Boolean value ) { vdsDynamic.setLiveSnapshotSupport ( value ) ; }

Target:
public boolean isHostedEngineHost ( ) { return hostedEngineHost ; }
Source:
public void testPosixCompatibility ( ) { storageDomain.setStorageType ( StorageType.POSIXFS ) ; org.junit.Assert.assertThat ( "Attaching a POSIX domain failed while it should have succeeded" , validator.validateDomainCanBeAttachedToPool ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testPosixCompatibility ( ) { storageDomain.setStorageType ( StorageType.POSIXFS ) ; org.hamcrest.MatcherAssert.assertThat ( "Attaching a POSIX domain failed while it should have succeeded" , validator.validateDomainCanBeAttachedToPool ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void testGetWithName ( ) { org.ovirt.engine.core.common.businessentities.VDS result = dao.getByName ( existingVds.getName ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingVds.getName ( ) , result.getName ( ) ) ; }

Target:
public void testGetWithName ( ) { org.ovirt.engine.core.common.businessentities.VDS result = dao.getByName ( existingVds.getName ( ) ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertEquals ( existingVds.getName ( ) , result.getName ( ) ) ; }
Source:
public org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolManagerStrategy poolForDataCenter ( org.ovirt.engine.core.compat.Guid dataCenterId ) { try ( org.ovirt.engine.core.utils.lock.AutoCloseableLock lock = readLockResource ( ) ) { return getPoolWithoutLocking ( getMacPoolId ( dataCenterId ) ) ; } }

Target:
public org.ovirt.engine.core.bll.network.macpool.MacPool poolForDataCenter ( org.ovirt.engine.core.compat.Guid dataCenterId ) { try ( org.ovirt.engine.core.utils.lock.AutoCloseableLock lock = readLockResource ( ) ) { return getPoolWithoutLocking ( getMacPoolId ( dataCenterId ) ) ; } }
Source:
protected boolean validateVmPoolProperties ( ) { if ( ( ( updateReadOnlyRequested ( ) ) || ( updateWipeAfterDeleteRequested ( ) ) ) && ( ( org.ovirt.engine.core.bll.UpdateVmDiskCommand.getVm ( ) . getVmPoolId ( ) ) != null ) ) return failCanDoAction ( VdcBllMessages.ACTION_TYPE_FAILED_VM_ATTACHED_TO_POOL ) ; return true ; }

Target:
protected boolean validateVmPoolProperties ( ) { if ( ( ( updateReadOnlyRequested ( ) ) || ( updateWipeAfterDeleteRequested ( ) ) ) && ( ( org.ovirt.engine.core.bll.UpdateVmDiskCommand.getVm ( ) . getVmPoolId ( ) ) != null ) ) return failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_VM_ATTACHED_TO_POOL ) ; return true ; }
Source:
public void getJobIdByEntityIdAndEntityType ( ) { java.util.List < org.ovirt.engine.core.compat.Guid > jobIdByEntityIdAndEntityType = dao.getJobIdByEntityId ( FixturesTool.HOST_ID ) ; org.junit.Assert.assertTrue ( "Verify job subject entities exist for a given job" , jobIdByEntityIdAndEntityType.contains ( org.ovirt.engine.core.dao.JobSubjectEntityDaoTest.EXISTING_JOB_ID ) ) ; }

Target:
public void getJobIdByEntityIdAndEntityType ( ) { java.util.List < org.ovirt.engine.core.compat.Guid > jobIdByEntityIdAndEntityType = dao.getJobIdByEntityId ( FixturesTool.HOST_ID ) ; org.junit.jupiter.api.Assertions.assertTrue ( jobIdByEntityIdAndEntityType.contains ( org.ovirt.engine.core.dao.JobSubjectEntityDaoTest.EXISTING_JOB_ID ) , "Verify job subject entities exist for a given job" ) ; }
Source:
public void testSetActionMessageParameters ( ) { command.setActionMessageParameters ( ) ; org.ovirt.engine.core.bll.CommandAssertUtils.checkMessages ( command , VdcBllMessages.VAR__TYPE__STORAGE__DOMAIN , VdcBllMessages.VAR__ACTION__REMOVE ) ; }

Target:
public void testSetActionMessageParameters ( ) { org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertSetActionMessageParameters ( command , VdcBllMessages.VAR__TYPE__STORAGE__DOMAIN , VdcBllMessages.VAR__ACTION__REMOVE ) ; }
Source:
public void testCanDoActionImageDoesNotExist ( ) { org.mockito.Mockito.when ( getDiskImageDao ( ) . get ( getDiskImageId ( ) ) ) . thenReturn ( null ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , VdcBllMessages.ACTION_TYPE_FAILED_DISK_NOT_EXIST ) ; }

Target:
public void testCanDoActionImageDoesNotExist ( ) { org.mockito.Mockito.when ( getDiskDao ( ) . get ( getDiskImageGroupId ( ) ) ) . thenReturn ( null ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , VdcBllMessages.ACTION_TYPE_FAILED_DISK_NOT_EXIST ) ; }
Source:
public void testPosixEmptyVFSType ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections newPosixConnection = createPosixConnection ( "multipass.my.domain.tlv.company.com:/export/allstorage/data1" , StorageType.POSIXFS , null , "timeo=30" ) ; parameters.setStorageServerConnection ( newPosixConnection ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( getCommand ( ) , EngineMessage.VALIDATION_STORAGE_CONNECTION_EMPTY_VFSTYPE ) ; }

Target:
public void testISCSIInvalidPortWithCharacters ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections newISCSIConnection = createISCSIConnection ( "10.35.16.25" , StorageType.ISCSI , "iqn.2013-04.myhat.com:aaa-target1" , "abc" , "user1" , "mypassword123" ) ; parameters.setStorageServerConnection ( newISCSIConnection ) ; parameters.setVdsId ( Guid.Empty ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.VALIDATION_STORAGE_CONNECTION_INVALID_PORT ) ; }
Source:
protected void EndWithFailure ( ) { RemoveNetwork ( ) ; RemoveImages ( ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmTemplateDAO ( ) . remove ( getVmTemplateId ( ) ) ; rollbackQuota ( ) ; setSucceeded ( true ) ; }

Target:
protected void endWithFailure ( ) { RemoveNetwork ( ) ; RemoveImages ( ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmTemplateDAO ( ) . remove ( getVmTemplateId ( ) ) ; rollbackQuota ( ) ; setSucceeded ( true ) ; }
Source:
public void testInvalidNumberOfMonitors ( ) { prepareVmToPassCanDoAction ( ) ; vmStatic.setNumOfMonitors ( 99 ) ; junit.framework.Assert.assertFalse ( "canDoAction should have failed with invalid number of monitors." , command.canDoAction ( ) ) ; assertCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_ILLEGAL_NUM_OF_MONITORS ) ; }

Target:
public void testChangeToExistingName ( ) { prepareVmToPassCanDoAction ( ) ; mockSameNameQuery ( true ) ; org.junit.Assert.assertFalse ( "canDoAction should have failed with vm name already in use." , command.canDoAction ( ) ) ; assertCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_NAME_ALREADY_USED ) ; }
Source:
protected R query ( ) { return performGet ( VdcQueryType.GetTasksStatusesByTasksIDs , new org.ovirt.engine.core.common.queries.GetTasksStatusesByTasksIDsParameters ( ids ) ) ; }

Target:
protected R query ( ) { return performGet ( QueryType.GetTasksStatusesByTasksIDs , new org.ovirt.engine.core.common.queries.GetTasksStatusesByTasksIDsParameters ( ids ) ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.Permission , org.ovirt.engine.ui.uicommonweb.models.pools.PoolListModel , org.ovirt.engine.ui.uicommonweb.models.configure.PermissionListModel < org.ovirt.engine.core.common.businessentities.VmPool > > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.pool.SubTabPoolPermissionPresenter.constants.poolPermissionSubTabLabel ( ) , 2 , 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.pool.SubTabPoolPermissionPresenter.constants.poolPermissionSubTabLabel ( ) , 2 ) ; }
Source:
public void setPmSecondaryPassword ( java.lang.String value ) { mVdsStatic.setPmSecondaryPassword ( value ) ; }

Target:
public void setLiveMergeSupport ( boolean value ) { this . mVdsDynamic.setLiveMergeSupport ( value ) ; }
Source:
protected static org.ovirt.engine.api.restapi.resource.BackendDeviceResource < org.ovirt.engine.api.model.CdRom , org.ovirt.engine.api.model.CdRoms , org.ovirt.engine.core.common.businessentities.VM > getResource ( org.ovirt.engine.core.compat.Guid id ) { return new org.ovirt.engine.api.restapi.resource.BackendCdRomResource ( org.ovirt.engine.api.model.CdRom.class , org.ovirt.engine.core.common.businessentities.VM.class , id , org.ovirt.engine.api.restapi.resource.BackendCdRomResourceTest.collection , org.ovirt.engine.core.common.action.VdcActionType.UpdateVm , org.ovirt.engine.api.restapi.resource.BackendCdRomResourceTest.collection.getUpdateParametersProvider ( ) , org.ovirt.engine.api.restapi.resource.BackendCdRomResourceTest.collection.getRequiredUpdateFields ( ) ) ; }

Target:
protected static org.ovirt.engine.api.restapi.resource.BackendDeviceResource < org.ovirt.engine.api.model.CdRom , org.ovirt.engine.api.model.CdRoms , org.ovirt.engine.core.common.businessentities.VM > getResource ( org.ovirt.engine.core.compat.Guid id ) { return new org.ovirt.engine.api.restapi.resource.BackendCdRomResource ( org.ovirt.engine.api.restapi.resource.AbstractBackendCdRomsResourceTest.PARENT_ID , id , org.ovirt.engine.api.restapi.resource.BackendCdRomResourceTest.collection , org.ovirt.engine.core.common.action.VdcActionType.UpdateVm , org.ovirt.engine.api.restapi.resource.BackendCdRomResourceTest.collection.getUpdateParametersProvider ( ) , org.ovirt.engine.api.restapi.resource.BackendCdRomResourceTest.collection.getRequiredUpdateFields ( ) ) ; }
Source:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( org.ovirt.engine.core.bll.gluster.ManageGlusterServiceCommand.manageActionDetailsMap.get ( getParameters ( ) . getActionType ( ) ) . getCanDoActionMsg ( ) ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__GLUSTER_SERVICE ) ; }

Target:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( org.ovirt.engine.core.bll.gluster.ManageGlusterServiceCommand.manageActionDetailsMap.get ( getParameters ( ) . getActionType ( ) ) . getCanDoActionMsg ( ) ) ; addCanDoActionMessage ( EngineMessage.VAR__TYPE__GLUSTER_SERVICE ) ; }
Source:
public void setLunsMap ( java.util.Map < java.lang.String , org.ovirt.engine.core.common.businessentities.storage.LUNs > lunsMap ) { this . lunsMap = lunsMap ; }

Target:
public org.ovirt.engine.core.vdsbroker.vdsbroker.entities.VmInternalData setLunsMap ( java.util.Map < java.lang.String , org.ovirt.engine.core.common.businessentities.storage.LUNs > lunsMap ) { this . lunsMap = lunsMap ; return this ; }
Source:
public void cleaningCompensationDataAfterSuccess ( ) { macPool.freeMacs ( macsToReleaseOnCommit ) ; }

Target:
public void cleaningCompensationDataAfterSuccess ( ) { log.debug ( ( "Command successfully executed, releasing macs: {}" + ( macsToReleaseOnCommit ) ) ) ; macPool.freeMacs ( macsToReleaseOnCommit ) ; }
Source:
public boolean isOlderThan ( final org.ovirt.engine.core.bll.scheduling.OS os ) { return ( getVersion ( ) . compareTo ( os.getVersion ( ) ) ) < 0 ; }

Target:
public boolean isOlderThan ( final org.ovirt.engine.core.bll.scheduling.OS os ) { return getVersion ( ) . less ( os.getVersion ( ) ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { if ( ( ( org.ovirt.engine.ui.webadmin.section.main.view.popup.host.HostPopupView ) ( getView ( ) ) ) . rbProvisionedHost.getValue ( ) ) { model.getIsDiscoveredHosts ( ) . setEntity ( false ) ; } }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { if ( ( ( org.ovirt.engine.ui.webadmin.section.main.view.popup.host.HostPopupView ) ( getView ( ) ) ) . rbDiscoveredHost.getValue ( ) ) { model.getIsDiscoveredHosts ( ) . setEntity ( true ) ; } }
Source:
private void setDefaultVolumeType ( org.ovirt.engine.core.common.businessentities.StorageType storageType ) { getVolumeType ( ) . setSelectedItem ( ( storageType.isBlockDomain ( ) ? org.ovirt.engine.core.common.businessentities.VolumeType.Preallocated : org.ovirt.engine.core.common.businessentities.VolumeType.Sparse ) ) ; volumeType_SelectedItemChanged ( ) ; }

Target:
protected abstract void updateVolumeType ( org.ovirt.engine.core.common.businessentities.StorageType storageType ) ;
Source:
protected void verifyModel ( org.ovirt.engine.api.model.HostNIC model , int index ) { verifyModelSpecific ( model , index ) ; verifyLinks ( model ) ; }

Target:
protected void verifyModel ( org.ovirt.engine.api.model.HostNic model , int index ) { verifyModelSpecific ( model , index ) ; verifyLinks ( model ) ; }
Source:
public java.util.Set < java.lang.String > getConsumedEvents ( ) { java.util.Set < java.lang.String > set = new java.util.HashSet < java.lang.String > ( ) ; set.add ( BrowserEvents.CLICK ) ; set.addAll ( super . getConsumedEvents ( ) ) ; return set ; }

Target:
public java.util.Set < java.lang.String > getConsumedEvents ( ) { java.util.Set < java.lang.String > set = new java.util.HashSet ( super . getConsumedEvents ( ) ) ; set.add ( BrowserEvents.CLICK ) ; set.add ( BrowserEvents.MOUSEMOVE ) ; return set ; }