auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testCleanExpiredUsersSessionsNoUsers ( ) { org.ovirt.engine.core.dao.DbUserDAO dbUserDAOMcok = initDataForClearTest ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY ) ; container.cleanExpiredUsersSessions ( ) ; container.cleanExpiredUsersSessions ( ) ; org.junit.Assert.assertNull ( "Get should return null since the session was removed" , container.GetData ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID , org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY ) ) ; org.mockito.Mockito.verifyZeroInteractions ( dbUserDAOMcok ) ; }

Target:
public void testCleanNotExpiredUsersSessionsNoUsers ( ) { org.ovirt.engine.core.dao.DbUserDAO dbUserDAOMcok = initDataForClearTest ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY ) ; container.cleanExpiredUsersSessions ( ) ; org.junit.Assert.assertNotNull ( "Get should return the value since the session was not removed" , container.GetData ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID , org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY , false ) ) ; org.mockito.Mockito.verifyZeroInteractions ( dbUserDAOMcok ) ; }
Source:
public void Info ( java.lang.String message ) { org.ovirt.engine.ui.common.uicommon.LoggerImpl.logger.log ( java.util.logging.Level.INFO , message ) ; }

Target:
public void info ( java.lang.String message ) { org.ovirt.engine.ui.common.uicommon.LoggerImpl.logger.log ( java.util.logging.Level.INFO , message ) ; }
Source:
public java.lang.String getstorage_name ( ) { return getStorageStaticData ( ) . getstorage_name ( ) ; }

Target:
public java.lang.String getStorageName ( ) { return getStorageStaticData ( ) . getstorage_name ( ) ; }
Source:
public void setVncKeyboardLayout ( java.lang.String vncKeyboardLayout ) { vmStatic.setVncKeyboardLayout ( vncKeyboardLayout ) ; }

Target:
public void setDefaultVncKeyboardLayout ( java.lang.String vncKeyboardLayout ) { vmStatic.setVncKeyboardLayout ( vncKeyboardLayout ) ; }
Source:
public java.util.Map deleteImage ( java.lang.String sdUUID , java.lang.String spUUID , java.lang.String imgGUID , java.lang.String postZero , java.lang.String force ) { return getOKStatusNotImplemented ( ) ; }

Target:
public java.util.Map deleteImage ( java.lang.String imgGUID , java.lang.String spUUID , java.lang.String sdUUID , boolean postZero , boolean force ) { return storageService.deleteImage ( imgGUID , spUUID , sdUUID , postZero , force ) ; }
Source:
public void testGetAllForVm ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.tags > result = dao.getAllForVm ( vm.getUuid ( ) . toString ( ) ) ; assertNotNull ( result ) ; assertFalse ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForVm ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.tags > result = dao.getAllForVm ( vm.getUuid ( ) . toString ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }
Source:
public void canDoActionVirtOnlySucceeds ( ) throws java.lang.Exception { setupVirtMock ( ) ; org.junit.Assert.assertTrue ( commandMock.canDoAction ( ) ) ; }

Target:
public void validateVirtOnlySucceeds ( ) throws java.lang.Exception { setupVirtMock ( ) ; org.junit.Assert.assertTrue ( commandMock.validate ( ) ) ; }
Source:
private boolean isEveyoneUserPortalBasedVmPermission ( org.ovirt.engine.core.common.businessentities.permissions permission ) { return ( permission.getad_element_id ( ) . equals ( ApplicationGuids.everyone.asGuid ( ) ) ) && ( permission.getrole_id ( ) . equals ( ApplicationGuids.userTemplateBasedVM.asGuid ( ) ) ) ; }

Target:
private boolean isEveryoneUserPortalBasedVmPermission ( org.ovirt.engine.core.common.businessentities.permissions permission ) { return ( permission.getad_element_id ( ) . equals ( ApplicationGuids.everyone.asGuid ( ) ) ) && ( permission.getrole_id ( ) . equals ( ApplicationGuids.userTemplateBasedVM.asGuid ( ) ) ) ; }
Source:
protected void updateVmDisksAndDevice ( ) { org.ovirt.engine.core.bll.VmHandler.updateDisksFromDb ( org.ovirt.engine.core.bll.UpdateVmDiskCommand.getVm ( ) ) ; org.ovirt.engine.core.bll.utils.VmDeviceUtils.updateBootOrderInVmDeviceAndStoreToDB ( org.ovirt.engine.core.bll.UpdateVmDiskCommand.getVm ( ) . getStaticData ( ) ) ; }

Target:
protected void updateBootOrder ( ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.updateBootOrderInVmDeviceAndStoreToDB ( org.ovirt.engine.core.bll.UpdateVmDiskCommand.getVm ( ) . getStaticData ( ) ) ; }
Source:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; return performAction ( VdcActionType.DetachVmFromTag , new org.ovirt.engine.core.common.action.AttachEntityToTagParameters ( guid , asList ( vmId ) ) ) ; }

Target:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; return performAction ( ActionType.DetachVmFromTag , new org.ovirt.engine.core.common.action.AttachEntityToTagParameters ( guid , asList ( vmId ) ) ) ; }
Source:
private org.ovirt.engine.core.common.action.UploadImageStatusParameters prepareStatusParams ( org.ovirt.engine.core.common.businessentities.storage.ImageTransferPhase phase ) { org.ovirt.engine.api.model.ImageTransfer updates = new org.ovirt.engine.api.model.ImageTransfer ( guid ) ; updates.setPhase ( phase ) ; org.ovirt.engine.core.common.action.UploadImageStatusParameters params = new org.ovirt.engine.core.common.action.UploadImageStatusParameters ( ) ; params.setUploadImageCommandId ( guid ) ; params.setUpdates ( updates ) ; return params ; }

