auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testGetAllForStoragePoolWithPermissionsPrivilegedUser ( ) { org.ovirt.engine.core.compat.Guid storagePoolId = new org.ovirt.engine.core.compat.Guid ( "6d849ebf-755f-4552-ad09-9a090cda105d" ) ; java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllForStoragePool ( storagePoolId , org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , true ) ; org.ovirt.engine.core.dao.StorageDomainDaoTest.assertGetAllForStoragePoolResult ( result , storagePoolId ) ; }

Target:
public void testGetAllForStoragePoolWithPermissionsUnprivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllForStoragePool ( FixturesTool.STORAGE_POOL_NFS , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
private java.util.Collection < org.ovirt.engine.core.common.businessentities.DiskImage > getDisksBasedOnImage ( ) { if ( ( disksImages ) == null ) { disksImages = org.ovirt.engine.core.bll.ImagesHandler.filterEditableImageDisks ( org.ovirt.engine.core.bll.ExportVmCommand.getVm ( ) . getDiskMap ( ) . values ( ) ) ; } return disksImages ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > getDisksBasedOnImage ( ) { if ( ( disksImages ) == null ) { disksImages = org.ovirt.engine.core.bll.ImagesHandler.filterImageDisks ( org.ovirt.engine.core.bll.ExportVmCommand.getVm ( ) . getDiskMap ( ) . values ( ) , true , false ) ; } return disksImages ; }
Source:
protected org.ovirt.engine.api.model.Network addParents ( org.ovirt.engine.api.model.Network model ) { return org.ovirt.engine.api.restapi.resource.BackendNetworkHelper.addParents ( model ) ; }

Target:
public org.ovirt.engine.api.restapi.resource.BackendDataCenterNetworksResource getParent ( ) { return parent ; }
Source:
public void failCreateMoreNumaNodesThanVirtualCores ( ) { final org.ovirt.engine.core.bll.numa.vm.AddVmNumaNodesCommand command = mockedCommand ( ) ; vm.setNumOfSockets ( 1 ) ; vm.setCpuPerSocket ( 1 ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.VM_NUMA_NODE_MORE_NODES_THAN_CPUS ) ; }

Target:
public void canOnlyDoWithPinnedToHostPolicy ( ) { final org.ovirt.engine.core.bll.numa.vm.AddVmNumaNodesCommand command = mockedCommandWithVmFromDb ( ) ; vm.setMigrationSupport ( MigrationSupport.MIGRATABLE ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.ACTION_TYPE_FAILED_VM_NOT_PINNED_TO_HOST ) ; }
Source:
public java.lang.String getText ( org.ovirt.engine.core.common.businessentities.gluster.ServiceInfo entity ) { return java.lang.String.valueOf ( entity.getPort ( ) ) ; }

Target:
public java.lang.String getText ( org.ovirt.engine.core.common.businessentities.gluster.ServiceInfo entity ) { if ( ( entity.getPort ( ) ) > 0 ) { return java.lang.String.valueOf ( entity.getPort ( ) ) ; } else { return constants.notAvailableLabel ( ) ; } }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; org.mockito.Mockito.doReturn ( "config" ) . when ( getQuery ( ) ) . generateOvfConfig ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.VM.class ) ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; org.mockito.Mockito.doReturn ( "config" ) . when ( getQuery ( ) ) . generateOvfConfig ( org.mockito.ArgumentMatchers.any ( ) ) ; }
Source:
public void upperlimitLowerThanRealTime ( ) { mockQos ( generateValue ( ) , org.ovirt.engine.core.bll.validator.HostNetworkQosValidatorTest.LOW_BANDWIDTH , org.ovirt.engine.core.bll.validator.HostNetworkQosValidatorTest.HIGH_BANDWIDTH ) ; consistentValuesTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_HOST_NETWORK_QOS_INCONSISTENT_VALUES ) ) ; }

Target:
public void upperlimitLowerThanRealTime ( ) { mockQos ( generateValue ( ) , org.ovirt.engine.core.bll.validator.HostNetworkQosValidatorTest.LOW_BANDWIDTH , org.ovirt.engine.core.bll.validator.HostNetworkQosValidatorTest.HIGH_BANDWIDTH ) ; consistentValuesTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_HOST_NETWORK_QOS_INCONSISTENT_VALUES ) ) ; }
Source:
public void initTable ( ) { getTable ( ) . enableColumnResizing ( ) ; addGeneralTypeColumn ( ) ; addDeviceTypeColumn ( ) ; addAddressColumn ( ) ; addReadOnlyColumn ( ) ; addPluggedColumn ( ) ; addManagedColumn ( ) ; addSpecParamsColumn ( ) ; }

Target:
public void initTable ( ) { getTable ( ) . enableColumnResizing ( ) ; addGeneralTypeColumn ( ) ; addDeviceTypeColumn ( ) ; addAddressColumn ( ) ; addReadOnlyColumn ( ) ; addPluggedColumn ( ) ; addManagedColumn ( ) ; addSpecParamsColumn ( ) ; addHotUnplugColumn ( ) ; }
Source:
public void testCDAStoragePoolHasTasks ( ) { java.util.List < org.ovirt.engine.core.compat.Guid > tasks = java.util.Arrays.asList ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.mockito.Mockito.doReturn ( tasks ) . when ( asyncTaskDaoMock ) . getAsyncTaskIdsByStoragePoolId ( storagePoolId ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( "canDoAction did not fail on a Storage Pool with running tasks" , command , EngineMessage.CANNOT_FORCE_SELECT_SPM_STORAGE_POOL_HAS_RUNNING_TASKS ) ; }

Target:
public void testCDAStoragePoolHasTasks ( ) { java.util.List < org.ovirt.engine.core.compat.Guid > tasks = java.util.Arrays.asList ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.mockito.Mockito.doReturn ( tasks ) . when ( asyncTaskDaoMock ) . getAsyncTaskIdsByStoragePoolId ( storagePoolId ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( "validate did not fail on a Storage Pool with running tasks" , command , EngineMessage.CANNOT_FORCE_SELECT_SPM_STORAGE_POOL_HAS_RUNNING_TASKS ) ; }
Source:
public void setguest_cur_user_name ( java.lang.String value ) { this . mVmDynamic.setguest_cur_user_name ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "guest_cur_user_name" ) ) ; }

