auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testGetStorageDomainIdWithNoPermissions ( ) { mockStoragePoolDAO ( null ) ; org.mockito.Mockito.verifyNoMoreInteractions ( getQuery ( ) . getDbFacade ( ) ) ; org.junit.Assert.assertNull ( "No storage domains should have been returned" , getQuery ( ) . getStorageDomainId ( ) ) ; }

Target:
public void testGetStorageDomainIdWithNoPermissions ( ) { mockStoragePoolDAO ( null ) ; org.mockito.Mockito.verifyNoMoreInteractions ( getQuery ( ) . getDbFacade ( ) ) ; org.junit.Assert.assertNull ( "No storage domains should have been returned" , getQuery ( ) . getStorageDomainIdForQuery ( ) ) ; }
Source:
private void localize ( ) { pfTab.setLabel ( constants.pfTab ( ) ) ; vfsConfigTab.setLabel ( constants.vfsConfigTab ( ) ) ; }

Target:
public void showOnlyVfsConfig ( ) { getTabPanel ( ) . switchTab ( vfsConfigTab ) ; tabPanel.setVisible ( false ) ; contentPanel.setWidget ( vfsConfigTab.getContent ( ) ) ; mainPanel.setWidth ( "515px" ) ; }
Source:
public void testNetworkAttachmentIsSetWhenAttachmentIsNotNull ( ) throws java.lang.Exception { org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.validator.NetworkAttachmentValidator ( new org.ovirt.engine.core.common.businessentities.network.NetworkAttachment ( ) , new org.ovirt.engine.core.common.businessentities.VDS ( ) ) . networkAttachmentIsSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testNetworkAttachmentIsSetWhenAttachmentIsNotNull ( ) throws java.lang.Exception { org.junit.Assert.assertThat ( createNetworkAttachmentValidator ( new org.ovirt.engine.core.common.businessentities.network.NetworkAttachment ( ) ) . networkAttachmentIsSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
protected void releaseImageDbLock ( ) { getDiskImage ( ) . setImageStatus ( ImageStatus.OK ) ; org.ovirt.engine.core.bll.ImagesHandler.updateImageStatus ( getDiskImage ( ) . getImageId ( ) , getDiskImage ( ) . getImageStatus ( ) ) ; }

Target:
protected void releaseImageDbLock ( ) { getDiskImage ( ) . setImageStatus ( ImageStatus.OK ) ; org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.updateImageStatus ( getDiskImage ( ) . getImageId ( ) , getDiskImage ( ) . getImageStatus ( ) ) ; }
Source:
java.lang.String rebalanceStatusFailed ( java.lang.String name ) ;

Target:
java.lang.String errorConnectingToConsole ( java.lang.String name , java.lang.String s ) ;
Source:
private boolean checkDerivedDisksFromDiskNotExist ( org.ovirt.engine.core.common.businessentities.DiskImage diskImage ) { return validate ( createDiskImagesValidator ( diskImage ) . diskImagesHaveNoDerivedDisks ( org.ovirt.engine.core.bll.RemoveDiskCommand.getParameters ( ) . getStorageDomainId ( ) ) ) ; }

Target:
private boolean checkDerivedDisksFromDiskNotExist ( org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage ) { return validate ( createDiskImagesValidator ( diskImage ) . diskImagesHaveNoDerivedDisks ( org.ovirt.engine.core.bll.RemoveDiskCommand.getParameters ( ) . getStorageDomainId ( ) ) ) ; }
Source:
public org.ovirt.engine.api.resource.ActionResource getActionSubresource ( java.lang.String action , java.lang.String oid ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendActionResource ( action , oid ) ) ; }

Target:
public org.ovirt.engine.api.resource.ActionResource getActionResource ( java.lang.String action , java.lang.String oid ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendActionResource ( action , oid ) ) ; }
Source:
public void markAsInvalid ( java.util.List < java.lang.String > validationHints ) { applyCommonValidationStyles ( ) ; getValidatedWidgetStyle ( ) . setBorderColor ( "orange" ) ; getValidatedWidget ( ) . setTitle ( getValidationTitle ( validationHints ) ) ; }

Target:
public void markAsInvalid ( java.util.List < java.lang.String > validationHints ) { applyCommonValidationStyles ( ) ; getValidatedWidgetStyle ( ) . setBorderColor ( "red" ) ; getValidatedWidget ( ) . setTitle ( getValidationTitle ( validationHints ) ) ; }
Source:
public void testGetAllFromDisksByDiskStorageType ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.storage.Disk > disks = dao.getAllFromDisksByDiskStorageType ( DiskStorageType.CINDER , org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertEquals ( "We should have one disk" , 1 , disks.size ( ) ) ; }

Target:
public void testGetAllFromDisksByDiskStorageType ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.storage.Disk > disks = dao.getAllFromDisksByDiskStorageType ( DiskStorageType.CINDER , org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , true ) ; org.junit.jupiter.api.Assertions.assertEquals ( 1 , disks.size ( ) , "We should have one disk" ) ; }
Source:
public void setTaskParameters ( org.ovirt.engine.core.common.action.VdcActionParametersBase value ) { cmdEntity.setCommandParameters ( value ) ; }

Target:
public void setTaskParameters ( org.ovirt.engine.core.common.action.VdcActionParametersBase value ) { childCmdEntity.setCommandParameters ( value ) ; }
Source:
public void setBondingOptionsOverrideNotification ( boolean value ) { setbondingOptionsOverrideNotification ( value ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "BondingOptionsOverrideNotification" ) ) ; }

Target:
public boolean getBondingOptionsOverrideNotification ( ) { return bondingOptionsOverrideNotification ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.Network network ) { return network.getname ( ) . equals ( getParameters ( ) . getInterface ( ) . getNetworkName ( ) ) ; }