Target:
private org.ovirt.engine.core.common.action.TransferImageStatusParameters prepareStatusParams ( org.ovirt.engine.core.common.businessentities.storage.ImageTransferPhase phase ) { org.ovirt.engine.api.model.ImageTransfer updates = new org.ovirt.engine.api.model.ImageTransfer ( guid ) ; updates.setPhase ( phase ) ; org.ovirt.engine.core.common.action.TransferImageStatusParameters params = new org.ovirt.engine.core.common.action.TransferImageStatusParameters ( ) ; params.setTransferImageCommandId ( guid ) ; params.setUpdates ( updates ) ; return params ; }
Source:
protected void ConnectAllHostsToPool ( ) { runSynchronizeOperation ( new org.ovirt.engine.core.bll.storage.ConnectSingleAsyncOperationFactory ( ) ) ; }

Target:
protected void connectAllHostsToPool ( ) { runSynchronizeOperation ( new org.ovirt.engine.core.bll.storage.ConnectSingleAsyncOperationFactory ( ) ) ; }
Source:
public static < T > boolean contains ( java.lang.Iterable < T > source , org.ovirt.engine.ui.uicommonweb.Linq.IPredicate < ? super T > predicate ) { return ( org.ovirt.engine.ui.uicommonweb.Linq.firstOrDefault ( source , predicate ) ) == null ? false : true ; }

Target:
public static < T > boolean contains ( java.lang.Iterable < T > source , org.ovirt.engine.ui.uicommonweb.Linq.IPredicate < ? super T > predicate ) { return ( org.ovirt.engine.ui.uicommonweb.Linq.firstOrNull ( source , predicate ) ) == null ? false : true ; }
Source:
public void testRemoveFailed ( ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetVdsGroupsByStoragePoolId , org.ovirt.engine.core.common.queries.StoragePoolQueryParametersBase.class , new java.lang.String [ ] { "StoragePoolId" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendDataCenterClustersResourceTest.dataCenterId } , setUpVDSGroups ( ) , null ) ; doTestBadRemove ( true , false , org.ovirt.engine.api.restapi.resource.FAILURE ) ; }

Target:
public void testRemoveFailed ( ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetVdsGroupsByStoragePoolId , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendDataCenterClustersResourceTest.dataCenterId } , setUpVDSGroups ( ) , null ) ; doTestBadRemove ( true , false , org.ovirt.engine.api.restapi.resource.FAILURE ) ; }
Source:
public void testMapOriginTypeRhev ( ) { java.lang.String s = org.ovirt.engine.api.restapi.types.VmBaseMapper.map ( OriginType.RHEV , null ) ; org.junit.Assert.assertEquals ( "rhev" , s ) ; org.ovirt.engine.core.common.businessentities.OriginType s2 = org.ovirt.engine.api.restapi.types.VmMapper.map ( s , OriginType.RHEV ) ; org.junit.Assert.assertEquals ( OriginType.RHEV , s2 ) ; }

Target:
public void testMapOriginTypeRhev ( ) { java.lang.String s = org.ovirt.engine.api.restapi.types.VmBaseMapper.map ( OriginType.RHEV , null ) ; org.junit.jupiter.api.Assertions.assertEquals ( "rhev" , s ) ; org.ovirt.engine.core.common.businessentities.OriginType s2 = org.ovirt.engine.api.restapi.types.VmMapper.map ( s , OriginType.RHEV ) ; org.junit.jupiter.api.Assertions.assertEquals ( OriginType.RHEV , s2 ) ; }
Source:
private org.ovirt.engine.core.utils.lock.EngineLock getEngineLock ( org.ovirt.engine.core.compat.Guid clusterId ) { return new org.ovirt.engine.core.utils.lock.EngineLock ( java.util.Collections.singletonMap ( clusterId.toString ( ) , LockMessagesMatchUtil.GLUSTER ) , null ) ; }