Target:
public void setRunOnVds ( org.ovirt.engine.core.compat.NGuid value ) { this . vmDynamic.setrun_on_vds ( value ) ; }
Source:
public void validateNonExternalStepFails ( ) { parameters.setJobId ( org.ovirt.engine.core.bll.EndExternalStepCommandTest.jobId ) ; parameters.setId ( org.ovirt.engine.core.bll.EndExternalStepCommandTest.nonExternalStepId ) ; org.junit.Assert.assertTrue ( ( ! ( command.validate ( ) ) ) ) ; }

Target:
public void validateNonExternalStepFails ( ) { parameters.setJobId ( org.ovirt.engine.core.bll.EndExternalStepCommandTest.jobId ) ; parameters.setId ( org.ovirt.engine.core.bll.EndExternalStepCommandTest.nonExternalStepId ) ; org.junit.jupiter.api.Assertions.assertTrue ( ( ! ( command.validate ( ) ) ) ) ; }
Source:
public static void setUpClass ( ) { try { org.ovirt.engine.core.config.EngineConfigPropertiesTest.pc = new org.apache.commons.configuration.PropertiesConfiguration ( org.ovirt.engine.core.config.EngineConfigPropertiesTest.PROPERTIES_PATH ) ; } catch ( org.apache.commons.configuration.ConfigurationException e ) { org.junit.Assert.fail ( java.lang.String.format ( ( "Failed to load configuration from the engine-config.properties.production.file " + "environment variable set to %s." ) , org.ovirt.engine.core.config.EngineConfigPropertiesTest.PROPERTIES_PATH ) ) ; } }

Target:
public static void setUpClass ( ) { try { org.ovirt.engine.core.config.EngineConfigPropertiesTest.pc = new org.apache.commons.configuration.PropertiesConfiguration ( org.ovirt.engine.core.config.EngineConfigPropertiesTest.PROPERTIES_PATH ) ; } catch ( org.apache.commons.configuration.ConfigurationException e ) { org.junit.jupiter.api.Assertions.fail ( java.lang.String.format ( ( "Failed to load configuration from the engine-config.properties.production.file " + "environment variable set to %s." ) , org.ovirt.engine.core.config.EngineConfigPropertiesTest.PROPERTIES_PATH ) ) ; } }
Source:
public void testLogReturnDoesntLogWhenNoAnnotation ( ) throws java.lang.Exception { org.ovirt.engine.core.utils.log.Log log = org.mockito.Mockito.mock ( org.ovirt.engine.core.utils.log.Log.class ) ; org.ovirt.engine.core.utils.log.LoggedUtils.logReturn ( log , "" , new java.lang.Object ( ) , new java.lang.Object ( ) ) ; org.mockito.Mockito.verifyZeroInteractions ( log ) ; }

Target:
public void testLogReturnDoesntLogWhenNoAnnotation ( ) throws java.lang.Exception { org.slf4j.Logger log = org.mockito.Mockito.mock ( org.slf4j.Logger.class ) ; org.ovirt.engine.core.utils.log.LoggedUtils.logReturn ( log , "" , new java.lang.Object ( ) , new java.lang.Object ( ) ) ; org.mockito.Mockito.verifyZeroInteractions ( log ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.storage.CinderDisk getDisk ( ) { if ( ( disk ) == null ) { disk = ( ( org.ovirt.engine.core.common.businessentities.storage.CinderDisk ) ( org.ovirt.engine.core.bll.storage.CreateCinderSnapshotCommand.getDiskDao ( ) . get ( org.ovirt.engine.core.bll.storage.CreateCinderSnapshotCommand.getImageId ( ) ) ) ) ; } return disk ; }

Target:
protected org.ovirt.engine.core.common.businessentities.storage.CinderDisk getDisk ( ) { if ( ( disk ) == null ) { disk = ( ( org.ovirt.engine.core.common.businessentities.storage.CinderDisk ) ( org.ovirt.engine.core.bll.storage.CreateCinderSnapshotCommand.getDiskImageDao ( ) . get ( org.ovirt.engine.core.bll.storage.CreateCinderSnapshotCommand.getImageId ( ) ) ) ) ; } return disk ; }
Source:
public void setvmt_description ( java.lang.String value ) { this . vmt_descriptionField = value ; }

Target:
public int getVmtCpuPerSocket ( ) { return this . vmtCpuPerSocket ; }
Source:
public void getVdsGroupIdDefault ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; final org.ovirt.engine.core.compat.Guid g = b.getVdsGroupId ( ) ; org.junit.Assert.assertEquals ( Guid.Empty , g ) ; }

Target:
public void getClusterIdDefault ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; final org.ovirt.engine.core.compat.Guid g = b.getClusterId ( ) ; org.junit.Assert.assertEquals ( Guid.Empty , g ) ; }
Source:
protected boolean canDoAction ( ) { return ( validate ( networkClusterAttachmentExists ( ) ) ) && ( validateAttachment ( ) ) ; }

