auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
java.util.concurrent.Future < java.util.Map < java.lang.String , java.lang.Object > > setupNetworks ( java.util.Map networks , java.util.Map bonding , java.util.Map options ) ;

Target:
java.util.concurrent.Future < java.util.Map < java.lang.String , java.lang.Object > > setupNetworks ( java.util.Map networks , java.util.Map bonding , java.util.Map options , boolean isPolicyReset ) ;
Source:
public void testSubResourceLocator ( ) throws java.lang.Exception { control.replay ( ) ; java.lang.Object subResource = collection.getDeviceSubResource ( GUIDS [ 0 ] . toString ( ) ) ; assertFalse ( ( subResource instanceof org.ovirt.engine.api.resource.DeviceResource ) ) ; assertTrue ( ( subResource instanceof org.ovirt.engine.api.resource.ReadOnlyDeviceResource ) ) ; }

Target:
public void testSubResourceLocator ( ) throws java.lang.Exception { control.replay ( ) ; java.lang.Object subResource = collection.getDeviceResource ( GUIDS [ 0 ] . toString ( ) ) ; assertFalse ( ( subResource instanceof org.ovirt.engine.api.resource.DeviceResource ) ) ; assertTrue ( ( subResource instanceof org.ovirt.engine.api.resource.ReadOnlyDeviceResource ) ) ; }
Source:
public void getUsbPolicySetDisabled ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; assertEquals ( UsbPolicy.DISABLED , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) ) ; }

Target:
public void getUsbPolicySetDisabled ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; org.junit.Assert.assertEquals ( UsbPolicy.DISABLED , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) ) ; }
Source:
public void testRemove ( ) { dao.remove ( org.ovirt.engine.core.dao.gluster.GlusterServerDaoTest.SERVER_ID1 ) ; org.ovirt.engine.core.common.businessentities.gluster.GlusterServer entity = dao.getByServerId ( org.ovirt.engine.core.dao.gluster.GlusterServerDaoTest.SERVER_ID1 ) ; org.junit.Assert.assertNull ( entity ) ; }

Target:
public void testRemove ( ) { dao.remove ( FixturesTool.GLUSTER_BRICK_SERVER1 ) ; org.ovirt.engine.core.common.businessentities.gluster.GlusterServer entity = dao.getByServerId ( FixturesTool.GLUSTER_BRICK_SERVER1 ) ; org.junit.Assert.assertNull ( entity ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getEnabledHtml ( ) { return ! ( showTitle ) ? enabledImage : ! ( imageAfterTitle ) ? org.ovirt.engine.ui.common.widget.action.ImageUiCommandButtonDefinition.TEMPLATES.imageTextButton ( enabledImage , org.ovirt.engine.ui.common.widget.action.ImageUiCommandButtonDefinition.getTitle ( ) ) : org.ovirt.engine.ui.common.widget.action.ImageUiCommandButtonDefinition.TEMPLATES.textImageButton ( org.ovirt.engine.ui.common.widget.action.ImageUiCommandButtonDefinition.getTitle ( ) , enabledImage ) ; }

Target:
public com.google.gwt.safehtml.shared.SafeHtml getEnabledHtml ( ) { return ! ( showTitle ) ? enabledImage : ! ( imageAfterTitle ) ? org.ovirt.engine.ui.common.widget.action.ImageUiCommandButtonDefinition.templates.imageTextButton ( enabledImage , org.ovirt.engine.ui.common.widget.action.ImageUiCommandButtonDefinition.getText ( ) ) : org.ovirt.engine.ui.common.widget.action.ImageUiCommandButtonDefinition.templates.textImageButton ( org.ovirt.engine.ui.common.widget.action.ImageUiCommandButtonDefinition.getText ( ) , enabledImage ) ; }
Source:
protected void finalize ( ) { close ( ) ; }

Target:
public org.ovirt.engine.core.bll.OVirtNodeUpgrade.DeployStatus getDeployStatus ( ) { return _deployStatus ; }
Source:
public static org.ovirt.engine.api.model.VM map ( org.ovirt.engine.api.model.VM entity , org.ovirt.engine.api.model.VM template ) { return org.ovirt.engine.api.restapi.types.VmMapper.map ( entity , template , true ) ; }

Target:
public static org.ovirt.engine.api.model.Vm map ( org.ovirt.engine.api.restapi.types.VM entity , org.ovirt.engine.api.model.Vm template ) { return org.ovirt.engine.api.restapi.types.VmMapper.map ( entity , template , true ) ; }
Source:
public void validateFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( null ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFailsOnNull ( ) { cmd.setGlusterVolumeId ( null ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
public void testChangeToExistingName ( ) { prepareVmToPassCanDoAction ( ) ; mockSameNameQuery ( true ) ; junit.framework.Assert.assertFalse ( "canDoAction should have failed with vm name already in use." , command.canDoAction ( ) ) ; assertCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_NAME_ALREADY_USED ) ; }

Target:
public void testInvalidNumberOfMonitors ( ) { prepareVmToPassCanDoAction ( ) ; vmStatic.setNumOfMonitors ( 99 ) ; org.junit.Assert.assertFalse ( "canDoAction should have failed with invalid number of monitors." , command.canDoAction ( ) ) ; assertCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_ILLEGAL_NUM_OF_MONITORS ) ; }
Source:
private boolean isWipeAfterDelete ( ) { return ( org.ovirt.engine.core.bll.MoveOrCopyImageGroupCommand.getDestinationDiskImage ( ) ) != null ? org.ovirt.engine.core.bll.MoveOrCopyImageGroupCommand.getDestinationDiskImage ( ) . isWipeAfterDelete ( ) : org.ovirt.engine.core.bll.MoveOrCopyImageGroupCommand.getParameters ( ) . getWipeAfterDelete ( ) ; }

Target:
private boolean isWipeAfterDelete ( ) { return ( org.ovirt.engine.core.bll.CopyImageGroupCommand.getDestinationDiskImage ( ) ) != null ? org.ovirt.engine.core.bll.CopyImageGroupCommand.getDestinationDiskImage ( ) . isWipeAfterDelete ( ) : org.ovirt.engine.core.bll.CopyImageGroupCommand.getParameters ( ) . getWipeAfterDelete ( ) ; }
Source:
public void setguest_requested_memory ( java.lang.Integer value ) { this . guest_requested_memory = value ; }

Target:
public int compareTo ( org.ovirt.engine.core.common.businessentities.VmDynamic o ) { return org.ovirt.engine.core.common.businessentities.comparators.BusinessEntityGuidComparator.< org.ovirt.engine.core.common.businessentities.VmDynamic > newInstance ( ) . compare ( this , o ) ; }
Source:
public java.lang.String getMessage ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op1 , org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op2 ) { return getVerb ( op1 ) ; }

Target:
public java.lang.String getVerb ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op1 ) { return op1 instanceof org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkLabelModel.NewNetworkLabelModel ? org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) . newLabel ( ) : org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getMessages ( ) . label ( op1.getName ( ) ) ; }
Source:
protected void updateButton ( ) { super . updateButton ( ) ; tooltip.setText ( buildTooltipText ( ) ) ; tooltip.reconfigure ( ) ; }

