auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void setManagmentIp ( java.lang.String value ) { this . mVdsStatic.setManagmentIp ( value ) ; }

Target:
public int getPort ( ) { return this . mVdsStatic.getPort ( ) ; }
Source:
private void updateLUNConnectionsInfo ( org.ovirt.engine.core.common.businessentities.storage.LUNs lun ) { lun.setLunConnections ( new java.util.ArrayList ( org.ovirt.engine.core.bll.storage.disk.AbstractDiskVmCommand.getDbFacade ( ) . getStorageServerConnectionDao ( ) . getAllForLun ( lun.getLUN_id ( ) ) ) ) ; }

Target:
private void updateLUNConnectionsInfo ( org.ovirt.engine.core.common.businessentities.storage.LUNs lun ) { lun.setLunConnections ( new java.util.ArrayList ( org.ovirt.engine.core.bll.storage.disk.AbstractDiskVmCommand.getDbFacade ( ) . getStorageServerConnectionDao ( ) . getAllForLun ( lun.getLUNId ( ) ) ) ) ; }
Source:
private void doFinish ( ) { if ( ( needsAttach ) || ( needsDetach ) ) { return ; } stopProgress ( ) ; cancel ( ) ; sourceListModel.forceRefresh ( ) ; }

Target:
private void doFinish ( ) { if ( ( ( needsAttach ) || ( needsDetach ) ) || ( needsUpdate ) ) { return ; } stopProgress ( ) ; cancel ( ) ; sourceListModel.forceRefresh ( ) ; }
Source:
public void testConvertBytestoGB ( ) { long bytes = 3221228000L ; int gigabytes = org.ovirt.engine.core.common.utils.SizeConverter.convert ( bytes , SizeConverter.SizeUnit.BYTES , SizeConverter.SizeUnit.GB ) . intValue ( ) ; org.junit.Assert.assertEquals ( gigabytes , 3 ) ; }

Target:
public void testConvertBytestoGB ( ) { long bytes = 3221228000L ; int gigabytes = org.ovirt.engine.core.common.utils.SizeConverter.convert ( bytes , SizeConverter.SizeUnit.BYTES , SizeConverter.SizeUnit.GiB ) . intValue ( ) ; org.junit.Assert.assertEquals ( gigabytes , 3 ) ; }
Source:
protected void onReveal ( ) { super . onReveal ( ) ; getView ( ) . handleQuotaColumnVisibility ( ) ; }

Target:
protected void onReveal ( ) { super . onReveal ( ) ; getView ( ) . handleQuotaColumnVisibility ( ) ; getView ( ) . ensureColumnsVisible ( getModel ( ) . getDiskViewType ( ) . getEntity ( ) ) ; }
Source:
public java.lang.String render ( java.lang.Object entity ) { if ( entity == null ) { return constants.unAvailablePropertyLabel ( ) ; } return org.ovirt.engine.ui.common.widget.renderer.FullDateTimeRenderer.getLocalizedDateTimeFormat ( ) . format ( ( ( java.util.Date ) ( entity ) ) ) ; }

Target:
public java.lang.String render ( java.lang.Object entity ) { if ( entity == null ) { return constants.unAvailablePropertyLabel ( ) ; } return org.ovirt.engine.ui.common.widget.renderer.GlusterRebalanceDateTimeRenderer.getLocalizedDateTimeFormat ( ) . format ( ( ( java.util.Date ) ( entity ) ) ) ; }
Source:
protected org.ovirt.engine.api.model.StorageDomain getEntity ( int index ) { return org.ovirt.engine.api.restapi.resource.BackendStorageDomainsResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.api.model.StorageDomain.class ) , index ) ; }

Target:
protected org.ovirt.engine.api.model.StorageDomain getEntity ( int index ) { return org.ovirt.engine.api.restapi.resource.BackendStorageDomainsResourceTest.setUpEntityExpectations ( org.mockito.Mockito.mock ( org.ovirt.engine.api.model.StorageDomain.class ) , index ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetVmsRunningOnVDSCountQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDynamicDAO ( ) . get ( org.ovirt.engine.core.bll.GetVmsRunningOnVDSCountQuery.getParameters ( ) . getId ( ) ) . getvm_count ( ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetVmsRunningOnVDSCountQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDynamicDao ( ) . get ( org.ovirt.engine.core.bll.GetVmsRunningOnVDSCountQuery.getParameters ( ) . getId ( ) ) . getvm_count ( ) ) ; }
Source:
public void testUpdateLastAdminCheckStatus ( ) { org.ovirt.engine.core.common.businessentities.DbUser nonAdminUser = dbFacade.getDbUserDao ( ) . getByUsername ( "userportal2@testportal.redhat.com" ) ; org.junit.Assert.assertNotNull ( nonAdminUser ) ; org.junit.Assert.assertFalse ( nonAdminUser.isAdmin ( ) ) ; dbFacade.updateLastAdminCheckStatus ( nonAdminUser.getId ( ) ) ; nonAdminUser = dbFacade.getDbUserDao ( ) . get ( nonAdminUser.getId ( ) ) ; org.junit.Assert.assertFalse ( nonAdminUser.isAdmin ( ) ) ; org.ovirt.engine.core.common.businessentities.Permissions perms = new org.ovirt.engine.core.common.businessentities.Permissions ( ) ; perms.setRoleType ( RoleType.ADMIN ) ; perms.setrole_id ( org.ovirt.engine.core.dao.DbFacadeDAOTest.ADMIN_ROLE_TYPE_FROM_FIXTURE_ID ) ; perms.setad_element_id ( nonAdminUser.getId ( ) ) ; perms.setObjectId ( org.ovirt.engine.core.dao.DbFacadeDAOTest.SYSTEM_OBJECT_ID ) ; perms.setObjectType ( VdcObjectType.System ) ; dbFacade.getPermissionDao ( ) . save ( perms ) ; org.junit.Assert.assertNotNull ( dbFacade.getPermissionDao ( ) . get ( perms.getId ( ) ) ) ; dbFacade.updateLastAdminCheckStatus ( nonAdminUser.getId ( ) ) ; nonAdminUser = dbFacade.getDbUserDao ( ) . get ( nonAdminUser.getId ( ) ) ; org.junit.Assert.assertTrue ( nonAdminUser.isAdmin ( ) ) ; }

Target:
public void testUpdateLastAdminCheckStatus ( ) { org.ovirt.engine.core.common.businessentities.DbUser nonAdminUser = dbFacade.getDbUserDao ( ) . getByUsernameAndDomain ( "userportal2@testportal.redhat.com" , "testportal.redhat.com" ) ; org.junit.Assert.assertNotNull ( nonAdminUser ) ; org.junit.Assert.assertFalse ( nonAdminUser.isAdmin ( ) ) ; dbFacade.updateLastAdminCheckStatus ( nonAdminUser.getId ( ) ) ; nonAdminUser = dbFacade.getDbUserDao ( ) . get ( nonAdminUser.getId ( ) ) ; org.junit.Assert.assertFalse ( nonAdminUser.isAdmin ( ) ) ; org.ovirt.engine.core.common.businessentities.Permissions perms = new org.ovirt.engine.core.common.businessentities.Permissions ( ) ; perms.setRoleType ( RoleType.ADMIN ) ; perms.setrole_id ( org.ovirt.engine.core.dao.DbFacadeDAOTest.ADMIN_ROLE_TYPE_FROM_FIXTURE_ID ) ; perms.setad_element_id ( nonAdminUser.getId ( ) ) ; perms.setObjectId ( org.ovirt.engine.core.dao.DbFacadeDAOTest.SYSTEM_OBJECT_ID ) ; perms.setObjectType ( VdcObjectType.System ) ; dbFacade.getPermissionDao ( ) . save ( perms ) ; org.junit.Assert.assertNotNull ( dbFacade.getPermissionDao ( ) . get ( perms.getId ( ) ) ) ; dbFacade.updateLastAdminCheckStatus ( nonAdminUser.getId ( ) ) ; nonAdminUser = dbFacade.getDbUserDao ( ) . get ( nonAdminUser.getId ( ) ) ; org.junit.Assert.assertTrue ( nonAdminUser.isAdmin ( ) ) ; }
Source:
public void OnPreSaveInternal ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterModel model ) { if ( ( ( java.lang.Boolean ) ( model.getIsImportGlusterConfiguration ( ) . getEntity ( ) ) ) ) { fetchAndImportClusterHosts ( model ) ; } else { OnSaveInternal ( ) ; } }