Target:
protected boolean canDoAction ( ) { return ( validate ( networkClusterAttachmentExists ( ) ) ) && ( org.ovirt.engine.core.bll.network.cluster.UpdateNetworkOnClusterCommand.validateAttachment ( ) ) ; }
Source:
public java.lang.String getTime ( ) { return this . time ; }

Target:
public java.lang.String getType ( ) { return this . type ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.VMListReturnForXmlRpc getExternalVmList ( java.lang.String uri , java.lang.String username , java.lang.String password ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.VMListReturnForXmlRpc getExternalVmList ( java.lang.String uri , java.lang.String username , java.lang.String password , java.util.List < java.lang.String > vmsNames ) ;
Source:
protected org.ovirt.engine.core.common.action.VdcReturnValueBase runInternalAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( actionType , parameters ) ; }

Target:
protected java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runInternalMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters ) { return getBackend ( ) . runInternalMultipleActions ( actionType , parameters , context.clone ( ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) . intValue ( ) : 0 ; }

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.StoragePool > ) ( source ) ) : null ; }
Source:
public void setStaticData ( org.ovirt.engine.core.common.businessentities.VmStatic value ) { if ( ( vmStatic ) == null ) { vmStatic = new org.ovirt.engine.core.common.businessentities.VmStatic ( ) ; } vmStatic = value ; }

Target:
public long getDbGeneration ( ) { return vmStatic.getDbGeneration ( ) ; }
Source:
public void putEvent ( org.ovirt.vdsm.jsonrpc.client.JsonRpcEvent event ) { this . events.addFirst ( event ) ; }

Target:
public void putEvent ( org.ovirt.vdsm.jsonrpc.client.JsonRpcEvent event ) { try ( org.ovirt.vdsm.jsonrpc.client.utils.LockWrapper wrapper = new org.ovirt.vdsm.jsonrpc.client.utils.LockWrapper ( this . lock ) ) { this . events.addFirst ( event ) ; } }
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.setcompatibility_version ( Version.v3_1 ) ; return vdsGroup ; }

Target:
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 ; }
Source:
public void setName ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( name , value ) ) ) { name = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Name" ) ) ; } }

Target:
public void setName ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( name , value ) ) ) { name = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Name" ) ) ; } }
Source:
private boolean isManagementOriginally ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel clusterNetworkModel ) { return ( ( clusterNetworkModel.getOriginalNetworkCluster ( ) ) != null ) && ( clusterNetworkModel.getOriginalNetworkCluster ( ) . isManagement ( ) ) ; }

Target:
private boolean isRoleSet ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel clusterNetworkModel ) { final org.ovirt.engine.core.common.businessentities.network.NetworkCluster originalNetworkCluster = clusterNetworkModel.getOriginalNetworkCluster ( ) ; return ( originalNetworkCluster != null ) && ( isRoleSet ( originalNetworkCluster ) ) ; }
Source:
protected void executeQueryCommand ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Permission > perms = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getPermissionDao ( ) . getAllForEntity ( MultiLevelAdministrationHandler.SYSTEM_OBJECT_ID ) ; org.ovirt.engine.core.bll.GetSystemPermissionsQuery.getQueryReturnValue ( ) . setReturnValue ( perms ) ; }

Target:
protected void executeQueryCommand ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Permission > perms = permissionDao.getAllForEntity ( MultiLevelAdministrationHandler.SYSTEM_OBJECT_ID ) ; org.ovirt.engine.core.bll.GetSystemPermissionsQuery.getQueryReturnValue ( ) . setReturnValue ( perms ) ; }
Source:
java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , boolean isRunOnlyIfAllCanDoPass , boolean waitForResult ) ;

Target:
java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , boolean isRunOnlyIfAllValidationPass , boolean waitForResult ) ;
Source:
private org.ovirt.engine.core.common.businessentities.VM initializeMock ( final int domainSizeGB , final int sizeRequired ) { mockVmTemplateDAOReturnVmTemplate ( ) ; mockDiskImageDAOGetSnapshotById ( ) ; mockStorageDomainDAOGetForStoragePool ( domainSizeGB ) ; mockStorageDomainDAOGet ( domainSizeGB ) ; mockConfig ( ) ; org.ovirt.engine.core.common.businessentities.VM vm = org.ovirt.engine.core.bll.AddVmCommandTest.createVm ( ) ; return vm ; }

Target:
private org.ovirt.engine.core.common.businessentities.VM initializeMock ( final int domainSizeGB , final int sizeRequired ) { mockVmTemplateDaoReturnVmTemplate ( ) ; mockDiskImageDaoGetSnapshotById ( ) ; mockStorageDomainDaoGetForStoragePool ( domainSizeGB ) ; mockStorageDomainDaoGet ( domainSizeGB ) ; mockConfig ( ) ; org.ovirt.engine.core.common.businessentities.VM vm = org.ovirt.engine.core.bll.AddVmCommandTest.createVm ( ) ; return vm ; }
Source:
public void testFindDefaultManagementNetworkNotFound ( ) { final org.ovirt.engine.core.common.businessentities.network.Network actual = underTest.findDefaultManagementNetwork ( org.ovirt.engine.core.bll.network.cluster.DefaultManagementNetworkFinderImplTest.TEST_DC_ID ) ; org.junit.Assert.assertNull ( actual ) ; }

Target:
public void testFindDefaultManagementNetworkNotFound ( ) { final org.ovirt.engine.core.common.businessentities.network.Network actual = underTest.findDefaultManagementNetwork ( org.ovirt.engine.core.bll.network.cluster.DefaultManagementNetworkFinderImplTest.TEST_DC_ID ) ; org.junit.jupiter.api.Assertions.assertNull ( actual ) ; }
Source:
protected org.ovirt.engine.core.common.action.VdcReturnValueBase runInternalAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , org.ovirt.engine.core.bll.context.CommandContext context ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( actionType , parameters , context ) ; }