Target:
protected void updateButton ( ) { super . updateButton ( ) ; tooltip.setHtml ( buildTooltipHtml ( ) ) ; }
Source:
protected org.ovirt.engine.core.bll.VmRunHandler getVmRunHandler ( ) { return org.ovirt.engine.core.bll.VmRunHandler.getInstance ( ) ; }

Target:
private boolean isVmRunningStateless ( ) { if ( ( cachedVmIsRunningStateless ) == null ) { cachedVmIsRunningStateless = isStatelessSnapshotExistsForVm ( ) ; } return cachedVmIsRunningStateless ; }
Source:
protected void executeVdsBrokerCommand ( ) { infoReturn = org.ovirt.engine.core.vdsbroker.vdsbroker.GetHardwareInfoVDSCommand.getBroker ( ) . getHardwareInfo ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.GetHardwareInfoVDSCommand.proceedProxyReturnValue ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.updateHardwareSystemInformation ( infoReturn.info , org.ovirt.engine.core.vdsbroker.vdsbroker.GetHardwareInfoVDSCommand.getVds ( ) ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { infoReturn = org.ovirt.engine.core.vdsbroker.vdsbroker.GetHardwareInfoVDSCommand.getBroker ( ) . getHardwareInfo ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.GetHardwareInfoVDSCommand.proceedProxyReturnValue ( ) ; vdsBrokerObjectsBuilder.updateHardwareSystemInformation ( infoReturn.info , org.ovirt.engine.core.vdsbroker.vdsbroker.GetHardwareInfoVDSCommand.getVds ( ) ) ; }
Source:
private void initialize ( ) { org.ovirt.engine.core.bll.network.macpool.MacPoolUsingRanges.log.info ( "Start initializing {}" , getClass ( ) . getSimpleName ( ) ) ; this . macsStorage = createMacsStorage ( rangesBoundaries ) ; org.ovirt.engine.core.bll.network.macpool.MacPoolUsingRanges.log.info ( "Finished initializing. Available MACs in pool: {}" , macsStorage.getAvailableMacsCount ( ) ) ; }

Target:
private void initialize ( ) { org.ovirt.engine.core.bll.network.macpool.MacPoolUsingRanges.log.info ( "Initializing {}" , this ) ; this . macsStorage = createMacsStorage ( rangesBoundaries ) ; org.ovirt.engine.core.bll.network.macpool.MacPoolUsingRanges.log.info ( "Finished initializing {}. Available MACs in pool: {}" , this , macsStorage.getAvailableMacsCount ( ) ) ; }
Source:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s, infoDictionary.size = %s" , super . toString ( ) , getInfoDictionary ( ) . size ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.utils.ToStringBuilder appendAttributes ( org.ovirt.engine.core.common.utils.ToStringBuilder tsb ) { return super . appendAttributes ( tsb ) . append ( "infoDictionary.size" , getInfoDictionary ( ) . size ( ) ) ; }
Source:
public void testGetByClusterIdAndServiceType ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterClusterService service = dao.getByClusterIdAndServiceType ( org.ovirt.engine.core.dao.gluster.GlusterClusterServiceDaoTest.CLUSTER_ID , ServiceType.GLUSTER ) ; org.junit.Assert.assertNotNull ( service ) ; org.junit.Assert.assertTrue ( ( ( service.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.gluster.GlusterServiceStatus.RUNNING ) ) ) ; }

Target:
public void testGetByClusterIdAndServiceType ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterClusterService service = dao.getByClusterIdAndServiceType ( org.ovirt.engine.core.dao.gluster.GlusterClusterServiceDaoTest.CLUSTER_ID , ServiceType.GLUSTER ) ; org.junit.Assert.assertNotNull ( service ) ; org.junit.Assert.assertEquals ( GlusterServiceStatus.RUNNING , service.getStatus ( ) ) ; }
Source:
protected boolean canDoAction ( ) { if ( ( org.ovirt.engine.core.bll.ImportVmCommandBase.getVdsGroup ( ) ) == null ) { return failCanDoAction ( VdcBllMessages.ACTION_TYPE_FAILED_CLUSTER_CAN_NOT_BE_EMPTY ) ; } return true ; }

