auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private org.ovirt.engine.core.bll.ValidationResult attachmentsDontReferenceSameNetworkDuplicately ( java.util.Collection < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > attachments ) { return new org.ovirt.engine.core.bll.validator.NetworkAttachmentsValidator ( attachments , networkBusinessEntityMap ) . verifyUserAttachmentsDoesNotReferenceSameNetworkDuplicately ( ) ; }

Target:
private org.ovirt.engine.core.bll.ValidationResult validateNetworkExclusiveOnNics ( java.util.Collection < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > attachmentsToConfigure ) { org.ovirt.engine.core.bll.validator.NetworkAttachmentsValidator validator = new org.ovirt.engine.core.bll.validator.NetworkAttachmentsValidator ( attachmentsToConfigure , networkBusinessEntityMap , networkExclusivenessValidator ) ; return validator.validateNetworkExclusiveOnNics ( ) ; }
Source:
void clearSelection ( ) { if ( ( selectionModel.getSelectedObject ( ) ) != null ) { selectionModel.setSelected ( selectionModel.getSelectedObject ( ) , false ) ; } }

Target:
void clearSelection ( ) { if ( ( ( selectionModel.getSelectedObject ( ) ) != null ) && ( ! ( getModel ( ) . getIsBookmarkInitiated ( ) ) ) ) { selectionModel.setSelected ( selectionModel.getSelectedObject ( ) , false ) ; } }
Source:
public void shouldSetNumaPinning ( ) { org.junit.Assert.assertTrue ( org.ovirt.engine.core.bll.numa.vm.NumaValidator.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) . isValid ( ) ) ; }

Target:
public void shouldHandleNoNumaNodes ( ) { vm.setvNumaNodeList ( null ) ; org.junit.Assert.assertTrue ( underTest.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) . isValid ( ) ) ; }
Source:
java.lang.String numberValidationNumberGreaterInvalidReason ( java.lang.String prefixMsg , java.lang.String min ) ;

Target:
java.lang.String numberValidationNumberBetweenInvalidReason ( java.lang.String prefixMsg , java.lang.String min , java.lang.String max ) ;
Source:
public void linkedWhenUnlinkingSupported ( ) throws java.lang.Exception { unlinkingTest ( ValidationResult.VALID , true , true ) ; }

Target:
public void unlinkedWhenUnlinkingSupported ( ) throws java.lang.Exception { unlinkingTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , true , false ) ; }
Source:
public org.ovirt.engine.api.resource.DevicesResource < org.ovirt.engine.api.model.Cdrom , org.ovirt.engine.api.model.Cdroms > getCdRomsResource ( ) ;

Target:
public org.ovirt.engine.api.resource.VmCdromsResource getCdromsResource ( ) ;
Source:
public void testHostKey ( ) throws java.lang.Exception { org.junit.Assume.assumeNotNull ( TestCommon.sshd ) ; client.connect ( ) ; assertEquals ( TestCommon.sshd.getKey ( ) , client.getHostKey ( ) ) ; }

Target:
public void testHostKey ( ) throws java.lang.Exception { org.junit.Assume.assumeNotNull ( TestCommon.sshd ) ; client.connect ( ) ; org.junit.Assert.assertEquals ( TestCommon.sshd.getKey ( ) , client.getHostKey ( ) ) ; }
Source:
public void diskImagesNotIllegalBothOK ( ) { org.junit.Assert.assertThat ( "Neither disk is illegal" , validator.diskImagesNotIllegal ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void diskImagesNotIllegalBothOK ( ) { org.hamcrest.MatcherAssert.assertThat ( "Neither disk is illegal" , validator.diskImagesNotIllegal ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.Quota > searchQuota ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Quota > quotaList = genericSearch ( org.ovirt.engine.core.bll.SearchQuery.getDbFacade ( ) . getQuotaDao ( ) , true ) ; org.ovirt.engine.core.bll.quota.QuotaManager.getInstance ( ) . updateUsage ( quotaList ) ; return quotaList ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.Quota > searchQuota ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Quota > quotaList = genericSearch ( org.ovirt.engine.core.bll.SearchQuery.getDbFacade ( ) . getQuotaDao ( ) , true ) ; getQuotaManager ( ) . updateUsage ( quotaList ) ; return quotaList ; }
Source:
public void storageDomainWithIdNullPool ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.TestAuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.TestAuditLogableBase ( ) ; b.setStorageDomainId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; b.setStoragePoolId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID2 ) ; final org.ovirt.engine.core.common.businessentities.StorageDomain s = b.getStorageDomain ( ) ; org.junit.Assert.assertNull ( s ) ; }

Target:
public void storageDomainWithNullId ( ) { b.setStorageDomainId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID2 ) ; final org.ovirt.engine.core.common.businessentities.StorageDomain s = b.getStorageDomain ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.STORAGE_DOMAIN , s ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.LunDisk disk = ( ( org.ovirt.engine.core.common.businessentities.LunDisk ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ) ) ; return disk.getLun ( ) . getSerial ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.storage.LunDisk disk = ( ( org.ovirt.engine.core.common.businessentities.storage.LunDisk ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ) ) ; return disk.getLun ( ) . getVendorId ( ) ; }
Source:
private boolean findDefaultManagementNetwork ( ) { managementNetwork = defaultManagementNetworkFinder.findDefaultManagementNetwork ( org.ovirt.engine.core.bll.AddVdsGroupCommand.getVdsGroup ( ) . getStoragePoolId ( ) ) ; if ( ( getManagementNetwork ( ) ) == null ) { addCanDoActionMessage ( EngineMessage.ACTION_TYPE_FAILED_DEFAULT_MANAGEMENT_NETWORK_NOT_FOUND ) ; return false ; } return true ; }

