auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void runAndAssertCanDoActionSuccess ( ) { boolean canDoAction = command.canDoAction ( ) ; org.ovirt.engine.core.bll.AddDiskToVmCommandTest.log.info ( command.getReturnValue ( ) . getCanDoActionMessages ( ) ) ; org.junit.Assert.assertTrue ( canDoAction ) ; }

Target:
private void runAndAssertCanDoActionSuccess ( ) { boolean canDoAction = command.canDoAction ( ) ; org.ovirt.engine.core.bll.AddDiskCommandTest.log.info ( command.getReturnValue ( ) . getCanDoActionMessages ( ) ) ; org.junit.Assert.assertTrue ( canDoAction ) ; }
Source:
protected void selectedItemsChanged ( ) { super . selectedItemsChanged ( ) ; updateConsoleModels ( ) ; UpdateActionAvailability ( ) ; }

Target:
protected void onSelectedItemChanged ( ) { super . onSelectedItemChanged ( ) ; updateConsoleModels ( ) ; updateActionAvailability ( ) ; }
Source:
private boolean containsRunningHostedEngine ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { return storageDomain.getName ( ) . equals ( org.ovirt.engine.core.common.config.Config.< java.lang.String > getValue ( ConfigValues.HostedEngineStorageDomainName ) ) ; }

Target:
public boolean containsRunningHostedEngine ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { return hostedEngineHelper.isHostedEngineStorageDomain ( storageDomain ) ; }
Source:
public void storageDomainDefault ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; final org.ovirt.engine.core.common.businessentities.StorageDomain s = b.getStorageDomain ( ) ; org.junit.Assert.assertNull ( s ) ; }

Target:
public void storageDomainNull ( ) { b.setStorageDomain ( null ) ; final org.ovirt.engine.core.common.businessentities.StorageDomain s = b.getStorageDomain ( ) ; org.junit.Assert.assertNull ( s ) ; }
Source:
public void testSetup ( ) { org.mockito.Mockito.when ( quotaDao.getById ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( mockGeneralStorageQuota ( ) ) ; }

Target:
public void testSetup ( ) { org.mockito.Mockito.when ( quotaDao.getById ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( mockGeneralStorageQuota ( ) ) ; }
Source:
public void nullNetworkWhenPortMirroring ( ) throws java.lang.Exception { portMirroringTest ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.PORT_MIRRORING_REQUIRES_NETWORK ) , null , true ) ; }

Target:
public void validNetworkNameWhenUnlinkingSupported ( ) throws java.lang.Exception { networkNameTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , true , "net" ) ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult a ) { stopProgress ( a.getState ( ) ) ; cancel ( ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { cachedMaxPriority = ( ( java.lang.Integer ) ( returnValue ) ) ; updatePriority ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel ) ( target ) ) ) ; }
Source:
public void setWANColorDepth ( org.ovirt.engine.ui.uicommonweb.models.vms.WanColorDepth colorDepth ) { this . wanColorDepth = colorDepth ; getWANColorDepthChangedEvent ( ) . raise ( this , EventArgs.Empty ) ; }

Target:
public void setWANColorDepth ( org.ovirt.engine.ui.uicommonweb.models.vms.WanColorDepth colorDepth ) { this . wanColorDepth = colorDepth ; getWANColorDepthChangedEvent ( ) . raise ( this , EventArgs.EMPTY ) ; }
Source:
public java.lang.Boolean getacpi_enable ( ) { return this . acpi_enable ; }

Target:
public void setVmIp ( java.lang.String value ) { this . vmIp = value ; }
Source:
public org.ovirt.engine.core.common.businessentities.network.NetworkBootProtocol resolve ( org.ovirt.engine.core.vdsbroker.vdsbroker.IpInfoFetcher ipInfoFetcher ) { if ( ipInfoFetcher.isBootProtocolDhcp ( ) ) { return org.ovirt.engine.core.common.businessentities.network.NetworkBootProtocol.DHCP ; } else if ( org.apache.commons.lang.StringUtils.isNotEmpty ( ipInfoFetcher.fetchIpAddress ( ) ) ) { return org.ovirt.engine.core.common.businessentities.network.NetworkBootProtocol.STATIC_IP ; } else { return org.ovirt.engine.core.common.businessentities.network.NetworkBootProtocol.NONE ; } }

Target:
public org.ovirt.engine.core.common.businessentities.network.Ipv4BootProtocol resolve ( org.ovirt.engine.core.vdsbroker.vdsbroker.IpInfoFetcher ipInfoFetcher ) { if ( ipInfoFetcher.isBootProtocolDhcp ( ) ) { return org.ovirt.engine.core.common.businessentities.network.Ipv4BootProtocol.DHCP ; } else if ( org.apache.commons.lang.StringUtils.isNotEmpty ( ipInfoFetcher.fetchIpAddress ( ) ) ) { return org.ovirt.engine.core.common.businessentities.network.Ipv4BootProtocol.STATIC_IP ; } else { return org.ovirt.engine.core.common.businessentities.network.Ipv4BootProtocol.NONE ; } }
Source:
private java.lang.String getNetworkName ( ) { org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface vmNetworkInterface = org.ovirt.engine.core.bll.network.vm.ActivateDeactivateVmNicCommand.getVmNetworkInterfaceDao ( ) . get ( org.ovirt.engine.core.bll.network.vm.ActivateDeactivateVmNicCommand.getParameters ( ) . getNicId ( ) ) ; return vmNetworkInterface == null ? null : vmNetworkInterface.getNetworkName ( ) ; }

Target:
public java.lang.String getInterfaceType ( ) { return org.ovirt.engine.core.common.businessentities.network.VmInterfaceType.forValue ( org.ovirt.engine.core.bll.network.vm.ActivateDeactivateVmNicCommand.getParameters ( ) . getNic ( ) . getType ( ) ) . getDescription ( ) ; }
Source:
public void setvmt_cpu_per_socket ( int value ) { this . vmt_cpu_per_socketField = value ; }