Target:
public void onSaveInternal ( ) { org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterModel ) ( getWindow ( ) ) ) ; if ( ( model.getProgress ( ) ) != null ) { return ; } cancelConfirmation ( ) ; onSaveInternalWithModel ( model ) ; }
Source:
public org.ovirt.engine.api.resource.FileResource getFileSubResource ( java.lang.String id ) { return new org.ovirt.engine.api.restapi.resource.BackendFileResource ( id , this ) ; }

Target:
public org.ovirt.engine.api.resource.FileResource getFileResource ( java.lang.String id ) { return new org.ovirt.engine.api.restapi.resource.BackendFileResource ( id , this ) ; }
Source:
public void setGuestCurUserName ( java.lang.String value ) { this . vmDynamic.setguest_cur_user_name ( value ) ; }

Target:
public void setGuestCurrentUserName ( java.lang.String value ) { this . vmDynamic.setguest_cur_user_name ( value ) ; }
Source:
public void addActionButton ( org.ovirt.engine.ui.common.widget.action.ActionButton actionButton ) { notificationKebab.addActionButton ( actionButton ) ; notificationKebab.setVisible ( ( ( notificationKebab.getWidgetCount ( ) ) > 0 ) ) ; }

Target:
public void addActionButton ( org.ovirt.engine.ui.common.widget.action.ActionButton actionButton ) { notificationKebab.addMenuItem ( actionButton ) ; notificationKebab.setVisible ( ( ( notificationKebab.getWidgetCount ( ) ) > 0 ) ) ; }
Source:
public final void setFilterImplemeted ( boolean filterImplemeted ) { policyUnit.setFilterImplemeted ( filterImplemeted ) ; }

Target:
public void setPolicyUnitType ( org.ovirt.engine.core.common.scheduling.PolicyUnitType policyUnitType ) { policyUnit.setPolicyUnitType ( policyUnitType ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VMStatus getRawValue ( org.ovirt.engine.core.common.businessentities.VM object ) { return object.getstatus ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.VmNetworkInterface , org.ovirt.engine.core.common.businessentities.VM > object ) { return object.getFirst ( ) . getName ( ) ; }
Source:
private void buildImageReference ( ) { org.ovirt.engine.core.compat.backendcompat.XmlNodeList list = _document.SelectNodes ( "//*/File" , _xmlNS ) ; for ( org.ovirt.engine.core.compat.backendcompat.XmlNode node : list ) { org.ovirt.engine.core.common.businessentities.DiskImage image = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; image.setImageId ( new org.ovirt.engine.core.compat.Guid ( node.Attributes.get ( "ovf:id" ) . getValue ( ) ) ) ; image.setId ( org.ovirt.engine.core.utils.ovf.OvfParser.GetImageGrupIdFromImageFile ( node.Attributes.get ( "ovf:href" ) . getValue ( ) ) ) ; image.setactive ( true ) ; image.setImageStatus ( ImageStatus.OK ) ; image.setdescription ( node.Attributes.get ( "ovf:description" ) . getValue ( ) ) ; _images.add ( image ) ; } }

Target:
private void buildImageReference ( ) { org.ovirt.engine.core.compat.backendcompat.XmlNodeList list = _document.SelectNodes ( "//*/File" , _xmlNS ) ; for ( org.ovirt.engine.core.compat.backendcompat.XmlNode node : list ) { org.ovirt.engine.core.common.businessentities.DiskImage image = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; image.setImageId ( new org.ovirt.engine.core.compat.Guid ( node.Attributes.get ( "ovf:id" ) . getValue ( ) ) ) ; image.setId ( org.ovirt.engine.core.utils.ovf.OvfParser.GetImageGrupIdFromImageFile ( node.Attributes.get ( "ovf:href" ) . getValue ( ) ) ) ; image.setActive ( true ) ; image.setImageStatus ( ImageStatus.OK ) ; image.setDescription ( node.Attributes.get ( "ovf:description" ) . getValue ( ) ) ; _images.add ( image ) ; } }
Source:
public void removeAsyncRunningCommand ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.common.businessentities.IVdsAsyncCommand command = org.ovirt.engine.core.bll.Backend.getInstance ( ) . getResourceManager ( ) . RemoveAsyncRunningCommand ( vmId ) ; if ( command != null ) { command.reportCompleted ( ) ; } }

Target:
public void removeAsyncRunningCommand ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.common.businessentities.IVdsAsyncCommand command = backend.getResourceManager ( ) . RemoveAsyncRunningCommand ( vmId ) ; if ( command != null ) { command.reportCompleted ( ) ; } }
Source:
public void setvmt_name ( java.lang.String value ) { this . vmt_nameField = value ; }