Target:
private org.ovirt.engine.core.utils.lock.EngineLock getEngineLock ( org.ovirt.engine.core.compat.Guid clusterId ) { return new org.ovirt.engine.core.utils.lock.EngineLock ( java.util.Collections.singletonMap ( clusterId.toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.GLUSTER , VdcBllMessages.ACTION_TYPE_FAILED_OBJECT_LOCKED ) ) , null ) ; }
Source:
public java.lang.Void runInTransaction ( ) { getCompensationContext ( ) . snapshotEntity ( getStoragePool ( ) ) ; getStoragePoolDAO ( ) . remove ( getStoragePool ( ) . getId ( ) ) ; getCompensationContext ( ) . stateChanged ( ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { getCompensationContext ( ) . snapshotEntity ( getStoragePool ( ) ) ; getStoragePoolDao ( ) . remove ( getStoragePool ( ) . getId ( ) ) ; getCompensationContext ( ) . stateChanged ( ) ; return null ; }
Source:
private void masterDomainIsUp ( ) { org.mockito.Mockito.doReturn ( true ) . when ( cmd ) . CheckMasterDomainIsUp ( ) ; }

Target:
private void masterDomainIsUp ( ) { org.mockito.Mockito.doReturn ( true ) . when ( cmd ) . checkMasterDomainIsUp ( ) ; }
Source:
public void await ( ) throws java.lang.InterruptedException { this . latch.await ( ) ; }

Target:
public boolean await ( long timeout , java.util.concurrent.TimeUnit unit ) throws java.lang.InterruptedException { return this . latch.await ( timeout , unit ) ; }
Source:
public void testGetStorageDomainDRs ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomainDR > result = dao.getAllForStorageDomain ( FixturesTool.POSIX_STORAGE_DOMAIN_ID ) ; org.junit.Assert.assertEquals ( 1 , result.size ( ) ) ; }

Target:
public void testGetStorageDomainDRs ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomainDR > result = dao.getAllForStorageDomain ( FixturesTool.POSIX_STORAGE_DOMAIN_ID ) ; org.junit.jupiter.api.Assertions.assertEquals ( 1 , result.size ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.AsyncTask createAsyncTask ( org.ovirt.engine.core.bll.CommandBase < ? > command , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { return coCoAsyncTaskHelper.createAsyncTask ( command , asyncTaskCreationInfo , parentCommand ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.AsyncTask createAsyncTask ( org.ovirt.engine.core.bll.CommandBase < ? > command , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.ActionType parentCommand ) { return coCoAsyncTaskHelper.createAsyncTask ( command , asyncTaskCreationInfo , parentCommand ) ; }
Source:
public static void hasSpiceSupport ( int osId , org.ovirt.engine.core.compat.Version version , org.ovirt.engine.ui.frontend.AsyncQuery callback ) { org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.OsRepository , new org.ovirt.engine.core.common.queries.OsQueryParameters ( org.ovirt.engine.core.common.queries.OsQueryParameters.OsRepositoryVerb.HasSpiceSupport , osId , version ) , callback ) ; }

Target:
public static java.lang.Boolean hasSpiceSupport ( int osId , org.ovirt.engine.core.compat.Version version ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.spiceSupportMatrix.get ( osId ) . get ( version ) ; }
Source:
public void setPassword ( java.lang.String password ) { this . password = password ; }

Target:
public void setSslChanels ( java.lang.String sslChanels ) { this . consoleOptions.setSslChanels ( org.ovirt.engine.ui.common.uicommon.AbstractSpice.adjustLegacySecureChannels ( sslChanels ) ) ; }
Source:
protected void prepareMethod ( ) { org.ovirt.engine.core.vdsbroker.irsbroker.RetrieveImageDataVDSCommand.getMethod ( ) . setRequestHeader ( "Size" , org.ovirt.engine.core.vdsbroker.irsbroker.RetrieveImageDataVDSCommand.getParameters ( ) . getSize ( ) . toString ( ) ) ; }

Target:
protected void prepareMethod ( ) { org.ovirt.engine.core.vdsbroker.irsbroker.RetrieveImageDataVDSCommand.getMethod ( ) . setRequestHeader ( "Range" , java.lang.String.format ( "bytes=0-%s" , ( ( org.ovirt.engine.core.vdsbroker.irsbroker.RetrieveImageDataVDSCommand.getParameters ( ) . getSize ( ) ) - 1 ) ) ) ; }
Source:
private boolean migrateVm ( ) { setActionReturnValue ( org.ovirt.engine.core.bll.MigrateVmCommand.getVdsBroker ( ) . RunAsyncVdsCommand ( VDSCommandType.Migrate , createMigrateVDSCommandParameters ( ) , this ) . getReturnValue ( ) ) ; return ( org.ovirt.engine.core.bll.MigrateVmCommand.getActionReturnValue ( ) ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.MigratingFrom ) ; }

Target:
private boolean migrateVm ( ) { setActionReturnValue ( org.ovirt.engine.core.bll.MigrateVmCommand.getVdsBroker ( ) . runAsyncVdsCommand ( VDSCommandType.Migrate , createMigrateVDSCommandParameters ( ) , this ) . getReturnValue ( ) ) ; return ( org.ovirt.engine.core.bll.MigrateVmCommand.getActionReturnValue ( ) ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.MigratingFrom ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyLegacyGotEnabledNotSetNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setType ( "native" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_LEGACY , null ) , UsbPolicy.ENABLED_NATIVE ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyLegacyGotDisabledLegacyPolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; usb.setType ( "legacy" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_LEGACY ) , UsbPolicy.DISABLED ) ; }
Source:
public void removeAll ( java.util.Collection < org.ovirt.engine.core.compat.Guid > ids ) { for ( org.ovirt.engine.core.compat.Guid id : ids ) { remove ( id ) ; } }

Target:
private org.springframework.jdbc.core.namedparam.MapSqlParameterSource createFullParametersMapperForSave ( org.ovirt.engine.core.common.businessentities.VdsDynamic vds ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = createFullParametersMapper ( vds ) ; parameterSource.addValue ( "controlled_by_pm_policy" , vds.isPowerManagementControlledByPolicy ( ) ) ; return parameterSource ; }
Source:
private org.ovirt.engine.core.bll.context.CommandContext getCommandContext ( ) { org.ovirt.engine.core.bll.context.CommandContext commandContext = org.ovirt.engine.core.bll.job.ExecutionHandler.createDefaultContexForTasks ( enclosingCommand.getExecutionContext ( ) ) ; commandContext.getExecutionContext ( ) . setShouldEndJob ( isLastTaskHandler ( ) ) ; return commandContext ; }

Target:
private org.ovirt.engine.core.bll.context.CommandContext getCommandContext ( ) { org.ovirt.engine.core.bll.context.CommandContext commandContext = org.ovirt.engine.core.bll.job.ExecutionHandler.createDefaultContextForTasks ( enclosingCommand.getContext ( ) ) ; commandContext.getExecutionContext ( ) . setShouldEndJob ( isLastTaskHandler ( ) ) ; return commandContext ; }
Source:
public void testIsExternalVM ( ) throws java.lang.Exception { org.ovirt.engine.core.utils.ovf.xml.XmlDocument xmlDocument = new org.ovirt.engine.core.utils.ovf.xml.XmlDocument ( getXmlOvfData ( ) ) ; org.junit.Assert.assertFalse ( "VM should not be external VM" , ovfUtils.isExternalVM ( xmlDocument ) ) ; }

Target:
public void testIsExternalVM ( ) throws java.lang.Exception { org.ovirt.engine.core.utils.ovf.xml.XmlDocument xmlDocument = new org.ovirt.engine.core.utils.ovf.xml.XmlDocument ( getXmlOvfData ( ) ) ; org.junit.jupiter.api.Assertions.assertFalse ( ovfUtils.isExternalVM ( xmlDocument ) , "VM should not be external VM" ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult stpForVmNetworkOnly ( ) { return ( network.isVmNetwork ( ) ) || ( ! ( network.getStp ( ) ) ) ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.NON_VM_NETWORK_CANNOT_SUPPORT_STP ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult stpForVmNetworkOnly ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.NON_VM_NETWORK_CANNOT_SUPPORT_STP ) . unless ( ( ( network.isVmNetwork ( ) ) || ( ! ( network.getStp ( ) ) ) ) ) ; }
Source:
public boolean isVisible ( ) { return getModel ( ) . getHasDomain ( ) ; }

Target:
public boolean isTrue ( ) { java.lang.String quotaName = getModel ( ) . getQuotaName ( ) ; return ( quotaName != null ) && ( quotaName != "" ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.AuditLog , org.ovirt.engine.ui.uicommonweb.models.storage.StorageListModel , org.ovirt.engine.ui.uicommonweb.models.storage.StorageEventListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.storageEventSubTabLabel ( ) , 9 , modelProvider , org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.AuditLog , org.ovirt.engine.ui.uicommonweb.models.storage.StorageListModel , org.ovirt.engine.ui.uicommonweb.models.storage.StorageEventListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.storageEventSubTabLabel ( ) , 10 , modelProvider , org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; }
Source:
public void setCtrlAltDeleteRemapHotkey ( java.lang.String hotkey ) { remapCtrlAltDeleteSpice.setLabel ( messages.remapCtrlAltDelete ( hotkey ) ) ; remapCtrlAltDeleteVnc.setLabel ( messages.remapCtrlAltDelete ( hotkey ) ) ; }

Target:
public void setCtrlAltDeleteRemapHotkey ( java.lang.String hotkey ) { remapCtrlAltDeleteSpice.setLabel ( org.ovirt.engine.ui.common.view.popup.ConsolePopupView.messages.remapCtrlAltDelete ( hotkey ) ) ; remapCtrlAltDeleteVnc.setLabel ( org.ovirt.engine.ui.common.view.popup.ConsolePopupView.messages.remapCtrlAltDelete ( hotkey ) ) ; }
Source:
public void validateImageNotFound ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_DISK_NOT_EXIST ) ; }

Target:
public void validateImageNotFound ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) , VmEntityType.VM ) ; org.mockito.Mockito.when ( diskValidator.isDiskExists ( ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_DISK_NOT_EXIST ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_DISK_NOT_EXIST ) ; }
Source:
private void initJobRepository ( ) { try { org.ovirt.engine.core.bll.job.JobRepositoryFactory.getJobRepository ( ) . finalizeJobs ( ) ; } catch ( java.lang.Exception e ) { org.ovirt.engine.core.bll.Backend.log.error ( "Failed to finalize running Jobs" , e ) ; } }

Target:
private void initJobRepository ( ) { try { jobRepository.finalizeJobs ( ) ; } catch ( java.lang.Exception e ) { org.ovirt.engine.core.bll.Backend.log.error ( "Failed to finalize running Jobs" , e ) ; } }
Source:
public void writeDate ( java.lang.String name , java.util.Date value ) { writeElement ( name , org.ovirt.api.metamodel.runtime.xml.XmlWriter.DATE_FORMAT.get ( ) . format ( value ) ) ; }

Target:
public void writeDate ( java.lang.String name , java.util.Date value ) { writeElement ( name , org.ovirt.api.metamodel.runtime.xml.XmlWriter.renderDate ( value ) ) ; }
Source:
public static boolean interfaceBasedOn ( java.lang.String proposedIface , java.lang.String iface ) { return ( ( iface != null ) && ( proposedIface != null ) ) && ( iface.equals ( org.ovirt.engine.core.utils.NetworkUtils.StripVlan ( proposedIface ) ) ) ; }

Target:
public static boolean interfaceBasedOn ( java.lang.String proposedIface , java.lang.String iface ) { return ( ( iface != null ) && ( proposedIface != null ) ) && ( iface.equals ( org.ovirt.engine.core.utils.NetworkUtils.stripVlan ( proposedIface ) ) ) ; }
Source:
public void testNicExistsWhenNicNameIsNotNull ( ) { org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment = new org.ovirt.engine.core.common.businessentities.network.NetworkAttachment ( ) ; attachment.setNicId ( null ) ; attachment.setNicName ( "whatever" ) ; org.junit.Assert.assertThat ( createNetworkAttachmentValidator ( attachment ) . nicNameIsSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testNicExistsWhenNicNameIsNotNull ( ) { org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment = new org.ovirt.engine.core.common.businessentities.network.NetworkAttachment ( ) ; attachment.setNicId ( null ) ; attachment.setNicName ( "whatever" ) ; org.hamcrest.MatcherAssert.assertThat ( createNetworkAttachmentValidator ( attachment ) . nicNameIsSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void increment ( ) { ( count ) ++ ; }

Target:
public void increase ( ) { ( count ) ++ ; }
Source:
public org.ovirt.engine.core.common.businessentities.OriginType getOrigin ( ) { return vmStatic.getorigin ( ) ; }

Target:
public void setOrigin ( org.ovirt.engine.core.common.businessentities.OriginType value ) { vmStatic.setOrigin ( value ) ; }
Source:
protected boolean canDoAction ( ) { Q validator = getProfileValidator ( ) ; return ( validate ( validator.profileIsSet ( ) ) ) && ( validate ( validator.profileExists ( ) ) ) ; }

Target:
protected boolean canDoAction ( ) { Q validator = getProfileValidator ( ) ; return ( ( validate ( validator.profileIsSet ( ) ) ) && ( validate ( validator.profileExists ( ) ) ) ) && ( validate ( validator.isLastProfileInParentEntity ( ) ) ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > searchClusters ( ) { return genericSearch ( org.ovirt.engine.core.bll.SearchQuery.getDbFacade ( ) . getClusterDao ( ) , true ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > searchInstanceTypes ( ) { return genericSearch ( vmTemplateDao , true ) ; }
Source:
public static org.ovirt.engine.core.common.errors.ErrorType getErrorType ( java.lang.String error ) { try { return org.ovirt.engine.core.common.errors.VdcBllMessages.valueOf ( error ) . getErrorType ( ) ; } catch ( java.lang.Exception e ) { return null ; } }

Target:
public static org.ovirt.engine.core.common.errors.ErrorType getErrorType ( java.lang.String error ) { try { return org.ovirt.engine.core.common.errors.EngineMessage.valueOf ( error ) . getErrorType ( ) ; } catch ( java.lang.Exception e ) { return null ; } }
Source:
public void executeCommand ( ) { setupMocks ( ) ; cmd.executeCommand ( ) ; org.junit.Assert.assertEquals ( AuditLogType.GLUSTER_HOOK_REFRESH , cmd.getAuditLogTypeValue ( ) ) ; }

Target:
public void executeCommand ( ) { setupMocks ( ) ; cmd.executeCommand ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( AuditLogType.GLUSTER_HOOK_REFRESH , cmd.getAuditLogTypeValue ( ) ) ; }
Source:
protected void ChangeDefualtHost ( ) { super . ChangeDefualtHost ( ) ; doChangeDefautlHost ( vm.getDedicatedVmForVds ( ) ) ; }

Target:
protected void changeDefualtHost ( ) { super . changeDefualtHost ( ) ; doChangeDefautlHost ( vm.getDedicatedVmForVds ( ) ) ; }
Source:
public static org.ovirt.engine.core.bll.AutoStartVmsRunner getInstance ( ) { return org.ovirt.engine.core.bll.AutoStartVmsRunner.instance ; }

Target:
private void init ( ) { int autoStartVmsRunnerIntervalInSeconds = org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.AutoStartVmsRunnerIntervalInSeconds ) ; schedulerUtil.scheduleAFixedDelayJob ( this , "startFailedAutoStartVms" , new java.lang.Class [ ] { } , new java.lang.Object [ ] { } , autoStartVmsRunnerIntervalInSeconds , autoStartVmsRunnerIntervalInSeconds , java.util.concurrent.TimeUnit.SECONDS ) ; }
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:
private void addTypeColumn ( ) { org.ovirt.engine.ui.common.widget.uicommon.permissions.PermissionListModelTable.getTable ( ) . addColumn ( new org.ovirt.engine.ui.common.widget.table.column.PermissionTypeColumn ( ) , org.ovirt.engine.ui.common.widget.uicommon.permissions.PermissionListModelTable.constants.empty ( ) , "30px" ) ; }

Target:
private void addTypeColumn ( ) { org.ovirt.engine.ui.common.widget.table.column.PermissionTypeColumn typeColumn = new org.ovirt.engine.ui.common.widget.table.column.PermissionTypeColumn ( ) ; typeColumn.setContextMenuTitle ( org.ovirt.engine.ui.common.widget.uicommon.permissions.PermissionListModelTable.constants.typePermission ( ) ) ; org.ovirt.engine.ui.common.widget.uicommon.permissions.PermissionListModelTable.getTable ( ) . addColumn ( typeColumn , org.ovirt.engine.ui.common.widget.uicommon.permissions.PermissionListModelTable.constants.empty ( ) , "30px" ) ; }
Source:
protected void onMouseOut ( ) { dragImage.setVisible ( false ) ; org.ovirt.engine.ui.webadmin.section.main.view.popup.host.panels.NetworkItemPanel.infoPopup.hide ( true ) ; if ( ( parentPanel ) != null ) { parentPanel.onMouseOver ( ) ; } }

Target:
protected void onMouseOut ( ) { dragImage.setVisible ( false ) ; org.ovirt.engine.ui.webadmin.section.main.view.popup.host.panels.NetworkItemPanel.infoPopup.hide ( true ) ; if ( ( parentPanel ) != null ) { parentPanel.onMouseOver ( ) ; } actionButton.setVisible ( false ) ; }
Source:
private void assertValidateSlaveHasNoLabelsFailed ( org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator validator , java.lang.String slaveName ) { org.junit.Assert.assertThat ( validator.validateSlaveHasNoLabels ( slaveName ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.LABEL_ATTACH_TO_IMPROPER_INTERFACE , org.ovirt.engine.core.utils.ReplacementUtils.createSetVariableString ( "LABEL_ATTACH_TO_IMPROPER_INTERFACE_ENTITY" , slaveName ) ) ) ; }

Target:
private void assertValidateSlaveHasNoLabelsFailed ( org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator validator , java.lang.String slaveName ) { final org.ovirt.engine.core.common.errors.EngineMessage engineMessage = org.ovirt.engine.core.common.errors.EngineMessage.LABEL_ATTACH_TO_IMPROPER_INTERFACE ; org.junit.Assert.assertThat ( validator.validateSlaveHasNoLabels ( slaveName ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( engineMessage , org.ovirt.engine.core.utils.ReplacementUtils.getVariableAssignmentString ( engineMessage , slaveName ) ) ) ; }
Source:
private boolean containsLun ( java.util.List < org.ovirt.engine.core.common.businessentities.LUNs > luns , org.ovirt.engine.core.common.businessentities.LUNs lunToFind ) { for ( org.ovirt.engine.core.common.businessentities.LUNs lun : luns ) { if ( lun.getLUN_id ( ) . equals ( lunToFind.getLUN_id ( ) ) ) { return true ; } } return false ; }

Target:
private boolean containsLun ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.LUNs > luns , org.ovirt.engine.core.common.businessentities.storage.LUNs lunToFind ) { for ( org.ovirt.engine.core.common.businessentities.storage.LUNs lun : luns ) { if ( lun.getLUN_id ( ) . equals ( lunToFind.getLUN_id ( ) ) ) { return true ; } } return false ; }
Source:
public javax.ws.rs.core.Response performRemove ( java.lang.String id ) { org.ovirt.engine.api.model.Network entity = lookupNetwork ( asGuidOr404 ( id ) ) ; if ( entity == null ) { notFound ( ) ; return null ; } return performAction ( removeAction , getActionParameters ( null , entity ) ) ; }

Target:
public javax.ws.rs.core.Response performRemove ( java.lang.String id ) { org.ovirt.engine.api.model.Network entity = lookupNetwork ( asGuidOr404 ( id ) ) ; if ( entity == null ) { notFound ( ) ; return null ; } return performAction ( removeAction , getRemoveParameters ( entity ) ) ; }
Source:
private static org.ovirt.engine.core.common.action.VdcReturnValueBase NotAutorizedError ( ) { org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue = new org.ovirt.engine.core.common.action.VdcReturnValueBase ( ) ; returnValue.setCanDoAction ( false ) ; returnValue.getCanDoActionMessages ( ) . add ( VdcBllMessages.USER_NOT_AUTHORIZED_TO_PERFORM_ACTION.toString ( ) ) ; return returnValue ; }

Target:
private org.ovirt.engine.core.common.action.VdcReturnValueBase getErrorCommandReturnValue ( org.ovirt.engine.core.common.errors.VdcBllMessages message ) { org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue = new org.ovirt.engine.core.common.action.VdcReturnValueBase ( ) ; returnValue.setCanDoAction ( false ) ; returnValue.getCanDoActionMessages ( ) . add ( message.toString ( ) ) ; return returnValue ; }
Source:
private org.ovirt.engine.api.model.VM removeRestrictedInfoFromVM ( org.ovirt.engine.api.model.VM vm ) { if ( vm != null ) { vm.setHost ( null ) ; vm.setPlacementPolicy ( null ) ; } return vm ; }

Target:
private org.ovirt.engine.api.model.VM removeRestrictedInfo ( org.ovirt.engine.api.model.VM vm ) { if ( isFiltered ( ) ) { vm.setHost ( null ) ; vm.setPlacementPolicy ( null ) ; } return vm ; }
Source:
public static boolean isWindowsOsType ( org.ovirt.engine.core.common.businessentities.VmOsType osType ) { if ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getWindowsOsTypes ( ) . contains ( osType ) ) { return true ; } return false ; }

Target:
public static boolean isWindowsOsType ( java.lang.Integer osType ) { if ( osType == null ) { return false ; } return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.windowsOsIds.contains ( osType ) ; }
Source:
protected java.lang.String renderNullSafe ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.Provider ) ( object ) ) . getName ( ) ; }

Target:
protected java.lang.String renderNullSafe ( org.ovirt.engine.core.common.businessentities.Provider < ? > provider ) { return provider.getName ( ) ; }
Source:
public void lowerVersionMgmtNetworkSupportedFeatures ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addManagementNetworksToPool ( 2 ) ; setupNetworkValidator ( true ) ; org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }

Target:
public void lowerVersionHostsAndNetwork ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addHostsToCluster ( ) ; addNonManagementNetworkToPool ( ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION ) ; }
Source:
protected void callbackFailed ( java.lang.String message ) { if ( haveCallback ( ) ) { callback.failed ( message ) ; } }

Target:
private void _callbackFailed ( java.lang.String message ) { if ( ( this . callback ) != null ) { this . callback.failed ( message ) ; } }
Source:
protected org.ovirt.engine.core.utils.linq.Predicate < org.ovirt.engine.core.common.businessentities.StorageDomain > getPredicate ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > disksList ) { return new org.ovirt.engine.core.utils.linq.Predicate < org.ovirt.engine.core.common.businessentities.StorageDomain > ( ) { @ java.lang.Override public boolean eval ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { return ! ( sdToReject.equals ( storageDomain ) ) ; } } ; }

Target:
protected org.ovirt.engine.core.utils.linq.Predicate < org.ovirt.engine.core.common.businessentities.StorageDomain > getPredicate ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > memoryDisks ) { return new org.ovirt.engine.core.utils.linq.Predicate < org.ovirt.engine.core.common.businessentities.StorageDomain > ( ) { @ java.lang.Override public boolean eval ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { return ! ( sdToReject.equals ( storageDomain ) ) ; } } ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.ServerConnectionListReturnForXmlRpc getStorageConnectionsList ( java.lang.String spUUID ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc thaw ( java.lang.String vmId ) ;
Source:
public java.lang.Void runInTransaction ( ) { getNetworkClusterDAO ( ) . remove ( getParameters ( ) . getVdsGroupId ( ) , getNetwork ( ) . getId ( ) ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { getNetworkClusterDAO ( ) . remove ( getParameters ( ) . getVdsGroupId ( ) , getParameters ( ) . getNetworkCluster ( ) . getNetworkId ( ) ) ; return null ; }
Source:
public org.ovirt.engine.api.model.DiskAttachment update ( org.ovirt.engine.api.model.DiskAttachment diskAttachment ) { return null ; }

Target:
public org.ovirt.engine.api.model.DiskAttachment update ( org.ovirt.engine.api.model.DiskAttachment attachment ) { return performUpdate ( attachment , new org.ovirt.engine.api.restapi.resource.BackendDiskAttachmentResource.AddDiskResolver ( ) , VdcActionType.UpdateVmDisk , new org.ovirt.engine.api.restapi.resource.BackendDiskAttachmentResource.UpdateParametersProvider ( ) ) ; }
Source:
public org.ovirt.engine.api.resource.FenceAgentResource getAgentResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendFenceAgentResource ( id ) ) ; }

Target:
public org.ovirt.engine.api.resource.FenceAgentResource getAgentResource ( java.lang.String agentId ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendFenceAgentResource ( hostId , agentId ) ) ; }
Source:
public boolean checkVmNeedsDirectPassthrough ( org.ovirt.engine.core.common.businessentities.VM vm ) { return ( ( ( vm.getDedicatedVmForVds ( ) ) != null ) && ( org.ovirt.engine.core.bll.hostdev.HostDeviceManager.supportsHostDevicePassthrough ( vm ) ) ) && ( checkVmNeedsDirectPassthrough ( vm.getId ( ) ) ) ; }

Target:
public boolean checkVmNeedsDirectPassthrough ( org.ovirt.engine.core.common.businessentities.VM vm ) { return ( ( ( vm.getDedicatedVmForVdsList ( ) . size ( ) ) > 0 ) && ( org.ovirt.engine.core.bll.hostdev.HostDeviceManager.supportsHostDevicePassthrough ( vm ) ) ) && ( checkVmNeedsDirectPassthrough ( vm.getId ( ) ) ) ; }
Source:
private void generateClasses ( org.ovirt.api.metamodel.concepts.StructType type ) { generateReader ( type ) ; generateWriter ( type ) ; }

Target:
private void generateStructSupportClasses ( org.ovirt.api.metamodel.concepts.StructType type ) { generateStructReader ( type ) ; generateStructWriter ( type ) ; }
Source:
public void RemoveVmFromDownVms ( org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.compat.Guid vmId ) { java.util.HashSet < org.ovirt.engine.core.compat.Guid > vms = vdsAndVmsList.get ( vdsId ) ; if ( vms != null ) { vms.remove ( vmId ) ; } }

Target:
public void removeVmFromDownVms ( org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.compat.Guid vmId ) { java.util.HashSet < org.ovirt.engine.core.compat.Guid > vms = vdsAndVmsList.get ( vdsId ) ; if ( vms != null ) { vms.remove ( vmId ) ; } }
Source:
protected final boolean failCanDoAction ( org.ovirt.engine.core.dal.VdcBllMessages message ) { addCanDoActionMessage ( message ) ; return false ; }

Target:
protected org.ovirt.engine.core.compat.Guid createTaskInCurrentTransaction ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand , org.ovirt.engine.core.common.VdcObjectType entityType , org.ovirt.engine.core.compat.Guid ... entityIds ) { return createTaskImpl ( taskId , asyncTaskCreationInfo , parentCommand , null , entityType , entityIds ) ; }
Source:
public static org.ovirt.engine.core.common.queries.SearchParameters eqSearchParams ( org.ovirt.engine.core.common.queries.SearchParameters expected ) { return org.mockito.Matchers.argThat ( new org.ovirt.engine.api.restapi.test.util.TestHelper.SearchParametersEquals ( expected ) ) ; }

Target:
public static org.ovirt.engine.core.common.queries.SearchParameters eqSearchParams ( org.ovirt.engine.core.common.queries.SearchParameters expected ) { return org.mockito.ArgumentMatchers.argThat ( new org.ovirt.engine.api.restapi.test.util.TestHelper.SearchParametersEquals ( expected ) ) ; }
Source:
public boolean match ( org.ovirt.engine.core.common.businessentities.VDSGroup source ) { return ( ( java.lang.Boolean ) ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . getConfigValuePreConverted ( ConfigurationValues.SupportCustomDeviceProperties , source.getcompatibility_version ( ) . getValue ( ) ) ) ) ; }

