auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testGetTreeForEntityWithRoleTypeFilteredWithPermissions ( ) { baseTestGetTreeForEntityFiltered ( org.ovirt.engine.core.dao.PermissionDAOTest.STORAGE_ENTITY_ID , VdcObjectType.Storage , org.ovirt.engine.core.dao.PRIVILEGED_USER_SESSION_ID , true ) ; }

Target:
public void testGetTreeForEntityWithRoleTypeFilteredWithPermissions ( ) { org.junit.Assert.assertNotNull ( privilegedUserSession ) ; baseTestGetTreeForEntityFiltered ( org.ovirt.engine.core.dao.PermissionDAOTest.STORAGE_ENTITY_ID , VdcObjectType.Storage , privilegedUserSession.getId ( ) , true ) ; }
Source:
protected boolean canDoAction ( ) { if ( ( org.ovirt.engine.core.bll.gluster.GlusterVolumeCommandBase.getGlusterVolume ( ) ) == null ) { addCanDoActionMessage ( EngineMessage.ACTION_TYPE_FAILED_GLUSTER_VOLUME_INVALID ) ; return false ; } if ( ! ( super . canDoAction ( ) ) ) { return false ; } return true ; }

Target:
protected boolean validate ( ) { if ( ( org.ovirt.engine.core.bll.gluster.GlusterVolumeCommandBase.getGlusterVolume ( ) ) == null ) { addValidationMessage ( EngineMessage.ACTION_TYPE_FAILED_GLUSTER_VOLUME_INVALID ) ; return false ; } if ( ! ( super . validate ( ) ) ) { return false ; } return true ; }
Source:
public void getAAAProfilesList ( org.ovirt.engine.ui.frontend.AsyncQuery < java.util.List < java.lang.String > > aQuery ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.convertAAAProfilesResult ( aQuery , false ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetAAAProfileList , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , aQuery ) ; }

Target:
public void getAuthzExtensionsNames ( org.ovirt.engine.ui.frontend.AsyncQuery < java.util.List < java.lang.String > > aQuery ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.ListConverter < > ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetDomainList , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , aQuery ) ; }
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.StorageDomain > ( ) ; } return source ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotDisabledNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; usb.setType ( UsbType.NATIVE ) ; assertEquals ( UsbPolicy.DISABLED , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED ) ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotDisabledNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; usb.setType ( UsbType.NATIVE ) ; org.junit.Assert.assertEquals ( UsbPolicy.DISABLED , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED ) ) ; }
Source:
private void readHeader ( ) { version = "" ; org.ovirt.engine.core.compat.backendcompat.XmlNode node = _document.SelectSingleNode ( "//ovf:Envelope" , _xmlNS ) ; if ( node != null ) { version = node.Attributes.get ( "ovf:version" ) . getValue ( ) ; } }

Target:
private void readHeader ( ) { version = "" ; org.ovirt.engine.core.compat.backendcompat.XmlNode node = _document.SelectSingleNode ( "//ovf:Envelope" , _xmlNS ) ; if ( node != null ) { version = node.attributes.get ( "ovf:version" ) . getValue ( ) ; } }
Source:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepStatus ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepSessionStatus ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName ) ;
Source:
public void setDisplay ( boolean value ) { this . isDisplay = value ; }

Target:
public void setDisplay ( boolean value ) { this . display = value ; }
Source:
private boolean noGraphicsDevicesLeft ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.GraphicsDevice > devices = runInternalQuery ( VdcQueryType.GetGraphicsDevices , new org.ovirt.engine.core.common.queries.IdQueryParameters ( getVmBaseId ( ) ) ) . getReturnValue ( ) ; return devices.isEmpty ( ) ; }

Target:
private boolean noGraphicsDevicesLeft ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.GraphicsDevice > devices = runInternalQuery ( QueryType.GetGraphicsDevices , new org.ovirt.engine.core.common.queries.IdQueryParameters ( getVmBaseId ( ) ) ) . getReturnValue ( ) ; return devices.isEmpty ( ) ; }
Source:
protected org.ovirt.engine.core.common.asynctasks.AsyncTaskType getTaskType ( ) { return org.ovirt.engine.core.common.asynctasks.AsyncTaskType.copyImage ; }

Target:
protected org.ovirt.engine.core.common.asynctasks.AsyncTaskType getTaskType ( ) { return org.ovirt.engine.core.bll.CreateCloneOfTemplateCommand.isDataOperationsByHSM ( ) ? org.ovirt.engine.core.common.asynctasks.AsyncTaskType.notSupported : org.ovirt.engine.core.common.asynctasks.AsyncTaskType.copyImage ; }
Source:
protected boolean addMacToPool ( java.lang.String macAddress ) { if ( org.ovirt.engine.core.bll.network.vm.AbstractVmInterfaceCommand.getMacPool ( ) . addMac ( macAddress ) ) { return true ; } else { throw new org.ovirt.engine.core.common.errors.VdcBLLException ( org.ovirt.engine.core.common.errors.VdcBllErrors.MAC_ADDRESS_IS_IN_USE ) ; } }

Target:
protected boolean addMacToPool ( java.lang.String macAddress ) { if ( org.ovirt.engine.core.bll.network.vm.AbstractVmInterfaceCommand.getMacPool ( ) . addMac ( macAddress ) ) { return true ; } else { throw new org.ovirt.engine.core.common.errors.EngineException ( org.ovirt.engine.core.common.errors.EngineError.MAC_ADDRESS_IS_IN_USE ) ; } }
Source:
public void setDev ( org.ovirt.engine.core.common.businessentities.GraphicsDevice dev ) { this . dev = dev ; }

Target:
public org.ovirt.engine.core.bll.GraphicsParameters setVm ( boolean vm ) { this . vm = vm ; return this ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { optimizationForServerFormatter ( object ) ; }

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 nameIsNull ( ) { org.junit.Assert.assertThat ( validator.nameNotEmpty ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_NAME_MAY_NOT_BE_EMPTY ) ) ; }