Target:
public org.ovirt.engine.core.compat.Guid getVmtGuid ( ) { return this . vmStatic.getvmt_guid ( ) ; }
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 ( getImageGroupId ( ) . toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.DISK , VdcBllMessages.ACTION_TYPE_FAILED_DISKS_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 ( getImageGroupId ( ) . toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.DISK , EngineMessage.ACTION_TYPE_FAILED_DISKS_LOCKED ) ) ; }
Source:
private void detachLabeledNetworksFromClusterHosts ( ) { final org.ovirt.engine.core.common.action.AttachNetworkToClusterParameter attachNetworkToClusterParameter = org.ovirt.engine.core.bll.network.cluster.DetachNetworkToClusterCommand.getParameters ( ) ; runInternalAction ( VdcActionType.PropagateLabeledNetworksToClusterHosts , new org.ovirt.engine.core.common.action.ManageNetworkClustersParameters ( java.util.Collections.emptyList ( ) , new java.util.ArrayList ( java.util.Collections.singleton ( attachNetworkToClusterParameter.getNetworkCluster ( ) ) ) ) ) ; }

Target:
private void detachLabeledNetworksFromClusterHosts ( ) { final org.ovirt.engine.core.common.action.AttachNetworkToClusterParameter attachNetworkToClusterParameter = org.ovirt.engine.core.bll.network.cluster.DetachNetworkToClusterCommand.getParameters ( ) ; runInternalAction ( ActionType.PropagateLabeledNetworksToClusterHosts , new org.ovirt.engine.core.common.action.ManageNetworkClustersParameters ( java.util.Collections.emptyList ( ) , new java.util.ArrayList ( java.util.Collections.singleton ( attachNetworkToClusterParameter.getNetworkCluster ( ) ) ) ) ) ; }
Source:
protected static boolean canAttachPrestartedVmToUser ( org.ovirt.engine.core.compat.Guid vmId ) { return ( ! ( org.ovirt.engine.core.bll.VmPoolCommandBase.vmAssignedToUser ( vmId , new java.util.ArrayList < java.lang.String > ( ) ) ) ) && ( org.ovirt.engine.core.bll.VmPoolCommandBase.vmIsRunningStateless ( vmId ) ) ; }

Target:
protected static boolean canAttachPrestartedVmToUser ( org.ovirt.engine.core.compat.Guid vmId , java.util.ArrayList < java.lang.String > messages ) { return ( ! ( org.ovirt.engine.core.bll.VmPoolCommandBase.vmAssignedToUser ( vmId , messages ) ) ) && ( org.ovirt.engine.core.bll.VmPoolCommandBase.vmIsRunningStateless ( vmId ) ) ; }
Source:
public void testDuplicateKeys ( ) throws java.io.IOException { java.lang.String baseDir = java.lang.System.getProperty ( "basedir" ) ; org.junit.Assume.assumeNotNull ( baseDir ) ; java.io.File file = new java.io.File ( baseDir , "src/main/resources/bundles/AppErrors.properties" ) ; org.ovirt.engine.core.utils.DuplicateKeysCheck.assertNoDuplicateKeys ( file.getAbsolutePath ( ) ) ; }

Target:
public void testDuplicateKeys ( ) throws java.io.IOException { org.ovirt.engine.core.utils.DuplicateKeysCheck.assertNoDuplicateKeys ( org.ovirt.engine.core.utils.DuplicateKeysCheck.loadFileFromPath ( "src/main/resources/bundles/AppErrors.properties" ) ) ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml headerImage ( com.google.gwt.safehtml.shared.SafeHtml image ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml tableHeaderImage ( com.google.gwt.safehtml.shared.SafeHtml image ) ;
Source:
protected void onPropertyChanged ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . onPropertyChanged ( e ) ; if ( e.PropertyName.equals ( "Disks" ) ) { UpdateStorageDomainsAvailability ( ) ; UpdateQuotaAvailability ( ) ; registerToEvents ( ) ; } }

Target:
protected void onPropertyChanged ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . onPropertyChanged ( e ) ; if ( e.PropertyName.equals ( "Disks" ) ) { updateStorageDomainsAvailability ( ) ; updateQuotaAvailability ( ) ; registerToEvents ( ) ; } }
Source:
public void setForceLabelMessage ( org.ovirt.engine.ui.uicommonweb.models.gluster.GlusterVolumeGeoRepActionConfirmationModel object ) ;

