auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsGroupDao ( ) . remove ( org.ovirt.engine.core.bll.RemoveVdsGroupCommand.getVdsGroup ( ) . getId ( ) ) ; org.ovirt.engine.core.bll.RemoveVdsGroupCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getClusterDao ( ) . remove ( org.ovirt.engine.core.bll.RemoveClusterCommand.getCluster ( ) . getId ( ) ) ; org.ovirt.engine.core.bll.RemoveClusterCommand.setSucceeded ( true ) ; }
Source:
public void testGetStrippedVdsUniqueIdWithUnacceptedChars ( ) { java.lang.String result = this . gerStrippedVdsUniqueId ( "Test_123" ) ; org.junit.Assert.assertEquals ( "Vds id doesn't equal to the expected value" , "Test_123" , result ) ; }

Target:
public void testGetStrippedVdsUniqueIdWithUnacceptedChars ( ) { java.lang.String result = this . gerStrippedVdsUniqueId ( "Test_123" ) ; org.junit.jupiter.api.Assertions.assertEquals ( "Test_123" , result , "Vds id doesn't equal to the expected value" ) ; }
Source:
protected void updateBootOrderInVmDevice ( ) { org.ovirt.engine.core.bll.storage.disk.AttachDiskToVmCommand.getVmDeviceUtils ( ) . updateBootOrder ( org.ovirt.engine.core.bll.storage.disk.AttachDiskToVmCommand.getVm ( ) . getId ( ) ) ; }

Target:
protected void updateBootOrderInVmDevice ( ) { org.ovirt.engine.core.bll.storage.disk.AttachDiskToVmCommand.getVmDeviceUtils ( ) . updateBootOrder ( org.ovirt.engine.core.bll.storage.disk.AttachDiskToVmCommand.getVm ( ) . getStaticData ( ) ) ; }
Source:
public void testIsNetworkInSyncWhenAverageRealTimeDifferent ( ) { ifaceQos.setOutAverageRealtime ( 1 ) ; networkQos.setOutAverageRealtime ( 2 ) ; org.junit.Assert.assertThat ( createTestedInstanceWithSameNonQosValues ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( false ) ) ; }

Target:
public void testIsNetworkInSyncWhenAverageRealTimeDifferent ( ) { ifaceQos.setOutAverageRealtime ( 1 ) ; networkQos.setOutAverageRealtime ( 2 ) ; org.hamcrest.MatcherAssert.assertThat ( createTestedInstanceWithSameNonQosValues ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( false ) ) ; }
Source:
public org.ovirt.engine.core.compat.NGuid getLastVdsRunOn ( ) { return this . vmDynamic.getlast_vds_run_on ( ) ; }

Target:
public void setBootSequence ( org.ovirt.engine.core.common.businessentities.BootSequence value ) { this . vmDynamic.setBootSequence ( value ) ; }
Source:
public void setHibernationVolHandle ( java.lang.String value ) { this . vmDynamic.sethibernation_vol_handle ( value ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VMStatus getStatus ( ) { return this . vmDynamic.getStatus ( ) ; }
Source:
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 ( ) ) ) ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult stpForVmNetworkOnly ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.NON_VM_NETWORK_CANNOT_SUPPORT_STP ) . unless ( ( ( network.isVmNetwork ( ) ) || ( ! ( network.getStp ( ) ) ) ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.Network getPersistedNetwork ( ) { if ( ( persistedNetwork ) == null ) { persistedNetwork = org.ovirt.engine.core.bll.network.cluster.DetachNetworkToClusterCommand.getNetworkDao ( ) . get ( getNetwork ( ) . getId ( ) ) ; } return persistedNetwork ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.Network getPersistedNetwork ( ) { if ( ( persistedNetwork ) == null ) { persistedNetwork = networkDao.get ( getNetwork ( ) . getId ( ) ) ; } return persistedNetwork ; }
Source:
public void persistNetworkAttachments ( ) { removeInvalidNetworkAttachmentsFromDb ( ) ; saveUserNetworkAttachments ( ) ; addNewNetworkAttachments ( ) ; }

Target:
public void persistNetworkAttachments ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > networkAttachments = networkAttachmentDao.getAllForHost ( hostId ) ; removeInvalidNetworkAttachmentsFromDb ( networkAttachments ) ; persistOrUpdateUserNetworkAttachments ( networkAttachments ) ; updateReportedNetworkAttachmentsNotMentionedInRequest ( networkAttachments ) ; }
Source:
protected boolean UpdateVmImSpm ( ) { return org.ovirt.engine.core.bll.VmCommand.UpdateVmInSpm ( org.ovirt.engine.core.bll.MoveVmCommand.getVm ( ) . getstorage_pool_id ( ) , java.util.Arrays.asList ( org.ovirt.engine.core.bll.MoveVmCommand.getVm ( ) ) ) ; }

Target:
protected boolean updateVmImSpm ( ) { return org.ovirt.engine.core.bll.VmCommand.updateVmInSpm ( org.ovirt.engine.core.bll.MoveVmCommand.getVm ( ) . getstorage_pool_id ( ) , java.util.Arrays.asList ( org.ovirt.engine.core.bll.MoveVmCommand.getVm ( ) ) ) ; }
Source:
public void canDoActionBlockToBlock ( ) { canDoActionInvalidDestinationAndSourceDomainOfDifferentStorageSubtypes ( StorageType.ISCSI , StorageType.ISCSI , true ) ; }

Target:
public void validateBlockToBlock ( ) { validateInvalidDestinationAndSourceDomainOfDifferentStorageSubtypes ( StorageType.ISCSI , StorageType.ISCSI , true ) ; }
Source:
protected java.util.List < Q > getBackendCollection ( org.ovirt.engine.core.common.interfaces.SearchType searchType ) { return getBackendCollection ( searchType , org.ovirt.engine.api.common.util.QueryHelper.getConstraint ( httpHeaders , uriInfo , "" , modelType ) ) ; }

Target:
protected java.util.List < Q > getBackendCollection ( org.ovirt.engine.core.common.interfaces.SearchType searchType ) { return getBackendCollection ( searchType , org.ovirt.engine.api.restapi.util.QueryHelper.getConstraint ( httpHeaders , uriInfo , "" , modelType ) ) ; }
Source:
public boolean getAllowConsoleReconnect ( ) { return this . mVmStatic.getAllowConsoleReconnect ( ) ; }

Target:
public int getNumOfCpus ( ) { return this . vmStatic.getNumOfCpus ( ) ; }
Source:
public void updateIScsiConnection ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections newNFSConnection = createNFSConnection ( "multipass.my.domain.tlv.company.com:/export/allstorage/data2" , StorageType.ISCSI , NfsVersion.V4 , 300 , 0 ) ; parameters.setStorageServerConnection ( newNFSConnection ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_CONNECTION_UNSUPPORTED_ACTION_FOR_STORAGE ) ; }

Target:
public void updateFCPUnsupportedConnectionType ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections dummyFCPConn = createISCSIConnection ( "10.35.16.25" , StorageType.FCP , "" , "user1" , "mypassword123" ) ; parameters.setStorageServerConnection ( dummyFCPConn ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_CONNECTION_UNSUPPORTED_ACTION_FOR_STORAGE_TYPE ) ; }
Source:
public static void RunAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final org.ovirt.engine.core.common.action.VdcActionParametersBase parameters , final org.ovirt.engine.ui.uicompat.IFrontendActionAsyncCallback callback , final java.lang.Object state , final boolean showErrorDialog ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runAction ( actionType , parameters , callback , state , showErrorDialog ) ; }