Target:
public void nameIsEmpty ( ) { org.mockito.Mockito.when ( host.getName ( ) ) . thenReturn ( "" ) ; org.junit.Assert.assertThat ( validator.nameNotEmpty ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_NAME_MAY_NOT_BE_EMPTY ) ) ; }
Source:
private void ResetData ( ) { hosts = null ; allHosts = null ; localStorageHost = null ; dataCenter = null ; }

Target:
private void ResetData ( ) { hosts = null ; allHosts = null ; localStorageHost = null ; dataCenter = null ; isAnyHostUpInCluster = null ; }
Source:
public void sriovFeatureIsNotSupported ( ) { sriovFeatureSupported ( false ) ; assertCanDoActionFailure ( EngineMessage.ACTION_TYPE_FAILED_SRIOV_FEATURE_NOT_SUPPORTED.toString ( ) ) ; }

Target:
public void sriovFeatureIsNotSupported ( ) { sriovFeatureSupported ( false ) ; assertValidateFailure ( EngineMessage.ACTION_TYPE_FAILED_SRIOV_FEATURE_NOT_SUPPORTED.toString ( ) ) ; }
Source:
private boolean CanFindAnyVds ( java.util.List < java.lang.String > messages , boolean isMigrate ) { return CanFindVdsToRun ( messages , isMigrate , org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDAO ( ) . getAllOfTypes ( new org.ovirt.engine.core.common.businessentities.VDSType [ ] { org.ovirt.engine.core.common.businessentities.VDSType.VDS , org.ovirt.engine.core.common.businessentities.VDSType.oVirtNode } ) ) ; }

Target:
org.ovirt.engine.core.dao.VdsDAO getVdsDAO ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDAO ( ) ; }
Source:
public void canCreateAsMuchNumaNodesAsVirtualCores ( ) { final org.ovirt.engine.core.bll.numa.vm.AddVmNumaNodesCommand command = mockedCommand ( ) ; vm.setNumOfSockets ( 1 ) ; vm.setCpuPerSocket ( 2 ) ; org.assertj.core.api.Assertions.assertThat ( command.canDoAction ( ) ) . isTrue ( ) ; }

Target:
public void failCreateMoreNumaNodesThanVirtualCoresWithVmFromDb ( ) { final org.ovirt.engine.core.bll.numa.vm.AddVmNumaNodesCommand command = mockedCommandWithVmFromDb ( ) ; vm.setNumOfSockets ( 1 ) ; vm.setCpuPerSocket ( 3 ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.VM_NUMA_NODE_MORE_NODES_THAN_CPUS ) ; }
Source:
public void testGetQuotaWithNoExistingName ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.Quota quotaGeneralToSpecific = dao.getQuotaByQuotaName ( "Any name" ) ; org.junit.Assert.assertEquals ( null , quotaGeneralToSpecific ) ; }

Target:
public void testGetDefaultQuotaForStoragePool ( ) { org.ovirt.engine.core.common.businessentities.Quota quota = dao.getDefaultQuotaForStoragePool ( FixturesTool.STORAGE_POOL_NFS ) ; org.junit.Assert.assertNotNull ( quota ) ; org.junit.Assert.assertEquals ( quota.getStoragePoolId ( ) , FixturesTool.STORAGE_POOL_NFS ) ; org.junit.Assert.assertTrue ( quota.isDefault ( ) ) ; }
Source:
private boolean isNetworkChanged ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface iface ) { return ! ( org.ovirt.engine.core.bll.network.vm.UpdateVmInterfaceCommand.getNetworkName ( ) . equals ( iface.getNetworkName ( ) ) ) ; }

Target:
private boolean isVnicProfileChanged ( org.ovirt.engine.core.common.businessentities.network.VmNic oldNic , org.ovirt.engine.core.common.businessentities.network.VmNic newNic ) { return ! ( org.apache.commons.lang.ObjectUtils.equals ( oldNic.getVnicProfileId ( ) , newNic.getVnicProfileId ( ) ) ) ; }
Source:
private javax.ws.rs.core.Response fence ( org.ovirt.engine.api.model.Action action , org.ovirt.engine.core.common.action.VdcActionType vdcAction , org.ovirt.engine.core.common.businessentities.FenceActionType fenceType ) { return doAction ( vdcAction , new org.ovirt.engine.core.common.action.FenceVdsActionParameters ( guid , fenceType ) , action ) ; }

Target:
private org.ovirt.engine.api.model.PowerManagementStatus convertPowerStatus ( org.ovirt.engine.core.common.businessentities.pm.PowerStatus status ) { switch ( status ) { case ON : return org.ovirt.engine.api.model.PowerManagementStatus.ON ; case OFF : return org.ovirt.engine.api.model.PowerManagementStatus.OFF ; default : return org.ovirt.engine.api.model.PowerManagementStatus.UNKNOWN ; } }
Source:
public void setEnabled ( boolean enabled ) { asSlider ( ) . setEnabled ( enabled ) ; }

Target:
public void setEnabled ( boolean enabled ) { asSlider ( ) . setEnabled ( enabled ) ; textBox.setEnabled ( enabled ) ; }
Source:
protected void executeQueryCommand ( ) { getQueryReturnValue ( ) . setReturnValue ( getDbFacade ( ) . getDiskProfileDao ( ) . getAll ( ) ) ; }

Target:
protected void executeQueryCommand ( ) { getQueryReturnValue ( ) . setReturnValue ( diskProfileDao.getAll ( ) ) ; }
Source:
public int compare ( org.ovirt.engine.core.common.businessentities.VM o1 , org.ovirt.engine.core.common.businessentities.VM o2 ) { return Compare ( o1 , o2 ) ; }