Target:
public void setForceLabelMessage ( java.lang.String forceLabelMessage ) ;
Source:
protected void ExecuteVdsBrokerCommand ( ) { init ( ) ; status = org.ovirt.engine.core.vdsbroker.vdsbroker.HotPlugNicVDSCommand.getBroker ( ) . hotPlugNic ( struct ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.HotPlugNicVDSCommand.ProceedProxyReturnValue ( ) ; }

Target:
protected void ExecuteVdsBrokerCommand ( ) { init ( ) ; status = org.ovirt.engine.core.vdsbroker.vdsbroker.HotPlugNicVDSCommand.getBroker ( ) . hotPlugNic ( struct ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.HotPlugNicVDSCommand.proceedProxyReturnValue ( ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { getConnectivityTimeout ( ) . setEntity ( ( ( java.lang.Integer ) ( returnValue ) ) ) ; postOnSetupNetworks ( ) ; }

Target:
private boolean shouldBeRemoved ( org.ovirt.engine.core.compat.Guid attachmentId ) { java.util.Set < org.ovirt.engine.core.compat.Guid > removedAttachmentIds = new java.util.HashSet ( org.ovirt.engine.core.common.businessentities.Entities.getIds ( hostSetupNetworksParametersData.removedNetworkAttachments ) ) ; return removedAttachmentIds.contains ( attachmentId ) ; }
Source:
void onIsChangablePropertyChange ( org.ovirt.engine.ui.common.widget.HasEnabledWithHints editor , org.ovirt.engine.ui.uicommonweb.models.EntityModel model ) { if ( model.getIsChangable ( ) ) { editor.setEnabled ( true ) ; } else { editor.disable ( model.getChangeProhibitionReasons ( ) ) ; } }

Target:
void onIsChangablePropertyChange ( org.ovirt.engine.ui.common.widget.HasEnabledWithHints editor , org.ovirt.engine.ui.uicommonweb.models.EntityModel model ) { if ( model.getIsChangable ( ) ) { editor.setEnabled ( true ) ; } else { editor.disable ( model.getChangeProhibitionReason ( ) ) ; } }
Source:
public org.ovirt.engine.core.common.businessentities.EventMap mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { org.ovirt.engine.core.common.businessentities.EventMap entity = new org.ovirt.engine.core.common.businessentities.EventMap ( ) ; entity.setEventUpName ( rs.getString ( "event_up_name" ) ) ; entity.setEventDownName ( rs.getString ( "event_down_name" ) ) ; return entity ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.EventMap > getEventMapByName ( java.lang.String event_up_name ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "event_name" , event_up_name ) ; return getCallsHandler ( ) . executeReadList ( "GetEventMapByName" , org.ovirt.engine.core.dao.EventDAODbFacadeImpl.EventMapRowMapper.instance , parameterSource ) ; }
Source:
private void initManualWidgets ( ) { isPluggedEditor = new org.ovirt.engine.ui.common.widget.editor.generic.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; imageDiskTable = new org.ovirt.engine.ui.common.widget.editor.EntityModelCellTable < org.ovirt.engine.ui.uicommonweb.models.ListModel > ( true ) ; lunDiskTable = new org.ovirt.engine.ui.common.widget.editor.EntityModelCellTable < org.ovirt.engine.ui.uicommonweb.models.ListModel > ( true ) ; }

Target:
private void initManualWidgets ( boolean allowMultipleSelection ) { isPluggedEditor = new org.ovirt.engine.ui.common.widget.editor.generic.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; imageDiskTable = new org.ovirt.engine.ui.common.widget.editor.EntityModelCellTable ( allowMultipleSelection ) ; lunDiskTable = new org.ovirt.engine.ui.common.widget.editor.EntityModelCellTable ( allowMultipleSelection ) ; }
Source:
public org.ovirt.engine.ui.common.widget.listgroup.PatternflyListViewItem < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > createListViewItem ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface selectedItem ) { return new org.ovirt.engine.ui.common.widget.uicommon.vm.VmInterfaceListGroupItem ( selectedItem , getDetailModel ( ) . getGuestAgentData ( ) ) ; }

Target:
public org.ovirt.engine.ui.common.widget.listgroup.PatternflyListViewItem < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > createListViewItem ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface selectedItem ) { return new org.ovirt.engine.ui.common.widget.uicommon.vm.VmInterfaceListGroupItem ( selectedItem , getDetailModel ( ) . getGuestAgentData ( ) , getDetailModel ( ) . getMapNicFilterParameter ( ) . get ( selectedItem.getId ( ) ) ) ; }
Source:
public void proceedLUNInDb ( final org.ovirt.engine.core.common.businessentities.storage.LUNs lun , org.ovirt.engine.core.common.businessentities.storage.StorageType storageType ) { proceedLUNInDb ( lun , storageType , "" ) ; }

Target:
public void proceedDirectLUNInDb ( final org.ovirt.engine.core.common.businessentities.storage.LUNs lun , org.ovirt.engine.core.common.businessentities.storage.StorageType storageType ) { lun.setPhysicalVolumeId ( null ) ; proceedLUNInDb ( lun , storageType , "" ) ; }
Source:
public void edit ( T model ) { profilesEditor.edit ( model.getProfiles ( ) ) ; }

Target:
public void edit ( T model ) { profilesEditor.edit ( model.getProfiles ( ) ) ; subnetWidget.edit ( model.getSubnetModel ( ) ) ; }
Source:
public void testValidModifiedBondsFailsWhenBondIsUnnamed ( ) throws java.lang.Exception { doTestValidModifiedBonds ( new org.ovirt.engine.core.common.businessentities.network.Bond ( ) , new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.HOST_NETWORK_INTERFACE_NOT_EXIST ) , ValidationResult.VALID , new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.HOST_NETWORK_INTERFACE_NOT_EXIST ) , ValidationResult.VALID ) ; }

Target:
public void testValidModifiedBondsFailsWhenBondNotHaveNameAndId ( ) throws java.lang.Exception { org.ovirt.engine.core.common.action.CreateOrUpdateBond createOrUpdateBond = new org.ovirt.engine.core.common.action.CreateOrUpdateBond ( ) ; doTestValidModifiedBonds ( createOrUpdateBond , ValidationResult.VALID , new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.BOND_DOES_NOT_HAVE_NEITHER_ID_NOR_NAME_SPECIFIED ) , ValidationResult.VALID ) ; }
Source:
public void canDoActionNonExternalJobFails ( ) throws java.lang.Exception { setupMock ( ) ; parameters.setId ( org.ovirt.engine.core.bll.EndExternalStepCommandTest.nonExternalStepId ) ; org.junit.Assert.assertTrue ( ( ! ( commandMock.canDoAction ( ) ) ) ) ; }

Target:
public void validateNonExternalJobFails ( ) throws java.lang.Exception { setupMock ( ) ; parameters.setId ( org.ovirt.engine.core.bll.EndExternalStepCommandTest.nonExternalStepId ) ; org.junit.Assert.assertTrue ( ( ! ( commandMock.validate ( ) ) ) ) ; }
Source:
public boolean getIsValid ( ) { return ( getIrsProxy ( ) ) != null ; }

Target:
private void nullifyInternalProxies ( ) { if ( ( privatemIrsProxy ) != null ) { org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcUtils.shutDownConnection ( ( ( org.ovirt.engine.core.vdsbroker.irsbroker.IrsServerWrapper ) ( privatemIrsProxy ) ) . getHttpClient ( ) ) ; } privatemCurrentIrsHost = null ; privatemIrsProxy = null ; mCurrentVdsId = null ; }
Source:
public void onSubTabSelected ( ) { getMainModel ( ) . setActiveDetailModel ( getModel ( ) ) ; }

