auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private boolean isVnicProfileChanged ( org.ovirt.engine.core.common.businessentities.network.VmNic oldNic , org.ovirt.engine.core.common.businessentities.network.VmNic newProfile ) { return ! ( org.apache.commons.lang.ObjectUtils.equals ( oldNic.getVnicProfileId ( ) , newProfile.getVnicProfileId ( ) ) ) ; }

Target:
private boolean isVnicProfileChanged ( org.ovirt.engine.core.common.businessentities.network.VmNic oldNic , org.ovirt.engine.core.common.businessentities.network.VmNic newNic ) { return ! ( org.apache.commons.lang.ObjectUtils.equals ( oldNic.getVnicProfileId ( ) , newNic.getVnicProfileId ( ) ) ) ; }
Source:
private void mockStorageDomainDAOGetForStoragePool ( int domainSpaceGB , org.ovirt.engine.core.compat.Guid storageDomainId ) { org.mockito.Mockito.when ( sdDAO.getForStoragePool ( storageDomainId , org.ovirt.engine.core.bll.RemoveSnapshotCommandTest.STORAGE_POOLD_ID ) ) . thenReturn ( org.ovirt.engine.core.bll.RemoveSnapshotCommandTest.createStorageDomain ( domainSpaceGB , storageDomainId ) ) ; }

Target:
public void testValidateImageNotInTemplateTrue ( ) { org.mockito.Mockito.when ( vmTemplateDAO.get ( mockSourceImageAndGetId ( ) ) ) . thenReturn ( null ) ; org.junit.Assert.assertTrue ( "validation should succeed" , cmd.validateImageNotInTemplate ( ) ) ; }
Source:
public boolean runInThread ( java.lang.Runnable runnable ) { try { executorService.submit ( runnable ) ; return true ; } catch ( java.util.concurrent.RejectedExecutionException e ) { return false ; } }

Target:
public boolean runInThread ( java.lang.Runnable runnable ) { try { executorService.submit ( runnable ) ; return true ; } catch ( java.util.concurrent.RejectedExecutionException e ) { log.error ( "Task rejected due to: " , e ) ; return false ; } }
Source:
private void logSsoOnDesktopFailed ( org.ovirt.engine.ui.uicommonweb.ILogger logger , java.lang.String vmName ) { logger.Info ( ( ( "SpiceConsoleManager::Connect: Failed to perform SSO on Destkop " + vmName ) + ", cancel open spice console request." ) ) ; }

Target:
private void logSsoOnDesktopFailed ( org.ovirt.engine.ui.uicommonweb.ILogger logger , java.lang.String vmName ) { logger.info ( ( ( "SpiceConsoleManager::Connect: Failed to perform SSO on Destkop " + vmName ) + ", cancel open spice console request." ) ) ; }
Source:
private org.ovirt.engine.core.bll.ValidationResult storagePoolExists ( ) { return ( org.ovirt.engine.core.bll.network.dc.UpdateNetworkCommand.getStoragePool ( ) ) == null ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_POOL_NOT_EXIST ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.Network getOldNetwork ( ) { if ( ( oldNetwork ) == null ) { oldNetwork = getNetworkById ( org.ovirt.engine.core.bll.network.dc.UpdateNetworkCommand.getNetworks ( ) ) ; } return oldNetwork ; }
Source:
public void validateEnumsWrongArchitecture ( ) { org.ovirt.engine.api.model.CPU entity = new org.ovirt.engine.api.model.CPU ( ) ; entity.setArchitecture ( "wrongarchitecture" ) ; new org.ovirt.engine.api.restapi.resource.validation.CPUValidator ( ) . validateEnums ( entity ) ; }

Target:
public void validateEnumsWrongArchitecture ( ) { org.ovirt.engine.api.model.Cpu entity = new org.ovirt.engine.api.model.Cpu ( ) ; entity.setArchitecture ( "wrongarchitecture" ) ; new org.ovirt.engine.api.restapi.resource.validation.CPUValidator ( ) . validateEnums ( entity ) ; }
Source:
public void testGetRelevantQuotasExistingVdsGroup ( ) throws java.lang.Exception { assertGetAllRelevantQuoatsForVdsGroup ( FixturesTool.VDS_GROUP_RHEL6_NFS , org.ovirt.engine.core.dao.QuotaDAOTest.NUM_QUOTAS ) ; }

Target:
public void testGetRelevantQuotasExistingVdsGroup ( ) throws java.lang.Exception { assertGetAllRelevantQuoatsForVdsGroup ( FixturesTool.VDS_GROUP_RHEL6_NFS , org.ovirt.engine.core.dao.QuotaDAOTest.VDS_GRUOP_NUM_QUOTAS ) ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.AddVmToPoolCommand.getVmPoolDao ( ) . addVmToPool ( new org.ovirt.engine.core.common.businessentities.VmPoolMap ( org.ovirt.engine.core.bll.AddVmToPoolCommand.getVmId ( ) , org.ovirt.engine.core.bll.AddVmToPoolCommand.getVmPoolId ( ) ) ) ; org.ovirt.engine.core.bll.AddVmToPoolCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { vmPoolDao.addVmToPool ( new org.ovirt.engine.core.common.businessentities.VmPoolMap ( org.ovirt.engine.core.bll.AddVmToPoolCommand.getVmId ( ) , org.ovirt.engine.core.bll.AddVmToPoolCommand.getVmPoolId ( ) ) ) ; org.ovirt.engine.core.bll.AddVmToPoolCommand.setSucceeded ( true ) ; }
Source:
protected void InitDetailModels ( ) { super . InitDetailModels ( ) ; org.ovirt.engine.core.compat.ObservableCollection < org.ovirt.engine.ui.uicommonweb.models.EntityModel > list = new org.ovirt.engine.core.compat.ObservableCollection < org.ovirt.engine.ui.uicommonweb.models.EntityModel > ( ) ; list.add ( new org.ovirt.engine.ui.uicommonweb.models.configure.roles_ui.RolePermissionListModel ( ) ) ; setDetailModels ( list ) ; }

Target:
protected void InitDetailModels ( ) { super . InitDetailModels ( ) ; org.ovirt.engine.ui.uicompat.ObservableCollection < org.ovirt.engine.ui.uicommonweb.models.EntityModel > list = new org.ovirt.engine.ui.uicompat.ObservableCollection < org.ovirt.engine.ui.uicommonweb.models.EntityModel > ( ) ; list.add ( new org.ovirt.engine.ui.uicommonweb.models.configure.roles_ui.RolePermissionListModel ( ) ) ; setDetailModels ( list ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel read ( boolean value , org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel model ) { if ( model instanceof org.ovirt.engine.ui.uicommonweb.models.vms.SpiceConsoleModel ) { updateModel ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.SpiceConsoleModel ) ( model ) ) . getspice ( ) , value ) ; } return model ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel read ( boolean value , org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel model ) { if ( model instanceof org.ovirt.engine.ui.uicommonweb.models.vms.SpiceConsoleModel ) { updateModel ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.SpiceConsoleModel ) ( model ) ) . getSpiceImpl ( ) , value ) ; } return model ; }
Source:
public void validateVmMemoryCanStartOnVdsHostTooSmallButLowOverhead ( ) { vds.setMemFree ( 8835L ) ; vds.setGuestOverhead ( 0 ) ; boolean vmPassedMemoryRequirement = org.ovirt.engine.core.bll.scheduling.SlaValidator.getInstance ( ) . hasPhysMemoryToRunVM ( vds , vm , 0 ) ; org.junit.Assert.assertEquals ( vmPassedMemoryRequirement , true ) ; }