Target:
public void runMultipleAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , final org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback callback , final java.lang.Object state ) { runMultipleAction ( actionType , parameters , false , callback , state ) ; }
Source:
public void testGetByClusterIdAndServiceType ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterClusterService service = dao.getByClusterIdAndServiceType ( org.ovirt.engine.core.compat.Guid.createGuidFromString ( 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.compat.Guid.createGuidFromStringDefaultEmpty ( 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 ) ) ) ; }
Source:
public void validateDiskIsOvfStore ( ) throws java.lang.Exception { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ) ; initVmDiskImage ( false ) ; command.getImage ( ) . setContentType ( DiskContentType.OVF_STORE ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_OVF_DISK_NOT_SUPPORTED ) ; }

Target:
public void validateDiskIsOvfStore ( ) throws java.lang.Exception { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) , VmEntityType.VM ) ; command.getImage ( ) . setContentType ( DiskContentType.OVF_STORE ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_OVF_DISK_NOT_SUPPORTED ) ; }
Source:
public void getGlusterHookContent ( ) { java.lang.String content = dao.getGlusterHookContent ( FixturesTool.HOOK_ID ) ; org.junit.Assert.assertNotNull ( content ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.gluster.GlusterHooksDaoTest.CONTENT , content ) ; }

Target:
public void getGlusterHookContent ( ) { java.lang.String content = dao.getGlusterHookContent ( FixturesTool.HOOK_ID ) ; org.junit.jupiter.api.Assertions.assertNotNull ( content ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.core.dao.gluster.GlusterHooksDaoTest.CONTENT , content ) ; }
Source:
public void getManagementNetworkName ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { getConfigFromCache ( new org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ( org.ovirt.engine.core.common.queries.ConfigurationValues.ManagementNetwork , getDefaultConfigurationVersion ( ) ) , aQuery ) ; }

Target:
public void getManagementNetworkCandidates ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid storagePoolId ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.ListAsyncConverter ( ) ; org.ovirt.engine.core.common.queries.IdQueryParameters params = new org.ovirt.engine.core.common.queries.IdQueryParameters ( storagePoolId ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetManagementNetworkCandidates , params , aQuery ) ; }
Source:
public void testIsInternalExecutionTrue ( ) { org.ovirt.engine.core.bll.QueriesCommandBase < ? > query = mockQuery ( ) ; query.setInternalExecution ( true ) ; org.junit.Assert.assertTrue ( "Query should be marked for internal execution" , query.isInternalExecution ( ) ) ; }

Target:
public void testIsInternalExecutionTrue ( ) { org.ovirt.engine.core.bll.QueriesCommandBase < ? > query = mockQuery ( ) ; query.setInternalExecution ( true ) ; org.junit.jupiter.api.Assertions.assertTrue ( query.isInternalExecution ( ) , "Query should be marked for internal execution" ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.ServerConnectionListReturnForXmlRpc getStorageConnectionsList ( java.lang.String spUUID ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.VMListReturnForXmlRpc getOvaInfo ( java.lang.String ovaPath ) ;
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.Permission , org.ovirt.engine.ui.uicommonweb.models.hosts.HostListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.configure.PermissionListModel < org.ovirt.engine.core.common.businessentities.VDS > > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.hostPermissionSubTabLabel ( ) , 5 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.Permission , org.ovirt.engine.ui.uicommonweb.models.hosts.HostListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.configure.PermissionListModel < org.ovirt.engine.core.common.businessentities.VDS > > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.host.SubTabHostPermissionPresenter.constants.hostPermissionSubTabLabel ( ) , 5 , modelProvider ) ; }
Source:
public java.lang.String getVerb ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op1 ) { return org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) . nullOperationUnmanagedNetwork ( ) ; }