Target:
protected boolean canDoAction ( ) { if ( ( org.ovirt.engine.core.bll.ImportVmCommandBase.getVdsGroup ( ) ) == null ) { return failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_CLUSTER_CAN_NOT_BE_EMPTY ) ; } return true ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { java.lang.String propName = ( ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ) ( args ) ) . PropertyName ; if ( "WidgetModel" . equals ( propName ) ) { modelBoundWidgetChange ( ) ; } }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { java.lang.String propName = ( ( org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ) ( args ) ) . propertyName ; if ( "WidgetModel" . equals ( propName ) ) { modelBoundWidgetChange ( ) ; } }
Source:
public void canDoActionFailsLongName ( ) { sd.setStorageName ( org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextString ( 11 ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_NAME_LENGTH_IS_TOO_LONG ) ; }

Target:
public void validateFailsLongName ( ) { sd.setStorageName ( org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextString ( 11 ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_NAME_LENGTH_IS_TOO_LONG ) ; }
Source:
private void createParameters ( ) { parameters = new org.ovirt.engine.core.common.action.ManagementNetworkOnClusterOperationParameters ( cluster ) ; parameters.setCorrelationId ( CORRELATION_ID ) ; }

Target:
private void injectMocks ( ) { injectorRule.bind ( org.ovirt.engine.core.bll.CpuFlagsManagerHandler.class , cpuFlagsManagerHandler ) ; injectorRule.bind ( org.ovirt.engine.core.dao.ClusterDao.class , clusterDao ) ; injectorRule.bind ( org.ovirt.engine.core.common.businessentities.network.Network.class , managementNetwork ) ; injectorRule.bind ( org.ovirt.engine.core.dao.network.NetworkClusterDao.class , networkClusterDao ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult vmNotInPreview ( org.ovirt.engine.core.compat.Guid vmId ) { if ( vmInPreview ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_VM_IN_PREVIEW ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult vmNotInPreview ( org.ovirt.engine.core.compat.Guid vmId ) { if ( vmInPreview ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_VM_IN_PREVIEW ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
protected void postConstruct ( ) { super . postConstruct ( ) ; if ( ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) ) != null ) { needsHostDevices = hostDeviceManager.checkVmNeedsHostDevices ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) ) ; } acquireHostDevicesLock ( ) ; }

Target:
protected void init ( ) { if ( ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) ) != null ) { needsHostDevices = hostDeviceManager.checkVmNeedsDirectPassthrough ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) ) ; } acquireHostDevicesLock ( ) ; }
Source:
public void search ( ) { if ( ( getEntity ( ) ) != null ) { preSearchCalled ( getEntity ( ) ) ; super . search ( ) ; } }

Target:
protected void onEntityContentChanged ( ) { super . onEntityContentChanged ( ) ; if ( ( getEntity ( ) ) != null ) { getSearchCommand ( ) . execute ( ) ; } else { setItems ( null ) ; } }
Source:
public org.ovirt.engine.core.bll.ValidationResult nameNotUsed ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.VDS_GROUP_CANNOT_DO_ACTION_NAME_IN_USE ) . unless ( clusterDao.getByName ( cluster.getName ( ) , false ) . isEmpty ( ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult nameNotUsed ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.VDS_GROUP_CANNOT_DO_ACTION_NAME_IN_USE ) . unless ( clusterDao.getByName ( cluster.getName ( ) , false ) . isEmpty ( ) ) ; }
Source:
public void setWidth ( java.lang.String width , boolean isFixedLayout ) { table.setWidth ( "100%" , isFixedLayout ) ; tableHeader.setWidth ( "100%" , isFixedLayout ) ; }

Target:
public void setRowVisitor ( org.ovirt.engine.ui.common.widget.table.AbstractActionTable.RowVisitor < T > rowVisitor ) { this . rowVisitor = rowVisitor ; }
Source:
public boolean isBrowserPluginSupported ( ) ;

Target:
public boolean isBrowserPluginSupported ( org.ovirt.engine.ui.uicommonweb.models.ConsoleProtocol protocol ) ;
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.HashMap < java.lang.String , java.util.List < java.lang.String > > ) ( source ) ) : new java.util.HashMap < java.lang.String , java.util.List < java.lang.String > > ( ) ; }

Target:
public void getAAANamespaces ( org.ovirt.engine.ui.frontend.AsyncQuery < java.util.Map < java.lang.String , java.util.List < java.lang.String > > > aQuery ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.MapConverter < > ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetAvailableNamespaces , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , aQuery ) ; }
Source:
private java.util.List < java.lang.String > translate ( java.util.List < java.lang.String > errorMsg , boolean changeIfNotFound , java.util.Locale locale ) { java.util.List < java.lang.String > translatedMessages = doTranslation ( errorMsg , changeIfNotFound , locale ) ; return ResolveMessages ( translatedMessages ) ; }

Target:
private java.util.List < java.lang.String > translate ( java.util.List < java.lang.String > errorMsg , boolean changeIfNotFound , java.util.Locale locale ) { java.util.List < java.lang.String > translatedMessages = doTranslation ( errorMsg , changeIfNotFound , locale ) ; return resolveMessages ( translatedMessages ) ; }
Source:
public boolean getIsAvailable ( ) { return getDetailModel ( ) . isQuotaAvailable ( ) ; }

Target:
public boolean getIsAvailable ( ) { return ! ( getDetailModel ( ) . isLun ( ) ) ; }
Source:
private void setStoragePoolId ( org.ovirt.engine.core.compat.Guid storagePoolId ) { command.getParameters ( ) . setStoragePoolId ( storagePoolId ) ; command.setStoragePoolId ( storagePoolId ) ; }

