auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source != null ) { return ! ( ( ( java.util.List < ? > ) ( source ) ) . isEmpty ( ) ) ; } return false ; }

Target:
public void isSoundcardEnabled ( org.ovirt.engine.ui.frontend.AsyncQuery < java.lang.Boolean > aQuery , org.ovirt.engine.core.compat.Guid vmId ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.IsNonEmptyCollectionConverter ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetSoundDevices , new org.ovirt.engine.core.common.queries.IdQueryParameters ( vmId ) , aQuery ) ; }
Source:
protected java.util.Date getRawValue ( org.ovirt.engine.core.common.businessentities.storage.Disk object ) { return ( object.getDiskStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.Disk.DiskStorageType.IMAGE ) ? ( ( org.ovirt.engine.core.common.businessentities.DiskImage ) ( object ) ) . getCreationDate ( ) : null ; }

Target:
protected java.util.Date getRawValue ( org.ovirt.engine.core.common.businessentities.storage.Disk object ) { return ( object.getDiskStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.DiskStorageType.IMAGE ) ? ( ( org.ovirt.engine.core.common.businessentities.storage.DiskImage ) ( object ) ) . getCreationDate ( ) : null ; }
Source:
protected void buildVmConsoleDevice ( ) { buildVmDevicesFromDb ( VmDeviceGeneralType.CONSOLE , false ) ; }