Target:
public void validateVmMemoryCantStartOnVdsHostTooSmall ( ) { vds.setMemFree ( 8835L ) ; boolean vmPassedMemoryRequirement = slaValidator.hasPhysMemoryToRunVM ( vds , vm , 0 ) ; org.junit.Assert.assertFalse ( vmPassedMemoryRequirement ) ; }
Source:
public static java.util.function.Predicate < org.ovirt.api.metamodel.concepts.Concept > named ( org.ovirt.api.metamodel.concepts.Name name ) { return ( x ) -> java.util.Objects.equals ( x.getName ( ) , name ) ; }

Target:
public void addAnnotation ( org.ovirt.api.metamodel.concepts.Annotation newAnnotation ) { annotations.add ( newAnnotation ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.StorageDomain a ) { return ( ( a.getstorage_domain_type ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainType.Master ) ) && ( ( a.getstatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Active ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.StorageDomain a ) { return ( ( a.getStorageDomainType ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainType.Master ) ) && ( ( a.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Active ) ) ; }
Source:
private void addHostDeviceColumn ( org.ovirt.engine.ui.common.widget.editor.EntityModelCellTable < org.ovirt.engine.ui.uicommonweb.models.ListModel < org.ovirt.engine.ui.uicommonweb.models.EntityModel < org.ovirt.engine.core.common.businessentities.HostDeviceView > > > hostDeviceTable , java.lang.String header , org.ovirt.engine.ui.common.widget.table.column.AbstractTextColumn < org.ovirt.engine.ui.uicommonweb.models.EntityModel < org.ovirt.engine.core.common.businessentities.HostDeviceView > > column ) { column.makeSortable ( ) ; hostDeviceTable.addColumn ( column , header ) ; }

Target:
private void addHostDeviceColumn ( org.ovirt.engine.ui.common.widget.editor.EntityModelCellTable < org.ovirt.engine.ui.uicommonweb.models.ListModel < org.ovirt.engine.ui.uicommonweb.models.EntityModel < org.ovirt.engine.core.common.businessentities.HostDeviceView > > > hostDeviceTable , java.lang.String header , java.lang.String width , org.ovirt.engine.ui.common.widget.table.column.AbstractTextColumn < org.ovirt.engine.ui.uicommonweb.models.EntityModel < org.ovirt.engine.core.common.businessentities.HostDeviceView > > column ) { column.makeSortable ( ) ; hostDeviceTable.addColumn ( column , header , width ) ; }
Source:
protected void initDetailModels ( ) { super . initDetailModels ( ) ; org.ovirt.engine.ui.uicompat.ObservableCollection < org.ovirt.engine.ui.uicommonweb.models.EntityModel > list = new org.ovirt.engine.ui.uicompat.ObservableCollection < org.ovirt.engine.ui.uicommonweb.models.EntityModel > ( ) ; list.add ( new org.ovirt.engine.ui.uicommonweb.models.configure.roles_ui.RolePermissionListModel ( ) ) ; setDetailModels ( list ) ; }

Target:
private void setDetailList ( final org.ovirt.engine.ui.uicommonweb.models.configure.roles_ui.RolePermissionListModel rolePermissionListModel ) { java.util.List < org.ovirt.engine.ui.uicommonweb.models.EntityModel > list = new java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.EntityModel > ( ) ; list.add ( rolePermissionListModel ) ; setDetailModels ( list ) ; }
Source:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.storage.AddStoragePoolWithStoragesCommand.getStoragePoolId ( ) . toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.POOL , VdcBllMessages.ACTION_TYPE_FAILED_OBJECT_LOCKED ) ) ; }

Target:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.storage.AddStoragePoolWithStoragesCommand.getStoragePoolId ( ) . toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.POOL , EngineMessage.ACTION_TYPE_FAILED_OBJECT_LOCKED ) ) ; }
Source:
public boolean getRefreshStatistics ( ) { if ( ( vmsRefresher ) == null ) { return false ; } return vmsRefresher.getRefreshStatistics ( ) ; }

Target:
boolean isTimeToRefreshStatistics ( ) { return ( refreshIteration ) == ( NUMBER_HOST_REFRESHES_BEFORE_SAVE ) ; }
Source:
private void assertValidateMsgCount ( java.util.List < java.lang.String > validationMessages , java.lang.String msg , int count ) { org.junit.Assert.assertEquals ( java.util.Collections.frequency ( validationMessages , msg ) , count ) ; }

Target:
private void assertValidateMsgCount ( java.util.List < java.lang.String > validationMessages , java.lang.String msg , int count ) { org.junit.jupiter.api.Assertions.assertEquals ( java.util.Collections.frequency ( validationMessages , msg ) , count ) ; }
Source:
protected void onSelectedItemChanged ( ) { super . onSelectedItemChanged ( ) ; updateActionAvailability ( ) ; }