Target:
public void setVdsGroupCpuName ( java.lang.String value ) { this . vdsGroupCpuName = value ; }
Source:
public void checkStorageDomainNotEqualWithNonActiveStatus ( ) { setStorageDomainStatus ( StorageDomainStatus.Maintenance ) ; org.junit.Assert.assertTrue ( cmd.CheckStorageDomainStatusNotEqual ( StorageDomainStatus.Active ) ) ; }

Target:
public void checkStorageDomainNotEqualWithNonActiveStatus ( ) { setStorageDomainStatus ( StorageDomainStatus.Maintenance ) ; org.junit.Assert.assertTrue ( cmd.checkStorageDomainStatusNotEqual ( StorageDomainStatus.Active ) ) ; }
Source:
protected int getEneitiesTotalCount ( ) { return ( org.ovirt.engine.core.dao.DiskDaoTest.TOTAL_DISK_IMAGES ) + ( DiskLunMapDaoTest.TOTAL_DISK_LUN_MAPS ) ; }

Target:
protected int getEntitiesTotalCount ( ) { return ( org.ovirt.engine.core.dao.DiskDaoTest.TOTAL_DISK_IMAGES ) + ( DiskLunMapDaoTest.TOTAL_DISK_LUN_MAPS ) ; }
Source:
public void hideLabel ( ) { super . hideLabel ( ) ; getCheckboxWidgetLabel ( ) . getStyle ( ) . setDisplay ( Display.NONE ) ; }

Target:
public void hideLabel ( ) { super . hideLabel ( ) ; if ( useCheckBoxWidgetLabel ) { getCheckboxWidgetLabel ( ) . getStyle ( ) . setDisplay ( Display.NONE ) ; } }
Source:
public void setstorage_name ( java.lang.String value ) { name = value ; }

Target:
public org.ovirt.engine.core.common.businessentities.StorageType getStorageType ( ) { return storagePoolType ; }
Source:
protected boolean verifyDisksNotLocked ( java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > disks ) { for ( org.ovirt.engine.core.common.businessentities.DiskImage disk : disks ) { if ( ( disk.getImageStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.ImageStatus.LOCKED ) ) { return false ; } } return true ; }

Target:
protected boolean verifyImagesStatus ( java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > diskImages ) { for ( org.ovirt.engine.core.common.businessentities.DiskImage diskImage : diskImages ) { if ( ( diskImage.getImageStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.ImageStatus.LOCKED ) ) { return false ; } } return true ; }
Source:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s, vdsId = %s, storagePoolId = %s, masterVersion = %d" , super . toString ( ) , vds.getId ( ) . toString ( ) , storagePool.getId ( ) . toString ( ) , storagePool.getmaster_domain_version ( ) ) ; }

Target:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s, vdsId = %s, storagePoolId = %s, masterVersion = %d" , super . toString ( ) , vds.getId ( ) . toString ( ) , storagePool.getId ( ) . toString ( ) , storagePool.getMasterDomainVersion ( ) ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.gin.ClientGinjector ginjector ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( ginjector.getApplicationConstants ( ) . storageVmSubTabLabel ( ) , 4 , ginjector.getSubTabStorageVmModelProvider ( ) ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.VM , org.ovirt.engine.ui.uicommonweb.models.storage.StorageListModel , org.ovirt.engine.ui.uicommonweb.models.storage.StorageVmListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.storageVmSubTabLabel ( ) , 4 , modelProvider ) ; }
Source:
public void canDoActionFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( null , null , 0 , 0 , false ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }

Target:
public void validateFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( null , null , 0 , 0 , false ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
public void testIsInternalExecutionDefault ( ) { org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery query = new org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery ( org.mockito.Mockito.mock ( org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class ) ) ; org.junit.Assert.assertFalse ( "By default, a query should not be marked for internel execution" , query.isInternalExecution ( ) ) ; }

Target:
public void testIsInternalExecutionDefault ( ) { org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery query = new org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery ( org.mockito.Mockito.mock ( org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class ) ) ; org.junit.Assert.assertFalse ( "By default, a query should not be marked for internal execution" , query.isInternalExecution ( ) ) ; }
Source:
public void setElapsedTime ( java.lang.Double value ) { this . elapsed_timeField = value ; setRoundedElapsedTime ( value ) ; }

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

Target:
public void testVerbosityLevelZero ( ) { java.lang.String command = createCommand ( new org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilder ( ) . verboseLevel ( AnsibleVerbosity.LEVEL0 ) . playbook ( org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilderTest.ANSIBLE_PLAYBOOK ) ) ; org.junit.Assert.assertEquals ( join ( AnsibleCommandBuilder.ANSIBLE_COMMAND , org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilderTest.IGNORE_SSH_CONFIG , org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilderTest.PRIVATE_KEY , org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilderTest.ANSIBLE_PLAYBOOK_FULL_PATH ) , command ) ; }
Source:
public java.lang.Boolean getactive ( ) { return getImage ( ) . isActive ( ) ; }

Target:
public java.lang.Boolean getActive ( ) { return getImage ( ) . isActive ( ) ; }
Source:
public void updateInterface ( org.ovirt.engine.core.common.businessentities.StoragePool datacenter ) { getDiskInterface ( ) . setItems ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getDiskInterfaceList ( ) ) ; getDiskInterface ( ) . setSelectedItem ( DiskInterface.VirtIO ) ; }

Target:
public void initialize ( ) { super . initialize ( ) ; if ( ( getVm ( ) ) != null ) { updateSuggestedDiskAlias ( ) ; } getSizeExtend ( ) . setIsAvailable ( false ) ; }
Source:
public org.ovirt.engine.sdk.web.ConnectionsPoolBuilder timeout ( int timeout ) { this . timeout = timeout ; return this ; }