Target:
protected void buildVmSoundDevices ( ) { buildVmDevicesFromDb ( VmDeviceGeneralType.SOUND , true , null ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult networkNotUsedByHosts ( ) { return networkNotUsed ( getDbFacade ( ) . getVdsDao ( ) . getAllForNetwork ( network.getId ( ) ) , EngineMessage.VAR__ENTITIES__HOSTS , EngineMessage.VAR__ENTITIES__HOST ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult networkNotUsedByHosts ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > allForNetwork = getDbFacade ( ) . getVdsDao ( ) . getAllForNetwork ( network.getId ( ) ) ; return new org.ovirt.engine.core.bll.validator.NetworkValidator.PluralMessages ( org.ovirt.engine.core.common.errors.EngineMessage.VAR__ENTITIES__HOST , org.ovirt.engine.core.common.errors.EngineMessage.VAR__ENTITIES__HOSTS ) . getNetworkInUse ( getEntitiesNames ( allForNetwork ) ) ; }
Source:
protected void failedToRunVm ( ) { try { if ( ( org.ovirt.engine.core.bll.MigrateVmCommand.getVm ( ) . getStatus ( ) ) != ( org.ovirt.engine.core.common.businessentities.VMStatus.Up ) ) { super . failedToRunVm ( ) ; } } finally { org.ovirt.engine.core.bll.MigrateVmCommand.freeLock ( ) ; } }

Target:
protected void processVmPoolOnStopVm ( ) { if ( ( org.ovirt.engine.core.bll.MigrateVmCommand.getVm ( ) . getStatus ( ) ) != ( org.ovirt.engine.core.common.businessentities.VMStatus.Up ) ) { super . processVmPoolOnStopVm ( ) ; } }
Source:
protected void initMtu ( ) { getHasMtu ( ) . setEntity ( false ) ; getMtu ( ) . setEntity ( null ) ; }

Target:
protected void initMtu ( ) { getMtuSelector ( ) . setSelectedItem ( MtuSelector.defaultMtu ) ; getMtu ( ) . setEntity ( null ) ; }
Source:
protected void init ( ) { super . init ( ) ; getPlugged ( ) . setIsChangable ( false ) ; }

Target:
protected void init ( ) { super . init ( ) ; getPlugged ( ) . setIsChangeable ( false ) ; }
Source:
public void updateAllInBatch ( java.util.Collection < T > entities ) { updateAllInBatch ( org.ovirt.engine.core.dao.MassOperationsGenericDaoDbFacade.getProcedureNameForUpdate ( ) , entities , getBatchMapper ( ) ) ; }

Target:
public void updateAllInBatch ( java.util.Collection < T > entities ) { updateAllInBatch ( org.ovirt.engine.core.dao.MassOperationsGenericDao.getProcedureNameForUpdate ( ) , entities , getBatchMapper ( ) ) ; }
Source:
private void removeDatacenter ( ) { org.ovirt.engine.core.itests.BasicTestSetup.DB_FACADE.getStoragePoolDAO ( ) . remove ( dataCenter.getId ( ) ) ; java.lang.System.out.println ( ( ( "-- removed Data Center " + ( dataCenter.getname ( ) ) ) + "-- " ) ) ; }

Target:
private void removeDatacenter ( ) { org.ovirt.engine.core.itests.BasicTestSetup.DB_FACADE.getStoragePoolDao ( ) . remove ( dataCenter.getId ( ) ) ; java.lang.System.out.println ( ( ( "-- removed Data Center " + ( dataCenter.getname ( ) ) ) + "-- " ) ) ; }
Source:
public void testNonValidNonPatternName2 ( ) { org.junit.Assert.assertFalse ( new org.ovirt.engine.ui.uicommonweb.validation.PoolNameValidationTest.TestablePoolNameValidation ( ) . validate ( "" ) . getSuccess ( ) ) ; }

Target:
public void testNonValidNonPatternName2 ( ) { org.junit.Assert.assertFalse ( poolNameValidation.validate ( "" ) . getSuccess ( ) ) ; }
Source:
protected boolean showTransportProperties ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return true ; }

Target:
protected boolean editTransportProperties ( org.ovirt.engine.core.common.businessentities.VDS vds ) { return true ; }
Source:
protected < C extends org.ovirt.engine.api.model.ActionableResource > C addActions ( C model ) { org.ovirt.engine.api.common.util.LinkHelper.addActions ( org.ovirt.engine.api.restapi.resource.AbstractBackendCollectionResource.getUriInfo ( ) , model , this ) ; return model ; }

Target:
protected < C extends org.ovirt.engine.api.model.ActionableResource > C addActions ( C model ) { org.ovirt.engine.api.utils.LinkHelper.addActions ( org.ovirt.engine.api.restapi.resource.AbstractBackendCollectionResource.getUriInfo ( ) , model , this ) ; return model ; }
Source:
protected void localize ( org.ovirt.engine.ui.webadmin.ApplicationConstants constants ) { super . localize ( constants ) ; mainLabel.setText ( constants.dataCenterEditNetworkPopupLabel ( ) ) ; messageLabel.setHTML ( constants.dataCenterNetworkPopupSubLabel ( ) ) ; }

Target:
protected void localize ( ) { super . localize ( ) ; mainLabel.setText ( org.ovirt.engine.ui.webadmin.section.main.view.popup.datacenter.EditNetworkPopupView.constants.dataCenterEditNetworkPopupLabel ( ) ) ; messageLabel.setHTML ( org.ovirt.engine.ui.webadmin.section.main.view.popup.datacenter.EditNetworkPopupView.constants.dataCenterNetworkPopupSubLabel ( ) ) ; }
Source:
public void testGetAllByStoragePoolAndConnectionWithInvalidConnection ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllByStoragePoolAndConnection ( org.ovirt.engine.core.dao.StorageDomainDaoTest.EXISTING_STORAGE_POOL_ID , org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextString ( 10 ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllByStoragePoolAndConnectionWithInvalidConnection ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllByStoragePoolAndConnection ( FixturesTool.STORAGE_POOL_NFS , org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextString ( 10 ) ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public void testLogErrorDoesntLogWhenNoAnnotation ( ) 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.logError ( log , "" , new java.lang.Object ( ) , new java.lang.Exception ( ) ) ; org.mockito.Mockito.verifyZeroInteractions ( log ) ; }

Target:
public void testLogErrorDoesntLogWhenNoAnnotation ( ) throws java.lang.Exception { org.slf4j.Logger log = org.mockito.Mockito.mock ( org.slf4j.Logger.class ) ; org.ovirt.engine.core.utils.log.LoggedUtils.logError ( log , "" , new java.lang.Object ( ) , new java.lang.Exception ( ) ) ; org.mockito.Mockito.verifyZeroInteractions ( log ) ; }
Source:
protected void MoveOrCopyAllImageGroups ( ) { MoveOrCopyAllImageGroups ( getVm ( ) . getId ( ) , org.ovirt.engine.core.bll.ImagesHandler.filterImageDisks ( getVm ( ) . getDiskMap ( ) . values ( ) , false , false ) ) ; }

Target:
protected void moveOrCopyAllImageGroups ( ) { moveOrCopyAllImageGroups ( getVm ( ) . getId ( ) , org.ovirt.engine.core.bll.ImagesHandler.filterImageDisks ( getVm ( ) . getDiskMap ( ) . values ( ) , false , false ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.vm_pools mockVmPools ( ) { org.ovirt.engine.core.common.businessentities.vm_pools pool = new org.ovirt.engine.core.common.businessentities.vm_pools ( ) ; pool.setvm_pool_name ( "simplePoolName" ) ; pool.setvds_group_id ( vdsGroupId ) ; pool.setvm_pool_id ( vmPoolId ) ; return pool ; }

Target:
private org.ovirt.engine.core.common.businessentities.VmPool mockVmPools ( ) { org.ovirt.engine.core.common.businessentities.VmPool pool = new org.ovirt.engine.core.common.businessentities.VmPool ( ) ; pool.setVmPoolName ( "simplePoolName" ) ; pool.setVdsGroupId ( vdsGroupId ) ; pool.setVmPoolId ( vmPoolId ) ; return pool ; }
Source:
protected org.ovirt.engine.core.bll.VmRunHandler getVmRunHandler ( ) { return org.ovirt.engine.core.bll.VmRunHandler.getInstance ( ) ; }

Target:
private boolean isRunAndPaused ( ) { return ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . isRunAndPause ( ) ) && ( ( org.ovirt.engine.core.bll.RunVmCommand.getVmDynamicDao ( ) . get ( org.ovirt.engine.core.bll.RunVmCommand.getVmId ( ) ) . getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.Paused ) ) ; }
Source:
private boolean isAnyUpHostInCluster ( ) { if ( ! ( getEntity ( ) . supportsGlusterService ( ) ) ) { return true ; } return isAnyHostUpInCluster ; }

Target:
private boolean isUpHostCheckCompleted ( ) { if ( ! ( getEntity ( ) . supportsGlusterService ( ) ) ) { return true ; } return ( isAnyHostUpInCluster ) != null ; }
Source:
protected static java.util.ArrayList < java.lang.String > split ( java.lang.String str ) { if ( org.apache.commons.lang.StringUtils.isEmpty ( str ) ) { return null ; } return new java.util.ArrayList < java.lang.String > ( java.util.Arrays.asList ( str.split ( org.ovirt.engine.core.dao.BaseDaoDbFacade.SEPARATOR ) ) ) ; }

Target:
protected static java.util.ArrayList < java.lang.String > split ( java.lang.String str ) { if ( org.apache.commons.lang.StringUtils.isEmpty ( str ) ) { return null ; } return new java.util.ArrayList < java.lang.String > ( java.util.Arrays.asList ( str.split ( org.ovirt.engine.core.dao.BaseDao.SEPARATOR ) ) ) ; }
Source:
public void testDoNotValidateNameSizeImport ( ) { checkTemplateName ( false , string100 ) ; }

Target:
public void testValidateNameSizeImportAsCloned ( ) { checkTemplateName ( true , string500 ) ; }
Source:
protected void EndSuccessfully ( ) { EndActionOnAllImageGroups ( ) ; endVmRelatedOps ( ) ; setSucceeded ( true ) ; }

Target:
public void rollbackQuota ( ) { getQuotaManager ( ) . rollbackQuota ( getStoragePool ( ) , getQuotaManager ( ) . getQuotaListFromParameters ( getStorageQuotaListParameters ( ) ) ) ; }
Source:
public void onFailed ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { revertCinderDisks ( childCmdIds ) ; getCommand ( cmdId ) . endAction ( ) ; getCommand ( cmdId ) . getParameters ( ) . setTaskGroupSuccess ( false ) ; }

Target:
public void onFailed ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { org.ovirt.engine.core.bll.CommandBase < ? > commandBase = getCommand ( cmdId ) ; commandBase.getParameters ( ) . setTaskGroupSuccess ( false ) ; commandBase.endAction ( ) ; }
Source:
public java.util.List < java.lang.String > getMessages ( org.ovirt.engine.core.compat.Guid hostId ) { if ( messages.containsKey ( hostId ) ) { return messages.get ( hostId ) ; } else { return java.util.Collections.emptyList ( ) ; } }

Target:
public java.util.List < java.lang.String > getMessages ( org.ovirt.engine.core.compat.Guid hostId ) { return messages.getOrDefault ( hostId , java.util.Collections.emptyList ( ) ) ; }
Source:
private boolean networkNotAttachedToCluster ( ) { if ( networkExists ( ) ) { return failCanDoAction ( EngineMessage.NETWORK_ALREADY_ATTACHED_TO_CLUSTER ) ; } return true ; }

Target:
private boolean networkNotAttachedToCluster ( ) { if ( networkExists ( ) ) { return failValidation ( EngineMessage.NETWORK_ALREADY_ATTACHED_TO_CLUSTER ) ; } return true ; }
Source:
protected org.ovirt.engine.ui.common.widget.form.key_value.KeyValueLineWidget createWidget ( org.ovirt.engine.ui.uicommonweb.models.vms.key_value.KeyValueLineModel value ) { org.ovirt.engine.ui.common.widget.form.key_value.KeyValueLineWidget keyValueLineWidget = new org.ovirt.engine.ui.common.widget.form.key_value.KeyValueLineWidget ( ) ; keyValueLineWidget.edit ( value ) ; widgets.add ( keyValueLineWidget ) ; return keyValueLineWidget ; }

Target:
protected org.ovirt.engine.ui.common.widget.form.key_value.KeyValueLineWidget createWidget ( org.ovirt.engine.ui.uicommonweb.models.vms.key_value.KeyValueLineModel value ) { org.ovirt.engine.ui.common.widget.form.key_value.KeyValueLineWidget keyValueLineWidget = new org.ovirt.engine.ui.common.widget.form.key_value.KeyValueLineWidget ( rowWidth ) ; keyValueLineWidget.edit ( value ) ; widgets.add ( keyValueLineWidget ) ; return keyValueLineWidget ; }
Source:
protected org.ovirt.engine.core.dao.DiskImageDAO getDiskImageDAO ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getDiskImageDAO ( ) ; }

Target:
protected org.ovirt.engine.core.dao.DiskImageDAO getDiskImageDao ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getDiskImageDao ( ) ; }
Source:
public java.util.concurrent.Future < java.lang.Void > close ( ) { return scheduleTask ( this . disconnectCallable ) ; }

Target:
public final void disconnect ( java.lang.String message ) { postDisconnect ( ) ; closeChannel ( ) ; emitOnMessageReceived ( buildNetworkResponse ( message ) ) ; }
Source:
public void setStorageDomain ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( storageDomain , value ) ) ) { storageDomain = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "StorageDomain" ) ) ; } }