Target:
private void onSaveVm ( ) { org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel ) ( getWindow ( ) ) ) ; java.lang.String name = model.getName ( ) . getEntity ( ) ; setcurrentVm ( new org.ovirt.engine.core.common.businessentities.VM ( ) ) ; validateVm ( model , name ) ; }
Source:
public void onTabAccessibleChange ( org.ovirt.engine.ui.common.widget.tab.TabAccessibleChangeEvent event ) { getView ( ) . recalculateSize ( ) ; getView ( ) . showScrollButtons ( ) ; }

Target:
public void onTabAccessibleChange ( org.ovirt.engine.ui.common.widget.tab.TabAccessibleChangeEvent event ) { onTabAccessibleChanged ( ) ; }
Source:
public void testGetTreeForEntityWithClusterType ( ) { baseTestGetTreeForEntity ( org.ovirt.engine.core.dao.PermissionDaoTest.CLUSTER_ENTITY_ID , VdcObjectType.VdsGroups , org.ovirt.engine.core.dao.PermissionDaoTest.VDS_GROUP_ID ) ; }

Target:
public void testGetTreeForEntityWithClusterType ( ) { baseTestGetTreeForEntity ( org.ovirt.engine.core.dao.PermissionDaoTest.CLUSTER_ENTITY_ID , VdcObjectType.Cluster , org.ovirt.engine.core.dao.PermissionDaoTest.CLUSTER_ID ) ; }
Source:
org.ovirt.engine.core.common.action.PersistentSetupNetworksParameters buildParameters ( org.ovirt.engine.core.compat.Guid vdsId , java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > labeledNetworksToBeAdded , java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > labeledNetworksToBeRemoved , java.util.Map < java.lang.String , org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > nicsByLabel , java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > labeledNicsToBeRemoved ) ;

Target:
org.ovirt.engine.core.common.action.PersistentHostSetupNetworksParameters buildParameters ( org.ovirt.engine.core.compat.Guid vdsId , java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > labeledNetworksToBeAdded , java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > labeledNetworksToBeRemoved , java.util.Map < java.lang.String , org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > nicsByLabel ) ;
Source:
protected org.ovirt.engine.core.compat.Guid getQuotaId ( ) { if ( ( ( getNewDisk ( ) ) != null ) && ( isDiskImage ( ) ) ) { return ( ( org.ovirt.engine.core.common.businessentities.storage.DiskImage ) ( getNewDisk ( ) ) ) . getQuotaId ( ) ; } return null ; }

Target:
protected org.ovirt.engine.core.compat.Guid getQuotaId ( ) { if ( ( ( getNewDisk ( ) ) != null ) && ( isInternalManagedDisk ( ) ) ) { return ( ( org.ovirt.engine.core.common.businessentities.storage.DiskImage ) ( getNewDisk ( ) ) ) . getQuotaId ( ) ; } return null ; }
Source:
public void cleaningCompensationDataAfterSuccess ( ) { macsToReleaseOnCommit.forEach ( macPool :: freeMac ) ; }

Target:
public void cleaningCompensationDataAfterSuccess ( ) { macPool.freeMacs ( macsToReleaseOnCommit ) ; }
Source:
public void sendMessage ( byte [ ] message ) { send ( new org.ovirt.vdsm.jsonrpc.client.reactors.stomp.impl.Message ( ) . send ( ) . withHeader ( org.ovirt.vdsm.jsonrpc.client.reactors.stomp.impl.Message.HEADER_DESTINATION , org.ovirt.vdsm.jsonrpc.client.reactors.stomp.StompClient.REQUEST_QUEUE ) . withContent ( new java.lang.String ( message , org.ovirt.vdsm.jsonrpc.client.utils.JsonUtils.UTF8 ) ) . build ( ) ) ; }

Target:
public void sendMessage ( byte [ ] message ) { send ( new org.ovirt.vdsm.jsonrpc.client.reactors.stomp.impl.Message ( ) . send ( ) . withHeader ( org.ovirt.vdsm.jsonrpc.client.reactors.stomp.impl.Message.HEADER_DESTINATION , org.ovirt.vdsm.jsonrpc.client.reactors.stomp.REQUEST_QUEUE ) . withContent ( message ) . build ( ) ) ; }
Source:
protected org.ovirt.engine.core.dao.network.NetworkDao getNetworkDao ( ) { return mockNetworkDao ; }

Target:
public void setUp ( ) { org.mockito.Mockito.doReturn ( mockClusterDao ) . when ( underTest ) . getClusterDao ( ) ; org.mockito.Mockito.doReturn ( mockNetworkClusterDao ) . when ( underTest ) . getNetworkClusterDao ( ) ; org.mockito.Mockito.doReturn ( mockNetworkDao ) . when ( underTest ) . getNetworkDao ( ) ; }
Source:
public org.ovirt.vdsmfake.domain.Host getActiveHost ( ) { final java.lang.String serverName = org.ovirt.vdsmfake.ContextHolder.getServerName ( ) ; final org.ovirt.vdsmfake.domain.Host host = org.ovirt.vdsmfake.domain.VdsmManager.getInstance ( ) . getHostByName ( serverName ) ; return host ; }

Target:
public org.ovirt.vdsmfake.domain.Host getActiveHost ( ) { final java.lang.String serverName = org.ovirt.vdsmfake.ContextHolder.getServerName ( ) ; final org.ovirt.vdsmfake.domain.Host host = vdsmManager.getHostByName ( serverName ) ; return host ; }
Source:
private void updateProperties ( ) { org.ovirt.engine.core.common.businessentities.DbUser user = ( ( org.ovirt.engine.core.common.businessentities.DbUser ) ( getEntity ( ) ) ) ; setDomain ( user.getDomain ( ) ) ; setEmail ( user.getEmail ( ) ) ; setStatus ( user.getLdapStatus ( ) ) ; }