Target:
public void validateNoDirectLunIdAndInvalidStoragePool ( ) { org.mockito.Mockito.doReturn ( false ) . when ( command ) . validateStoragePool ( ) ; org.junit.Assert.assertFalse ( command.validate ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.storage.VolumeType getTemplateVolumeType ( org.ovirt.engine.core.common.businessentities.storage.VolumeFormat volumeFormat , org.ovirt.engine.core.common.businessentities.storage.StorageType storageType ) { switch ( volumeFormat ) { case COW : return org.ovirt.engine.core.common.businessentities.storage.VolumeType.Sparse ; case RAW : default : return storageType.isFileDomain ( ) ? org.ovirt.engine.core.common.businessentities.storage.VolumeType.Sparse : org.ovirt.engine.core.common.businessentities.storage.VolumeType.Preallocated ; } }

Target:
public org.ovirt.engine.core.common.businessentities.storage.VolumeType getVolumeType ( org.ovirt.engine.core.common.businessentities.storage.VolumeFormat volumeFormat , org.ovirt.engine.core.common.businessentities.storage.StorageType storageType ) { switch ( volumeFormat ) { case COW : return org.ovirt.engine.core.common.businessentities.storage.VolumeType.Sparse ; case RAW : default : return storageType.isFileDomain ( ) ? org.ovirt.engine.core.common.businessentities.storage.VolumeType.Sparse : org.ovirt.engine.core.common.businessentities.storage.VolumeType.Preallocated ; } }
Source:
public javax.ws.rs.core.Response remove ( ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage = ( ( org.ovirt.engine.core.common.businessentities.storage.DiskImage ) ( org.ovirt.engine.api.restapi.types.DiskMapper.map ( get ( ) , null ) ) ) ; return performAction ( VdcActionType.RemoveDiskSnapshots , new org.ovirt.engine.core.common.action.RemoveDiskSnapshotsParameters ( diskImage.getImageId ( ) ) ) ; }

Target:
public javax.ws.rs.core.Response remove ( ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage = ( ( org.ovirt.engine.core.common.businessentities.storage.DiskImage ) ( org.ovirt.engine.api.restapi.types.DiskMapper.map ( get ( ) , null ) ) ) ; return performAction ( ActionType.RemoveDiskSnapshots , new org.ovirt.engine.core.common.action.RemoveDiskSnapshotsParameters ( diskImage.getImageId ( ) ) ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { commonModelProvider.get ( ) . updateReportsAvailability ( ) ; }

Target:
void addDynamicMainTabToCommonModel ( java.lang.String historyToken , java.lang.String searchPrefix ) { commonModelProvider.get ( ) . addPluginModel ( historyToken , searchPrefix ) ; }
Source:
public void testUnsuccessfulSessionId ( ) { org.mockito.Mockito.when ( params.getSessionId ( ) ) . thenReturn ( "bad_session_id" ) ; getQuery ( ) . Execute ( ) ; org.junit.Assert.assertFalse ( getQuery ( ) . getQueryReturnValue ( ) . getSucceeded ( ) ) ; }

Target:
public void testUnsuccessfulSessionId ( ) { org.mockito.Mockito.when ( params.getSessionId ( ) ) . thenReturn ( "bad_session_id" ) ; getQuery ( ) . execute ( ) ; org.junit.Assert.assertFalse ( getQuery ( ) . getQueryReturnValue ( ) . getSucceeded ( ) ) ; }
Source:
public org.ovirt.engine.core.compat.NGuid getguest_cur_user_id ( ) { return this . mVmDynamic.getguest_cur_user_id ( ) ; }

Target:
public void setGuestCurrentUserName ( java.lang.String value ) { this . vmDynamic.setguest_cur_user_name ( value ) ; }
Source:
public void setError ( java.lang.String msg ) { getImportSourceValid ( ) . setMessage ( msg ) ; getImportSourceValid ( ) . setEntity ( false ) ; }

Target:
public void setWarning ( java.lang.String problem ) { if ( ! ( getProblemDescription ( ) . getIsValid ( ) ) ) { return ; } getProblemDescription ( ) . setIsValid ( true ) ; getProblemDescription ( ) . setEntity ( problem ) ; }
Source:
public void checkNotSync ( ) { initSyncStatus ( mockNetworkAttachment , false ) ; org.junit.Assert.assertTrue ( underTest.test ( mockNetworkAttachment ) ) ; }

Target:
public void checkNotSync ( ) { initSyncStatus ( mockNetworkAttachment , false ) ; org.junit.jupiter.api.Assertions.assertTrue ( underTest.test ( mockNetworkAttachment ) ) ; }
Source:
public boolean invalid ( ) { return ! ( valid ) ; }

Target:
public boolean invalidAndActual ( ) { return ( actual ( ) ) && ( ! ( valid ) ) ; }
Source:
public java.lang.String getRawValue ( org.ovirt.engine.ui.uicommonweb.models.storage.LunModel model ) { return ( java.lang.String.valueOf ( model.getSize ( ) ) ) + "GB" ; }

Target:
public java.lang.String getRawValue ( org.ovirt.engine.ui.uicommonweb.models.storage.LunModel model ) { return org.ovirt.engine.ui.common.widget.uicommon.storage.SanStorageLunToTargetList.messages.gigabytes ( java.lang.String.valueOf ( model.getSize ( ) ) ) ; }
Source:
public int compare ( T arg0 , T arg1 ) { return getProgressValue ( arg0 ) . compareTo ( getProgressValue ( arg1 ) ) ; }

Target:
public void makeSortable ( ) { makeSortable ( java.util.Comparator.comparing ( this :: getProgressValue ) ) ; }
Source:
public void updateClusterEnabled ( ) { boolean importAsTemplate = getImportAsTemplate ( ) . getEntity ( ) ; getCluster ( ) . setIsAvailable ( importAsTemplate ) ; getCluster ( ) . setIsChangable ( ( ! ( getCluster ( ) . getIsEmpty ( ) ) ) ) ; }

Target:
public void updateClusterEnabled ( ) { boolean importAsTemplate = getImportAsTemplate ( ) . getEntity ( ) ; getCluster ( ) . setIsAvailable ( importAsTemplate ) ; getCluster ( ) . setIsChangeable ( ( ! ( getCluster ( ) . getIsEmpty ( ) ) ) ) ; }
Source:
protected java.util.function.Predicate < org.ovirt.engine.core.common.businessentities.StorageDomain > getPredicate ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > memoryDisks ) { return ( storageDomain ) -> ! ( sdToReject.equals ( storageDomain ) ) ; }

Target:
public boolean test ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { return ! ( sdToReject.equals ( storageDomain ) ) ; }
Source:
public void setHibernationVolHandle ( java.lang.String value ) { this . vmDynamic.setHibernationVolHandle ( value ) ; }

Target:
public void setHibernationVolHandle ( java.lang.String value ) { this . hibernationVolHandle = value ; }
Source:
protected void handleSpecificCommandActions ( ) { org.ovirt.engine.core.bll.StartVdsCommand.restartVdsVms ( ) ; }

Target:
protected void handleSpecificCommandActions ( ) { org.ovirt.engine.core.bll.RestartVdsVmsOperation restartVmsOper = new org.ovirt.engine.core.bll.RestartVdsVmsOperation ( org.ovirt.engine.core.bll.StartVdsCommand.getContext ( ) , org.ovirt.engine.core.bll.StartVdsCommand.getVds ( ) ) ; restartVmsOper.restartVms ( org.ovirt.engine.core.bll.StartVdsCommand.getVmList ( ) ) ; }
Source:
public void securityKeysDoesNotExist ( ) { org.mockito.Mockito.doReturn ( false ) . when ( validator ) . haveSecurityKey ( ) ; org.junit.Assert.assertThat ( validator.securityKeysExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.VDS_TRY_CREATE_SECURE_CERTIFICATE_NOT_FOUND ) ) ; }

Target:
public void securityKeysDoesNotExist ( ) { org.mockito.Mockito.doReturn ( false ) . when ( validator ) . haveSecurityKey ( ) ; org.hamcrest.MatcherAssert.assertThat ( validator.securityKeysExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.VDS_TRY_CREATE_SECURE_CERTIFICATE_NOT_FOUND ) ) ; }
Source:
public void testInterfaceByNameExistsWhenInterfaceIsNull ( ) throws java.lang.Exception { org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.validator.HostInterfaceValidator ( null ) . interfaceByNameExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.HOST_NETWORK_INTERFACE_NOT_EXIST ) ) ; }