Target:
public java.lang.String getVerb ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkItemModel < ? > op1 ) { return org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getMessages ( ) . nullOperationUnmanagedNetwork ( op1.getName ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VM getEntity ( ) { return ( ( org.ovirt.engine.core.common.businessentities.VM ) ( super . getEntity ( ) ) ) ; }

Target:
private void newEntity ( ) { if ( ( getWindow ( ) ) != null ) { return ; } addDisk ( new org.ovirt.engine.ui.uicommonweb.models.vms.NewDiskModel ( ) , org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) . newVirtualDiskTitle ( ) , HelpTag.new_virtual_disk , "new_virtual_disk" ) ; }
Source:
public void shouldDetectCpuPinning ( ) { invalidVM.setCpuPinning ( "i am pinned" ) ; org.hamcrest.MatcherAssert.assertThat ( validator.isVmReadyForUpgrade ( invalidVM ) , org.hamcrest.CoreMatchers.hasItem ( UPGRADE_ERROR.VM_CPUS_PINNED ) ) ; }

Target:
public void shouldDetectCpuPinning ( ) { invalidVM.setCpuPinning ( "i am pinned" ) ; org.hamcrest.MatcherAssert.assertThat ( validator.checkVmReadyForUpgrade ( invalidVM ) , org.hamcrest.CoreMatchers.hasItem ( UPGRADE_ERROR.VM_CPUS_PINNED ) ) ; }
Source:
public org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorTest.HostSetupNetworksValidatorBuilder setNetworkBusinessEntityMap ( org.ovirt.engine.core.common.businessentities.BusinessEntityMap < org.ovirt.engine.core.common.businessentities.network.Network > networkBusinessEntityMap ) { this . networkBusinessEntityMap = networkBusinessEntityMap ; return this ; }

Target:
public org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorTest.HostSetupNetworksValidatorBuilder addNetworks ( java.util.Collection < org.ovirt.engine.core.common.businessentities.network.Network > networks ) { if ( networks == null ) { return this ; } this . networks.addAll ( networks ) ; return this ; }
Source:
public void testGetFilteredWithPermissionsNoPermissions ( ) { org.ovirt.engine.core.common.businessentities.VmPool result = dao.get ( existingVmPool.getvm_pool_id ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetFilteredWithPermissionsNoPermissions ( ) { org.ovirt.engine.core.common.businessentities.VmPool result = dao.get ( existingVmPool.getVmPoolId ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNull ( result ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VmTemplate lookupTemplate ( org.ovirt.engine.core.compat.Guid id ) { return getEntity ( org.ovirt.engine.core.common.businessentities.VmTemplate.class , VdcQueryType.GetVmTemplate , new org.ovirt.engine.core.common.queries.GetVmTemplateParameters ( id ) , "GetVmTemplate" ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VmTemplate lookupTemplate ( org.ovirt.engine.core.compat.Guid id ) { return getEntity ( org.ovirt.engine.core.common.businessentities.VmTemplate.class , QueryType.GetVmTemplate , new org.ovirt.engine.core.common.queries.GetVmTemplateParameters ( id ) , "GetVmTemplate" ) ; }
Source:
public void edit ( final org.ovirt.engine.ui.uicommonweb.models.vms.CloneVmModel object ) { driver.edit ( object ) ; }

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 ( "Message" . equals ( propName ) ) { appendMessage ( object.getMessage ( ) ) ; } }
Source:
protected void executeQueryCommand ( ) { final org.ovirt.engine.core.common.businessentities.MacPool macPool = getDbFacade ( ) . getMacPoolDao ( ) . get ( getParameters ( ) . getId ( ) ) ; getQueryReturnValue ( ) . setReturnValue ( macPool ) ; }

Target:
protected void executeQueryCommand ( ) { final org.ovirt.engine.core.common.businessentities.MacPool macPool = macPoolDao.get ( getParameters ( ) . getId ( ) ) ; getQueryReturnValue ( ) . setReturnValue ( macPool ) ; }
Source:
protected java.lang.String getErrorMessage ( java.lang.String msg ) { return org.ovirt.engine.core.compat.StringHelper.isNullOrEmpty ( msg ) ? org.ovirt.engine.core.bll.InstallVdsCommand.GENERIC_ERROR : msg ; }

Target:
protected java.lang.String getErrorMessage ( java.lang.String msg ) { return org.apache.commons.lang.StringUtils.isEmpty ( msg ) ? org.ovirt.engine.core.bll.InstallVdsCommand.GENERIC_ERROR : msg ; }
Source:
public int compare ( org.ovirt.engine.core.common.businessentities.DiskImage x , org.ovirt.engine.core.common.businessentities.DiskImage y ) { return org.ovirt.engine.ui.uicompat.DateTimeUtils.getTimeOfDay ( x.getLastModified ( ) ) . compareTo ( org.ovirt.engine.ui.uicompat.DateTimeUtils.getTimeOfDay ( y.getLastModified ( ) ) ) ; }

Target:
public int compare ( org.ovirt.engine.core.common.businessentities.storage.DiskImage x , org.ovirt.engine.core.common.businessentities.storage.DiskImage y ) { return org.ovirt.engine.ui.uicompat.DateTimeUtils.getTimeOfDay ( x.getLastModified ( ) ) . compareTo ( org.ovirt.engine.ui.uicompat.DateTimeUtils.getTimeOfDay ( y.getLastModified ( ) ) ) ; }
Source:
public abstract java.util.SortedMap < java.lang.String , java.util.List < T > > getGroupedList ( java.util.List < T > acceptableValues ) ;

Target:
protected boolean ignoreChanging ( ) { return true ; }
Source:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand ) { this . onImportVmAsClone ( importModel ) ; }

Target:
public void setSetConsoleKeyCommand ( org.ovirt.engine.ui.uicommonweb.UICommand setConsoleKeyCommand ) { this . setConsoleKeyCommand = setConsoleKeyCommand ; }
Source:
public void setUp ( ) throws java.lang.Exception { setUpMockQueryParameters ( ) ; setUpSpyQuery ( ) ; for ( org.ovirt.engine.core.common.utils.MockConfigRule.MockConfigDescriptor < ? > mcd : getExtraConfigDescriptors ( ) ) { org.ovirt.engine.core.bll.AbstractQueryTest.mcr.mockConfigValue ( mcd ) ; } }

Target:
public void setUp ( ) throws java.lang.Exception { setUpMockQueryParameters ( ) ; setUpSpyQuery ( ) ; for ( org.ovirt.engine.core.utils.MockConfigRule.MockConfigDescriptor < ? > mcd : getExtraConfigDescriptors ( ) ) { org.ovirt.engine.core.bll.AbstractQueryTest.mcr.mockConfigValue ( mcd ) ; } }
Source:
public void notAllImagesAreSnapshots ( ) { disk1.setActive ( true ) ; disk2.setActive ( false ) ; org.junit.Assert.assertThat ( validator.imagesAreSnapshots ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_DISK_SNAPSHOTS_ACTIVE ) ) ; }

Target:
public void notAllImagesAreSnapshots ( ) { disk1.setActive ( true ) ; disk2.setActive ( false ) ; org.hamcrest.MatcherAssert.assertThat ( validator.imagesAreSnapshots ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_DISK_SNAPSHOTS_ACTIVE ) ) ; }
Source:
public java.lang.String getServerUniqueId ( ) { wrapper.RunSSHCommand ( VdsInstaller._getUniqueIdCommand ) ; return callback.serverUniqueId ; }

Target:
public java.lang.String getServerUniqueId ( ) { wrapper.executeCommand ( VdsInstaller._getUniqueIdCommand ) ; return callback.serverUniqueId ; }
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.network.Network , org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterListModel , org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterNetworkListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.dataCenterNetworkSubTabLabel ( ) , 1 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.network.Network , org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterListModel , org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterNetworkListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.datacenter.SubTabDataCenterNetworkPresenter.constants.dataCenterNetworkSubTabLabel ( ) , 1 , modelProvider ) ; }
Source:
public org.ovirt.vdsm.jsonrpc.client.reactors.stomp.impl.Message withCorrelationId ( ) { java.lang.String correlationId = org.slf4j.MDC.get ( org.ovirt.vdsm.jsonrpc.client.reactors.stomp.impl.Message.HEADER_CORRELATION_ID ) ; if ( org.apache.commons.lang.StringUtils.isNotBlank ( correlationId ) ) { withHeader ( org.ovirt.vdsm.jsonrpc.client.reactors.stomp.impl.Message.HEADER_CORRELATION_ID , correlationId ) ; } return this ; }

Target:
public org.ovirt.vdsm.jsonrpc.client.reactors.stomp.impl.Message withCorrelationId ( ) { java.lang.String correlationId = org.slf4j.MDC.get ( org.ovirt.vdsm.jsonrpc.client.reactors.stomp.impl.Message.HEADER_CORRELATION_ID ) ; if ( ! ( org.ovirt.vdsm.jsonrpc.client.utils.JsonUtils.isEmpty ( correlationId ) ) ) { withHeader ( org.ovirt.vdsm.jsonrpc.client.reactors.stomp.impl.Message.HEADER_CORRELATION_ID , correlationId ) ; } return this ; }
Source:
public void vnicProfileDoesNotExist ( ) { org.mockito.Mockito.when ( vnicProfileDao.get ( org.mockito.ArgumentMatchers.any ( ) ) ) . thenReturn ( null ) ; org.junit.Assert.assertThat ( validator.vnicProfileExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_VNIC_PROFILE_NOT_EXISTS ) ) ; }

Target:
public void vnicProfileNull ( ) { validator = new org.ovirt.engine.core.bll.validator.VnicProfileValidator ( null ) ; org.hamcrest.MatcherAssert.assertThat ( validator.vnicProfileIsSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_VNIC_PROFILE_NOT_EXISTS ) ) ; }
Source:
public void testGetUserIDWithNoUser ( ) { org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery query = new org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery ( new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ; org.junit.Assert.assertEquals ( "wrong guid" , null , query.getUserID ( ) ) ; }

Target:
public void testGetUserIDWithNoUser ( ) { org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery query = new org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery ( new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ; org.junit.Assert.assertNull ( "wrong guid" , query.getUserID ( ) ) ; }
Source:
protected boolean canDoAction ( ) { boolean retValue = super . canDoAction ( ) ; if ( ( org.ovirt.engine.core.bll.AddInternalJobCommand.getParameters ( ) . getActionType ( ) ) == null ) { addCanDoActionMessage ( EngineMessage.ACTION_TYPE_EMPTY_ACTION_TYPE ) ; retValue = false ; } return retValue ; }

Target:
protected boolean validate ( ) { boolean retValue = super . validate ( ) ; if ( ( org.ovirt.engine.core.bll.AddInternalJobCommand.getParameters ( ) . getActionType ( ) ) == null ) { addValidationMessage ( EngineMessage.ACTION_TYPE_EMPTY_ACTION_TYPE ) ; retValue = false ; } return retValue ; }
Source:
public org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity getEntity ( ) { return ( ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity ) ( super . getEntity ( ) ) ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.UICommand getPauseSessionCommand ( ) { return pauseSessionCommand ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > getSnapshotsDummiesForStorageAllocations ( ) { return org.ovirt.engine.core.bll.ImagesHandler.getSnapshotsDummiesForStorageAllocations ( getSourceImages ( ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > getSnapshotsDummiesForStorageAllocations ( ) { return org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.getSnapshotsDummiesForStorageAllocations ( getSourceImages ( ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object result ) { setGuestAgentData ( ( ( java.util.List < org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface > ) ( result ) ) ) ; org.ovirt.engine.ui.uicommonweb.models.vms.VmInterfaceListModel.super . SyncSearch ( VdcQueryType.GetVmInterfacesByVmId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( vm.getId ( ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object result ) { setGuestAgentData ( ( ( java.util.List < org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface > ) ( result ) ) ) ; org.ovirt.engine.ui.uicommonweb.models.vms.VmInterfaceListModel.super . syncSearch ( VdcQueryType.GetVmInterfacesByVmId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( vm.getId ( ) ) ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VmTemplate object ) { return java.lang.String.valueOf ( object.getnum_of_cpus ( ) ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VmTemplate object ) { return java.lang.String.valueOf ( object.getNumOfCpus ( ) ) ; }
Source:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { addCustomValue ( org.ovirt.engine.core.bll.VmSlaPolicyCommand.LOGABLE_FIELD_CPU_LIMIT , java.lang.String.valueOf ( org.ovirt.engine.core.bll.VmSlaPolicyCommand.getParameters ( ) . getCpuLimit ( ) ) ) ; return org.ovirt.engine.core.bll.VmSlaPolicyCommand.getSucceeded ( ) ? org.ovirt.engine.core.common.AuditLogType.VM_SLA_POLICY : org.ovirt.engine.core.common.AuditLogType.FAILED_VM_SLA_POLICY ; }

Target:
public java.lang.String eval ( org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage ) { return diskImage.getDiskAlias ( ) ; }
Source:
public void setDisks ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DiskImage > value ) { if ( ( disks ) != value ) { disks = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Disks" ) ) ; } }

Target:
public void setDisks ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DiskImage > value ) { if ( ( disks ) != value ) { disks = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Disks" ) ) ; } }
Source:
private void doStop ( ) { reset ( ) ; cancel ( ) ; com.google.gwt.event.logical.shared.ValueChangeEvent.fire ( this , getValue ( ) ) ; }

Target:
private void doStop ( ) { reset ( ) ; cancel ( ) ; com.google.gwt.event.logical.shared.ValueChangeEvent.fire ( this , getRefreshRate ( ) ) ; }
Source:
public void externalNetworkProvidedByChanged ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Network externalNetwork = mockExternalNetwork ( ) ; org.mockito.Mockito.when ( externalNetwork.getProvidedBy ( ) ) . thenReturn ( org.mockito.Mockito.mock ( org.ovirt.engine.core.common.businessentities.network.ProviderNetwork.class ) ) ; assertThatExternalNetworkDetailsUnchangedFails ( externalNetwork ) ; }

Target:
public void externalNetworkProvidedByChanged ( ) { org.ovirt.engine.core.common.businessentities.network.Network externalNetwork = createExternalNetwork ( ) ; externalNetwork.setProvidedBy ( createProviderNetwork ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ) ; assertThatExternalNetworkDetailsUnchangedFails ( externalNetwork ) ; }
Source:
public int read ( ) throws java.io.IOException { int ret = in.read ( ) ; if ( ret != ( - 1 ) ) { ( this . index ) ++ ; } return ret ; }

Target:
public int read ( ) throws java.io.IOException { int ret = in.read ( ) ; if ( ret != ( - 1 ) ) { ( _index ) ++ ; } return ret ; }
Source:
public void writeBoolean ( java.lang.String name , boolean value ) { writeElement ( name , java.lang.Boolean.toString ( value ) ) ; }

Target:
public static java.lang.String renderBoolean ( boolean value ) { return java.lang.Boolean.toString ( value ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.IscsiBond getIscsiBond ( ) { return getEntity ( org.ovirt.engine.core.common.businessentities.IscsiBond.class , VdcQueryType.GetIscsiBondById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( iscsiBondId ) , iscsiBondId.toString ( ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.IscsiBond getIscsiBond ( ) { return getEntity ( org.ovirt.engine.core.common.businessentities.IscsiBond.class , QueryType.GetIscsiBondById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( iscsiBondId ) , iscsiBondId.toString ( ) ) ; }
Source:
public void testGetStorageDomainByTypeForStoragePoolId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getStorageDomains ( new org.ovirt.engine.core.compat.Guid ( "6d849ebf-755f-4552-ad09-9a090cda105d" ) , StorageDomainType.Master ) ; assertGetResult ( result.get ( 0 ) ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getStorageDomainDao ( ) ; existingDomain = dao.get ( FixturesTool.STORAGE_DOAMIN_SCALE_SD5 ) ; }
Source:
public void testDifferentNotIpv6Strings ( ) { org.junit.Assert.assertFalse ( new org.ovirt.engine.core.utils.network.predicate.IpAddressPredicate ( org.ovirt.engine.core.utils.network.predicate.IpAddressPredicateTest.SOME_NON_IPV6_STRING ) . test ( "some other string" ) ) ; }

Target:
public void testDifferentNotIpv6Strings ( ) { org.junit.jupiter.api.Assertions.assertFalse ( new org.ovirt.engine.core.utils.network.predicate.IpAddressPredicate ( org.ovirt.engine.core.utils.network.predicate.IpAddressPredicateTest.SOME_NON_IPV6_STRING ) . test ( "some other string" ) ) ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml actionButtonText ( java.lang.String title ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml vmCountWithMigrations ( java.lang.String title , com.google.gwt.safehtml.shared.SafeHtml incomingMigrations , java.lang.String vmCountStr , com.google.gwt.safehtml.shared.SafeHtml outgoingMigrations ) ;
Source:
protected java.lang.Object getSessionUser ( java.lang.String sessionID ) { return org.ovirt.engine.core.bll.aaa.SessionDataContainer.getInstance ( ) . getUser ( sessionID , false ) ; }

Target:
protected java.lang.Object getSessionUser ( java.lang.String sessionID ) { return org.ovirt.engine.core.bll.aaa.ValidateSessionQuery.getSessionDataContainer ( ) . getUser ( sessionID , false ) ; }
Source:
protected java.lang.String composeMessage ( ) { return org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getMessages ( ) . newNameWithSuffixCannotContainBlankOrSpecialChars ( maxClonedNameLength ) ; }

Target:
protected void selectedItemsChanged ( ) { super . selectedItemsChanged ( ) ; updateActionsAvailability ( ) ; }
Source:
protected void itemsChanged ( ) { super . itemsChanged ( ) ; ResetIsEmpty ( ) ; UpdatePagingAvailability ( ) ; }

Target:
protected void itemsChanged ( ) { super . itemsChanged ( ) ; resetIsEmpty ( ) ; updatePagingAvailability ( ) ; }
Source:
public void checkNotValidEmptyStringAllowed ( ) { underTest = new org.ovirt.engine.ui.uicommonweb.validation.KeyValueFormatValidation ( mockConstantsManager , true ) ; org.ovirt.engine.ui.uicommonweb.validation.ValidationResult validationResult = underTest.validate ( org.ovirt.engine.ui.uicommonweb.validation.KeyValueFormatValidationTest.NOT_VALID ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.ui.uicommonweb.validation.KeyValueFormatValidationTest.failureValidationResultEmptyAllowed , validationResult ) ; }

Target:
public void checkNotValidEmptyStringAllowed ( ) { underTest = new org.ovirt.engine.ui.uicommonweb.validation.KeyValueFormatValidation ( mockConstantsManager , true ) ; org.ovirt.engine.ui.uicommonweb.validation.ValidationResult validationResult = underTest.validate ( org.ovirt.engine.ui.uicommonweb.validation.KeyValueFormatValidationTest.NOT_VALID ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.ui.uicommonweb.validation.KeyValueFormatValidationTest.failureValidationResultEmptyAllowed , validationResult ) ; }
Source:
public static java.lang.String renderVmNamesList ( java.util.List < java.lang.String > names ) { return names.stream ( ) . collect ( java.util.stream.Collectors.joining ( ", " ) ) ; }

Target:
public static java.lang.String renderVmNamesList ( java.util.List < java.lang.String > names ) { return java.lang.String.join ( ", " , names ) ; }
Source:
protected boolean canDoAction ( ) { org.ovirt.engine.core.common.businessentities.AuditLog event = org.ovirt.engine.core.bll.RemoveAuditLogByIdCommand.getAuditLogDao ( ) . get ( org.ovirt.engine.core.bll.RemoveAuditLogByIdCommand.getParameters ( ) . getAuditLogId ( ) ) ; if ( event == null ) { return failCanDoAction ( VdcBllMessages.AUDIT_LOG_CANNOT_REMOVE_AUDIT_LOG_NOT_EXIST ) ; } return true ; }

Target:
protected boolean canDoAction ( ) { org.ovirt.engine.core.common.businessentities.AuditLog event = org.ovirt.engine.core.bll.RemoveAuditLogByIdCommand.getAuditLogDao ( ) . get ( org.ovirt.engine.core.bll.RemoveAuditLogByIdCommand.getParameters ( ) . getAuditLogId ( ) ) ; if ( event == null ) { return failCanDoAction ( EngineMessage.AUDIT_LOG_CANNOT_REMOVE_AUDIT_LOG_NOT_EXIST ) ; } return true ; }
Source:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { addCanDoActionMessage ( VdcBllMessages.VDS_FENCING_OPERATION_FAILED ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__HOST ) ; addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__START ) ; return org.ovirt.engine.core.bll.StartVdsCommand.getSucceeded ( ) ? org.ovirt.engine.core.common.AuditLogType.USER_VDS_START : org.ovirt.engine.core.common.AuditLogType.USER_FAILED_VDS_START ; }

Target:
public org.ovirt.engine.core.common.AuditLogType getAuditLogTypeValue ( ) { addCanDoActionMessage ( VdcBllMessages.VDS_FENCE_OPERATION_FAILED ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__HOST ) ; addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__START ) ; return org.ovirt.engine.core.bll.StartVdsCommand.getSucceeded ( ) ? org.ovirt.engine.core.common.AuditLogType.USER_VDS_START : org.ovirt.engine.core.common.AuditLogType.USER_FAILED_VDS_START ; }
Source:
public void vnicCreated ( org.ovirt.engine.core.compat.Guid vmId ) { if ( ( getWindow ( ) ) != null ) { getWindow ( ) . stopProgress ( ) ; } cancel ( ) ; updateActionAvailability ( ) ; }

Target:
public void vnicCreated ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel unitVmModel ) { if ( ( getWindow ( ) ) != null ) { getWindow ( ) . stopProgress ( ) ; } cancel ( ) ; updateActionAvailability ( ) ; executeDiskModifications ( vmId , unitVmModel ) ; }
Source:
public static org.ovirt.engine.api.model.User map ( org.ovirt.engine.core.common.businessentities.DbUser entity , org.ovirt.engine.api.model.User template ) { org.ovirt.engine.api.model.User model = ( template != null ) ? template : new org.ovirt.engine.api.model.User ( ) ; model.setName ( entity.getFirstName ( ) ) ; model.setUserName ( ( ( ( entity.getLoginName ( ) ) + "@" ) + ( entity.getDomain ( ) ) ) ) ; model.setId ( entity.getId ( ) . toString ( ) ) ; model.setLastName ( entity.getLastName ( ) ) ; model.setEmail ( entity.getEmail ( ) ) ; model.setDepartment ( entity.getDepartment ( ) ) ; model.setDomainEntryId ( org.ovirt.engine.api.restapi.utils.DirectoryEntryIdUtils.encode ( entity.getExternalId ( ) ) ) ; if ( ( ( entity.getGroupNames ( ) ) != null ) && ( ( entity.getGroupNames ( ) . trim ( ) . length ( ) ) > 0 ) ) { model.setGroups ( new org.ovirt.engine.api.model.Groups ( ) ) ; for ( java.lang.String name : entity.getGroupNames ( ) . split ( "," ) ) { org.ovirt.engine.api.model.Group group = new org.ovirt.engine.api.model.Group ( ) ; group.setName ( name ) ; model.getGroups ( ) . getGroups ( ) . add ( group ) ; } } if ( ! ( org.apache.commons.lang.StringUtils.isEmpty ( entity.getDomain ( ) ) ) ) { org.ovirt.engine.api.model.Domain dom = new org.ovirt.engine.api.model.Domain ( ) ; dom.setId ( new org.ovirt.engine.core.compat.Guid ( entity.getDomain ( ) . getBytes ( ) , true ) . toString ( ) ) ; model.setDomain ( dom ) ; } return model ; }

Target:
public static org.ovirt.engine.api.model.User map ( org.ovirt.engine.core.common.businessentities.DbUser entity , org.ovirt.engine.api.model.User template ) { org.ovirt.engine.api.model.User model = ( template != null ) ? template : new org.ovirt.engine.api.model.User ( ) ; model.setName ( entity.getFirstName ( ) ) ; model.setUserName ( ( ( ( entity.getLoginName ( ) ) + "@" ) + ( entity.getDomain ( ) ) ) ) ; model.setId ( entity.getId ( ) . toString ( ) ) ; model.setLastName ( entity.getLastName ( ) ) ; model.setEmail ( entity.getEmail ( ) ) ; model.setDepartment ( entity.getDepartment ( ) ) ; model.setDomainEntryId ( org.ovirt.engine.api.restapi.utils.DirectoryEntryIdUtils.encode ( entity.getExternalId ( ) ) ) ; model.setNamespace ( entity.getNamespace ( ) ) ; if ( ( ( entity.getGroupNames ( ) ) != null ) && ( ( entity.getGroupNames ( ) . trim ( ) . length ( ) ) > 0 ) ) { model.setGroups ( new org.ovirt.engine.api.model.Groups ( ) ) ; for ( java.lang.String name : entity.getGroupNames ( ) . split ( "," ) ) { org.ovirt.engine.api.model.Group group = new org.ovirt.engine.api.model.Group ( ) ; group.setName ( name ) ; model.getGroups ( ) . getGroups ( ) . add ( group ) ; } } if ( ! ( org.apache.commons.lang.StringUtils.isEmpty ( entity.getDomain ( ) ) ) ) { org.ovirt.engine.api.model.Domain dom = new org.ovirt.engine.api.model.Domain ( ) ; dom.setId ( new org.ovirt.engine.core.compat.Guid ( entity.getDomain ( ) . getBytes ( ) , true ) . toString ( ) ) ; model.setDomain ( dom ) ; } return model ; }
Source:
public void OnSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel vmListModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel ) ( target ) ) ; vmListModel.PostMigrateGetUpHosts ( ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDS > ) ( returnValue ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel vmListModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel ) ( target ) ) ; vmListModel.postMigrateGetUpHosts ( ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDS > ) ( returnValue ) ) ) ; }
Source:
public void testEvalPositive ( ) throws java.lang.Exception { org.mockito.Mockito.when ( mockOtherIface.getName ( ) ) . thenReturn ( org.ovirt.engine.core.vdsbroker.vdsbroker.predicates.DisplayInterfaceEqualityPredicateTest.TEST_INTERFACE_NAME ) ; org.mockito.Mockito.when ( mockOtherIface.getAddress ( ) ) . thenReturn ( org.ovirt.engine.core.vdsbroker.vdsbroker.predicates.DisplayInterfaceEqualityPredicateTest.TEST_INTERFACE_ADDRESS ) ; junit.framework.Assert.assertTrue ( underTest.eval ( mockOtherIface ) ) ; }

Target:
public void testEvalPositive ( ) throws java.lang.Exception { org.mockito.Mockito.when ( mockOtherIface.getName ( ) ) . thenReturn ( org.ovirt.engine.core.vdsbroker.vdsbroker.predicates.DisplayInterfaceEqualityPredicateTest.TEST_INTERFACE_NAME ) ; org.mockito.Mockito.when ( mockOtherIface.getAddress ( ) ) . thenReturn ( org.ovirt.engine.core.vdsbroker.vdsbroker.predicates.DisplayInterfaceEqualityPredicateTest.TEST_INTERFACE_ADDRESS ) ; org.junit.Assert.assertTrue ( underTest.eval ( mockOtherIface ) ) ; }
Source:
public void canDoActionLongName ( ) { java.lang.String longName = org.apache.commons.lang.StringUtils.leftPad ( "name" , ( ( org.ovirt.engine.core.bll.storage.domain.UpdateStorageDomainCommandTest.STORAGE_DOMAIN_NAME_LENGTH_LIMIT ) * 2 ) , 'X' ) ; sd.setStorageName ( longName ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_NAME_LENGTH_IS_TOO_LONG ) ; }

Target:
public void validateLongName ( ) { java.lang.String longName = org.apache.commons.lang.StringUtils.leftPad ( "name" , ( ( org.ovirt.engine.core.bll.storage.domain.UpdateStorageDomainCommandTest.STORAGE_DOMAIN_NAME_LENGTH_LIMIT ) * 2 ) , 'X' ) ; sd.setStorageName ( longName ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_NAME_LENGTH_IS_TOO_LONG ) ; }
Source:
public void getManagementNetworkName ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { getConfigFromCache ( new org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ( org.ovirt.engine.core.common.queries.ConfigurationValues.ManagementNetwork , getDefaultConfigurationVersion ( ) ) , aQuery ) ; }

Target:
public java.lang.Boolean Convert ( java.lang.Object returnValue , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { return ( ( java.lang.Boolean ) ( returnValue ) ) ; }
Source:
public org.ovirt.engine.api.model.GlusterVolumes list ( ) { java.lang.String constraint = org.ovirt.engine.api.common.util.QueryHelper.getConstraint ( httpHeaders , uriInfo , ( "cluster = " + ( parent.get ( ) . getName ( ) ) ) , org.ovirt.engine.api.model.GlusterVolume.class ) ; return mapCollection ( getBackendCollection ( SearchType.GlusterVolume , constraint ) ) ; }

Target:
public org.ovirt.engine.api.model.GlusterVolumes list ( ) { java.lang.String constraint = org.ovirt.engine.api.restapi.util.QueryHelper.getConstraint ( httpHeaders , uriInfo , ( "cluster = " + ( parent.get ( ) . getName ( ) ) ) , org.ovirt.engine.api.model.GlusterVolume.class ) ; return mapCollection ( getBackendCollection ( SearchType.GlusterVolume , constraint ) ) ; }
Source:
public void testPermissionSubjectOnNewImage ( ) { org.junit.Assert.assertEquals ( transferImageCommand.getPermissionCheckSubjects ( ) . get ( 0 ) , new org.ovirt.engine.core.bll.utils.PermissionSubject ( transferImageCommand.getParameters ( ) . getImageId ( ) , org.ovirt.engine.core.common.VdcObjectType.Storage , org.ovirt.engine.core.common.businessentities.ActionGroup.CREATE_DISK ) ) ; }

Target:
public void testPermissionSubjectOnNewImage ( ) { org.junit.jupiter.api.Assertions.assertEquals ( transferImageCommand.getPermissionCheckSubjects ( ) . get ( 0 ) , new org.ovirt.engine.core.bll.utils.PermissionSubject ( transferImageCommand.getParameters ( ) . getImageId ( ) , org.ovirt.engine.core.common.VdcObjectType.Storage , org.ovirt.engine.core.common.businessentities.ActionGroup.CREATE_DISK ) ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VDS p ) { return ( p.getvm_count ( ) ) > ( vmCountTemp * ( p.getcpu_cores ( ) ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VDS p ) { return ( p.getvm_count ( ) ) > ( vmCountTemp * ( org.ovirt.engine.core.bll.VdsSelector.getEffectiveCpuCores ( p ) ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.Provider > getAllWithQuery ( java.lang.String query ) { return jdbcTemplate.query ( query , org.ovirt.engine.core.dao.provider.ProviderDaoDbFacadeImpl.ProviderRowMapper.INSTANCE ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.Provider > getAllByType ( org.ovirt.engine.core.common.businessentities.ProviderType providerType ) { return getCallsHandler ( ) . executeReadList ( "GetAllFromProvidersByType" , org.ovirt.engine.core.dao.provider.ProviderDaoDbFacadeImpl.ProviderRowMapper.INSTANCE , getCustomMapSqlParameterSource ( ) . addValue ( "provider_type" , providerType.toString ( ) ) ) ; }
Source:
public javax.ws.rs.core.Response activate ( org.ovirt.engine.api.model.Action action ) { org.ovirt.engine.core.common.action.HotPlugUnplugVmNicParameters params = new org.ovirt.engine.core.common.action.HotPlugUnplugVmNicParameters ( guid , org.ovirt.engine.core.common.action.PlugAction.PLUG ) ; org.ovirt.engine.api.restapi.resource.BackendNicsResource parent = ( ( org.ovirt.engine.api.restapi.resource.BackendNicsResource ) ( collection ) ) ; params.setVmId ( parent.parentId ) ; return doAction ( VdcActionType.HotPlugUnplugVmNic , params , action ) ; }

Target:
public javax.ws.rs.core.Response activate ( org.ovirt.engine.api.model.Action action ) { org.ovirt.engine.core.common.action.PlugUnplugVmNicParameters params = new org.ovirt.engine.core.common.action.PlugUnplugVmNicParameters ( guid , org.ovirt.engine.core.common.action.PlugAction.PLUG ) ; org.ovirt.engine.api.restapi.resource.BackendNicsResource parent = ( ( org.ovirt.engine.api.restapi.resource.BackendNicsResource ) ( collection ) ) ; params.setVmId ( parent.parentId ) ; return doAction ( VdcActionType.PlugUnplugVmNic , params , action ) ; }
Source:
public void setMasterDomain ( java.lang.String spUuid , java.lang.String masterSdUuid ) { org.ovirt.vdsmfake.domain.VdsmManager.getInstance ( ) . setMasterDomain ( spUuid , masterSdUuid ) ; }

Target:
public void setMasterDomain ( java.lang.String spUuid , java.lang.String masterSdUuid ) { vdsmManager.setMasterDomain ( spUuid , masterSdUuid ) ; }
Source:
protected int getPort ( ) { return urlobj.getPort ( ) ; }

Target:
protected int getPort ( ) { return ( urlobj.getPort ( ) ) == ( - 1 ) ? urlobj.getDefaultPort ( ) : urlobj.getPort ( ) ; }
Source:
org.ovirt.engine.core.vdsbroker.irsbroker.OneUuidReturnForXmlRpc createVG ( java.lang.String sdUUID , java.lang.String [ ] deviceList ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.OneMapReturnForXmlRpc get_image_transfer_session_stats ( java.lang.String ticketId ) ;
Source:
public void defaultClusterInLocalFs ( ) { prepareManagementNetworkMocks ( ) ; org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.mcr.mockConfigValue ( ConfigValues.AutoRegistrationDefaultVdsGroupID , org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.DEFAULT_VDS_GROUP_ID ) ; createCommandWithDefaultVdsGroup ( ) ; oldGroupIsDetachedDefault ( ) ; storagePoolIsLocalFS ( ) ; setupCpu ( ) ; allQueriesForVms ( ) ; architectureIsUpdatable ( ) ; canDoActionFailedWithReason ( VdcBllMessages.DEFAULT_CLUSTER_CANNOT_BE_ON_LOCALFS ) ; }

Target:
public void defaultClusterInLocalFs ( ) { prepareManagementNetworkMocks ( ) ; mcr.mockConfigValue ( ConfigValues.AutoRegistrationDefaultVdsGroupID , org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.DEFAULT_VDS_GROUP_ID ) ; createCommandWithDefaultVdsGroup ( ) ; oldGroupIsDetachedDefault ( ) ; storagePoolIsLocalFS ( ) ; setupCpu ( ) ; allQueriesForVms ( ) ; architectureIsUpdatable ( ) ; canDoActionFailedWithReason ( VdcBllMessages.DEFAULT_CLUSTER_CANNOT_BE_ON_LOCALFS ) ; }