Target:
public void setStorageDomain ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( storageDomain , value ) ) ) { storageDomain = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "StorageDomain" ) ) ; } }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { cachedMaxPriority = ( ( java.lang.Integer ) ( returnValue ) ) ; postUpdatePriority ( ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { cachedMaxPriority = ( ( java.lang.Integer ) ( returnValue ) ) ; postUpdatePriority ( callbacks ) ; }
Source:
protected void handleError ( ) { log.errorFormat ( "Failed to run StartVdsCommand on vds :{0}" , org.ovirt.engine.core.bll.StartVdsCommand.getVdsName ( ) ) ; }

Target:
protected void handleError ( ) { addCanDoActionMessage ( VdcBllMessages.VDS_FENCE_OPERATION_FAILED ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__HOST ) ; addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__START ) ; log.error ( "Failed to run StartVdsCommand on vds '{}'" , org.ovirt.engine.core.bll.StartVdsCommand.getVdsName ( ) ) ; }
Source:
public java.lang.String renderNullSafe ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.StoragePool ) ( object ) ) . getname ( ) ; }

Target:
public java.lang.String renderNullSafe ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.scheduling.ClusterPolicy ) ( object ) ) . getName ( ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.VDS findHostByIdFromIdList ( java.util.Collection < org.ovirt.engine.core.common.businessentities.VDS > items , java.util.List < org.ovirt.engine.core.compat.Guid > hostIdList ) { for ( org.ovirt.engine.core.common.businessentities.VDS host : items ) { if ( hostIdList.contains ( host.getId ( ) ) ) { return host ; } } return null ; }

Target:
public static org.ovirt.engine.core.common.businessentities.VDS findHostByIdFromIdList ( java.util.Collection < org.ovirt.engine.core.common.businessentities.VDS > items , java.util.List < org.ovirt.engine.core.compat.Guid > hostIdList ) { return org.ovirt.engine.ui.uicommonweb.Linq.firstOrNull ( items , new org.ovirt.engine.ui.uicommonweb.Linq.IdsPredicate ( hostIdList ) ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.scheduling.PolicyUnit object ) { return org.ovirt.engine.ui.uicompat.EnumTranslator.getInstance ( ) . get ( object.getPolicyUnitType ( ) ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.scheduling.PolicyUnit object ) { return org.ovirt.engine.ui.uicompat.EnumTranslator.getInstance ( ) . translate ( object.getPolicyUnitType ( ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeTaskStatusEntity statusEntity = ( ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeTaskStatusEntity ) ( returnValue ) ) ; if ( statusEntity != null ) { showStatus ( statusEntity ) ; } }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { org.ovirt.engine.core.common.queries.VdcQueryReturnValue vdcValue = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) ; org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeTaskStatusEntity statusEntity = vdcValue.getReturnValue ( ) ; if ( statusEntity != null ) { showStatus ( statusEntity ) ; } }
Source:
public void setstorage_domain_id ( org.ovirt.engine.core.compat.Guid value ) { storageDomainId = value ; }

Target:
public void setStorageDomainId ( org.ovirt.engine.core.compat.Guid storageDomainId ) { this . storageDomainId = storageDomainId ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > filter ( java.util.List < org.ovirt.engine.core.common.businessentities.VDS > data ) { for ( org.ovirt.engine.core.common.businessentities.VDS vds : data ) { vds.setCpuName ( org.ovirt.engine.core.bll.CpuFlagsManagerHandler.FindMaxServerCpuByFlags ( vds.getCpuFlags ( ) , vds.getVdsGroupCompatibilityVersion ( ) ) ) ; } return data ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > filter ( java.util.List < org.ovirt.engine.core.common.businessentities.VDS > data ) { for ( org.ovirt.engine.core.common.businessentities.VDS vds : data ) { vds.setCpuName ( org.ovirt.engine.core.bll.CpuFlagsManagerHandler.findMaxServerCpuByFlags ( vds.getCpuFlags ( ) , vds.getVdsGroupCompatibilityVersion ( ) ) ) ; } return data ; }
Source:
public void testList ( ) throws java.lang.Exception { collection.setUriInfo ( setUpUriExpectations ( null ) ) ; setUpQueryExpectations ( org.ovirt.engine.api.restapi.resource.gluster.BackendGlusterVolumesResourceTest.defaultQuery ) ; collection.setParent ( parentMock ) ; verifyCollection ( getCollection ( ) ) ; }

Target:
public void testList ( ) throws java.lang.Exception { collection.setUriInfo ( setUpUriExpectations ( null ) ) ; setUpQueryExpectations ( org.ovirt.engine.api.restapi.resource.gluster.BackendGlusterVolumesResourceTest.defaultQuery ) ; collection.setParent ( org.ovirt.engine.api.restapi.resource.gluster.BackendGlusterVolumesResourceTest.parentMock ) ; verifyCollection ( getCollection ( ) ) ; }
Source:
public void testNameNotChanged ( ) { prepareVmToPassCanDoAction ( ) ; vm.setName ( "vm1" ) ; mockSameNameQuery ( true ) ; mockVmValidator ( ) ; org.junit.Assert.assertTrue ( "canDoAction should have passed." , command.canDoAction ( ) ) ; }

Target:
public void testNameNotChanged ( ) { prepareVmToPassCanDoAction ( ) ; vm.setName ( "vm1" ) ; mockSameNameQuery ( true ) ; mockVmValidator ( ) ; command.initEffectiveCompatibilityVersion ( ) ; org.junit.Assert.assertTrue ( "canDoAction should have passed." , command.canDoAction ( ) ) ; }
Source:
protected abstract void executeSave ( ) ;

Target:
protected abstract org.ovirt.engine.core.common.action.VdcActionType getVdcAction ( ) ;
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { disk.getDiskStorageType ( ) . setEntity ( DiskStorageType.LUN ) ; revealStorageView ( disk ) ; revealDiskPanel ( disk ) ; }

Target:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { if ( disk.getIsNew ( ) ) { disk.getDiskStorageType ( ) . setEntity ( DiskStorageType.LUN ) ; revealStorageView ( disk ) ; revealDiskPanel ( disk ) ; } }
Source:
protected boolean isVolumeFormatSupportedForShareable ( org.ovirt.engine.core.common.businessentities.VolumeFormat volumeFormat ) { return volumeFormat == ( org.ovirt.engine.core.common.businessentities.VolumeFormat.RAW ) ; }

Target:
protected boolean isVolumeFormatSupportedForShareable ( org.ovirt.engine.core.common.businessentities.storage.VolumeFormat volumeFormat ) { return volumeFormat == ( org.ovirt.engine.core.common.businessentities.storage.VolumeFormat.RAW ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.StorageServerConnections createConnection ( org.ovirt.engine.core.common.businessentities.storage.StorageType storageType , java.lang.String mountOptions ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections conn = new org.ovirt.engine.core.common.businessentities.StorageServerConnections ( ) ; conn.setstorage_type ( storageType ) ; conn.setMountOptions ( mountOptions ) ; return conn ; }

Target:
private org.ovirt.engine.core.common.businessentities.StorageServerConnections createConnection ( org.ovirt.engine.core.common.businessentities.storage.StorageType storageType , java.lang.String mountOptions ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections conn = new org.ovirt.engine.core.common.businessentities.StorageServerConnections ( ) ; conn.setStorageType ( storageType ) ; conn.setMountOptions ( mountOptions ) ; return conn ; }
Source:
public void setOutOfRangeValue ( ) throws java.lang.Exception { final java.lang.String outOfRangeForFenceQuietTime = "601" ; final java.lang.String key = "FenceQuietTimeBetweenOperationsInSec" ; config.getEngineConfigLogic ( ) . persist ( key , outOfRangeForFenceQuietTime , "" ) ; }

Target:
public void setOutOfRangeValue ( ) throws java.lang.Exception { final java.lang.String outOfRangeForFenceQuietTime = "601" ; final java.lang.String key = "FenceQuietTimeBetweenOperationsInSec" ; org.junit.jupiter.api.Assertions.assertThrows ( java.lang.IllegalAccessException.class , ( ) -> config.getEngineConfigLogic ( ) . persist ( key , outOfRangeForFenceQuietTime , "" ) ) ; }
Source:
public void testGetEntitiesForNotRelatedStorageDomain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.OvfEntityData > ovfEntityDataList = dao.getAllForStorageDomainByEntityType ( FixturesTool.STORAGE_DOMAIN_NFS2_2 , VmEntityType.VM ) ; org.junit.Assert.assertTrue ( "No VM should be fetched for the specified storage domain" , ovfEntityDataList.isEmpty ( ) ) ; }

Target:
public void testGetEntitiesForNotRelatedStorageDomain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.OvfEntityData > ovfEntityDataList = dao.getAllForStorageDomainByEntityType ( FixturesTool.STORAGE_DOMAIN_NFS2_2 , VmEntityType.VM ) ; org.junit.jupiter.api.Assertions.assertTrue ( ovfEntityDataList.isEmpty ( ) , "No VM should be fetched for the specified storage domain" ) ; }
Source:
public void testGetRedirectUriServerName ( ) { java.lang.String address = "fe80::56ee:75ff:fe5c:6cc7" ; org.junit.Assert.assertEquals ( java.lang.String.format ( "[%s]" , address ) , org.ovirt.engine.core.aaa.filters.FiltersHelper.getRedirectUriServerName ( address ) ) ; }

Target:
public void testGetRedirectUriServerName ( ) { java.lang.String address = "fe80::56ee:75ff:fe5c:6cc7" ; org.junit.jupiter.api.Assertions.assertEquals ( java.lang.String.format ( "[%s]" , address ) , org.ovirt.engine.core.aaa.filters.FiltersHelper.getRedirectUriServerName ( address ) ) ; }
Source:
public java.lang.Boolean getValue ( org.ovirt.engine.core.common.businessentities.VmNetworkInterface object ) { return object.isPlugged ( ) ; }

Target:
public java.lang.Boolean getValue ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface object ) { return object.isPlugged ( ) ; }
Source:
public java.lang.String getTemplate ( ) { return getTemplate ( " *" , "" , "" , "" ) ; }

Target:
public java.lang.String getTemplate ( ) { return getTemplate ( org.ovirt.engine.sdk.codegen.templates.DeleteMethodTemplate.DOC_SEPARATOR , "" , "" , "" ) ; }
Source:
public void close ( ) { try { writer.writeEndDocument ( ) ; writer.close ( ) ; } catch ( javax.xml.stream.XMLStreamException exception ) { } }

Target:
public void writeEndElement ( ) { try { writer.writeEndElement ( ) ; } catch ( javax.xml.stream.XMLStreamException exception ) { throw new org.ovirt.api.metamodel.runtime.xml.XmlException ( "Can't write end element" , exception ) ; } }
Source:
public static void setVdcUser ( org.ovirt.engine.core.common.users.VdcUser vdcUser ) { org.ovirt.engine.core.utils.ThreadLocalParamsContainer.vdcUserKeeper.set ( vdcUser ) ; }

Target:
public static void setUser ( org.ovirt.engine.core.common.businessentities.DbUser user ) { org.ovirt.engine.core.utils.ThreadLocalParamsContainer.userKeeper.set ( user ) ; }
Source:
public org.apache.commons.collections.keyvalue.DefaultKeyValue mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { org.apache.commons.collections.keyvalue.DefaultKeyValue result = new org.apache.commons.collections.keyvalue.DefaultKeyValue ( ) ; result.setKey ( org.ovirt.engine.core.compat.Guid.createGuidFromStringDefaultEmpty ( rs.getString ( "command_id" ) ) ) ; result.setValue ( rs.getString ( "command_type" ) ) ; return result ; }

Target:
public org.apache.commons.collections.keyvalue.DefaultKeyValue mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { org.apache.commons.collections.keyvalue.DefaultKeyValue result = new org.apache.commons.collections.keyvalue.DefaultKeyValue ( ) ; result.setKey ( getGuidDefaultEmpty ( rs , "command_id" ) ) ; result.setValue ( rs.getString ( "command_type" ) ) ; return result ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.VmTemplate , org.ovirt.engine.ui.uicommonweb.models.storage.StorageListModel , org.ovirt.engine.ui.uicommonweb.models.storage.StorageTemplateListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.storage.SubTabStorageTemplatePresenter.constants.storageTemplateSubTabLabel ( ) , 6 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( ) { return new org.ovirt.engine.ui.common.uicommon.model.GroupedTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.storage.SubTabStorageTemplatePresenter.constants.storageTemplateSubTabLabel ( ) , 6 ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.gin.ClientGinjector ginjector ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( ginjector.getApplicationConstants ( ) . dataCenterClusterSubTabLabel ( ) , 2 , ginjector.getSubTabDataCenterClusterModelProvider ( ) ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.VDSGroup , org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterListModel , org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterClusterListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.dataCenterClusterSubTabLabel ( ) , 3 , modelProvider ) ; }
Source:
public boolean connectStorageToLunByVdsId ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.common.businessentities.LUNs lun , org.ovirt.engine.core.compat.Guid storagePoolId ) { return runConnectionStorageToDomain ( storageDomain , vdsId , VdcActionType.ConnectStorageToVds.getValue ( ) , lun , storagePoolId ) ; }

Target:
public boolean connectStorageToLunByVdsId ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.common.businessentities.storage.LUNs lun , org.ovirt.engine.core.compat.Guid storagePoolId ) { return runConnectionStorageToDomain ( storageDomain , vdsId , VdcActionType.ConnectStorageToVds.getValue ( ) , lun , storagePoolId ) . getFirst ( ) ; }
Source:
public void passDiscardSupportedForDestSdCopyTemplateDiskOp ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ) ; mockPassDiscardSupportedForDestSd ( ValidationResult.VALID , ImageOperation.Copy ) ; initTemplateDiskImage ( ) ; org.junit.Assert.assertTrue ( command.validatePassDiscardSupportedForDestinationStorageDomain ( ) ) ; }

Target:
public void validateFailureOnMovingVmLunDisk ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.LunDisk ( ) , null ) ; vmDevice.setSnapshotId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_NOT_SUPPORTED_DISK_STORAGE_TYPE ) ; }
Source:
private void setSupportedFeatures ( ) { networkCustomPropertiesSupported = org.ovirt.engine.core.common.FeatureSupported.networkCustomProperties ( host.getVdsGroupCompatibilityVersion ( ) ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.Network getNetworkByNetworkId ( org.ovirt.engine.core.compat.Guid networkId ) { return networkBusinessEntityMap.get ( networkId ) ; }
Source:
public void storagePool ( ) { final org.ovirt.engine.core.common.businessentities.StoragePool p = new org.ovirt.engine.core.common.businessentities.StoragePool ( ) ; b.setStoragePool ( p ) ; final org.ovirt.engine.core.common.businessentities.StoragePool sp = b.getStoragePool ( ) ; org.junit.Assert.assertEquals ( p , sp ) ; }

Target:
public void storagePool ( ) { final org.ovirt.engine.core.common.businessentities.StoragePool p = new org.ovirt.engine.core.common.businessentities.StoragePool ( ) ; b.setStoragePool ( p ) ; final org.ovirt.engine.core.common.businessentities.StoragePool sp = b.getStoragePool ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( p , sp ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VMStatus getstatus ( ) { return this . mVmDynamic.getstatus ( ) ; }

Target:
public void setKernelParams ( java.lang.String value ) { vmStatic.setkernel_params ( value ) ; }
Source:
public void setSystemTreeSelectedItem ( org.ovirt.engine.ui.uicommonweb.models.SystemTreeItemModel value ) { if ( ( systemTreeSelectedItem ) != value ) { systemTreeSelectedItem = value ; OnSystemTreeSelectedItemChanged ( ) ; } }

Target:
public void setSystemTreeSelectedItem ( org.ovirt.engine.ui.uicommonweb.models.SystemTreeItemModel value ) { if ( ( systemTreeSelectedItem ) != value ) { systemTreeSelectedItem = value ; onSystemTreeSelectedItemChanged ( ) ; } }
Source:
public void managementNetworkRequiredInvalid ( ) { testmanagementNetworkRequired ( true , false , org.hamcrest.CoreMatchers.both ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_MANAGEMENT_NETWORK_REQUIRED ) ) . and ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.replacements ( org.ovirt.engine.core.bll.network.cluster.NetworkClusterValidatorTestBase.hasItem ( org.ovirt.engine.core.bll.network.cluster.NetworkClusterValidatorTestBase.NETWORK_NAME_REPLACEMENT ) ) ) ) ; }

Target:
public void managementNetworkRequiredInvalid ( ) { testManagementNetworkRequired ( true , false , org.hamcrest.CoreMatchers.both ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_MANAGEMENT_NETWORK_REQUIRED ) ) . and ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.replacements ( org.ovirt.engine.core.bll.network.cluster.NetworkClusterValidatorTestBase.hasItem ( org.ovirt.engine.core.bll.network.cluster.NetworkClusterValidatorTestBase.NETWORK_NAME_REPLACEMENT ) ) ) ) ; }
Source:
public void setksm_state ( java.lang.Boolean value ) { this . mVdsStatistics.setksm_state ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "ksm_state" ) ) ; }

