auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public static void isNextRunConfigurationChanged ( org.ovirt.engine.core.common.businessentities.VM original , org.ovirt.engine.core.common.businessentities.VM updated , org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetVmUpdatesOnNextRunExists , new org.ovirt.engine.core.common.queries.GetVmUpdatesOnNextRunExistsParameters ( original , updated ) , aQuery ) ; }

Target:
public static void isNextRunConfigurationChanged ( org.ovirt.engine.core.common.businessentities.VM original , org.ovirt.engine.core.common.businessentities.VM updated , org.ovirt.engine.core.common.action.VmManagementParametersBase updateVmParameters , org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetVmUpdatesOnNextRunExists , new org.ovirt.engine.core.common.queries.GetVmUpdatesOnNextRunExistsParameters ( original , updated , updateVmParameters ) , aQuery ) ; }
Source:
public void validateSucceeds ( ) { mockVdsWithOsVersion ( org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommandTest.VALID_OVIRT_VERSION ) ; org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters param = org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommandTest.createParameters ( ) ; org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand < org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters > command = createCommand ( param ) ; org.junit.Assert.assertTrue ( command.validate ( ) ) ; }

Target:
public void validateFailsIfHostDoesNotExists ( ) { org.mockito.Mockito.when ( vdsDao.get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( null ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_HOST_NOT_EXIST ) ; }
Source:
protected void executeCommand ( ) { }

Target:
protected org.ovirt.engine.core.bll.RolesCommandBase < org.ovirt.engine.core.common.action.RolesParameterBase > generateCommand ( ) { return org.mockito.Mockito.mock ( org.ovirt.engine.core.bll.RolesCommandBase.class , org.mockito.Mockito.withSettings ( ) . defaultAnswer ( Answers.CALLS_REAL_METHODS ) . useConstructor ( getParams ( ) , null ) ) ; }
Source:
protected java.lang.Integer getProgressValue ( org.ovirt.engine.core.common.businessentities.VDS object ) { return object.getvm_active ( ) ; }

Target:
protected java.lang.Integer getProgressValue ( org.ovirt.engine.core.common.businessentities.VDS object ) { return java.lang.Math.min ( object.getvm_active ( ) , 100 ) ; }
Source:
protected java.lang.String getProgressText ( org.ovirt.engine.core.common.businessentities.VDS object ) { int numOfActiveVMs = ( ( object.getvm_active ( ) ) != null ) ? object.getvm_active ( ) : 0 ; return numOfActiveVMs + " VMs" ; }

Target:
protected java.lang.String getProgressText ( org.ovirt.engine.core.common.businessentities.VDS object ) { int numOfActiveVMs = ( ( object.getvm_active ( ) ) != null ) ? object.getvm_active ( ) : 0 ; return org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getMessages ( ) . numberOfVmsForHostsLoad ( numOfActiveVMs ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.OneVmReturn changeFloppy ( java.lang.String vmId , java.lang.String imageLocation ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturn sealDisks ( java.lang.String templateId , java.lang.String jobId , java.lang.String storagePoolId , java.util.List < java.util.Map < java.lang.String , java.lang.Object > > images ) ;
Source:
public void setCpuOverCommitTimestamp ( java.util.Date value ) { mVdsDynamic.setcpu_over_commit_time_stamp ( value ) ; }

Target:
public void setCpuOverCommitTimestamp ( java.util.Date value ) { mVdsStatistics.setCpuOverCommitTimeStamp ( value ) ; }
Source:
public void testGetPluggedForMac ( ) throws java.lang.Exception { java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > result = dao.getPluggedForMac ( FixturesTool.MAC_ADDRESS ) ; for ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface vmNetworkInterface : result ) { assertEquals ( FixturesTool.MAC_ADDRESS , vmNetworkInterface.getMacAddress ( ) ) ; } }

Target:
public void testGetPluggedForMac ( ) throws java.lang.Exception { java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > result = dao.getPluggedForMac ( FixturesTool.MAC_ADDRESS ) ; for ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface vmNetworkInterface : result ) { org.junit.Assert.assertEquals ( FixturesTool.MAC_ADDRESS , vmNetworkInterface.getMacAddress ( ) ) ; } }
Source:
public javax.ws.rs.core.Response activate ( org.ovirt.engine.api.model.Action action ) { org.ovirt.engine.core.common.action.ActivateDeactivateVmNicParameters params = new org.ovirt.engine.core.common.action.ActivateDeactivateVmNicParameters ( guid , org.ovirt.engine.core.common.action.PlugAction.PLUG ) ; org.ovirt.engine.api.restapi.resource.BackendNicsResource parent = ( ( org.ovirt.engine.api.restapi.resource.BackendNicsResource ) ( collection ) ) ; params.setVmId ( parent.parentId ) ; return doAction ( VdcActionType.ActivateDeactivateVmNic , params , action ) ; }

Target:
public javax.ws.rs.core.Response deactivate ( org.ovirt.engine.api.model.Action action ) { org.ovirt.engine.api.model.NIC nic = get ( ) ; nic.setPlugged ( false ) ; update ( nic ) ; return actionSuccess ( action ) ; }
Source:
private static java.lang.String generateMetaDataDiskAlias ( java.lang.String vmName ) { return java.lang.String.format ( org.ovirt.engine.core.bll.memory.MemoryUtils.VM_META_DATA_DISK_ALIAS_PATTERN , vmName ) ; }

Target:
private static java.lang.String generateHibernationMetadataDiskAlias ( java.lang.String vmName ) { return java.lang.String.format ( org.ovirt.engine.core.bll.memory.MemoryUtils.VM_HIBERNATION_METADATA_DISK_ALIAS_PATTERN , vmName ) ; }
Source:
private java.util.List < org.ovirt.engine.api.model.PowerManagement > getPowerManagers ( org.ovirt.engine.api.model.Version version ) { return org.ovirt.engine.api.restapi.util.FenceOptionsParser.parse ( getFenceConfigurationValue ( java.lang.String.class , ConfigurationValues.VdsFenceOptionMapping , version ) , getConfigurationValueDefault ( java.lang.String.class , ConfigurationValues.VdsFenceOptionTypes ) , true ) ; }

Target:
private java.util.List < org.ovirt.engine.api.model.Agent > getPowerManagementAgents ( org.ovirt.engine.api.model.Version version ) { return org.ovirt.engine.api.restapi.util.FenceOptionsParser.parse ( getFenceConfigurationValue ( java.lang.String.class , ConfigurationValues.VdsFenceOptionMapping , version ) , getConfigurationValueDefault ( java.lang.String.class , ConfigurationValues.VdsFenceOptionTypes ) , true ) ; }
Source:
public void testCanDoActionPoolInMaintenance ( ) { getStoragePool ( ) . setstatus ( StoragePoolStatus.Maintenance ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , VdcBllMessages.ACTION_TYPE_FAILED_IMAGE_REPOSITORY_NOT_FOUND ) ; }

Target:
public void testCanDoActionPoolInMaintenance ( ) { getStoragePool ( ) . setStatus ( StoragePoolStatus.Maintenance ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , VdcBllMessages.ACTION_TYPE_FAILED_IMAGE_REPOSITORY_NOT_FOUND ) ; }
Source:
public void setPolarity ( org.ovirt.engine.core.common.scheduling.enums.AffinityPolarity polarity ) { this . polarity = polarity ; }

Target:
public void setEntityNames ( java.util.List < java.lang.String > entityNames ) { this . entityNames = entityNames ; }
Source:
protected void defineVmTemplate ( ) { if ( ( org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getParameters ( ) . getOperation ( ) ) == ( org.ovirt.engine.core.common.businessentities.ImageOperation.Copy ) ) { setVmTemplate ( getTemplateForImage ( ) ) ; } }

Target:
protected void defineVmTemplate ( ) { if ( ( org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getParameters ( ) . getOperation ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.ImageOperation.Copy ) ) { setVmTemplate ( getTemplateForImage ( ) ) ; } }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( commandId , phase , type , lastUpdated , message , vdsId , diskId , imagedTicketId , proxyUri , signedTicket , bytesSent , bytesTotal ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( commandId , phase , type , active , lastUpdated , message , vdsId , diskId , imagedTicketId , proxyUri , signedTicket , bytesSent , bytesTotal ) ; }
Source:
public static void persistCommand ( org.ovirt.engine.core.compat.Guid commandId , org.ovirt.engine.core.compat.Guid rootCommandId , org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase params , org.ovirt.engine.core.compat.CommandStatus status , boolean enableCallBack ) { org.ovirt.engine.core.bll.tasks.TaskManagerUtil.coco.persistCommand ( commandId , rootCommandId , actionType , params , status , enableCallBack ) ; }

Target:
public static void persistCommand ( org.ovirt.engine.core.common.businessentities.CommandEntity cmdEntity ) { org.ovirt.engine.core.bll.tasks.TaskManagerUtil.coco.persistCommand ( cmdEntity ) ; }
Source:
public void testRemoveNotFound ( ) throws java.lang.Exception { setUpEntityQueryExpectations ( true ) ; try { resource.remove ( ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testRemoveNotFound ( ) throws java.lang.Exception { setUpEntityQueryExpectations ( true ) ; try { resource.remove ( ) ; org.junit.Assert.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }
Source:
public void testGetById ( ) { org.ovirt.engine.core.common.businessentities.network.HostNicVfsConfig result = dao.get ( FixturesTool.HOST_NIC_VFS_CONFIG_ALL_NETWORKS_ALLOWED ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( FixturesTool.HOST_NIC_VFS_CONFIG_ALL_NETWORKS_ALLOWED , result.getId ( ) ) ; }

Target:
public void testGetById ( ) { org.ovirt.engine.core.common.businessentities.network.HostNicVfsConfig result = dao.get ( FixturesTool.HOST_NIC_VFS_CONFIG ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( FixturesTool.HOST_NIC_VFS_CONFIG , result.getId ( ) ) ; checkNetworksAndLabels ( result , 0 , 0 ) ; }
Source:
public void testAnyAdminRoleForUserAndGroups ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Role > result = dao.getAnyAdminRoleForUserAndGroups ( org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , org.ovirt.engine.core.dao.RoleDaoTest.GROUP_IDS , ApplicationMode.AllModes.getValue ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }

Target:
public void testAnyAdminRoleForUserAndGroups ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Role > result = dao.getAnyAdminRoleForUserAndGroups ( org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , org.ovirt.engine.core.dao.RoleDaoTest.GROUP_IDS , ApplicationMode.AllModes.getValue ( ) ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertFalse ( result.isEmpty ( ) ) ; }
Source:
public void setupCommand ( ) { initSpyCommand ( ) ; initStoragePool ( ) ; mockDaos ( ) ; }

Target:
public void setupCommand ( ) { initSpyCommand ( ) ; initStoragePool ( ) ; mockValidators ( ) ; }
Source:
public void vmHasPluggedDdeviceSnapshotsAttachedToOtherVms ( ) { prepareForVmValidatorTests ( ) ; org.mockito.Mockito.doReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_VM_DISK_SNAPSHOT_IS_ATTACHED_TO_ANOTHER_VM ) ) . when ( vmValidator ) . vmNotHavingDeviceSnapshotsAttachedToOtherVms ( false ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , VdcBllMessages.ACTION_TYPE_FAILED_VM_DISK_SNAPSHOT_IS_ATTACHED_TO_ANOTHER_VM ) ; }

Target:
public void vmHasPluggedDdeviceSnapshotsAttachedToOtherVms ( ) { prepareForVmValidatorTests ( ) ; org.mockito.Mockito.doReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_VM_DISK_SNAPSHOT_IS_ATTACHED_TO_ANOTHER_VM ) ) . when ( vmValidator ) . vmNotHavingDeviceSnapshotsAttachedToOtherVms ( false ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_VM_DISK_SNAPSHOT_IS_ATTACHED_TO_ANOTHER_VM ) ; }
Source:
public org.ovirt.engine.api.model.VmPools list ( ) { if ( isFiltered ( ) ) { return mapCollection ( getBackendCollection ( QueryType.GetAllVmPoolsAttachedToUser , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , SearchType.VmPools ) ) ; } else { return mapCollection ( getBackendCollection ( SearchType.VmPools ) ) ; } }

Target:
public org.ovirt.engine.api.model.VmPools list ( ) { if ( isFiltered ( ) ) { return mapCollection ( getBackendCollection ( QueryType.GetAllVmPoolsAttachedToUser , new org.ovirt.engine.core.common.queries.QueryParametersBase ( ) , SearchType.VmPools ) ) ; } else { return mapCollection ( getBackendCollection ( SearchType.VmPools ) ) ; } }
Source:
protected void executeCommand ( ) { log.infoFormat ( "ConnectDomainToStorage. Before Connect all hosts to pool. Time:{0}" , new java.util.Date ( ) ) ; org.ovirt.engine.core.bll.storage.ConnectDomainToStorageCommand.ConnectAllHostsToPool ( ) ; log.infoFormat ( "ConnectDomainToStorage. After Connect all hosts to pool. Time:{0}" , new java.util.Date ( ) ) ; }

Target:
protected void executeCommand ( ) { log.infoFormat ( "ConnectDomainToStorage. Before Connect all hosts to pool. Time:{0}" , new java.util.Date ( ) ) ; org.ovirt.engine.core.bll.storage.ConnectDomainToStorageCommand.connectAllHostsToPool ( ) ; log.infoFormat ( "ConnectDomainToStorage. After Connect all hosts to pool. Time:{0}" , new java.util.Date ( ) ) ; }
Source:
protected org.ovirt.engine.api.model.SSHPublicKey addParents ( org.ovirt.engine.api.model.SSHPublicKey pubkey ) { return parent.addParents ( pubkey ) ; }

Target:
protected org.ovirt.engine.api.model.SshPublicKey addParents ( org.ovirt.engine.api.model.SshPublicKey pubkey ) { return parent.addParents ( pubkey ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VmInterfaceType getRawValue ( org.ovirt.engine.core.common.businessentities.VmNetworkInterface object ) { return org.ovirt.engine.core.common.businessentities.VmInterfaceType.forValue ( object.getType ( ) ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.templates.TemplateGeneralModel getModel ( ) { return ( ( org.ovirt.engine.ui.uicommonweb.models.templates.TemplateGeneralModel ) ( object.getDetailModels ( ) . get ( 0 ) ) ) ; }
Source:
public javax.ws.rs.core.Response migrate ( org.ovirt.engine.api.model.Action action ) { validateParameters ( action , "bricks" ) ; validateBrickNames ( action ) ; org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters params = toParameters ( action ) ; return performAction ( VdcActionType.StartRemoveGlusterVolumeBricks , params , action , false ) ; }

Target:
public javax.ws.rs.core.Response activate ( org.ovirt.engine.api.model.Action action ) { return stopMigrate ( action ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { org.mockito.MockitoAnnotations.initMocks ( this ) ; jobRepository = new org.ovirt.engine.core.bll.job.JobRepositoryImpl ( jobDao , jobSubjectEntityDao , stepDao ) ; job = createJob ( ) ; mockDaos ( job ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { org.mockito.MockitoAnnotations.initMocks ( this ) ; jobRepository = new org.ovirt.engine.core.bll.job.JobRepositoryImpl ( jobDao , jobSubjectEntityDao , stepDao , stepSubjectEntityDao ) ; job = createJob ( ) ; mockDaos ( job ) ; }
Source:
public void testAddGroupFailure ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( ( ( "ADGROUP@" + ( DOMAIN ) ) + ": name=*" ) , SearchType.AdGroup , getAdGroup ( 0 ) ) ; control.replay ( ) ; org.ovirt.engine.api.model.Group model = new org.ovirt.engine.api.model.Group ( ) ; model.setName ( BAD_NAMES [ 0 ] ) ; try { javax.ws.rs.core.Response response = collection.add ( model ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { assertNotNull ( wae.getResponse ( ) ) ; assertEquals ( 404 , wae.getResponse ( ) . getStatus ( ) ) ; } }

Target:
public void testAddGroupWithImplicitDirectoryName ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( ( ( ( "ADGROUP@" + ( DOMAIN ) ) + ": allnames=" ) + ( org.ovirt.engine.api.restapi.resource.BackendGroupsResourceTest.GROUP_NAMES [ 0 ] ) ) , SearchType.AdGroup , getDirectoryGroup ( 0 ) ) ; setUpCreationExpectations ( VdcActionType.AddGroup , org.ovirt.engine.core.common.action.AddGroupParameters.class , new java.lang.String [ ] { "Group.id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , true , true , null , VdcQueryType.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.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:
public void clearFilterEntries ( ) { recipients.clear ( ) ; }

Target:
public void clearFilterEntries ( ) { notify.clear ( ) ; recipients.clear ( ) ; }
Source:
public void testInstanceTypes ( ) { testValidSql ( "instancetype: " , "SELECT * FROM ((SELECT instance_types_view.* FROM instance_types_view ) ORDER BY name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; }

Target:
public void testInstanceTypes ( ) { testValidSql ( "instancetype: " , "SELECT * FROM ((SELECT distinct instance_types_view.* FROM instance_types_view ) ORDER BY name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { context.hostCluster = ( ( org.ovirt.engine.core.common.businessentities.VDSGroup ) ( returnValue ) ) ; SetDefaultNames3 ( ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { context.hostCluster = ( ( org.ovirt.engine.core.common.businessentities.VDSGroup ) ( returnValue ) ) ; setDefaultNames3 ( ) ; }
Source:
public void testValidateNetworkExclusiveOnNicsTwoVmNetworksAttachedToInterface ( ) throws java.lang.Exception { checkVmNetworkIsSoleAssignedInterface ( failsWithNetworkInterfacesNotExclusivelyUsedByNetwork ( ) , vmNetwork1 , vmNetwork2 ) ; }

Target:
public void testValidateNetworkExclusiveOnNicsTwoVmNetworksAttachedToInterface ( ) throws java.lang.Exception { checkVmNetworkIsSoleAssignedInterface ( false , java.util.Arrays.asList ( NetworkType.VM , NetworkType.VM ) , vmNetwork1 , vmNetwork2 ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.HashMap < java.lang.String , java.util.List < java.lang.String > > ) ( source ) ) : new java.util.HashMap < java.lang.String , java.util.List < java.lang.String > > ( ) ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source != null ) { return source ; } return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.DiskImage > ( ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAllForVdsGroupWithoutMigrating ( org.ovirt.engine.core.compat.Guid id ) { return getCallsHandler ( ) . executeReadList ( "GetVdsWithoutMigratingVmsByVdsGroupId" , org.ovirt.engine.core.dao.VdsDAODbFacadeImpl.VdsRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "vds_group_id" , id ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAllForVdsGroupWithoutMigrating ( org.ovirt.engine.core.compat.Guid id ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > vdsList = getCallsHandler ( ) . executeReadList ( "GetVdsWithoutMigratingVmsByVdsGroupId" , org.ovirt.engine.core.dao.VdsDAODbFacadeImpl.VdsRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "vds_group_id" , id ) ) ; return uniteAgents ( vdsList ) ; }
Source:
private java.lang.String GetOptionType ( java.lang.String key ) { java.lang.String result = "" ; if ( ( org.apache.commons.lang.StringUtils.isNotEmpty ( key ) ) && ( org.ovirt.engine.core.utils.pm.VdsFenceOptions.fenceOptionTypes.containsKey ( key ) ) ) { result = org.ovirt.engine.core.utils.pm.VdsFenceOptions.fenceOptionTypes.get ( key ) ; } return result ; }

Target:
private java.lang.String getOptionType ( java.lang.String key ) { java.lang.String result = "" ; if ( ( org.apache.commons.lang.StringUtils.isNotEmpty ( key ) ) && ( org.ovirt.engine.core.utils.pm.VdsFenceOptions.fenceOptionTypes.containsKey ( key ) ) ) { result = org.ovirt.engine.core.utils.pm.VdsFenceOptions.fenceOptionTypes.get ( key ) ; } return result ; }
Source:
private static org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator mockStorageDomainValidatorWithSpace ( ) { org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator storageDomainValidator = org.ovirt.engine.core.bll.AddDiskCommandTest.mockStorageDomainValidator ( ) ; org.mockito.Mockito.when ( storageDomainValidator.hasSpaceForNewDisk ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.DiskImage.class ) ) ) . thenReturn ( ValidationResult.VALID ) ; return storageDomainValidator ; }

Target:
private static org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator mockStorageDomainValidatorWithSpace ( ) { org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator storageDomainValidator = org.ovirt.engine.core.bll.AddDiskCommandTest.mockStorageDomainValidator ( ) ; org.mockito.Mockito.when ( storageDomainValidator.hasSpaceForNewDisk ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.storage.DiskImage.class ) ) ) . thenReturn ( ValidationResult.VALID ) ; return storageDomainValidator ; }
Source:
protected org.ovirt.engine.core.common.businessentities.aaa.DbGroup getEntity ( int index ) { return new org.ovirt.engine.core.common.businessentities.aaa.DbGroup ( new org.ovirt.engine.core.aaa.DirectoryGroup ( DOMAIN , org.ovirt.engine.api.restapi.resource.aaa.BackendGroupsResourceTest.NAMESPACE , EXTERNAL_IDS [ index ] , org.ovirt.engine.api.restapi.resource.aaa.BackendGroupsResourceTest.GROUP_NAMES [ index ] ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.aaa.DbGroup getEntity ( int index ) { return new org.ovirt.engine.core.common.businessentities.aaa.DbGroup ( new org.ovirt.engine.core.aaa.DirectoryGroup ( DOMAIN , org.ovirt.engine.api.restapi.resource.aaa.BackendGroupsResourceTest.NAMESPACE , EXTERNAL_IDS [ index ] , org.ovirt.engine.api.restapi.resource.aaa.BackendGroupsResourceTest.GROUP_NAMES [ index ] , "" ) ) ; }
Source:
public static java.lang.Boolean hasSpiceSupport ( int osId , org.ovirt.engine.core.compat.Version version ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.spiceSupportMatrix.get ( osId ) . get ( version ) ; }

Target:
public static void getVmWatchdogTypes ( int osId , org.ovirt.engine.core.compat.Version version , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.OsRepository , new org.ovirt.engine.core.common.queries.OsQueryParameters ( org.ovirt.engine.core.common.queries.OsQueryParameters.OsRepositoryVerb.GetVmWatchdogTypes , osId , version ) , asyncQuery ) ; }
Source:
public void setuser_name ( java.lang.String value ) { this . username = value ; }

Target:
public void setuser_name ( java.lang.String value ) { this . username = org.ovirt.engine.core.common.businessentities.StorageServerConnections.getStringValueToSet ( value ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > call ( ) throws java.lang.Exception { updateHeartbeatPolicy ( false ) ; return new org.ovirt.engine.core.vdsbroker.jsonrpc.FutureMap ( client , request ) . withResponseKey ( "status" ) ; }

Target:
public java.util.Map < java.lang.String , java.lang.Object > call ( ) throws java.lang.Exception { updateHeartbeatPolicy ( policy.clone ( ) , false ) ; return new org.ovirt.engine.core.vdsbroker.jsonrpc.FutureMap ( client , request ) . withResponseKey ( "status" ) ; }
Source:
private org.ovirt.engine.core.bll.ValidationResult networkClusterAttachmentExists ( ) { return ( org.ovirt.engine.core.bll.network.cluster.UpdateNetworkOnClusterCommand.getNetworkClusterDAO ( ) . get ( getNetworkCluster ( ) . getId ( ) ) ) == null ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.NETWORK_NOT_EXISTS_IN_CURRENT_CLUSTER ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.NetworkCluster getOldNetworkCluster ( ) { if ( ( oldNetworkCluster ) == null ) { oldNetworkCluster = org.ovirt.engine.core.bll.network.cluster.UpdateNetworkOnClusterCommand.getNetworkClusterDAO ( ) . get ( getNetworkCluster ( ) . getId ( ) ) ; } return oldNetworkCluster ; }
Source:
public static java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageType > GetStoragePoolTypeList ( ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageType > ( java.util.Arrays.asList ( new org.ovirt.engine.core.common.businessentities.StorageType [ ] { org.ovirt.engine.core.common.businessentities.StorageType.NFS , org.ovirt.engine.core.common.businessentities.StorageType.ISCSI , org.ovirt.engine.core.common.businessentities.StorageType.FCP , org.ovirt.engine.core.common.businessentities.StorageType.LOCALFS , org.ovirt.engine.core.common.businessentities.StorageType.POSIXFS } ) ) ; }

Target:
public static java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageType > GetStoragePoolTypeList ( ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageType > ( java.util.Arrays.asList ( new org.ovirt.engine.core.common.businessentities.StorageType [ ] { org.ovirt.engine.core.common.businessentities.StorageType.NFS , org.ovirt.engine.core.common.businessentities.StorageType.ISCSI , org.ovirt.engine.core.common.businessentities.StorageType.FCP , org.ovirt.engine.core.common.businessentities.StorageType.LOCALFS , org.ovirt.engine.core.common.businessentities.StorageType.POSIXFS , org.ovirt.engine.core.common.businessentities.StorageType.GLUSTERFS } ) ) ; }
Source:
public void testIsInternalExecutionFalse ( ) { org.ovirt.engine.core.bll.QueriesCommandBase < ? > query = mockQuery ( ) ; query.setInternalExecution ( true ) ; query.setInternalExecution ( false ) ; org.junit.Assert.assertFalse ( "Query should not be marked for internal execution" , query.isInternalExecution ( ) ) ; }

Target:
public void testIsInternalExecutionFalse ( ) { org.ovirt.engine.core.bll.QueriesCommandBase < ? > query = mockQuery ( ) ; query.setInternalExecution ( true ) ; query.setInternalExecution ( false ) ; org.junit.jupiter.api.Assertions.assertFalse ( query.isInternalExecution ( ) , "Query should not be marked for internal execution" ) ; }
Source:
protected org.ovirt.engine.core.dao.StorageDomainStaticDAO getStorageDomainStaticDAO ( ) { org.ovirt.engine.core.dao.StorageDomainStaticDAO d = org.mockito.Mockito.mock ( org.ovirt.engine.core.dao.StorageDomainStaticDAO.class ) ; return d ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VM > getVmsFromExportDomain ( ) { return java.util.Collections.singletonList ( createVM ( ) ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VmNetworkInterface i ) { return i.getId ( ) . equals ( getInterface ( ) . getId ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface i ) { return i.getId ( ) . equals ( getInterface ( ) . getId ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.DisplayType extractDisplayType ( org.ovirt.engine.core.common.businessentities.VmBase vmBase ) { if ( vmBase instanceof org.ovirt.engine.core.common.businessentities.VmTemplate ) { return ( ( org.ovirt.engine.core.common.businessentities.VmTemplate ) ( vmBase ) ) . getDefaultDisplayType ( ) ; } return null ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.vms.instancetypes.InstanceTypeManager getInstanceTypeManager ( ) { return instanceTypeManager ; }
Source:
public void testRemoveNonExistant ( ) { setUpEntityQueryExpectations ( java.util.Collections.emptyList ( ) ) ; try { resource.remove ( ) ; org.junit.jupiter.api.Assertions.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testRemoveNonExistant ( ) { setUpEntityQueryExpectations ( java.util.Collections.emptyList ( ) ) ; verifyNotFoundException ( org.junit.jupiter.api.Assertions.assertThrows ( javax.ws.rs.WebApplicationException.class , ( ) -> org.ovirt.engine.api.restapi.resource.resource.remove ( ) ) ) ; }
Source:
public void statusSupportedForHostUpgrade ( ) { org.mockito.Mockito.when ( host.getStatus ( ) ) . thenReturn ( VDSStatus.Maintenance ) ; org.junit.Assert.assertThat ( validator.statusSupportedForHostUpgrade ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void maintenanceStatusIsSupportedForHostUpgrade ( ) { host.setStatus ( VDSStatus.Maintenance ) ; org.junit.Assert.assertThat ( validator.statusSupportedForHostUpgrade ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
protected java.util.HashSet < java.lang.String > getCommentExpressions ( ) { java.util.HashSet < java.lang.String > commentExpressions = new java.util.HashSet < > ( ) ; for ( java.lang.String s : org.ovirt.engine.core.searchbackend.PostgresSqlInjectionChecker.POSTGRES_SQL_COMMENT_INDICATORS ) { commentExpressions.add ( s ) ; } return commentExpressions ; }

Target:
protected java.util.Set < java.lang.String > getCommentExpressions ( ) { return org.ovirt.engine.core.searchbackend.PostgresSqlInjectionChecker.POSTGRES_SQL_COMMENT_INDICATORS ; }
Source:
public void passthroughNotChangedNotUsedByVms ( ) { passthroughNotChangedIfUsedByVmsTest ( false , false , true ) ; org.junit.Assert.assertThat ( validator.passthroughNotChangedIfUsedByVms ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void passthroughChangedNotUsedByVms ( ) { passthroughNotChangedIfUsedByVmsTest ( false , true , false ) ; org.hamcrest.MatcherAssert.assertThat ( validator.passthroughNotChangedIfUsedByVms ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void validateFails ( ) { cmd.setGlusterVolumeId ( stoppedVolumeId ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFails ( ) { cmd.setGlusterVolumeId ( stoppedVolumeId ) ; org.junit.jupiter.api.Assertions.assertFalse ( cmd.validate ( ) ) ; }
Source:
public void shouldDetectInvalidHostOsIdentifier ( ) { newHost1.setHostOs ( "which OS am I?" ) ; org.assertj.core.api.Assertions.assertThat ( validator.isUpgradePossible ( java.util.Arrays.asList ( newHost1 , newHost2 ) , java.util.Arrays.asList ( validVM ) ) ) . isNotEqualTo ( ValidationResult.VALID ) ; }

Target:
public void shouldDetectInvalidHostOsIdentifier ( ) { newHost1.setHostOs ( "which OS am I?" ) ; org.assertj.core.api.Assertions.assertThat ( validator.isUpgradePossible ( java.util.Arrays.asList ( newHost1 , newHost2 ) , java.util.Collections.singletonList ( validVM ) ) ) . isNotEqualTo ( ValidationResult.VALID ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.ArchitectureType getOsSection ( org.ovirt.engine.core.utils.ovf.xml.XmlDocument xmlDocument ) { org.ovirt.engine.core.common.businessentities.ArchitectureType archType = null ; org.ovirt.engine.core.utils.ovf.xml.XmlNode content = xmlDocument.SelectSingleNode ( "//*/Content" ) ; org.ovirt.engine.core.utils.ovf.xml.XmlNodeList nodeList = content.SelectNodes ( "Section" ) ; org.ovirt.engine.core.utils.ovf.xml.XmlNode selectedSection = null ; org.ovirt.engine.core.common.osinfo.OsRepository osRepository = org.ovirt.engine.core.common.utils.SimpleDependecyInjector.getInstance ( ) . get ( org.ovirt.engine.core.common.osinfo.OsRepository.class ) ; if ( nodeList != null ) { for ( org.ovirt.engine.core.utils.ovf.xml.XmlNode section : nodeList ) { java.lang.String value = section.attributes.get ( "xsi:type" ) . getValue ( ) ; if ( value.equals ( "ovf:OperatingSystemSection_Type" ) ) { selectedSection = section ; break ; } } if ( selectedSection != null ) { int osId = osRepository.getOsIdByUniqueName ( selectedSection.innerText ) ; archType = osRepository.getArchitectureFromOS ( osId ) ; } } return archType ; }

Target:
private static org.ovirt.engine.core.common.businessentities.ArchitectureType getOsSection ( org.ovirt.engine.core.utils.ovf.xml.XmlDocument xmlDocument ) { org.ovirt.engine.core.common.businessentities.ArchitectureType archType = null ; org.ovirt.engine.core.utils.ovf.xml.XmlNode content = xmlDocument.selectSingleNode ( "//*/Content" ) ; org.ovirt.engine.core.utils.ovf.xml.XmlNodeList nodeList = content.selectNodes ( "Section" ) ; org.ovirt.engine.core.utils.ovf.xml.XmlNode selectedSection = null ; org.ovirt.engine.core.common.osinfo.OsRepository osRepository = org.ovirt.engine.core.common.utils.SimpleDependencyInjector.getInstance ( ) . get ( org.ovirt.engine.core.common.osinfo.OsRepository.class ) ; if ( nodeList != null ) { for ( org.ovirt.engine.core.utils.ovf.xml.XmlNode section : nodeList ) { java.lang.String value = section.attributes.get ( "xsi:type" ) . getValue ( ) ; if ( value.equals ( "ovf:OperatingSystemSection_Type" ) ) { selectedSection = section ; break ; } } if ( selectedSection != null ) { int osId = osRepository.getOsIdByUniqueName ( selectedSection.innerText ) ; archType = osRepository.getArchitectureFromOS ( osId ) ; } } return archType ; }
Source:
public void encodeDecodeWithEmptyDiskDescription ( ) throws java.lang.Exception { disk.setDiskAlias ( "DiskAlias" ) ; disk.setDiskDescription ( "" ) ; assertDiskDescriptionMap ( disk , org.ovirt.engine.core.bll.storage.disk.image.MetadataDiskDescriptionHandlerTest.generateDiskAliasJsonEntry ( "DiskAlias" ) , org.ovirt.engine.core.bll.storage.disk.image.MetadataDiskDescriptionHandlerTest.generateDiskDescriptionJsonEntry ( "" ) ) ; org.ovirt.engine.core.bll.storage.disk.image.MetadataDiskDescriptionHandlerTest.assertDiskDescriptionDecoding ( disk ) ; }

Target:
public void testEncodingDecoding ( ) throws java.lang.Exception { disk.setDiskAlias ( "DiskAlias" ) ; disk.setDiskDescription ( "DiskDescription" ) ; assertDiskDescriptionMap ( disk , generateDiskAliasJsonEntry ( "DiskAlias" ) , generateDiskDescriptionJsonEntry ( "DiskDescription" ) ) ; assertDiskDescriptionDecoding ( disk ) ; }
Source:
private boolean templateExists ( ) { if ( ( ( getVmTemplate ( ) ) == null ) && ( ! ( getParameters ( ) . getCopyCollapse ( ) ) ) ) { addCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_TEMPLATE_DOES_NOT_EXIST ) ; return false ; } return true ; }

Target:
protected boolean validateNoDuplicateDiskImages ( java.lang.Iterable < org.ovirt.engine.core.common.businessentities.DiskImage > images ) { if ( ! ( getParameters ( ) . isImportAsNewEntity ( ) ) ) { org.ovirt.engine.core.bll.validator.DiskImagesValidator diskImagesValidator = new org.ovirt.engine.core.bll.validator.DiskImagesValidator ( images ) ; return validate ( diskImagesValidator.diskImagesAlreadyExist ( ) ) ; } return true ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.LunDisk disk = ( ( org.ovirt.engine.core.common.businessentities.LunDisk ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ) ) ; return java.lang.String.valueOf ( disk.getLun ( ) . getPathCount ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.storage.DiskInterface getRawValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.storage.Disk disk = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ; return disk.getDiskInterface ( ) ; }
Source:
public void shouldNotElectBackupStorageDomain ( ) { prepareStorageDomainForElection ( StorageDomainStatus.Active , org.ovirt.engine.core.bll.storage.domain.StorageDomainCommandBaseTest.HE_STORAGE_DOMAIN_NAME , true ) ; org.junit.Assert.assertNull ( cmd.electNewMaster ( ) ) ; }

Target:
public void shouldNotElectBackupStorageDomain ( ) { prepareStorageDomainForElection ( StorageDomainStatus.Active , org.ovirt.engine.core.bll.storage.domain.StorageDomainCommandBaseTest.HE_STORAGE_DOMAIN_NAME , true ) ; org.junit.jupiter.api.Assertions.assertNull ( cmd.electNewMaster ( ) ) ; }
Source:
public void testValidateUniqueTemplateNameInDC ( ) { org.ovirt.engine.core.bll.ImportVmTemplateCommand command = setupVolumeFormatAndTypeTest ( VolumeFormat.RAW , VolumeType.Preallocated , StorageType.NFS ) ; org.mockito.Mockito.doReturn ( true ) . when ( command ) . isVmTemplateWithSameNameExist ( ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , VdcBllMessages.VM_CANNOT_IMPORT_TEMPLATE_NAME_EXISTS ) ; }

Target:
public void testValidateUniqueTemplateNameInDC ( ) { org.ovirt.engine.core.bll.ImportVmTemplateCommand command = setupVolumeFormatAndTypeTest ( VolumeFormat.RAW , VolumeType.Preallocated , StorageType.NFS ) ; org.mockito.Mockito.doReturn ( true ) . when ( command ) . isVmTemplateWithSameNameExist ( ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.VM_CANNOT_IMPORT_TEMPLATE_NAME_EXISTS ) ; }
Source:
public void setContainsUnregisteredEntities ( boolean containsUnregisteredEntities ) { staticData.setContainsUnregisteredEntities ( containsUnregisteredEntities ) ; }

Target:
public void setContainsUnregisteredEntities ( boolean containsUnregisteredEntities ) { dynamicData.setContainsUnregisteredEntities ( containsUnregisteredEntities ) ; }
Source:
private boolean templateExists ( ) { if ( ( ( getVmTemplate ( ) ) == null ) && ( ! ( getParameters ( ) . getCopyCollapse ( ) ) ) ) { return failCanDoAction ( VdcBllMessages.ACTION_TYPE_FAILED_TEMPLATE_DOES_NOT_EXIST ) ; } return true ; }

Target:
private boolean templateExists ( ) { if ( ( ( org.ovirt.engine.core.bll.ImportVmCommand.getVmTemplate ( ) ) == null ) && ( ! ( getParameters ( ) . getCopyCollapse ( ) ) ) ) { return failCanDoAction ( VdcBllMessages.ACTION_TYPE_FAILED_TEMPLATE_DOES_NOT_EXIST ) ; } return true ; }
Source:
private void mockDaos ( ) { mockVmDao ( ) ; mockValidators ( ) ; }

Target:
public void setupCommand ( ) { initSpyCommand ( ) ; initStoragePool ( ) ; mockValidators ( ) ; }
Source:
protected void endSuccessfully ( ) { endImportCommand ( ) ; }

Target:
protected void endSuccessfully ( ) { checkTrustedService ( ) ; endImportCommand ( ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.storage.Disk , org.ovirt.engine.ui.uicommonweb.models.storage.StorageListModel , org.ovirt.engine.ui.uicommonweb.models.storage.StorageSnapshotListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.storage.SubTabStorageSnapshotPresenter.constants.snapshotsLabel ( ) , 8 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.storage.Disk , org.ovirt.engine.ui.uicommonweb.models.storage.StorageListModel , org.ovirt.engine.ui.uicommonweb.models.storage.StorageSnapshotListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.storage.SubTabStorageSnapshotPresenter.constants.snapshotsLabel ( ) , 9 , modelProvider ) ; }
Source:
public void isRoleNetworkMigration ( ) { org.ovirt.engine.core.common.businessentities.network.NetworkCluster networkCluster = createNetworkCluster ( false , true , false ) ; org.junit.Assert.assertTrue ( org.ovirt.engine.core.utils.NetworkUtils.isRoleNetwork ( networkCluster ) ) ; }

Target:
public void isRoleNetworkMigration ( ) { org.ovirt.engine.core.common.businessentities.network.NetworkCluster networkCluster = createNetworkCluster ( false , true , false ) ; org.junit.jupiter.api.Assertions.assertTrue ( org.ovirt.engine.core.utils.NetworkUtils.isRoleNetwork ( networkCluster ) ) ; }
Source:
public java.lang.String getvm_name ( ) { return this . vmName ; }

Target:
public void setStoragePoolId ( org.ovirt.engine.core.compat.Guid storagePoolId ) { this . storagePoolId = storagePoolId ; }
Source:
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 org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalMultipleActions ( 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 , org.ovirt.engine.core.bll.job.ExecutionContext executionContext ) { return getBackend ( ) . runInternalMultipleActions ( actionType , parameters , executionContext ) ; }
Source:
public static void getIrsImageList ( org.ovirt.engine.ui.frontend.AsyncQuery < java.util.List < java.lang.String > > aQuery , org.ovirt.engine.core.compat.Guid storagePoolId ) { org.ovirt.engine.ui.uicommonweb.dataprovider.ImagesDataProvider.getIrsImageList ( aQuery , storagePoolId , false ) ; }

Target:
public static void getISOImagesList ( org.ovirt.engine.ui.frontend.AsyncQuery < java.util.List < java.lang.String > > aQuery , org.ovirt.engine.core.compat.Guid storagePoolId ) { org.ovirt.engine.ui.uicommonweb.dataprovider.ImagesDataProvider.getISOImagesList ( aQuery , storagePoolId , false ) ; }
Source:
public void testGet ( ) { org.ovirt.engine.core.common.businessentities.network.VmNicFilterParameter result = dao.get ( FixturesTool.VM_NETWORK_FILTER_PARAMETER ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( FixturesTool.VM_NETWORK_FILTER_PARAMETER , result.getId ( ) ) ; }

Target:
protected void updateExistingEntity ( ) { existingEntity.setId ( FixturesTool.VM_NETWORK_FILTER_PARAMETER ) ; existingEntity.setName ( "IP" ) ; existingEntity.setValue ( "192.168.122.1" ) ; existingEntity.setVmInterfaceId ( FixturesTool.VM_NETWORK_INTERFACE ) ; }
Source:
public void jobsAreRemovedFromMemoryOnRemoveVm ( ) { vmJobsMonitoring.onVmDelete ( org.ovirt.engine.core.vdsbroker.monitoring.VmJobsMonitoringTest.VM_ID_1 ) ; org.junit.Assert.assertTrue ( vmJobsMonitoring.getExistingJobsForVm ( org.ovirt.engine.core.vdsbroker.monitoring.VmJobsMonitoringTest.VM_ID_1 ) . isEmpty ( ) ) ; org.junit.Assert.assertEquals ( 2 , vmJobsMonitoring.getExistingJobsForVm ( org.ovirt.engine.core.vdsbroker.monitoring.VmJobsMonitoringTest.VM_ID_2 ) . size ( ) ) ; }

Target:
public void jobsAreRemovedFromMemoryOnRemoveVm ( ) { vmJobsMonitoring.onVmDelete ( org.ovirt.engine.core.vdsbroker.monitoring.VmJobsMonitoringTest.VM_ID_1 ) ; org.junit.jupiter.api.Assertions.assertTrue ( vmJobsMonitoring.getExistingJobsForVm ( org.ovirt.engine.core.vdsbroker.monitoring.VmJobsMonitoringTest.VM_ID_1 ) . isEmpty ( ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( 2 , vmJobsMonitoring.getExistingJobsForVm ( org.ovirt.engine.core.vdsbroker.monitoring.VmJobsMonitoringTest.VM_ID_2 ) . size ( ) ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; vmID = org.ovirt.engine.core.compat.Guid.NewGuid ( ) ; setUpDAOMocks ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; vmID = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; setUpDAOMocks ( ) ; }
Source:
private void applyStyles ( ) { swiftStatusEditor.addContentWidgetStyleName ( style.swiftStatusWidget ( ) ) ; }

Target:
private void applyStyles ( ) { swiftStatusEditor.addContentWidgetContainerStyleName ( style.swiftStatusWidget ( ) ) ; }
Source:
protected boolean canDoAction ( ) { org.ovirt.engine.core.bll.provider.RemoveProviderCommand.RemoveProviderValidator validator = new org.ovirt.engine.core.bll.provider.RemoveProviderCommand.RemoveProviderValidator ( getDeletedProvider ( ) ) ; return ( validate ( validator.providerIsSet ( ) ) ) && ( validate ( validator.providerNetworksNotUsed ( ) ) ) ; }

Target:
protected boolean canDoAction ( ) { org.ovirt.engine.core.bll.provider.RemoveProviderCommand.RemoveProviderValidator validator = new org.ovirt.engine.core.bll.provider.RemoveProviderCommand.RemoveProviderValidator ( vmDao , getDeletedProvider ( ) ) ; return ( validate ( validator.providerIsSet ( ) ) ) && ( validate ( validator.providerNetworksNotUsed ( ) ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.storage.DiskImage createShareableDisk ( org.ovirt.engine.core.common.businessentities.storage.VolumeFormat volumeFormat ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage disk = createDiskImage ( ) ; disk.setvolumeFormat ( volumeFormat ) ; disk.setShareable ( true ) ; return disk ; }

Target:
private org.ovirt.engine.core.common.businessentities.storage.DiskImage createShareableDisk ( org.ovirt.engine.core.common.businessentities.storage.VolumeFormat volumeFormat ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage disk = createDiskImage ( ) ; disk.setVolumeFormat ( volumeFormat ) ; disk.setShareable ( true ) ; return disk ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < java.lang.String , org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.vms.VmAppListModel < org.ovirt.engine.core.common.businessentities.VM > > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.virtualMachineApplicationSubTabLabel ( ) , 5 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < java.lang.String , org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.vms.VmAppListModel < org.ovirt.engine.core.common.businessentities.VM > > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.virtualMachine.SubTabVirtualMachineApplicationPresenter.constants.virtualMachineApplicationSubTabLabel ( ) , 5 , modelProvider ) ; }