Target:
public org.ovirt.engine.sdk.web.ConnectionsPoolBuilder timeout ( java.lang.Integer timeout ) { if ( timeout != null ) { this . timeout = timeout.intValue ( ) ; } return this ; }
Source:
private void initSnapshotValidator ( ) { org.mockito.Mockito.when ( snapshotsValidator.vmNotInPreview ( org.mockito.Matchers.any ( ) ) ) . thenReturn ( ValidationResult.VALID ) ; org.mockito.Mockito.when ( snapshotsValidator.vmNotDuringSnapshot ( org.mockito.Matchers.any ( ) ) ) . thenReturn ( ValidationResult.VALID ) ; }

Target:
private void initSnapshotValidator ( ) { org.mockito.Mockito.when ( snapshotsValidator.vmNotInPreview ( org.mockito.ArgumentMatchers.any ( ) ) ) . thenReturn ( ValidationResult.VALID ) ; org.mockito.Mockito.when ( snapshotsValidator.vmNotDuringSnapshot ( org.mockito.ArgumentMatchers.any ( ) ) ) . thenReturn ( ValidationResult.VALID ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.action.VdcReturnValueBase > runMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > multipleParams , boolean isRunOnlyIfAllValidationPass ) { return runMultipleActions ( actionType , multipleParams , isRunOnlyIfAllValidationPass , false ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.action.VdcReturnValueBase > runMultipleActions ( org.ovirt.engine.core.common.action.ActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > multipleParams , boolean isRunOnlyIfAllValidationPass ) { return runMultipleActions ( actionType , multipleParams , isRunOnlyIfAllValidationPass , false ) ; }
Source:
private static org.ovirt.engine.api.rsdl.ServiceTreeNode buildTree ( ) { return org.ovirt.engine.api.rsdl.ServiceTree.buildNode ( org.ovirt.engine.api.resource.SystemResource.class ) ; }

Target:
private static org.ovirt.engine.api.rsdl.ServiceTreeNode buildTree ( ) { return org.ovirt.engine.api.rsdl.ServiceTree.buildNode ( org.ovirt.engine.api.resource.SystemResource.class , "" ) ; }
Source:
protected boolean RemoveVmInSpm ( org.ovirt.engine.core.compat.Guid storagePoolId , org.ovirt.engine.core.compat.Guid vmID ) { return RemoveVmInSpm ( storagePoolId , vmID , Guid.Empty ) ; }

Target:
protected boolean removeVmInSpm ( org.ovirt.engine.core.compat.Guid storagePoolId , org.ovirt.engine.core.compat.Guid vmID ) { return removeVmInSpm ( storagePoolId , vmID , Guid.Empty ) ; }
Source:
public void testIsNetworkInSyncWhenGatewayDifferent ( ) { initIpConfigurationBootProtocolGateway ( NetworkBootProtocol.STATIC_IP , false ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( false ) ) ; }

Target:
public void testIsNetworkInSyncWhenIpv4GatewayDifferent ( ) { initIpv4ConfigurationBootProtocolGateway ( Ipv4BootProtocol.STATIC_IP , false ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( false ) ) ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml progressBar ( int progress , java.lang.String text , java.lang.String color , java.lang.String style , java.lang.String id ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml migrationPolicyDetails ( java.lang.String name , java.lang.String description ) ;
Source:
public void execute ( ) { layoutCommand = null ; forceLayout ( ) ; }

Target:
public void execute ( ) { org.ovirt.engine.ui.webadmin.widget.main.LayoutData layout = ( ( org.ovirt.engine.ui.webadmin.widget.main.LayoutData ) ( westPanel.getLayoutData ( ) ) ) ; layout.oldSize = getStoredStackPanelWidth ( org.ovirt.engine.ui.webadmin.widget.main.TabbedSplitLayoutPanel.WEST_SPLITTER_OLD_KEY ) ; }
Source:
public void setutc_diff ( java.lang.Integer value ) { this . utc_diff = value ; }

Target:
public void setutc_diff ( java.lang.Integer value ) { this . utcDiff = value ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledNotSetLegacyPolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setType ( "legacy" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE , null ) , UsbPolicy.ENABLED_LEGACY ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotDisabledNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; usb.setType ( "native" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED ) , UsbPolicy.DISABLED ) ; }
Source:
public java.lang.Void runInTransaction ( ) { getDbFacade ( ) . getVdsCpuStatisticsDAO ( ) . massSaveCpuStatistics ( cpuStatisticsToSave , _vds.getId ( ) ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { getDbFacade ( ) . getVdsCpuStatisticsDAO ( ) . massUpdateCpuStatistics ( cpuStatisticsToSave , _vds.getId ( ) ) ; return null ; }
Source:
public org.ovirt.engine.api.extensions.ExtMap getPrincipalRecord ( java.lang.String engineSessionId ) { return ( ( org.ovirt.engine.api.extensions.ExtMap ) ( getData ( engineSessionId , org.ovirt.engine.core.bll.aaa.SessionDataContainer.PRINCIPAL_RECORD_PARAMETER_NAME , false ) ) ) ; }

Target:
public final void setSessionValid ( java.lang.String sessionId , boolean valid ) { setData ( sessionId , org.ovirt.engine.core.bll.aaa.SessionDataContainer.SESSION_VALID_PARAMETER_NAME , valid ) ; }
Source:
void createInfoPanel ( ) { registerEntityInfoPanel = new org.ovirt.engine.ui.webadmin.section.main.view.popup.storage.RegisterTemplateInfoPanel ( ) ; entityInfoContainer.add ( registerEntityInfoPanel ) ; }

Target:
protected void createInfoPanel ( org.ovirt.engine.ui.uicommonweb.models.storage.RegisterEntityModel model ) { registerEntityInfoPanel = new org.ovirt.engine.ui.webadmin.section.main.view.popup.storage.RegisterTemplateInfoPanel ( model ) ; entityInfoContainer.add ( registerEntityInfoPanel ) ; }
Source:
public static java.util.HashMap < java.lang.Integer , java.lang.String > getOsNames ( ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.osNames ; }

Target:
public static java.lang.String getOsName ( java.lang.Integer osId ) { if ( osId == null ) { return "" ; } return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.osNames.get ( osId ) ; }
Source:
java.lang.String migrateSomeVmsAlreadyRunningOnHost ( ) ;

Target:
java.lang.String slaves ( int count ) ;
Source:
public void setcpu_flags ( java.lang.String value ) { mVdsDynamic.setcpu_flags ( value ) ; }

Target:
public void setCpuFlags ( java.lang.String value ) { mVdsDynamic.setcpu_flags ( value ) ; }
Source:
protected boolean validateFreeSpace ( org.ovirt.engine.core.bll.validator.StorageDomainValidator storageDomainValidator , java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > disksList ) { return validate ( storageDomainValidator.hasSpaceForNewDisks ( disksList ) ) ; }

Target:
protected boolean validateFreeSpace ( org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator storageDomainValidator , java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > disksList ) { java.util.Collection < org.ovirt.engine.core.common.businessentities.DiskImage > disks = org.ovirt.engine.core.bll.ImagesHandler.getDisksDummiesForStorageAllocations ( disksList ) ; return validate ( storageDomainValidator.hasSpaceForNewDisks ( disks ) ) ; }
Source:
public org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorTest.HostSetupNetworksValidatorBuilder setHost ( org.ovirt.engine.core.common.businessentities.VDS host ) { this . host = host ; return this ; }

Target:
public org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorTest.HostSetupNetworksValidatorBuilder setParams ( org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorTest.ParametersBuilder builder ) { return setParams ( builder.build ( ) ) ; }
Source:
public void rollback ( ) { super . rollback ( ) ; org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolPerDcSingleton.getInstance ( ) . modifyPool ( oldMacPool ) ; }

Target:
public void onRollback ( ) { org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolPerDcSingleton.getInstance ( ) . modifyPool ( oldMacPool ) ; }
Source:
public boolean isRunningOrPaused ( ) { return ( ( ( this . isRunning ( ) ) || ( ( this ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.Paused ) ) ) || ( ( this ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.SavingState ) ) ) || ( ( this ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.RestoringState ) ) ; }

Target:
public boolean isHibernating ( ) { return ( ( this ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.SavingState ) ) || ( ( this ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.PreparingForHibernate ) ) ; }
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 java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity > getReplicateAndNfsVolumes ( org.ovirt.engine.core.compat.Guid clusterId , java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeType > volumeTypes ) { return org.ovirt.engine.core.bll.gluster.GetGlusterVolumeAdvancedDetailsQuery.getGlusterVolumeDao ( ) . getVolumesByStatusTypesAndOption ( clusterId , GlusterStatus.UP , volumeTypes , org.ovirt.engine.core.bll.gluster.GetGlusterVolumeAdvancedDetailsQuery.OPTION_KEY_NFS_DISABLE , org.ovirt.engine.core.bll.gluster.GetGlusterVolumeAdvancedDetailsQuery.OPTION_VALUE_OFF ) ; }
Source:
public void testHasUniqueNameUsingExistingName ( ) throws java.lang.Exception { final java.lang.String macPoolName = "macPool1" ; org.junit.Assert.assertThat ( callHasUniqueName ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , org.ovirt.engine.core.compat.Guid.newGuid ( ) , macPoolName , macPoolName ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_NAME_ALREADY_USED ) ) ; }

Target:
public void testHasUniqueNameUsingExistingName ( ) throws java.lang.Exception { final java.lang.String macPoolName = "macPool1" ; org.junit.Assert.assertThat ( callHasUniqueName ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , org.ovirt.engine.core.compat.Guid.newGuid ( ) , macPoolName , macPoolName ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_NAME_ALREADY_USED ) ) ; }
Source:
public void canDoAction_vmNameExists_Test ( ) { org.mockito.Mockito.doReturn ( new org.ovirt.engine.core.common.scheduling.AffinityGroup ( ) ) . when ( affinityGroupDao ) . getByName ( org.mockito.Matchers.anyString ( ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , VdcBllMessages.ACTION_TYPE_FAILED_AFFINITY_GROUP_NAME_EXISTS ) ; }

Target:
public void canDoAction_vmNameExists_Test ( ) { org.mockito.Mockito.doReturn ( new org.ovirt.engine.core.common.scheduling.AffinityGroup ( ) ) . when ( affinityGroupDao ) . getByName ( org.mockito.Matchers.anyString ( ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.ACTION_TYPE_FAILED_AFFINITY_GROUP_NAME_EXISTS ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VmPayload getPayloadModel ( ) { org.ovirt.engine.core.common.businessentities.VmPayload payload = new org.ovirt.engine.core.common.businessentities.VmPayload ( ) ; payload.setType ( VmDeviceType.CDROM ) ; payload.getFiles ( ) . put ( "payloadFile" , new java.lang.String ( org.apache.commons.codec.binary.Base64.decodeBase64 ( org.ovirt.engine.api.restapi.resource.BackendVmsResourceTest.PAYLOAD_COMTENT ) ) ) ; return payload ; }

Target:
private org.ovirt.engine.core.common.businessentities.VmPayload getPayloadModel ( ) { org.ovirt.engine.core.common.businessentities.VmPayload payload = new org.ovirt.engine.core.common.businessentities.VmPayload ( ) ; payload.setDeviceType ( VmDeviceType.CDROM ) ; payload.getFiles ( ) . put ( "payloadFile" , new java.lang.String ( org.apache.commons.codec.binary.Base64.decodeBase64 ( org.ovirt.engine.api.restapi.resource.BackendVmsResourceTest.PAYLOAD_COMTENT ) ) ) ; return payload ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult interfaceIsBondOrNull ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.NETWORK_INTERFACE_IS_NOT_BOND ) . when ( ( ( ( iface ) != null ) && ( ! ( iface.isBond ( ) ) ) ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult interfaceIsBondOrNull ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.NETWORK_INTERFACE_IS_NOT_BOND ) . when ( ( ( ( iface ) != null ) && ( ! ( iface.isBond ( ) ) ) ) ) ; }
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.VmPool > vmPools = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmPoolDao ( ) . getAll ( ) ; for ( org.ovirt.engine.core.common.businessentities.VmPool vmPool : vmPools ) { managePrestartedVmsInPool ( vmPool ) ; } }
Source:
protected org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity getEntity ( int index ) { return setUpEntityExpectations ( control.createMock ( org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity.class ) , index , false ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity getEntityWithDetails ( int index ) { return helper.getBrickEntity ( index , true ) ; }
Source:
public void testExistentType ( ) { org.junit.Assert.assertTrue ( comp.validateFieldValue ( ProviderConditionFieldAutoCompleter.TYPE , ProviderType.OPENSTACK_NETWORK.name ( ) ) ) ; }

Target:
public void testExistentType ( ) { org.junit.jupiter.api.Assertions.assertTrue ( comp.validateFieldValue ( ProviderConditionFieldAutoCompleter.TYPE , ProviderType.OPENSTACK_NETWORK.name ( ) ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeOptionEntity getById ( org.ovirt.engine.core.compat.Guid id ) { return getCallsHandler ( ) . executeRead ( "GetGlusterOptionById" , org.ovirt.engine.core.dao.gluster.GlusterOptionDaoDbFacadeImpl.optionRowMapper , getCustomMapSqlParameterSource ( ) . addValue ( "id" , id ) ) ; }

Target:
public void removeAll ( java.util.Collection < org.ovirt.engine.core.compat.Guid > ids ) { getCallsHandler ( ) . executeModification ( "DeleteGlusterVolumeOptions" , getCustomMapSqlParameterSource ( ) . addValue ( "ids" , org.apache.commons.lang.StringUtils.join ( ids , ',' ) ) ) ; }
Source:
public java.lang.String getVmName ( ) { return this . vmStatic.getVmName ( ) ; }

Target:
public void setVmOs ( int value ) { this . vmStatic.setOsId ( value ) ; }
Source:
protected void OnEntityChanged ( ) { super . OnEntityChanged ( ) ; if ( ( getEntity ( ) ) != null ) { UpdateVolumeDetails ( ) ; } UpdateActionAvailability ( ) ; }

Target:
protected void OnEntityChanged ( ) { super . OnEntityChanged ( ) ; if ( ( getEntity ( ) ) != null ) { UpdateVolumeDetails ( ) ; updateAlerts ( ) ; updateConsoleAddressPartiallyOverridden ( getEntity ( ) ) ; } UpdateActionAvailability ( ) ; }
Source:
public void tDie_1_error ( java.lang.Exception exception , java.lang.String errorComponent , final java.util.Map < java.lang.String , java.lang.Object > globalMap ) throws ovirt_engine_dwh.minimalversioncheck_3_2.MinimalVersionCheck.TalendException { end_Hash.put ( "tDie_1" , java.lang.System.currentTimeMillis ( ) ) ; tDie_1_onSubJobError ( exception , errorComponent , globalMap ) ; }

Target:
public void tDie_1_error ( java.lang.Exception exception , java.lang.String errorComponent , final java.util.Map < java.lang.String , java.lang.Object > globalMap ) throws ovirt_engine_dwh.minimalversioncheck_3_2.MinimalVersionCheck.TalendException { end_Hash.put ( "tDie_1" , java.lang.System.currentTimeMillis ( ) ) ; status = "failure" ; tDie_1_onSubJobError ( exception , errorComponent , globalMap ) ; }
Source:
protected void verifyModel ( org.ovirt.engine.api.model.NetworkLabel model , int index ) { org.junit.Assert.assertEquals ( org.ovirt.engine.api.restapi.resource.BackendHostNicLabelsResourceTest.LABELS [ index ] , model.getId ( ) ) ; verifyLinks ( model ) ; }

Target:
protected void verifyModel ( org.ovirt.engine.api.model.NetworkLabel model , int index ) { org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.api.restapi.resource.BackendHostNicLabelsResourceTest.LABELS [ index ] , model.getId ( ) ) ; verifyLinks ( model ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.DiskImage image ) { return getImages ( ) . contains ( image ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.storage.DiskImage image ) { return getImages ( ) . contains ( image ) ; }
Source:
public void testIsAnyVmRunOnVds ( ) { org.junit.Assert.assertTrue ( dao.isAnyVmRunOnVds ( org.ovirt.engine.core.dao.VmDynamicDaoTest.VDS_STATIC_ID ) ) ; org.junit.Assert.assertFalse ( dao.isAnyVmRunOnVds ( org.ovirt.engine.core.dao.VmDynamicDaoTest.VDS_STATIC_ID2 ) ) ; }

Target:
public void testIsAnyVmRunOnVds ( ) { org.junit.Assert.assertTrue ( dao.isAnyVmRunOnVds ( FixturesTool.VDS_RHEL6_NFS_SPM ) ) ; org.junit.Assert.assertFalse ( dao.isAnyVmRunOnVds ( org.ovirt.engine.core.dao.VmDynamicDaoTest.VDS_STATIC_ID2 ) ) ; }
Source:
private org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase createLoggable ( ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase loggable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; loggable.setClusterId ( networkCluster.getClusterId ( ) ) ; loggable.addCustomValue ( "NetworkName" , networkName ) ; return loggable ; }

Target:
private org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase createLoggable ( ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase loggable = org.ovirt.engine.core.di.Injector.injectMembers ( new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ) ; loggable.setClusterId ( networkCluster.getClusterId ( ) ) ; loggable.addCustomValue ( "NetworkName" , networkName ) ; return loggable ; }
Source:
void wireEvents ( ) { expander.addClickHandler ( new com.google.gwt.event.dom.client.ClickHandler ( ) { @ java.lang.Override public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { expanderContent.getStyle ( ) . setDisplay ( ( expander.isDown ( ) ? Style.Display.BLOCK : Style.Display.NONE ) ) ; } } ) ; }

Target:
void addStyles ( ) { pathEditor.addContentWidgetStyleName ( style.pathEditorContent ( ) ) ; expanderContent.setClassName ( style.expanderContent ( ) ) ; }
Source:
public org.ovirt.engine.api.model.OpenStackImages list ( ) { org.ovirt.engine.core.compat.Guid storageDomainId = org.ovirt.engine.api.restapi.resource.openstack.BackendOpenStackStorageProviderHelper.getStorageDomainId ( this , providerId ) ; org.ovirt.engine.core.common.queries.GetImagesListParameters parameters = new org.ovirt.engine.core.common.queries.GetImagesListParameters ( storageDomainId , org.ovirt.engine.core.common.businessentities.storage.ImageFileType.All ) ; return mapCollection ( getBackendCollection ( VdcQueryType.GetImagesList , parameters ) ) ; }

Target:
public org.ovirt.engine.api.model.OpenStackImages list ( ) { org.ovirt.engine.core.compat.Guid storageDomainId = org.ovirt.engine.api.restapi.resource.openstack.BackendOpenStackStorageProviderHelper.getStorageDomainId ( this , providerId ) ; org.ovirt.engine.core.common.queries.GetImagesListParameters parameters = new org.ovirt.engine.core.common.queries.GetImagesListParameters ( storageDomainId , org.ovirt.engine.core.common.businessentities.storage.ImageFileType.All ) ; return mapCollection ( getBackendCollection ( QueryType.GetImagesList , parameters ) ) ; }
Source:
public void externalNetworkVlanInvalid ( ) { org.mockito.Mockito.when ( network.getVlanId ( ) ) . thenReturn ( org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextInt ( ) ) ; org.junit.Assert.assertThat ( validator.externalNetworkVlanValid ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_EXTERNAL_NETWORK_WITH_VLAN_MUST_BE_LABELED ) ) ; }

Target:
public void externalNetworkVlanInvalid ( ) { org.mockito.Mockito.when ( network.getVlanId ( ) ) . thenReturn ( org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextInt ( ) ) ; org.hamcrest.MatcherAssert.assertThat ( validator.externalNetworkVlanValid ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_EXTERNAL_NETWORK_WITH_VLAN_MUST_BE_LABELED ) ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.storage.pool.GetAllStoragePoolsQuery.getQueryReturnValue ( ) . setReturnValue ( storagePoolDao.getAll ( org.ovirt.engine.core.bll.storage.pool.GetAllStoragePoolsQuery.getUserID ( ) , org.ovirt.engine.core.bll.storage.pool.GetAllStoragePoolsQuery.getParameters ( ) . isFiltered ( ) ) ) ; }

Target:
protected java.lang.Object queryDataCenter ( ) { return storagePoolDao.getAll ( org.ovirt.engine.core.bll.storage.pool.GetAllStoragePoolsQuery.getUserID ( ) , org.ovirt.engine.core.bll.storage.pool.GetAllStoragePoolsQuery.getParameters ( ) . isFiltered ( ) ) ; }
Source:
boolean isNicActuallyExistsOrReferencesNewBond ( org.ovirt.engine.core.common.businessentities.BusinessEntityMap < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > existingInterfacesMap , org.ovirt.engine.core.common.businessentities.BusinessEntityMap < org.ovirt.engine.core.common.businessentities.network.Bond > bondsMap , java.lang.String nicName , org.ovirt.engine.core.compat.Guid nicId ) { return hostSetupNetworksValidatorHelper.isNicActuallyExistsOrReferencesNewBond ( existingInterfacesMap , bondsMap , nicName , nicId ) ; }

Target:
boolean isNicActuallyExistsOrReferencesNewBond ( java.lang.String nicName , org.ovirt.engine.core.compat.Guid nicId ) { return hostSetupNetworksValidatorHelper.isNicActuallyExistsOrReferencesNewBond ( existingInterfacesMap , createOrUpdateBondBusinessEntityMap , nicName , nicId ) ; }
Source:
org.ovirt.engine.core.vdsbroker.irsbroker.OneUuidReturnForXmlRpc glusterVolumeCreate ( java.lang.String volumeName , java.lang.String [ ] brickList , int replicaCount , int stripeCount , java.lang.String [ ] transportList ) ;

Target:
org.ovirt.engine.core.vdsbroker.irsbroker.StatusReturnForXmlRpc verifyUntrustedVolume ( java.lang.String spId , java.lang.String sdId , java.lang.String imgGroupId , java.lang.String imgId ) ;
Source:
public void setNicId ( org.ovirt.engine.core.compat.Guid nicId ) { this . nicId = nicId ; }

Target:
public void setNic ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface nic ) { this . nic = nic ; }
Source:
public void setAdUser ( org.ovirt.engine.core.common.businessentities.AdUser adUser ) { this . adUser = adUser ; }

Target:
public void setAdUser ( org.ovirt.engine.core.common.businessentities.LdapUser ldapUser ) { this . ldapUser = ldapUser ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { infoReturn = org.ovirt.engine.core.vdsbroker.vdsbroker.GetCapabilitiesVDSCommand.getBroker ( ) . getCapabilities ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.GetCapabilitiesVDSCommand.proceedProxyReturnValue ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.updateVDSDynamicData ( org.ovirt.engine.core.vdsbroker.vdsbroker.GetCapabilitiesVDSCommand.getVds ( ) , infoReturn.mInfo ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { infoReturn = org.ovirt.engine.core.vdsbroker.vdsbroker.GetCapabilitiesVDSCommand.getBroker ( ) . getCapabilities ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.GetCapabilitiesVDSCommand.proceedProxyReturnValue ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.updateVDSDynamicData ( org.ovirt.engine.core.vdsbroker.vdsbroker.GetCapabilitiesVDSCommand.getVds ( ) , infoReturn.mInfo ) ; }
Source:
public void testUpdateWithNonGuidId ( ) throws java.lang.Exception { javax.ws.rs.core.UriInfo uriInfo = mockUri ( "hosts" , "00000001-0001-0001-0001-000000000011" , "nics" , "116" ) ; javax.ws.rs.core.Request request = mockRequest ( "PUT" ) ; org.ovirt.engine.api.model.Fault fault = usageFinder.getUsageMessage ( uriInfo , request ) ; org.junit.Assert.assertEquals ( "For correct usage, see: http://localhost:8080/ovirt-engine/apidoc#services/host_nic/methods/update" , fault.getDetail ( ) ) ; }

Target:
public void testUpdateWithNonGuidId ( ) throws java.lang.Exception { javax.ws.rs.core.UriInfo uriInfo = mockUri ( "hosts" , "00000001-0001-0001-0001-000000000011" , "nics" , "116" ) ; javax.ws.rs.core.Request request = mockRequest ( "PUT" ) ; org.ovirt.engine.api.model.Fault fault = usageFinder.getUsageMessage ( uriInfo , request ) ; org.junit.jupiter.api.Assertions.assertEquals ( "For correct usage, see: http://localhost:8080/ovirt-engine/apidoc#services/host_nic/methods/update" , fault.getDetail ( ) ) ; }
Source:
public void testAddGroupWithImplicitDirectoryName ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpEntityQueryExpectations ( QueryType.GetDomainList , org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , setUpDomains ( ) ) ; setUpGetEntityExpectations ( ( ( ( "ADGROUP@" + ( DOMAIN ) ) + ":: name=" ) + ( org.ovirt.engine.api.restapi.resource.aaa.BackendGroupsResourceTest.GROUP_NAMES_WITH_NO_DOMAIN [ 0 ] ) ) , SearchType.DirectoryGroup , getDirectoryGroup ( 0 ) ) ; setUpCreationExpectations ( ActionType.AddGroup , org.ovirt.engine.core.common.action.AddGroupParameters.class , new java.lang.String [ ] { "GroupToAdd" } , new java.lang.Object [ ] { new org.ovirt.engine.core.common.businessentities.aaa.DbGroup ( getDirectoryGroup ( 0 ) ) } , true , true , GUIDS [ 0 ] , QueryType.GetDbGroupById , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , getEntity ( 0 ) ) ; org.ovirt.engine.api.model.Group model = new org.ovirt.engine.api.model.Group ( ) ; model.setName ( org.ovirt.engine.api.restapi.resource.aaa.BackendGroupsResourceTest.GROUP_NAMES [ 0 ] ) ; javax.ws.rs.core.Response response = collection.add ( model ) ; assertEquals ( 201 , response.getStatus ( ) ) ; assertTrue ( ( ( response.getEntity ( ) ) instanceof org.ovirt.engine.api.model.Group ) ) ; verifyModel ( ( ( org.ovirt.engine.api.model.Group ) ( response.getEntity ( ) ) ) , 0 ) ; }

Target:
public void testAddGroupWithImplicitDirectoryName ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpEntityQueryExpectations ( QueryType.GetDomainList , org.ovirt.engine.core.common.queries.QueryParametersBase.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , setUpDomains ( ) ) ; setUpGetEntityExpectations ( ( ( ( "ADGROUP@" + ( DOMAIN ) ) + ":: name=" ) + ( org.ovirt.engine.api.restapi.resource.aaa.BackendGroupsResourceTest.GROUP_NAMES_WITH_NO_DOMAIN [ 0 ] ) ) , SearchType.DirectoryGroup , getDirectoryGroup ( 0 ) ) ; setUpCreationExpectations ( ActionType.AddGroup , org.ovirt.engine.core.common.action.AddGroupParameters.class , new java.lang.String [ ] { "GroupToAdd" } , new java.lang.Object [ ] { new org.ovirt.engine.core.common.businessentities.aaa.DbGroup ( getDirectoryGroup ( 0 ) ) } , true , true , GUIDS [ 0 ] , QueryType.GetDbGroupById , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , getEntity ( 0 ) ) ; org.ovirt.engine.api.model.Group model = new org.ovirt.engine.api.model.Group ( ) ; model.setName ( org.ovirt.engine.api.restapi.resource.aaa.BackendGroupsResourceTest.GROUP_NAMES [ 0 ] ) ; javax.ws.rs.core.Response response = collection.add ( model ) ; assertEquals ( 201 , response.getStatus ( ) ) ; assertTrue ( ( ( response.getEntity ( ) ) instanceof org.ovirt.engine.api.model.Group ) ) ; verifyModel ( ( ( org.ovirt.engine.api.model.Group ) ( response.getEntity ( ) ) ) , 0 ) ; }
Source:
protected boolean validate ( ) { if ( ( org.ovirt.engine.core.bll.RemoveBookmarkCommand.getBookmark ( ) ) == null ) { addInvalidIdErrorMessages ( EngineMessage.VAR__ACTION__UPDATE ) ; return false ; } return true ; }

Target:
protected boolean validate ( ) { if ( ( org.ovirt.engine.core.bll.RemoveBookmarkCommand.getBookmark ( ) ) == null ) { return failValidation ( EngineMessage.ACTION_TYPE_FAILED_BOOKMARK_INVALID_ID ) ; } return true ; }
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 ? ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Role > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Role > ( ) ; }
Source:
protected void init ( ) { super . init ( ) ; snapshots = getGlusterVolumeSnapshotDao ( ) . getAllByVolumeId ( getGlusterVolumeId ( ) ) ; georepSessions = getDbFacade ( ) . getGlusterGeoRepDao ( ) . getGeoRepSessions ( getGlusterVolumeId ( ) ) ; }

Target:
protected void init ( ) { super . init ( ) ; snapshots = getGlusterVolumeSnapshotDao ( ) . getAllByVolumeId ( getGlusterVolumeId ( ) ) ; georepSessions = glusterGeoRepDao.getGeoRepSessions ( getGlusterVolumeId ( ) ) ; }
Source:
public void update ( java.util.Observable o , java.lang.Object arg ) { extensions = org.ovirt.engine.core.extensions.mgr.ExtensionsManager.getInstance ( ) . getProvidedExtensions ( org.ovirt.engine.api.extensions.logger.Logger.class . getName ( ) ) ; }

Target:
public void update ( java.util.Observable o , java.lang.Object arg ) { extensions = org.ovirt.engine.core.utils.extensionsmgr.EngineExtensionsManager.getInstance ( ) . getExtensionsByService ( org.ovirt.engine.api.extensions.logger.Logger.class . getName ( ) ) ; }
Source:
private void initGraphicsData ( ) { org.ovirt.engine.core.bll.ImportUtils.updateGraphicsDevices ( getVm ( ) . getStaticData ( ) , org.ovirt.engine.core.bll.ImportVmCommand.getVdsGroup ( ) . getCompatibilityVersion ( ) ) ; }

Target:
private void initGraphicsData ( ) { org.ovirt.engine.core.bll.ImportUtils.updateGraphicsDevices ( getVm ( ) . getStaticData ( ) , org.ovirt.engine.core.bll.ImportVmCommand.getEffectiveCompatibilityVersion ( ) ) ; }
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 ; }
Source:
public org.ovirt.engine.core.common.businessentities.LdapRefStatus getAdStatus ( ) { if ( ( getstatus ( ) ) == 0 ) { return LdapRefStatus.Inactive ; } return LdapRefStatus.Active ; }

Target:
public void setStatus ( int value ) { status = value ; }
Source:
private void setupNetworkDao ( ) { org.ovirt.engine.core.dao.NetworkDAO networkDaoMock = org.mockito.Mockito.mock ( org.ovirt.engine.core.dao.NetworkDAO.class ) ; org.mockito.Mockito.when ( networkDaoMock.get ( networkId ) ) . thenReturn ( network ) ; org.mockito.Mockito.when ( getDbFacadeMockInstance ( ) . getNetworkDao ( ) ) . thenReturn ( networkDaoMock ) ; }

Target:
private void setupNetworkDao ( ) { org.ovirt.engine.core.dao.NetworkDao networkDaoMock = org.mockito.Mockito.mock ( org.ovirt.engine.core.dao.NetworkDao.class ) ; org.mockito.Mockito.when ( networkDaoMock.get ( networkId ) ) . thenReturn ( network ) ; org.mockito.Mockito.when ( getDbFacadeMockInstance ( ) . getNetworkDao ( ) ) . thenReturn ( networkDaoMock ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > createVolumeContainer ( java.lang.String sdUUID , java.lang.String imgGUID , java.lang.String size , int volFormat , int diskType , java.lang.String volUUID , java.lang.String descr , java.lang.String srcImgGUID , java.lang.String srcVolUUID ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > add_image_ticket ( java.lang.String ticketId , java.lang.String [ ] ops , long timeout , long size , java.lang.String url ) ;
Source:
public java.lang.String toString ( ) { if ( ! ( valid ) ) { return null ; } java.lang.String uri = new java.lang.String ( ) ; if ( ! ( scheme.isEmpty ( ) ) ) { uri += ( scheme ) + "://" ; } uri += authority.toString ( ) ; uri += path ; return uri ; }

Target:
public java.lang.String getStringRepresentation ( ) { if ( ! ( valid ) ) { return null ; } java.lang.String uri = "" ; if ( ! ( scheme.isEmpty ( ) ) ) { uri += ( scheme ) + "://" ; } uri += authority.getStringRepresentation ( ) ; uri += path ; return uri ; }
Source:
public void testGetWithVMOnWrongStorageDomainId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.OvfEntityData > ovfEntityDataList = dao.getByEntityIdAndStorageDomain ( FixturesTool.UNREGISTERED_VM , FixturesTool.STORAGE_DOMAIN_NFS2_2 ) ; org.junit.Assert.assertTrue ( "VM should not exists in the UnregisteredOVFData for the specific Storage Domain" , ovfEntityDataList.isEmpty ( ) ) ; }

Target:
public void testGetWithVMOnWrongStorageDomainId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.OvfEntityData > ovfEntityDataList = dao.getByEntityIdAndStorageDomain ( FixturesTool.UNREGISTERED_VM , FixturesTool.STORAGE_DOMAIN_NFS2_2 ) ; org.junit.jupiter.api.Assertions.assertTrue ( ovfEntityDataList.isEmpty ( ) , "VM should not exists in the UnregisteredOVFData for the specific Storage Domain" ) ; }
Source:
private void initInfoIcon ( org.ovirt.engine.ui.webadmin.ApplicationConstants constants ) { consoleAddressInfoIcon = new org.ovirt.engine.ui.common.widget.dialog.InfoIcon ( applicationTemplates.italicText ( constants.enableConsoleAddressOverrideHelpMessage ( ) ) , resources ) ; }

Target:
private void initInfoIcon ( org.ovirt.engine.ui.webadmin.ApplicationConstants constants ) { consoleAddressInfoIcon = new org.ovirt.engine.ui.common.widget.dialog.InfoIcon ( applicationTemplates.italicText ( constants.enableConsoleAddressOverrideHelpMessage ( ) ) , resources ) ; providerSearchInfoIcon = new org.ovirt.engine.ui.common.widget.dialog.InfoIcon ( applicationTemplates.italicText ( constants.providerSearchInfo ( ) ) , resources ) ; }
Source:
private void addVmDynamic ( ) { org.ovirt.engine.core.common.businessentities.VmDynamic tempVar = createVmDynamic ( ) ; org.ovirt.engine.core.bll.ImportVmCommandBase.getVmDynamicDAO ( ) . save ( tempVar ) ; org.ovirt.engine.core.bll.ImportVmCommandBase.getCompensationContext ( ) . snapshotNewEntity ( tempVar ) ; }

Target:
private void addVmDynamic ( ) { org.ovirt.engine.core.common.businessentities.VmDynamic tempVar = createVmDynamic ( ) ; org.ovirt.engine.core.bll.ImportVmCommandBase.getVmDynamicDao ( ) . save ( tempVar ) ; org.ovirt.engine.core.bll.ImportVmCommandBase.getCompensationContext ( ) . snapshotNewEntity ( tempVar ) ; }