Target:
public void setPmSecondaryUser ( java.lang.String value ) { mVdsStatic.setPmSecondaryUser ( value ) ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.storage.StorageListModel storageListModel = ( ( org.ovirt.engine.ui.uicommonweb.models.storage.StorageListModel ) ( result.getState ( ) ) ) ; storageListModel.cleanConnection ( storageListModel.connection , storageListModel.hostId ) ; storageListModel.OnFinish ( storageListModel.context , false , storageListModel.storageModel ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.storage.StorageListModel storageListModel = ( ( org.ovirt.engine.ui.uicommonweb.models.storage.StorageListModel ) ( result.getState ( ) ) ) ; storageListModel.cleanConnection ( storageListModel.connection , storageListModel.hostId ) ; storageListModel.OnFinish ( storageListModel.context , false , storageListModel.storageModel ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.gluster.BrickProperties getBrickProperties ( ) { org.ovirt.engine.core.common.businessentities.gluster.BrickProperties brickProperties = new org.ovirt.engine.core.common.businessentities.gluster.BrickProperties ( ) ; brickProperties.setBrickId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; brickProperties.setPort ( 24009 ) ; brickProperties.setStatus ( GlusterStatus.UP ) ; brickProperties.setPid ( 1459 ) ; return brickProperties ; }

Target:
private org.ovirt.engine.core.common.businessentities.gluster.BrickProperties getBrickProperties ( ) { org.ovirt.engine.core.common.businessentities.gluster.BrickProperties brickProperties = new org.ovirt.engine.core.common.businessentities.gluster.BrickProperties ( ) ; brickProperties.setBrickId ( org.ovirt.engine.core.bll.gluster.GetGlusterVolumeAdvancedDetailsQueryTest.BRICK_ID ) ; brickProperties.setPort ( 24009 ) ; brickProperties.setStatus ( GlusterStatus.UP ) ; brickProperties.setPid ( 1459 ) ; return brickProperties ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { clearVms ( ) ; clearValidations ( ) ; loadProviders ( ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { validateSource ( ) ; clearVms ( ) ; clearValidations ( ) ; loadProviders ( ) ; }
Source:
public void edit ( final org.ovirt.engine.ui.uicommonweb.models.vms.VmInterfaceModel iface ) { driver.edit ( iface ) ; hideMacWhenNotEnabled ( iface ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { if ( "IsAvailable" . equals ( ( ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ) ( args ) ) . PropertyName ) ) { hideMacWhenNotEnabled ( iface ) ; } }
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 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:
public static void TryRunHighAvailableVmsOnVmDown ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.common.businessentities.VM vm = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDAO ( ) . get ( vmId ) ; org.ovirt.engine.core.bll.HighAvailableVmsDirector.TryRunHighAvailableVm ( vm.getvds_group_name ( ) ) ; }

Target:
public static void TryRunHighAvailableVmsOnVmDown ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.common.businessentities.VM vm = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDao ( ) . get ( vmId ) ; org.ovirt.engine.core.bll.HighAvailableVmsDirector.TryRunHighAvailableVm ( vm.getvds_group_name ( ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { updateVms ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . < java.util.List < org.ovirt.engine.core.common.businessentities.VM > > getReturnValue ( ) ) ; }

Target:
public void onSuccess ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue returnValue ) { updateVms ( returnValue.< java.util.List < org.ovirt.engine.core.common.businessentities.VM > > getReturnValue ( ) ) ; }
Source:
private boolean liveActionRequired ( ) { return ( ( oldVmDevice.getIsPlugged ( ) ) && ( org.ovirt.engine.core.bll.network.vm.UpdateVmInterfaceCommand.getParameters ( ) . isPlugged ( ) ) ) && ( ( org.ovirt.engine.core.bll.network.vm.UpdateVmInterfaceCommand.getVm ( ) . getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.Up ) ) ; }

Target:
private boolean liveActionRequired ( ) { return ( ( oldVmDevice.getIsPlugged ( ) ) && ( org.ovirt.engine.core.bll.network.vm.UpdateVmInterfaceCommand.getInterface ( ) . isPlugged ( ) ) ) && ( ( org.ovirt.engine.core.bll.network.vm.UpdateVmInterfaceCommand.getVm ( ) . getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.Up ) ) ; }
Source:
private void failureEventHandler ( final java.lang.String description , final java.lang.String errorMessage ) { handleNotLoggedInEvent ( errorMessage ) ; frontendFailureEvent.raise ( org.ovirt.engine.ui.frontend.Frontend.class , new org.ovirt.engine.ui.frontend.FrontendFailureEventArgs ( new org.ovirt.engine.ui.frontend.Message ( description , errorMessage ) ) ) ; }

Target:
public void storeInHttpSession ( final java.lang.String key , final java.lang.String value ) { getOperationManager ( ) . storeInHttpSession ( key , value ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { validator = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.provider.RemoveProviderCommand.RemoveProviderValidator ( vmDao , networkDao , provider ) ) ; org.mockito.Mockito.when ( networkDao.getAllForProvider ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( networks ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { validator = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.provider.RemoveProviderCommand.RemoveProviderValidator ( vmDao , networkDao , provider ) ) ; org.mockito.Mockito.when ( networkDao.getAllForProvider ( org.mockito.ArgumentMatchers.any ( ) ) ) . thenReturn ( networks ) ; }
Source:
public void testConvertFieldEnumValueToActualValue ( ) { org.ovirt.engine.core.searchbackend.EnumValueAutoCompleter comp = new org.ovirt.engine.core.searchbackend.EnumValueAutoCompleter ( org.ovirt.engine.core.searchbackend.Jedi.class ) ; assertEquals ( "MACE" , "4" , comp.convertFieldEnumValueToActualValue ( "MACE" ) ) ; assertEquals ( "mace" , "4" , comp.convertFieldEnumValueToActualValue ( "mace" ) ) ; }

Target:
public void testConvertFieldEnumValueToActualValue ( ) { org.ovirt.engine.core.searchbackend.EnumValueAutoCompleter comp = new org.ovirt.engine.core.searchbackend.EnumValueAutoCompleter ( org.ovirt.engine.core.searchbackend.Jedi.class ) ; org.junit.Assert.assertEquals ( "MACE" , "4" , comp.convertFieldEnumValueToActualValue ( "MACE" ) ) ; org.junit.Assert.assertEquals ( "mace" , "4" , comp.convertFieldEnumValueToActualValue ( "mace" ) ) ; }
Source:
public void testAddGroupUsingDomainFromGroupName ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( ( ( "ADGROUP@" + ( DOMAIN ) ) + ": name=*" ) , SearchType.AdGroup , getAdGroupWithDomain ( 0 ) ) ; setUpCreationExpectations ( VdcActionType.AddUser , org.ovirt.engine.core.common.action.AddUserParameters.class , new java.lang.String [ ] { "AdGroup.id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , true , true , null , VdcQueryType.GetAdGroupById , 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 ( ( ( ( DOMAIN ) + "/" ) + ( NAMES [ 0 ] ) ) ) ; javax.ws.rs.core.Response response = collection.add ( model ) ; assertEquals ( 201 , response.getStatus ( ) ) ; assertTrue ( ( ( response.getEntity ( ) ) instanceof org.ovirt.engine.api.model.Group ) ) ; verifyModel ( ( ( org.ovirt.engine.api.model.Group ) ( response.getEntity ( ) ) ) , 0 ) ; }

Target:
public void testAddGroupWithExplicitDirectoryName ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( ( ( ( "ADGROUP@" + ( DOMAIN ) ) + ": allnames=" ) + ( 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.Domain domain = new org.ovirt.engine.api.model.Domain ( ) ; domain.setName ( org.ovirt.engine.api.restapi.resource.DOMAIN ) ; org.ovirt.engine.api.model.Group model = new org.ovirt.engine.api.model.Group ( ) ; model.setName ( NAMES [ 0 ] ) ; model.setDomain ( domain ) ; 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 boolean isSetTimezone ( ) { return ( this . timezone ) != null ; }

Target:
public void setInitialization ( org.ovirt.engine.sdk.entities.Initialization value ) { this . initialization = value ; }
Source:
public void statusNotSupportedForHostUpgradeInternal ( ) { host.setStatus ( VDSStatus.Unassigned ) ; org.junit.Assert.assertThat ( validator.statusSupportedForHostUpgradeInternal ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.CANNOT_UPGRADE_HOST_STATUS_ILLEGAL ) ) ; }

Target:
public void statusNotSupportedForHostUpgradeInternal ( ) { host.setStatus ( VDSStatus.Unassigned ) ; org.hamcrest.MatcherAssert.assertThat ( validator.statusSupportedForHostUpgradeInternal ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.CANNOT_UPGRADE_HOST_STATUS_ILLEGAL ) ) ; }
Source:
public void getIdByTypeAndStatusReturnsIdForExistingByTypeAndStatus ( ) { org.junit.Assert.assertEquals ( getExistingEntityId ( ) , dao.getId ( org.ovirt.engine.core.dao.SnapshotDaoTest.EXISTING_VM_ID , SnapshotType.REGULAR , SnapshotStatus.OK ) ) ; }

Target:
public void getIdByTypeAndStatusReturnsIdForExistingByTypeAndStatus ( ) { org.junit.jupiter.api.Assertions.assertEquals ( getExistingEntityId ( ) , dao.getId ( org.ovirt.engine.core.dao.SnapshotDaoTest.EXISTING_VM_ID , SnapshotType.REGULAR , SnapshotStatus.OK ) ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getQuotaId ( ) { return this . mVmStatic.getQuotaId ( ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getQuotaId ( ) { return this . vmStatic.getQuotaId ( ) ; }
Source:
private org.hamcrest.Matcher < org.ovirt.engine.core.bll.ValidationResult > failsWithNetworkInterfacesNotExclusivelyUsedByNetwork ( ) { return org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.NETWORK_INTERFACES_NOT_EXCLUSIVELY_USED_BY_NETWORK , org.ovirt.engine.core.utils.ReplacementUtils.replaceWith ( NetworkAttachmentsValidator.VAR_NETWORK_INTERFACES_NOT_EXCLUSIVELY_USED_BY_NETWORK_LIST , java.util.Collections.singletonList ( nic.getName ( ) ) ) ) ; }

Target:
public void testValidateNetworkExclusiveOnNicAtMostOneNonVmNetwork ( ) throws java.lang.Exception { checkVmNetworkIsSoleAssignedInterface ( true , java.util.Arrays.asList ( NetworkType.VLAN , NetworkType.NON_VM ) , vlanNetwork , nonVmNetwork1 ) ; }
Source:
public void removeForExistingVds ( ) { org.ovirt.engine.core.compat.Guid vdsId = new org.ovirt.engine.core.compat.Guid ( "11111111-1111-1111-1111-111111111112" ) ; dao.remove ( vdsId ) ; org.ovirt.engine.core.common.businessentities.VdsKdumpStatus found = dao.get ( vdsId ) ; org.junit.Assert.assertNull ( found ) ; }

Target:
public void removeForExistingVds ( ) { org.ovirt.engine.core.compat.Guid vdsId = new org.ovirt.engine.core.compat.Guid ( "11111111-1111-1111-1111-111111111112" ) ; dao.remove ( vdsId ) ; org.ovirt.engine.core.common.businessentities.VdsKdumpStatus found = dao.get ( vdsId ) ; org.junit.jupiter.api.Assertions.assertNull ( found ) ; }
Source:
private void updateWidgetTitle ( java.lang.String title ) { contentWidget.asWidget ( ) . setTitle ( title ) ; }

Target:
public void markAsValid ( ) { if ( editorStateValid ) { super . markAsValid ( ) ; } labelTooltip.setText ( labelConfiguredTooltip ) ; labelTooltip.reconfigure ( ) ; contentWidgetContainerTooltip.setText ( contentWidgetContainerConfiguredTooltip ) ; contentWidgetContainerTooltip.reconfigure ( ) ; }
Source:
private void setUpGetNotExistingEntityExpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.GetStorageServerConnectionById , org.ovirt.engine.core.common.queries.StorageServerConnectionQueryParametersBase.class , new java.lang.String [ ] { "ServerConnectionId" } , new java.lang.Object [ ] { GUIDS [ 3 ] . toString ( ) } , null ) ; }

Target:
private void setUpGetNotExistingEntityExpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( QueryType.GetStorageServerConnectionById , org.ovirt.engine.core.common.queries.StorageServerConnectionQueryParametersBase.class , new java.lang.String [ ] { "ServerConnectionId" } , new java.lang.Object [ ] { GUIDS [ 3 ] . toString ( ) } , null ) ; }
Source:
public org.ovirt.engine.api.resource.openstack.OpenStackVolumeProviderResource getOpenStackVolumeProvider ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.openstack.BackendOpenStackVolumeProviderResource ( id , this ) ) ; }

Target:
public org.ovirt.engine.api.resource.openstack.OpenstackVolumeProviderResource getProviderResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.openstack.BackendOpenStackVolumeProviderResource ( id , this ) ) ; }
Source:
public java.lang.String getLUN_id ( ) { return this . id ; }

Target:
public java.lang.String getLUNId ( ) { return this . id ; }
Source:
public void setRoundedElapsedTime ( java.lang.Double value ) { this . vmStatistics.setRoundedElapsedTime ( value ) ; }

Target:
public long getDowntime ( ) { return this . vmDynamic.getDowntime ( ) ; }