Target:
public boolean match ( org.ovirt.engine.core.common.businessentities.VDSGroup source ) { return ( ( java.lang.Boolean ) ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . getConfigValuePreConverted ( ConfigurationValues.SupportCustomDeviceProperties , source.getCompatibilityVersion ( ) . getValue ( ) ) ) ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getVdsId ( ) { return ( getVm ( ) . getrun_on_vds ( ) ) != null ? getVm ( ) . getrun_on_vds ( ) . getValue ( ) : org.ovirt.engine.core.compat.Guid.Empty ; }

Target:
public org.ovirt.engine.core.compat.Guid getVdsId ( ) { return ( getVm ( ) . getRunOnVds ( ) ) != null ? getVm ( ) . getRunOnVds ( ) . getValue ( ) : org.ovirt.engine.core.compat.Guid.Empty ; }
Source:
protected boolean failVmStatusIllegal ( ) { return failCanDoAction ( EngineMessage.ACTION_TYPE_FAILED_VM_STATUS_ILLEGAL , org.ovirt.engine.core.bll.validator.LocalizedVmStatus.from ( org.ovirt.engine.core.bll.VmCommand.getVm ( ) . getStatus ( ) ) ) ; }

Target:
protected boolean failVmStatusIllegal ( ) { return failValidation ( EngineMessage.ACTION_TYPE_FAILED_VM_STATUS_ILLEGAL , org.ovirt.engine.core.bll.validator.LocalizedVmStatus.from ( org.ovirt.engine.core.bll.VmCommand.getVm ( ) . getStatus ( ) ) ) ; }
Source:
protected void init ( ) { if ( ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) ) != null ) { needsHostDevices = hostDeviceManager.checkVmNeedsDirectPassthrough ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) ) ; } }

