auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void parametersWithSecureDeletionAreNotFixedOnBlockDomainWhenPostZeroIsFalse ( ) { org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandlerTest.ParametersWithPostDeleteAction parameters = org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandler.fixParameters ( new org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandlerTest.ParametersWithPostDeleteAction ( false ) , false ) ; assertPostZeroValue ( parameters , false ) ; }

Target:
public void parametersWithSecureDeletionAreNotFixedOnBlockDomainWhenPostZeroIsFalse ( ) { org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandlerTest.ParametersWithPostDeleteAction parameters = postDeleteActionHandler.fixParameters ( new org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandlerTest.ParametersWithPostDeleteAction ( false ) , false ) ; assertPostZeroValue ( parameters , false ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.StoragePool createStoragePoolLocalFS ( ) { org.ovirt.engine.core.common.businessentities.StoragePool pool = new org.ovirt.engine.core.common.businessentities.StoragePool ( ) ; pool.setStorageType ( StorageType.LOCALFS ) ; return pool ; }

Target:
private static org.ovirt.engine.core.common.businessentities.StoragePool createStoragePoolLocalFS ( ) { org.ovirt.engine.core.common.businessentities.StoragePool pool = new org.ovirt.engine.core.common.businessentities.StoragePool ( ) ; pool.setIsLocal ( true ) ; return pool ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { resiliencePolicyTab.setVisible ( object.getisResiliencePolicyTabAvailable ( ) ) ; applyModeCustomizations ( ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { if ( object.getOptimizationCustom_IsSelected ( ) . getEntity ( ) ) { optimizationCustomFormatter ( object ) ; optimizationCustomEditor.setVisible ( true ) ; } }
Source:
public void setVolumeType ( org.ovirt.engine.core.common.businessentities.VolumeType type ) { volumeType = type ; }

Target:
public void setVolumeType ( org.ovirt.engine.core.common.businessentities.VolumeType type ) { volumeType = type ; setSelectedVolumeType ( type ) ; }
Source:
public void setAutoSuspend ( boolean value ) { this . vmStatic.setAutoSuspend ( value ) ; }

Target:
public void setSingleQxlPci ( boolean value ) { this . vmStatic.setSingleQxlPci ( value ) ; }
Source:
public java.lang.Integer parse ( java.lang.CharSequence text ) throws java.text.ParseException { return incraseNumOfVmsEditor.asEditor ( ) . getValue ( ) ; }

Target:
public java.lang.Integer parse ( java.lang.CharSequence text ) throws java.text.ParseException { return increaseNumOfVmsEditor.asEditor ( ) . getValue ( ) ; }
Source:
public void testDefaultRouteNonDefaultRouteNetworkIsIgnored ( ) { iface.setIpv4DefaultRoute ( true ) ; network.setDnsResolverConfiguration ( sampleDnsResolverConfiguration ) ; org.junit.Assert.assertThat ( createTestedInstance ( false , sampleDnsResolverConfiguration ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testDefaultRouteWhenOutOfSync ( ) { network.setDnsResolverConfiguration ( sampleDnsResolverConfiguration ) ; org.junit.Assert.assertThat ( createTestedInstance ( true , sampleDnsResolverConfiguration ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( false ) ) ; }
Source:
public void setValue ( java.lang.String value ) { this . value = value ; }

Target:
public boolean isSetExpectedValue ( ) { return ( this . expectedValue ) != null ; }
Source:
public void numOfVfsIsNotInRange ( ) { numOfVfsInValidRange ( false ) ; assertValidateFailure ( EngineMessage.ACTION_TYPE_FAILED_NUM_OF_VFS_NOT_IN_VALID_RANGE.toString ( ) ) ; }

Target:
public void numOfVfsIsNotInRange ( ) { numOfVfsInValidRange ( false ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_NUM_OF_VFS_NOT_IN_VALID_RANGE ) ; }
Source:
public void onBrowserEvent ( org.ovirt.engine.ui.common.widget.table.column.Context context , com.google.gwt.dom.client.Element parent , java.lang.String value , com.google.gwt.dom.client.NativeEvent event , com.google.gwt.cell.client.ValueUpdater < java.lang.String > valueUpdater ) { delegate.onBrowserEvent ( context , parent , value , event , valueUpdater ) ; }

Target:
public void onBrowserEvent ( org.ovirt.engine.ui.common.widget.table.cell.Context context , com.google.gwt.dom.client.Element parent , java.lang.String value , com.google.gwt.dom.client.NativeEvent event , com.google.gwt.cell.client.ValueUpdater < java.lang.String > valueUpdater ) { delegate.onBrowserEvent ( context , parent , value , event , valueUpdater ) ; }
Source:
protected boolean doesStorageDomainhaveSpaceForRequest ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , long sizeRequested ) { return validate ( new org.ovirt.engine.core.bll.validator.StorageDomainValidator ( storageDomain ) . isDomainHasSpaceForRequest ( sizeRequested ) ) ; }

Target:
protected boolean doesStorageDomainhaveSpaceForRequest ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , long sizeRequested ) { return new org.ovirt.engine.core.bll.validator.StorageDomainValidator ( storageDomain ) . isDomainHasSpaceForRequest ( sizeRequested ) . isValid ( ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.storage_server_connections > getStorageServerConnectionsByDomain ( org.ovirt.engine.core.common.businessentities.storage_domain_static storageDomain ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage_server_connections > ( ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > getStorageServerConnectionsByDomain ( org.ovirt.engine.core.common.businessentities.StorageDomainStatic storageDomain ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageServerConnections > ( ) ; }
Source:
public int compare ( org.ovirt.engine.core.common.businessentities.network.Network x , org.ovirt.engine.core.common.businessentities.network.Network y ) { return org.ovirt.engine.core.common.businessentities.comparators.LexoNumericComparator.comp ( x.getName ( ) , y.getName ( ) ) ; }

Target:
public int compare ( org.ovirt.engine.core.common.businessentities.Provider p1 , org.ovirt.engine.core.common.businessentities.Provider p2 ) { return org.ovirt.engine.core.common.businessentities.comparators.LexoNumericComparator.comp ( p1.getName ( ) , p2.getName ( ) ) ; }
Source:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; org.ovirt.engine.api.model.DiskProfile diskProfile = getDiskProfile ( id ) ; return performAction ( VdcActionType.RemoveDiskProfile , new org.ovirt.engine.core.common.action.DiskProfileParameters ( diskProfile ) ) ; }

Target:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; org.ovirt.engine.api.model.DiskProfile diskProfile = getDiskProfile ( id ) ; return performAction ( ActionType.RemoveDiskProfile , new org.ovirt.engine.core.common.action.DiskProfileParameters ( diskProfile ) ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmModelBehaviorBase behavior = this ; behavior.maxCpus = ( ( java.lang.Integer ) ( returnValue ) ) ; behavior.postUpdateNumOfSockets2 ( ) ; }

Target:
public void onSuccess ( java.lang.Integer returnValue ) { maxCpus = returnValue ; postUpdateNumOfSockets2 ( ) ; }
Source:
protected void moveTag ( org.ovirt.engine.core.compat.Guid newParentId ) { performAction ( VdcActionType.MoveTag , new org.ovirt.engine.core.common.action.MoveTagParameters ( guid , newParentId ) , java.lang.Void.class ) ; }

Target:
protected void moveTag ( org.ovirt.engine.core.compat.Guid newParentId ) { performAction ( ActionType.MoveTag , new org.ovirt.engine.core.common.action.MoveTagParameters ( guid , newParentId ) , java.lang.Void.class ) ; }
Source:
public org.ovirt.vdsmfake.service.StorageDomain getStorageDomainById ( java.lang.String id ) { return org.ovirt.vdsmfake.service.VdsmManager.getInstance ( ) . getStorageDomainById ( id ) ; }

Target:
public org.ovirt.vdsmfake.domain.StorageDomain getStorageDomainById ( java.lang.String id ) { return org.ovirt.vdsmfake.domain.VdsmManager.getInstance ( ) . getStorageDomainById ( id ) ; }
Source:
public void testGetForStoragePoolWithInvalidId ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain result = dao.getForStoragePool ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) , org.ovirt.engine.core.dao.StorageDomainDAOTest.EXISTING_STORAGE_POOL_ID ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetForStoragePoolWithInvalidId ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain result = dao.getForStoragePool ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , org.ovirt.engine.core.dao.StorageDomainDAOTest.EXISTING_STORAGE_POOL_ID ) ; org.junit.Assert.assertNull ( result ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult interfaceExists ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.HOST_NETWORK_INTERFACE_NOT_EXIST ) . when ( ( ( iface ) == null ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult interfaceExists ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.HOST_NETWORK_INTERFACE_NOT_EXIST ) . when ( ( ( iface ) == null ) ) ; }
Source:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( EngineMessage.VAR__ACTION__REBALANCE_STOP ) ; addCanDoActionMessage ( EngineMessage.VAR__TYPE__GLUSTER_VOLUME ) ; super . setActionMessageParameters ( ) ; }

Target:
protected void setActionMessageParameters ( ) { addValidationMessage ( EngineMessage.VAR__ACTION__REBALANCE_STOP ) ; addValidationMessage ( EngineMessage.VAR__TYPE__GLUSTER_VOLUME ) ; super . setActionMessageParameters ( ) ; }
Source:
protected void vdsNonOperational ( org.ovirt.engine.core.common.businessentities.VDS vds ) { org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . getEventListener ( ) . vdsNonOperational ( vds.getId ( ) , NonOperationalReason.KVM_NOT_RUNNING , true , true , Guid.Empty ) ; }

Target:
protected void vdsNonOperational ( org.ovirt.engine.core.common.businessentities.VDS vds , org.ovirt.engine.core.common.businessentities.NonOperationalReason reason , java.util.Map < java.lang.String , java.lang.String > customLogValues ) { org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . getEventListener ( ) . vdsNonOperational ( vds.getId ( ) , reason , true , true , Guid.Empty , customLogValues ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase runInternalAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { return runActionImpl ( actionType , parameters , true , null ) ; }

Target:
public org.ovirt.engine.core.common.action.ActionReturnValue runAction ( org.ovirt.engine.core.common.action.ActionType actionType , org.ovirt.engine.core.common.action.ActionParametersBase parameters ) { org.ovirt.engine.core.common.action.ActionReturnValue returnValue = notAllowToRunAction ( actionType ) ; if ( returnValue != null ) { return returnValue ; } return runActionImpl ( actionType , parameters , false , null ) ; }
Source:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.core.common.businessentities.Disk object ) { return ( object.getDiskStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.Disk.DiskStorageType.LUN ) ? resources.externalDiskIcon ( ) : null ; }

Target:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.core.common.businessentities.Disk object ) { setEnumTitle ( object.getDiskStorageType ( ) ) ; return ( object.getDiskStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.Disk.DiskStorageType.LUN ) ? resources.externalDiskIcon ( ) : null ; }
Source:
public void testInterfaceByNameExistsWhenInterfacesNameIsNull ( ) throws java.lang.Exception { org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.validator.HostInterfaceValidator ( createVdsNetworkInterfaceWithName ( null ) ) . interfaceByNameExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.HOST_NETWORK_INTERFACE_NOT_EXIST ) ) ; }

Target:
public void testInterfaceByNameExistsWhenInterfacesNameIsNull ( ) throws java.lang.Exception { org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.validator.HostInterfaceValidator ( createVdsNetworkInterfaceWithName ( null ) ) . interfaceByNameExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.HOST_NETWORK_INTERFACE_NOT_EXIST ) ) ; }
Source:
public void testIsInStatusValid ( ) { org.junit.Assert.assertThat ( validator.isInStatus ( StoragePoolStatus.Up , StoragePoolStatus.Contend ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testIsInStatusValid ( ) { org.junit.Assert.assertThat ( validator.isInStatus ( StoragePoolStatus.Up , StoragePoolStatus.Contend ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; org.junit.Assert.assertThat ( validator.isNotInStatus ( StoragePoolStatus.Up , StoragePoolStatus.Contend ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_STORAGE_POOL_STATUS_ILLEGAL ) ) ; }
Source:
public void validate ( ) { initializeSuppliedImage ( ) ; org.junit.Assert.assertTrue ( getCommand ( ) . validate ( ) ) ; }

Target:
public void validate ( ) { initializeSuppliedImage ( ) ; org.junit.Assert.assertTrue ( transferImageCommand.validate ( ) ) ; }
Source:
private void logFailureMessage ( java.lang.String messagePrefix , java.lang.RuntimeException ex ) { org.ovirt.engine.core.vdsbroker.VdsUpdateRunTimeInfo.log.errorFormat ( "{0} Error: {1}, vds = {2} : {3}" , messagePrefix , org.apache.commons.lang.exception.ExceptionUtils.getMessage ( ex ) , _vds.getId ( ) , _vds.getName ( ) ) ; }

Target:
private void logFailureMessage ( java.lang.String messagePrefix , java.lang.RuntimeException ex ) { org.ovirt.engine.core.vdsbroker.VdsUpdateRunTimeInfo.log.error ( "{} vds={}({}): {}" , messagePrefix , org.apache.commons.lang.exception.ExceptionUtils.getMessage ( ex ) , _vds.getName ( ) , _vds.getId ( ) ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetVmCustomPropertiesQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.utils.customprop.VmPropertiesUtils.getInstance ( ) . getAllVmProperties ( ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetVmCustomPropertiesQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.common.utils.customprop.VmPropertiesUtils.getInstance ( ) . getAllVmProperties ( ) ) ; }
Source:
protected org.ovirt.engine.api.model.VM getEntityWithProvidedId ( int index , org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.api.model.VM vm = new org.ovirt.engine.api.model.VM ( ) ; return org.ovirt.engine.api.restapi.resource.BackendVmsResourceTest.setUpEntityExpectations ( vm , vm.getStatisticsData ( ) , index , vmId ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VM getEntityWithProvidedId ( int index , org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.api.restapi.resource.VM vm = new org.ovirt.engine.api.restapi.resource.VM ( ) ; return org.ovirt.engine.api.restapi.resource.BackendVmsResourceTest.setUpEntityExpectations ( vm , vm.getStatisticsData ( ) , index , vmId ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { return null ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage = ( ( org.ovirt.engine.core.common.businessentities.storage.DiskImage ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ) ) ; return diskImage.getDiskDescription ( ) ; }
Source:
public void statusNotSupportedForHostInstallation ( ) { org.mockito.Mockito.when ( oldHost.getStatus ( ) ) . thenReturn ( VDSStatus.Up ) ; validator = createValidatorForHostInstallation ( ) ; org.junit.Assert.assertThat ( validator.statusSupportedForHostInstallation ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.VDS_CANNOT_INSTALL_STATUS_ILLEGAL ) ) ; }

Target:
public void statusNotSupportedForHostInstallation ( ) { org.mockito.Mockito.when ( oldHost.getStatus ( ) ) . thenReturn ( VDSStatus.Up ) ; validator = createValidatorForHostInstallation ( ) ; org.hamcrest.MatcherAssert.assertThat ( validator.statusSupportedForHostInstallation ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.VDS_CANNOT_INSTALL_STATUS_ILLEGAL ) ) ; }
Source:
private boolean runVm ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.utils.lock.EngineLock lock ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( VdcActionType.RunVm , new org.ovirt.engine.core.common.action.RunVmParams ( vmId ) , org.ovirt.engine.core.bll.job.ExecutionHandler.createInternalJobContext ( lock ) ) . getSucceeded ( ) ; }

Target:
private boolean runVm ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.utils.lock.EngineLock lock ) { return backend.runInternalAction ( VdcActionType.RunVm , new org.ovirt.engine.core.common.action.RunVmParams ( vmId ) , org.ovirt.engine.core.bll.job.ExecutionHandler.createInternalJobContext ( lock ) ) . getSucceeded ( ) ; }
Source:
protected void executeVDSCommand ( ) { org.ovirt.engine.core.vdsbroker.vdsbroker.HotUnplugNicVDSCommand.init ( ) ; status = org.ovirt.engine.core.vdsbroker.vdsbroker.HotUnplugNicVDSCommand.getBroker ( ) . hotUnplugNic ( struct ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.HotUnplugNicVDSCommand.proceedProxyReturnValue ( ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.vdsbroker.HotUnplugNicVDSCommand.getBroker ( ) . hotUnplugNic ( org.ovirt.engine.core.vdsbroker.vdsbroker.HotUnplugNicVDSCommand.createParametersStruct ( ) ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.HotUnplugNicVDSCommand.proceedProxyReturnValue ( ) ; }
Source:
public void testNoBase ( ) throws java.io.IOException { org.ovirt.engine.core.utils.archivers.tar.Tar.doTar ( new java.io.ByteArrayOutputStream ( ) , new java.io.File ( "/asdasdsadasdasdsa" ) ) ; }

Target:
public void testNoBase ( ) { org.junit.jupiter.api.Assertions.assertThrows ( java.io.FileNotFoundException.class , ( ) -> org.ovirt.engine.core.utils.archivers.tar.Tar.doTar ( new java.io.ByteArrayOutputStream ( ) , new java.io.File ( "/asdasdsadasdasdsa" ) ) ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.StorageDomain storage_domains ) { return ( storage_domains.getstorage_domain_type ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainType.Master ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.StorageDomain storage_domains ) { return ( storage_domains.getStorageDomainType ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainType.Master ) ; }
Source:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; setAsyncResult ( org.ovirt.engine.ui.frontend.Frontend.RegisterSearch ( getSearchString ( ) , SearchType.Network , getSearchPageSize ( ) ) ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }

Target:
protected void onSelectedItemChanged ( ) { super . onSelectedItemChanged ( ) ; updateActionAvailability ( ) ; }
Source:
public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { model.getUpdateCommand ( ) . Execute ( ) ; }

Target:
public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { if ( ! ( ( java.lang.Boolean ) ( diskModel.getIsInternal ( ) . getEntity ( ) ) ) ) { model.getUpdateCommand ( ) . Execute ( ) ; } }
Source:
protected org.ovirt.engine.core.common.utils.ToStringBuilder appendAttributes ( org.ovirt.engine.core.common.utils.ToStringBuilder tsb ) { return super . appendAttributes ( tsb ) . append ( "diskId" , disk.getId ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.utils.ToStringBuilder appendAttributes ( org.ovirt.engine.core.common.utils.ToStringBuilder tsb ) { return super . appendAttributes ( tsb ) . append ( "diskId" , disk.getId ( ) ) . append ( "addressMap" , addressMap ) ; }
Source:
protected void RunCommands ( ) { for ( org.ovirt.engine.core.bll.CommandBase < ? > command : getCommands ( ) ) { executeValidatedCommands ( command ) ; } }

Target:
protected void RunCommands ( ) { for ( org.ovirt.engine.core.bll.CommandBase < ? > command : getCommands ( ) ) { if ( command.getReturnValue ( ) . getCanDoAction ( ) ) { executeValidatedCommand ( command ) ; } } }
Source:
private static org.ovirt.engine.core.common.businessentities.DiskImage createPreallocDiskImage ( ) { org.ovirt.engine.core.common.businessentities.DiskImage image = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; image.setVolumeType ( VolumeType.Preallocated ) ; image.setDiskInterface ( DiskInterface.IDE ) ; image.setSizeInGigabytes ( 5 ) ; return image ; }

Target:
private static org.ovirt.engine.core.common.businessentities.storage.DiskImage createPreallocDiskImage ( ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage image = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; image.setVolumeType ( VolumeType.Preallocated ) ; image.setDiskInterface ( DiskInterface.IDE ) ; image.setSizeInGigabytes ( 5 ) ; return image ; }
Source:
public void testGetForStoragePoolWithInvalidPool ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain result = dao.getForStoragePool ( existingDomain.getId ( ) , org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetForStoragePoolWithInvalidPool ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain result = dao.getForStoragePool ( existingDomain.getId ( ) , org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.jupiter.api.Assertions.assertNull ( result ) ; }
Source:
public void setAuthn ( java.lang.String sessionId , org.ovirt.engine.core.extensions.mgr.ExtensionProxy authn ) { setData ( sessionId , org.ovirt.engine.core.bll.aaa.SessionDataContainer.AUTHN_PARAMETER_NAME , authn ) ; }

Target:
public void setProfile ( java.lang.String sessionId , org.ovirt.engine.core.aaa.AuthenticationProfile profile ) { setData ( sessionId , org.ovirt.engine.core.bll.aaa.SessionDataContainer.PROFILE_PARAMETER_NAME , profile ) ; }
Source:
public void setvds_type ( org.ovirt.engine.core.common.businessentities.VDSType value ) { this . mVdsStatic.setvds_type ( value ) ; }

Target:
public void setVdsType ( org.ovirt.engine.core.common.businessentities.VDSType value ) { this . mVdsStatic.setVdsType ( value ) ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml underlinedHeader ( com.google.gwt.safehtml.shared.SafeHtml html ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml hasTooltip ( com.google.gwt.safehtml.shared.SafeHtml html ) ;
Source:
public org.ovirt.engine.core.bll.ValidationResult notManagementNetwork ( ) { return org.ovirt.engine.core.utils.NetworkUtils.isManagementNetwork ( network ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.NETWORK_CANNOT_REMOVE_MANAGEMENT_NETWORK , java.lang.String.format ( "$NetworkName %s" , network.getName ( ) ) ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult notManagementNetwork ( ) { return org.ovirt.engine.core.utils.NetworkUtils.isManagementNetwork ( network ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.NETWORK_CANNOT_REMOVE_MANAGEMENT_NETWORK , getNetworkNameReplacement ( ) ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
protected org.ovirt.engine.core.common.businessentities.storage_pool setUpStoragePool ( org.ovirt.engine.core.compat.Guid id ) { org.ovirt.engine.core.common.businessentities.storage_pool pool = control.createMock ( org.ovirt.engine.core.common.businessentities.storage_pool.class ) ; org.easymock.classextension.EasyMock.expect ( pool.getId ( ) ) . andReturn ( id ) . anyTimes ( ) ; return pool ; }

Target:
protected org.ovirt.engine.core.common.businessentities.storage_pool setUpStoragePool ( org.ovirt.engine.core.compat.Guid id ) { org.ovirt.engine.core.common.businessentities.storage_pool pool = control.createMock ( org.ovirt.engine.core.common.businessentities.storage_pool.class ) ; org.easymock.EasyMock.expect ( pool.getId ( ) ) . andReturn ( id ) . anyTimes ( ) ; return pool ; }
Source:
public java.lang.String getDisplayIp ( ) { return this . displayIp ; }

Target:
public void setGuestOsTimezoneOffset ( int guestOsTimezoneOffset ) { this . guestOsTimezoneOffset = guestOsTimezoneOffset ; }
Source:
protected void AsyncSearch ( ) { super . AsyncSearch ( ) ; setAsyncResult ( org.ovirt.engine.ui.frontend.Frontend.RegisterSearch ( getSearchString ( ) , SearchType.VM , getSearchPageSize ( ) ) ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }

Target:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; setAsyncResult ( org.ovirt.engine.ui.frontend.Frontend.RegisterSearch ( getSearchString ( ) , SearchType.VM , getSearchPageSize ( ) ) ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }
Source:
java.util.Map < java.lang.String , java.lang.String > getVmToHostAssignments ( ) ;

Target:
java.util.Map < java.lang.Long , java.lang.String > getInstanceToHostAssignments ( ) ;
Source:
public java.lang.Object runInTransaction ( ) { HandleVdsInformation ( ) ; vm.setrun_on_vds ( getVdsId ( ) ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDynamicDAO ( ) . update ( vm.getDynamicData ( ) ) ; return null ; }

Target:
public java.lang.Object runInTransaction ( ) { HandleVdsInformation ( ) ; vm.setrun_on_vds ( getVdsId ( ) ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDynamicDao ( ) . update ( vm.getDynamicData ( ) ) ; return null ; }
Source:
public void allCharsetCanPass ( org.ovirt.engine.core.common.utils.I18NRegexpTest.CorrectString correct ) { org.junit.Assert.assertThat ( ( ( "Check can not recognize all chars in a valid string '" + ( correct.text ) ) + "'" ) , new org.ovirt.engine.core.compat.Regex ( org.ovirt.engine.core.common.utils.I18NRegexpTest.REGEXP ) . isMatch ( correct.text ) , org.hamcrest.core.Is.is ( true ) ) ; }

Target:
public void allCharsetCanPass ( java.lang.String correct ) { org.hamcrest.MatcherAssert.assertThat ( ( ( "Check can not recognize all chars in a valid string '" + correct ) + "'" ) , new org.ovirt.engine.core.compat.Regex ( org.ovirt.engine.core.common.utils.I18NRegexpTest.REGEXP ) . isMatch ( correct ) , org.hamcrest.core.Is.is ( true ) ) ; }
Source:
public java.lang.String GetCustomValue ( final java.lang.String name ) { if ( customValues.containsKey ( name ) ) { return customValues.get ( name ) ; } return "" ; }

Target:
public java.lang.String getCustomValue ( final java.lang.String name ) { if ( customValues.containsKey ( name ) ) { return customValues.get ( name ) ; } return "" ; }
Source:
private void verifyManagementNetwork ( org.ovirt.engine.core.common.businessentities.Cluster updatedCluster ) { org.junit.Assert.assertEquals ( java.lang.String.format ( "%s/%s/%s/%s/%s" , org.ovirt.engine.api.restapi.resource.BASE_PATH , "clusters" , GUIDS [ 0 ] , "networks" , org.ovirt.engine.api.restapi.resource.BackendDataCenterClusterResourceTest.MANAGEMENT_NETWORK_ID ) , updatedCluster.getManagementNetwork ( ) . getHref ( ) ) ; }

Target:
private void verifyManagementNetwork ( org.ovirt.engine.core.common.businessentities.Cluster updatedCluster ) { org.junit.jupiter.api.Assertions.assertEquals ( java.lang.String.format ( "%s/%s/%s/%s/%s" , org.ovirt.engine.api.restapi.resource.BASE_PATH , "clusters" , GUIDS [ 0 ] , "networks" , org.ovirt.engine.api.restapi.resource.BackendDataCenterClusterResourceTest.MANAGEMENT_NETWORK_ID ) , updatedCluster.getManagementNetwork ( ) . getHref ( ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult isNotLocalfsWithDefaultCluster ( ) { if ( ( ( storagePool.getstorage_pool_type ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageType.LOCALFS ) ) && ( containsDefaultCluster ( ) ) ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_POOL_WITH_DEFAULT_VDS_GROUP_CANNOT_BE_LOCALFS ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult isNotLocalfsWithDefaultCluster ( ) { if ( ( ( storagePool.getstorage_pool_type ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageType.LOCALFS ) ) && ( containsDefaultCluster ( ) ) ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_POOL_WITH_DEFAULT_VDS_GROUP_CANNOT_BE_LOCALFS ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.Collection < org.ovirt.engine.core.aaa.ProfileEntry > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.aaa.ProfileEntry > ( ) ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.HashMap < java.lang.String , java.util.List < java.lang.String > > ) ( source ) ) : new java.util.HashMap < java.lang.String , java.util.List < java.lang.String > > ( ) ; }
Source:
public org.ovirt.engine.api.resource.VnicProfileResource getVnicProfileSubResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendVnicProfileResource ( id ) ) ; }

Target:
public org.ovirt.engine.api.resource.VnicProfileResource getVnicProfileResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendVnicProfileResource ( id ) ) ; }
Source:
public void setMetadataDevice ( java.lang.String metadataDevice ) { getStorageStaticData ( ) . setMetadataDevice ( metadataDevice ) ; }

Target:
public void setFirstMetadataDevice ( java.lang.String firstMetadataDevice ) { getStorageStaticData ( ) . setFirstMetadataDevice ( firstMetadataDevice ) ; }
Source:
public static void getVmTemplatesWithPermittedAction ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.common.businessentities.ActionGroup actionGroup ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.TemplateConverter ( ) ; org.ovirt.engine.core.common.queries.GetEntitiesWithPermittedActionParameters getEntitiesWithPermittedActionParameters = new org.ovirt.engine.core.common.queries.GetEntitiesWithPermittedActionParameters ( ) ; getEntitiesWithPermittedActionParameters.setActionGroup ( actionGroup ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetVmTemplatesWithPermittedAction , getEntitiesWithPermittedActionParameters , 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:
public void parseLunFromXmlRpcReturnsUnknownForNoField ( ) throws java.lang.Exception { java.util.Map < java.lang.String , java.lang.Object > xlun = new java.util.HashMap < java.lang.String , java.lang.Object > ( ) ; org.ovirt.engine.core.common.businessentities.LUNs lun = org.ovirt.engine.core.vdsbroker.vdsbroker.GetDeviceListVDSCommand.parseLunFromXmlRpc ( xlun ) ; org.junit.Assert.assertEquals ( StorageType.UNKNOWN , lun.getLunType ( ) ) ; }

Target:
public void parseLunFromXmlRpcReturnsUnknownForNoField ( ) throws java.lang.Exception { java.util.Map < java.lang.String , java.lang.Object > xlun = new java.util.HashMap < java.lang.String , java.lang.Object > ( ) ; org.ovirt.engine.core.common.businessentities.storage.LUNs lun = org.ovirt.engine.core.vdsbroker.vdsbroker.GetDeviceListVDSCommand.parseLunFromXmlRpc ( xlun ) ; org.junit.Assert.assertEquals ( StorageType.UNKNOWN , lun.getLunType ( ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.QuotaVdsGroup > getAllQuotaVdsGroupIncludingConsumption ( ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = new org.springframework.jdbc.core.namedparam.MapSqlParameterSource ( ) ; return getCallsHandler ( ) . executeReadList ( "calculateAllVdsGroupUsage" , getVdsGroupQuotaResultSet ( ) , parameterSource ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.QuotaCluster > getAllQuotaClusterIncludingConsumption ( ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = new org.springframework.jdbc.core.namedparam.MapSqlParameterSource ( ) ; return getCallsHandler ( ) . executeReadList ( "calculateAllClusterUsage" , getClusterQuotaResultSet ( ) , parameterSource ) ; }
Source:
private boolean isNetworkDevice ( org.ovirt.engine.core.common.businessentities.HostDevice device ) { return hostNicVfsConfigHelper.isNetworkDevice ( device ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.HostDevice > mockVfsOnNetDevice ( int numOfVfs ) { return mockVfsOnNetDevice ( numOfVfs , null ) ; }
Source:
public java.lang.String toString ( ) { return org.ovirt.engine.core.utils.ObjectDescriptor.toString ( this ) ; }

Target:
public java.lang.String toString ( ) { return ( ( ( ( ( getClass ( ) . getSimpleName ( ) ) + " [mCode=" ) + ( mCode ) ) + ", mMessage=" ) + ( mMessage ) ) + "]" ; }
Source:
private void setDataCenterDetails ( ) { org.ovirt.engine.core.common.businessentities.StoragePool dc = org.ovirt.engine.core.bll.storage.AddEmptyStoragePoolCommand.getParameters ( ) . getStoragePool ( ) ; setCompatibilityVersion ( dc.getcompatibility_version ( ) . toString ( ) ) ; setQuotaEnforcementType ( dc.getQuotaEnforcementType ( ) . name ( ) ) ; }

Target:
private void setDataCenterDetails ( ) { org.ovirt.engine.core.common.businessentities.StoragePool dc = org.ovirt.engine.core.bll.storage.AddEmptyStoragePoolCommand.getParameters ( ) . getStoragePool ( ) ; setCompatibilityVersion ( dc.getCompatibilityVersion ( ) . toString ( ) ) ; setQuotaEnforcementType ( dc.getQuotaEnforcementType ( ) . name ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.Tags GetRootTag ( ) { return tagsMapByID.get ( org.ovirt.engine.core.bll.TagsDirector.ROOT_TAG_ID ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.Tags getRootTag ( ) { return tagsMapByID.get ( org.ovirt.engine.core.bll.TagsDirector.ROOT_TAG_ID ) ; }
Source:
public void testEmptyDisksUsages ( ) { java.lang.Object [ ] disksUsages = new java.lang.Object [ 0 ] ; org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct xml = setDisksUsageInXmlRpc ( disksUsages ) ; validateDisksUsagesList ( getVmStatistics ( ) , disksUsages , xml ) ; }

Target:
public void testEmptyDisksUsages ( ) { java.lang.Object [ ] disksUsages = new java.lang.Object [ 0 ] ; org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct xml = org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectBuilderTest.setDisksUsageInXmlRpc ( disksUsages ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectBuilderTest.validateDisksUsagesList ( getVmStatistics ( ) , disksUsages , xml ) ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Provider > ( ) ; } return source ; }

Target:
public void getAllProvidersByType ( org.ovirt.engine.ui.frontend.AsyncQuery < java.util.List < org.ovirt.engine.core.common.businessentities.Provider < ? > > > aQuery , org.ovirt.engine.core.common.businessentities.ProviderType providerType ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.ListConverter < > ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetAllProviders , new org.ovirt.engine.core.common.queries.GetAllProvidersParameters ( providerType ) , aQuery ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object ReturnValue ) { setItems ( ( ( java.util.Collection < org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.VDSGroup , org.ovirt.engine.core.common.businessentities.network.NetworkCluster > > ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( ReturnValue ) ) . getReturnValue ( ) ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object ReturnValue ) { setItems ( ( ( java.util.Collection < org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.Cluster , org.ovirt.engine.core.common.businessentities.network.NetworkCluster > > ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( ReturnValue ) ) . getReturnValue ( ) ) ) ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( getType ( ) , getActualValue ( ) , getExpectedValue ( ) , isInSync ( ) ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( type , actualValue , expectedValue , inSync ) ; }
Source:
protected void addErrorMessages ( org.ovirt.engine.core.common.errors.EngineMessage messageActionTypeParameter , org.ovirt.engine.core.common.errors.EngineMessage messageReason ) { addValidationMessage ( EngineMessage.VAR__TYPE__BOOKMARK ) ; addValidationMessage ( messageActionTypeParameter ) ; addValidationMessage ( messageReason ) ; }

Target:
public void setActionMessageParameters ( ) { addValidationMessage ( EngineMessage.VAR__TYPE__BOOKMARK ) ; }
Source:
public void osTypeChanged ( java.lang.Integer selectedItem ) { getDomain ( ) . setIsAvailable ( ( ( selectedItem != null ) && ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.isWindowsOsType ( selectedItem ) ) ) ) ; }

Target:
public void osTypeChanged ( java.lang.Integer selectedItem ) { isWindowsOS = org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.isWindowsOsType ( selectedItem ) ; getDomain ( ) . setIsAvailable ( ( ( selectedItem != null ) && ( isWindowsOS ) ) ) ; }
Source:
public java.lang.Boolean call ( ) throws java.lang.Exception { _deploy.getParser ( ) . cliEnvironmentSet ( VMConsoleEnv.CAKEY , PKIResources.Resource.CACertificate.toString ( PKIResources.Format.OPENSSH_PUBKEY ) . replace ( "\n" , "" ) ) ; return true ; }

Target:
public java.lang.Boolean call ( ) throws java.lang.Exception { _deploy.getParser ( ) . cliEnvironmentSet ( VMConsoleEnv.CAKEY , org.ovirt.engine.core.utils.PKIResources.getCaCertificate ( ) . toString ( PKIResources.Format.OPENSSH_PUBKEY ) . replace ( "\n" , "" ) ) ; return true ; }
Source:
public java.lang.Integer getProgressValue ( org.ovirt.engine.core.common.businessentities.VM object ) { return object.getusage_mem_percent ( ) ; }

Target:
public java.lang.Integer getProgressValue ( org.ovirt.engine.core.common.businessentities.VM object ) { return object.getUsageMemPercent ( ) ; }
Source:
public void setSpmPriorityValue ( java.lang.Integer value ) { if ( spmInitialized ) { UpdateSpmPriority ( value ) ; } else { postponedSpmPriority = value ; } }

Target:
public org.ovirt.engine.ui.uicommonweb.models.EntityModel getExternalHostProviderEnabled ( ) { return externalHostProviderEnabled ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.Disk object ) { return object.getId ( ) . toString ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.storage.Disk object ) { return object.getId ( ) . toString ( ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.Network getPersistedNetwork ( ) { if ( ( persistedNetwork ) == null ) { persistedNetwork = org.ovirt.engine.core.bll.network.cluster.DetachNetworkToVdsGroupCommand.getNetworkDao ( ) . get ( getNetwork ( ) . getId ( ) ) ; } return persistedNetwork ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.Network getPersistedNetwork ( ) { if ( ( persistedNetwork ) == null ) { persistedNetwork = org.ovirt.engine.core.bll.network.cluster.DetachNetworkToClusterCommand.getNetworkDao ( ) . get ( getNetwork ( ) . getId ( ) ) ; } return persistedNetwork ; }
Source:
public void setDisplayIp ( java.lang.String value ) { this . vmDynamic.setDisplayIp ( value ) ; }

Target:
public void setGuestOsCodename ( java.lang.String guestOsCodename ) { vmDynamic.setGuestOsCodename ( guestOsCodename ) ; }
Source:
public void testUpdateVmPool ( ) { existingVmPool.setVmPoolDescription ( "This is an updated VM pool." ) ; dao.update ( existingVmPool ) ; org.ovirt.engine.core.common.businessentities.VmPool result = dao.get ( existingVmPool.getVmPoolId ( ) ) ; org.junit.Assert.assertEquals ( existingVmPool , result ) ; }

Target:
public void testUpdateVmPool ( ) { existingVmPool.setVmPoolDescription ( "This is an updated VM pool." ) ; dao.update ( existingVmPool ) ; org.ovirt.engine.core.common.businessentities.VmPool result = dao.get ( existingVmPool.getVmPoolId ( ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( existingVmPool , result ) ; }
Source:
public void testIsNetworkInSyncWhenIpConfigurationIsNull ( ) throws java.lang.Exception { this . testedNetworkAttachment.setIpConfiguration ( null ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testIsNetworkInSyncWhenIpv4GatewayDifferent ( ) { initIpv4ConfigurationBootProtocolGateway ( Ipv4BootProtocol.STATIC_IP , false ) ; org.hamcrest.MatcherAssert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( false ) ) ; }
Source:
protected final boolean failCanDoAction ( org.ovirt.engine.core.dal.VdcBllMessages message ) { addCanDoActionMessage ( message ) ; return false ; }

Target:
private void freeLockExecute ( ) { if ( ( ( releaseLocksAtEndOfExecute ) || ( ! ( getSucceeded ( ) ) ) ) || ( ! ( hasTasks ( ) ) ) ) { freeLock ( ) ; } }
Source:
protected void onClick ( T value ) { org.ovirt.engine.ui.uicommonweb.UICommand command = resolveCommand ( value ) ; if ( command != null ) { command.Execute ( ) ; } }

Target:
protected void onClick ( T value ) { org.ovirt.engine.ui.uicommonweb.UICommand command = resolveCommand ( value ) ; if ( command != null ) { command.execute ( ) ; } }
Source:
private org.ovirt.engine.core.common.businessentities.GraphicsType deriveGraphicsType ( ) { org.ovirt.engine.core.common.businessentities.VM vm = getEntity ( org.ovirt.engine.core.common.businessentities.VM.class , VdcQueryType.GetVmByVmId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) , "GetVmByVmId" ) ; return vm == null ? null : org.ovirt.engine.api.restapi.types.VmMapper.deriveGraphicsType ( vm.getGraphicsInfos ( ) ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.GraphicsType deriveGraphicsType ( ) { org.ovirt.engine.core.common.businessentities.VM vm = getEntity ( org.ovirt.engine.core.common.businessentities.VM.class , QueryType.GetVmByVmId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) , "GetVmByVmId" ) ; return vm == null ? null : org.ovirt.engine.api.restapi.types.VmMapper.deriveGraphicsType ( vm.getGraphicsInfos ( ) ) ; }
Source:
private org.ovirt.engine.core.common.action.VdcReturnValueBase getErrorCommandReturnValue ( org.ovirt.engine.core.common.errors.EngineMessage message ) { org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue = new org.ovirt.engine.core.common.action.VdcReturnValueBase ( ) ; returnValue.setCanDoAction ( false ) ; returnValue.getCanDoActionMessages ( ) . add ( message.toString ( ) ) ; return returnValue ; }

Target:
private org.ovirt.engine.core.common.action.VdcReturnValueBase getErrorCommandReturnValue ( org.ovirt.engine.core.common.errors.EngineMessage message ) { org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue = new org.ovirt.engine.core.common.action.VdcReturnValueBase ( ) ; returnValue.setValid ( false ) ; returnValue.getValidationMessages ( ) . add ( message.toString ( ) ) ; return returnValue ; }
Source:
private static org.ovirt.engine.core.bll.validator.StorageDomainValidator mockStorageDomainValidatorWithSpace ( ) { org.ovirt.engine.core.bll.validator.StorageDomainValidator storageDomainValidator = org.ovirt.engine.core.bll.AddDiskToVmCommandTest.mockStorageDomainValidator ( ) ; org.mockito.Mockito.when ( storageDomainValidator.hasSpaceForNewDisk ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.DiskImage.class ) ) ) . thenReturn ( ValidationResult.VALID ) ; return storageDomainValidator ; }

Target:
private static org.ovirt.engine.core.bll.validator.StorageDomainValidator mockStorageDomainValidatorWithSpace ( ) { org.ovirt.engine.core.bll.validator.StorageDomainValidator storageDomainValidator = org.ovirt.engine.core.bll.AddDiskCommandTest.mockStorageDomainValidator ( ) ; org.mockito.Mockito.when ( storageDomainValidator.hasSpaceForNewDisk ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.DiskImage.class ) ) ) . thenReturn ( ValidationResult.VALID ) ; return storageDomainValidator ; }
Source:
public org.ovirt.engine.core.common.businessentities.network.IPv4Address createPrimaryAddress ( ) { org.ovirt.engine.core.common.businessentities.network.IPv4Address iPv4Address = new org.ovirt.engine.core.common.businessentities.network.IPv4Address ( ) ; iPv4Address.setBootProtocol ( NetworkBootProtocol.DHCP ) ; return iPv4Address ; }

Target:
public org.ovirt.engine.core.common.businessentities.network.IPv4Address createPrimaryIpv4Address ( ) { org.ovirt.engine.core.common.businessentities.network.IPv4Address iPv4Address = new org.ovirt.engine.core.common.businessentities.network.IPv4Address ( ) ; iPv4Address.setBootProtocol ( NetworkBootProtocol.DHCP ) ; return iPv4Address ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getVmWatchdogDevices ( ) { return getVmDeviceDao ( ) . getVmDeviceByVmIdAndType ( getParameters ( ) . getId ( ) , VmDeviceGeneralType.WATCHDOG ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getVmWatchdogDevices ( ) { return vmDeviceDao.getVmDeviceByVmIdAndType ( getParameters ( ) . getId ( ) , VmDeviceGeneralType.WATCHDOG ) ; }
Source:
public void validateVmMemoryCantStartOnVdsVmTooBig ( ) { vm.setMinAllocatedMem ( 8865 ) ; vm.setVmMemSizeMb ( 8865 ) ; boolean vmPassedMemoryRequirement = org.ovirt.engine.core.bll.scheduling.SlaValidator.getInstance ( ) . hasPhysMemoryToRunVM ( vds , vm , 0 ) ; org.junit.Assert.assertEquals ( vmPassedMemoryRequirement , false ) ; }

Target:
public void validateVmMemoryCanStartOnVdsBecauseOfLowGuestOverhead ( ) { org.mockito.Mockito.doReturn ( 0 ) . when ( vmOverheadCalculator ) . getStaticOverheadInMb ( org.mockito.Matchers.any ( ) ) ; boolean vmPassedMemoryRequirement = slaValidator.hasPhysMemoryToRunVM ( vds , vm , 65 ) ; org.junit.Assert.assertTrue ( vmPassedMemoryRequirement ) ; }
Source:
public boolean isLsmBetweenMixedStorageDomainsSupported ( org.ovirt.engine.core.compat.Version version ) { return ( ( java.lang.Boolean ) ( getConfigValuePreConverted ( ConfigurationValues.LiveStorageMigrationBetweenDifferentStorageTypes , version.toString ( ) ) ) ) ; }

Target:
public java.util.List < java.lang.String > getMigrationPoliciesSupportedVersions ( ) { return getSupportedVersions ( ConfigurationValues.MigrationPoliciesSupported ) ; }