Target:
public int compare ( org.ovirt.engine.core.common.businessentities.VM o1 , org.ovirt.engine.core.common.businessentities.VM o2 ) { return ( o1.getPriority ( ) ) - ( o2.getPriority ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.Snapshot getActiveSnapshot ( ) { return org.ovirt.engine.core.bll.VmCommand.getSnapshotDao ( ) . get ( org.ovirt.engine.core.bll.VmCommand.getVm ( ) . getId ( ) , SnapshotType.ACTIVE ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.Snapshot getActiveSnapshot ( ) { return snapshotDao.get ( org.ovirt.engine.core.bll.VmCommand.getVm ( ) . getId ( ) , SnapshotType.ACTIVE ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VdsNetworkInterface i ) { return org.ovirt.engine.core.compat.StringHelper.EqOp ( i.getNetworkName ( ) , getParameters ( ) . getNetwork ( ) . getname ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VdsNetworkInterface i ) { return org.apache.commons.lang.StringUtils.equals ( i.getNetworkName ( ) , getParameters ( ) . getNetwork ( ) . getname ( ) ) ; }
Source:
private void removeEntry ( org.ovirt.engine.core.common.utils.Pair < T , V > item ) { items.remove ( item ) ; contentPanel.remove ( item.getSecond ( ) . getParent ( ) ) ; }

Target:
protected void removeWidget ( V widget ) { contentPanel.remove ( getEntry ( widget ) ) ; }
Source:
public void testFreeHostDevicesUsedByVmId ( ) { dao.freeHostDevicesUsedByVmId ( org.ovirt.engine.core.dao.HostDeviceDaoTest.EXISTING_VM_ID_2 ) ; org.ovirt.engine.core.common.businessentities.HostDevice hostDevice = dao.getHostDeviceByHostIdAndDeviceName ( org.ovirt.engine.core.dao.HostDeviceDaoTest.EXISTING_HOST_ID , org.ovirt.engine.core.dao.HostDeviceDaoTest.EXISTING_DEVICE_NAME_2 ) ; org.junit.Assert.assertNull ( hostDevice.getVmId ( ) ) ; }

Target:
public void testFreeHostDevicesUsedByVmId ( ) { dao.freeHostDevicesUsedByVmId ( org.ovirt.engine.core.dao.HostDeviceDaoTest.EXISTING_VM_ID_2 ) ; org.ovirt.engine.core.common.businessentities.HostDevice hostDevice = dao.getHostDeviceByHostIdAndDeviceName ( FixturesTool.VDS_RHEL6_NFS_SPM , org.ovirt.engine.core.dao.HostDeviceDaoTest.EXISTING_DEVICE_NAME_2 ) ; org.junit.Assert.assertNull ( hostDevice.getVmId ( ) ) ; }
Source:
public void run ( ) { int mSecToWait = ( org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.DisableFenceAtStartupInSec ) ) * 1000 ; org.ovirt.engine.core.utils.ThreadUtils.sleep ( mSecToWait ) ; startHosts ( hostsWithPMInReboot ) ; }

Target:
private void waitUntilFencingAllowed ( ) { int mSecToWait = ( org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.DisableFenceAtStartupInSec ) ) * 1000 ; org.ovirt.engine.core.utils.ThreadUtils.sleep ( mSecToWait ) ; }
Source:
protected void setUpGetSnapshotVmConfiguration ( org.ovirt.engine.core.compat.Guid snpashotId ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetVmConfigurationBySnapshot , org.ovirt.engine.core.common.queries.GetVmConfigurationBySnapshotQueryParams.class , new java.lang.String [ ] { "SnapshotId" } , new java.lang.Object [ ] { snpashotId } , getVmConfiguration ( ) ) ; }

Target:
protected void setUpGetSnapshotVmConfiguration ( org.ovirt.engine.core.compat.Guid snpashotId ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetVmConfigurationBySnapshot , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { snpashotId } , getVmConfiguration ( ) ) ; }
Source:
private java.lang.String getResponseName ( org.ovirt.api.metamodel.concepts.Method method ) { return ( javaNames.getJavaClassStyleName ( method.getName ( ) ) ) + "Response" ; }

Target:
private org.ovirt.api.metamodel.concepts.Name getFullName ( org.ovirt.api.metamodel.concepts.Method method ) { org.ovirt.api.metamodel.concepts.Method base = method.getBase ( ) ; if ( base == null ) { return method.getName ( ) ; } return names.concatenate ( getFullName ( base ) , method.getName ( ) ) ; }
Source:
public void testEvalPositive ( ) { org.mockito.Mockito.when ( mockNetwork.isExternal ( ) ) . thenReturn ( true ) ; org.junit.Assert.assertTrue ( underTest.test ( mockNetwork ) ) ; }

Target:
public void testEvalPositive ( ) { org.mockito.Mockito.when ( mockNetwork.isExternal ( ) ) . thenReturn ( true ) ; org.junit.jupiter.api.Assertions.assertTrue ( underTest.test ( mockNetwork ) ) ; }
Source:
public java.util.Map getOKStatus ( ) { return ResultCodes.OK.newMap ( ) ; }

Target:
public java.util.Map getOKStatus ( ) { return org.ovirt.vdsmfake.service.AbstractService.getStatusMap ( "OK" , 0 ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterVolumeGeoRepStart ( java.lang.String volumeName , java.lang.String remoteHost , java.lang.String remoteVolumeName , java.lang.Boolean force ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterVolumeGeoRepSessionStart ( java.lang.String volumeName , java.lang.String remoteHost , java.lang.String remoteVolumeName , java.lang.Boolean force ) ;
Source:
protected java.util.Date getRawValue ( org.ovirt.engine.core.common.businessentities.Disk object ) { return ( object.getDiskStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.Disk.DiskStorageType.IMAGE ) ? ( ( org.ovirt.engine.core.common.businessentities.DiskImage ) ( object ) ) . getCreationDate ( ) : null ; }

Target:
protected java.util.Date getRawValue ( org.ovirt.engine.core.common.businessentities.storage.Disk object ) { return ( object.getDiskStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.Disk.DiskStorageType.IMAGE ) ? ( ( org.ovirt.engine.core.common.businessentities.storage.DiskImage ) ( object ) ) . getCreationDate ( ) : null ; }
Source:
private org.ovirt.engine.core.compat.Guid getUpServerId ( org.ovirt.engine.core.compat.Guid clusterId ) { org.ovirt.engine.core.common.businessentities.VDS vds = getClusterUtils ( ) . getUpServer ( clusterId ) ; if ( vds == null ) { throw new java.lang.RuntimeException ( "No up server found" ) ; } return vds.getId ( ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity getNfsReplicateVolume ( org.ovirt.engine.core.compat.Guid clusterId ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity > nfsReplicateVolumes = getReplicateAndNfsVolumes ( clusterId , org.ovirt.engine.core.bll.gluster.GetGlusterVolumeAdvancedDetailsQuery.replicateVolumeTypes ) ; if ( ( nfsReplicateVolumes.size ( ) ) > 0 ) { return nfsReplicateVolumes.get ( 0 ) ; } return null ; }
Source:
public void UpdateCommandsAccordingToPoolType ( boolean isManualPool ) { getItem ( ) . getReturnVmCommand ( ) . setIsAvailable ( ( ! isManualPool ) ) ; getItem ( ) . getRunCommand ( ) . setIsAvailable ( isManualPool ) ; }

Target:
public void updateCommandsAccordingToPoolType ( boolean isManualPool ) { getItem ( ) . getReturnVmCommand ( ) . setIsAvailable ( ( ! isManualPool ) ) ; getItem ( ) . getRunCommand ( ) . setIsAvailable ( isManualPool ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeBrickAdd ( java.lang.String volumeName , java.lang.String [ ] bricks , int replicaCount , int stripeCount ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumesList ( java.lang.String volumeName ) ;
Source:
public void setDisplaySecurePort ( java.lang.Integer value ) { this . vmDynamic.setDisplaySecurePort ( value ) ; }

Target:
public void addNetworkUsageHistory ( java.lang.Integer networkUsageHistory , int limit ) { this . vmStatistics.addNetworkUsageHistory ( networkUsageHistory , limit ) ; }
Source:
private void cancel ( ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . unsubscribe ( ) ; cancelConfirmation ( ) ; setWindow ( null ) ; updateActionAvailability ( ) ; }

Target:
protected void selectedItemPropertyChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . selectedItemPropertyChanged ( sender , e ) ; if ( e.propertyName.equals ( "status" ) ) { updateActionsAvailability ( ) ; } }
Source:
protected void RemoveSnapshot ( org.ovirt.engine.core.common.businessentities.DiskImage snapshot ) { RemoveSnapshotFromDB ( snapshot ) ; AdditionalImageRemoveTreatment ( snapshot ) ; }

Target:
protected org.ovirt.engine.core.dao.BaseDiskDao getBaseDiskDao ( ) { return org.ovirt.engine.core.bll.BaseImagesCommand.getDbFacade ( ) . getBaseDiskDao ( ) ; }
Source:
private void logEventForUser ( java.lang.String userName , org.ovirt.engine.core.common.AuditLogType auditLogType ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase msg = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; msg.setUserName ( userName ) ; org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( msg , auditLogType ) ; }

Target:
private void logEventForUser ( java.lang.String userName , org.ovirt.engine.core.common.AuditLogType auditLogType ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase msg = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; msg.setUserName ( userName ) ; new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector ( ) . log ( msg , auditLogType ) ; }
Source:
protected org.ovirt.engine.api.model.NIC populate ( org.ovirt.engine.api.model.NIC model , org.ovirt.engine.core.common.businessentities.VmNetworkInterface entity ) { addReportedDevices ( model , entity ) ; return addStatistics ( model , entity , uriInfo , httpHeaders ) ; }

Target:
protected org.ovirt.engine.api.model.NIC populate ( org.ovirt.engine.api.model.NIC model , org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface entity ) { addReportedDevices ( model , entity ) ; return addStatistics ( model , entity , uriInfo , httpHeaders ) ; }
Source:
public static boolean gluster ( org.ovirt.engine.core.compat.Version version ) { return org.ovirt.engine.core.common.FeatureSupported.supportedInConfig ( ConfigValues.GlusterSupport , version ) ; }

Target:
public static boolean glusterSelfHealMonitoring ( org.ovirt.engine.core.compat.Version version ) { return org.ovirt.engine.core.common.FeatureSupported.supportedInConfig ( ConfigValues.GlusterSelfHealMonitoringSupported , version ) ; }
Source:
public void testAllocateMacNoEnoughMacs ( ) throws java.lang.Exception { rangeOf10Macs.allocateMacs ( ( ( org.ovirt.engine.core.bll.network.macpoolmanager.RangeTest.NUMBER_OF_MACS ) + 1 ) ) ; }

Target:
public void testAllocateMacNoEnoughMacs ( ) throws java.lang.Exception { rangeOf10Macs.allocateMacs ( ( ( org.ovirt.engine.core.bll.network.macpool.RangeTest.NUMBER_OF_MACS ) + 1 ) ) ; }
Source:
public void testUpdateFieldsQutoaDefault ( ) { vm.setIsQuotaDefault ( true ) ; vmStatic.setQuotaDefault ( false ) ; junit.framework.Assert.assertTrue ( "Quota default should be updatable" , command.areUpdatedFieldsLegal ( ) ) ; }

Target:
public void testUpdateFieldsQutoaDefault ( ) { vm.setIsQuotaDefault ( true ) ; vmStatic.setQuotaDefault ( false ) ; org.junit.Assert.assertTrue ( "Quota default should be updatable" , command.areUpdatedFieldsLegal ( ) ) ; }
Source:
public void setUseLocalDrives ( boolean value ) { }

Target:
public void setUseLocalDrives ( boolean value ) { useLocalDrives = value ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetServerSSHKeyFingerprintQuery.getQueryReturnValue ( ) . setReturnValue ( getServerFingerprint ( org.ovirt.engine.core.bll.GetServerSSHKeyFingerprintQuery.getParameters ( ) . getServer ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetServerSSHKeyFingerprintQuery.getQueryReturnValue ( ) . setReturnValue ( getServerFingerprint ( org.ovirt.engine.core.bll.GetServerSSHKeyFingerprintQuery.getParameters ( ) . getServer ( ) , org.ovirt.engine.core.bll.GetServerSSHKeyFingerprintQuery.getParameters ( ) . getPort ( ) ) ) ; }
Source:
protected boolean canDoAction ( ) { org.ovirt.engine.core.bll.provider.ProviderValidator validator = new org.ovirt.engine.core.bll.provider.ProviderValidator ( getDeletedProvider ( ) ) ; return validate ( validator.providerIsSet ( ) ) ; }

Target:
protected boolean canDoAction ( ) { org.ovirt.engine.core.bll.provider.RemoveProviderCommand.RemoveProviderValidator validator = new org.ovirt.engine.core.bll.provider.RemoveProviderCommand.RemoveProviderValidator ( getDeletedProvider ( ) ) ; return ( validate ( validator.providerIsSet ( ) ) ) && ( validate ( validator.providerNetworksNotUsed ( ) ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return 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.GlusterBrickEntity > ( ) ; }
Source:
public void setdefault_boot_sequence ( org.ovirt.engine.core.common.businessentities.BootSequence value ) { this . mVmStatic.setdefault_boot_sequence ( value ) ; }

Target:
public boolean isFailBack ( ) { return this . vmStatic.getfail_back ( ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VDSGroup getVDsGroup ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup vdsGroup = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; vdsGroup.setId ( clusterId ) ; vdsGroup.setVirtService ( false ) ; vdsGroup.setGlusterService ( true ) ; vdsGroup.setCompatibilityVersion ( Version.v3_1 ) ; return vdsGroup ; }

Target:
private org.ovirt.engine.core.common.businessentities.Cluster getCluster ( ) { org.ovirt.engine.core.common.businessentities.Cluster cluster = new org.ovirt.engine.core.common.businessentities.Cluster ( ) ; cluster.setId ( clusterId ) ; cluster.setVirtService ( false ) ; cluster.setGlusterService ( true ) ; cluster.setCompatibilityVersion ( Version.v3_1 ) ; return cluster ; }
Source:
public void setUp ( ) { org.ovirt.engine.core.bll.VmHandler.init ( ) ; }

Target:
public void setUp ( ) { org.ovirt.engine.core.bll.VmHandlerTest.injectorRule.bind ( org.ovirt.engine.core.bll.CpuFlagsManagerHandler.class , cpuFlagsManagerHandler ) ; org.ovirt.engine.core.bll.VmHandler.init ( ) ; }
Source:
public void managePrestartedVmsInAllVmPools ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.vm_pools > vmPools = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmPoolDAO ( ) . getAll ( ) ; for ( org.ovirt.engine.core.common.businessentities.vm_pools vmPool : vmPools ) { managePrestartedVmsInPool ( vmPool ) ; } }

Target:
public void managePrestartedVmsInAllVmPools ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.vm_pools > vmPools = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmPoolDao ( ) . getAll ( ) ; for ( org.ovirt.engine.core.common.businessentities.vm_pools vmPool : vmPools ) { managePrestartedVmsInPool ( vmPool ) ; } }
Source:
private void setUpGetCertuficateExpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.GetVdsCertificateSubjectByVmId , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , org.ovirt.engine.api.restapi.resource.BackendVmResourceTest.CERTIFICATE ) ; }

Target:
private void setUpGetBallooningExpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.IsBalloonEnabled , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , true ) ; }
Source:
public void testIsAnyVmRunOnVds ( ) { org.junit.Assert.assertTrue ( dao.isAnyVmRunOnVds ( FixturesTool.VDS_RHEL6_NFS_SPM ) ) ; org.junit.Assert.assertFalse ( dao.isAnyVmRunOnVds ( FixturesTool.GLUSTER_BRICK_SERVER1 ) ) ; }

Target:
public void testIsAnyVmRunOnVds ( ) { org.junit.jupiter.api.Assertions.assertTrue ( dao.isAnyVmRunOnVds ( FixturesTool.VDS_RHEL6_NFS_SPM ) ) ; org.junit.jupiter.api.Assertions.assertFalse ( dao.isAnyVmRunOnVds ( FixturesTool.GLUSTER_BRICK_SERVER1 ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.StorageDomain getStorageDomain ( org.ovirt.engine.core.compat.Guid domainId ) { return getStorageDomainDAO ( ) . getForStoragePool ( domainId , getStoragePool ( ) . getId ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StorageDomain getStorageDomain ( org.ovirt.engine.core.compat.Guid domainId ) { return getStorageDomainDao ( ) . getForStoragePool ( domainId , getStoragePool ( ) . getId ( ) ) ; }
Source:
public java.lang.String getVerb ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op1 ) { return org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) . networksOnBothInterfaces ( ) ; }

Target:
protected void ExecuteNetworkCommand ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op1 , org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op2 , java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > allNics , java.lang.Object ... params ) { org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkOperation.ADD_TO_BOND.getCommand ( op2 , op1 , allNics ) . Execute ( ) ; }
Source:
public org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < java.lang.String , org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel , org.ovirt.engine.ui.uicommonweb.models.vms.VmAppListModel > getVmAppsProvider ( org.ovirt.engine.ui.webadmin.gin.ClientGinjector ginjector ) { return new org.ovirt.engine.ui.common.uicommon.model.SearchableDetailTabModelProvider < java.lang.String , org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel , org.ovirt.engine.ui.uicommonweb.models.vms.VmAppListModel > ( ginjector , org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel.class , org.ovirt.engine.ui.uicommonweb.models.vms.VmAppListModel.class ) ; }

Target:
public org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < java.lang.String , org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel , org.ovirt.engine.ui.uicommonweb.models.vms.VmAppListModel > getVmAppsProvider ( com.google.gwt.event.shared.EventBus eventBus , com.google.inject.Provider < org.ovirt.engine.ui.common.presenter.popup.DefaultConfirmationPopupPresenterWidget > defaultConfirmPopupProvider ) { return new org.ovirt.engine.ui.common.uicommon.model.SearchableDetailTabModelProvider < java.lang.String , org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel , org.ovirt.engine.ui.uicommonweb.models.vms.VmAppListModel > ( eventBus , defaultConfirmPopupProvider , org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel.class , org.ovirt.engine.ui.uicommonweb.models.vms.VmAppListModel.class ) ; }
Source:
public void smallerThanOrEquals ( ) { org.junit.Assert.assertTrue ( Version.v3_6.lessOrEquals ( new org.ovirt.engine.core.compat.Version ( "3.6" ) ) ) ; org.junit.Assert.assertTrue ( Version.v3_6.lessOrEquals ( Version.v4_0 ) ) ; org.junit.Assert.assertFalse ( Version.v4_0.lessOrEquals ( Version.v3_6 ) ) ; }

Target:
public void smallerThanOrEquals ( ) { org.junit.jupiter.api.Assertions.assertTrue ( Version.v3_6.lessOrEquals ( new org.ovirt.engine.core.compat.Version ( "3.6" ) ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( Version.v3_6.lessOrEquals ( Version.v4_0 ) ) ; org.junit.jupiter.api.Assertions.assertFalse ( Version.v4_0.lessOrEquals ( Version.v3_6 ) ) ; }
Source:
private boolean isHostInSupportedClusterForProxyHost ( org.ovirt.engine.core.common.businessentities.VDS host ) { return ( org.ovirt.engine.core.common.FeatureSupported.importVmFromExternalProvider ( host.getVdsGroupCompatibilityVersion ( ) ) ) && ( ( org.ovirt.engine.core.bll.ImportVmFromExternalProviderCommand.getVdsGroupDao ( ) . get ( host.getVdsGroupId ( ) ) . getArchitecture ( ) ) != ( org.ovirt.engine.core.common.businessentities.ArchitectureType.ppc64 ) ) ; }

Target:
private boolean isHostInSupportedClusterForProxyHost ( org.ovirt.engine.core.common.businessentities.VDS host ) { return ( org.ovirt.engine.core.common.FeatureSupported.importVmFromExternalProvider ( host.getClusterCompatibilityVersion ( ) ) ) && ( ( org.ovirt.engine.core.bll.ImportVmFromExternalProviderCommand.getClusterDao ( ) . get ( host.getClusterId ( ) ) . getArchitecture ( ) ) != ( org.ovirt.engine.core.common.businessentities.ArchitectureType.ppc64 ) ) ; }
Source:
protected void localize ( org.ovirt.engine.ui.common.CommonApplicationConstants constants ) { latch.setLabel ( constants.latchApproveOperationLabel ( ) ) ; reasonEditor.setLabel ( constants.reasonLabel ( ) ) ; }

Target:
protected void localize ( ) { latch.setLabel ( org.ovirt.engine.ui.common.view.popup.RemoveConfirmationPopupView.constants.latchApproveOperationLabel ( ) ) ; reasonEditor.setLabel ( org.ovirt.engine.ui.common.view.popup.RemoveConfirmationPopupView.constants.reasonLabel ( ) ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.storage.StorageModel storageModel = ( ( org.ovirt.engine.ui.uicommonweb.models.storage.StorageModel ) ( target ) ) ; java.lang.Iterable < org.ovirt.engine.core.common.businessentities.VDS > hosts = ( ( java.lang.Iterable < org.ovirt.engine.core.common.businessentities.VDS > ) ( returnValue ) ) ; storageModel.PostUpdateHost ( hosts ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.storage.StorageModel storageModel = ( ( org.ovirt.engine.ui.uicommonweb.models.storage.StorageModel ) ( target ) ) ; java.lang.Iterable < org.ovirt.engine.core.common.businessentities.VDS > hosts = ( ( java.lang.Iterable < org.ovirt.engine.core.common.businessentities.VDS > ) ( returnValue ) ) ; storageModel.postUpdateHost ( hosts ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid createTask ( org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand , org.ovirt.engine.core.common.VdcObjectType entityType , org.ovirt.engine.core.compat.Guid ... entityIds ) { return org.ovirt.engine.core.bll.tasks.TaskManagerUtil.createTask ( this , asyncTaskCreationInfo , parentCommand , null , entityType , entityIds ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid createTask ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand , org.ovirt.engine.core.common.VdcObjectType entityType , org.ovirt.engine.core.compat.Guid ... entityIds ) { return createTask ( taskId , asyncTaskCreationInfo , parentCommand , null , entityType , entityIds ) ; }
Source:
protected org.ovirt.engine.core.bll.ValidationResult vmTemplateEmpty ( ) { return ( getInterface ( ) . getVmTemplateId ( ) ) != null ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.NETWORK_INTERFACE_TEMPLATE_CANNOT_BE_SET ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
protected org.ovirt.engine.core.bll.ValidationResult vmTemplateEmpty ( ) { return ( getInterface ( ) . getVmTemplateId ( ) ) != null ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.NETWORK_INTERFACE_TEMPLATE_CANNOT_BE_SET ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.VM , org.ovirt.engine.ui.uicommonweb.models.profiles.VnicProfileListModel , org.ovirt.engine.ui.uicommonweb.models.profiles.VnicProfileVmListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.profile.SubTabVnicProfileVmPresenter.constants.vnicProfileVmSubTabLabel ( ) , 0 , 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.profile.SubTabVnicProfileVmPresenter.constants.vnicProfileVmSubTabLabel ( ) , 0 ) ; }
Source:
public void setUp ( ) { disk = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; metadataDiskDescriptionHandler = org.mockito.Mockito.spy ( org.ovirt.engine.core.bll.storage.disk.image.MetadataDiskDescriptionHandler.getInstance ( ) ) ; org.mockito.Mockito.doReturn ( auditLogDirector ) . when ( metadataDiskDescriptionHandler ) . getAuditLogDirector ( ) ; }

Target:
public void testEncodingDecoding ( ) throws java.lang.Exception { disk.setDiskAlias ( "DiskAlias" ) ; disk.setDiskDescription ( "DiskDescription" ) ; assertDiskDescriptionMap ( disk , generateDiskAliasJsonEntry ( "DiskAlias" ) , generateDiskDescriptionJsonEntry ( "DiskDescription" ) ) ; assertDiskDescriptionDecoding ( disk ) ; }
Source:
org.ovirt.engine.core.common.businessentities.NonOperationalReason persistAndEnforceNetworkCompliance ( org.ovirt.engine.core.common.businessentities.VDS host , boolean skipManagementNetwork , java.util.Map < java.lang.String , org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > nicsByName ) ;

Target:
org.ovirt.engine.core.common.businessentities.NonOperationalReason persistAndEnforceNetworkCompliance ( org.ovirt.engine.core.common.businessentities.VDS host , boolean skipManagementNetwork , java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > userConfiguredNics ) ;
Source:
public void testIsNotUp ( ) { validator = mockHostForActivation ( VDSStatus.Down ) ; org.junit.Assert.assertNotEquals ( validator.isUp ( ) . getMessage ( ) , EngineMessage.VAR__HOST_STATUS__UP ) ; }

Target:
public void testIsNotUp ( ) { validator = mockHostForActivation ( VDSStatus.Down ) ; org.junit.Assert.assertThat ( validator.isUp ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_VDS_STATUS_ILLEGAL , "$hostStatus Up" ) ) ; }
Source:
public org.ovirt.engine.api.model.Disk addParents ( org.ovirt.engine.api.model.Disk disk ) { disk.setTemplate ( new org.ovirt.engine.api.model.Template ( ) ) ; disk.getTemplate ( ) . setId ( parentId.toString ( ) ) ; return disk ; }

Target:
public org.ovirt.engine.api.model.Disk addParents ( org.ovirt.engine.api.model.Disk disk ) { disk.setTemplate ( new org.ovirt.engine.api.model.Template ( ) ) ; disk.getTemplate ( ) . setId ( templateId.toString ( ) ) ; return disk ; }
Source:
public void setVm ( org.ovirt.engine.core.common.businessentities.VM value ) { if ( ( vm ) != value ) { vm = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "VM" ) ) ; } }

Target:
public void setVm ( org.ovirt.engine.core.common.businessentities.VM value ) { if ( ( vm ) != value ) { vm = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "VM" ) ) ; } }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.scheduling.PolicyUnit object ) { if ( ! ( object.isEnabled ( ) ) ) { return constants.removePolicyUnit ( ) ; } return null ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.scheduling.PolicyUnit object ) { if ( ! ( object.isEnabled ( ) ) ) { return org.ovirt.engine.ui.webadmin.section.main.view.popup.scheduling.ManagePolicyUnitPopupView.constants.disabledPolicyUnit ( ) ; } return org.ovirt.engine.ui.webadmin.section.main.view.popup.scheduling.ManagePolicyUnitPopupView.constants.empty ( ) ; }
Source:
public void validateFailsOnServerNotUp ( ) { setUpMocksForAdd ( VDSStatus.Down ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; org.junit.Assert.assertTrue ( cmd.getReturnValue ( ) . getValidationMessages ( ) . contains ( EngineMessage.ACTION_TYPE_FAILED_SERVER_STATUS_NOT_UP.toString ( ) ) ) ; }

Target:
public void validateFailsOnServerNotUp ( ) { setUpMocksForAdd ( VDSStatus.Down ) ; org.junit.jupiter.api.Assertions.assertFalse ( cmd.validate ( ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( cmd.getReturnValue ( ) . getValidationMessages ( ) . contains ( EngineMessage.ACTION_TYPE_FAILED_SERVER_STATUS_NOT_UP.toString ( ) ) ) ; }
Source:
public void fatal ( java.lang.Object arg0 ) { log.fatal ( addPrefixToLogMessage ( arg0 ) ) ; }

Target:
public void info ( java.lang.Object msg ) { log.info ( addPrefixToLogMessage ( msg ) ) ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml input ( java.lang.String value , java.lang.String customStyle , java.lang.String id ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml input ( java.lang.String value , com.google.gwt.safecss.shared.SafeStyles customStyle , java.lang.String id ) ;
Source:
public void testGetNotFound ( ) { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( true ) ; try { resource.get ( ) ; org.junit.jupiter.api.Assertions.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testGetNotFound ( ) { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( true ) ; verifyNotFoundException ( org.junit.jupiter.api.Assertions.assertThrows ( javax.ws.rs.WebApplicationException.class , resource :: get ) ) ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.gluster.VolumeModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.gluster.VolumeModel ) ( result.getState ( ) ) ) ; localModel.StopProgress ( ) ; cancel ( ) ; }

Target:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.volumes.VolumeListModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.volumes.VolumeListModel ) ( result.getState ( ) ) ) ; localModel.postOnCreateVolume ( result.getReturnValue ( ) ) ; }
Source:
public void setDomain ( java.lang.String value ) { domain = value ; }

Target:
public void setName ( java.lang.String value ) { name = ( value == null ) ? "" : value ; }
Source:
public org.ovirt.engine.core.dao.VmAndTemplatesGenerationsDAO getVmAndTemplatesGenerationsDAO ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmAndTemplatesGenerationsDao ( ) ; }

Target:
public org.ovirt.engine.core.dao.VmAndTemplatesGenerationsDao getVmAndTemplatesGenerationsDao ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmAndTemplatesGenerationsDao ( ) ; }
Source:
protected javax.ws.rs.core.Response add ( org.ovirt.engine.api.model.VnicProfile vnicProfile ) { validateParameters ( vnicProfile ) ; return performCreate ( VdcActionType.AddVnicProfile , new org.ovirt.engine.core.common.action.VnicProfileParameters ( map ( vnicProfile ) ) , new org.ovirt.engine.api.restapi.resource.QueryIdResolver < org.ovirt.engine.core.compat.Guid > ( org.ovirt.engine.core.common.queries.VdcQueryType.GetVnicProfileById , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) ) ; }

Target:
protected javax.ws.rs.core.Response add ( org.ovirt.engine.api.model.VnicProfile vnicProfile ) { validateParameters ( vnicProfile ) ; return performCreate ( VdcActionType.AddVnicProfile , new org.ovirt.engine.core.common.action.AddVnicProfileParameters ( map ( vnicProfile ) ) , new org.ovirt.engine.api.restapi.resource.QueryIdResolver < org.ovirt.engine.core.compat.Guid > ( org.ovirt.engine.core.common.queries.VdcQueryType.GetVnicProfileById , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) ) ; }
Source:
public void updateInterface ( org.ovirt.engine.core.compat.Version clusterVersion ) { getDiskInterface ( ) . setItems ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getDiskInterfaceList ( clusterVersion ) ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue2 ) { java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DiskInterface > diskInterfaces = ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DiskInterface > ) ( returnValue2 ) ) ; if ( isVirtioScsiDisabled ) { diskInterfaces.remove ( DiskInterface.VirtIO_SCSI ) ; } setInterfaces ( diskInterfaces ) ; }
Source:
public void externalNetworkProvidedByChanged ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Network externalNetwork = mockExternalNetwork ( ) ; org.mockito.Mockito.when ( externalNetwork.getProvidedBy ( ) ) . thenReturn ( org.mockito.Mockito.mock ( org.ovirt.engine.core.common.businessentities.network.ProviderNetwork.class ) ) ; assertThatExternalNetworkDetailsUnchangedFails ( externalNetwork ) ; }

Target:
public void internalNetworkProvidedByChanged ( ) { org.ovirt.engine.core.common.businessentities.network.Network externalNetwork = createExternalNetwork ( ) ; network.setProvidedBy ( null ) ; assertThatExternalNetworkDetailsUnchangedFails ( externalNetwork ) ; }
Source:
protected org.ovirt.engine.core.dao.VdsSpmIdMapDAO getVdsSpmIdMapDAO ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsSpmIdMapDao ( ) ; }

Target:
protected org.ovirt.engine.core.dao.VdsSpmIdMapDao getVdsSpmIdMapDao ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsSpmIdMapDao ( ) ; }
Source:
public void setConsoleUserName ( java.lang.String consoleUserName ) { if ( ! ( org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( consoleUserName , consoleUserName ) ) ) { this . consoleUserName = consoleUserName ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "ConsoleUserName" ) ) ; } }

Target:
public void setConsoleUserName ( java.lang.String consoleUserName ) { if ( ! ( java.util.Objects.equals ( consoleUserName , consoleUserName ) ) ) { this . consoleUserName = consoleUserName ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "ConsoleUserName" ) ) ; } }
Source:
public java.lang.Void runInTransaction ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDynamicDao ( ) . update ( vm.getDynamicData ( ) ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { getVmDynamicDAO ( ) . update ( vm.getDynamicData ( ) ) ; return null ; }
Source:
public java.lang.Integer getdisplay_secure_port ( ) { return this . display_secure_port ; }

Target:
public java.lang.Integer getdisplay_secure_port ( ) { return this . displaySecurePort ; }
Source:
public void setType ( org.ovirt.engine.core.common.utils.VmDeviceType type ) { this . type = type ; }

Target:
public void setDeviceType ( org.ovirt.engine.core.common.utils.VmDeviceType type ) { super . setDevice ( type.getName ( ) ) ; }
Source:
protected java.util.ArrayList < org.ovirt.engine.core.compat.Guid > getTaskIdList ( ) { return ( getParentCommandType ( ) ) != ( org.ovirt.engine.core.common.action.VdcActionType.Unknown ) ? getReturnValue ( ) . getInternalVdsmTaskIdList ( ) : getReturnValue ( ) . getVdsmTaskIdList ( ) ; }

Target:
protected java.util.ArrayList < org.ovirt.engine.core.compat.Guid > getTaskIdList ( ) { return ( getParameters ( ) . getParentCommand ( ) ) != ( org.ovirt.engine.core.common.action.VdcActionType.Unknown ) ? getReturnValue ( ) . getInternalVdsmTaskIdList ( ) : getReturnValue ( ) . getVdsmTaskIdList ( ) ; }
Source:
protected void updateBootOrderInVmDevice ( ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.updateBootOrderInVmDevice ( org.ovirt.engine.core.bll.AttachDiskToVmCommand.getVm ( ) . getStaticData ( ) ) ; }

Target:
protected void updateBootOrderInVmDevice ( ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.updateBootOrderInVmDeviceAndStoreToDB ( org.ovirt.engine.core.bll.AttachDiskToVmCommand.getVm ( ) . getStaticData ( ) ) ; }