Target:
private void updateProperties ( ) { org.ovirt.engine.core.common.businessentities.DbUser user = ( ( org.ovirt.engine.core.common.businessentities.DbUser ) ( getEntity ( ) ) ) ; setDomain ( user.getDomain ( ) ) ; setEmail ( user.getEmail ( ) ) ; setActive ( user.isActive ( ) ) ; }
Source:
public void remove ( final org.ovirt.engine.core.compat.Guid commandId ) { commandMap.remove ( commandId ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getCommandEntityDao ( ) . remove ( commandId ) ; }

Target:
public java.util.Set < org.ovirt.engine.core.compat.Guid > keySet ( ) { initializeCache ( ) ; return commandMap.keySet ( ) ; }
Source:
private void writeToAuditLog ( ) { try { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( logable , getAuditLogTypeValue ( ) ) ; } catch ( java.lang.RuntimeException ex ) { log.error ( "RegisterVdsQuery::WriteToAuditLog: An exception has been thrown." , ex ) ; } }

Target:
private void writeToAuditLog ( ) { try { auditLogDirector.log ( logable , getAuditLogTypeValue ( ) ) ; } catch ( java.lang.RuntimeException ex ) { log.error ( "RegisterVdsQuery::WriteToAuditLog: An exception has been thrown." , ex ) ; } }
Source:
public void Cancel ( ) { setWindow ( null ) ; org.ovirt.engine.ui.frontend.Frontend.Unsubscribe ( ) ; }

Target:
public void cancel ( ) { setWindow ( null ) ; org.ovirt.engine.ui.frontend.Frontend.Unsubscribe ( ) ; }
Source:
protected void validateContainerFormat ( com.woorea.openstack.glance.model.Image glanceImage ) { if ( ! ( glanceImage.getContainerFormat ( ) . equals ( org.ovirt.engine.core.bll.provider.OpenStackImageProviderProxy.GlanceImageContainer.BARE.getValue ( ) ) ) ) { throw new java.lang.RuntimeException ( "Unsupported container format" ) ; } }

Target:
protected void validateContainerFormat ( com.woorea.openstack.glance.model.Image glanceImage ) { if ( ! ( glanceImage.getContainerFormat ( ) . equals ( org.ovirt.engine.core.bll.provider.OpenStackImageProviderProxy.GlanceImageContainer.BARE.getValue ( ) ) ) ) { throw new org.ovirt.engine.core.bll.provider.OpenStackImageException ( OpenStackImageException.ErrorType.UNSUPPORTED_CONTAINER_FORMAT , ( "Unsupported container format: " + ( glanceImage.getContainerFormat ( ) ) ) ) ; } }
Source:
public boolean Match ( org.ovirt.engine.core.common.businessentities.storage_pool source ) { return id.equals ( source.getId ( ) ) ; }

Target:
public boolean match ( org.ovirt.engine.core.common.businessentities.StoragePool source ) { return id.equals ( source.getId ( ) ) ; }
Source:
public void testIsNotLocalFsWithDefaultCluster ( ) { storagePool.setIsLocal ( true ) ; org.mockito.Mockito.doReturn ( false ) . when ( validator ) . containsDefaultCluster ( ) ; org.junit.Assert.assertTrue ( validator.isNotLocalfsWithDefaultCluster ( ) . isValid ( ) ) ; }

Target:
public void testIsNotLocalFsWithDefaultCluster ( ) { storagePool.setIsLocal ( true ) ; org.mockito.Mockito.doReturn ( false ) . when ( validator ) . containsDefaultCluster ( ) ; org.junit.Assert.assertThat ( validator.isNotLocalfsWithDefaultCluster ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void testUpdate ( ) { existingVmStatic.setdescription ( "updated" ) ; dao.update ( existingVmStatic ) ; org.ovirt.engine.core.common.businessentities.VmStatic result = dao.get ( org.ovirt.engine.core.dao.VmStaticDAOTest.EXISTING_VM_ID ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingVmStatic , result ) ; }

Target:
public void testUpdate ( ) { existingVmStatic.setDescription ( "updated" ) ; dao.update ( existingVmStatic ) ; org.ovirt.engine.core.common.businessentities.VmStatic result = dao.get ( org.ovirt.engine.core.dao.VmStaticDAOTest.EXISTING_VM_ID ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingVmStatic , result ) ; }
Source:
protected void onSelectedItemChanged ( ) { super . onSelectedItemChanged ( ) ; updateActionAvailability ( ) ; }

Target:
protected void executeDiskModifications ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel model ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel.getcurrentVm ( ) . setId ( vmId ) ; model.getInstanceImages ( ) . executeDiskModifications ( org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel.getcurrentVm ( ) ) ; }
Source:
protected void updateStorageDomains ( final org.ovirt.engine.core.common.businessentities.StoragePool datacenter ) { }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel diskModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( target ) ) ; org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain = ( ( org.ovirt.engine.core.common.businessentities.StorageDomain ) ( returnValue ) ) ; diskModel.getStorageDomain ( ) . setSelectedItem ( storageDomain ) ; }
Source:
public void setHBAs ( java.util.Map < java.lang.String , java.util.List < java.util.Map < java.lang.String , java.lang.String > > > HBAs ) { this . mVdsDynamic.setHBAs ( HBAs ) ; }