Target:
protected org.ovirt.engine.core.common.action.VdcReturnValueBase runInternalAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , org.ovirt.engine.core.bll.context.CommandContext internalCommandContext ) { return getBackend ( ) . runInternalAction ( actionType , parameters , internalCommandContext ) ; }
Source:
protected void removeAllInBatch ( java.lang.String procedureName , java.util.Collection < T > paramValues , org.ovirt.engine.core.dal.dbbroker.MapSqlParameterMapper < T > mapper ) { org.ovirt.engine.core.dao.MassOperationsGenericDaoDbFacade.getCallsHandler ( ) . executeStoredProcAsBatch ( ( procedureName == null ? org.ovirt.engine.core.dao.MassOperationsGenericDaoDbFacade.getProcedureNameForRemove ( ) : procedureName ) , paramValues , mapper ) ; }

Target:
protected void removeAllInBatch ( java.lang.String procedureName , java.util.Collection < T > paramValues , org.ovirt.engine.core.dal.dbbroker.MapSqlParameterMapper < T > mapper ) { org.ovirt.engine.core.dao.MassOperationsGenericDao.getCallsHandler ( ) . executeStoredProcAsBatch ( ( procedureName == null ? org.ovirt.engine.core.dao.MassOperationsGenericDao.getProcedureNameForRemove ( ) : procedureName ) , paramValues , mapper ) ; }
Source:
public void finished ( org.ovirt.engine.ui.uicommonweb.builders.TestingFrontendModel frontendModel , org.ovirt.engine.ui.uicommonweb.builders.TestingBackendModel backendModel ) { org.junit.Assert.assertThat ( frontendModel , org.hamcrest.core.Is.is ( org.hamcrest.core.IsEqual.equalTo ( new org.ovirt.engine.ui.uicommonweb.builders.TestingFrontendModel ( prop1 , prop2 ) ) ) ) ; }

Target:
public void finished ( org.ovirt.engine.ui.uicommonweb.builders.TestingFrontendModel frontendModel , org.ovirt.engine.ui.uicommonweb.builders.TestingBackendModel backendModel ) { org.hamcrest.MatcherAssert.assertThat ( frontendModel , org.hamcrest.core.Is.is ( org.hamcrest.core.IsEqual.equalTo ( new org.ovirt.engine.ui.uicommonweb.builders.TestingFrontendModel ( prop1 , prop2 ) ) ) ) ; }
Source:
public void dataCenterExists ( ) throws java.lang.Exception { org.junit.Assert.assertEquals ( ValidationResult.VALID , validator.dataCenterExists ( ) ) ; }