Target:
private boolean findDefaultManagementNetwork ( ) { setManagementNetwork ( defaultManagementNetworkFinder.findDefaultManagementNetwork ( org.ovirt.engine.core.bll.AddVdsGroupCommand.getVdsGroup ( ) . getStoragePoolId ( ) ) ) ; if ( ( getManagementNetwork ( ) ) == null ) { addCanDoActionMessage ( EngineMessage.ACTION_TYPE_FAILED_DEFAULT_MANAGEMENT_NETWORK_NOT_FOUND ) ; return false ; } return true ; }
Source:
protected java.lang.Object [ ] getRawValue ( org.ovirt.engine.core.common.businessentities.Permissions object ) { return new java.lang.Object [ ] { object.getObjectType ( ) , object.getObjectName ( ) , getDetailModel ( ) . getEntity ( ) , object.getObjectId ( ) } ; }

Target:
protected java.lang.Object [ ] getRawValue ( org.ovirt.engine.core.common.businessentities.Permission object ) { return new java.lang.Object [ ] { object.getObjectType ( ) , object.getObjectName ( ) , getDetailModel ( ) . getEntity ( ) , object.getObjectId ( ) } ; }
Source:
protected java.lang.String getText ( org.ovirt.engine.core.common.utils.Pair < java.lang.Boolean , org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSessionConfiguration > entity ) { return ( entity.getSecond ( ) . getDescription ( ) ) == null ? constants.notAvailableLabel ( ) : entity.getSecond ( ) . getDescription ( ) ; }

Target:
protected java.lang.String getText ( org.ovirt.engine.core.common.utils.Pair < java.lang.Boolean , org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSessionConfiguration > entity ) { return ( entity.getSecond ( ) . getDescription ( ) ) == null ? org.ovirt.engine.ui.webadmin.section.main.view.popup.gluster.GlusterVolumeGeoReplicationSessionConfigPopupView.constants.notAvailableLabel ( ) : entity.getSecond ( ) . getDescription ( ) ; }
Source:
public void verifyLastDomainForMemory ( ) { verifyDomainForMemory ( java.util.Arrays.asList ( invalidStorageDomain1 , invalidStorageDomain2 , validStorageDomain ) ) ; }

Target:
public void filterAllDomainsExceptForTheThirdOne ( ) { filterAllStorageDomainsExceptOne ( java.util.Arrays.asList ( invalidStorageDomain1 , invalidStorageDomain2 , validStorageDomain ) , validStorageDomain ) ; }
Source:
public java.lang.String render ( java.lang.Integer mtu ) { return mtu == 0 ? messages.defaultMtu ( org.ovirt.engine.ui.webadmin.widget.renderer.MtuRenderer.defaultMtu ) : mtu.toString ( ) ; }

Target:
public java.lang.String render ( java.lang.Integer mtu ) { return mtu == 0 ? org.ovirt.engine.ui.webadmin.widget.renderer.MtuRenderer.messages.defaultMtu ( org.ovirt.engine.ui.webadmin.widget.renderer.MtuRenderer.defaultMtu ) : mtu.toString ( ) ; }
Source:
public void setCinderDisks ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.CinderDisk > cinderDisks ) { this . cinderDisks = cinderDisks ; }

Target:
public void setCinderDisksToRemove ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.CinderDisk > cinderDisksToRemove ) { this . cinderDisksToRemove = cinderDisksToRemove ; }
Source:
public void shouldCreateLessNumaNodesAsVirtualCores ( ) { vm.setNumOfSockets ( 1 ) ; vm.setCpuPerSocket ( 3 ) ; assertTrue ( org.ovirt.engine.core.bll.numa.vm.NumaValidator.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) . isValid ( ) ) ; }