Target:
public void setHBAs ( java.util.Map < java.lang.String , java.util.List < java.util.Map < java.lang.String , java.lang.String > > > HBAs ) { vdsDynamic.setHBAs ( HBAs ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VmTemplate lookupInstanceTypeByName ( org.ovirt.engine.api.model.Template template ) { return getEntity ( org.ovirt.engine.core.common.businessentities.VmTemplate.class , VdcQueryType.GetVmTemplate , new org.ovirt.engine.core.common.queries.GetVmTemplateParameters ( template.getName ( ) ) , "GetVmTemplate" ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.VmTemplate lookupInstanceTypeByName ( org.ovirt.engine.api.model.Template template ) { return getEntity ( org.ovirt.engine.core.common.businessentities.VmTemplate.class , VdcQueryType.GetInstanceType , new org.ovirt.engine.core.common.queries.GetVmTemplateParameters ( template.getName ( ) ) , "GetVmTemplate" ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { setItems ( new org.ovirt.engine.ui.frontend.INewAsyncCallback ( ) { @ java.lang.Override public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { doInit ( ) ; } } , externalVms ) ; }

Target:
public void onSuccess ( org.ovirt.engine.core.common.businessentities.StoragePool returnValue ) { setItems ( new org.ovirt.engine.ui.frontend.AsyncCallback ( ) { @ java.lang.Override public void onSuccess ( java.lang.Object returnValue ) { doInit ( ) ; } } , externalVms ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepSessionResume ( java.lang.String volumeName , java.lang.String slaveHostName , java.lang.String slaveVolumeName , boolean force ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepSessionResume ( java.lang.String volumeName , java.lang.String slaveHostName , java.lang.String slaveVolumeName , java.lang.String userName , boolean force ) ;
Source:
public void checkMaskFormatValidation ( ) { runSetup ( TEST_MASK , false , false , VdcBllMessages.UPDATE_NETWORK_ADDR_IN_SUBNET_BAD_FORMAT.name ( ) ) ; runVerify ( TEST_MASK , VdcBllMessages.UPDATE_NETWORK_ADDR_IN_SUBNET_BAD_FORMAT.name ( ) ) ; }

Target:
public void checkMaskFormatValidation ( ) { runSetup ( org.ovirt.engine.core.common.validation.MaskConstraintTest.TEST_MASK , false , false , VdcBllMessages.UPDATE_NETWORK_ADDR_IN_SUBNET_BAD_FORMAT.name ( ) ) ; runVerify ( org.ovirt.engine.core.common.validation.MaskConstraintTest.TEST_MASK , VdcBllMessages.UPDATE_NETWORK_ADDR_IN_SUBNET_BAD_FORMAT.name ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.action.VdcActionParametersBase getRemoveDiskProfileParams ( org.ovirt.engine.core.common.businessentities.profiles.DiskProfile profile ) { return new org.ovirt.engine.core.common.action.DiskProfileParameters ( profile , profile.getId ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.action.VdcActionParametersBase getRemoveProfileParams ( org.ovirt.engine.core.common.businessentities.profiles.DiskProfile profile ) { return new org.ovirt.engine.core.common.action.DiskProfileParameters ( profile , profile.getId ( ) ) ; }
Source:
private void initSpyCommand ( ) { org.mockito.Mockito.doReturn ( true ) . when ( command ) . validateSpaceRequirements ( ) ; org.mockito.Mockito.doReturn ( true ) . when ( command ) . checkImagesStatus ( ) ; org.mockito.Mockito.doReturn ( true ) . when ( command ) . setAndValidateDiskProfiles ( ) ; }

Target:
private void initSpyCommand ( ) { org.mockito.Mockito.doReturn ( true ) . when ( command ) . validateDestDomainsSpaceRequirements ( ) ; org.mockito.Mockito.doReturn ( true ) . when ( command ) . setAndValidateDiskProfiles ( ) ; org.mockito.Mockito.doReturn ( true ) . when ( command ) . validateCreateAllSnapshotsFromVmCommand ( ) ; }
Source:
public void mapNoMethodSsoFromRestToBackend ( ) throws java.lang.Exception { org.ovirt.engine.api.model.Sso restSso = new org.ovirt.engine.api.model.Sso ( ) ; restSso.setMethods ( new org.ovirt.engine.api.model.Methods ( ) ) ; org.ovirt.engine.core.common.businessentities.SsoMethod expectedBackendSsoMethod = org.ovirt.engine.core.common.businessentities.SsoMethod.NONE ; junit.framework.Assert.assertEquals ( expectedBackendSsoMethod , org.ovirt.engine.api.restapi.types.SsoMapper.map ( restSso , null ) ) ; }

Target:
public void mapNoMethodSsoFromRestToBackend ( ) throws java.lang.Exception { org.ovirt.engine.api.model.Sso restSso = new org.ovirt.engine.api.model.Sso ( ) ; restSso.setMethods ( new org.ovirt.engine.api.model.Methods ( ) ) ; org.ovirt.engine.core.common.businessentities.SsoMethod expectedBackendSsoMethod = org.ovirt.engine.core.common.businessentities.SsoMethod.NONE ; org.junit.Assert.assertEquals ( expectedBackendSsoMethod , org.ovirt.engine.api.restapi.types.SsoMapper.map ( restSso , null ) ) ; }
Source:
private void mockNullVm ( ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseMockUtils.mockVmDao ( command , vmDAO ) ; mockGetForDisk ( null ) ; org.mockito.Mockito.when ( vmDAO.get ( command.getParameters ( ) . getVmId ( ) ) ) . thenReturn ( null ) ; }

Target:
private void mockNullVm ( ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseMockUtils.mockVmDao ( command , vmDAO ) ; mockGetForDisk ( null ) ; mockGetVmsListForDisk ( null ) ; org.mockito.Mockito.when ( vmDAO.get ( command.getParameters ( ) . getVmId ( ) ) ) . thenReturn ( null ) ; }
Source:
public org.ovirt.engine.core.common.eventqueue.EventResult call ( ) { org.ovirt.engine.core.common.eventqueue.EventResult result = new org.ovirt.engine.core.common.eventqueue.EventResult ( true , org.ovirt.engine.core.common.eventqueue.EventType.DOMAINMONITORING ) ; updateProblematicVdsData ( vdsId , vdsName , domainsInProblems ) ; updateMaintenanceVdsData ( vdsId , vdsName , domainsInMaintenance ) ; return result ; }

Target:
public org.ovirt.engine.core.common.eventqueue.EventResult call ( ) { org.ovirt.engine.core.common.eventqueue.EventResult result = new org.ovirt.engine.core.common.eventqueue.EventResult ( true , org.ovirt.engine.core.common.eventqueue.EventType.DOMAINMONITORING ) ; updateProblematicVdsData ( vdsId , vdsName , domainsInProblem ) ; updateMaintenanceVdsData ( vdsId , vdsName , domainsInMaintenance ) ; return result ; }
Source:
private void mockSameNameQuery ( boolean result ) { org.mockito.Mockito.doReturn ( result ) . when ( command ) . isVmWithSameNameExists ( org.mockito.Matchers.anyString ( ) , org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ; }

Target:
private void mockSameNameQuery ( boolean result ) { org.mockito.Mockito.doReturn ( result ) . when ( command ) . isVmWithSameNameExists ( org.mockito.ArgumentMatchers.anyString ( ) , org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.network getEntity ( int index ) { return org.ovirt.engine.api.restapi.resource.AbstractBackendNetworksResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.core.common.businessentities.network.class ) , false , index ) ; }

Target:
protected org.ovirt.engine.api.model.Network getEntity ( int index ) { return org.ovirt.engine.api.restapi.resource.AbstractBackendNetworksResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.api.model.Network.class ) , false , index ) ; }
Source:
public java.lang.String getVdcUserNameAndDomain ( ) { java.lang.String username = org.ovirt.engine.ui.frontend.Frontend.getLoggedInUser ( ) . getUserName ( ) ; java.lang.String domain = org.ovirt.engine.ui.frontend.Frontend.getLoggedInUser ( ) . getDomainControler ( ) ; return username.contains ( "@" ) ? username : ( username + "@" ) + domain ; }

Target:
public java.lang.String getUserNameAndDomain ( ) { java.lang.String username = org.ovirt.engine.ui.frontend.Frontend.getLoggedInUser ( ) . getLoginName ( ) ; java.lang.String domain = org.ovirt.engine.ui.frontend.Frontend.getLoggedInUser ( ) . getDomain ( ) ; return username.contains ( "@" ) ? username : ( username + "@" ) + domain ; }
Source:
public org.ovirt.engine.core.common.businessentities.VmPauseStatus getVmPauseStatus ( ) { return this . mVmDynamic.getPauseStatus ( ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getId ( ) { return this . vmStatic.getId ( ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.Set < org.ovirt.engine.core.common.businessentities.AdditionalFeature > ) ( source ) ) : new java.util.HashSet < org.ovirt.engine.core.common.businessentities.AdditionalFeature > ( ) ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.Set < org.ovirt.engine.core.common.businessentities.SupportedAdditionalClusterFeature > ) ( source ) ) : new java.util.HashSet < org.ovirt.engine.core.common.businessentities.SupportedAdditionalClusterFeature > ( ) ; }
Source:
protected void OnEntityChanged ( ) { super . OnEntityChanged ( ) ; if ( ( super . getEntity ( ) ) != null ) { UpdateProperties ( ) ; } }

Target:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; if ( ( getEntity ( ) ) != null ) { updateProperties ( ) ; } }
Source:
private static void detachNetwork ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > allNics , org.ovirt.engine.ui.uicommonweb.models.hosts.network.LogicalNetworkModel networkToDetach ) { if ( networkToDetach.hasVlan ( ) ) { allNics.remove ( networkToDetach.getVlanNicModel ( ) . getEntity ( ) ) ; } networkToDetach.detach ( ) ; }

Target:
private static void detachNetwork ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > allNics , org.ovirt.engine.ui.uicommonweb.models.hosts.network.LogicalNetworkModel networkToDetach ) { if ( networkToDetach.hasVlan ( ) ) { allNics.remove ( networkToDetach.getVlanNicModel ( ) . getIface ( ) ) ; } networkToDetach.detach ( ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > getClusterNetworks ( ) { if ( ( cachedClusterNetworks ) == null ) { cachedClusterNetworks = getNetworkDao ( ) . getAllForCluster ( vm.getVdsGroupId ( ) ) ; } return cachedClusterNetworks ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > getClusterNetworks ( ) { if ( ( cachedClusterNetworks ) == null ) { cachedClusterNetworks = getNetworkDao ( ) . getAllForCluster ( vm.getClusterId ( ) ) ; } return cachedClusterNetworks ; }
Source:
public void setUp ( ) { org.ovirt.engine.core.bll.VmHandler.Init ( ) ; }

Target:
public void setUp ( ) { org.ovirt.engine.core.bll.VmHandler.init ( ) ; }
Source:
protected boolean isTemplateInValidDc ( ) { return org.ovirt.engine.core.bll.AddVmCommand.getVmTemplate ( ) . getStoragePoolId ( ) . equals ( org.ovirt.engine.core.bll.AddVmCommand.getStoragePoolId ( ) ) ; }

Target:
protected boolean isTemplateInValidDc ( ) { return ( VmTemplateHandler.BLANK_VM_TEMPLATE_ID.equals ( org.ovirt.engine.core.bll.AddVmCommand.getVmTemplateId ( ) ) ) || ( org.ovirt.engine.core.bll.AddVmCommand.getVmTemplate ( ) . getStoragePoolId ( ) . equals ( org.ovirt.engine.core.bll.AddVmCommand.getStoragePoolId ( ) ) ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.tags > GetTagsAttachedToObject ( ) { return getTagDAO ( ) . getAllForVm ( org.ovirt.engine.core.bll.VmCommand.getParameters ( ) . getVmId ( ) . toString ( ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.tags > getTagsAttachedToObject ( ) { return getTagDAO ( ) . getAllForVm ( org.ovirt.engine.core.bll.VmCommand.getParameters ( ) . getVmId ( ) . toString ( ) ) ; }
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 ) { org.ovirt.engine.core.common.businessentities.VDSGroup entity = modelProvider.getModel ( ) . getEntity ( ) ; if ( entity != null ) { setMainTabSelectedItem ( entity ) ; } }

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 ) { org.ovirt.engine.core.common.businessentities.Cluster entity = modelProvider.getModel ( ) . getEntity ( ) ; if ( entity != null ) { setMainTabSelectedItem ( entity ) ; } }
Source:
protected void mockFenceAgent ( ) { fenceAgents = createSingleAgentList ( 1 ) ; org.mockito.Mockito.doReturn ( fenceAgents ) . when ( fencedHost ) . getFenceAgents ( ) ; }

Target:
protected void mockFenceAgents ( ) { fenceAgents = create2SequentialFenceAgents ( ) ; org.mockito.Mockito.when ( fenceAgentDao.getFenceAgentsForHost ( fencedHost.getId ( ) ) ) . thenReturn ( fenceAgents ) ; }
Source:
public void testExistingPassDiscardFunctionalityIsPreservedSdHasNoDisks ( ) { setSdFullDiscardSupport ( ) ; org.junit.Assert.assertTrue ( discardHelper.isExistingPassDiscardFunctionalityPreserved ( new java.util.LinkedList < > ( ) , storageDomain ) ) ; }

Target:
public void testExistingDiscardAfterDeleteFunctionalityPreservedAllLunsHaveDiscardAfterDeleteFunctionality ( ) { storageDomain.setDiscardAfterDelete ( true ) ; org.junit.Assert.assertTrue ( discardHelper.isExistingDiscardAfterDeleteFunctionalityPreserved ( java.util.Arrays.asList ( createLunWithDiscardSupport ( 1024L ) , createLunWithDiscardSupport ( 2048L ) ) , storageDomain ) ) ; }
Source:
private java.lang.String getCallBackMethod ( org.ovirt.engine.core.compat.CommandStatus status ) { switch ( status ) { case FAILED : case FAILED_RESTARTED : return "onFailed" ; case SUCCEEDED : return "onSucceeded" ; case ACTIVE : return "doPolling" ; default : return "Unknown" ; } }

Target:
private java.lang.String getCallbackMethod ( org.ovirt.engine.core.compat.CommandStatus status ) { switch ( status ) { case FAILED : case FAILED_RESTARTED : return "onFailed" ; case SUCCEEDED : return "onSucceeded" ; case ACTIVE : return "doPolling" ; default : return "Unknown" ; } }
Source:
public void setConsoleCurrentUserName ( java.lang.String value ) { this . vmDynamic.setConsole_current_user_name ( value ) ; }

Target:
public void setAppList ( java.lang.String value ) { this . vmDynamic.setAppList ( value ) ; }
Source:
protected void endWithFailure ( ) { updateOldImageActive ( SnapshotType.ACTIVE , true ) ; org.ovirt.engine.core.bll.TryBackToSnapshotCommand.UndoActionOnSourceAndDestination ( ) ; org.ovirt.engine.core.bll.TryBackToSnapshotCommand.setSucceeded ( true ) ; }

Target:
protected void endWithFailure ( ) { updateOldImageActive ( SnapshotType.ACTIVE , true ) ; org.ovirt.engine.core.bll.TryBackToSnapshotCommand.undoActionOnSourceAndDestination ( ) ; org.ovirt.engine.core.bll.TryBackToSnapshotCommand.setSucceeded ( true ) ; }
Source:
public void testIsNetworkInSyncWhenIpv4StaticBootProtocolAddressEqual ( ) throws java.lang.Exception { initIpv4ConfigurationBootProtocolAddress ( org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterfaceTest.IPV4_BOOT_PROTOCOL , true ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testIsNetworkInSyncWhenIpv4StaticBootProtocolAddressEqual ( ) { initIpv4ConfigurationBootProtocolAddress ( org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterfaceTest.IPV4_BOOT_PROTOCOL , true ) ; org.hamcrest.MatcherAssert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.LeaseStatus getLeaseStatus ( java.lang.Object [ ] owners ) { return org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.buildLeaseStatus ( java.util.Collections.singletonMap ( "owners" , owners ) ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.LeaseStatus getLeaseStatus ( java.lang.Object [ ] owners ) { return vdsBrokerObjectsBuilder.buildLeaseStatus ( java.util.Collections.singletonMap ( "owners" , owners ) ) ; }
Source:
protected org.ovirt.engine.core.dao.profiles.DiskProfileDao getProfileDao ( ) { return getDbFacade ( ) . getDiskProfileDao ( ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VM > getVmsUsingProfile ( ) { return vmDao.getAllForDiskProfiles ( java.util.Collections.singletonList ( getProfile ( ) . getId ( ) ) ) ; }
Source:
private void CleanConnection ( org.ovirt.engine.core.common.businessentities.storage_server_connections connection , org.ovirt.engine.core.compat.Guid hostId ) { org.ovirt.engine.ui.frontend.Frontend.RunAction ( VdcActionType.RemoveStorageServerConnection , new org.ovirt.engine.core.common.action.StorageServerConnectionParametersBase ( connection , hostId ) , new org.ovirt.engine.ui.uicompat.IFrontendActionAsyncCallback ( ) { @ java.lang.Override public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { } } , this ) ; }

Target:
private void CleanConnection ( org.ovirt.engine.core.common.businessentities.StorageServerConnections connection , org.ovirt.engine.core.compat.Guid hostId ) { org.ovirt.engine.ui.frontend.Frontend.RunAction ( VdcActionType.RemoveStorageServerConnection , new org.ovirt.engine.core.common.action.StorageServerConnectionParametersBase ( connection , hostId ) , null , this ) ; }
Source:
public boolean isLogDirSet ( ) { return ( ( getLogDir ( ) ) != null ) && ( ( getLogDir ( ) . trim ( ) . length ( ) ) > 0 ) ; }

Target:
public int getJsonThreadPoolSize ( ) { return jsonThreadPoolSize ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue = result.getReturnValue ( ) ; context.addVDSGroupReturnValue = returnValue ; prepare3 ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue = result.getReturnValue ( ) ; context.addClusterReturnValue = returnValue ; prepare3 ( ) ; }
Source:
public void testGetDataAndSetDataWithEmptySession ( ) { org.junit.Assert.assertNull ( "Get should return null with an empty session" , container.getData ( "" , org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY , false ) ) ; }

Target:
public void testGetDataAndSetDataWithEmptySession ( ) { org.junit.Assert.assertNull ( "Get should return null with an empty session" , container.getData ( "" , org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_KEY , false ) ) ; }
Source:
public void AddIsoStorage ( ) { AddStorageInternal ( org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) . newISOLibraryTitle ( ) , StorageDomainType.ISO ) ; }

Target:
public void addIsoStorage ( ) { addStorageInternal ( org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) . newISOLibraryTitle ( ) , StorageDomainType.ISO ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.StorageServerConnections findConnectionWithSameDetails ( org.ovirt.engine.core.common.businessentities.StorageServerConnections connection ) { return org.ovirt.engine.core.bll.storage.connection.ISCSIStorageHelper.findConnectionWithSameDetails ( connection ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StorageServerConnections findConnectionWithSameDetails ( org.ovirt.engine.core.common.businessentities.StorageServerConnections connection ) { return iscsiStorageHelper.findConnectionWithSameDetails ( connection ) ; }
Source:
public void setConsoleCurrentUserName ( java.lang.String value ) { this . vmDynamic.setConsole_current_user_name ( value ) ; }

Target:
public void setStatus ( org.ovirt.engine.core.common.businessentities.VMStatus value ) { this . vmDynamic.setStatus ( value ) ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { getCallback ( ) . vnicCreated ( id ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { getCallback ( ) . vnicCreated ( id , unitVmModel ) ; }
Source:
public void checkValidIpv6ConfigurationStaticBootProtocol ( ) { initIpv6ConfigurationDetails ( Ipv6BootProtocol.STATIC_IP , true , true ) ; org.junit.Assert.assertThat ( underTest.validateNetworkAttachmentIpConfiguration ( networkAttachments ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void checkValidIpv6ConfigurationStaticBootProtocol ( ) { initIpv6ConfigurationDetails ( Ipv6BootProtocol.STATIC_IP , true , true ) ; org.hamcrest.MatcherAssert.assertThat ( underTest.validateNetworkAttachmentIpConfiguration ( networkAttachments ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public java.lang.String renderNullSafe ( org.ovirt.engine.core.common.businessentities.StoragePool storagePool ) { return storagePool.getName ( ) ; }

Target:
public java.lang.String render ( org.ovirt.engine.core.common.businessentities.StoragePool storagePool ) { return storagePool != null ? storagePool.getName ( ) : org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) . anyDataCenter ( ) ; }
Source:
public void canDoActionSucceedsInitFormatDataDomain30 ( ) { sd.setStorageFormat ( null ) ; sp.setcompatibility_version ( Version.v3_0 ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionSuccess ( cmd ) ; org.junit.Assert.assertEquals ( "Format not initialized correctly" , StorageFormatType.V1 , sd.getStorageFormat ( ) ) ; }

Target:
public void canDoActionSucceedsInitFormatDataDomain30 ( ) { sd.setStorageFormat ( null ) ; sp.setCompatibilityVersion ( Version.v3_0 ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionSuccess ( cmd ) ; org.junit.Assert.assertEquals ( "Format not initialized correctly" , StorageFormatType.V1 , sd.getStorageFormat ( ) ) ; }
Source:
private boolean lunsEqual ( org.ovirt.engine.api.model.LogicalUnit firstLun , org.ovirt.engine.api.model.LogicalUnit secondLun ) { return firstLun.getId ( ) . equals ( secondLun.getId ( ) ) ; }

Target:
private boolean lunsEqual ( org.ovirt.engine.api.model.LogicalUnit firstLun , org.ovirt.engine.api.model.LogicalUnit secondLun ) { return java.util.Objects.equals ( firstLun.getId ( ) , secondLun.getId ( ) ) ; }
Source:
protected static void handleException ( java.lang.Exception e ) { throw new org.ovirt.engine.core.common.errors.VdcBLLException ( org.ovirt.engine.core.common.errors.VdcBllErrors.PROVIDER_FAILURE , e.getMessage ( ) ) ; }

Target:
protected static void handleException ( java.lang.Exception e ) { throw new org.ovirt.engine.core.common.errors.EngineException ( org.ovirt.engine.core.common.errors.EngineError.PROVIDER_FAILURE , e.getMessage ( ) ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmDiskListModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.VmDiskListModel ) ( target ) ) ; org.ovirt.engine.core.common.businessentities.StoragePool storagePool = ( ( org.ovirt.engine.core.common.businessentities.StoragePool ) ( returnValue ) ) ; model.setDataCenterVersion ( storagePool.getcompatibility_version ( ) ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmDiskListModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.VmDiskListModel ) ( target ) ) ; org.ovirt.engine.core.common.businessentities.StoragePool storagePool = ( ( org.ovirt.engine.core.common.businessentities.StoragePool ) ( returnValue ) ) ; model.setDataCenterVersion ( storagePool.getCompatibilityVersion ( ) ) ; }
Source:
public boolean matches ( java.lang.Object argument ) { if ( ! ( argument instanceof org.ovirt.engine.core.common.vdscommands.VdsIdVDSCommandParametersBase ) ) { return false ; } return ( ( org.ovirt.engine.core.common.vdscommands.VdsIdVDSCommandParametersBase ) ( argument ) ) . getVdsId ( ) . equals ( org.ovirt.engine.core.bll.gluster.GlusterHookSyncJobTest.SERVER_GUIDS [ 0 ] ) ; }

Target:
public boolean matches ( java.lang.Object argument ) { if ( ! ( argument instanceof org.ovirt.engine.core.common.vdscommands.VdsIdVDSCommandParametersBase ) ) { return false ; } return ( ( org.ovirt.engine.core.common.vdscommands.VdsIdVDSCommandParametersBase ) ( argument ) ) . getVdsId ( ) . equals ( org.ovirt.engine.core.bll.gluster.GlusterHookSyncJobTest.SERVER_GUIDS [ index ] ) ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.gluster.StartGlusterVolumeVDSCommand.getBroker ( ) . glusterVolumeStart ( org.ovirt.engine.core.vdsbroker.gluster.StartGlusterVolumeVDSCommand.getParameters ( ) . getVolumeName ( ) , org.ovirt.engine.core.vdsbroker.gluster.StartGlusterVolumeVDSCommand.getParameters ( ) . isForceAction ( ) ) ; org.ovirt.engine.core.vdsbroker.gluster.StartGlusterVolumeVDSCommand.proceedProxyReturnValue ( ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.gluster.StartGlusterVolumeVDSCommand.getBroker ( ) . glusterVolumeStart ( org.ovirt.engine.core.vdsbroker.gluster.StartGlusterVolumeVDSCommand.getParameters ( ) . getVolumeName ( ) , org.ovirt.engine.core.vdsbroker.gluster.StartGlusterVolumeVDSCommand.getParameters ( ) . isForceAction ( ) ) ; org.ovirt.engine.core.vdsbroker.gluster.StartGlusterVolumeVDSCommand.proceedProxyReturnValue ( ) ; }
Source:
public static void RunMultipleActions ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , final org.ovirt.engine.ui.uicompat.IFrontendActionAsyncCallback successCallback ) { org.ovirt.engine.ui.frontend.Frontend.RunMultipleActions ( actionType , parameters , successCallback , null ) ; }

Target:
public void runMultipleActions ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , final org.ovirt.engine.ui.uicompat.IFrontendActionAsyncCallback successCallback ) { runMultipleActions ( actionType , parameters , successCallback , null ) ; }