Target:
public void testInterfaceByNameExistsWhenInterfaceIsNull ( ) throws java.lang.Exception { org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.validator.HostInterfaceValidator ( null ) . interfaceByNameExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.HOST_NETWORK_INTERFACE_NOT_EXIST ) ) ; }
Source:
public java.util.List < org.ovirt.api.metamodel.concepts.Method > getMethods ( ) { return methods ; }

Target:
public java.util.List < org.ovirt.api.metamodel.concepts.Method > getDeclaredMethods ( ) { return new java.util.ArrayList ( methods ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.Cluster , org.ovirt.engine.core.common.businessentities.network.NetworkCluster > , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkListModel , org.ovirt.engine.ui.uicommonweb.models.networks.NetworkClusterListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.network.SubTabNetworkClusterPresenter.constants.networkClusterSubTabLabel ( ) , 3 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( ) { return new org.ovirt.engine.ui.common.uicommon.model.GroupedTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.network.SubTabNetworkClusterPresenter.constants.networkClusterSubTabLabel ( ) , 3 ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.action.VdcReturnValueBase > runInternalMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters ) { return runMultipleActionsImpl ( actionType , parameters , true , false , false , null ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.action.VdcReturnValueBase > runInternalMultipleActions ( org.ovirt.engine.core.common.action.ActionType actionType , java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters ) { return runMultipleActionsImpl ( actionType , parameters , true , false , false , null ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.network.NetworkInterface findInterfaceByName ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > items , java.lang.String name ) { for ( org.ovirt.engine.core.common.businessentities.network.NetworkInterface i : items ) { if ( java.util.Objects.equals ( i.getName ( ) , name ) ) { return i ; } } return null ; }

Target:
public static org.ovirt.engine.core.common.businessentities.network.NetworkInterface findInterfaceByName ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > items , java.lang.String name ) { return org.ovirt.engine.ui.uicommonweb.Linq.firstOrNull ( items , new org.ovirt.engine.ui.uicommonweb.Linq.NamePredicate ( name ) ) ; }
Source:
public void setDisplayNetwork ( boolean displayNetwork ) { getEntity ( ) . setis_display ( displayNetwork ) ; }

Target:
public void setDisplayNetwork ( boolean displayNetwork ) { getEntity ( ) . getCluster ( ) . setis_display ( displayNetwork ) ; }
Source:
protected boolean isISO ( org.ovirt.engine.core.common.businessentities.StorageDomain dom ) { return ( dom.getstorage_domain_type ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainType.ISO ) ; }

Target:
protected boolean isISO ( org.ovirt.engine.core.common.businessentities.StorageDomain dom ) { return ( dom.getStorageDomainType ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainType.ISO ) ; }
Source:
protected void executeVDSCommand ( ) { org.ovirt.engine.core.vdsbroker.IsVmDuringInitiatingVDSCommand.getVDSReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . isVmDuringInitiating ( org.ovirt.engine.core.vdsbroker.IsVmDuringInitiatingVDSCommand.getParameters ( ) . getVmId ( ) ) ) ; }

Target:
protected void executeVDSCommand ( ) { org.ovirt.engine.core.vdsbroker.IsVmDuringInitiatingVDSCommand.getVDSReturnValue ( ) . setReturnValue ( resourceManager.isVmDuringInitiating ( org.ovirt.engine.core.vdsbroker.IsVmDuringInitiatingVDSCommand.getParameters ( ) . getVmId ( ) ) ) ; }
Source:
public void setup ( ) { validator = new org.ovirt.engine.core.bll.validator.VmNicValidator ( nic , null ) ; }

Target:
public void setup ( ) { org.ovirt.engine.core.compat.Version version = org.mockito.Mockito.mock ( org.ovirt.engine.core.compat.Version.class ) ; org.mockito.Mockito.when ( version.getValue ( ) ) . thenReturn ( null ) ; validator = new org.ovirt.engine.core.bll.validator.VmNicValidator ( nic , version ) ; }
Source:
public void testGetAllForDataCenterWithNoPermissions ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VnicProfileView > result = dao.getAllForDataCenter ( FixturesTool.DATA_CENTER , org.ovirt.engine.core.dao.network.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForDataCenterWithNoPermissions ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VnicProfileView > result = dao.getAllForDataCenter ( FixturesTool.DATA_CENTER , org.ovirt.engine.core.dao.network.UNPRIVILEGED_USER_ID , true ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public void addNetwork ( org.ovirt.engine.core.compat.Guid vfsConfigId , org.ovirt.engine.core.compat.Guid networkId ) { getCallsHandler ( ) . executeModification ( "InsertvfsConfigNetwork" , createNetworkParametersMapper ( vfsConfigId , networkId ) ) ; }

Target:
public void addNetwork ( org.ovirt.engine.core.compat.Guid vfsConfigId , org.ovirt.engine.core.compat.Guid networkId ) { getCallsHandler ( ) . executeModification ( "InsertVfsConfigNetwork" , createNetworkParametersMapper ( vfsConfigId , networkId ) ) ; }
Source:
public void setPrestartedVmsHint ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( prestartedVmsHint , value ) ) ) { prestartedVmsHint = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "PrestartedVmsHint" ) ) ; } }