Target:
public void shouldCreateAsMuchNumaNodesAsVirtualCores ( ) { vm.setNumOfSockets ( 1 ) ; vm.setCpuPerSocket ( 2 ) ; org.junit.Assert.assertTrue ( org.ovirt.engine.core.bll.numa.vm.NumaValidator.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) . isValid ( ) ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetAuditLogByIdQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.GetAuditLogByIdQuery.getDbFacade ( ) . getAuditLogDao ( ) . get ( org.ovirt.engine.core.bll.GetAuditLogByIdQuery.getParameters ( ) . getId ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetAuditLogByIdQuery.getQueryReturnValue ( ) . setReturnValue ( auditLogDao.get ( org.ovirt.engine.core.bll.GetAuditLogByIdQuery.getParameters ( ) . getId ( ) ) ) ; }
Source:
public void testGetFilteredWithNoPermissions ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup result = dao.get ( existingVdsGroup.getId ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetFilteredWithNoPermissions ( ) { org.ovirt.engine.core.common.businessentities.Cluster result = dao.get ( existingCluster.getId ( ) , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNull ( result ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getuser_id ( ) { return this . id ; }

Target:
public void setRole ( java.lang.String value ) { role = value ; }
Source:
private boolean isConnectionException ( java.sql.SQLException e ) { return ( e.getCause ( ) ) instanceof java.net.ConnectException ; }

Target:
private boolean isConnectionException ( java.lang.Throwable e ) { return ( e.getCause ( ) ) instanceof java.net.ConnectException ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc registerSecrets ( java.util.Map < java.lang.String , java.lang.String > [ ] libvirtSecrets ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc registerSecrets ( java.util.Map < java.lang.String , java.lang.String > [ ] libvirtSecrets , boolean clearUnusedSecrets ) ;
Source:
protected boolean isImageIsNotLocked ( ) { return org.ovirt.engine.core.bll.ImagesHandler.checkImagesLocked ( getVm ( ) , org.ovirt.engine.core.bll.lsm.LiveMigrateDiskCommand.getReturnValue ( ) . getCanDoActionMessages ( ) ) ; }

Target:
protected boolean isImageNotLocked ( ) { return org.ovirt.engine.core.bll.ImagesHandler.checkImagesLocked ( getVm ( ) , org.ovirt.engine.core.bll.lsm.LiveMigrateDiskCommand.getReturnValue ( ) . getCanDoActionMessages ( ) ) ; }
Source:
public javax.enterprise.inject.Instance < org.ovirt.engine.core.dao.DAO > daos ( ) { java.util.Map < java.lang.String , org.ovirt.engine.core.dao.DAO > daoMap = beanFactory.getBeansOfType ( org.ovirt.engine.core.dao.DAO.class ) ; javax.enterprise.inject.Instance < org.ovirt.engine.core.dao.DAO > daos = new org.ovirt.engine.core.CdiIntegration.InstanceImpl ( daoMap.values ( ) ) ; return daos ; }

Target:
public javax.enterprise.inject.Instance < org.ovirt.engine.core.dao.Dao > daos ( ) { java.util.Map < java.lang.String , org.ovirt.engine.core.dao.Dao > daoMap = beanFactory.getBeansOfType ( org.ovirt.engine.core.dao.Dao.class ) ; javax.enterprise.inject.Instance < org.ovirt.engine.core.dao.Dao > daos = new org.ovirt.engine.core.CdiIntegration.InstanceImpl ( daoMap.values ( ) ) ; return daos ; }
Source:
public org.ovirt.engine.core.compat.Guid createTask ( 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 super . createTask ( taskId , asyncTaskCreationInfo , parentCommand , entityType , entityIds ) ; }

Target:
public org.ovirt.engine.core.bll.tasks.interfaces.CommandCallback getCallback ( ) { return new org.ovirt.engine.core.bll.SerialChildCommandsExecutionCallback ( ) ; }
Source:
public void testIsNetworkExclusiveValid1 ( ) { org.junit.Assert.assertTrue ( underTest.isNetworkExclusive ( java.util.Arrays.asList ( org.ovirt.engine.core.bll.validator.network.NetworkType.VLAN , org.ovirt.engine.core.bll.validator.network.NetworkType.VLAN , org.ovirt.engine.core.bll.validator.network.NetworkType.VM , org.ovirt.engine.core.bll.validator.network.NetworkType.VLAN ) ) ) ; }

Target:
public void testIsNetworkExclusiveValid1 ( ) { org.junit.jupiter.api.Assertions.assertTrue ( underTest.isNetworkExclusive ( java.util.Arrays.asList ( org.ovirt.engine.core.bll.validator.network.NetworkType.VLAN , org.ovirt.engine.core.bll.validator.network.NetworkType.VLAN , org.ovirt.engine.core.bll.validator.network.NetworkType.VM , org.ovirt.engine.core.bll.validator.network.NetworkType.VLAN ) ) ) ; }
Source:
public static java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > getStoragePools ( org.ovirt.engine.core.compat.Guid storageDomainId , org.ovirt.engine.api.restapi.resource.AbstractBackendResource parent ) { return parent.getEntity ( java.util.List.class , VdcQueryType.GetStoragePoolsByStorageDomainId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( storageDomainId ) , "Datacenters" , true ) ; }

Target:
public static java.util.List < org.ovirt.engine.core.common.businessentities.StoragePool > getStoragePools ( org.ovirt.engine.core.compat.Guid storageDomainId , org.ovirt.engine.api.restapi.resource.AbstractBackendResource parent ) { return parent.getEntity ( java.util.List.class , QueryType.GetStoragePoolsByStorageDomainId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( storageDomainId ) , "Datacenters" , true ) ; }
Source:
public void testIsUpdateable ( ) { org.ovirt.engine.core.utils.ObjectIdentityChecker oic = new org.ovirt.engine.core.utils.ObjectIdentityChecker ( org.ovirt.engine.core.utils.Jedi.class ) ; assertFalse ( "Should be false by default" , oic.IsFieldUpdatable ( "name" ) ) ; oic.AddPermittedField ( "name" ) ; assertTrue ( "Should be true now" , oic.IsFieldUpdatable ( "name" ) ) ; }

Target:
public void testIsUpdateable ( ) { org.ovirt.engine.core.utils.ObjectIdentityChecker oic = new org.ovirt.engine.core.utils.ObjectIdentityChecker ( org.ovirt.engine.core.utils.Jedi.class ) ; assertFalse ( "Should be false by default" , oic.IsFieldUpdatable ( "name" ) ) ; oic.AddPermittedFields ( "name" ) ; assertTrue ( "Should be true now" , oic.IsFieldUpdatable ( "name" ) ) ; }
Source:
public void debug ( java.lang.Object arg0 ) { if ( isDebugEnabled ( ) ) { log.debug ( addPrefixToLogMessage ( arg0 ) ) ; } }

Target:
public void debug ( java.lang.Object msg ) { if ( isDebugEnabled ( ) ) { log.debug ( addPrefixToLogMessage ( msg ) ) ; } }
Source:
public void setContentWidgetStyleName ( java.lang.String contentWidgetStyleName ) { decorated.setStyleName ( contentWidgetStyleName ) ; }

Target:
public void setLabelStyleName ( java.lang.String labelStyleName ) { decorated.setStyleName ( labelStyleName ) ; }
Source:
public void setPort ( int value ) { this . mVdsStatic.setPort ( value ) ; }

Target:
public void setSshPort ( int value ) { vdsStatic.setSshPort ( value ) ; }
Source:
void initListBoxEditors ( ) { vncKeyboardLayoutEditor = new org.ovirt.engine.ui.common.widget.editor.ListModelListBoxEditor ( new org.ovirt.engine.ui.common.widget.editor.VncKeyMapRenderer ( ) ) ; }

Target:
public java.lang.String getDisplayStringNullSafe ( java.lang.String data ) { return typeAheadNameTemplateNullSafe ( data ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetDeviceCustomPropertiesQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.utils.customprop.DevicePropertiesUtils.getInstance ( ) . getRawDeviceProperties ( org.ovirt.engine.core.bll.GetDeviceCustomPropertiesQuery.getParameters ( ) . getVersion ( ) , org.ovirt.engine.core.bll.GetDeviceCustomPropertiesQuery.getParameters ( ) . getDeviceType ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetDeviceCustomPropertiesQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.utils.customprop.DevicePropertiesUtils.getInstance ( ) . getDeviceProperties ( org.ovirt.engine.core.bll.GetDeviceCustomPropertiesQuery.getParameters ( ) . getVersion ( ) , org.ovirt.engine.core.bll.GetDeviceCustomPropertiesQuery.getParameters ( ) . getDeviceType ( ) ) ) ; }
Source:
public void testValidateSucceedReadOnlyWithInterface ( ) { org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( command ) ; org.mockito.Mockito.verify ( diskValidator ) . isReadOnlyPropertyCompatibleWithInterface ( parameters.getDiskVmElement ( ) ) ; }

Target:
public void testValidateSucceedReadOnlyWithInterface ( ) { org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( command ) ; org.mockito.Mockito.verify ( diskVmElementValidator ) . isReadOnlyPropertyCompatibleWithInterface ( ) ; }
Source:
public void successfulStop ( ) { org.ovirt.engine.core.common.businessentities.pm.FenceOperationResult result = new org.ovirt.engine.core.common.businessentities.pm.FenceOperationResult ( FenceActionType.STOP , 0 , null , null , "initiated" ) ; org.junit.Assert.assertEquals ( Status.SUCCESS , result.getStatus ( ) ) ; org.junit.Assert.assertEquals ( PowerStatus.UNKNOWN , result.getPowerStatus ( ) ) ; }

Target:
public void successfulStop ( ) { org.ovirt.engine.core.common.businessentities.pm.FenceOperationResult result = new org.ovirt.engine.core.common.businessentities.pm.FenceOperationResult ( FenceActionType.STOP , 0 , null , null , "initiated" ) ; org.junit.jupiter.api.Assertions.assertEquals ( Status.SUCCESS , result.getStatus ( ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( PowerStatus.UNKNOWN , result.getPowerStatus ( ) ) ; }
Source:
public final java.lang.String guideUrl ( ) { return formatString ( org.ovirt.engine.ui.common.utils.DynamicMessages.DynamicMessageKey.GUIDE_URL , getCurrentLocaleAsString ( ) ) ; }

Target:
public final java.lang.String guideUrl ( ) { return formatString ( org.ovirt.engine.ui.common.utils.BaseDynamicMessages.DynamicMessageKey.GUIDE_URL , getCurrentLocaleAsString ( ) ) ; }
Source:
public void testGetWithInvalidId ( ) { org.ovirt.engine.core.common.businessentities.VM result = dao.get ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetWithInvalidId ( ) { org.ovirt.engine.core.common.businessentities.VM result = dao.get ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertNull ( result ) ; }
Source:
private void assertVmGuestAgentInterfaceForVm ( java.util.List < org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface > interfaces ) { org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.VmGuestAgentInterfaceDaoTest.VM_GUEST_AGENT_INTERFACES_SIZE , interfaces.size ( ) ) ; for ( org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface vmGuestAgentInterface : interfaces ) { org.junit.Assert.assertEquals ( FixturesTool.VM_RHEL5_POOL_50 , vmGuestAgentInterface.getVmId ( ) ) ; } }

Target:
private void assertVmGuestAgentInterfaceForVm ( java.util.List < org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface > interfaces ) { org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.core.dao.VmGuestAgentInterfaceDaoTest.VM_GUEST_AGENT_INTERFACES_SIZE , interfaces.size ( ) ) ; for ( org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface vmGuestAgentInterface : interfaces ) { org.junit.jupiter.api.Assertions.assertEquals ( FixturesTool.VM_RHEL5_POOL_50 , vmGuestAgentInterface.getVmId ( ) ) ; } }
Source:
public void setConnectionCheckInterval ( int connectionCheckInterval ) { this . connectionCheckInterval = connectionCheckInterval ; }

Target:
public static void setInstance ( org.ovirt.engine.core.dal.dbbroker.DbFacade dbFacade ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.instance = dbFacade ; }
Source:
public void testExecuteQuery ( ) { mockDAOForQuery ( ) ; getQuery ( ) . executeQueryCommand ( ) ; org.junit.Assert.assertEquals ( returnedPermissions , getQuery ( ) . getQueryReturnValue ( ) . getReturnValue ( ) ) ; }

Target:
public void testExecuteQuery ( ) { mockDaoForQuery ( ) ; getQuery ( ) . executeQueryCommand ( ) ; org.junit.Assert.assertEquals ( returnedPermissions , getQuery ( ) . getQueryReturnValue ( ) . getReturnValue ( ) ) ; }
Source:
public void updateDataCenter ( org.ovirt.vdsmfake.domain.DataCenter dataCenter ) { org.ovirt.vdsmfake.domain.VdsmManager.getInstance ( ) . updateDataCenter ( dataCenter ) ; }

Target:
public void updateDataCenter ( org.ovirt.vdsmfake.domain.DataCenter dataCenter ) { vdsmManager.updateDataCenter ( dataCenter ) ; }
Source:
public final boolean setUser ( org.ovirt.engine.core.common.businessentities.DbUser user ) { return setData ( org.ovirt.engine.core.bll.session.SessionDataContainer.USER_PARAMETER_NAME , user ) ; }

Target:
public org.ovirt.engine.core.extensions.mgr.ExtensionProxy getAuthn ( java.lang.String sessionId ) { return ( ( org.ovirt.engine.core.extensions.mgr.ExtensionProxy ) ( getData ( sessionId , org.ovirt.engine.core.bll.session.SessionDataContainer.AUTHN_PARAMETER_NAME , false ) ) ) ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml vmCountWithMigrating ( java.lang.String vmCountStr , java.lang.String vmMigratingStr , java.lang.String title , com.google.gwt.safehtml.shared.SafeHtml image ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml vmCountInOutMigrations ( java.lang.String prefix , java.lang.String vmCountStr , com.google.gwt.safehtml.shared.SafeHtml image , java.lang.String postfix ) ;
Source:
public void testGet ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpEntityQueryExpectations ( 1 ) ; control.replay ( ) ; org.ovirt.engine.api.model.WatchDog watchDog = resource.get ( ) ; verifyModel ( watchDog , 0 ) ; }

Target:
public void testGet ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpEntityQueryExpectations ( 1 ) ; control.replay ( ) ; org.ovirt.engine.api.model.Watchdog watchDog = resource.get ( ) ; verifyModel ( watchDog , 0 ) ; }
Source:
org.ovirt.engine.ui.common.widget.table.cell.StatusCompositeCellWithElementId.ContentTemplate getTemplate ( ) { if ( ( template ) == null ) { template = com.google.gwt.core.client.GWT.create ( org.ovirt.engine.ui.common.widget.table.cell.StatusCompositeCellWithElementId.ContentTemplate.class ) ; } return template ; }

Target:
org.ovirt.engine.ui.common.widget.table.cell.StatusCompositeCell.ContentTemplate getTemplate ( ) { if ( ( template ) == null ) { template = com.google.gwt.core.client.GWT.create ( org.ovirt.engine.ui.common.widget.table.cell.StatusCompositeCell.ContentTemplate.class ) ; } return template ; }
Source:
public void discardIsFalseWhenDiscardAfterDeleteIsTrueAndDomainDoesNotSupportDiscard ( ) { assertDiscardValue ( true , false , false ) ; assertDiscardValue ( true , null , false ) ; }

Target:
public void discardIsTrueWhenDiscardAfterDeleteIsTrueAndDomainSupportsDiscard ( ) { assertDiscardValue ( true , true , true , false ) ; }
Source:
private org.ovirt.engine.core.vdsbroker.VmsMonitoring getVmsMonitoring ( org.ovirt.engine.core.vdsbroker.VmsListFetcher fetcher , long fetchTime ) { return new org.ovirt.engine.core.vdsbroker.VmsMonitoring ( manager , fetcher.getChangedVms ( ) , fetcher.getVmsWithChangedDevices ( ) , auditLogDirector , fetchTime , getRefreshStatistics ( ) ) ; }

Target:
private org.ovirt.engine.core.vdsbroker.VmsMonitoring getVmsMonitoring ( org.ovirt.engine.core.vdsbroker.VmsListFetcher fetcher , long fetchTime ) { return new org.ovirt.engine.core.vdsbroker.VmsMonitoring ( vdsManager , fetcher.getChangedVms ( ) , fetcher.getVmsWithChangedDevices ( ) , auditLogDirector , fetchTime , getRefreshStatistics ( ) ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > glusterGeoRepMountBrokerSetup ( java.lang.String remoteUserName , java.lang.String remoteGroupName , java.lang.String remoteVolumeName ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterGeoRepMountBrokerSetup ( java.lang.String userName , java.lang.String remoteGroupName , java.lang.String remoteVolumeName ) ;
Source:
private boolean shouldUpdatePropertiesOtherThanSize ( ) { return ( shouldUpdateDiskProperties ( ) ) || ( shouldUpdateImageProperties ( ) ) ; }

Target:
private boolean updateParametersRequiringVmDownRequested ( ) { return ( updateDiskParametersRequiringVmDownRequested ( ) ) || ( updateImageParametersRequiringVmDownRequested ( ) ) ; }
Source:
public org.ovirt.engine.core.compat.Version getCLUSTER_COMPATIBILITY_VERSION ( ) { return CLUSTER_COMPATIBILITY_VERSION ; }

Target:
public org.ovirt.engine.core.compat.Version getCLUSTER_COMPATIBILITY_VERSION ( ) { return org.ovirt.engine.core.bll.gluster.GeoRepCreateEligibilityBaseTest.CLUSTER_COMPATIBILITY_VERSION ; }
Source:
public int getQuotaCount ( ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = new org.springframework.jdbc.core.namedparam.MapSqlParameterSource ( ) ; return getCallsHandler ( ) . executeRead ( "getQuotaCount" , org.ovirt.engine.core.dao.QuotaDaoImpl.longMapper , parameterSource ) . intValue ( ) ; }

Target:
public int getQuotaCount ( ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = new org.springframework.jdbc.core.namedparam.MapSqlParameterSource ( ) ; return getCallsHandler ( ) . executeRead ( "getQuotaCount" , org.springframework.jdbc.core.SingleColumnRowMapper.newInstance ( java.lang.Long.class ) , parameterSource ) . intValue ( ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VmPool getVmPool ( ) { if ( ( ( mVmPool ) == null ) && ( ( getVmPoolId ( ) ) != null ) ) { mVmPool = getVmPoolDAO ( ) . get ( getVmPoolId ( ) ) ; } return mVmPool ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VmPool getVmPool ( ) { if ( ( ( mVmPool ) == null ) && ( ( getVmPoolId ( ) ) != null ) ) { mVmPool = getVmPoolDao ( ) . get ( getVmPoolId ( ) ) ; } return mVmPool ; }
Source:
private java.lang.String getDiskIsUsedByGetAlignment ( ) { return new java.lang.StringBuilder ( VdcBllMessages.ACTION_TYPE_FAILED_DISK_IS_USED_BY_GET_ALIGNMENT.name ( ) ) . append ( java.lang.String.format ( "DiskAlias %1$s" , getDiskAlias ( ) ) ) . toString ( ) ; }

Target:
private java.lang.String getDiskIsUsedByGetAlignment ( ) { return new java.lang.StringBuilder ( VdcBllMessages.ACTION_TYPE_FAILED_DISK_IS_USED_BY_GET_ALIGNMENT.name ( ) ) . append ( java.lang.String.format ( "$DiskAlias %1$s" , getDiskAlias ( ) ) ) . toString ( ) ; }
Source:
public void ExecuteCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { super . ExecuteCommand ( command ) ; if ( command == ( getAddCommand ( ) ) ) { add ( ) ; } else if ( command == ( getRemoveCommand ( ) ) ) { remove ( ) ; } }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { super . executeCommand ( command ) ; if ( command == ( getAddCommand ( ) ) ) { add ( ) ; } else if ( command == ( getRemoveCommand ( ) ) ) { remove ( ) ; } }
Source:
public void testGetAllForNetworkEmpty ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result = dao.getAllForNetwork ( FixturesTool.NETWORK_NO_CLUSTERS_ATTACHED ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForNetworkEmpty ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result = dao.getAllForNetwork ( FixturesTool.NETWORK_NO_CLUSTERS_ATTACHED ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public int setTabIndexes ( int nextTabIndex ) { setTabIndex ( ( nextTabIndex ++ ) ) ; return nextTabIndex ; }

Target:
public void setLabel ( java.lang.String label ) { com.google.gwt.user.client.ui.Widget widget = getButtonWidget ( ) ; if ( widget instanceof com.google.gwt.user.client.ui.HasText ) { ( ( com.google.gwt.user.client.ui.HasText ) ( widget ) ) . setText ( label ) ; } }
Source:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotDisabledLegacyPolicyUsb ( ) { 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.DISABLED , null ) , UsbPolicy.DISABLED ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledLegacyPolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; usb.setType ( "legacy" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE ) , UsbPolicy.ENABLED_LEGACY ) ; }
Source:
public boolean validateAndSetQuota ( ) { return org.ovirt.engine.core.bll.UpdateVmTemplateCommand.getQuotaManager ( ) . validateQuotaForStoragePool ( org.ovirt.engine.core.bll.UpdateVmTemplateCommand.getStoragePool ( ) , org.ovirt.engine.core.bll.UpdateVmTemplateCommand.getVdsGroupId ( ) , getQuotaId ( ) , org.ovirt.engine.core.bll.UpdateVmTemplateCommand.getReturnValue ( ) . getCanDoActionMessages ( ) ) ; }

Target:
protected java.util.Map < java.lang.String , java.lang.String > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.UpdateVmTemplateCommand.getVmTemplateId ( ) . toString ( ) , LockingGroup.TEMPLATE.name ( ) ) ; }
Source:
public org.ovirt.engine.ui.common.widget.table.cell.TextCellWithTooltip getCell ( ) { org.ovirt.engine.ui.common.widget.table.cell.TextCellWithTooltip TextCellWithTooltip = super . getCell ( ) ; TextCellWithTooltip.setTitle ( constants.quotaCalculationsMessage ( ) ) ; return TextCellWithTooltip ; }

Target:
public org.ovirt.engine.ui.common.widget.table.cell.TextCell getCell ( ) { org.ovirt.engine.ui.common.widget.table.cell.TextCell TextCellWithTooltip = super . getCell ( ) ; TextCellWithTooltip.setTitle ( constants.quotaCalculationsMessage ( ) ) ; return TextCellWithTooltip ; }
Source:
protected void mockAllMacsForStoragePool ( org.ovirt.engine.core.common.businessentities.StoragePool storagePool , java.lang.String ... macAddress ) { org.mockito.Mockito.when ( macPoolDao.getAllMacsForMacPool ( org.mockito.Mockito.eq ( storagePool.getMacPoolId ( ) ) ) ) . thenReturn ( java.util.Arrays.asList ( macAddress ) ) ; }

Target:
protected void mockAllMacsForStoragePool ( org.ovirt.engine.core.common.businessentities.StoragePool storagePool , java.lang.String ... macAddress ) { org.mockito.Mockito.when ( macPoolDao.getAllMacsForMacPool ( org.mockito.Matchers.eq ( storagePool.getMacPoolId ( ) ) ) ) . thenReturn ( java.util.Arrays.asList ( macAddress ) ) ; }
Source:
java.lang.String sizeUnitString ( java.lang.String size , @ com.google.gwt.i18n.client.Messages.Select org.ovirt.engine.core.common.utils.SizeConverter.SizeUnit sizeUnit ) ;

Target:
java.lang.String thereAreActiveVMsRequiringRestart ( int count ) ;
Source:
protected java.util.function.Predicate < org.ovirt.engine.core.common.businessentities.StorageDomain > getPredicate ( final java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > memoryDisks ) { return ( storageDomain ) -> ( storageDomain.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Active ) ; }

Target:
public boolean test ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { return ( storageDomain.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Active ) ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { super . ExecuteVdsBrokerCommand ( ) ; updateNetConfigDirtyFlag ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.CollectVdsNetworkDataVDSCommand.persistAndEnforceNetworkCompliance ( org.ovirt.engine.core.vdsbroker.vdsbroker.CollectVdsNetworkDataVDSCommand.getVds ( ) , org.ovirt.engine.core.vdsbroker.vdsbroker.CollectVdsNetworkDataVDSCommand.getParameters ( ) . isManagementNetworkSkipped ( ) ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.CollectVdsNetworkDataVDSCommand.ProceedProxyReturnValue ( ) ; }

Target:
protected void ExecuteVdsBrokerCommand ( ) { super . ExecuteVdsBrokerCommand ( ) ; updateNetConfigDirtyFlag ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.CollectVdsNetworkDataVDSCommand.persistAndEnforceNetworkCompliance ( getVds ( ) , skipManagementNetwork ( ) ) ; ProceedProxyReturnValue ( ) ; }
Source:
public void testIpConfiguredForStaticBootProtocolWhenIpConfigurationIsNotNullAndBootProtocolIsStaticAndAddressAndNetmaskIsNotNull ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment = createNetworkAttachmentWithIpConfiguration ( NetworkBootProtocol.STATIC_IP , "192.168.1.1" , "255.255.255.0" ) ; org.junit.Assert.assertThat ( createNetworkAttachmentValidator ( attachment ) . ipConfiguredForStaticBootProtocol ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testIpConfiguredForStaticBootProtocolWhenIpConfigurationIsNotNullAndBootProtocolIsStaticAndAddressAndNetmaskIsNotNull ( ) throws java.lang.Exception { doTestIpConfiguredForStaticBootProtocol ( "192.168.1.1" , "255.255.255.0" , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public java.lang.String getManagementIp ( ) { return this . managementIp ; }

Target:
public void setProtocol ( org.ovirt.engine.core.common.businessentities.VdsProtocol value ) { this . protocol = value ; }
Source:
java.lang.String getRefreshRateItemKey ( ) { return ( ( org.ovirt.engine.ui.common.widget.refresh.AbstractRefreshManager.GRID_REFRESH_RATE_PREFIX ) + "_" ) + ( controller.getId ( ) ) ; }

Target:
java.lang.String getRefreshRateItemKey ( ) { return org.ovirt.engine.ui.common.widget.refresh.AbstractRefreshManager.GRID_REFRESH_RATE_KEY ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeRemoveBrickForce ( java.lang.String volumeName , java.lang.String [ ] brickDirectories ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeRemoveBrickForce ( java.lang.String volumeName , java.lang.String [ ] brickDirectories , int replicaCount ) ;
Source:
public void setEnableCallBack ( boolean enabled ) { cmdEntity.setEnableCallBack ( enabled ) ; }

Target:
public void setCallBackEnabled ( boolean enabled ) { cmdEntity.setCallBackEnabled ( enabled ) ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { executedAttachDetach ( attachNetworkToClusters , result ) ; }

Target:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { executedAttachDetach ( detachNetworkFromClusters , result ) ; }
Source:
public void validateFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.StopGlusterVolumeCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeActionParameters ( null , false ) , null ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFails ( ) { cmd.setGlusterVolumeId ( stoppedVolumeId ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
public boolean eval ( T a ) { return ( a.getDiskInterface ( ) ) != ( org.ovirt.engine.core.common.businessentities.DiskInterface.IDE ) ; }

Target:
public boolean eval ( T a ) { return ( a.getDiskInterface ( ) ) == ( org.ovirt.engine.core.common.businessentities.DiskInterface.VirtIO ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledNotSetPolicyNotSetUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; org.ovirt.engine.core.common.businessentities.UsbPolicy currentPolicy = org.ovirt.engine.core.common.businessentities.UsbPolicy.ENABLED_NATIVE ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , currentPolicy ) , currentPolicy ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyNativeGotNullUsb ( ) { org.ovirt.engine.api.model.Usb usb = null ; org.ovirt.engine.core.common.businessentities.UsbPolicy currentPolicy = org.ovirt.engine.core.common.businessentities.UsbPolicy.ENABLED_NATIVE ; org.junit.Assert.assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , currentPolicy ) , currentPolicy ) ; }
Source:
public void getAllUnfinishedKdumpStatus ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VdsKdumpStatus > result = dao.getAllUnfinishedVdsKdumpStatus ( ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( 1 , result.size ( ) ) ; }

Target:
public void getAllUnfinishedKdumpStatus ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VdsKdumpStatus > result = dao.getAllUnfinishedVdsKdumpStatus ( ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertEquals ( 1 , result.size ( ) ) ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.common.businessentities.aaa.DbUser terminatedUser = sessionDataContainer.getUser ( sessionDataContainer.getSessionIdBySSOAccessToken ( org.ovirt.engine.core.bll.aaa.TerminateSessionsForTokenCommand.getParameters ( ) . getSsoAccessToken ( ) ) , false ) ; if ( terminatedUser != null ) { log.debug ( "Terminating session for user {}@{}" , terminatedUser.getLoginName ( ) , terminatedUser.getDomain ( ) ) ; } sessionDataContainer.cleanupEngineSessionsForSsoAccessToken ( org.ovirt.engine.core.bll.aaa.TerminateSessionsForTokenCommand.getParameters ( ) . getSsoAccessToken ( ) ) ; org.ovirt.engine.core.bll.aaa.TerminateSessionsForTokenCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { org.ovirt.engine.core.common.businessentities.aaa.DbUser terminatedUser = sessionDataContainer.getUser ( sessionDataContainer.getSessionIdBySsoAccessToken ( org.ovirt.engine.core.bll.aaa.TerminateSessionsForTokenCommand.getParameters ( ) . getSsoAccessToken ( ) ) , false ) ; if ( terminatedUser != null ) { log.debug ( "Terminating session for user {}@{}" , terminatedUser.getLoginName ( ) , terminatedUser.getDomain ( ) ) ; } sessionDataContainer.cleanupEngineSessionsForSsoAccessToken ( org.ovirt.engine.core.bll.aaa.TerminateSessionsForTokenCommand.getParameters ( ) . getSsoAccessToken ( ) ) ; org.ovirt.engine.core.bll.aaa.TerminateSessionsForTokenCommand.setSucceeded ( true ) ; }
Source:
public void add ( ) { runAddAndVerify ( createNewInterface ( ) , true , org.mockito.Mockito.times ( 1 ) , org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.VERSION_3_2 ) ; }

Target:
public void add ( ) { runAddAndVerify ( createNewInterface ( ) , true , org.mockito.Mockito.times ( 1 ) , org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.OS_ID , org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.VERSION_3_2 ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.DiskLunMap mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { org.ovirt.engine.core.common.businessentities.DiskLunMap diskLunMap = new org.ovirt.engine.core.common.businessentities.DiskLunMap ( ) ; diskLunMap.setDiskId ( getGuidDefaultEmpty ( rs , "disk_id" ) ) ; diskLunMap.setLunId ( rs.getString ( "lun_id" ) ) ; return diskLunMap ; }

Target:
public org.ovirt.engine.core.common.businessentities.storage.DiskLunMap mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { org.ovirt.engine.core.common.businessentities.storage.DiskLunMap diskLunMap = new org.ovirt.engine.core.common.businessentities.storage.DiskLunMap ( ) ; diskLunMap.setDiskId ( getGuidDefaultEmpty ( rs , "disk_id" ) ) ; diskLunMap.setLunId ( rs.getString ( "lun_id" ) ) ; return diskLunMap ; }
Source:
public void handleVdsVersion ( org.ovirt.engine.core.compat.Guid vdsId ) { org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( VdcActionType.HandleVdsVersion , new org.ovirt.engine.core.common.action.VdsActionParameters ( vdsId ) ) ; }

Target:
public void handleVdsVersion ( org.ovirt.engine.core.compat.Guid vdsId ) { backend.runInternalAction ( VdcActionType.HandleVdsVersion , new org.ovirt.engine.core.common.action.VdsActionParameters ( vdsId ) ) ; }
Source:
public void canDoActionBlankDescriptionFails ( ) throws java.lang.Exception { parameters.setDescription ( " " ) ; setupMock ( ) ; org.junit.Assert.assertTrue ( ( ! ( commandMock.canDoAction ( ) ) ) ) ; }

Target:
public void validateBlankDescriptionFails ( ) throws java.lang.Exception { parameters.setDescription ( " " ) ; setupMock ( ) ; org.junit.Assert.assertTrue ( ( ! ( commandMock.validate ( ) ) ) ) ; }
Source:
public void testValidModifiedBondsFailsWhenReferencingExistingNonBondInterface ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Bond bond = createBond ( ) ; doTestValidModifiedBonds ( bond , ValidationResult.VALID , new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.NETWORK_INTERFACE_IS_NOT_BOND ) , new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.NETWORK_INTERFACE_IS_NOT_BOND ) , ValidationResult.VALID ) ; }

Target:
public void testValidModifiedBondsFailsWhenReferencingExistingNonBondInterface ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Bond bond = createBond ( ) ; org.ovirt.engine.core.bll.ValidationResult notABondValidationResult = new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.NETWORK_INTERFACE_IS_NOT_BOND , org.ovirt.engine.core.bll.validator.HostInterfaceValidator.VAR_NETWORK_INTERFACE_IS_NOT_BOND_ENTITY , bond.getName ( ) ) ; doTestValidModifiedBonds ( bond , ValidationResult.VALID , notABondValidationResult , notABondValidationResult , ValidationResult.VALID ) ; }
Source:
private void cleanConnection ( org.ovirt.engine.core.common.businessentities.StorageServerConnections connection , org.ovirt.engine.core.compat.Guid hostId ) { org.ovirt.engine.ui.frontend.Frontend.RunAction ( VdcActionType.DisconnectStorageServerConnection , new org.ovirt.engine.core.common.action.StorageServerConnectionParametersBase ( connection , hostId ) , null , this ) ; }

Target:
private void cleanConnection ( org.ovirt.engine.core.common.businessentities.StorageServerConnections connection , org.ovirt.engine.core.compat.Guid hostId ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runAction ( VdcActionType.DisconnectStorageServerConnection , new org.ovirt.engine.core.common.action.StorageServerConnectionParametersBase ( connection , hostId ) , null , this ) ; }
Source:
protected void onReveal ( ) { super . onReveal ( ) ; commonModelProvider.get ( ) . setPluginTabSelected ( getProxy ( ) . getTargetHistoryToken ( ) ) ; }

Target:
protected void onReveal ( ) { super . onReveal ( ) ; if ( isMainTab ) { commonModelProvider.get ( ) . setPluginTabSelected ( getProxy ( ) . getTargetHistoryToken ( ) ) ; } }
Source:
public boolean isLiveMergeSupported ( org.ovirt.engine.core.common.businessentities.VM vm ) { return ( vm != null ) && ( ( java.lang.Boolean ) ( getConfigValuePreConverted ( ConfigurationValues.LiveMergeSupported , vm.getVdsGroupCompatibilityVersion ( ) . toString ( ) ) ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.ArchitectureType convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return ( ( org.ovirt.engine.core.common.businessentities.ArchitectureType ) ( source ) ) ; }
Source:
public void validateFailureOnCopyingLunDisk ( ) { initializeCommand ( ImageOperation.Copy , new org.ovirt.engine.core.common.businessentities.storage.LunDisk ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_NOT_SUPPORTED_DISK_STORAGE_TYPE ) ; }

Target:
public void validateFailureOnCopyingLunDisk ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.LunDisk ( ) ) ; command.getParameters ( ) . setOperation ( ImageOperation.Copy ) ; command.init ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_NOT_SUPPORTED_DISK_STORAGE_TYPE ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VmRngDevice.Source getSource ( ) { try { return org.ovirt.engine.core.common.businessentities.VmRngDevice.Source.valueOf ( ( ( java.lang.String ) ( getSpecParams ( ) . get ( org.ovirt.engine.core.common.businessentities.VmRngDevice.SOURCE_STRING ) ) ) ) ; } catch ( java.lang.Exception e ) { return org.ovirt.engine.core.common.businessentities.VmRngDevice.Source.RANDOM ; } }

Target:
public org.ovirt.engine.core.common.businessentities.VmRngDevice.Source getSource ( ) { try { return org.ovirt.engine.core.common.businessentities.VmRngDevice.Source.valueOf ( ( ( java.lang.String ) ( getSpecParams ( ) . get ( org.ovirt.engine.core.common.businessentities.VmRngDevice.SOURCE_STRING ) ) ) . toUpperCase ( ) ) ; } catch ( java.lang.Exception e ) { return org.ovirt.engine.core.common.businessentities.VmRngDevice.Source.RANDOM ; } }
Source:
private java.util.List < org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.compat.Guid , java.lang.Integer > > filter ( final org.ovirt.engine.core.common.businessentities.VM vm , final org.ovirt.engine.core.common.businessentities.VDS ... hosts ) { return inClusterUpgradeWeightPolicyUnit.score ( java.util.Arrays.asList ( hosts ) , vm , null ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.compat.Guid , java.lang.Integer > > filter ( final org.ovirt.engine.core.common.businessentities.VM vm , final org.ovirt.engine.core.common.businessentities.VDS ... hosts ) { return inClusterUpgradeWeightPolicyUnit.score ( new org.ovirt.engine.core.common.businessentities.Cluster ( ) , java.util.Arrays.asList ( hosts ) , vm , null ) ; }
Source:
public void validWhenConditionDoesntOccurWithVariableReplacements ( ) { org.junit.Assert.assertThat ( org.ovirt.engine.core.bll.ValidationResult.failWith ( org.ovirt.engine.core.bll.ValidationResultTest.ERROR , variableReplacements ) . when ( false ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void validWhenConditionDoesntOccurWithVariableReplacements ( ) { org.hamcrest.MatcherAssert.assertThat ( org.ovirt.engine.core.bll.ValidationResult.failWith ( org.ovirt.engine.core.bll.ValidationResultTest.ERROR , variableReplacements ) . when ( false ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }