auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private org.ovirt.engine.core.common.businessentities.DiskImage getDisk ( org.ovirt.engine.core.compat.Guid diskId ) { return runInternalQuery ( VdcQueryType.GetDiskByDiskId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( diskId ) ) . getReturnValue ( ) ; }

Target:
private void addMemoryDisk ( ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage memoryDisk = org.ovirt.engine.core.bll.memory.MemoryUtils.createMemoryDiskForVm ( org.ovirt.engine.core.bll.HibernateVmCommand.getVm ( ) , org.ovirt.engine.core.bll.HibernateVmCommand.getStorageDomain ( ) . getStorageType ( ) ) ; addDisk ( memoryDisk ) ; }
Source:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__CHANGE_CD ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__VM ) ; }

Target:
protected void setActionMessageParameters ( ) { if ( ! ( org.apache.commons.lang.StringUtils.isEmpty ( cdImagePath ) ) ) { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__CHANGE_CD ) ; } else { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__EJECT_CD ) ; } addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__VM ) ; }
Source:
public void testIsNotLocalFsWithDefaultClusterWhenClusterIsDefault ( ) { storagePool.setIsLocal ( true ) ; org.mockito.Mockito.doReturn ( true ) . when ( validator ) . containsDefaultCluster ( ) ; org.junit.Assert.assertThat ( validator.isNotLocalfsWithDefaultCluster ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_STORAGE_POOL_WITH_DEFAULT_CLUSTER_CANNOT_BE_LOCALFS ) ) ; }

Target:
public void testIsNotLocalFsWithDefaultClusterWhenClusterIsDefault ( ) { storagePool.setIsLocal ( true ) ; org.mockito.Mockito.doReturn ( true ) . when ( validator ) . containsDefaultCluster ( ) ; org.hamcrest.MatcherAssert.assertThat ( validator.isNotLocalfsWithDefaultCluster ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_STORAGE_POOL_WITH_DEFAULT_CLUSTER_CANNOT_BE_LOCALFS ) ) ; }
Source:
public javax.ws.rs.core.Response performAction ( org.ovirt.engine.core.common.action.VdcActionType task , org.ovirt.engine.core.common.action.VdcActionParametersBase params , org.ovirt.engine.api.model.Action action ) { return performAction ( task , params , action , false ) ; }

Target:
public javax.ws.rs.core.Response performAction ( org.ovirt.engine.core.common.action.ActionType task , org.ovirt.engine.core.common.action.ActionParametersBase params , org.ovirt.engine.api.model.Action action ) { return performAction ( task , params , action , false ) ; }
Source:
protected void setActionMessageParameters ( ) { addValidationMessage ( EngineMessage.VAR__ACTION__REFRESH ) ; addValidationMessage ( EngineMessage.VAR__TYPE__GLUSTER_GEOREP_SESSION ) ; }

Target:
protected void setActionMessageParameters ( ) { addValidationMessage ( EngineMessage.VAR__ACTION__REFRESH ) ; addValidationMessage ( EngineMessage.VAR__TYPE__GLUSTER_GEOREP_SESSION ) ; addValidationMessageVariable ( "volumeName" , org.ovirt.engine.core.bll.gluster.RefreshGeoRepSessionsCommand.getGlusterVolumeName ( ) ) ; addValidationMessageVariable ( "cluster" , org.ovirt.engine.core.bll.gluster.RefreshGeoRepSessionsCommand.getClusterName ( ) ) ; }
Source:
protected void syncSearch ( ) { org.ovirt.engine.core.common.queries.SearchParameters tempVar = new org.ovirt.engine.core.common.queries.SearchParameters ( getSearchString ( ) , org.ovirt.engine.core.common.interfaces.SearchType.StorageDomain ) ; tempVar.setMaxCount ( getSearchPageSize ( ) ) ; super . syncSearch ( VdcQueryType.Search , tempVar ) ; }

Target:
protected void syncSearch ( ) { org.ovirt.engine.core.common.queries.SearchParameters tempVar = new org.ovirt.engine.core.common.queries.SearchParameters ( getSearchString ( ) , org.ovirt.engine.core.common.interfaces.SearchType.StorageDomain , isCaseSensitiveSearch ( ) ) ; tempVar.setMaxCount ( getSearchPageSize ( ) ) ; super . syncSearch ( VdcQueryType.Search , tempVar ) ; }
Source:
private void setRootDSE ( org.ovirt.engine.extensions.aaa.builtin.kerberosldap.Domain domainObject , org.ovirt.engine.core.ldap.LdapProviderType ldapProviderType , javax.naming.directory.Attributes rootDseRecords ) throws javax.naming.NamingException { org.ovirt.engine.extensions.aaa.builtin.kerberosldap.RootDSE rootDSE ; rootDSE = org.ovirt.engine.extensions.aaa.builtin.kerberosldap.RootDSEFactory.get ( ldapProviderType , rootDseRecords ) ; domainObject.setRootDSE ( rootDSE ) ; domainObject.setLdapProviderType ( ldapProviderType ) ; }

Target:
private void setRootDSE ( org.ovirt.engine.core.ldap.LdapProviderType ldapProviderType , javax.naming.directory.Attributes rootDseRecords ) throws javax.naming.NamingException { org.ovirt.engine.extensions.aaa.builtin.kerberosldap.RootDSE rootDSE ; rootDSE = org.ovirt.engine.extensions.aaa.builtin.kerberosldap.RootDSEFactory.get ( ldapProviderType , rootDseRecords ) ; configuration.put ( "config.rootDSE" , rootDSE ) ; configuration.put ( "config.LDAPProviderTypes" , ldapProviderType.toString ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.Provider getProvider ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getProviderDao ( ) . get ( org.ovirt.engine.core.bll.GetHostListFromExternalProviderQuery.getParameters ( ) . getProviderId ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.Provider getProvider ( ) { return providerDao.get ( org.ovirt.engine.core.bll.GetHostListFromExternalProviderQuery.getParameters ( ) . getProviderId ( ) ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetAuthzGroupsByUserIdQuery.getQueryReturnValue ( ) . setReturnValue ( getDirectoryUser ( org.ovirt.engine.core.bll.GetAuthzGroupsByUserIdQuery.getDbFacade ( ) . getDbUserDao ( ) . get ( org.ovirt.engine.core.bll.GetAuthzGroupsByUserIdQuery.getParameters ( ) . getId ( ) ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetAuthzGroupsByUserIdQuery.getQueryReturnValue ( ) . setReturnValue ( getDirectoryUser ( dbUserDao.get ( org.ovirt.engine.core.bll.GetAuthzGroupsByUserIdQuery.getParameters ( ) . getId ( ) ) ) ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkManageModel flush ( ) { return networks.flush ( ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkManageModel model ) { networks.asEditor ( ) . edit ( model ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.RepoImage > getUserRequestForStorageDomainRepoFileList ( ) { return org.ovirt.engine.core.bll.IsoDomainListSyncronizer.getInstance ( ) . getUserRequestForStorageDomainRepoFileList ( getStorageDomainId ( ) , org.ovirt.engine.core.bll.GetImagesListQueryBase.getParameters ( ) . getImageType ( ) , org.ovirt.engine.core.bll.GetImagesListQueryBase.getParameters ( ) . getForceRefresh ( ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.RepoImage > getUserRequestForStorageDomainRepoFileList ( ) { return org.ovirt.engine.core.bll.IsoDomainListSyncronizer.getInstance ( ) . getUserRequestForStorageDomainRepoFileList ( getStorageDomainIdForQuery ( ) , org.ovirt.engine.core.bll.GetImagesListQueryBase.getParameters ( ) . getImageType ( ) , org.ovirt.engine.core.bll.GetImagesListQueryBase.getParameters ( ) . getForceRefresh ( ) ) ; }
Source:
public void setSelectedItem ( org.ovirt.engine.core.common.businessentities.network.VnicProfileView value ) { super . setSelectedItem ( value ) ; updateLinkChangability ( ) ; }

Target:
public void setSelectedItem ( org.ovirt.engine.core.common.businessentities.network.VmInterfaceType value ) { super . setSelectedItem ( value ) ; updateLinkChangability ( ) ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getFenceAgentDao ( ) . remove ( org.ovirt.engine.core.bll.RemoveFenceAgentCommand.getParameters ( ) . getAgent ( ) . getId ( ) ) ; org.ovirt.engine.core.bll.RemoveFenceAgentCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { fenceAgentDao.remove ( org.ovirt.engine.core.bll.RemoveFenceAgentCommand.getParameters ( ) . getAgent ( ) . getId ( ) ) ; org.ovirt.engine.core.bll.RemoveFenceAgentCommand.setSucceeded ( true ) ; }
Source:
public void getQosByDiskProfileId ( ) { org.ovirt.engine.core.common.businessentities.qos.StorageQos qos = dao.getQosByDiskProfileId ( FixturesTool.DISK_PROFILE_1 ) ; org.junit.Assert.assertNotNull ( qos ) ; org.junit.Assert.assertEquals ( FixturesTool.QOS_ID_1 , qos.getId ( ) ) ; }

Target:
public void getQosByDiskProfileId ( ) { org.ovirt.engine.core.common.businessentities.qos.StorageQos qos = dao.getQosByDiskProfileId ( FixturesTool.DISK_PROFILE_1 ) ; org.junit.jupiter.api.Assertions.assertNotNull ( qos ) ; org.junit.jupiter.api.Assertions.assertEquals ( FixturesTool.QOS_ID_1 , qos.getId ( ) ) ; }
Source:
public final java.lang.String getDestinationVdsName ( ) { return ( getDestinationVds ( ) ) != null ? getDestinationVds ( ) . getName ( ) : null ; }

Target:
public final java.lang.String getDestinationVdsName ( ) { org.ovirt.engine.core.common.businessentities.VDS destinationVds = getDestinationVds ( ) ; return destinationVds != null ? destinationVds.getName ( ) : null ; }
Source:
protected org.ovirt.engine.api.model.NIC populate ( org.ovirt.engine.api.model.NIC model , org.ovirt.engine.core.common.businessentities.VmNetworkInterface entity ) { return addStatistics ( model , entity , uriInfo , httpHeaders ) ; }

Target:
protected org.ovirt.engine.api.model.NIC doPopulate ( org.ovirt.engine.api.model.NIC model , org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface entity ) { return model ; }
Source:
public void New ( ) { commandType = org.ovirt.engine.ui.uicommonweb.models.configure.roles_ui.RoleListModel.CommandType.New ; org.ovirt.engine.core.common.businessentities.Role role = new org.ovirt.engine.core.common.businessentities.Role ( ) ; InitRoleDialog ( role ) ; }

Target:
public void newEntity ( ) { commandType = org.ovirt.engine.ui.uicommonweb.models.configure.roles_ui.RoleListModel.CommandType.New ; org.ovirt.engine.core.common.businessentities.Role role = new org.ovirt.engine.core.common.businessentities.Role ( ) ; initRoleDialog ( role ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { iface.getMAC ( ) . setIsChangable ( enableManualMacCheckbox.getValue ( ) ) ; }

Target:
public void edit ( final org.ovirt.engine.ui.uicommonweb.models.vms.VmInterfaceModel iface ) { org.ovirt.engine.ui.common.widget.uicommon.popup.networkinterface.NetworkInterfacePopupWidget.Driver.driver.edit ( iface ) ; hideMacWhenNotEnabled ( iface ) ; }
Source:
protected org.ovirt.engine.core.common.action.VdcReturnValueBase executeMigration ( org.ovirt.engine.core.common.action.MigrateVmParameters parameters ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( VdcActionType.MigrateVm , parameters , org.ovirt.engine.core.bll.job.ExecutionHandler.createInternalJobContext ( ) ) ; }

Target:
protected void migrateVM ( final org.ovirt.engine.core.common.businessentities.VM vmToMigrate ) { org.ovirt.engine.core.common.action.MigrateVmParameters parameters = new org.ovirt.engine.core.common.action.MigrateVmParameters ( false , vmToMigrate.getId ( ) ) ; backend.runInternalAction ( VdcActionType.MigrateVm , parameters , org.ovirt.engine.core.bll.job.ExecutionHandler.createInternalJobContext ( ) ) ; }
Source:
public javax.xml.bind.JAXBElement < org.ovirt.engine.sdk.entities.WatchDogs > createWatchdogs ( org.ovirt.engine.sdk.entities.WatchDogs value ) { return new javax.xml.bind.JAXBElement < org.ovirt.engine.sdk.entities.WatchDogs > ( org.ovirt.engine.sdk.entities.ObjectFactory._Watchdogs_QNAME , org.ovirt.engine.sdk.entities.WatchDogs.class , null , value ) ; }

Target:
public javax.xml.bind.JAXBElement < org.ovirt.engine.sdk.entities.Watchdogs > createWatchdogs ( org.ovirt.engine.sdk.entities.Watchdogs value ) { return new javax.xml.bind.JAXBElement < org.ovirt.engine.sdk.entities.Watchdogs > ( org.ovirt.engine.sdk.entities.ObjectFactory._Watchdogs_QNAME , org.ovirt.engine.sdk.entities.Watchdogs.class , null , value ) ; }
Source:
protected void logMonitorLockReleased ( java.lang.String commandName ) { final org.ovirt.engine.core.common.businessentities.VDS vds = org.ovirt.engine.core.bll.VdsCommand.getVds ( ) ; log.infoFormat ( ( commandName + " finished. Lock released. Monitoring can run now for host {0} from data-center {1}" ) , vds.getName ( ) , vds.getStoragePoolName ( ) ) ; }

Target:
protected void logMonitorLockReleased ( java.lang.String commandName ) { final org.ovirt.engine.core.common.businessentities.VDS vds = org.ovirt.engine.core.bll.VdsCommand.getVds ( ) ; log.info ( "{} finished. Lock released. Monitoring can run now for host '{}' from data-center '{}'" , commandName , vds.getName ( ) , vds.getStoragePoolName ( ) ) ; }
Source:
public void testExtractVariableDeclarationsForStaticMsgs ( ) { java.util.List < java.lang.String > msgs = java.util.Arrays.asList ( "ACTION_TYPE_FAILED_TEMPLATE_IS_USED_FOR_CREATE_VM" , "IRS_FAILED_RETRIEVING_SNAPSHOT_INFO" ) ; org.junit.Assert.assertTrue ( "extractVariableDeclarations didn't return the same static messages" , org.apache.commons.collections.CollectionUtils.isEqualCollection ( msgs , command.extractVariableDeclarations ( msgs ) ) ) ; }

Target:
public void testExtractVariableDeclarationsForStaticMsgs ( ) { java.util.List < java.lang.String > msgs = java.util.Arrays.asList ( "ACTION_TYPE_FAILED_TEMPLATE_IS_USED_FOR_CREATE_VM" , "IRS_FAILED_RETRIEVING_SNAPSHOT_INFO" ) ; org.junit.jupiter.api.Assertions.assertTrue ( org.apache.commons.collections.CollectionUtils.isEqualCollection ( msgs , command.extractVariableDeclarations ( msgs ) ) , "extractVariableDeclarations didn't return the same static messages" ) ; }
Source:
public com.google.gwt.event.shared.HandlerRegistration addValueChangeHandler ( com.google.gwt.event.logical.shared.ValueChangeHandler handler ) { return org.ovirt.engine.ui.userportal.widget.popup.console.EntityModelValueCheckbox.asCheckBox ( ) . addValueChangeHandler ( new ValueChangeHandlerDecorator ( handler ) ) ; }

Target:
public com.google.gwt.event.shared.HandlerRegistration addValueChangeHandler ( com.google.gwt.event.logical.shared.ValueChangeHandler handler ) { return org.ovirt.engine.ui.common.widget.uicommon.popup.console.EntityModelValueCheckbox.asCheckBox ( ) . addValueChangeHandler ( new ValueChangeHandlerDecorator ( handler ) ) ; }
Source:
public void setvm_description ( java.lang.String value ) { this . mVmStatic.setdescription ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "vm_description" ) ) ; }

Target:
public boolean isInitialized ( ) { return this . vmStatic.isInitialized ( ) ; }
Source:
private void ExpandAll ( ) { SetIsExpandedRecursively ( true , getItems ( ) . get ( 0 ) ) ; }

Target:
private void collapseAll ( ) { setIsExpandedRecursively ( false , getItems ( ) . get ( 0 ) ) ; }
Source:
public void qosBondSpeedReported ( ) { org.ovirt.engine.core.bll.network.host.SetupNetworksHelper helper = qosBondSpeedSetup ( org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.DEFAULT_SPEED , null ) ; validateAndExpectNoViolations ( helper ) ; }

Target:
private void mockExistingNetworks ( org.ovirt.engine.core.common.businessentities.network.Network ... networks ) { org.mockito.Mockito.when ( networkDao.getAllForCluster ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( java.util.Arrays.asList ( networks ) ) ; }
Source:
public void canDoActionFailedVMNotFound ( ) throws java.lang.Exception { mockNullVm ( ) ; org.junit.Assert.assertFalse ( command.canDoAction ( ) ) ; org.junit.Assert.assertTrue ( command.getReturnValue ( ) . getCanDoActionMessages ( ) . contains ( VdcBllMessages.ACTION_TYPE_FAILED_VM_NOT_FOUND.toString ( ) ) ) ; }

Target:
public void canDoActionFailedVMNotFound ( ) throws java.lang.Exception { mockNullVm ( ) ; org.junit.Assert.assertFalse ( command.canDoAction ( ) ) ; org.junit.Assert.assertTrue ( command.getReturnValue ( ) . getCanDoActionMessages ( ) . contains ( EngineMessage.ACTION_TYPE_FAILED_VM_NOT_FOUND.toString ( ) ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.Snapshot addSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId , java.lang.String description , org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotType snapshotType , org.ovirt.engine.core.common.businessentities.VM vm , final org.ovirt.engine.core.bll.context.CompensationContext compensationContext ) { return addSnapshot ( snapshotId , description , SnapshotStatus.LOCKED , snapshotType , vm , true , StringUtils.EMPTY , compensationContext ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.Snapshot addSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId , java.lang.String description , org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotType snapshotType , org.ovirt.engine.core.common.businessentities.VM vm , java.lang.String memoryVolume , final org.ovirt.engine.core.bll.context.CompensationContext compensationContext ) { return addSnapshot ( snapshotId , description , SnapshotStatus.LOCKED , snapshotType , vm , true , memoryVolume , compensationContext ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.tags lookupTagByName ( java.lang.String name ) { return getEntity ( org.ovirt.engine.core.common.businessentities.tags.class , VdcQueryType.GetTagByTagName , new org.ovirt.engine.core.common.queries.GetTagByTagNameParameters ( name ) , name ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.tags lookupTagByName ( java.lang.String name ) { return getEntity ( org.ovirt.engine.core.common.businessentities.tags.class , VdcQueryType.GetTagByTagName , new org.ovirt.engine.core.common.queries.NameQueryParameters ( name ) , name ) ; }
Source:
private void setNonOperational ( org.ovirt.engine.core.common.businessentities.NonOperationalReason reason , org.ovirt.engine.core.common.businessentities.VDS vds ) { vds.setNonOperationalReason ( reason ) ; vds.setStatus ( VDSStatus.NonOperational ) ; vdsDynamicDao.update ( vds.getDynamicData ( ) ) ; }

Target:
public boolean evaluate ( java.lang.Object o ) { org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain = ( ( org.ovirt.engine.core.common.businessentities.StorageDomain ) ( o ) ) ; return ( storageDomain.getStorageType ( ) . isCinderDomain ( ) ) && ( ( storageDomain.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Active ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity getEntity ( int index ) { return setUpEntityExpectations ( control.createMock ( org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity.class ) , index , false ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity getEntity ( int index ) { return helper.getBrickEntity ( index , false ) ; }
Source:
public boolean isMultiDisplay ( ) { return true ; }

Target:
public boolean isMultiCluster ( ) { return true ; }
Source:
public static java.util.Map < org.ovirt.engine.core.common.businessentities.VmDevice , java.lang.Integer > getVmDeviceUnitMapForSpaprScsiDisks ( org.ovirt.engine.core.common.businessentities.VM vm ) { return org.ovirt.engine.core.vdsbroker.vdsbroker.VmInfoBuilder.getVmDeviceUnitMapForScsiDisks ( vm , DiskInterface.SPAPR_VSCSI , true ) ; }

Target:
public static java.util.Map < org.ovirt.engine.core.common.businessentities.VmDevice , java.lang.Integer > getVmDeviceUnitMapForVirtioScsiDisks ( org.ovirt.engine.core.common.businessentities.VM vm ) { return org.ovirt.engine.core.vdsbroker.vdsbroker.VmInfoBuilder.getVmDeviceUnitMapForScsiDisks ( vm , DiskInterface.VirtIO_SCSI , false ) ; }
Source:
public boolean IsVmInAsyncRunningList ( org.ovirt.engine.core.compat.Guid vmId ) { return asyncRunningVms.contains ( vmId ) ; }

Target:
public boolean isVmInAsyncRunningList ( org.ovirt.engine.core.compat.Guid vmId ) { return asyncRunningVms.contains ( vmId ) ; }
Source:
protected void verify ( org.ovirt.engine.api.model.Qos model , org.ovirt.engine.api.model.Qos transform ) { super . verify ( model , transform ) ; assertEquals ( model.getCpuLimit ( ) , transform.getCpuLimit ( ) ) ; }

Target:
protected void verify ( org.ovirt.engine.api.model.Qos model , org.ovirt.engine.api.model.Qos transform ) { super . verify ( model , transform ) ; org.junit.Assert.assertEquals ( model.getCpuLimit ( ) , transform.getCpuLimit ( ) ) ; }
Source:
protected java.lang.String getSuffixCauseToClonedNameCollisionMessage ( java.lang.String existingName ) { return org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getMessages ( ) . suffixCauseToClonedTemplateNameCollision ( existingName ) ; }

Target:
protected java.lang.String getSuffixCauseToClonedNameCollisionMessage ( java.lang.String existingName ) { return org.ovirt.engine.ui.uicommonweb.models.storage.TemplateBackupModel.messages.suffixCauseToClonedTemplateNameCollision ( existingName ) ; }
Source:
public void validateFailsWithEmptyBricks ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( getVolume ( 0 , false ) ) ) ; prepareMocks ( cmd ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_BRICKS_REQUIRED ) ; }

Target:
public void validateFailsWithEmptyBricks ( ) { setVolume ( getVolume ( 0 , false ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_BRICKS_REQUIRED ) ; }
Source:
public void callToVDSMFailed ( org.ovirt.engine.core.vdsbroker.monitoring.VmTestPairs data ) { stubFailedCalls ( ) ; org.junit.Assert.assertFalse ( vmsListFetcher.fetch ( ) ) ; }

Target:
public void callToVDSMFailed ( org.ovirt.engine.core.vdsbroker.monitoring.VmTestPairs data ) { stubFailedCalls ( ) ; org.junit.jupiter.api.Assertions.assertFalse ( vmsListFetcher.fetch ( ) ) ; }
Source:
private static java.lang.String generateJsonEntry ( java.lang.String key , java.lang.String value ) { return java.lang.String.format ( "\"%s\":\"%s\"" , key , value ) ; }

Target:
private static java.lang.String generateEncodingJsonEntry ( int encoding ) { return org.ovirt.engine.core.bll.MetadataDiskDescriptionHandler.getInstance ( ) . generateJsonField ( "Enc" , java.lang.String.valueOf ( encoding ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VmNetworkInterface > getAll ( ) { throw new org.apache.commons.lang.NotImplementedException ( ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VmNetworkInterface > getAll ( ) { return getCallsHandler ( ) . executeReadList ( "GetAllFromvm_interface" , mapper , getCustomMapSqlParameterSource ( ) ) ; }
Source:
public org.ovirt.engine.api.resource.AssignedVnicProfilesResource getVnicProfilesResource ( ) { return null ; }

Target:
public org.ovirt.engine.api.restapi.resource.BackendIscsiBondNetworksResource getParent ( ) { return parent ; }
Source:
public void saveAsyncTaskToDb ( final org.ovirt.engine.core.common.businessentities.AsyncTasks asyncTask ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getAsyncTaskDao ( ) . save ( asyncTask ) ; persistCommand ( copyToCommandEntity ( asyncTask , commandsCache.get ( asyncTask.getCommandId ( ) ) ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.compat.Guid > getChildCommandIds ( org.ovirt.engine.core.compat.Guid cmdId ) { initChildHierarchy ( ) ; java.util.List < org.ovirt.engine.core.compat.Guid > childIds = java.util.Collections.EMPTY_LIST ; if ( childHierarchy.containsKey ( cmdId ) ) { childIds = childHierarchy.get ( cmdId ) ; } return childIds ; }
Source:
public void attachUserGroupToTag ( org.ovirt.engine.core.common.businessentities.tags_user_group_map tagUserGroupMap ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "group_id" , tagUserGroupMap.getgroup_id ( ) ) . addValue ( "tag_id" , tagUserGroupMap.gettag_id ( ) ) ; getCallsHandler ( ) . executeModification ( "Inserttags_user_group_map" , parameterSource ) ; }

Target:
public void attachUserGroupToTag ( org.ovirt.engine.core.common.businessentities.TagsUserGroupMap tagUserGroupMap ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "group_id" , tagUserGroupMap.getgroup_id ( ) ) . addValue ( "tag_id" , tagUserGroupMap.gettag_id ( ) ) ; getCallsHandler ( ) . executeModification ( "Inserttags_user_group_map" , parameterSource ) ; }
Source:
public abstract void persistCommand ( org.ovirt.engine.core.compat.Guid commandId , org.ovirt.engine.core.compat.Guid rootCommandId , org.ovirt.engine.core.common.action.VdcActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase params , org.ovirt.engine.core.compat.CommandStatus status , boolean enableCallBack ) ;

Target:
public void persistCommand ( org.ovirt.engine.core.common.businessentities.CommandEntity cmdEntity ) ;
Source:
public java.util.Map < java.lang.String , java.lang.Object > validateStorageDomain ( java.lang.String sdUUID ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterServicesGet ( java.lang.String [ ] serviceNames ) ;
Source:
public org.ovirt.engine.core.common.queries.VdcQueryParametersBase withRefresh ( ) { setRefresh ( true ) ; return this ; }

Target:
public org.ovirt.engine.core.common.queries.QueryParametersBase withRefresh ( ) { setRefresh ( true ) ; return this ; }
Source:
public void testGetInnerJoin ( ) { org.ovirt.engine.core.searchbackend.SearchObjectAutoCompleter comp = new org.ovirt.engine.core.searchbackend.SearchObjectAutoCompleter ( true ) ; assertNotNull ( "Sanity test" , comp.getInnerJoin ( "EVENT" , "USER" ) ) ; }

Target:
public void testGetInnerJoin ( ) { org.ovirt.engine.core.searchbackend.SearchObjectAutoCompleter comp = new org.ovirt.engine.core.searchbackend.SearchObjectAutoCompleter ( true ) ; org.junit.Assert.assertNotNull ( "Sanity test" , comp.getInnerJoin ( "EVENT" , "USER" ) ) ; }
Source:
public void setIsPoolTabValid ( boolean value ) { if ( ( isPoolTabValid ) != value ) { isPoolTabValid = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "IsPoolTabValid" ) ) ; } }

Target:
public void setPrestartedVmsHint ( java.lang.String value ) { if ( ( prestartedVmsHint ) != value ) { prestartedVmsHint = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "PrestartedVmsHint" ) ) ; } }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { java.util.ArrayList < java.lang.String > pmTypes = ( ( java.util.ArrayList < java.lang.String > ) ( returnValue ) ) ; updatePmTypeList ( pmTypes , getPmType ( ) ) ; updatePmTypeList ( pmTypes , getPmSecondaryType ( ) ) ; }

Target:
public void run ( ) { getKernelCmdline ( ) . setEntity ( kernelCmdline ) ; }
Source:
public boolean DisconnectStorageFromDomainByVdsId ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain , org.ovirt.engine.core.compat.Guid vdsId ) { return RunConnectionStorageToDomain ( storageDomain , vdsId , VdcActionType.RemoveStorageServerConnection.getValue ( ) ) ; }

Target:
public boolean DisconnectStorageFromDomainByVdsId ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain , org.ovirt.engine.core.compat.Guid vdsId ) { return runConnectionStorageToDomain ( storageDomain , vdsId , VdcActionType.RemoveStorageServerConnection.getValue ( ) ) ; }
Source:
public static com.google.gwt.resources.client.ImageResource getResource ( org.ovirt.engine.core.common.businessentities.network.InterfaceStatus status ) { switch ( status ) { case Up : return org.ovirt.engine.ui.webadmin.widget.host.InterfaceStatusImage.resources.upImage ( ) ; case None : case Down : default : return org.ovirt.engine.ui.webadmin.widget.host.InterfaceStatusImage.resources.downImage ( ) ; } }

Target:
public static com.google.gwt.resources.client.ImageResource getResource ( org.ovirt.engine.core.common.businessentities.network.InterfaceStatus status ) { switch ( status ) { case UP : return org.ovirt.engine.ui.webadmin.widget.host.InterfaceStatusImage.resources.upImage ( ) ; case NONE : case DOWN : default : return org.ovirt.engine.ui.webadmin.widget.host.InterfaceStatusImage.resources.downImage ( ) ; } }
Source:
public void testGetWithInvalidId ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup 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.VDSGroup result = dao.get ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertNull ( result ) ; }
Source:
protected void logSettingVmToDown ( org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( vdsId , vmId ) ; org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( logable , AuditLogType.VM_WAS_SET_DOWN_DUE_TO_HOST_REBOOT_OR_MANUAL_FENCE ) ; }

Target:
protected void logSettingVmToDown ( org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( vdsId , vmId ) ; auditLogDirector.log ( logable , AuditLogType.VM_WAS_SET_DOWN_DUE_TO_HOST_REBOOT_OR_MANUAL_FENCE ) ; }
Source:
public java.lang.String GetTagIdAndChildrenIds ( org.ovirt.engine.core.bll.Guid tagId ) { return org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . GetTagIdAndChildrenIds ( tagId ) ; }

Target:
public java.lang.String GetTagNameAndChildrenNames ( org.ovirt.engine.core.compat.Guid tagId ) { return org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . GetTagNameAndChildrenNames ( tagId ) ; }
Source:
public void setIsDirectLunDiskAvaialable ( org.ovirt.engine.ui.uicommonweb.models.EntityModel value ) { isDirectLunDiskAvaialable = value ; }

Target:
public boolean isPreviousIsQuotaAvailable ( ) { return previousIsQuotaAvailable ; }
Source:
public void setpm_password ( java.lang.String value ) { mVdsStatic.setpm_password ( value ) ; }

Target:
public void setPmPort ( java.lang.Integer value ) { mVdsStatic.setPmPort ( value ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > getStorageDomainsByConnId ( java.lang.String connectionId ) { return org.ovirt.engine.core.bll.storage.AddStorageDomainCommon.getStorageDomainDAO ( ) . getAllByConnectionId ( org.ovirt.engine.core.compat.Guid.createGuidFromString ( connectionId ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > getStorageDomainsByConnId ( java.lang.String connectionId ) { return org.ovirt.engine.core.bll.storage.AddStorageDomainCommon.getStorageDomainDao ( ) . getAllByConnectionId ( org.ovirt.engine.core.compat.Guid.createGuidFromString ( connectionId ) ) ; }
Source:
public void testValidModifiedBondsFailsWhenInsufficientNumberOfSlaves ( ) 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.EngineMessage.NETWORK_BONDS_INVALID_SLAVE_COUNT , org.ovirt.engine.core.utils.ReplacementUtils.getVariableAssignmentString ( EngineMessage.NETWORK_BONDS_INVALID_SLAVE_COUNT , bond.getName ( ) ) ) , ValidationResult.VALID ) ; }

Target:
public void testValidModifiedBondsFailsWhenInsufficientNumberOfSlaves ( ) throws java.lang.Exception { org.ovirt.engine.core.common.action.CreateOrUpdateBond createOrUpdateBond = createNewCreateOrUpdateBondWithNameAndId ( ) ; doTestValidModifiedBonds ( createOrUpdateBond , ValidationResult.VALID , new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.NETWORK_BONDS_INVALID_SLAVE_COUNT , org.ovirt.engine.core.utils.ReplacementUtils.getVariableAssignmentString ( EngineMessage.NETWORK_BONDS_INVALID_SLAVE_COUNT , createOrUpdateBond.getName ( ) ) ) , ValidationResult.VALID ) ; }
Source:
public int getnum_of_sockets ( ) { return this . mVmStatic.getnum_of_sockets ( ) ; }

Target:
public void setVmIp ( java.lang.String value ) { this . vmDynamic.setvm_ip ( value ) ; }
Source:
public void UpdateIsDisksAvailable ( ) { }

Target:
public void UpdateIsDisksAvailable ( ) { getModel ( ) . setIsDisksAvailable ( ( ( ( getModel ( ) . getDisks ( ) ) != null ) && ( getModel ( ) . getProvisioning ( ) . getIsChangable ( ) ) ) ) ; }
Source:
private org.ovirt.engine.core.vdsbroker.vdsbroker.HostNetworkAttachmentsPersister createPersister ( java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > userNetworkAttachments , org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface ... hostInterfaces ) { return new org.ovirt.engine.core.vdsbroker.vdsbroker.HostNetworkAttachmentsPersister ( networkAttachmentDao , hostId , new java.util.ArrayList ( java.util.Arrays.asList ( hostInterfaces ) ) , customPropertiesForNics , userNetworkAttachments , clusterNetworks ) ; }

Target:
private org.ovirt.engine.core.vdsbroker.vdsbroker.HostNetworkAttachmentsPersister createLegacyPersister ( java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkAttachment > userNetworkAttachments , org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface ... vdsNetworkInterfaces ) { return new org.ovirt.engine.core.vdsbroker.vdsbroker.HostNetworkAttachmentsPersister ( networkAttachmentDao , hostId , new java.util.ArrayList ( java.util.Arrays.asList ( vdsNetworkInterfaces ) ) , customPropertiesForNics , userNetworkAttachments , clusterNetworks ) ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result2 ) { org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel localModel2 = ( ( org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel ) ( result2.getState ( ) ) ) ; localModel2.StopProgress ( ) ; Cancel ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result2 ) { org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel localModel2 = ( ( org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel ) ( result2.getState ( ) ) ) ; localModel2.stopProgress ( ) ; cancel ( ) ; }
Source:
protected java.lang.String composeMessage ( ) { return org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getMessages ( ) . newNameWithSuffixCannotContainBlankOrSpecialChars ( maxClonedNameLength ) ; }

Target:
protected void executeDiskModifications ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel model ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel.getcurrentVm ( ) . setId ( vmId ) ; model.getInstanceImages ( ) . executeDiskModifications ( org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel.getcurrentVm ( ) ) ; }
Source:
public java.util.Date getCpuOverCommitTimestamp ( ) { return mVdsDynamic.getcpu_over_commit_time_stamp ( ) ; }

Target:
public java.util.Date getCpuOverCommitTimestamp ( ) { return mVdsStatistics.getcpu_over_commit_time_stamp ( ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.VDSGroup createDetachedDefaultVdsGroup ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup group = org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.createDefaultVdsGroup ( ) ; group.setstorage_pool_id ( null ) ; return group ; }

Target:
private static org.ovirt.engine.core.common.businessentities.VDSGroup createDetachedDefaultVdsGroup ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup group = org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.createDefaultVdsGroup ( ) ; group.setStoragePoolId ( null ) ; return group ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createBond ( java.lang.String name , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , name , true , null , null , null , networkName , true , null , false , null ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.Network createManagementNetwork ( ) { org.mockito.Mockito.when ( managementNetworkUtil.isManagementNetwork ( org.mockito.Matchers.eq ( org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.MANAGEMENT_NETWORK_NAME ) , org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( true ) ; return createNetwork ( org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.MANAGEMENT_NETWORK_NAME ) ; }
Source:
public static void removeConsoleDevices ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.removeVmDevices ( org.ovirt.engine.core.bll.utils.VmDeviceUtils.getConsoleDevices ( vmId ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VmDevice addSmartcardDevice ( org.ovirt.engine.core.compat.Guid vmId ) { return addManagedDevice ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , vmId ) , VmDeviceGeneralType.SMARTCARD , VmDeviceType.SMARTCARD , getSmartcardDeviceSpecParams ( ) , true , false ) ; }
Source:
protected org.ovirt.engine.ui.uicommonweb.models.vms.ISpice asSpice ( org.ovirt.engine.ui.uicommonweb.models.VmConsoles vmConsoles ) { return vmConsoles.getConsoleModel ( org.ovirt.engine.ui.uicommonweb.models.vms.SpiceConsoleModel.class ) . getspice ( ) ; }

Target:
protected org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleClient asSpice ( org.ovirt.engine.ui.uicommonweb.models.VmConsoles vmConsoles ) { return vmConsoles.getConsoleModel ( org.ovirt.engine.ui.uicommonweb.models.vms.SpiceConsoleModel.class ) . getSpiceImpl ( ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult networkNotUsedByHosts ( ) { return networkNotUsed ( getDbFacade ( ) . getVdsDao ( ) . getAllForNetwork ( network.getId ( ) ) , VdcBllMessages.VAR__ENTITIES__HOSTS , VdcBllMessages.VAR__ENTITIES__HOST ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult networkNotUsedByHosts ( ) { return networkNotUsed ( getDbFacade ( ) . getVdsDao ( ) . getAllForNetwork ( network.getId ( ) ) , EngineMessage.VAR__ENTITIES__HOSTS , EngineMessage.VAR__ENTITIES__HOST ) ; }
Source:
public void checkEmptyStringAllowed ( ) { underTest = new org.ovirt.engine.ui.uicommonweb.validation.KeyValueFormatValidation ( mockConstantsManager , true ) ; org.ovirt.engine.ui.uicommonweb.validation.ValidationResult validationResult = underTest.validate ( "" ) ; org.junit.Assert.assertEquals ( successfulValidationResult , validationResult ) ; }

Target:
public void checkEmptyStringAllowed ( ) { underTest = new org.ovirt.engine.ui.uicommonweb.validation.KeyValueFormatValidation ( mockConstantsManager , true ) ; org.ovirt.engine.ui.uicommonweb.validation.ValidationResult validationResult = underTest.validate ( "" ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.ui.uicommonweb.validation.KeyValueFormatValidationTest.successfulValidationResult , validationResult ) ; }
Source:
private void handleException ( java.lang.Throwable e ) { log.error ( java.lang.String.format ( "Failed to import certificate: %1$s" , e.getMessage ( ) ) ) ; log.debug ( "Exception" , e ) ; throw new org.ovirt.engine.core.common.errors.VdcBLLException ( org.ovirt.engine.core.common.errors.VdcBllErrors.PROVIDER_IMPORT_CERTIFICATE_ERROR , e.getMessage ( ) ) ; }

Target:
private void handleException ( java.lang.Throwable e ) { log.error ( java.lang.String.format ( "Failed to import certificate: %1$s" , e.getMessage ( ) ) ) ; log.debug ( "Exception" , e ) ; throw new org.ovirt.engine.core.common.errors.EngineException ( org.ovirt.engine.core.common.errors.EngineError.PROVIDER_IMPORT_CERTIFICATE_ERROR , e.getMessage ( ) ) ; }
Source:
private java.lang.String getUPN ( org.ovirt.engine.core.common.users.VdcUser vdcUser ) { java.lang.String retVal = vdcUser.getUserName ( ) ; if ( ! ( retVal.contains ( "@" ) ) ) { retVal = ( retVal + "@" ) + ( vdcUser.getDomainControler ( ) ) ; } return retVal ; }

Target:
private java.lang.String getUPN ( org.ovirt.engine.core.common.businessentities.DbUser user ) { java.lang.String retVal = user.getLoginName ( ) ; if ( ! ( retVal.contains ( "@" ) ) ) { retVal = ( retVal + "@" ) + ( user.getDomain ( ) ) ; } return retVal ; }
Source:
private void qosExistsTest ( org.hamcrest.Matcher < org.ovirt.engine.core.bll.ValidationResult > matcher , org.ovirt.engine.core.bll.validator.NetworkQosValidator validator ) { org.junit.Assert.assertThat ( validator.qosExists ( ) , matcher ) ; }

Target:
private void qosExistsTest ( org.hamcrest.Matcher < org.ovirt.engine.core.bll.ValidationResult > matcher , org.ovirt.engine.core.bll.validator.NetworkQosValidator validator ) { org.hamcrest.MatcherAssert.assertThat ( validator.qosExists ( ) , matcher ) ; }
Source:
org.ovirt.engine.core.common.businessentities.NonOperationalReason persistAndEnforceNetworkCompliance ( org.ovirt.engine.core.common.businessentities.VDS host , boolean skipManagementNetwork , java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > userConfiguredNics ) ;

Target:
org.ovirt.engine.core.common.businessentities.NonOperationalReason persistAndEnforceNetworkCompliance ( org.ovirt.engine.core.common.businessentities.VDS host , boolean skipManagementNetwork , org.ovirt.engine.core.common.vdscommands.UserConfiguredNetworkData userConfiguredNetworkData ) ;
Source:
protected static org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase createHostNetworkAuditLog ( org.ovirt.engine.core.common.businessentities.network.Network network , org.ovirt.engine.core.common.businessentities.VDS vds ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( vds.getId ( ) ) ; logable.addCustomValue ( "NetworkName" , network.getName ( ) ) ; return logable ; }

Target:
protected static org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase createHostNetworkAuditLog ( java.lang.String networkName , org.ovirt.engine.core.common.businessentities.VDS vds ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( vds.getId ( ) ) ; logable.addCustomValue ( "NetworkName" , networkName ) ; return logable ; }
Source:
public void testValidateImageNotActiveTrue ( ) { org.mockito.Mockito.when ( diskImageDAO.get ( mockSourceImage ( ) ) ) . thenReturn ( null ) ; org.junit.Assert.assertTrue ( "validation should succeed" , cmd.validateImageNotActive ( ) ) ; }

Target:
public void testValidateSnapshotNotActiveFalse ( ) { mockSnapshot ( SnapshotType.ACTIVE ) ; org.junit.Assert.assertFalse ( "validation should fail" , cmd.validateSnapshotType ( ) ) ; }
Source:
public void CollapseAll ( ) { for ( org.ovirt.engine.ui.uicommonweb.models.common.SelectionTreeNodeModel a : getEventGroupModels ( ) ) { a.setIsExpanded ( false ) ; } }

Target:
public void collapseAll ( ) { for ( org.ovirt.engine.ui.uicommonweb.models.common.SelectionTreeNodeModel a : getEventGroupModels ( ) ) { a.setIsExpanded ( false ) ; } }
Source:
public java.util.HashSet < org.ovirt.engine.core.compat.Version > getSupportedENGINESVersionsSet ( ) { return this . mVdsDynamic.getSupportedENGINESVersionsSet ( ) ; }

Target:
public java.util.HashSet < org.ovirt.engine.core.compat.Version > getSupportedENGINESVersionsSet ( ) { return this . mVdsDynamic.getSupportedEngineVersionsSet ( ) ; }
Source:
public void testAttachVmToTag ( ) { dao.attachVmToTag ( newVmTag ) ; org.ovirt.engine.core.common.businessentities.TagsVmMap result = dao.getTagVmByTagIdAndByVmId ( newVmTag.gettag_id ( ) , newVmTag.getvm_id ( ) ) ; assertNotNull ( result ) ; assertEqualsTagsVmMap ( newVmTag , result ) ; }

Target:
public void testAttachVmToTag ( ) { dao.attachVmToTag ( newVmTag ) ; org.ovirt.engine.core.common.businessentities.TagsVmMap result = dao.getTagVmByTagIdAndByVmId ( newVmTag.gettag_id ( ) , newVmTag.getvm_id ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; assertEqualsTagsVmMap ( newVmTag , result ) ; }
Source:
public void addColumn ( com.google.gwt.user.cellview.client.Column < T , ? > column , java.lang.String headerText ) { com.google.gwt.user.cellview.client.Header < ? > header = new org.ovirt.engine.ui.common.widget.table.header.SafeHtmlHeader ( com.google.gwt.safehtml.shared.SafeHtmlUtils.fromString ( headerText ) ) ; addColumn ( column , header ) ; }

Target:
public void addColumn ( com.google.gwt.user.cellview.client.Column < T , ? > column , java.lang.String headerText ) { com.google.gwt.user.cellview.client.Header < ? > header = new org.ovirt.engine.ui.common.widget.table.header.SafeHtmlHeader ( com.google.gwt.safehtml.shared.SafeHtmlUtils.fromTrustedString ( headerText ) ) ; addColumn ( column , header ) ; }
Source:
< T > org.ovirt.engine.ui.common.widget.editor.WidgetWithLabelEditor < T , ? > getFunctionalEditor ( com.google.gwt.editor.client.LeafValueEditor < T > editor ) { if ( editor instanceof org.ovirt.engine.ui.common.widget.editor.WidgetWithLabelEditor ) { return ( ( org.ovirt.engine.ui.common.widget.editor.WidgetWithLabelEditor < T , ? > ) ( editor ) ) ; } else { return null ; } }

Target:
< T > org.ovirt.engine.ui.common.editor.UiCommonEditor < T > getFunctionalEditor ( com.google.gwt.editor.client.LeafValueEditor < T > editor ) { if ( editor instanceof org.ovirt.engine.ui.common.editor.UiCommonEditor ) { return ( ( org.ovirt.engine.ui.common.editor.UiCommonEditor < T > ) ( editor ) ) ; } else { return null ; } }
Source:
public void updateWithCpuLowerThanHost ( ) { createCommandWithDefaultVdsGroup ( ) ; cpuExists ( ) ; cpuManufacturersMatch ( ) ; clusterHasVds ( ) ; cpuFlagsMissing ( ) ; architectureIsUpdatable ( ) ; canDoActionFailedWithReason ( VdcBllMessages.VDS_GROUP_CANNOT_UPDATE_CPU_WITH_LOWER_HOSTS ) ; }

Target:
public void updateWithCpuLowerThanHost ( ) { createCommandWithDefaultVdsGroup ( ) ; setupCpu ( ) ; clusterHasVds ( ) ; cpuFlagsMissing ( ) ; architectureIsUpdatable ( ) ; canDoActionFailedWithReason ( VdcBllMessages.VDS_GROUP_CANNOT_UPDATE_CPU_WITH_LOWER_HOSTS ) ; }
Source:
protected void AsyncSearch ( ) { super . AsyncSearch ( ) ; org.ovirt.engine.ui.uicompat.Task.Create ( this , null ) . InvokeUIThread ( ) ; }

Target:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; org.ovirt.engine.ui.uicompat.Task.Create ( this , null ) . InvokeUIThread ( ) ; }
Source:
java.util.List < java.lang.String > TranslateErrorText ( java.util.List < java.lang.String > errorMsg , java.util.Locale locale ) ;

Target:
java.util.List < java.lang.String > translateErrorText ( java.util.List < java.lang.String > errorMsg , java.util.Locale locale ) ;
Source:
public void validateCanDoAction ( ) { mockVMPoolDAO ( ) ; org.junit.Assert.assertTrue ( command.canDoAction ( ) ) ; }

Target:
public void validateCanDoAction ( ) { mockVMPoolDAO ( ) ; setupForStorageTests ( ) ; org.junit.Assert.assertTrue ( command.canDoAction ( ) ) ; }
Source:
public org.ovirt.engine.sdk.web.HttpProxyBuilder debug ( boolean debug ) { this . debug = debug ; return this ; }

Target:
public org.ovirt.engine.sdk.web.HttpProxyBuilder debug ( java.lang.Boolean debug ) { if ( debug != null ) { this . debug = debug.booleanValue ( ) ; } return this ; }
Source:
public void setIsExpanded ( boolean value ) { isExpanded = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "IsExpanded" ) ) ; }

Target:
public void setIsExpanded ( boolean value ) { isExpanded = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "IsExpanded" ) ) ; }