Target:
public void setPrestartedVmsHint ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( prestartedVmsHint , value ) ) ) { prestartedVmsHint = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "PrestartedVmsHint" ) ) ; } }
Source:
private void updateKeyTitle ( org.ovirt.engine.ui.uicommonweb.models.vms.key_value.KeyValueLineModel object ) { java.lang.String selectedKey = object.getKeys ( ) . getSelectedItem ( ) ; if ( selectedKey != null ) { org.ovirt.engine.ui.common.widget.tooltip.TooltipMixin.addTooltipToElement ( com.google.gwt.safehtml.shared.SafeHtmlUtils.fromString ( selectedKey ) , keyField.getElement ( ) ) ; } }

Target:
private void updateKeyTitle ( org.ovirt.engine.ui.uicommonweb.models.vms.key_value.KeyValueLineModel object ) { java.lang.String selectedKey = object.getKeys ( ) . getSelectedItem ( ) ; if ( selectedKey != null ) { keyField.setWidgetTooltip ( selectedKey ) ; } }
Source:
public static boolean vmStatsEvents ( org.ovirt.engine.core.compat.Version version ) { return org.ovirt.engine.core.common.FeatureSupported.supportedInConfig ( ConfigValues.VmStatsEventsSupported , version ) ; }

Target:
public static boolean hotPlugMemory ( org.ovirt.engine.core.compat.Version version , org.ovirt.engine.core.common.businessentities.ArchitectureType arch ) { return org.ovirt.engine.core.common.FeatureSupported.supportedInConfig ( ConfigValues.HotPlugMemorySupported , version , arch ) ; }
Source:
private void initIpConfigurationBootProtocolAddress ( org.ovirt.engine.core.common.businessentities.network.NetworkBootProtocol networkBootProtocol , boolean syncAddress ) { initIpConfigurationStaticBootProtocol ( networkBootProtocol ) ; org.mockito.Mockito.when ( mockedIPv4Address.getAddress ( ) ) . thenReturn ( org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterfaceTest.ADDRESS ) ; iface.setIpv4Address ( ( syncAddress ? org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterfaceTest.ADDRESS : null ) ) ; }

Target:
private void initIpConfigurationBootProtocolAddress ( org.ovirt.engine.core.common.businessentities.network.Ipv4BootProtocol ipv4BootProtocol , boolean syncAddress ) { initIpConfigurationStaticBootProtocol ( ipv4BootProtocol ) ; org.mockito.Mockito.when ( mockedIPv4Address.getAddress ( ) ) . thenReturn ( org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterfaceTest.ADDRESS ) ; iface.setIpv4Address ( ( syncAddress ? org.ovirt.engine.core.utils.NetworkInSyncWithVdsNetworkInterfaceTest.ADDRESS : null ) ) ; }
Source:
protected boolean canEdit ( org.ovirt.engine.ui.uicommonweb.models.EntityModel model ) { return model.getIsChangable ( ) ; }