Target:
public java.lang.Void runInTransaction ( ) { addInterfaceToDb ( getParameters ( ) . getInterface ( ) ) ; addInterfaceDeviceToDb ( ) ; getCompensationContext ( ) . stateChanged ( ) ; return null ; }
Source:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s, srcHost=%s, dstVdsId=%s, dstHost=%s, migrationMethod=%s" , super . toString ( ) , getSrcHost ( ) , getDstVdsId ( ) , getDstHost ( ) , getMigrationMethod ( ) ) ; }

Target:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s, srcHost=%s, dstVdsId=%s, dstHost=%s, migrationMethod=%s, tunnelMigration=%s" , super . toString ( ) , getSrcHost ( ) , getDstVdsId ( ) , getDstHost ( ) , getMigrationMethod ( ) , getTunnelMigration ( ) ) ; }
Source:
public void setSearchStringPrefix ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( searchStringPrefix , value ) ) ) { searchStringPrefix = value ; searchStringPrefixChanged ( ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "SearchStringPrefix" ) ) ; } }

Target:
public void setSearchStringPrefix ( java.lang.String value ) { if ( ! ( java.util.Objects.equals ( searchStringPrefix , value ) ) ) { searchStringPrefix = value ; searchStringPrefixChanged ( ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "SearchStringPrefix" ) ) ; } }
Source:
public void setLunId ( java.lang.String value ) { if ( ( privateLunId ) != value ) { privateLunId = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "LUN ID" ) ) ; } }

Target:
public void setLunId ( java.lang.String value ) { if ( ( privateLunId ) != value ) { privateLunId = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "LUN ID" ) ) ; } }
Source:
public void setLockVm ( boolean lockVm ) { this . lockVm = lockVm ; }

Target:
public void setChildCommandsParameters ( java.util.List < org.ovirt.engine.core.common.action.RemoveCinderDiskVolumeParameters > childCommands ) { this . childCommandsParameters = childCommands ; }
Source:
protected boolean validateTemplateArchitecture ( ) { if ( ( getVmTemplate ( ) . getClusterArch ( ) ) == ( org.ovirt.engine.core.common.businessentities.ArchitectureType.undefined ) ) { addCanDoActionMessage ( EngineMessage.ACTION_TYPE_FAILED_VM_CANNOT_IMPORT_TEMPLATE_WITH_NOT_SUPPORTED_ARCHITECTURE ) ; return false ; } return true ; }

Target:
protected boolean validateTemplateArchitecture ( ) { if ( ( getVmTemplate ( ) . getClusterArch ( ) ) == ( org.ovirt.engine.core.common.businessentities.ArchitectureType.undefined ) ) { addValidationMessage ( EngineMessage.ACTION_TYPE_FAILED_VM_CANNOT_IMPORT_TEMPLATE_WITH_NOT_SUPPORTED_ARCHITECTURE ) ; return false ; } return true ; }
Source:
public void copyKeysDataTo ( ovirt_engine_dwh.configurationsync_3_5.ConfigurationSync.delete_usersStruct other ) { other.user_join_id = this . user_join_id ; }

Target:
public void copyKeysDataTo ( ovirt_engine_dwh.configurationsync_3_5.ConfigurationSync.delete_usersStruct other ) { other.user_id = this . user_id ; }
Source:
protected void OnEntityChanged ( ) { super . OnEntityChanged ( ) ; if ( ( super . getEntity ( ) ) != null ) { UpdateProperties ( ) ; } }

Target:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; if ( ( super . getEntity ( ) ) != null ) { updateProperties ( ) ; } }
Source:
public org.ovirt.engine.api.model.Event get ( ) { return performGet ( VdcQueryType.GetAuditLogById , new org.ovirt.engine.core.common.queries.GetAuditLogByIdParameters ( asLong ( id ) ) ) ; }

Target:
public org.ovirt.engine.api.model.Event get ( ) { return performGet ( QueryType.GetAuditLogById , new org.ovirt.engine.core.common.queries.GetAuditLogByIdParameters ( asLong ( id ) ) ) ; }
Source:
public void canDetachInactiveDomain ( ) { storageDomainIsInactive ( ) ; storagePoolExists ( ) ; masterDomainIsUp ( ) ; isNotLocalData ( ) ; canDetachDomain ( ) ; org.junit.Assert.assertTrue ( cmd.canDetachDomain ( false , false , false ) ) ; }