Target:
public void onSubTabSelected ( ) { getMainModel ( ) . setActiveDetailModel ( org.ovirt.engine.ui.common.uicommon.model.DetailTabModelProvider.getModel ( ) ) ; }
Source:
public void testCanDoActionImageDoesNotExist ( ) { org.mockito.Mockito.when ( getProviderProxy ( ) . getImageAsDiskImage ( getRepoImageId ( ) ) ) . thenReturn ( null ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_DISK_NOT_EXIST ) ; }

Target:
public void testValidateImageDoesNotExist ( ) { org.mockito.Mockito.when ( getProviderProxy ( ) . getImageAsDiskImage ( getRepoImageId ( ) ) ) . thenReturn ( null ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_DISK_NOT_EXIST ) ; }
Source:
private static java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getUsbRedirectDevices ( org.ovirt.engine.core.common.businessentities.VmBase vm ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > list = org.ovirt.engine.core.bll.utils.VmDeviceUtils.dao.getVmDeviceByVmIdTypeAndDevice ( vm.getId ( ) , VmDeviceType.REDIR.getName ( ) , VmDeviceType.SPICEVMC.getName ( ) ) ; return list ; }

Target:
private static java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getUsbRedirectDevices ( org.ovirt.engine.core.common.businessentities.VmBase vm ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > list = org.ovirt.engine.core.bll.utils.VmDeviceUtils.dao.getVmDeviceByVmIdTypeAndDevice ( vm.getId ( ) , VmDeviceGeneralType.CHANNEL , VmDeviceType.SPICEVMC.getName ( ) ) ; return list ; }
Source:
protected int getNeededDiskSize ( org.ovirt.engine.core.compat.Guid domainId ) { return ( org.ovirt.engine.core.bll.AddVmCommand.getBlockSparseInitSizeInGB ( ) ) * ( storageToDisksMap.get ( domainId ) . size ( ) ) ; }

Target:
protected int getNeededDiskSize ( org.ovirt.engine.core.compat.Guid domainId ) { return ( org.ovirt.engine.core.bll.AddVmCommand.getBlockSparseInitSizeInGb ( ) ) * ( storageToDisksMap.get ( domainId ) . size ( ) ) ; }
Source:
void onIsChangablePropertyChange ( com.google.gwt.user.client.ui.HasEnabled editor , org.ovirt.engine.ui.uicommonweb.models.EntityModel model ) { boolean isChangable = model.getIsChangable ( ) ; editor.setEnabled ( isChangable ) ; }

Target:
void onIsChangablePropertyChange ( org.ovirt.engine.ui.common.widget.HasEnabled editor , org.ovirt.engine.ui.uicommonweb.models.EntityModel model ) { boolean isChangable = model.getIsChangable ( ) ; editor.setEnabled ( isChangable , model.getChangeProhibitionReasons ( ) ) ; }
Source:
public void testGetByClusterId ( ) { final org.ovirt.engine.core.compat.Guid notExistingRecordGuid = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; final org.ovirt.engine.core.common.businessentities.MacPool macPool = dao.getByClusterId ( notExistingRecordGuid ) ; org.junit.Assert.assertThat ( macPool , org.hamcrest.CoreMatchers.nullValue ( ) ) ; }

Target:
public void testGetByClusterId ( ) { final org.ovirt.engine.core.compat.Guid notExistingRecordGuid = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; final org.ovirt.engine.core.common.businessentities.MacPool macPool = dao.getByClusterId ( notExistingRecordGuid ) ; org.hamcrest.MatcherAssert.assertThat ( macPool , org.hamcrest.CoreMatchers.nullValue ( ) ) ; }
Source:
protected boolean isSoundDeviceEnabled ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.hasSoundDevice ( vmId ) ; }

Target:
protected boolean isSoundDeviceEnabled ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.storage.disk.AbstractDiskVmCommand.getVmDeviceUtils ( ) . hasSoundDevice ( vmId ) ; }
Source:
protected java.lang.Double getRawValue ( org.ovirt.engine.core.common.businessentities.VM object ) { return object.getRoundedElapsedTime ( ) ; }

Target:
protected java.lang.Double getRate ( org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.VmNetworkInterface , org.ovirt.engine.core.common.businessentities.VM > object ) { return object.getFirst ( ) . getStatistics ( ) . getReceiveRate ( ) ; }
Source:
protected void onSelectedItemChanged ( ) { super . onSelectedItemChanged ( ) ; updateConsoleModels ( ) ; UpdateActionAvailability ( ) ; }

Target:
protected void onSelectedItemChanged ( ) { super . onSelectedItemChanged ( ) ; updateConsoleModels ( ) ; updateActionAvailability ( ) ; }
Source:
public boolean isEnabled ( ) { for ( org.ovirt.engine.ui.uicommonweb.models.EntityModel model : getNetworksTableItems ( ) ) { org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel clusterNetworkManageModel = ( ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel ) ( model ) ) ; if ( clusterNetworkManageModel.getIsChangable ( ) ) { return true ; } } return false ; }

Target:
public boolean isEnabled ( ) { for ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel clusterNetworkModel : getNetworksTableItems ( ) ) { if ( clusterNetworkModel.getIsChangable ( ) ) { return true ; } } return false ; }
Source:
public void testGetByName ( ) { org.ovirt.engine.core.common.businessentities.Tags tag = createTag ( "tag1" , "desc1" ) ; tagsDirector.AddTag ( tag ) ; org.ovirt.engine.core.common.businessentities.Tags fromTagsDirector = tagsDirector.GetTagByName ( "tag1" ) ; org.junit.Assert.assertNotNull ( fromTagsDirector ) ; org.junit.Assert.assertEquals ( tag , fromTagsDirector ) ; }