Target:
public void dataCenterExists ( ) throws java.lang.Exception { org.junit.Assert.assertThat ( validator.dataCenterExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void validNetworkWhenPortMirroring ( ) throws java.lang.Exception { portMirroringTest ( ValidationResult.VALID , "net" , true ) ; }

Target:
public void nullNetworkNameWhenUnlinkingSupported ( ) throws java.lang.Exception { networkNameTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , true , null ) ; }
Source:
public void testStorageDomainForMemoryIsNotValidWhenItHasNoSpaceForClonedDisks ( ) { org.mockito.Mockito.when ( storageDomainValidator.hasSpaceForClonedDisks ( disksList ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN ) ) ; org.junit.Assert.assertFalse ( filter.getPredicate ( disksList ) . eval ( storageDomain ) ) ; }

Target:
public void testStorageDomainForMemoryIsNotValidWhenItHasNoSpaceForClonedDisks ( ) { org.mockito.Mockito.when ( storageDomainValidator.hasSpaceForClonedDisks ( memoryDisks ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN ) ) ; org.junit.Assert.assertFalse ( filter.getPredicate ( memoryDisks ) . eval ( storageDomain ) ) ; }
Source:
private static boolean hasSnappableDisks ( org.ovirt.engine.core.common.businessentities.VM vm ) { return ! ( vm.getImages ( ) . isEmpty ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.Snapshot addActiveSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId ) { return new org.ovirt.engine.core.bll.snapshots.SnapshotsManager ( ) . addActiveSnapshot ( snapshotId , getVm ( ) , getCompensationContext ( ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.VMListReturnForXmlRpc list ( java.lang.String isFull , java.lang.String [ ] vmIds ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.QemuImageInfoReturn getQemuImageInfo ( java.lang.String sdUUID , java.lang.String spUUID , java.lang.String imgUUID , java.lang.String volUUID ) ;
Source:
protected org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator getStorageDomainValidator ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { return new org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator ( storageDomain ) ; }

Target:
protected java.util.List < ? extends org.ovirt.engine.core.bll.memory.sdfilters.StorageDomainFilter > getStorageDomainFilters ( ) { return java.util.Arrays.asList ( new org.ovirt.engine.core.bll.memory.sdfilters.StorageDomainStatusFilter ( ) , new org.ovirt.engine.core.bll.memory.sdfilters.StorageDomainTypeFilter ( ) , new org.ovirt.engine.core.bll.memory.sdfilters.StorageDomainSpaceRequirementsFilter ( ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult diskProfileIsSet ( ) { return ( getDiskProfile ( ) ) == null ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_PROFILE_NOT_EXISTS ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StorageDomain getStorageDomain ( ) { if ( ( storageDomain ) == null ) { storageDomain = getDbFacade ( ) . getStorageDomainDao ( ) . get ( getProfile ( ) . getStorageDomainId ( ) ) ; } return storageDomain ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createBond ( java.lang.String name , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , name , true , null , null , networkName , true ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createNic ( java.lang.String nicName , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , nicName , false , null , null , networkName , true , null ) ; }
Source:
protected org.springframework.jdbc.core.namedparam.MapSqlParameterSource createFullParametersMapper ( org.ovirt.engine.core.common.businessentities.DiskLunMap entity ) { return createIdParameterMapper ( entity.getId ( ) ) ; }

Target:
protected org.springframework.jdbc.core.namedparam.MapSqlParameterSource createFullParametersMapper ( org.ovirt.engine.core.common.businessentities.storage.DiskLunMap entity ) { return createIdParameterMapper ( entity.getId ( ) ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.core.common.businessentities.DiskImage object ) { return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromSafeConstant ( constants.importAllocationModifiedCollapse ( ) ) ; }

Target:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.core.common.businessentities.storage.DiskImage object ) { return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromSafeConstant ( org.ovirt.engine.ui.webadmin.section.main.view.popup.storage.backup.ImportVmFromExportDomainPopupView.constants.importAllocationModifiedCollapse ( ) ) ; }
Source:
public void testBadGuid ( ) { try { new org.ovirt.engine.api.restapi.resource.BackendPermissionResource ( "foo" , null , null , null ) ; org.junit.Assert.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testBadGuid ( ) { try { new org.ovirt.engine.api.restapi.resource.BackendPermissionResource ( "foo" , null , null , null ) ; org.junit.jupiter.api.Assertions.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }
Source:
private void updateVolumeFormat ( org.ovirt.engine.core.common.businessentities.VolumeType volumeType , org.ovirt.engine.core.common.businessentities.StorageType storageType ) { setVolumeFormat ( org.ovirt.engine.ui.uicommonweb.DataProvider.GetDiskVolumeFormat ( volumeType , storageType ) ) ; }

Target:
private void updateVolumeFormat ( org.ovirt.engine.core.common.businessentities.VolumeType volumeType , org.ovirt.engine.core.common.businessentities.StorageType storageType ) { setVolumeFormat ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.GetDiskVolumeFormat ( volumeType , storageType ) ) ; }
Source:
public void testUpdateFieldsQutoaDefault ( ) { vm.setIsQuotaDefault ( true ) ; vmStatic.setIsQuotaDefault ( false ) ; org.junit.Assert.assertTrue ( "Quota default should be updatable" , command.areUpdatedFieldsLegal ( ) ) ; }

Target:
public void testUpdateFieldsQutoaDefault ( ) { vm.setIsQuotaDefault ( true ) ; vmStatic.setIsQuotaDefault ( false ) ; junit.framework.Assert.assertTrue ( "Quota default should be updatable" , command.areUpdatedFieldsLegal ( ) ) ; }
Source:
public static java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getGraphicsDevices ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.dao.getVmDeviceByVmIdAndType ( vmId , VmDeviceGeneralType.GRAPHICS ) ; }

Target:
public static boolean hasMemoryBalloon ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.vmDeviceDao.isMemBalloonEnabled ( vmId ) ; }
Source:
public void testSelfMapper ( ) { org.ovirt.engine.api.restapi.types.Mapper < org.ovirt.engine.api.restapi.test.mappers.api.IFoo , org.ovirt.engine.api.restapi.test.mappers.api.IFoo > mapper = mappingLocator.getMapper ( org.ovirt.engine.api.restapi.test.mappers.api.IFoo.class , org.ovirt.engine.api.restapi.test.mappers.api.IFoo.class ) ; org.junit.Assert.assertNull ( mapper ) ; }

Target:
public void testSelfMapper ( ) { org.ovirt.engine.api.restapi.types.Mapper < org.ovirt.engine.api.restapi.test.mappers.api.IFoo , org.ovirt.engine.api.restapi.test.mappers.api.IFoo > mapper = mappingLocator.getMapper ( org.ovirt.engine.api.restapi.test.mappers.api.IFoo.class , org.ovirt.engine.api.restapi.test.mappers.api.IFoo.class ) ; org.junit.jupiter.api.Assertions.assertNull ( mapper ) ; }
Source:
public java.lang.String getName ( ) { return this . name ; }

Target:
public int getmaster_domain_version ( ) { return masterDomainVersion ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc sendHcCmdToDesktop ( java.lang.String vmId , java.lang.String hcCommand ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc snapshot ( java.lang.String vmId , java.util.Map < java.lang.String , java.lang.String > [ ] disks ) ;
Source:
protected org.ovirt.engine.core.common.action.VdcReturnValueBase runInternalAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( actionType , parameters ) ; }

Target:
protected org.ovirt.engine.core.common.action.VdcReturnValueBase runInternalAction ( org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , org.ovirt.engine.core.bll.context.CommandContext internalCommandContext ) { return getBackend ( ) . runInternalAction ( actionType , parameters , internalCommandContext ) ; }
Source:
private void setUpGetEntityExpectations ( ) { setUpEntityQueryExpectations ( VdcQueryType.GetAllDisksByVmId , org.ovirt.engine.core.common.queries.GetAllDisksByVmIdParameters.class , new java.lang.String [ ] { "VmId" } , new java.lang.Object [ ] { PARENT_ID } , getEntityList ( ) ) ; }

Target:
private void setUpGetEntityExpectations ( ) { setUpEntityQueryExpectations ( VdcQueryType.GetAllDisksByVmId , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { PARENT_ID } , getEntityList ( ) ) ; }
Source:
public static void updateAllDiskImageSnapshotsStatusWithCompensation ( final org.ovirt.engine.core.compat.Guid diskId , final org.ovirt.engine.core.common.businessentities.ImageStatus status , org.ovirt.engine.core.common.businessentities.ImageStatus statusForCompensation , final org.ovirt.engine.core.bll.context.CompensationContext compensationContext ) { org.ovirt.engine.core.bll.ImagesHandler.updateAllDiskImagesSnapshotsStatusInTransactionWithCompensation ( java.util.Collections.singletonList ( diskId ) , status , statusForCompensation , compensationContext ) ; }

Target:
public static void updateAllDiskImageSnapshotsStatusWithCompensation ( final org.ovirt.engine.core.compat.Guid diskId , final org.ovirt.engine.core.common.businessentities.storage.ImageStatus status , org.ovirt.engine.core.common.businessentities.storage.ImageStatus statusForCompensation , final org.ovirt.engine.core.bll.context.CompensationContext compensationContext ) { org.ovirt.engine.core.bll.ImagesHandler.updateAllDiskImagesSnapshotsStatusInTransactionWithCompensation ( java.util.Collections.singletonList ( diskId ) , status , statusForCompensation , compensationContext ) ; }
Source:
private static org.ovirt.engine.core.bll.ValidationResult createSnapshotExistsResult ( boolean snapshotExists ) { return snapshotExists ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_VM_SNAPSHOT_DOES_NOT_EXIST ) ; }

Target:
private static org.ovirt.engine.core.bll.ValidationResult createSnapshotExistsResult ( boolean snapshotExists ) { return snapshotExists ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_VM_SNAPSHOT_DOES_NOT_EXIST ) ; }
Source:
public org.ovirt.engine.sdk.entities.BaseDevices createBaseDevices ( ) { return new org.ovirt.engine.sdk.entities.BaseDevices ( ) ; }

Target:
public Boot.DevicesList createBootDevicesList ( ) { return new org.ovirt.engine.sdk.entities.Boot.DevicesList ( ) ; }
Source:
private void passwordSetChanged ( ) { java.lang.Boolean passwordChangable = ! ( getPasswordSet ( ) . getEntity ( ) ) ; getRootPassword ( ) . setIsChangable ( passwordChangable ) ; getRootPasswordVerification ( ) . setIsChangable ( passwordChangable ) ; }

Target:
private void cloudInitPasswordSetChanged ( ) { java.lang.Boolean passwordChangable = ! ( getCloudInitPasswordSet ( ) . getEntity ( ) ) ; getCloudInitRootPassword ( ) . setIsChangable ( passwordChangable ) ; getCloudInitRootPasswordVerification ( ) . setIsChangable ( passwordChangable ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc setVmTicket ( java.lang.String vmId , java.lang.String otp64 , java.lang.String sec , java.lang.String connectionAction , java.util.Map < java.lang.String , java.lang.String > params ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc snapshot ( java.lang.String vmId , java.util.Map < java.lang.String , java.lang.String > [ ] disks , java.lang.String memory , boolean frozen ) ;
Source:
private boolean needToUpdateMissingNicIds ( ) { for ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.DataFromHostSetupNetworksModel.LabelOnNic addedLabel : addedLabels ) { if ( ( addedLabel.getNicId ( ) ) == null ) { return true ; } } return false ; }

Target:
private boolean needToUpdateMissingNicIds ( ) { for ( org.ovirt.engine.core.common.businessentities.network.NicLabel addedLabel : addedLabels ) { if ( ( addedLabel.getNicId ( ) ) == null ) { return true ; } } return false ; }
Source:
public void testIsNetworkInSyncWhenIpv4BootProtocolNotStaticAddressDifferent ( ) throws java.lang.Exception { initIpv4ConfigurationBootProtocolAddress ( Ipv4BootProtocol.NONE , false ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testIsNetworkInSyncWhenIpv4GatewayBothNull ( ) { initIpv4ConfigurationStaticBootProtocol ( Ipv4BootProtocol.STATIC_IP ) ; ipv4Address.setGateway ( null ) ; iface.setIpv4Gateway ( null ) ; org.hamcrest.MatcherAssert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterGuideModel dataCenterGuideModel = ( ( org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterGuideModel ) ( result.getState ( ) ) ) ; dataCenterGuideModel.removeConnection = false ; dataCenterGuideModel.OnFinish ( dataCenterGuideModel.context , true , dataCenterGuideModel.storageModel ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterGuideModel dataCenterGuideModel = ( ( org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterGuideModel ) ( result.getState ( ) ) ) ; dataCenterGuideModel.removeConnection = false ; dataCenterGuideModel.onFinish ( dataCenterGuideModel.context , true , dataCenterGuideModel.storageModel ) ; }
Source:
public void setHeader ( com.google.gwt.user.client.ui.Widget widget ) { headerTitlePanel.setWidget ( widget ) ; updateHeaderContainerStyle ( ) ; }

Target:
public void setHeader ( com.google.gwt.user.client.ui.Widget widget ) { widget.addStyleName ( style.headerTitleFloat ( ) ) ; headerTitlePanel.insert ( widget , 0 ) ; }
Source:
public void testGetAllForRoleAndAdElementAndObjectWithInvalidRole ( ) { org.ovirt.engine.core.common.businessentities.Permission result = dao.getForRoleAndAdElementAndObject ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , org.ovirt.engine.core.dao.PermissionDaoTest.AD_ELEMENT_ID , org.ovirt.engine.core.dao.PermissionDaoTest.VM_ENTITY_ID ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetAllForRoleAndAdElementAndObjectWithInvalidRole ( ) { org.ovirt.engine.core.common.businessentities.Permission result = dao.getForRoleAndAdElementAndObject ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , org.ovirt.engine.core.dao.PermissionDaoTest.AD_ELEMENT_ID , org.ovirt.engine.core.dao.PermissionDaoTest.VM_ENTITY_ID ) ; org.junit.jupiter.api.Assertions.assertNull ( result ) ; }
Source:
protected void handleError ( ) { addCanDoActionMessage ( VdcBllMessages.VDS_FENCE_OPERATION_FAILED ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__HOST ) ; addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__RESTART ) ; log.errorFormat ( "Failed to run RestartVdsCommand on vds :{0}" , org.ovirt.engine.core.bll.RestartVdsCommand.getVdsName ( ) ) ; }

Target:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__RESTART ) ; }
Source:
public void OnSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel ) ( target ) ) ; model.maxSpmPriority = ( ( java.lang.Integer ) ( returnValue ) ) ; InitSpmPriorities1 ( ) ; }

Target:
public void ExecuteCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { Test ( ) ; }
Source:
private java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.api.model.Disk > queryVmDisksMap ( org.ovirt.engine.core.compat.Guid vmId ) { java.util.List < org.ovirt.engine.api.model.Disk > vmDisks = getBackendCollection ( org.ovirt.engine.api.model.Disk.class , VdcQueryType.GetAllDisksByVmId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( vmId ) ) ; return org.ovirt.engine.core.common.businessentities.Entities.businessEntitiesById ( vmDisks ) ; }

Target:
private java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.api.model.Disk > queryVmDisksMap ( org.ovirt.engine.core.compat.Guid vmId ) { java.util.List < org.ovirt.engine.api.model.Disk > vmDisks = getBackendCollection ( org.ovirt.engine.api.model.Disk.class , QueryType.GetAllDisksByVmId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( vmId ) ) ; return org.ovirt.engine.core.common.businessentities.Entities.businessEntitiesById ( vmDisks ) ; }
Source:
public java.lang.Integer getusage_network_percent ( ) { return this . mVmStatistics.getusage_network_percent ( ) ; }

Target:
public void setVmtMemSizeMb ( int value ) { this . vmtMemSizeMb = value ; }
Source:
public void updateVolumeStatus ( org.ovirt.engine.core.compat.Guid volumeId , org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeStatus status ) { getCallsHandler ( ) . executeModification ( "UpdateGlusterVolumeStatus" , createVolumeIdParams ( volumeId ) . addValue ( "status" , org.ovirt.engine.core.common.utils.EnumUtils.nameOrNull ( status ) ) ) ; }

Target:
public void updateVolumeStatus ( org.ovirt.engine.core.compat.Guid volumeId , org.ovirt.engine.core.common.businessentities.gluster.GlusterStatus status ) { getCallsHandler ( ) . executeModification ( "UpdateGlusterVolumeStatus" , createVolumeIdParams ( volumeId ) . addValue ( "status" , org.ovirt.engine.core.common.utils.EnumUtils.nameOrNull ( status ) ) ) ; }
Source:
protected org.ovirt.engine.core.common.utils.Pair < java.lang.Boolean , org.ovirt.engine.core.common.errors.EngineFault > runConnectionStorageToDomain ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.compat.Guid vdsId , int type ) { return runConnectionStorageToDomain ( storageDomain , vdsId , type , null , storageDomain.getStoragePoolId ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.utils.Pair < java.lang.Boolean , org.ovirt.engine.core.common.errors.EngineFault > runConnectionStorageToDomain ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.compat.Guid vdsId , int type ) { return runConnectionStorageToDomain ( storageDomain , vdsId , type , null , Guid.Empty ) ; }
Source:
public void cluster_SelectedItemChanged ( ) { updateDefaultHost ( ) ; updateCustomPropertySheet ( ) ; updateNumOfSockets ( ) ; updateQuotaByCluster ( vm.getQuotaId ( ) , vm.getQuotaName ( ) ) ; updateCpuPinningVisibility ( ) ; }

Target:
public void postDataCenterWithClusterSelectedItemChanged ( ) { updateDefaultHost ( ) ; updateCustomPropertySheet ( ) ; updateNumOfSockets ( ) ; updateQuotaByCluster ( vm.getQuotaId ( ) , vm.getQuotaName ( ) ) ; updateCpuPinningVisibility ( ) ; initNetworkInterfaces ( ) ; }
Source:
protected void selectionChanged ( java.lang.Boolean value ) { for ( org.ovirt.engine.ui.uicommonweb.models.hosts.VfsConfigNetwork vfsConfigNetwork : getNetworksTableItems ( ) ) { if ( canEditAssign ( vfsConfigNetwork ) ) { vfsConfigNetwork.setAttached ( value ) ; } } refreshNetworksTable ( ) ; }

Target:
protected void selectionChanged ( java.lang.Boolean value ) { for ( org.ovirt.engine.ui.uicommonweb.models.hosts.VfsConfigNetwork vfsConfigNetwork : getNetworksTableItems ( ) ) { if ( ! ( vfsConfigNetwork.isAttachedViaLabel ( ) ) ) { vfsConfigNetwork.setAttached ( value ) ; } } refreshNetworksTable ( ) ; }
Source:
public static java.lang.Object getConfigValuePreConverted ( org.ovirt.engine.core.common.queries.ConfigurationValues configValue , java.lang.String version ) { org.ovirt.engine.core.compat.KeyValuePairCompat < org.ovirt.engine.core.common.queries.ConfigurationValues , java.lang.String > key = new org.ovirt.engine.core.compat.KeyValuePairCompat < org.ovirt.engine.core.common.queries.ConfigurationValues , java.lang.String > ( configValue , version ) ; return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.cachedConfigValuesPreConvert.get ( key ) ; }

Target:
public java.lang.Object getConfigValuePreConverted ( org.ovirt.engine.core.common.queries.ConfigurationValues configValue ) { org.ovirt.engine.core.compat.KeyValuePairCompat < org.ovirt.engine.core.common.queries.ConfigurationValues , java.lang.String > key = new org.ovirt.engine.core.compat.KeyValuePairCompat < org.ovirt.engine.core.common.queries.ConfigurationValues , java.lang.String > ( configValue , getDefaultConfigurationVersion ( ) ) ; return cachedConfigValuesPreConvert.get ( key ) ; }
Source:
org.ovirt.engine.core.common.vdscommands.VDSReturnValue RunVdsCommand ( org.ovirt.engine.core.common.vdscommands.VDSCommandType commandType , org.ovirt.engine.core.common.vdscommands.VDSParametersBase parameters ) ;

Target:
org.ovirt.engine.core.common.vdscommands.VDSReturnValue runVdsCommand ( org.ovirt.engine.core.common.vdscommands.VDSCommandType commandType , org.ovirt.engine.core.common.vdscommands.VDSParametersBase parameters ) ;
Source:
public void testDefaultRouteNonDefaultRouteNetworkIsIgnored ( ) { iface.setIpv4DefaultRoute ( true ) ; network.setDnsResolverConfiguration ( sampleDnsResolverConfiguration ) ; org.junit.Assert.assertThat ( createTestedInstance ( false , sampleDnsResolverConfiguration ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testDefaultRouteNonDefaultRouteNetwork ( ) { iface.setIpv4DefaultRoute ( true ) ; network.setDnsResolverConfiguration ( sampleDnsResolverConfiguration ) ; org.junit.Assert.assertThat ( createTestedInstance ( false , sampleDnsResolverConfiguration ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( false ) ) ; }
Source:
protected abstract void toggleGhost ( T value , V widget , boolean becomingGhost ) ;

Target:
protected void toggleGhost ( T value , V widget , boolean becomingGhost ) { setButtonsEnabled ( widget , ( ( ! becomingGhost ) && ( enabled ) ) ) ; }
Source:
protected void teardown ( ) { }

Target:
protected void teardown ( ) { org.ovirt.engine.core.bll.pm.StartVdsCommand.runSleepOnReboot ( ) ; }
Source:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.storage.ActivateStorageDomainCommand.getStorageDomainId ( ) . toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.STORAGE , VdcBllMessages.ACTION_TYPE_FAILED_OBJECT_LOCKED ) ) ; }

Target:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.storage.ActivateStorageDomainCommand.getStorageDomainId ( ) . toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.STORAGE , EngineMessage.ACTION_TYPE_FAILED_OBJECT_LOCKED ) ) ; }
Source:
public void formatStringTestNotEnoughParams ( ) { testMessages.addFallback ( DynamicMessageKey.VERSION_ABOUT , "This is version about: {0}.{1}.{2}" ) ; testMessages.formatString ( DynamicMessageKey.VERSION_ABOUT , "1.1.1" ) ; org.junit.Assert.fail ( "Should not get here" ) ; }

Target:
public void formatStringTestNotEnoughParams ( ) { testMessages.addFallback ( DynamicMessageKey.APPLICATION_TITLE , "Testing 123: {0}.{1}.{2}" ) ; testMessages.formatString ( DynamicMessageKey.APPLICATION_TITLE , "1.1.1" ) ; org.junit.Assert.fail ( "Should not get here" ) ; }
Source:
protected void verifyIfHostExistsToHandle404StatusCode ( ) { org.ovirt.engine.core.compat.Guid hostId = getHostId ( ) ; getEntity ( org.ovirt.engine.core.common.businessentities.VDS.class , VdcQueryType.GetVdsByVdsId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( hostId ) , hostId.toString ( ) , true ) ; }

Target:
protected void verifyIfHostExistsToHandle404StatusCode ( ) { org.ovirt.engine.core.compat.Guid hostId = getHostId ( ) ; getEntity ( org.ovirt.engine.core.common.businessentities.VDS.class , QueryType.GetVdsByVdsId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( hostId ) , hostId.toString ( ) , true ) ; }
Source:
public void testGetAllForStorageDomain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > result = dao.getAllForStorageDomain ( org.ovirt.engine.core.dao.VmDAOTest.STORAGE_DOMAIN_ID ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllRunningForVds ( ) { java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.VM > result = dao.getAllRunningByVds ( FixturesTool.VDS_RHEL6_NFS_SPM ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }
Source:
protected org.ovirt.engine.core.bll.validator.storage.MultipleStorageDomainsValidator createMultipleStorageDomainsValidator ( java.util.Collection < org.ovirt.engine.core.common.businessentities.storage.DiskImage > diskImages ) { return new org.ovirt.engine.core.bll.validator.storage.MultipleStorageDomainsValidator ( org.ovirt.engine.core.bll.storage.export.MoveOrCopyTemplateCommand.getStoragePoolId ( ) , org.ovirt.engine.core.bll.ImagesHandler.getAllStorageIdsForImageIds ( diskImages ) ) ; }

Target:
protected org.ovirt.engine.core.bll.validator.storage.MultipleStorageDomainsValidator createMultipleStorageDomainsValidator ( java.util.Collection < org.ovirt.engine.core.common.businessentities.storage.DiskImage > diskImages ) { return new org.ovirt.engine.core.bll.validator.storage.MultipleStorageDomainsValidator ( org.ovirt.engine.core.bll.storage.export.MoveOrCopyTemplateCommand.getStoragePoolId ( ) , org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.getAllStorageIdsForImageIds ( diskImages ) ) ; }