auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testAddGroup ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( ( ( "ADGROUP@" + ( DOMAIN ) ) + ": name=*" ) , SearchType.AdGroup , getAdGroup ( 0 ) ) ; setUpCreationExpectations ( VdcActionType.AddUser , org.ovirt.engine.core.common.action.AddUserParameters.class , new java.lang.String [ ] { "AdGroup.id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , true , true , null , VdcQueryType.GetAdGroupById , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , getEntity ( 0 ) ) ; org.ovirt.engine.api.model.Group model = new org.ovirt.engine.api.model.Group ( ) ; model.setName ( NAMES [ 0 ] ) ; javax.ws.rs.core.Response response = collection.add ( model ) ; assertEquals ( 201 , response.getStatus ( ) ) ; assertTrue ( ( ( response.getEntity ( ) ) instanceof org.ovirt.engine.api.model.Group ) ) ; verifyModel ( ( ( org.ovirt.engine.api.model.Group ) ( response.getEntity ( ) ) ) , 0 ) ; }

Target:
public void testQuery ( ) throws java.lang.Exception { javax.ws.rs.core.UriInfo uriInfo = setUpUriExpectations ( org.ovirt.engine.api.restapi.resource.BackendGroupsResourceTest.SEARCH_QUERY ) ; setUpQueryExpectations ( org.ovirt.engine.api.restapi.resource.BackendGroupsResourceTest.SEARCH_QUERY ) ; collection.setUriInfo ( uriInfo ) ; verifyCollection ( getCollection ( ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object ReturnValue ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections connection = ( ( org.ovirt.engine.core.common.businessentities.StorageServerConnections ) ( ReturnValue ) ) ; setExportPath ( ( connection == null ? null : connection.getconnection ( ) ) ) ; stopProgress ( ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object ReturnValue ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections connection = ( ( org.ovirt.engine.core.common.businessentities.StorageServerConnections ) ( ReturnValue ) ) ; setExportPath ( ( connection == null ? null : connection.getConnection ( ) ) ) ; stopProgress ( ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.storage.CinderVolumeType > convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return ( ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.CinderVolumeType > ) ( source ) ) ; }
Source:
public final void setSoftLimit ( java.lang.String sessionId , java.util.Date softLimit ) { setData ( sessionId , org.ovirt.engine.core.bll.aaa.SessionDataContainer.SOFT_LIMIT_PARAMETER_NAME , softLimit ) ; }

Target:
public final void setSoftLimitInterval ( java.lang.String sessionId , int softLimitInterval ) { setData ( sessionId , org.ovirt.engine.core.bll.aaa.SessionDataContainer.SOFT_LIMIT_INTERVAL_PARAMETER_NAME , softLimitInterval ) ; }
Source:
protected void RunCommands ( ) { SortCommands ( ) ; super . RunCommands ( ) ; }

Target:
protected void RunCommands ( ) { sortCommands ( ) ; super . RunCommands ( ) ; }
Source:
protected void setActionMessageParameters ( ) { addValidationMessage ( EngineMessage.VAR__ACTION__DETACH_ACTION_TO ) ; addValidationMessage ( EngineMessage.VAR__TYPE__VM_DISK ) ; }

Target:
protected void setActionMessageParameters ( ) { addValidationMessage ( EngineMessage.VAR__ACTION__DETACH_ACTION_TO ) ; addValidationMessage ( EngineMessage.VAR__TYPE__DISK ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.StorageDomain getStorageDomain ( org.ovirt.engine.core.compat.Guid domainId ) { return org.ovirt.engine.core.bll.storage.export.MoveOrCopyTemplateCommand.getStorageDomainDao ( ) . getForStoragePool ( domainId , org.ovirt.engine.core.bll.storage.export.MoveOrCopyTemplateCommand.getStoragePool ( ) . getId ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StorageDomain getStorageDomain ( org.ovirt.engine.core.compat.Guid domainId ) { return org.ovirt.engine.core.bll.exportimport.MoveOrCopyTemplateCommand.getStorageDomainDao ( ) . getForStoragePool ( domainId , org.ovirt.engine.core.bll.exportimport.MoveOrCopyTemplateCommand.getStoragePool ( ) . getId ( ) ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs args ) { getView ( ) . hideRoleSelection ( java.lang.Boolean.parseBoolean ( model.getIsRoleListHiddenModel ( ) . getEntity ( ) . toString ( ) ) ) ; }

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 ) { getView ( ) . getSearchButton ( ) . getCommand ( ) . setIsExecutionAllowed ( model.availableNamespaces ( ) ) ; }
Source:
protected void onNoVmsAdded ( org.ovirt.engine.core.compat.Guid poolId ) { org.ovirt.engine.core.bll.AddVmPoolCommand.getVmPoolDao ( ) . remove ( poolId ) ; }

Target:
protected void createOrUpdateVmPool ( ) { org.ovirt.engine.core.bll.AddVmPoolCommand.getVmPoolDao ( ) . save ( org.ovirt.engine.core.bll.AddVmPoolCommand.getVmPool ( ) ) ; }
Source:
protected boolean addVmLease ( org.ovirt.engine.core.compat.Guid leaseStorageDomainId , org.ovirt.engine.core.compat.Guid vmId ) { if ( leaseStorageDomainId == null ) { return true ; } return runInternalActionWithTasksContext ( ActionType.AddVmLease , new org.ovirt.engine.core.common.action.VmLeaseParameters ( getStoragePoolId ( ) , leaseStorageDomainId , vmId ) ) . getSucceeded ( ) ; }

Target:
public void onRollback ( ) { }
Source:
public final void setHardLimit ( java.lang.String sessionId , java.util.Date hardLimit ) { setData ( sessionId , org.ovirt.engine.core.bll.session.SessionDataContainer.HARD_LIMIT_PARAMETER_NAME , hardLimit ) ; }

Target:
public final void setHardLimit ( java.lang.String sessionId , java.util.Date hardLimit ) { setData ( sessionId , org.ovirt.engine.core.bll.aaa.SessionDataContainer.HARD_LIMIT_PARAMETER_NAME , hardLimit ) ; }
Source:
private boolean wasSkippedDueToPolicy ( org.ovirt.engine.core.common.vdscommands.VDSFenceReturnValue result ) { return ( ( result != null ) && ( result.isSkipped ( ) ) ) && ( ( org.ovirt.engine.core.bll.FenceVdsBaseCommand.getParameters ( ) . getParentCommand ( ) ) == ( org.ovirt.engine.core.common.action.VdcActionType.RestartVds ) ) ; }

Target:
private boolean wasSkippedDueToPolicy ( org.ovirt.engine.core.common.vdscommands.VDSFenceReturnValue result ) { return ( ( result != null ) && ( result.isSkippedDueToPolicy ( ) ) ) && ( ( org.ovirt.engine.core.bll.FenceVdsBaseCommand.getParameters ( ) . getParentCommand ( ) ) == ( org.ovirt.engine.core.common.action.VdcActionType.RestartVds ) ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( id , boot , diskInterface , usingScsiReservation ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( id , boot , passDiscard , diskInterface , usingScsiReservation ) ; }
Source:
public void setlog_time ( java.util.Date value ) { this . logTime = value ; }

Target:
public void setLogTime ( java.util.Date logTime ) { this . logTime = logTime ; }
Source:
public static org.ovirt.engine.core.common.businessentities.NetworkInterface FindInterfaceByNetworkName ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.NetworkInterface > items , java.lang.String name ) { for ( org.ovirt.engine.core.common.businessentities.NetworkInterface i : items ) { if ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( i.getNetworkName ( ) , name ) ) { return i ; } } return null ; }

Target:
public static org.ovirt.engine.core.common.businessentities.network.NetworkInterface FindInterfaceByNetworkName ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.NetworkInterface > items , java.lang.String name ) { for ( org.ovirt.engine.core.common.businessentities.network.NetworkInterface i : items ) { if ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( i.getNetworkName ( ) , name ) ) { return i ; } } return null ; }
Source:
public java.lang.String getDefaultTitle ( ) { return org.ovirt.engine.ui.webadmin.widget.table.column.CONSTANTS.commentLabel ( ) ; }

Target:
public java.lang.String getDefaultTitle ( ) { return org.ovirt.engine.ui.webadmin.widget.table.column.CommentColumn.constants.commentLabel ( ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.tags getRootTag ( ) { return getEntity ( org.ovirt.engine.core.common.businessentities.tags.class , VdcQueryType.GetRootTag , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , "root" ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.Tags getRootTag ( ) { return getEntity ( org.ovirt.engine.core.common.businessentities.Tags.class , VdcQueryType.GetRootTag , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , "root" ) ; }
Source:
public void sethypervisor_type ( org.ovirt.engine.core.common.businessentities.HypervisorType value ) { mVdsDynamic.sethypervisor_type ( value ) ; }

Target:
public void setPmSecondaryType ( java.lang.String value ) { mVdsStatic.setPmSecondaryType ( value ) ; }
Source:
public void getHostListByClusterId ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid clusterId ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetHostsByClusterId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( clusterId ) , aQuery ) ; }

Target:
public void getRoleList ( org.ovirt.engine.ui.frontend.AsyncQuery < java.util.List < org.ovirt.engine.core.common.businessentities.Role > > aQuery ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.ListConverter < > ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetAllRoles , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , aQuery ) ; }
Source:
private void Template_SelectedItemChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { behavior.Template_SelectedItemChanged ( ) ; }

Target:
private void timeZone_SelectedItemChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getStorageServerConnectionLunMapDao ( ) ; existingLUNStorageMap = dao.get ( new org.ovirt.engine.core.common.businessentities.storage.LUNStorageServerConnectionMapId ( FixturesTool.LUN_ID1 , FixturesTool.STORAGE_CONNECTION_ID ) ) ; newLUNStorageMap = new org.ovirt.engine.core.common.businessentities.storage.LUNStorageServerConnectionMap ( org.ovirt.engine.core.dao.StorageServerConnectionLunMapDaoTest.FREE_LUN_ID , FixturesTool.STORAGE_CONNECTION_ID ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getStorageServerConnectionLunMapDao ( ) ; existingLUNStorageMap = dao.get ( new org.ovirt.engine.core.common.businessentities.storage.LUNStorageServerConnectionMapId ( FixturesTool.LUN_ID1 , FixturesTool.STORAGE_CONNECTION_ID ) ) ; newLUNStorageMap = new org.ovirt.engine.core.common.businessentities.storage.LUNStorageServerConnectionMap ( FixturesTool.LUN_ID_FOR_DISK , FixturesTool.STORAGE_CONNECTION_ID ) ; }
Source:
public void separatorNotEmpty ( ) { java.util.List < java.lang.Object > items = createItems ( ) ; java.lang.String separator = "" ; org.ovirt.engine.core.utils.ReplacementUtils.replaceWith ( org.ovirt.engine.core.utils.ReplacementUtilsTest.PROPERTY_NAME , items , separator , 5 ) ; }

Target:
public void failNegativeNumOfValuesToShow ( ) { java.util.List < java.lang.Object > items = createItems ( ) ; java.lang.String separator = ", " ; org.junit.jupiter.api.Assertions.assertThrows ( java.lang.IllegalArgumentException.class , ( ) -> org.ovirt.engine.core.utils.ReplacementUtils.replaceWith ( org.ovirt.engine.core.utils.ReplacementUtilsTest.PROPERTY_NAME , items , separator , ( - 5 ) ) ) ; }
Source:
public static boolean hasSpiceSupport ( int osId , org.ovirt.engine.core.compat.Version version ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getDisplayTypes ( osId , version ) . contains ( DisplayType.qxl ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.DisplayType > getDisplayTypes ( int osId , org.ovirt.engine.core.compat.Version version ) { return displayTypes.get ( osId ) . get ( version ) ; }
Source:
public java.lang.Void runInTransaction ( ) { getCompensationContext ( ) . snapshotEntity ( oldIface ) ; getVmNicDao ( ) . update ( getInterface ( ) ) ; getCompensationContext ( ) . stateChanged ( ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { updatePassthoughDeviceIfNeeded ( ) ; getCompensationContext ( ) . snapshotEntity ( oldIface ) ; getVmNicDao ( ) . update ( getInterface ( ) ) ; getCompensationContext ( ) . stateChanged ( ) ; return null ; }
Source:
public org.ovirt.engine.core.vdsbroker.vdsbroker.VMListReturnForXmlRpc getOvaInfo ( java.lang.String ovaPath ) { try { java.util.Map < java.lang.String , java.lang.Object > xmlRpcReturnValue = vdsServer.getOvaInfo ( ovaPath ) ; return new org.ovirt.engine.core.vdsbroker.vdsbroker.VMListReturnForXmlRpc ( xmlRpcReturnValue ) ; } catch ( java.lang.reflect.UndeclaredThrowableException ute ) { throw new org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcRunTimeException ( ute ) ; } }

Target:
public org.ovirt.engine.core.vdsbroker.vdsbroker.OneVmReturnForXmlRpc getExternalVmFromOva ( java.lang.String ovaPath ) { try { java.util.Map < java.lang.String , java.lang.Object > xmlRpcReturnValue = vdsServer.getExternalVmFromOva ( ovaPath ) ; return new org.ovirt.engine.core.vdsbroker.vdsbroker.OneVmReturnForXmlRpc ( xmlRpcReturnValue ) ; } catch ( java.lang.reflect.UndeclaredThrowableException ute ) { throw new org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcRunTimeException ( ute ) ; } }
Source:
public boolean IsMatch ( java.lang.String input ) { return impl.test ( input ) ; }

Target:
public boolean isMatch ( java.lang.String input ) { return impl.test ( input ) ; }
Source:
public void testGetAllForClusterWithInvalidCluster ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkCluster > result = dao.getAllForCluster ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForClusterWithInvalidCluster ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkCluster > result = dao.getAllForCluster ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity getGlusterHook ( ) { if ( ( entity ) == null ) { entity = org.ovirt.engine.core.bll.gluster.GlusterHookCommandBase.getGlusterHooksDao ( ) . getById ( org.ovirt.engine.core.bll.gluster.GlusterHookCommandBase.getParameters ( ) . getHookId ( ) , true ) ; } return entity ; }

Target:
protected org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity getGlusterHook ( ) { if ( ( entity ) == null ) { entity = glusterHooksDao.getById ( org.ovirt.engine.core.bll.gluster.GlusterHookCommandBase.getParameters ( ) . getHookId ( ) , true ) ; } return entity ; }
Source:
public org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.compat.Guid , java.lang.Integer > mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { return new org.ovirt.engine.core.common.utils.Pair ( getGuid ( rs , "assigned_vm_numa_node_id" ) , rs.getInt ( "last_run_in_vds_numa_node_index" ) ) ; }

Target:
public org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.compat.Guid , java.lang.Integer > mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { return new org.ovirt.engine.core.common.utils.Pair ( getGuid ( rs , "numa_node_id" ) , rs.getInt ( "cpu_core_id" ) ) ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.ExternalComputeResource > ( ) ; } return source ; }

Target:
public java.util.List < T > convert ( java.lang.Object source ) { return source != null ? ( ( java.util.List < T > ) ( source ) ) : new java.util.ArrayList < T > ( ) ; }
Source:
public static void addDiskImageWithNoVmDevice ( org.ovirt.engine.core.common.businessentities.DiskImage image ) { org.ovirt.engine.core.bll.ImagesHandler.addDiskImageWithNoVmDevice ( image , image.getActive ( ) , new org.ovirt.engine.core.common.businessentities.image_storage_domain_map ( image.getImageId ( ) , image.getStorageIds ( ) . get ( 0 ) ) ) ; }

Target:
public static void addDiskImageWithNoVmDevice ( org.ovirt.engine.core.common.businessentities.DiskImage image ) { org.ovirt.engine.core.bll.ImagesHandler.addDiskImageWithNoVmDevice ( image , image.getActive ( ) , new org.ovirt.engine.core.common.businessentities.image_storage_domain_map ( image.getImageId ( ) , image.getStorageIds ( ) . get ( 0 ) , image.getQuotaId ( ) ) ) ; }
Source:
public void testGetPluggedForMac ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNic > result = dao.getPluggedForMac ( FixturesTool.MAC_ADDRESS ) ; for ( org.ovirt.engine.core.common.businessentities.network.VmNic vmNetworkInterface : result ) { org.junit.Assert.assertEquals ( FixturesTool.MAC_ADDRESS , vmNetworkInterface.getMacAddress ( ) ) ; } }

Target:
public void testGetPluggedForMac ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNic > result = dao.getPluggedForMac ( FixturesTool.MAC_ADDRESS ) ; for ( org.ovirt.engine.core.common.businessentities.network.VmNic vmNetworkInterface : result ) { org.junit.jupiter.api.Assertions.assertEquals ( FixturesTool.MAC_ADDRESS , vmNetworkInterface.getMacAddress ( ) ) ; } }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getNetworkClusterDao ( ) . remove ( org.ovirt.engine.core.bll.network.cluster.DetachNetworkToVdsGroupCommand.getParameters ( ) . getVdsGroupId ( ) , org.ovirt.engine.core.bll.network.cluster.DetachNetworkToVdsGroupCommand.getParameters ( ) . getNetwork ( ) . getId ( ) ) ; org.ovirt.engine.core.bll.network.cluster.DetachNetworkToVdsGroupCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.network.cluster.DetachNetworkToVdsGroupCommand.getNetworkClusterDAO ( ) . remove ( org.ovirt.engine.core.bll.network.cluster.DetachNetworkToVdsGroupCommand.getParameters ( ) . getVdsGroupId ( ) , org.ovirt.engine.core.bll.network.cluster.DetachNetworkToVdsGroupCommand.getParameters ( ) . getNetwork ( ) . getId ( ) ) ; org.ovirt.engine.core.bll.network.cluster.DetachNetworkToVdsGroupCommand.setSucceeded ( true ) ; }
Source:
public void updateVolumeStatus ( org.ovirt.engine.core.compat.Guid volumeId , org.ovirt.engine.core.common.businessentities.gluster.GlusterStatus newStatus ) { getGlusterVolumeDao ( ) . updateVolumeStatus ( volumeId , newStatus ) ; updateBricksStatuses ( volumeId , newStatus ) ; }

Target:
public void updateVolumeStatus ( org.ovirt.engine.core.compat.Guid volumeId , org.ovirt.engine.core.common.businessentities.gluster.GlusterStatus newStatus ) { glusterVolumeDao.updateVolumeStatus ( volumeId , newStatus ) ; updateBricksStatuses ( volumeId , newStatus ) ; }
Source:
protected java.lang.String generateVmMetadata ( org.ovirt.engine.core.common.businessentities.VM vm , java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.DiskImage > AllVmImages ) { return ovfManager.ExportVm ( vm , AllVmImages , org.ovirt.engine.core.bll.utils.ClusterUtils.getCompatibilityVersion ( vm ) ) ; }

Target:
protected java.lang.String generateVmMetadata ( org.ovirt.engine.core.common.businessentities.VM vm , java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.DiskImage > AllVmImages ) { return ovfManager.exportVm ( vm , AllVmImages , org.ovirt.engine.core.bll.utils.ClusterUtils.getCompatibilityVersion ( vm ) ) ; }
Source:
protected void rerunInternal ( ) { DecreasePendingVms ( org.ovirt.engine.core.bll.MigrateVmToServerCommand.getDestinationVds ( ) . getId ( ) ) ; _isRerun = false ; org.ovirt.engine.core.bll.MigrateVmToServerCommand.setSucceeded ( false ) ; org.ovirt.engine.core.bll.MigrateVmToServerCommand.determineMigrationFailueForAuditLog ( ) ; org.ovirt.engine.core.bll.MigrateVmToServerCommand.log ( ) ; }

Target:
protected void rerunInternal ( ) { decreasePendingVms ( org.ovirt.engine.core.bll.MigrateVmToServerCommand.getDestinationVds ( ) . getId ( ) ) ; _isRerun = false ; org.ovirt.engine.core.bll.MigrateVmToServerCommand.setSucceeded ( false ) ; org.ovirt.engine.core.bll.MigrateVmToServerCommand.determineMigrationFailueForAuditLog ( ) ; org.ovirt.engine.core.bll.MigrateVmToServerCommand.log ( ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.OneVmReturnForXmlRpc reset ( java.lang.String vmId ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc desktopLogoff ( java.lang.String vmId , java.lang.String force ) ;
Source:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__STOP ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__GLUSTER_VOLUME ) ; }

Target:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__STOP ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__GLUSTER_VOLUME ) ; addCanDoActionMessage ( java.lang.String.format ( "$volumeName %1$s" , getGlusterVolumeName ( ) ) ) ; addCanDoActionMessage ( java.lang.String.format ( "$vdsGroup %1$s" , getVdsGroupName ( ) ) ) ; }
Source:
public void testGetById ( ) { org.ovirt.engine.core.common.businessentities.network.HostNicVfsConfig result = dao.get ( FixturesTool.HOST_NIC_VFS_CONFIG ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( FixturesTool.HOST_NIC_VFS_CONFIG , result.getId ( ) ) ; checkNetworksAndLabels ( result , 0 , 0 ) ; }

Target:
public void testGetById ( ) { org.ovirt.engine.core.common.businessentities.network.HostNicVfsConfig result = dao.get ( FixturesTool.HOST_NIC_VFS_CONFIG ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertEquals ( FixturesTool.HOST_NIC_VFS_CONFIG , result.getId ( ) ) ; checkNetworksAndLabels ( result , 0 , 0 ) ; }
Source:
private java.lang.String generateTokenValueResponse ( ) { byte [ ] tokenBytes = getThreadLocalRequest ( ) . getSession ( ) . getId ( ) . getBytes ( java.nio.charset.Charset.forName ( "UTF-8" ) ) ; return com.google.gwt.util.tools.shared.StringUtils.toHexString ( com.google.gwt.util.tools.shared.Md5Utils.getMd5Digest ( tokenBytes ) ) ; }

Target:
private java.lang.String generateTokenValueResponse ( ) { return com.google.gwt.util.tools.shared.StringUtils.toHexString ( ( ( byte [ ] ) ( getThreadLocalRequest ( ) . getSession ( ) . getAttribute ( org.ovirt.engine.ui.frontend.server.gwt.OvirtXsrfTokenServiceServlet.XSRF_TOKEN ) ) ) ) ; }
Source:
protected boolean validate ( ) { if ( ( org.ovirt.engine.core.bll.RemoveBookmarkCommand.getBookmark ( ) ) == null ) { addInvalidIdErrorMessages ( EngineMessage.VAR__ACTION__UPDATE ) ; return false ; } return true ; }

Target:
public void setActionMessageParameters ( ) { super . setActionMessageParameters ( ) ; addValidationMessage ( EngineMessage.VAR__ACTION__REMOVE ) ; }
Source:
protected void applyCommonValidationStyles ( ) { super . applyCommonValidationStyles ( ) ; org.ovirt.engine.ui.common.widget.editor.BaseEntityModelCheckboxEditor.getValidatedWidgetStyle ( ) . setPadding ( 5 , Unit.PX ) ; }

Target:
protected void applyCommonValidationStyles ( ) { super . applyCommonValidationStyles ( ) ; if ( ! ( org.ovirt.engine.ui.common.widget.editor.BaseEntityModelCheckboxEditor.isUsePatternfly ( ) ) ) { org.ovirt.engine.ui.common.widget.editor.BaseEntityModelCheckboxEditor.getValidatedWidgetStyle ( ) . setPadding ( 5 , Unit.PX ) ; } }
Source:
public boolean execute ( ) { if ( ( restApiSessionId ) != null ) { sendRequest ( createRequest ( ) , new org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.RestApiRequestCallback ( ) ) ; return true ; } else { return false ; } }

Target:
public void onEngineSessionRefreshed ( org.ovirt.engine.ui.frontend.communication.EngineSessionRefreshedEvent event ) { if ( ( restApiSessionId ) != null ) { refreshRestApiSession = true ; } }
Source:
protected void OnEntityChanged ( ) { super . OnEntityChanged ( ) ; if ( ( getEntity ( ) ) != null ) { getSearchCommand ( ) . Execute ( ) ; } }

Target:
protected void OnEntityChanged ( ) { super . OnEntityChanged ( ) ; if ( ( getEntity ( ) ) != null ) { isEntityChanged = true ; getSearchCommand ( ) . Execute ( ) ; } }
Source:
com.google.gwt.safehtml.shared.SafeHtml lineChartWithoutImage ( int textWidth , java.lang.String textColor , java.lang.String fontWeight ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml lineChartWithoutImage ( com.google.gwt.safecss.shared.SafeStyles styles ) ;
Source:
protected java.lang.String getTitle ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel value ) { return value.isPool ( ) ? constants.takeVmLabel ( ) : constants.runVmLabel ( ) ; }

Target:
protected java.lang.String getTitle ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel value ) { return value.isPool ( ) ? org.ovirt.engine.ui.userportal.section.main.view.tab.extended.SideTabExtendedVirtualMachineView.constants.takeVmLabel ( ) : org.ovirt.engine.ui.userportal.section.main.view.tab.extended.SideTabExtendedVirtualMachineView.constants.runVmLabel ( ) ; }
Source:
public org.ovirt.engine.api.resource.VirtualFunctionAllowedNetworksResource getVfAllowedNetworksResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendVirtualFunctionAllowedNetworksResource ( guid , parent.getHostId ( ) ) ) ; }

Target:
public org.ovirt.engine.api.resource.VirtualFunctionAllowedNetworksResource getVirtualFunctionAllowedNetworksResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendVirtualFunctionAllowedNetworksResource ( guid , parent.getHostId ( ) ) ) ; }
Source:
public org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc heartBeat ( ) { org.ovirt.vdsm.jsonrpc.client.JsonRpcRequest request = new org.ovirt.vdsm.jsonrpc.client.RequestBuilder ( "Host.ping" ) . build ( ) ; java.util.Map < java.lang.String , java.lang.Object > response = new org.ovirt.engine.core.vdsbroker.jsonrpc.FutureMap ( this . client , request ) ; return new org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc ( response ) ; }

Target:
public org.ovirt.engine.core.vdsbroker.gluster.GlusterHostsPubKeyReturnForXmlRpc glusterGeoRepKeysGet ( ) { org.ovirt.vdsm.jsonrpc.client.JsonRpcRequest request = new org.ovirt.vdsm.jsonrpc.client.RequestBuilder ( "GlusterVolume.geoRepKeysGet" ) . build ( ) ; java.util.Map < java.lang.String , java.lang.Object > response = new org.ovirt.engine.core.vdsbroker.jsonrpc.FutureMap ( this . client , request ) ; return new org.ovirt.engine.core.vdsbroker.gluster.GlusterHostsPubKeyReturnForXmlRpc ( response ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.Snapshot prepareSnapshotConfigWithoutImageSingleImage ( org.ovirt.engine.core.common.businessentities.Snapshot snapshot , org.ovirt.engine.core.compat.Guid imageId , org.ovirt.engine.core.utils.ovf.OvfManager ovfManager ) { return prepareSnapshotConfigWithAlternateImage ( snapshot , imageId , null , ovfManager ) ; }

Target:
public static org.ovirt.engine.core.common.businessentities.Snapshot prepareSnapshotConfigWithoutImageSingleImage ( org.ovirt.engine.core.common.businessentities.Snapshot snapshot , org.ovirt.engine.core.compat.Guid imageId , org.ovirt.engine.core.utils.ovf.OvfManager ovfManager ) { return org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.prepareSnapshotConfigWithAlternateImage ( snapshot , imageId , null , ovfManager ) ; }
Source:
public void unsetBlockStatistic ( ) { this . blockStatistic = null ; }

Target:
public boolean isSetBlockStatistics ( ) { return ( this . blockStatistics ) != null ; }
Source:
public boolean getis_display ( ) { return this . isDisplay ; }

Target:
public void setDisplay ( boolean value ) { this . display = value ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = prepareDAO ( dbFacade.getVdsDao ( ) ) ; existingVds = dao.get ( org.ovirt.engine.core.dao.VdsDAOTest.EXISTING_VDS_ID ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = prepareDAO ( dbFacade.getVdsDao ( ) ) ; existingVds = dao.get ( org.ovirt.engine.core.dao.VdsDAOTest.EXISTING_VDS_ID ) ; existingVds2 = dao.get ( org.ovirt.engine.core.dao.VdsDAOTest.EXISTING_VDS_ID_2 ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetAllNetworkQosByStoragePoolIdQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.GetAllNetworkQosByStoragePoolIdQuery.getDbFacade ( ) . getQosDao ( ) . getAllForStoragePoolId ( org.ovirt.engine.core.bll.GetAllNetworkQosByStoragePoolIdQuery.getParameters ( ) . getId ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetAllNetworkQosByStoragePoolIdQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.GetAllNetworkQosByStoragePoolIdQuery.getDbFacade ( ) . getNetworkQosDao ( ) . getAllForStoragePoolId ( org.ovirt.engine.core.bll.GetAllNetworkQosByStoragePoolIdQuery.getParameters ( ) . getId ( ) ) ) ; }
Source:
protected org.ovirt.engine.api.model.StorageDomain getEntity ( int index ) { org.ovirt.engine.api.model.StorageDomain entity = control.createMock ( org.ovirt.engine.api.model.StorageDomain.class ) ; return org.ovirt.engine.api.restapi.resource.BackendAttachedStorageDomainsResourceTest.setUpEntityExpectations ( entity , index , StorageType.NFS ) ; }

Target:
protected org.ovirt.engine.api.model.StorageDomain getEntity ( int index , org.ovirt.engine.core.common.businessentities.StorageType storageType ) { org.ovirt.engine.api.model.StorageDomain entity = control.createMock ( org.ovirt.engine.api.model.StorageDomain.class ) ; return org.ovirt.engine.api.restapi.resource.BackendAttachedStorageDomainsResourceTest.setUpEntityExpectations ( entity , index , storageType ) ; }
Source:
protected void setUpGetEntityExpectations ( int index ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.GetInstanceType , org.ovirt.engine.core.common.queries.GetVmTemplateParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ index ] } , getEntity ( index ) ) ; }

Target:
protected void setUpGetEntityExpectations ( int index ) throws java.lang.Exception { setUpGetEntityExpectations ( QueryType.GetInstanceType , org.ovirt.engine.core.common.queries.GetVmTemplateParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ index ] } , getEntity ( index ) ) ; }
Source:
public void preventRollback ( ) { getParameters ( ) . setExecutionIndex ( 0 ) ; org.ovirt.engine.core.bll.ImagesHandler.updateAllDiskImageSnapshotsStatus ( getParameters ( ) . getImageGroupID ( ) , ImageStatus.OK ) ; }

Target:
public void preventRollback ( ) { getParameters ( ) . setExecutionIndex ( 0 ) ; org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.updateAllDiskImageSnapshotsStatus ( getParameters ( ) . getImageGroupID ( ) , ImageStatus.OK ) ; }
Source:
public void qosOverCommitmentReportedNicSpeed ( ) { org.ovirt.engine.core.bll.network.host.SetupNetworksHelper helper = qosCommitmentNicSetup ( org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.DEFAULT_SPEED , org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.DEFAULT_SPEED ) ; validateAndExpectViolation ( helper , VdcBllMessages.ACTION_TYPE_FAILED_HOST_NETWORK_QOS_OVERCOMMITMENT , org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.BOND_NAME ) ; }

Target:
public void qosOverCommitmentReportedNicSpeed ( ) { org.ovirt.engine.core.bll.network.host.SetupNetworksHelper helper = qosCommitmentNicSetup ( org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.DEFAULT_SPEED , org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.DEFAULT_SPEED ) ; validateAndExpectViolation ( helper , EngineMessage.ACTION_TYPE_FAILED_HOST_NETWORK_QOS_OVERCOMMITMENT , org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.BOND_NAME ) ; }
Source:
protected void syncSearch ( ) { org.ovirt.engine.core.common.queries.SearchParameters tempVar = new org.ovirt.engine.core.common.queries.SearchParameters ( getSearchString ( ) , org.ovirt.engine.core.common.interfaces.SearchType.VDS ) ; tempVar.setMaxCount ( getSearchPageSize ( ) ) ; super . syncSearch ( VdcQueryType.Search , tempVar ) ; }

Target:
protected void syncSearch ( ) { org.ovirt.engine.core.common.queries.SearchParameters tempVar = new org.ovirt.engine.core.common.queries.SearchParameters ( getSearchString ( ) , org.ovirt.engine.core.common.interfaces.SearchType.VDS , isCaseSensitiveSearch ( ) ) ; tempVar.setMaxCount ( getSearchPageSize ( ) ) ; super . syncSearch ( VdcQueryType.Search , tempVar ) ; }
Source:
public void setIsVolumeFormatAvailable ( boolean isVolumeFormatAvailable ) { this . isVolumeFormatAvailable = isVolumeFormatAvailable ; }

Target:
public void setIsVolumeTypeAvailable ( boolean isVolumeFormatAvailable ) { this . isVolumeTypeAvailable = isVolumeFormatAvailable ; }
Source:
public void testIsNetworkInSyncWhenBootProtocolEqual ( ) throws java.lang.Exception { initIpConfigurationBootProtocol ( true ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testIsNetworkInSyncWhenIpv4GatewayEqual ( ) { initIpv4ConfigurationBootProtocolGateway ( Ipv4BootProtocol.STATIC_IP , true ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
public void testGetRelevantQuotasExistingStorageNoSpecificQuotas ( ) throws java.lang.Exception { assertGetAllRelevantQuoatsForStorage ( FixturesTool.STORAGE_DOAMIN_NFS_ISO , ( ( org.ovirt.engine.core.dao.QuotaDaoTest.STORAGE_NUM_QUOTAS ) - 1 ) ) ; }

Target:
public void testGetRelevantQuotasExistingStorageNoSpecificQuotas ( ) throws java.lang.Exception { assertGetAllRelevantQuoatsForStorage ( FixturesTool.STORAGE_DOMAIN_NFS_ISO , ( ( org.ovirt.engine.core.dao.QuotaDaoTest.STORAGE_NUM_QUOTAS ) - 1 ) ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepStatus ( java.lang.String volumeName ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepSessionList ( ) ;
Source:
public org.ovirt.engine.api.model.Quota get ( ) { org.ovirt.engine.core.common.queries.IdQueryParameters params = new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ; org.ovirt.engine.api.model.Quota quota = performGet ( VdcQueryType.GetQuotaByQuotaId , params ) ; return quota ; }

Target:
public org.ovirt.engine.api.model.Quota get ( ) { return addLinks ( performGet ( VdcQueryType.GetQuotaByQuotaId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ) ; }
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.storage.LUNs > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.LUNs > ( ) ; }

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.storage.LUNs > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage.LUNs > ( ) ; }
Source:
protected void SyncSearch ( ) { if ( ( getEntity ( ) ) == null ) { return ; } super . SyncSearch ( ) ; super . SyncSearch ( VdcQueryType.GetEventSubscribersBySubscriberIdGrouped , new org.ovirt.engine.core.common.queries.GetEventSubscribersBySubscriberIdParameters ( getEntity ( ) . getuser_id ( ) ) ) ; }

Target:
protected void syncSearch ( ) { if ( ( getEntity ( ) ) == null ) { return ; } super . syncSearch ( ) ; super . syncSearch ( VdcQueryType.GetEventSubscribersBySubscriberIdGrouped , new org.ovirt.engine.core.common.queries.GetEventSubscribersBySubscriberIdParameters ( getEntity ( ) . getuser_id ( ) ) ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.EntityModel getHardDiskOption ( ) { for ( org.ovirt.engine.ui.uicommonweb.models.EntityModel a : getItems ( ) ) { if ( ( ( org.ovirt.engine.core.common.businessentities.BootSequence ) ( a.getEntity ( ) ) ) == ( org.ovirt.engine.core.common.businessentities.BootSequence.C ) ) { return a ; } } throw new java.lang.IndexOutOfBoundsException ( ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.EntityModel getHardDiskOption ( ) { return getBootSequenceOption ( BootSequence.C ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.BootSequence getdefault_boot_sequence ( ) { return this . mVmStatic.getdefault_boot_sequence ( ) ; }

Target:
public void setVdsGroupCpuName ( java.lang.String value ) { this . vdsGroupCpuName = value ; }
Source:
public void setVdsName ( java.lang.String value ) { vdsStatic.setVdsName ( value ) ; }

Target:
public void setVdsName ( java.lang.String value ) { vdsStatic.setName ( value ) ; }
Source:
public void canDoActionFailsWithEmptyBricksList ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.CommitRemoveGlusterVolumeBricksCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters ( volumeWithoutRemoveBricksTask , new java.util.ArrayList < > ( ) ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }

Target:
public void validateFailsWithEmptyBricksList ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.CommitRemoveGlusterVolumeBricksCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters ( volumeWithoutRemoveBricksTask , new java.util.ArrayList < > ( ) ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
public void testGetNonePermittedStorageDomains ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getPermittedStorageDomainsByStoragePool ( FixturesTool.USER_EXISTING_ID , ActionGroup.CONSUME_QUOTA , FixturesTool.DATA_CENTER ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetNonePermittedStorageDomains ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getPermittedStorageDomainsByStoragePool ( FixturesTool.USER_EXISTING_ID , ActionGroup.CONSUME_QUOTA , FixturesTool.DATA_CENTER ) ; org.junit.jupiter.api.Assertions.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > reset ( java.lang.String vmId ) ;

Target:
java.util.Map < java.lang.String , java.lang.Object > snapshot ( java.lang.String vmId , java.util.Map < java.lang.String , java.lang.String > [ ] disks , java.lang.String memory ) ;
Source:
public long getImageVirtualSize ( java.lang.String id ) { com.woorea.openstack.glance.model.Image glanceImage = getGlanceClient ( ) . images ( ) . show ( id ) . execute ( ) ; return getImageVirtualSize ( glanceImage ) ; }

Target:
public long getImageVirtualSize ( java.lang.String id ) { com.woorea.openstack.glance.model.Image glanceImage = getClient ( ) . images ( ) . show ( id ) . execute ( ) ; return getImageVirtualSize ( glanceImage ) ; }
Source:
public void sriovFeatureNotSupported ( ) { sriovFeatureSupportTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_SRIOV_FEATURE_NOT_SUPPORTED ) , false ) ; }

Target:
public void sriovFeatureNotSupported ( ) { sriovFeatureSupportTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_SRIOV_FEATURE_NOT_SUPPORTED ) , false ) ; }
Source:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__VOLUME_SNAPSHOT_CONFIG_UPDATE ) ; }

Target:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__GLUSTER_VOLUME_SNAPSHOT_CONFIG ) ; addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__VOLUME_SNAPSHOT_CONFIG_UPDATE ) ; }
Source:
protected java.math.BigDecimal asDec ( double d ) { return new java.math.BigDecimal ( d ) ; }

Target:
protected java.math.BigDecimal asDec ( double d ) { return new java.math.BigDecimal ( d , new java.math.MathContext ( 2 ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VM getVm ( ) { return hostedEngineVm ; }

Target:
public org.ovirt.engine.core.compat.Guid getRunningHostId ( ) { return hostedEngineVm.getRunOnVds ( ) ; }
Source:
public void shouldDetectNonMigratableVMs ( ) { invalidVM.setMigrationSupport ( org.ovirt.engine.core.common.businessentities.MigrationSupport.PINNED_TO_HOST ) ; org.hamcrest.MatcherAssert.assertThat ( validator.checkVmReadyForUpgrade ( invalidVM ) , org.hamcrest.CoreMatchers.hasItem ( UPGRADE_ERROR.VM_NOT_MIGRATABLE ) ) ; }

Target:
public void shouldDetectCpuPinning ( ) { invalidVM.setCpuPinning ( "i am pinned" ) ; org.hamcrest.MatcherAssert.assertThat ( validator.checkVmReadyForUpgrade ( invalidVM ) , org.hamcrest.CoreMatchers.hasItem ( EngineMessage.CLUSTER_UPGRADE_DETAIL_VM_CPUS_PINNED.name ( ) ) ) ; }
Source:
public void testRemoveCantDo ( ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetVdsGroupsByStoragePoolId , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendDataCenterClusterResourceTest.dataCenterId } , setUpVDSGroups ( ) , null ) ; doTestBadRemove ( false , true , org.ovirt.engine.api.restapi.resource.CANT_DO ) ; }

Target:
public void testRemoveCantDo ( ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetClustersByStoragePoolId , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendDataCenterClusterResourceTest.dataCenterId } , setUpClusters ( ) , null ) ; doTestBadRemove ( false , true , org.ovirt.engine.api.restapi.resource.CANT_DO ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.Snapshot getActiveSnapshot ( ) { return org.ovirt.engine.core.bll.VmCommand.getSnapshotDAO ( ) . get ( org.ovirt.engine.core.bll.VmCommand.getVm ( ) . getId ( ) , SnapshotType.ACTIVE ) ; }

Target:
protected boolean failVmStatusIllegal ( ) { return failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_VM_STATUS_ILLEGAL , org.ovirt.engine.core.bll.validator.LocalizedVmStatus.from ( org.ovirt.engine.core.bll.VmCommand.getVm ( ) . getStatus ( ) ) ) ; }
Source:
public void setdisplay_secure_port ( java.lang.Integer value ) { this . mVmDynamic.setdisplay_secure_port ( value ) ; }

Target:
public void setBootSequence ( org.ovirt.engine.core.common.businessentities.BootSequence value ) { this . vmDynamic.setboot_sequence ( value ) ; }
Source:
private void markVfsAsUsedByVm ( org.ovirt.engine.core.compat.Guid hostId , org.ovirt.engine.core.compat.Guid vmId , java.util.Map < org.ovirt.engine.core.compat.Guid , java.lang.String > passthroughVnicToVfMap ) { org.ovirt.engine.core.bll.network.host.HostNicVfsConfigHelper hostNicVfsConfigHelper = org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.bll.network.host.HostNicVfsConfigHelper.class ) ; hostNicVfsConfigHelper.setVmIdOnVfs ( hostId , vmId , new java.util.HashSet ( passthroughVnicToVfMap.values ( ) ) ) ; }

Target:
private void markVfsAsUsedByVm ( org.ovirt.engine.core.compat.Guid hostId , org.ovirt.engine.core.compat.Guid vmId , java.util.Map < org.ovirt.engine.core.compat.Guid , java.lang.String > passthroughVnicToVfMap ) { org.ovirt.engine.core.bll.network.host.NetworkDeviceHelper networkDeviceHelper = org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.bll.network.host.NetworkDeviceHelper.class ) ; networkDeviceHelper.setVmIdOnVfs ( hostId , vmId , new java.util.HashSet ( passthroughVnicToVfMap.values ( ) ) ) ; }
Source:
public java.lang.String getCertificateSubject ( ) { return vdsStatic.getCertificateSubject ( ) ; }

Target:
public void setHostedEngineConfigured ( boolean heConfigured ) { vdsDynamic.setHostedEngineConfigured ( heConfigured ) ; }
Source:
public void externalNetworkPortMirroring ( ) throws java.lang.Exception { externalNetworkPortMirroringTest ( true , true , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_EXTERNAL_NETWORK_CANNOT_BE_PORT_MIRRORED ) ) ; }

Target:
public void externalNetworkPortMirroring ( ) throws java.lang.Exception { externalNetworkPortMirroringTest ( true , true , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_EXTERNAL_NETWORK_CANNOT_BE_PORT_MIRRORED ) ) ; }
Source:
public void setVolumeFormat ( org.ovirt.engine.core.common.businessentities.VolumeFormat volumeFormat ) { this . volumeFormat = volumeFormat ; }

Target:
public void setCinderVolumeType ( org.ovirt.engine.ui.uicommonweb.models.ListModel < java.lang.String > cinderVolumeType ) { this . cinderVolumeType = cinderVolumeType ; }
Source:
protected org.ovirt.engine.core.common.businessentities.StoragePool getEntity ( int index ) { return org.ovirt.engine.api.restapi.resource.BackendDataCentersResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.core.common.businessentities.StoragePool.class ) , index ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StoragePool getEntity ( int index ) { return org.ovirt.engine.api.restapi.resource.BackendDataCentersResourceTest.setUpEntityExpectations ( org.mockito.Mockito.mock ( org.ovirt.engine.core.common.businessentities.StoragePool.class ) , index ) ; }
Source:
protected org.ovirt.engine.core.utils.vmproperties.VmPropertiesUtils getVmPropertiesUtils ( ) { return org.ovirt.engine.core.utils.vmproperties.VmPropertiesUtils.getInstance ( ) ; }

Target:
protected org.ovirt.engine.core.bll.validator.VmValidator getVmValidator ( org.ovirt.engine.core.common.businessentities.VM vm ) { return new org.ovirt.engine.core.bll.validator.VmValidator ( vm ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc sendHcCmdToDesktop ( java.lang.String vmId , java.lang.String hcCommand ) ;

Target:
org.ovirt.engine.core.vdsbroker.gluster.GlusterServicesReturnForXmlRpc glusterServicesList ( org.ovirt.engine.core.compat.Guid serverId , java.lang.String [ ] serviceNames ) ;
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 ( ) , LockMessagesMatchUtil.POOL ) ; }

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 , VdcBllMessages.ACTION_TYPE_FAILED_OBJECT_LOCKED ) ) ; }