Target:
protected boolean canEdit ( org.ovirt.engine.ui.uicommonweb.models.datacenters.NetworkClusterModel model ) { return model.getIsChangable ( ) ; }
Source:
public void testGetByNameWithInvalidName ( ) { org.ovirt.engine.core.common.businessentities.network.Network result = dao.getByNameAndCluster ( "farkle" , FixturesTool.CLUSTER ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetByNameWithInvalidName ( ) { org.ovirt.engine.core.common.businessentities.network.Network result = dao.getByNameAndCluster ( "farkle" , FixturesTool.CLUSTER ) ; org.junit.jupiter.api.Assertions.assertNull ( result ) ; }
Source:
public org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator build ( ) { return new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator ( host , params , existingInterfaces , existingAttachments , networkBusinessEntityMap , managementNetworkUtil , networkClusterDaoMock , networkAttachmentDaoMock , networkDaoMock , vdsDaoMock ) ; }

Target:
public org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator build ( ) { return new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator ( host , params , existingInterfaces , existingAttachments , networkBusinessEntityMap , managementNetworkUtil , networkClusterDaoMock , networkAttachmentDaoMock , networkDaoMock , vdsDaoMock , new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorHelper ( ) ) ; }
Source:
public void shouldDetectSameOs ( ) { org.assertj.core.api.Assertions.assertThat ( new org.ovirt.engine.core.bll.scheduling.OS ( "os1" , new org.ovirt.engine.core.compat.Version ( "6.3" ) ) . isSameOs ( new org.ovirt.engine.core.bll.scheduling.OS ( "os1" , new org.ovirt.engine.core.compat.Version ( "6.3" ) ) ) ) . isTrue ( ) ; }

Target:
public void shouldDetectSameOs ( ) { org.assertj.core.api.Assertions.assertThat ( new org.ovirt.engine.core.bll.scheduling.OS ( "os1" , new org.ovirt.engine.core.compat.Version ( "6.3" ) ) . isSameOsFamily ( new org.ovirt.engine.core.bll.scheduling.OS ( "os1" , new org.ovirt.engine.core.compat.Version ( "6.3" ) ) ) ) . isTrue ( ) ; }
Source:
protected org.ovirt.engine.api.model.Host populate ( org.ovirt.engine.api.model.Host model , org.ovirt.engine.core.common.businessentities.VDS entity ) { org.ovirt.engine.api.model.Host host = addStatistics ( model , entity , uriInfo , httpHeaders ) ; addCertificateInfo ( host ) ; return host ; }

Target:
protected org.ovirt.engine.api.model.Host deprecatedPopulate ( org.ovirt.engine.api.model.Host model , org.ovirt.engine.core.common.businessentities.VDS entity ) { org.ovirt.engine.api.model.Host host = addStatistics ( model , entity , uriInfo , httpHeaders ) ; addCertificateInfo ( host ) ; return host ; }
Source:
private boolean supportsGlusterAsyncTasksFeature ( org.ovirt.engine.core.common.businessentities.VDSGroup cluster ) { return ( cluster.supportsGlusterService ( ) ) && ( org.ovirt.engine.core.common.gluster.GlusterFeatureSupported.glusterAsyncTasks ( cluster.getcompatibility_version ( ) ) ) ; }

Target:
public org.ovirt.engine.core.bll.gluster.tasks.GlusterTaskUtils getGlusterTaskUtils ( ) { return org.ovirt.engine.core.bll.gluster.tasks.GlusterTaskUtils.getInstance ( ) ; }
Source:
protected void endWithFailure ( ) { org.ovirt.engine.core.bll.ExportVmCommand.endActionOnAllImageGroups ( ) ; org.ovirt.engine.core.common.businessentities.VM vm = org.ovirt.engine.core.bll.ExportVmCommand.getVm ( ) ; org.ovirt.engine.core.bll.VmHandler.UnLockVm ( vm ) ; org.ovirt.engine.core.bll.VmHandler.updateDisksFromDb ( vm ) ; org.ovirt.engine.core.bll.ExportVmCommand.setSucceeded ( true ) ; }

Target:
protected void endWithFailure ( ) { org.ovirt.engine.core.bll.ExportVmCommand.endActionOnAllImageGroups ( ) ; org.ovirt.engine.core.common.businessentities.VM vm = org.ovirt.engine.core.bll.ExportVmCommand.getVm ( ) ; org.ovirt.engine.core.bll.VmHandler.unLockVm ( vm ) ; org.ovirt.engine.core.bll.VmHandler.updateDisksFromDb ( vm ) ; org.ovirt.engine.core.bll.ExportVmCommand.setSucceeded ( true ) ; }
Source:
private void addStyles ( ) { overrideIpTablesEditor.addContentWidgetStyleName ( style.overrideIpStyle ( ) ) ; }

Target:
private void addStyles ( ) { overrideIpTablesEditor.addContentWidgetStyleName ( style.overrideIpStyle ( ) ) ; publicKeyEditor.setCustomStyle ( style.pkStyle ( ) ) ; }
Source:
private boolean logicalNetworkExists ( ) { if ( ( org.ovirt.engine.core.bll.network.cluster.AttachNetworkToClusterInternalCommand.getPersistedNetwork ( ) ) != null ) { return true ; } addCanDoActionMessage ( EngineMessage.NETWORK_NOT_EXISTS ) ; return false ; }

Target:
private boolean logicalNetworkExists ( ) { if ( ( org.ovirt.engine.core.bll.network.cluster.AttachNetworkToClusterInternalCommand.getPersistedNetwork ( ) ) != null ) { return true ; } addValidationMessage ( EngineMessage.NETWORK_NOT_EXISTS ) ; return false ; }
Source:
public java.lang.Boolean getacpi_enable ( ) { return this . acpiEnabled ; }

Target:
public java.lang.Boolean getAcpiEnable ( ) { return this . acpiEnabled ; }
Source:
public void invalidWhenConditionOccurs ( ) { org.junit.Assert.assertThat ( org.ovirt.engine.core.bll.ValidationResult.failWith ( org.ovirt.engine.core.bll.ValidationResultTest.ERROR ) . when ( true ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( org.ovirt.engine.core.bll.ValidationResultTest.ERROR ) ) ; }

Target:
public void invalidWhenConditionOccurs ( ) { org.hamcrest.MatcherAssert.assertThat ( org.ovirt.engine.core.bll.ValidationResult.failWith ( org.ovirt.engine.core.bll.ValidationResultTest.ERROR ) . when ( true ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( org.ovirt.engine.core.bll.ValidationResultTest.ERROR ) ) ; }
Source:
protected void UpdateCdImage ( ) { updateUserCdImage ( getVm ( ) . getStoragePoolId ( ) ) ; }

Target:
protected void updateCdImage ( ) { updateUserCdImage ( getVm ( ) . getStoragePoolId ( ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > FilterDataCenter ( java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > source ) { return org.ovirt.engine.ui.uicommonweb.Linq.toList ( org.ovirt.engine.ui.uicommonweb.Linq.where ( source , new org.ovirt.engine.ui.uicommonweb.Linq.DataCenterNotStatusPredicate ( org.ovirt.engine.core.common.businessentities.StoragePoolStatus.NotOperational ) ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > filterDataCenter ( java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > source ) { return org.ovirt.engine.ui.uicommonweb.Linq.toList ( org.ovirt.engine.ui.uicommonweb.Linq.where ( source , new org.ovirt.engine.ui.uicommonweb.Linq.DataCenterNotStatusPredicate ( org.ovirt.engine.core.common.businessentities.StoragePoolStatus.NotOperational ) ) ) ; }
Source:
public void setCpuOverCommitTimestamp ( java.util.Date value ) { mVdsDynamic.setcpu_over_commit_time_stamp ( value ) ; }

Target:
public java.util.Date getCpuOverCommitTimestamp ( ) { return mVdsStatistics.getcpu_over_commit_time_stamp ( ) ; }
Source:
public void typeMatchesProfileTypeNotPassthroughProfileIsNull ( ) { typeMatchesProfileCommon ( false , null ) ; org.junit.Assert.assertThat ( validator.typeMatchesProfile ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void typeMatchesProfileTypeNotPassthroughProfileIsNull ( ) { typeMatchesProfileCommon ( false , null ) ; org.hamcrest.MatcherAssert.assertThat ( validator.typeMatchesProfile ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void testGetTreeForEntityWithClusterType ( ) { baseTestGetTreeForEntity ( org.ovirt.engine.core.dao.PermissionDaoTest.CLUSTER_ENTITY_ID , VdcObjectType.Cluster , org.ovirt.engine.core.dao.PermissionDaoTest.CLUSTER_ID ) ; }

Target:
public void testGetTreeForEntityWithClusterType ( ) { baseTestGetTreeForEntity ( FixturesTool.CLUSTER , VdcObjectType.Cluster , FixturesTool.CLUSTER ) ; }
Source:
public void canDoActionFailesOnVolumeWithRemoveBricksTaskCompleted ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.StopRemoveGlusterVolumeBricksCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters ( volumeWithRemoveBricksTaskCompleted , getBricks ( volumeWithRemoveBricksTaskCompleted , 2 ) ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }

Target:
public void canDoActionSucceedsOnVolumeWithRemoveBricksTaskCompleted ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.StopRemoveGlusterVolumeBricksCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters ( volumeWithRemoveBricksTaskCompleted , getBricks ( volumeWithRemoveBricksTaskCompleted , 2 ) ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }
Source:
public void testAddUser_4 ( ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetDomainList , org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , setUpDomains ( ) ) ; setUpAddUserExpectations ( ( ( ( "ADUSER@" + ( DOMAIN ) ) + ":: username=" ) + ( NAMES [ 0 ] ) ) ) ; org.ovirt.engine.api.model.User model = new org.ovirt.engine.api.model.User ( ) ; model.setUserName ( NAMES [ 0 ] ) ; org.ovirt.engine.api.model.Domain domain = new org.ovirt.engine.api.model.Domain ( ) ; domain.setName ( org.ovirt.engine.api.restapi.resource.aaa.DOMAIN ) ; domain.setId ( org.ovirt.engine.api.restapi.utils.DirectoryEntryIdUtils.encode ( domain.getName ( ) ) ) ; model.setDomain ( domain ) ; javax.ws.rs.core.Response response = collection.add ( model ) ; verifyAddUser ( response ) ; }

Target:
public void testAddUser4 ( ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetDomainList , org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , setUpDomains ( ) ) ; setUpAddUserExpectations ( ( ( ( "ADUSER@" + ( DOMAIN ) ) + ":: username=" ) + ( NAMES [ 0 ] ) ) ) ; org.ovirt.engine.api.model.User model = new org.ovirt.engine.api.model.User ( ) ; model.setUserName ( NAMES [ 0 ] ) ; org.ovirt.engine.api.model.Domain domain = new org.ovirt.engine.api.model.Domain ( ) ; domain.setName ( org.ovirt.engine.api.restapi.resource.aaa.DOMAIN ) ; domain.setId ( org.ovirt.engine.api.restapi.utils.DirectoryEntryIdUtils.encode ( domain.getName ( ) ) ) ; model.setDomain ( domain ) ; javax.ws.rs.core.Response response = collection.add ( model ) ; verifyAddUser ( response ) ; }
Source:
public void testAttachTemplateToTag ( ) { dao.attachTemplateToTag ( newTemplateTag ) ; org.ovirt.engine.core.common.businessentities.TagsTemplateMap result = dao.getTagTemplateByTagIdAndByTemplateId ( newTemplateTag.getTagId ( ) , newTemplateTag.getTemplateId ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; assertEqualsTagsTemplateMap ( newTemplateTag , result ) ; }

Target:
public void testAttachTemplateToTag ( ) { dao.attachTemplateToTag ( newTemplateTag ) ; org.ovirt.engine.core.common.businessentities.TagsTemplateMap result = dao.getTagTemplateByTagIdAndByTemplateId ( newTemplateTag.gettag_id ( ) , newTemplateTag.gettemplate_id ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; assertEqualsTagsTemplateMap ( newTemplateTag , result ) ; }
Source:
private static org.ovirt.engine.api.model.HostNIC getModelHostNic ( org.ovirt.engine.api.model.NetworkAttachment model ) { org.ovirt.engine.api.model.HostNIC hostNic = model.getHostNic ( ) ; if ( hostNic == null ) { hostNic = new org.ovirt.engine.api.model.HostNIC ( ) ; model.setHostNic ( hostNic ) ; } return hostNic ; }

Target:
private static org.ovirt.engine.api.model.HostNic getModelHostNic ( org.ovirt.engine.api.model.NetworkAttachment model ) { org.ovirt.engine.api.model.HostNic hostNic = model.getHostNic ( ) ; if ( hostNic == null ) { hostNic = new org.ovirt.engine.api.model.HostNic ( ) ; model.setHostNic ( hostNic ) ; } return hostNic ; }
Source:
private void setName ( org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.String > name ) { this . name = name ; }

Target:
private void setSubnetModel ( org.ovirt.engine.ui.uicommonweb.models.providers.ExternalSubnetModel subnetModel ) { this . subnetModel = subnetModel ; }
Source:
public void copyKeysDataTo ( ovirt_engine_dwh.configurationsync_4_1.ConfigurationSync.updateFirstSyncStruct other ) { other.var_name = this . var_name ; }

Target:
public void copyDataTo ( ovirt_engine_dwh.configurationsync_4_1.ConfigurationSync.copyOfupdateFirstSyncStruct other ) { other.var_name = this . var_name ; other.var_value = this . var_value ; other.var_datetime = this . var_datetime ; }
Source:
protected boolean hasWatchdog ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.hasWatchdog ( vmId ) ; }

Target:
protected boolean hasWatchdog ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.storage.disk.AbstractDiskVmCommand.getVmDeviceUtils ( ) . hasWatchdog ( vmId ) ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.hosts.HostNicModel model ) { driver.edit ( model ) ; labelsWidget.edit ( model.getLabelsModel ( ) ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.hosts.HostNicModel model ) { driver.edit ( model ) ; labelsWidget.edit ( model.getLabelsModel ( ) ) ; vfsConfigWidget.edit ( model.getVfsConfigModel ( ) ) ; }
Source:
public void testPersistentAuthOtherPreferencesInSameHeader ( ) { org.junit.Assert.assertTrue ( isPersistentAuth ( "persistent-auth, x, y" ) ) ; org.junit.Assert.assertTrue ( isPersistentAuth ( "x, persistent-auth, y" ) ) ; org.junit.Assert.assertTrue ( isPersistentAuth ( "x, y, persistent-auth" ) ) ; }

Target:
public void testPreferParameters ( ) { org.junit.Assert.assertEquals ( FiltersHelper.PREFER_PERSISTENCE_AUTH , getPrefer ( "persistent-auth; x=0; y=0" ) ) ; org.junit.Assert.assertEquals ( ( ( FiltersHelper.PREFER_PERSISTENCE_AUTH ) | ( FiltersHelper.PREFER_NEW_AUTH ) ) , getPrefer ( "persistent-auth, new-auth; x=0; y=0" ) ) ; }