Target:
public void canDetachInactiveDomain ( ) { setStorageDomainStatus ( StorageDomainStatus.InActive ) ; storagePoolExists ( ) ; masterDomainIsUp ( ) ; isNotLocalData ( ) ; canDetachDomain ( ) ; org.junit.Assert.assertTrue ( cmd.canDetachDomain ( false , false , false ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VM > getAllUsingQuery ( java.lang.String query ) { return jdbcTemplate.query ( query , org.ovirt.engine.core.dao.VmDAODbFacadeImpl.VMRowMapper.instance ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VM > getAllUsingQuery ( java.lang.String query ) { return getJdbcTemplate ( ) . query ( query , org.ovirt.engine.core.dao.VmDAODbFacadeImpl.VMRowMapper.instance ) ; }
Source:
public void testVolumes ( ) { testValidSql ( "volumes: " , "SELECT * FROM ((SELECT gluster_volumes_view.* FROM gluster_volumes_view ) ORDER BY vol_name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; }

Target:
public void testVolume ( ) { testValidSql ( "volume: " , "SELECT * FROM ((SELECT distinct gluster_volumes_view.* FROM gluster_volumes_view ) ORDER BY vol_name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "volume: name=volume1" , "SELECT * FROM ((SELECT distinct gluster_volumes_view.* FROM gluster_volumes_view WHERE gluster_volumes_view.vol_name LIKE volume1 ) ORDER BY vol_name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VmPoolType getRawValue ( org.ovirt.engine.core.common.businessentities.VmPool object ) { return object.getvm_pool_type ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VmPoolType getRawValue ( org.ovirt.engine.core.common.businessentities.VmPool object ) { return object.getVmPoolType ( ) ; }
Source:
public void run ( ) { org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . getEventListener ( ) . vdsNonOperational ( vdsId , NonOperationalReason.STORAGE_DOMAIN_UNREACHABLE , true , domainId ) ; }

Target:
public void run ( ) { org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . getEventListener ( ) . vdsNonOperational ( vdsId , NonOperationalReason.STORAGE_DOMAIN_UNREACHABLE , true , domainId , java.util.Collections.singletonMap ( "StorageDomainNames" , storageDomain.getStorageName ( ) ) ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getNewVmDevices ( ) { return java.util.Collections.unmodifiableList ( newVmDevices ) ; }

Target:
private boolean deviceWithoutAddress ( org.ovirt.engine.core.common.businessentities.VmDevice device ) { return org.ovirt.engine.core.common.utils.VmDeviceCommonUtils.isGraphics ( device ) ; }
Source:
protected void initSelectedType ( ) { getNicType ( ) . setSelectedItem ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.GetDefaultNicType ( getVm ( ) . getOs ( ) ) ) ; }

Target:
protected void initSelectedType ( ) { getNicType ( ) . setSelectedItem ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getDefaultNicType ( ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.String ) ( source ) ) : "" ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.ServerCpu > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.ServerCpu > ( ) ; }
Source:
public void testGetAllForVMFilteredWithPermissionsNoPermissions ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.storage.Disk > disks = dao.getAllForVm ( FixturesTool.VM_RHEL5_POOL_57 , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertTrue ( "VM should have no disks viewable to the user" , disks.isEmpty ( ) ) ; }

Target:
public void testGetAllForVMFilteredWithPermissionsNoPermissions ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.storage.Disk > disks = dao.getAllForVm ( FixturesTool.VM_RHEL5_POOL_57 , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.jupiter.api.Assertions.assertTrue ( disks.isEmpty ( ) , "VM should have no disks viewable to the user" ) ; }
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 ) { com.google.gwt.event.logical.shared.ValueChangeEvent.fire ( this , null ) ; }

Target:
private void selectedLabelsChanged ( ) { com.google.gwt.event.logical.shared.ValueChangeEvent.fire ( this , null ) ; getModel ( ) . updateSuggestedLabels ( ) ; }
Source:
public boolean equalValues ( org.ovirt.engine.core.common.businessentities.qos.CpuQos other ) { return org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( cpuLimit , other.getCpuLimit ( ) ) ; }

Target:
public boolean equalValues ( org.ovirt.engine.core.common.businessentities.qos.CpuQos other ) { return java.util.Objects.equals ( cpuLimit , other.getCpuLimit ( ) ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid getDiskId ( ) { return getCommand ( ) . getParameters ( ) . getDestinationImageId ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid getDiskId ( ) { return org.ovirt.engine.core.bll.storage.CloneSingleCinderDiskCommandCallback.getCommand ( ) . getParameters ( ) . getDestinationImageId ( ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StoragePool > ) ( source ) ) : null ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StoragePool > ) ( source ) ) : null ; }
Source:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { object.setAuthenticationMethod ( AuthenticationMethod.Password ) ; displayPassPkWindow ( true ) ; }

Target:
public void onFocus ( com.google.gwt.event.dom.client.FocusEvent event ) { object.setAuthenticationMethod ( AuthenticationMethod.Password ) ; displayPassPkWindow ( true ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.Network network ) { return ( network.getMtu ( ) ) != ( nonVlanNetwork.getMtu ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.Network network ) { return ( getMtuActualValue ( network ) ) != nonVlanNetworkMtuActualValue ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface enslaveOrReleaseNIC ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface , java.lang.String bondName ) { return createVdsInterface ( iface.getId ( ) , iface.getName ( ) , false , bondName , null , null , null , true , null , false , null ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface enslaveOrReleaseNIC ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface , java.lang.String bondName ) { return createVdsInterface ( iface.getId ( ) , iface.getName ( ) , false , bondName , null , null , null , true , null , false , null , org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.DEFAULT_SPEED ) ; }
Source:
public void nonExistStep ( ) { org.junit.Assert.assertFalse ( dao.exists ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ) ; }

Target:
public void nonExistStep ( ) { org.junit.jupiter.api.Assertions.assertFalse ( dao.exists ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ) ; }
Source:
public void setExecutionContext ( org.ovirt.engine.core.bll.job.ExecutionContext executionContext ) { this . executionContext = executionContext ; }

Target:
public org.ovirt.engine.core.bll.context.CommandContext withExecutionContext ( org.ovirt.engine.core.bll.job.ExecutionContext executionContext ) { this . executionContext = executionContext ; return this ; }
Source:
public void canDoActionFailsOnNull ( ) { cmd = createTestCommand ( null , null , 0 , 0 ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }

Target:
public void canDoActionFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( null , null , 0 , 0 ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }
Source:
public static void addPermissionsOnNetwork ( org.ovirt.engine.core.compat.Guid userId , org.ovirt.engine.core.compat.Guid networkId ) { org.ovirt.engine.core.bll.network.cluster.NetworkHelper.addPermission ( userId , networkId , PredefinedRoles.NETWORK_ADMIN , VdcObjectType.Network ) ; }

Target:
public static void addPermissionsOnNetwork ( org.ovirt.engine.core.compat.Guid userId , org.ovirt.engine.core.compat.Guid networkId ) { org.ovirt.engine.core.bll.MultiLevelAdministrationHandler.addPermission ( userId , networkId , PredefinedRoles.NETWORK_ADMIN , VdcObjectType.Network ) ; }
Source:
protected void UnLockImage ( ) { org.ovirt.engine.core.bll.BaseImagesCommand.SetImageStatus ( ( org.ovirt.engine.core.bll.BaseImagesCommand.getParameters ( ) . isImportEntity ( ) ? getDestinationDiskImage ( ) : getDiskImage ( ) ) , ImageStatus.OK ) ; }

Target:
protected void UnLockImage ( ) { setImageStatus ( ImageStatus.OK ) ; }
Source:
private void assertCanDoActionMessage ( org.ovirt.engine.core.common.errors.EngineMessage msg ) { org.junit.Assert.assertTrue ( "canDoAction failed for the wrong reason" , command.getReturnValue ( ) . getCanDoActionMessages ( ) . contains ( msg.name ( ) ) ) ; }

Target:
private void assertValidateMessage ( org.ovirt.engine.core.common.errors.EngineMessage msg ) { org.junit.Assert.assertTrue ( "validate failed for the wrong reason" , command.getReturnValue ( ) . getValidationMessages ( ) . contains ( msg.name ( ) ) ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( getType ( ) , getValue ( ) , isInSync ( ) ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( getType ( ) , getActualValue ( ) , getExpectedValue ( ) , isInSync ( ) ) ; }
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.RefreshHostCapabilitiesCommand.getParameters ( ) . getVdsId ( ) . toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.VDS , 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.RefreshHostCapabilitiesCommand.getParameters ( ) . getVdsId ( ) . toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.VDS , EngineMessage.ACTION_TYPE_FAILED_OBJECT_LOCKED ) ) ; }
Source:
public void canDetachMaintenanceDomain ( ) { setStorageDomainStatus ( StorageDomainStatus.Maintenance ) ; storagePoolExists ( ) ; masterDomainIsUp ( ) ; canDetachDomain ( ) ; org.junit.Assert.assertTrue ( cmd.canDetachDomain ( false ) ) ; }

Target:
public void canDetachMaintenanceDomain ( ) { setStorageDomainStatus ( StorageDomainStatus.Maintenance ) ; storagePoolExists ( ) ; masterDomainIsUp ( ) ; canDetachDomain ( ) ; org.junit.jupiter.api.Assertions.assertTrue ( cmd.canDetachDomain ( false ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.NetworkCluster createManagementNetworkCluster ( ) { return new org.ovirt.engine.core.common.businessentities.network.NetworkCluster ( org.ovirt.engine.core.bll.AddClusterCommand.getClusterId ( ) , getManagementNetwork ( ) . getId ( ) , org.ovirt.engine.core.common.businessentities.network.NetworkStatus.OPERATIONAL , true , true , true , true , false , true ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.NetworkCluster createManagementNetworkCluster ( ) { return new org.ovirt.engine.core.common.businessentities.network.NetworkCluster ( org.ovirt.engine.core.bll.AddClusterCommand.getClusterId ( ) , managementNetwork.getId ( ) , org.ovirt.engine.core.common.businessentities.network.NetworkStatus.OPERATIONAL , true , true , true , true , false , true ) ; }
Source:
public static void setLoggedInUser ( org.ovirt.engine.core.common.users.VdcUser loggedUser ) { org.ovirt.engine.ui.frontend.Frontend.loggedUser = loggedUser ; }

Target:
public static void initLoggedInUser ( org.ovirt.engine.core.common.users.VdcUser loggedUser , java.lang.String loginPassword ) { org.ovirt.engine.ui.frontend.Frontend.loggedUser = loggedUser ; org.ovirt.engine.ui.frontend.Frontend.loginPassword = loginPassword ; }
Source:
public void setPmSecondaryIp ( java.lang.String value ) { mVdsStatic.setPmSecondaryIp ( value ) ; }

Target:
public void setAutoNumaBalancing ( org.ovirt.engine.core.common.businessentities.AutoNumaBalanceStatus autoNumaBalancing ) { mVdsDynamic.setAutoNumaBalancing ( autoNumaBalancing ) ; }
Source:
public boolean disconnectHostFromStoragePoolServersCommandCompleted ( org.ovirt.engine.core.common.action.HostStoragePoolParametersBase parameters ) { return unregisterLibvirtSecrets ( parameters.getVds ( ) , parameters.getStoragePool ( ) ) ; }

Target:
public boolean evaluate ( java.lang.Object o ) { org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain = ( ( org.ovirt.engine.core.common.businessentities.StorageDomain ) ( o ) ) ; return ( ( storageDomain.getStorageType ( ) ) == storageType ) && ( ( storageDomain.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Active ) ) ; }
Source:
public void BuildReference ( ) { buildImageReference ( ) ; buildNicReference ( ) ; }

Target:
public void buildReference ( ) { buildImageReference ( ) ; buildNicReference ( ) ; }
Source:
protected org.ovirt.engine.api.model.Network addParents ( org.ovirt.engine.api.model.Network model ) { return parent.addParents ( model ) ; }

Target:
protected org.ovirt.engine.api.model.Network addParents ( org.ovirt.engine.api.model.Network model ) { return org.ovirt.engine.api.restapi.resource.BackendNetworkHelper.addParents ( model ) ; }
Source:
public void testGetAll ( ) throws java.lang.Exception { java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > interfaces = dao.getAll ( ) ; assertNotNull ( interfaces ) ; assertEquals ( FixturesTool.NUMBER_OF_VM_INTERFACES , interfaces.size ( ) ) ; }

Target:
public void testGetAll ( ) throws java.lang.Exception { java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > interfaces = dao.getAll ( ) ; org.junit.Assert.assertNotNull ( interfaces ) ; org.junit.Assert.assertEquals ( FixturesTool.NUMBER_OF_VM_INTERFACES , interfaces.size ( ) ) ; }
Source:
private org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase createLoggable ( ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase loggable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; loggable.setVdsGroupId ( networkCluster.getClusterId ( ) ) ; loggable.addCustomValue ( "NetworkName" , networkName ) ; return loggable ; }

Target:
private org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase createLoggable ( ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase loggable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; loggable.setClusterId ( networkCluster.getClusterId ( ) ) ; loggable.addCustomValue ( "NetworkName" , networkName ) ; return loggable ; }
Source:
public void validateSucceedsWhenGlusterServerHasNoPeers ( ) throws java.lang.Exception { setupGlusterMock ( true , new org.ovirt.engine.core.common.businessentities.VDS ( ) , false ) ; org.junit.Assert.assertTrue ( command.validate ( ) ) ; }

Target:
public void validateSucceedsWhenGlusterServerHasNoPeers ( ) throws java.lang.Exception { setupGlusterMock ( true , new org.ovirt.engine.core.common.businessentities.VDS ( ) , false ) ; org.junit.jupiter.api.Assertions.assertTrue ( command.validate ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VDS getVdsByVdsId ( org.ovirt.engine.core.compat.Guid vdsId ) { org.ovirt.engine.core.common.businessentities.VDS vds = null ; if ( vdsId != null ) { vds = org.ovirt.engine.core.bll.GetoVirtISOsQuery.getDbFacade ( ) . getVdsDAO ( ) . get ( vdsId ) ; } return vds ; }

Target:
public org.ovirt.engine.core.common.businessentities.VDS getVdsByVdsId ( org.ovirt.engine.core.compat.Guid vdsId ) { org.ovirt.engine.core.common.businessentities.VDS vds = null ; if ( vdsId != null ) { vds = org.ovirt.engine.core.bll.GetoVirtISOsQuery.getDbFacade ( ) . getVdsDao ( ) . get ( vdsId ) ; } return vds ; }
Source:
protected boolean canDoAction ( ) { org.ovirt.engine.core.bll.validator.NetworkValidator validatorNew = new org.ovirt.engine.core.bll.validator.NetworkValidator ( getNetwork ( ) ) ; return validate ( validatorNew.networkIsSet ( ) ) ; }

Target:
protected boolean canDoAction ( ) { org.ovirt.engine.core.bll.validator.NetworkValidator validatorNew = new org.ovirt.engine.core.bll.validator.NetworkValidator ( vmDao , getNetwork ( ) ) ; return validate ( validatorNew.networkIsSet ( ) ) ; }
Source:
protected void populateTabMap ( ) { getTabNameMapping ( ) . put ( TabName.GENERAL_TAB , generalTab ) ; getTabNameMapping ( ) . put ( TabName.OPTIMIZATION_TAB , optimizationTab ) ; }

Target:
protected void populateTabMap ( ) { getTabNameMapping ( ) . put ( TabName.GENERAL_TAB , generalTab.getTabListItem ( ) ) ; getTabNameMapping ( ) . put ( TabName.OPTIMIZATION_TAB , optimizationTab.getTabListItem ( ) ) ; }
Source:
private void attachLabeledNetwork ( ) { final org.ovirt.engine.core.common.action.AttachNetworkToVdsGroupParameter attachNetworkToVdsGroupParameter = getParameters ( ) ; runInternalAction ( VdcActionType.PropagateLabeledNetworksToClusterHosts , new org.ovirt.engine.core.common.action.ManageNetworkClustersParameters ( java.util.Collections.singleton ( attachNetworkToVdsGroupParameter.getNetworkCluster ( ) ) ) ) ; }

Target:
private void attachLabeledNetwork ( ) { final org.ovirt.engine.core.common.action.AttachNetworkToClusterParameter attachNetworkToClusterParameter = getParameters ( ) ; runInternalAction ( VdcActionType.PropagateLabeledNetworksToClusterHosts , new org.ovirt.engine.core.common.action.ManageNetworkClustersParameters ( java.util.Collections.singleton ( attachNetworkToClusterParameter.getNetworkCluster ( ) ) ) ) ; }
Source:
public boolean isManaged ( ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface.NetworkImplementationDetails details = getNetworkImplementationDetails ( ) ; return details != null ? details.isManaged ( ) : true ; }

Target:
public org.ovirt.engine.core.common.businessentities.network.ReportedConfigurations getReportedConfigurations ( ) { org.ovirt.engine.core.common.businessentities.network.NetworkAttachment networkAttachment = getNetworkAttachment ( ) ; return networkAttachment == null ? null : networkAttachment.getReportedConfigurations ( ) ; }
Source:
protected java.lang.String generateVmTemplateMetadata ( org.ovirt.engine.core.common.businessentities.VmTemplate template , java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > allTemplateImages ) { return ovfManager.exportTemplate ( template , allTemplateImages , clusterUtils.getCompatibilityVersion ( template ) ) ; }

Target:
protected java.lang.String generateVmTemplateMetadata ( org.ovirt.engine.core.common.businessentities.storage.FullEntityOvfData fullEntityOvfData ) { return ovfManager.exportTemplate ( fullEntityOvfData , clusterUtils.getCompatibilityVersion ( fullEntityOvfData.getVmBase ( ) ) ) ; }
Source:
private void updateVolumeWithTaskID ( org.ovirt.engine.core.common.asynctasks.gluster.GlusterAsyncTask rebalanceAsyncTask ) { getGlusterVolumeDao ( ) . updateVolumeTask ( getGlusterVolumeId ( ) , rebalanceAsyncTask.getTaskId ( ) ) ; }

Target:
private void updateVolumeWithTaskID ( org.ovirt.engine.core.common.asynctasks.gluster.GlusterAsyncTask rebalanceAsyncTask ) { glusterVolumeDao.updateVolumeTask ( getGlusterVolumeId ( ) , rebalanceAsyncTask.getTaskId ( ) ) ; }
Source:
public void passthroughProfileContainsPortMirroring ( ) { passthroughProfileContainsSupportedPropertiesTest ( true , true , null , null ) ; org.junit.Assert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_PASSTHROUGH_PROFILE_CONTAINS_NOT_SUPPORTED_PROPERTIES ) ) ; }

Target:
public void passthroughProfileContainsFilterId ( ) { passthroughProfileContainsSupportedPropertiesTest ( true , false , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_GUID , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.INVALID_NETWORK_FILTER_ID ) ; org.hamcrest.MatcherAssert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_PASSTHROUGH_PROFILE_CONTAINS_NOT_SUPPORTED_PROPERTIES ) ) ; }
Source:
java.lang.String errorConnectingToConsole ( java.lang.String name , java.lang.String s ) ;

Target:
java.lang.String errorConnectingToConsoleNoProtocol ( java.lang.String name ) ;
Source:
public void setValue ( T value ) { if ( value != null ) { super . setValue ( value , true ) ; } }

Target:
public void execute ( ) { org.ovirt.engine.ui.common.widget.editor.GroupedListModelListBox.super . setValue ( value , true ) ; }
Source:
public void validateFails ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.StopGlusterVolumeCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeActionParameters ( stoppedVolumeId , false ) , null ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFails ( ) { cmd.setGlusterVolumeId ( stoppedVolumeId ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
private org.ovirt.engine.api.model.Vm createModel ( org.ovirt.engine.api.model.Disks disks , org.ovirt.engine.api.model.Snapshots snapshots ) { org.ovirt.engine.api.model.Vm model = createModel ( disks ) ; if ( snapshots != null ) { model.setSnapshots ( snapshots ) ; } return model ; }

Target:
private org.ovirt.engine.api.model.Vm createModel ( org.ovirt.engine.api.model.DiskAttachments diskAttachments , org.ovirt.engine.api.model.Snapshots snapshots ) { org.ovirt.engine.api.model.Vm model = createModel ( diskAttachments ) ; if ( snapshots != null ) { model.setSnapshots ( snapshots ) ; } return model ; }
Source:
public void showOnlyVfsConfig ( ) { tabPanel.setVisible ( false ) ; contentPanel.setWidget ( vfsConfigTab.getContent ( ) ) ; mainPanel.setWidth ( "515px" ) ; }

Target:
public void showOnlyVfsConfig ( ) { getTabPanel ( ) . switchTab ( vfsConfigTab ) ; tabPanel.setVisible ( false ) ; contentPanel.setWidget ( vfsConfigTab.getContent ( ) ) ; mainPanel.setWidth ( "515px" ) ; }
Source:
private void cancel ( ) { org.ovirt.engine.ui.frontend.Frontend.Unsubscribe ( ) ; setWindow ( null ) ; }

Target:
private void cancel ( ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . unsubscribe ( ) ; setWindow ( null ) ; }
Source:
public void testGetFullPath_nullParameter ( ) { java.lang.String fullPath = testServlet.getFullPath ( null ) ; org.junit.Assert.assertNull ( "Path should be null" , fullPath ) ; }

Target:
public void testGetFullPath_nullParameter ( ) { java.lang.String fullPath = testServlet.getFullPath ( mockFile , null ) ; org.junit.Assert.assertNull ( "Path should be null" , fullPath ) ; }
Source:
public void updateUpdateAvailable ( org.ovirt.engine.core.compat.Guid id , boolean updateAvailable ) { org.ovirt.engine.core.common.businessentities.VdsDynamic entity = get ( id ) ; entity.setUpdateAvailable ( updateAvailable ) ; update ( entity ) ; }

Target:
public void updateUpdateAvailable ( org.ovirt.engine.core.compat.Guid id , boolean updateAvailable ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "vds_guid" , id ) . addValue ( "is_update_available" , updateAvailable ) ; getCallsHandler ( ) . executeModification ( "UpdateVdsDynamicIsUpdateAvailable" , parameterSource ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) . intValue ( ) : 0 ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) : 120 ; }
Source:
public final void disconnect ( java.lang.String message ) { this . closing.set ( true ) ; byte [ ] response = buildNetworkResponse ( message ) ; postDisconnect ( ) ; closeChannel ( ) ; emitOnMessageReceived ( response ) ; }

Target:
public final void disconnect ( java.lang.String message ) { this . closing.set ( true ) ; clean ( ) ; byte [ ] response = buildNetworkResponse ( message ) ; postDisconnect ( ) ; closeChannel ( ) ; emitOnMessageReceived ( response ) ; }
Source:
public org.ovirt.engine.core.compat.Version getvds_group_compatibility_version ( ) { return this . vds_group_compatibility_versionField ; }

Target:
public void setVmtDescription ( java.lang.String value ) { this . vmtDescription = value ; }
Source:
public void setBrickListModel ( org.ovirt.engine.ui.uicommonweb.models.gluster.VolumeBrickListModel brickListModel ) { this . brickListModel = brickListModel ; }

Target:
public void setCreateSnapshotCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { this . createSnapshotCommand = command ; }
Source:
public void breakBond ( ) { for ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkInterfaceModel bonded : getBonded ( ) ) { bonded.getIface ( ) . setBondName ( null ) ; } }

Target:
public java.lang.String getBondOptions ( ) { return getCreateOrUpdateBond ( ) . getBondOptions ( ) ; }
Source:
protected void proceedProxyReturnValue ( ) { org.ovirt.engine.core.common.errors.VdcBllErrors returnStatus = GetReturnValueFromStatus ( getReturnStatus ( ) ) ; switch ( returnStatus ) { case StoragePoolUnknown : break ; default : super . proceedProxyReturnValue ( ) ; initializeVdsError ( returnStatus ) ; break ; } }

Target:
protected void proceedProxyReturnValue ( ) { org.ovirt.engine.core.common.errors.VdcBllErrors returnStatus = getReturnValueFromStatus ( getReturnStatus ( ) ) ; switch ( returnStatus ) { case StoragePoolUnknown : break ; default : super . proceedProxyReturnValue ( ) ; initializeVdsError ( returnStatus ) ; break ; } }
Source:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotDisabledNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; usb.setType ( UsbType.NATIVE ) ; assertEquals ( UsbPolicy.DISABLED , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED ) ) ; }

Target:
public void getUsbPolicyUsbTypeNative ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; usb.setType ( UsbType.NATIVE ) ; org.junit.Assert.assertEquals ( UsbPolicy.ENABLED_NATIVE , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) ) ; }
Source:
public void testDoNotValidateNameSizeImport ( ) { java.lang.String string300 = ( ( org.ovirt.engine.core.bll.ImportVmCommandTest.string100 ) + ( org.ovirt.engine.core.bll.ImportVmCommandTest.string100 ) ) + ( org.ovirt.engine.core.bll.ImportVmCommandTest.string100 ) ; checkVmName ( false , string300 ) ; }

Target:
public void testDoNotValidateNameSizeImport ( ) { checkVmName ( false , org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextPropertyString ( 300 ) ) ; }
Source:
public void removeActionVersionMap ( org.ovirt.engine.core.common.action.VdcActionType action_type ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "action_type" , action_type ) ; getCallsHandler ( ) . executeModification ( "Deleteaction_version_map" , parameterSource ) ; }

Target:
public void removeActionVersionMap ( org.ovirt.engine.core.common.action.VdcActionType action_type ) { org.ovirt.engine.core.dao.ActionGroupDAODbFacadeImpl.cache.remove ( action_type ) ; org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "action_type" , action_type ) ; getCallsHandler ( ) . executeModification ( "Deleteaction_version_map" , parameterSource ) ; }
Source:
private static org.ovirt.engine.core.compat.Guid findActiveISODomain ( org.ovirt.engine.core.compat.Guid storagePoolId ) { return org.ovirt.engine.core.bll.IsoDomainListSyncronizer.getInstance ( ) . findActiveISODomain ( storagePoolId ) ; }

Target:
private static org.ovirt.engine.core.compat.Guid findActiveISODomain ( org.ovirt.engine.core.compat.Guid storagePoolId ) { return org.ovirt.engine.core.bll.storage.domain.IsoDomainListSyncronizer.getInstance ( ) . findActiveISODomain ( storagePoolId ) ; }
Source:
private void RemoveVdsStaticFromDb ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsStaticDAO ( ) . remove ( org.ovirt.engine.core.bll.RemoveVdsCommand.getVdsId ( ) ) ; }

Target:
private void RemoveVdsStaticFromDb ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsStaticDao ( ) . remove ( org.ovirt.engine.core.bll.RemoveVdsCommand.getVdsId ( ) ) ; }
Source:
public void updateSchedulingStats ( org.ovirt.engine.core.common.businessentities.VDS vds ) { org.ovirt.engine.core.bll.scheduling.SchedulingManager.getInstance ( ) . updateHostSchedulingStats ( vds ) ; }

Target:
public void updateSchedulingStats ( org.ovirt.engine.core.common.businessentities.VDS vds ) { schedulingManager.updateHostSchedulingStats ( vds ) ; }
Source:
protected void addStoragePoolToDb ( ) { org.ovirt.engine.core.bll.storage.AddEmptyStoragePoolCommand.getStoragePool ( ) . setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.ovirt.engine.core.bll.storage.AddEmptyStoragePoolCommand.getStoragePool ( ) . setstatus ( StoragePoolStatus.Uninitialized ) ; org.ovirt.engine.core.bll.storage.AddEmptyStoragePoolCommand.getStoragePoolDAO ( ) . save ( org.ovirt.engine.core.bll.storage.AddEmptyStoragePoolCommand.getStoragePool ( ) ) ; }

Target:
protected void addStoragePoolToDb ( ) { org.ovirt.engine.core.bll.storage.AddEmptyStoragePoolCommand.getStoragePool ( ) . setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.ovirt.engine.core.bll.storage.AddEmptyStoragePoolCommand.getStoragePool ( ) . setStatus ( StoragePoolStatus.Uninitialized ) ; org.ovirt.engine.core.bll.storage.AddEmptyStoragePoolCommand.getStoragePoolDAO ( ) . save ( org.ovirt.engine.core.bll.storage.AddEmptyStoragePoolCommand.getStoragePool ( ) ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotEnabledNotSetNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setType ( UsbType.NATIVE ) ; org.junit.Assert.assertEquals ( UsbPolicy.DISABLED , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED ) ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledNotSetPolicyNotSetUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; org.ovirt.engine.core.common.businessentities.UsbPolicy currentPolicy = org.ovirt.engine.core.common.businessentities.UsbPolicy.ENABLED_NATIVE ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , currentPolicy ) , currentPolicy ) ; }
Source:
protected void stylePanel ( com.google.gwt.user.client.ui.VerticalPanel panel ) { panel.setSpacing ( 2 ) ; panel.setWidth ( "100%" ) ; }

Target:
protected void stylePanel ( com.google.gwt.user.client.ui.VerticalPanel panel ) { panel.addStyleName ( "ts2" ) ; panel.setWidth ( "100%" ) ; }
Source:
protected void executeVmCommand ( ) { if ( GetRunningOnVds ( ) ) { perform ( ) ; return ; } setActionReturnValue ( ( ( org.ovirt.engine.core.bll.VmOperationCommandBase.getVm ( ) ) != null ? org.ovirt.engine.core.bll.VmOperationCommandBase.getVm ( ) . getStatus ( ) : org.ovirt.engine.core.common.businessentities.VMStatus.Down ) ) ; }

Target:
protected void executeVmCommand ( ) { if ( getRunningOnVds ( ) ) { perform ( ) ; return ; } setActionReturnValue ( ( ( org.ovirt.engine.core.bll.VmOperationCommandBase.getVm ( ) ) != null ? org.ovirt.engine.core.bll.VmOperationCommandBase.getVm ( ) . getStatus ( ) : org.ovirt.engine.core.common.businessentities.VMStatus.Down ) ) ; }
Source:
public void configure ( org.ovirt.engine.ui.uicommonweb.models.vms.ISpice spice ) { super . configure ( spice ) ; spice.getOptions ( ) . setWanDisableEffects ( new java.util.ArrayList < org.ovirt.engine.core.common.console.ConsoleOptions.WanDisableEffects > ( ) ) ; spice.getOptions ( ) . setWanOptionsEnabled ( false ) ; }

Target:
public void configure ( org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleClient spice ) { super . configure ( spice ) ; spice.getOptions ( ) . setWanDisableEffects ( new java.util.ArrayList < org.ovirt.engine.core.common.console.ConsoleOptions.WanDisableEffects > ( ) ) ; spice.getOptions ( ) . setWanOptionsEnabled ( false ) ; }
Source:
public boolean validate ( ) { return labelsModel.validate ( ) ; }

Target:
public boolean validate ( ) { return ( labelsModel ) == ( org.ovirt.engine.ui.uicommonweb.models.hosts.HostNicModel.EMPTY_LABELS_MODEL ) ? true : labelsModel.validate ( ) ; }
Source:
public void testGetAsyncTaskEntitiesById ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.AsyncTask > tasks = dao.getTasksByEntity ( FixturesTool.ENTITY_WITH_TASKS_ID ) ; org.junit.Assert.assertNotNull ( tasks ) ; org.junit.Assert.assertEquals ( 1 , tasks.size ( ) ) ; }

Target:
public void testGetAsyncTaskEntitiesById ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.AsyncTask > tasks = dao.getTasksByEntity ( FixturesTool.ENTITY_WITH_TASKS_ID ) ; org.junit.jupiter.api.Assertions.assertNotNull ( tasks ) ; org.junit.jupiter.api.Assertions.assertEquals ( 1 , tasks.size ( ) ) ; }
Source:
public org.ovirt.engine.core.bll.tasks.interfaces.SPMTask concreteCreateTask ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { return org.ovirt.engine.core.bll.tasks.TaskManagerUtil.concreteCreateTask ( taskId , this , asyncTaskCreationInfo , parentCommand ) ; }

Target:
public org.ovirt.engine.core.bll.tasks.interfaces.SPMTask concreteCreateTask ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { return org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.concreteCreateTask ( taskId , this , asyncTaskCreationInfo , parentCommand ) ; }
Source:
public void testGetUserAndSetUserWithSessionParam ( ) { org.ovirt.engine.core.common.businessentities.aaa.DbUser user = org.mockito.Mockito.mock ( org.ovirt.engine.core.common.businessentities.aaa.DbUser.class ) ; container.setUser ( org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_SESSION_ID , user ) ; org.junit.Assert.assertEquals ( "Get should return the value with a given session" , user , container.getUser ( org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_SESSION_ID , false ) ) ; clearSession ( ) ; }

Target:
public void testGetUserAndSetUserWithSessionParam ( ) { org.ovirt.engine.core.common.businessentities.aaa.DbUser user = org.mockito.Mockito.mock ( org.ovirt.engine.core.common.businessentities.aaa.DbUser.class ) ; container.setUser ( org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_SESSION_ID , user ) ; org.junit.jupiter.api.Assertions.assertEquals ( user , container.getUser ( org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_SESSION_ID , false ) , "Get should return the value with a given session" ) ; clearSession ( ) ; }
Source:
public void shouldNotElectUnknownHostedEngineDomain ( ) { prepareStorageDomainForElection ( StorageDomainStatus.Unknown , org.ovirt.engine.core.bll.storage.domain.StorageDomainCommandBaseTest.HE_STORAGE_DOMAIN_NAME ) ; org.mockito.Mockito.when ( hostedEngineHelper.isHostedEngineStorageDomain ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.StorageDomain.class ) ) ) . thenReturn ( true ) ; org.junit.Assert.assertNull ( cmd.electNewMaster ( ) ) ; }

Target:
public void shouldNotElectInactiveHostedEngineDomain ( ) { prepareStorageDomainForElection ( StorageDomainStatus.Inactive , org.ovirt.engine.core.bll.storage.domain.StorageDomainCommandBaseTest.HE_STORAGE_DOMAIN_NAME , true ) ; org.junit.Assert.assertNull ( cmd.electNewMaster ( false , true , false ) ) ; }
Source:
protected void SyncSearch ( ) { if ( ( getVM ( ) ) == null ) { return ; } super . SyncSearch ( VdcQueryType.GetAllDisksByVmId , new org.ovirt.engine.core.common.queries.GetAllDisksByVmIdParameters ( getVM ( ) . getId ( ) ) ) ; }

Target:
protected void syncSearch ( ) { if ( ( getVM ( ) ) == null ) { return ; } super . syncSearch ( VdcQueryType.GetAllDisksByVmId , new org.ovirt.engine.core.common.queries.GetAllDisksByVmIdParameters ( getVM ( ) . getId ( ) ) ) ; }
Source:
public void canDisableVirtioScsiFail ( ) { org.ovirt.engine.core.common.businessentities.Disk disk = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; disk.setDiskInterface ( DiskInterface.VirtIO_SCSI ) ; org.junit.Assert.assertThat ( validator.canDisableVirtioScsi ( java.util.Collections.singletonList ( disk ) ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.CANNOT_DISABLE_VIRTIO_SCSI_PLUGGED_DISKS ) ) ; }

Target:
public void canDisableVirtioScsiFail ( ) { org.ovirt.engine.core.common.businessentities.storage.Disk disk = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; disk.setDiskInterface ( DiskInterface.VirtIO_SCSI ) ; org.junit.Assert.assertThat ( validator.canDisableVirtioScsi ( java.util.Collections.singletonList ( disk ) ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.CANNOT_DISABLE_VIRTIO_SCSI_PLUGGED_DISKS ) ) ; }