Target:
public void testGetByName ( ) { org.ovirt.engine.core.common.businessentities.Tags tag = createTag ( "tag1" , "desc1" ) ; tagsDirector.addTag ( tag ) ; org.ovirt.engine.core.common.businessentities.Tags fromTagsDirector = tagsDirector.GetTagByName ( "tag1" ) ; org.junit.Assert.assertNotNull ( fromTagsDirector ) ; org.junit.Assert.assertEquals ( tag , fromTagsDirector ) ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.vms.ExportVmModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ExportVmModel ) ( result.getState ( ) ) ) ; localModel.stopProgress ( ) ; cancel ( ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object result ) { org.ovirt.engine.ui.uicommonweb.models.vms.RunOnceModel runOnceModel = new org.ovirt.engine.ui.uicommonweb.models.vms.WebadminRunOnceModel ( ( ( org.ovirt.engine.core.common.businessentities.VM ) ( result ) ) , this ) ; setWindow ( runOnceModel ) ; runOnceModel.init ( ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc refreshStoragePool ( java.lang.String spUUID , java.lang.String msdUUID , int masterVersion ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.HostJobsReturnForXmlRpc getHostJobs ( java.lang.String jobType , java.util.List < java.lang.String > jobIds ) ;
Source:
private void assertInvalid ( java.lang.String path ) { org.junit.Assert.assertFalse ( pathToBool ( path ) ) ; }

Target:
private void assertInvalid ( java.lang.String path ) { org.junit.jupiter.api.Assertions.assertFalse ( pathToBool ( path ) ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.gin.ClientGinjector ginjector ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( ginjector.getApplicationConstants ( ) . diskMainTabLabel ( ) , 5 , ginjector.getMainTabDiskModelProvider ( ) ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.MainModelProvider < org.ovirt.engine.core.common.businessentities.Disk , org.ovirt.engine.ui.uicommonweb.models.disks.DiskListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.diskMainTabLabel ( ) , 5 , modelProvider ) ; }
Source:
private void assertHostValid ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > vnics ) { validateVnics ( vnics , new java.util.ArrayList < java.lang.String > ( ) ) ; org.junit.Assert.assertEquals ( expectedVnicToVfMap , vfScheduler.getVnicToVfMap ( vmId , hostId ) ) ; }

Target:
private void assertHostValid ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > vnics ) { validateVnics ( vnics , new java.util.ArrayList < java.lang.String > ( ) ) ; validateVnicToVfMap ( ) ; }
Source:
public java.lang.Double getcpu_user ( ) { return this . mVmStatistics.getcpu_user ( ) ; }

Target:
public void setGuestRequestedMemory ( java.lang.Integer value ) { this . vmDynamic.setguest_requested_memory ( value ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.gin.ClientGinjector ginjector ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( ginjector.getApplicationConstants ( ) . clusterVmSubTabLabel ( ) , 4 , ginjector.getSubTabClusterVmModelProvider ( ) ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.gin.ClientGinjector ginjector ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( ginjector.getApplicationConstants ( ) . clusterVmSubTabLabel ( ) , 3 , ginjector.getSubTabClusterVmModelProvider ( ) ) ; }
Source:
public void failCreateMoreNumaNodesThanVirtualCores ( ) { final org.ovirt.engine.core.bll.numa.vm.AddVmNumaNodesCommand command = mockedCommand ( ) ; vm.setNumOfSockets ( 1 ) ; vm.setCpuPerSocket ( 1 ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.VM_NUMA_NODE_MORE_NODES_THAN_CPUS ) ; }

Target:
public void canDetectMissingRequiredHostNumaNodes ( ) { existingNumaNodes.set ( 0 , org.ovirt.engine.core.bll.utils.NumaTestUtils.createVmNumaNode ( 1 , vdsNumaNodes ) ) ; vdsNumaNodes.remove ( 0 ) ; final org.ovirt.engine.core.bll.numa.vm.AddVmNumaNodesCommand command = mockedCommandWithVmFromParams ( ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.VM_NUMA_NODE_HOST_NODE_INVALID_INDEX ) ; }
Source:
public java.util.Set < java.lang.String > getUnsupportedCpus ( int osId , org.ovirt.engine.core.compat.Version version ) ;

Target:
int getMinimumRam ( int osId , org.ovirt.engine.core.compat.Version version ) ;
Source:
public static void decreasePendingVms ( org.ovirt.engine.core.common.businessentities.VmStatic vm , org.ovirt.engine.core.compat.Guid vdsId ) { org.ovirt.engine.core.bll.VmHandler.decreasePendingVms ( vdsId , vm.getNumOfCpus ( ) , vm.getMinAllocatedMem ( ) , vm.getName ( ) ) ; }

Target:
public static void decreasePendingVm ( org.ovirt.engine.core.common.businessentities.VmStatic vm , org.ovirt.engine.core.compat.Guid vdsId ) { org.ovirt.engine.core.bll.VmHandler.decreasePendingResources ( vdsId , vm.getNumOfCpus ( ) , vm.getMinAllocatedMem ( ) , vm.getName ( ) ) ; }
Source:
public com.google.gwt.user.client.ui.IsWidget getContainer ( ) { return super . getTable ( ) . getOuterWidget ( ) ; }

Target:
public com.google.gwt.user.client.ui.IsWidget getTableContainer ( ) { return super . getTable ( ) . getOuterWidget ( ) ; }
Source:
protected void PostInitTemplate ( ) { setupWindowModelFrom ( pool.getStaticData ( ) ) ; getModel ( ) . setIsDisksAvailable ( true ) ; }

Target:
protected void postInitTemplate ( ) { setupWindowModelFrom ( pool.getStaticData ( ) , pool.getStoragePoolId ( ) ) ; getModel ( ) . setIsDisksAvailable ( true ) ; }
Source:
private void assertNoBondsModified ( org.ovirt.engine.core.bll.SetupNetworksHelper helper ) { org.junit.Assert.assertEquals ( java.text.MessageFormat.format ( "Expected no bonds to be modified but there some were modified. Modified bonds: {0}" , helper.getBonds ( ) ) , 0 , helper.getBonds ( ) . size ( ) ) ; }

Target:
private void assertNoBondsModified ( org.ovirt.engine.core.bll.SetupNetworksHelper helper ) { org.junit.Assert.assertEquals ( java.text.MessageFormat.format ( "Expected no bonds to be modified but some were modified. Modified bonds: {0}" , helper.getBonds ( ) ) , 0 , helper.getBonds ( ) . size ( ) ) ; }
Source:
public void setUp ( ) { org.mockito.MockitoAnnotations.initMocks ( this ) ; clusterUtils = org.mockito.Mockito.mock ( org.ovirt.engine.core.bll.utils.ClusterUtils.class ) ; }

Target:
public void setUp ( ) { clusterId = org.ovirt.engine.core.compat.Guid.NewGuid ( ) ; }
Source:
public final void InitCallback ( org.ovirt.engine.core.utils.hostinstall.IVdsInstallerCallback callback ) { this . callback = callback ; }

Target:
public final void setCallback ( org.ovirt.engine.core.utils.hostinstall.IVdsInstallerCallback callback ) { this . callback = callback ; }
Source:
private void mockHasMultipleClusters ( java.lang.Boolean isMultiple ) { org.mockito.Mockito.when ( command.getVdsGroupId ( ) ) . thenReturn ( clusterId ) ; org.mockito.Mockito.when ( clusterUtils.hasMultipleServers ( clusterId ) ) . thenReturn ( isMultiple ) ; }

Target:
private void mockHasMultipleClusters ( java.lang.Boolean isMultiple ) { org.mockito.Mockito.when ( command.getClusterId ( ) ) . thenReturn ( clusterId ) ; org.mockito.Mockito.when ( clusterUtils.hasMultipleServers ( clusterId ) ) . thenReturn ( isMultiple ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.BootSequence getboot_sequence ( ) { return this . boot_sequence ; }

Target:
public org.ovirt.engine.core.common.businessentities.BootSequence getboot_sequence ( ) { return this . bootSequence ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > searchImageTypes ( ) { return genericSearch ( org.ovirt.engine.core.bll.SearchQuery.getDbFacade ( ) . getVmTemplateDao ( ) , true ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > searchImageTypes ( ) { return genericSearch ( vmTemplateDao , true ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.EntityModel flush ( ) { return org.ovirt.engine.ui.common.widget.EntityModelCheckBoxWidget.Driver.driver.flush ( ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.EntityModel flush ( ) { return driver.flush ( ) ; }
Source:
public void testValidateSucceedReadOnlyWithInterface ( ) { org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( command ) ; org.mockito.Mockito.verify ( diskValidator ) . isReadOnlyPropertyCompatibleWithInterface ( parameters.getDiskVmElement ( ) ) ; }

Target:
public void testValidateFailReadOnlyOnInterface ( ) { org.mockito.Mockito.when ( diskVmElementValidator.isReadOnlyPropertyCompatibleWithInterface ( ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_INTERFACE_DOES_NOT_SUPPORT_READ_ONLY_ATTR ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_INTERFACE_DOES_NOT_SUPPORT_READ_ONLY_ATTR ) ; org.mockito.Mockito.verify ( diskVmElementValidator ) . isReadOnlyPropertyCompatibleWithInterface ( ) ; }
Source:
public java.util.Optional < org.ovirt.api.metamodel.concepts.Attribute > getAttribute ( org.ovirt.api.metamodel.concepts.Name name ) { return getAttributes ( ) . stream ( ) . filter ( named ( name ) ) . findFirst ( ) ; }

Target:
public java.util.Optional < org.ovirt.api.metamodel.concepts.Attribute > getAttribute ( org.ovirt.api.metamodel.concepts.Name name ) { return getAttributes ( ) . stream ( ) . filter ( org.ovirt.api.metamodel.concepts.Named.named ( name ) ) . findFirst ( ) ; }
Source:
public void setis_display ( boolean value ) { this . isDisplay = value ; }

Target:
public boolean isDisplay ( ) { return this . display ; }
Source:
public void handleFailure ( ) { log.error ( "Command id: '{} failed child command status for step '{}'" , org.ovirt.engine.core.bll.snapshots.ColdMergeSnapshotSingleDiskCommand.getCommandId ( ) , org.ovirt.engine.core.bll.snapshots.ColdMergeSnapshotSingleDiskCommand.getParameters ( ) . getCommandStep ( ) ) ; }

Target:
public void handleFailure ( ) { log.error ( "Command '{}' id '{}' failed executing step '{}'" , org.ovirt.engine.core.bll.snapshots.ColdMergeSnapshotSingleDiskCommand.getActionType ( ) , org.ovirt.engine.core.bll.snapshots.ColdMergeSnapshotSingleDiskCommand.getCommandId ( ) , org.ovirt.engine.core.bll.snapshots.ColdMergeSnapshotSingleDiskCommand.getParameters ( ) . getCommandStep ( ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc desktopLock ( java.lang.String vmId ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterHookDisable ( java.lang.String glusterCommand , java.lang.String stage , java.lang.String hookName ) ;
Source:
private static org.ovirt.engine.core.bll.validator.StorageDomainValidator mockStorageDomainValidatorWithoutSpace ( ) { org.ovirt.engine.core.bll.validator.StorageDomainValidator storageDomainValidator = org.ovirt.engine.core.bll.AddDiskToVmCommandTest.mockStorageDomainValidator ( ) ; org.mockito.Mockito.when ( storageDomainValidator.hasSpaceForNewDisk ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.DiskImage.class ) ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN ) ) ; return storageDomainValidator ; }

Target:
private static org.ovirt.engine.core.bll.validator.StorageDomainValidator mockStorageDomainValidatorWithoutSpace ( ) { org.ovirt.engine.core.bll.validator.StorageDomainValidator storageDomainValidator = org.ovirt.engine.core.bll.AddDiskCommandTest.mockStorageDomainValidator ( ) ; org.mockito.Mockito.when ( storageDomainValidator.hasSpaceForNewDisk ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.DiskImage.class ) ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN ) ) ; return storageDomainValidator ; }
Source:
private org.ovirt.engine.core.bll.ValidationResult validateCoherentNicIdentification ( org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment ) { return validateCoherentNicIdentification ( attachment.getId ( ) , attachment.getNicId ( ) , attachment.getNicName ( ) , VdcBllMessages.NETWORK_ATTACHMENT_REFERENCES_NICS_INCOHERENTLY ) ; }

Target:
private org.ovirt.engine.core.bll.ValidationResult validateCoherentNicIdentification ( org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment ) { return validateCoherentIdentification ( attachment.getId ( ) , attachment.getNicId ( ) , attachment.getNicName ( ) , EngineMessage.NETWORK_ATTACHMENT_REFERENCES_NICS_INCOHERENTLY , existingInterfacesMap ) ; }
Source:
public void removeMemoryVolume ( java.lang.String memoryVolumes ) { if ( shouldRemoveMemorySnapshotVolumes ( memoryVolumes ) ) { removeMemoryVolumes ( memoryVolumes , false ) ; } }

Target:
public void removeMemoryVolume ( java.lang.String memoryVolumes ) { if ( isMemoryStateRemovable ( memoryVolumes ) ) { removeMemoryVolumes ( memoryVolumes ) ; } }
Source:
public void setBrickName ( java.lang.String brickName ) { this . brickName = brickName ; }

Target:
public void setBrickId ( org.ovirt.engine.core.compat.Guid brickId ) { this . brickId = brickId ; }
Source:
public void testGlusterDcAndNotMatchingCompatiblityVersion ( ) { storagePool.setcompatibility_version ( org.ovirt.engine.core.bll.validator.storage.StorageDomainToPoolRelationValidatorTest.UNSUPPORTED_VERSION ) ; storagePool.setIsLocal ( false ) ; org.junit.Assert.assertThat ( validator.isGlusterSupportedInDC ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.DATA_CENTER_GLUSTER_STORAGE_NOT_SUPPORTED_IN_CURRENT_VERSION ) ) ; }

Target:
public void testGlusterDcAndNotMatchingCompatiblityVersion ( ) { storagePool.setCompatibilityVersion ( org.ovirt.engine.core.bll.validator.storage.StorageDomainToPoolRelationValidatorTest.UNSUPPORTED_VERSION ) ; storagePool.setIsLocal ( false ) ; org.junit.Assert.assertThat ( validator.isGlusterSupportedInDC ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.DATA_CENTER_GLUSTER_STORAGE_NOT_SUPPORTED_IN_CURRENT_VERSION ) ) ; }
Source:
public int getSpeed ( ) { if ( ( this ) == ( org.ovirt.engine.core.common.businessentities.VmInterfaceType.rtl8139 ) ) { return 100 ; } return 1000 ; }

Target:
public int getSpeed ( ) { return speed ; }
Source:
protected void EntityPropertyChanged ( java.lang.Object sender , org.ovirt.engine.core.compat.PropertyChangedEventArgs e ) { super . EntityPropertyChanged ( sender , e ) ; behavior.EntityPropertyChanged ( e ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { super . eventRaised ( ev , sender , args ) ; behavior.eventRaised ( ev , sender , args ) ; }
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.Permission > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Permission > ( ) ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.String ) ( source ) ) : "" ; }
Source:
public void testValidateGatewayWhenMultipleGatewayIsSupported ( ) { host.setVdsGroupCompatibilityVersion ( Version.v3_6 ) ; doTestValidateGateway ( "someGateway" , false , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testValidateGatewayIsManagementNetworkAndMultipleGatewayIsNotSupported ( ) { doTestValidateGateway ( "someGateway" , true , false , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
protected org.ovirt.engine.core.bll.network.cluster.UpdateNetworkClusterValidator createValidator ( ) { return new org.ovirt.engine.core.bll.network.cluster.UpdateNetworkClusterValidator ( networkCluster , oldNetworkCluster , version ) ; }

Target:
protected org.ovirt.engine.core.bll.network.cluster.UpdateNetworkClusterValidator createValidator ( ) { return new org.ovirt.engine.core.bll.network.cluster.UpdateNetworkClusterValidator ( interfaceDao , networkDao , networkCluster , oldNetworkCluster , version ) ; }
Source:
private void initOSType ( ) { getOSType ( ) . setItems ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getOsIds ( ) ) ; getOSType ( ) . setSelectedItem ( OsRepository.DEFAULT_OS ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { updateWatchdogItems ( ( ( java.util.HashSet < org.ovirt.engine.core.common.businessentities.VmWatchdogType > ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ) ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.StoragePool getStoragePool ( ) { if ( ( cachedStoragePool ) == null ) { cachedStoragePool = getStoragePoolDAO ( ) . get ( params.getStoragePoolId ( ) ) ; } return cachedStoragePool ; }

Target:
public org.ovirt.engine.core.common.businessentities.StorageDomain getStorageDomain ( ) { if ( ( cachedStorageDomain ) == null ) { cachedStorageDomain = getStorageDomainDAO ( ) . get ( params.getStorageDomainId ( ) ) ; } return cachedStorageDomain ; }
Source:
protected void handleError ( ) { addCanDoActionMessage ( VdcBllMessages.VDS_FENCE_OPERATION_FAILED ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__HOST ) ; addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__STOP ) ; org.ovirt.engine.core.bll.StopVdsCommand.log.errorFormat ( "Failed to run StopVdsCommand on vds :{0}" , org.ovirt.engine.core.bll.StopVdsCommand.getVdsName ( ) ) ; }

Target:
protected void handleError ( ) { addCanDoActionMessage ( VdcBllMessages.VDS_FENCE_OPERATION_FAILED ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__HOST ) ; addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__STOP ) ; org.ovirt.engine.core.bll.StopVdsCommand.log.error ( "Failed to run StopVdsCommand on vds '{}'" , org.ovirt.engine.core.bll.StopVdsCommand.getVdsName ( ) ) ; }
Source:
public void testDoGet_NotFound_MissingFile ( ) throws java.io.IOException , javax.servlet.ServletException { testServlet.doGet ( mockRequest , mockResponse ) ; org.mockito.Mockito.verify ( mockResponse ) . sendError ( HttpServletResponse.SC_NOT_FOUND ) ; }

Target:
public void testDoGetNotFoundMissingFile ( ) throws java.io.IOException , javax.servlet.ServletException { testServlet.doGet ( mockRequest , mockResponse ) ; org.mockito.Mockito.verify ( mockResponse ) . sendError ( HttpServletResponse.SC_NOT_FOUND ) ; }
Source:
public void testNotExternalNetworkFailsForExternalNetwork ( ) throws java.lang.Exception { org.mockito.Mockito.when ( network.isExternal ( ) ) . thenReturn ( true ) ; org.junit.Assert.assertThat ( validator.notExternalNetwork ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_NOT_SUPPORTED_FOR_EXTERNAL_NETWORK ) ) ; }

Target:
public void testNotExternalNetworkFailsForExternalNetwork ( ) throws java.lang.Exception { org.mockito.Mockito.when ( network.isExternal ( ) ) . thenReturn ( true ) ; org.junit.Assert.assertThat ( validator.notExternalNetwork ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_NOT_SUPPORTED_FOR_EXTERNAL_NETWORK ) ) ; }