Target:
protected void init ( ) { if ( ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) ) != null ) { needsHostDevices = hostDeviceManager.checkVmNeedsDirectPassthrough ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) ) ; } loadVmInit ( ) ; }
Source:
public java.lang.String getPassword ( ) { return ( ( java.lang.String ) ( GetData ( org.ovirt.engine.core.bll.session.SessionDataContainer.PASSWORD_PARAMETER_NAME , false ) ) ) ; }

Target:
public java.lang.String getPassword ( ) { return ( ( java.lang.String ) ( getData ( org.ovirt.engine.core.bll.session.SessionDataContainer.PASSWORD_PARAMETER_NAME , false ) ) ) ; }
Source:
public void testGlusterVolumeBricksByServerId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity > bricks = dao.getGlusterVolumeBricksByServerId ( org.ovirt.engine.core.dao.gluster.GlusterBrickDaoTest.SERVER_ID ) ; org.junit.Assert.assertNotNull ( bricks ) ; }

Target:
public void testGlusterVolumeBricksByServerId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity > bricks = dao.getGlusterVolumeBricksByServerId ( FixturesTool.GLUSTER_SERVER_UUID3 ) ; org.junit.Assert.assertNotNull ( bricks ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { optimizationForServerFormatter ( object ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { boolean isCpuNameBlank = ( object.getCPU ( ) . getSelectedItem ( ) ) == null ; architectureEditor.setVisible ( isCpuNameBlank ) ; }
Source:
public void testParseEmpty ( ) { java.util.List < org.ovirt.engine.api.model.PowerManagement > ret = org.ovirt.engine.api.restapi.util.FencingOptionsParser.parse ( "" , "" ) ; assertNotNull ( ret ) ; assertEquals ( 0 , ret.size ( ) ) ; }

Target:
public void testParseEmpty ( ) { java.util.List < org.ovirt.engine.api.model.PowerManagement > ret = org.ovirt.engine.api.restapi.util.FenceOptionsParser.parse ( "" , "" ) ; assertNotNull ( ret ) ; assertEquals ( 0 , ret.size ( ) ) ; }
Source:
public void before ( ) { rangeOf10Macs = new org.ovirt.engine.core.bll.network.macpoolmanager.Range ( org.ovirt.engine.core.bll.network.macpoolmanager.RangeTest.RANGE_FROM , org.ovirt.engine.core.bll.network.macpoolmanager.RangeTest.RANGE_TO ) ; }

Target:
public void before ( ) { rangeOf10Macs = new org.ovirt.engine.core.bll.network.macpool.Range ( org.ovirt.engine.core.bll.network.macpool.RangeTest.RANGE_FROM , org.ovirt.engine.core.bll.network.macpool.RangeTest.RANGE_TO ) ; }
Source:
private void initTree ( ) { com.google.gwt.user.cellview.client.CellTree.Resources res = com.google.gwt.core.client.GWT.create ( org.ovirt.engine.ui.webadmin.section.main.view.popup.configure.RolePopupView.AssignTagTreeResources.class ) ; tree = new org.ovirt.engine.ui.webadmin.widget.editor.EntityModelCellTree < org.ovirt.engine.ui.uicommonweb.models.common.SelectionTreeNodeModel , org.ovirt.engine.ui.webadmin.uicommon.model.SimpleSelectionTreeNodeModel > ( res ) ; }

Target:
private void initTree ( ) { tree = new org.ovirt.engine.ui.webadmin.widget.editor.EntityModelCellTree < org.ovirt.engine.ui.uicommonweb.models.common.SelectionTreeNodeModel , org.ovirt.engine.ui.webadmin.uicommon.model.SimpleSelectionTreeNodeModel > ( org.ovirt.engine.ui.webadmin.section.main.view.popup.configure.RolePopupView.res ) ; }
Source:
public void runTest ( ) { org.ovirt.engine.ui.uicommonweb.Uri uri = new org.ovirt.engine.ui.uicommonweb.Uri ( uriCandidate ) ; org.junit.Assert.assertTrue ( uri.isValid ( ) ) ; org.junit.Assert.assertEquals ( uriCandidate.toLowerCase ( ) , uri.toString ( ) ) ; }

Target:
public void runTest ( ) { org.ovirt.engine.ui.uicommonweb.Uri uri = new org.ovirt.engine.ui.uicommonweb.Uri ( uriCandidate ) ; org.junit.Assert.assertTrue ( uri.isValid ( ) ) ; org.junit.Assert.assertEquals ( uriCandidate.toLowerCase ( ) , uri.getStringRepresentation ( ) ) ; }
Source:
public void setStatus ( org.ovirt.engine.core.common.businessentities.VMStatus value ) { if ( ( status ) != value ) { status = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Status" ) ) ; } }

Target:
public void setStatus ( org.ovirt.engine.core.common.businessentities.VMStatus value ) { if ( ( status ) != value ) { status = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Status" ) ) ; } }
Source:
protected org.ovirt.engine.core.dao.VmStaticDAO getVmStaticDao ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmStaticDao ( ) ; }

Target:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( EngineMessage.VAR__ACTION__ADD ) ; addCanDoActionMessage ( EngineMessage.VAR__TYPE__VM ) ; }
Source:
public void addMethod ( org.ovirt.api.metamodel.concepts.Method newMethod ) { methods.add ( newMethod ) ; methods.sort ( java.util.Comparator.comparing ( Method :: getName ) ) ; }

Target:
public void addMethods ( java.util.List < org.ovirt.api.metamodel.concepts.Method > newMethod ) { methods.addAll ( newMethod ) ; }
Source:
public void testSave ( ) { dao.save ( newLUNStorageMap ) ; org.ovirt.engine.core.common.businessentities.storage.LUN_storage_server_connection_map result = dao.get ( newLUNStorageMap.getId ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( newLUNStorageMap , result ) ; }

Target:
public void testSave ( ) { dao.save ( newLUNStorageMap ) ; org.ovirt.engine.core.common.businessentities.storage.LUNStorageServerConnectionMap result = dao.get ( newLUNStorageMap.getId ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( newLUNStorageMap , result ) ; }
Source:
public void testSave ( ) { dao.save ( newGroup ) ; org.ovirt.engine.core.common.businessentities.aaa.DbGroup result = dao.getByName ( newGroup.getName ( ) ) ; org.junit.Assert.assertEquals ( newGroup , result ) ; }

Target:
public void testSave ( ) { dao.save ( newGroup ) ; org.ovirt.engine.core.common.businessentities.aaa.DbGroup result = dao.getByName ( newGroup.getName ( ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( newGroup , result ) ; }
Source:
public void testBootProtocolSetForDisplayNetworkWhenNullValuedIpConfigurationAndWhenNetworkClusterDisplayIsFalse ( ) { doTestBootProtocolSetForDisplayNetworkWhenNullValuedIpConfigurationAndWhenNetworkClusterDisplay ( false , createNetwork ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testBootProtocolSetForRoleNetworkWhenNullValuedIpConfigurationAndWhenNetworkHasNoRole ( ) { doTestBootProtocolSetForRoleNetworkWhenNullValuedIpConfiguration ( false , createNetwork ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }