auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void mockVds ( ) { mockIsValidVdsCommand ( ) ; mockGetImageDomainsListVdsCommand ( 100 , 100 ) ; }

Target:
private void mockGlobalParameters ( ) { testVm = mockVm ( ) ; vmPools = mockVmPools ( ) ; vdsGroup = mockVdsGroup ( ) ; vmTemplate = mockVmTemplate ( ) ; storage_pool = mockStoragePool ( ) ; }
Source:
public java.lang.String getDocumentationBaseURL ( ) { return ( ( org.ovirt.engine.ui.frontend.utils.FrontendUrlUtils.getRootURL ( ) ) + ( org.ovirt.engine.ui.uicommonweb.Configurator.DOCUMENTATION_ROOT ) ) + "/" ; }

Target:
public java.lang.String getDocsBaseUrl ( ) { return ( ( ( ( ( ( org.ovirt.engine.ui.frontend.utils.FrontendUrlUtils.getRootURL ( ) ) + ( org.ovirt.engine.ui.uicommonweb.Configurator.DOCS_ROOT ) ) + "/" ) + ( org.ovirt.engine.ui.uicommonweb.Configurator.localeDir ) ) + "/" ) + ( org.ovirt.engine.ui.uicommonweb.Configurator.DOCS_HTML_DIR ) ) + "/" ; }
Source:
public void testGetAllForStoragePoolWithPermissionsUnprivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllForStoragePool ( org.ovirt.engine.core.dao.StorageDomainDaoTest.EXISTING_STORAGE_POOL_ID , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetNonePermittedStorageDomains ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getPermittedStorageDomainsByStoragePool ( FixturesTool.USER_EXISTING_ID , ActionGroup.CONSUME_QUOTA , FixturesTool.DATA_CENTER ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public void update ( int index , org.ovirt.engine.ui.uicommonweb.models.EntityModel model , java.lang.Boolean value ) { org.ovirt.engine.ui.uicommonweb.models.providers.ExternalNetwork externalNetwork = ( ( org.ovirt.engine.ui.uicommonweb.models.providers.ExternalNetwork ) ( model ) ) ; externalNetwork.setPublicUse ( value ) ; refreshImportedNetworks ( ) ; }

Target:
protected void selectionChanged ( java.lang.Boolean value ) { for ( org.ovirt.engine.ui.uicommonweb.models.providers.ExternalNetwork model : getAllImportedNetworks ( ) ) { model.setPublicUse ( value ) ; } refreshImportedNetworks ( ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getSelectedMigrationPolicy ( ) { if ( getOverrideMigrationPolicy ( ) . getEntity ( ) ) { return getMigrationPolicies ( ) . getSelectedItem ( ) . getId ( ) ; } else { return null ; } }

Target:
public org.ovirt.engine.core.compat.Guid getSelectedMigrationPolicy ( ) { if ( java.lang.Boolean.TRUE.equals ( getOverrideMigrationPolicy ( ) . getEntity ( ) ) ) { return getMigrationPolicies ( ) . getSelectedItem ( ) . getId ( ) ; } else { return null ; } }
Source:
public org.ovirt.engine.core.bll.ValidationResult linkedCorrectly ( ) { return ( ! ( org.ovirt.engine.core.common.FeatureSupported.networkLinking ( version ) ) ) && ( ! ( nic.isLinked ( ) ) ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.UNLINKING_IS_NOT_SUPPORTED , clusterVersion ( ) ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult linkedOnlyIfSupported ( ) { return ( ! ( org.ovirt.engine.core.common.FeatureSupported.networkLinking ( version ) ) ) && ( ! ( nic.isLinked ( ) ) ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.UNLINKING_IS_NOT_SUPPORTED , clusterVersion ( ) ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.vms.SpiceConsoleModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.SpiceConsoleModel ) ( result.getState ( ) ) ) ; model.PostSendVmTicket ( result.getReturnValue ( ) ) ; }

Target:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.vms.SpiceConsoleModel spiceConsoleModel = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.SpiceConsoleModel ) ( result.getState ( ) ) ) ; spiceConsoleModel.PostSendVmTicket ( result.getReturnValue ( ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult isNotLocalfsWithDefaultCluster ( ) { if ( ( ( storagePool.getStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageType.LOCALFS ) ) && ( containsDefaultCluster ( ) ) ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_POOL_WITH_DEFAULT_VDS_GROUP_CANNOT_BE_LOCALFS ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult isNotLocalfsWithDefaultCluster ( ) { if ( ( storagePool.isLocal ( ) ) && ( containsDefaultCluster ( ) ) ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_POOL_WITH_DEFAULT_VDS_GROUP_CANNOT_BE_LOCALFS ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
public org.ovirt.engine.core.common.businessentities.VmOsType getVmOs ( ) { return this . vmStatic.getOs ( ) ; }

Target:
public int getVmOsId ( ) { return this . vmStatic.getOsId ( ) ; }
Source:
public org.ovirt.engine.core.bll.SPMAsyncTask createTask ( org.ovirt.engine.core.common.asynctasks.AsyncTaskType taskType , org.ovirt.engine.core.common.asynctasks.AsyncTaskParameters taskParameters ) { return org.ovirt.engine.core.bll.AsyncTaskFactory.construct ( taskType , taskParameters , false ) ; }

Target:
public void setReturnValue ( org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue ) { _returnValue = returnValue ; }
Source:
public static void updateImageStatus ( org.ovirt.engine.core.compat.Guid imageId , org.ovirt.engine.core.common.businessentities.storage.ImageStatus imageStatus ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getImageDao ( ) . updateStatus ( imageId , imageStatus ) ; }

Target:
public void updateImageStatus ( org.ovirt.engine.core.compat.Guid imageId , org.ovirt.engine.core.common.businessentities.storage.ImageStatus imageStatus ) { imageDao.updateStatus ( imageId , imageStatus ) ; }
Source:
public void appendButton ( com.google.gwt.user.client.ui.PushButton button ) { buttons.add ( button ) ; remove ( div ) ; append ( button ) ; add ( div ) ; }

Target:
public void appendButton ( com.google.gwt.user.client.ui.PushButton button ) { buttons.add ( button ) ; remove ( div ) ; append ( button , ( ! ( usePatternFly ) ) ) ; add ( div ) ; }
Source:
protected void verify ( org.ovirt.engine.api.model.GlusterBrick model , org.ovirt.engine.api.model.GlusterBrick transform ) { org.junit.Assert.assertNotNull ( transform ) ; }

Target:
protected void verify ( org.ovirt.engine.api.model.GlusterBrick model , org.ovirt.engine.api.model.GlusterBrick transform ) { org.junit.jupiter.api.Assertions.assertNotNull ( transform ) ; }
Source:
public org.ovirt.engine.core.common.AuditLogType getlog_type ( ) { return org.ovirt.engine.core.common.AuditLogType.forValue ( logType ) ; }

Target:
public org.ovirt.engine.core.common.AuditLogType getLogType ( ) { return org.ovirt.engine.core.common.AuditLogType.forValue ( logType ) ; }
Source:
public void searchQueryByExistentName ( ) { org.junit.Assert.assertEquals ( FixturesTool.PROVIDER_NAME , dao.getAllWithQuery ( java.lang.String.format ( "SELECT * FROM providers WHERE name = '%s'" , FixturesTool.PROVIDER_NAME ) ) . get ( 0 ) . getName ( ) ) ; }

Target:
public void searchQueryByExistentName ( ) { org.junit.jupiter.api.Assertions.assertEquals ( FixturesTool.PROVIDER_NAME , dao.getAllWithQuery ( java.lang.String.format ( "SELECT * FROM providers WHERE name = '%s'" , FixturesTool.PROVIDER_NAME ) ) . get ( 0 ) . getName ( ) ) ; }
Source:
public void setPmProxyPreferences ( java.lang.String pmProxyPreferences ) { vdsStatic.setPmProxyPreferences ( pmProxyPreferences ) ; }

Target:
public void setFenceProxySources ( java.util.List < org.ovirt.engine.core.common.businessentities.pm.FenceProxySourceType > fenceProxySources ) { vdsStatic.setFenceProxySources ( fenceProxySources ) ; }
Source:
public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { if ( ev.equals ( ChangeCDModel.ExecutedEventDefinition ) ) { ChangeCD ( sender , args ) ; } }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { if ( ev.matchesDefinition ( ChangeCDModel.ExecutedEventDefinition ) ) { ChangeCD ( sender , args ) ; } }
Source:
public void fullCorrectWithIpv6 ( ) { org.junit.Assert.assertTrue ( validation.validate ( "someProtocol://[1:2:3:4:5:6:7:8]:666" ) . getSuccess ( ) ) ; }

Target:
public void fullCorrectWithIpv6 ( ) { org.junit.jupiter.api.Assertions.assertTrue ( validation.validate ( "someProtocol://[1:2:3:4:5:6:7:8]:666" ) . getSuccess ( ) ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getuser_id ( ) { return this . id ; }

Target:
public java.lang.String getRole ( ) { return role ; }
Source:
protected java.util.List < org.ovirt.engine.core.compat.Guid > getVdsWhiteList ( ) { org.ovirt.engine.core.common.businessentities.VDS destinationVds = org.ovirt.engine.core.bll.RunVmOnceCommand.getDestinationVds ( ) ; if ( destinationVds != null ) { return java.util.Arrays.asList ( destinationVds.getId ( ) ) ; } return super . getVdsWhiteList ( ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.compat.Guid > getVdsWhiteList ( ) { org.ovirt.engine.core.compat.Guid predefinedDestinationVdsId = getPredefinedVdsIdToRunOn ( ) ; return predefinedDestinationVdsId != null ? java.util.Arrays.asList ( predefinedDestinationVdsId ) : super . getVdsWhiteList ( ) ; }
Source:
private static void assertGetResult ( org.ovirt.engine.core.common.businessentities.VmTemplate result ) { org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.VmTemplateDAOTest.EXISTING_TEMPLATE_ID , result.getId ( ) ) ; }

Target:
private static void assertGetResult ( org.ovirt.engine.core.common.businessentities.VmTemplate result ) { org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.VmTemplateDAOTest.EXISTING_TEMPLATE_ID , result.getId ( ) ) ; org.junit.Assert.assertEquals ( "Template generation wasn't loaded as expected" , 1 , result.getDbGeneration ( ) ) ; }
Source:
public java.lang.String getvds_group_name ( ) { return this . vds_group_nameField ; }

Target:
public void setMigrationSupport ( org.ovirt.engine.core.common.businessentities.MigrationSupport migrationSupport ) { this . vmStatic.setMigrationSupport ( migrationSupport ) ; }
Source:
public void testValidateNetworkExclusiveOnNicsVmNetworkMustBeSoleAttachedInterface3 ( ) throws java.lang.Exception { checkVmNetworkIsSoleAssignedInterface ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NETWORK_INTERFACES_NOT_EXCLUSIVELY_USED_BY_NETWORK ) , vmNetwork1 , vlanNetwork ) ; }

Target:
public void testValidateNetworkExclusiveOnNicAtMostOneNonVmNetwork ( ) throws java.lang.Exception { checkVmNetworkIsSoleAssignedInterface ( true , java.util.Arrays.asList ( NetworkType.VLAN , NetworkType.NON_VM ) , vlanNetwork , nonVmNetwork1 ) ; }
Source:
public void clearErrorAndWarning ( ) { getInfoMessage ( ) . setIsValid ( true ) ; getInfoMessage ( ) . setEntity ( null ) ; }

Target:
public void setError ( java.lang.String problem ) { getProblemDescription ( ) . setIsValid ( false ) ; getProblemDescription ( ) . setEntity ( problem ) ; }
Source:
private org.ovirt.engine.api.model.Hosts listAll ( ) { if ( isFiltered ( ) ) { return mapCollection ( getBackendCollection ( QueryType.GetAllHosts , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ) ; } else { return mapCollection ( getBackendCollection ( SearchType.VDS ) ) ; } }

Target:
private org.ovirt.engine.api.model.Hosts listAll ( ) { if ( isFiltered ( ) ) { return mapCollection ( getBackendCollection ( QueryType.GetAllHosts , new org.ovirt.engine.core.common.queries.QueryParametersBase ( ) ) ) ; } else { return mapCollection ( getBackendCollection ( SearchType.VDS ) ) ; } }
Source:
public void moveShareableDisk ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ) ; initSrcStorageDomain ( ) ; initDestStorageDomain ( StorageType.NFS ) ; initVmDiskImage ( true ) ; org.junit.Assert.assertTrue ( command.validate ( ) ) ; }

Target:
public void moveShareableDiskToGlusterDomain ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ) ; initSrcStorageDomain ( ) ; initDestStorageDomain ( StorageType.GLUSTERFS ) ; initVmDiskImage ( true ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_CANT_MOVE_SHAREABLE_DISK_TO_GLUSTERFS ) ; }
Source:
public void onFailure ( org.ovirt.engine.ui.frontend.communication.VdcOperation < org.ovirt.engine.core.common.action.ActionType , org.ovirt.engine.core.common.action.ActionParametersBase > operation , java.lang.Throwable caught ) { org.junit.Assert.fail ( "Should not get here" ) ; }

Target:
public void onFailure ( org.ovirt.engine.ui.frontend.communication.VdcOperation < org.ovirt.engine.core.common.action.ActionType , org.ovirt.engine.core.common.action.ActionParametersBase > operation , java.lang.Throwable caught ) { org.junit.jupiter.api.Assertions.fail ( "Should not get here" ) ; }
Source:
public org.ovirt.engine.api.resource.StorageDomainContentResource < org.ovirt.engine.api.model.Vm > getStorageDomainContentResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendStorageDomainVmResource ( this , id ) ) ; }

Target:
public org.ovirt.engine.api.resource.StorageDomainVmResource getVmResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendStorageDomainVmResource ( this , id ) ) ; }
Source:
private void assertGetLunsThatBreakDiscardAfterDeleteSupportContainsExpectedLuns ( java.util.Collection < org.ovirt.engine.core.common.businessentities.storage.LUNs > luns , java.util.Collection < org.ovirt.engine.core.common.businessentities.storage.LUNs > expectedLunsThatBreakDiscardAfterDeleteSupport ) { java.util.Collection < org.ovirt.engine.core.common.businessentities.storage.LUNs > lunsThatBreakDiscardAfterDeleteSupport = discardHelper.getLunsThatBreakDiscardAfterDeleteSupport ( luns , storageDomain ) ; org.junit.Assert.assertTrue ( org.apache.commons.collections.CollectionUtils.isEqualCollection ( lunsThatBreakDiscardAfterDeleteSupport , expectedLunsThatBreakDiscardAfterDeleteSupport ) ) ; }

Target:
private void assertGetLunsThatBreakDiscardAfterDeleteSupportContainsExpectedLuns ( java.util.Collection < org.ovirt.engine.core.common.businessentities.storage.LUNs > luns , java.util.Collection < org.ovirt.engine.core.common.businessentities.storage.LUNs > expectedLunsThatBreakDiscardAfterDeleteSupport ) { java.util.Collection < org.ovirt.engine.core.common.businessentities.storage.LUNs > lunsThatBreakDiscardAfterDeleteSupport = discardHelper.getLunsThatBreakDiscardAfterDeleteSupport ( luns , storageDomain ) ; org.junit.jupiter.api.Assertions.assertTrue ( org.apache.commons.collections.CollectionUtils.isEqualCollection ( lunsThatBreakDiscardAfterDeleteSupport , expectedLunsThatBreakDiscardAfterDeleteSupport ) ) ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel getDisplayNetwork ( ) { if ( ! ( isMultiDisplay ( ) ) ) { for ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel clusterNetworkManageModel : getItems ( ) ) { if ( clusterNetworkManageModel.isDisplayNetwork ( ) ) { return clusterNetworkManageModel ; } } } return null ; }

Target:
private org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel getDisplayNetwork ( ) { if ( ! ( isMultiCluster ( ) ) ) { for ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel clusterNetworkManageModel : getItems ( ) ) { if ( clusterNetworkManageModel.isDisplayNetwork ( ) ) { return clusterNetworkManageModel ; } } } return null ; }
Source:
public void tearDown ( ) { if ( ( _sshdialog ) != null ) { _sshdialog.disconnect ( ) ; _sshdialog = null ; } }

Target:
public void tearDown ( ) { try { if ( ( _sshdialog ) != null ) { _sshdialog.close ( ) ; _sshdialog = null ; } } catch ( java.io.IOException e ) { throw new java.lang.RuntimeException ( e ) ; } }
Source:
private void releaseLock ( org.ovirt.engine.core.utils.lock.EngineLock lock ) { org.ovirt.engine.core.utils.lock.LockManagerFactory.getLockManager ( ) . releaseLock ( lock ) ; }

Target:
private void releaseLock ( org.ovirt.engine.core.utils.lock.EngineLock lock ) { lockManager.releaseLock ( lock ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VDS getEntity ( ) { return ( ( org.ovirt.engine.core.common.businessentities.VDS ) ( super . getEntity ( ) ) ) ; }

Target:
public java.lang.String getOnlineCores ( ) { return onlineCores ; }
Source:
public void testGet ( ) { org.ovirt.engine.core.common.scheduling.ClusterPolicy result = dao.get ( existingPolicy.getId ( ) ) ; org.junit.Assert.assertTrue ( result.equals ( existingPolicy ) ) ; }

Target:
public void testGet ( ) { org.ovirt.engine.core.common.scheduling.ClusterPolicy result = dao.get ( existingPolicy.getId ( ) , java.util.Collections.emptyMap ( ) ) ; org.junit.Assert.assertTrue ( result.equals ( existingPolicy ) ) ; }
Source:
boolean IsDynamicVariable ( java.lang.String strMessage ) ;

Target:
boolean isDynamicVariable ( java.lang.String strMessage ) ;
Source:
protected org.ovirt.engine.api.model.Domain addParents ( org.ovirt.engine.api.model.Domain domain ) { if ( ( id ) != null ) { org.ovirt.engine.api.common.util.ReflectionHelper.assignChildModel ( domain , org.ovirt.engine.api.model.Domain.class ) . setId ( id ) ; } return domain ; }

Target:
protected org.ovirt.engine.api.model.Domain addParents ( org.ovirt.engine.api.model.Domain domain ) { if ( ( id ) != null ) { org.ovirt.engine.api.utils.ReflectionHelper.assignChildModel ( domain , org.ovirt.engine.api.model.Domain.class ) . setId ( id ) ; } return domain ; }
Source:
public void testGetAllForRoleAndAdElementWithInvalidRole ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.permissions > result = dao.getAllForRoleAndAdElement ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) , org.ovirt.engine.core.dao.PermissionDAOTest.AD_ELEMENT_ID ) ; org.ovirt.engine.core.dao.PermissionDAOTest.assertInvalidGetPermissionList ( result ) ; }

Target:
public void testGetAllForRoleAndAdElementWithInvalidRole ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.permissions > result = dao.getAllForRoleAndAdElement ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , org.ovirt.engine.core.dao.PermissionDAOTest.AD_ELEMENT_ID ) ; org.ovirt.engine.core.dao.PermissionDAOTest.assertInvalidGetPermissionList ( result ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid createTaskInCurrentTransaction ( org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand , org.ovirt.engine.core.common.VdcObjectType entityType , org.ovirt.engine.core.compat.Guid ... entityIds ) { return createTaskImpl ( asyncTaskCreationInfo , parentCommand , null , entityType , entityIds ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid createTaskInCurrentTransaction ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand , org.ovirt.engine.core.common.VdcObjectType entityType , org.ovirt.engine.core.compat.Guid ... entityIds ) { return createTaskImpl ( taskId , asyncTaskCreationInfo , parentCommand , null , entityType , entityIds ) ; }
Source:
public void testAllLunsHaveDiscardZeroesTheDataSupportFailsOneLunDoesNotSupport ( ) { junit.framework.Assert.assertFalse ( discardHelper.allLunsHaveDiscardZeroesTheDataSupport ( java.util.Arrays.asList ( createLunWithDiscardFunctionality ( 1024L , true ) , createLunWithDiscardFunctionality ( 0L , true ) , createLunWithDiscardFunctionality ( 2048L , false ) ) ) ) ; }

Target:
public void testAllLunsHaveDiscardZeroesTheDataSupportFailsOneLunDoesNotSupport ( ) { org.junit.Assert.assertFalse ( discardHelper.allLunsHaveDiscardZeroesTheDataSupport ( java.util.Arrays.asList ( createLunWithDiscardFunctionality ( 1024L , true ) , createLunWithDiscardFunctionality ( 0L , true ) , createLunWithDiscardFunctionality ( 2048L , false ) ) ) ) ; }
Source:
public void testGetVmDeviceByVmIdTypeAndDeviceFilteringWithPermissions ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > devices = dao.getVmDeviceByVmIdTypeAndDevice ( org.ovirt.engine.core.dao.VmDeviceDAOTest.EXISTING_VM_ID , "disk" , "disk" , org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , true ) ; org.ovirt.engine.core.dao.VmDeviceDAOTest.assertGetVMDeviceByIdTypeAndDeviceFullResult ( devices ) ; }

Target:
public void testGetVmDeviceByVmIdTypeAndDeviceFilteringWithPermissions ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > devices = dao.getVmDeviceByVmIdTypeAndDevice ( org.ovirt.engine.core.dao.VmDeviceDAOTest.EXISTING_VM_ID , VmDeviceGeneralType.DISK , "disk" , org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , true ) ; org.ovirt.engine.core.dao.VmDeviceDAOTest.assertGetVMDeviceByIdTypeAndDeviceFullResult ( devices ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.VDSGroup createNewVdsGroup ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup group = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; group.setCompatibilityVersion ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.VERSION_1_1 ) ; group.setName ( "Default" ) ; return group ; }

Target:
private static org.ovirt.engine.core.common.businessentities.VDSGroup createNewVdsGroup ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup group = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; group.setCompatibilityVersion ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.VERSION_1_1 ) ; group.setName ( "Default" ) ; group.setClusterPolicyId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; return group ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.IPv4Address getPrimaryAddress ( ) { return networkDataCenterIpConfigurationDefinition.getPrimaryAddress ( ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.IPv4Address getPrimaryAddress ( ) { return networkDataCenterIpConfigurationDefinition.getIpv4PrimaryAddress ( ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object result ) { java.lang.String version = ( ( java.lang.String ) ( result ) ) ; getView ( ) . setVersion ( version ) ; }

Target:
protected void onReveal ( ) { super . onReveal ( ) ; java.lang.String version = org.ovirt.engine.ui.common.system.EngineRpmVersionData.getVersion ( ) ; getView ( ) . setVersion ( version ) ; }
Source:
public void rerun ( ) { setFlow ( null ) ; super . rerun ( ) ; }

Target:
public void rerun ( ) { cleanupPassthroughVnics ( ) ; setFlow ( null ) ; super . rerun ( ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAllUpServers ( org.ovirt.engine.core.compat.Guid clusterId ) { return getVdsDao ( ) . getAllForClusterWithStatus ( clusterId , VDSStatus.Up ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAllUpServers ( org.ovirt.engine.core.compat.Guid clusterId ) { return getVdsDao ( ) . getAllForClusterWithStatusAndPeerStatus ( clusterId , VDSStatus.Up , PeerStatus.CONNECTED ) ; }
Source:
public void testGetEventMapByName ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.event_map > result = dao.getEventMapByName ( "TestRun" ) ; assertNotNull ( result ) ; for ( org.ovirt.engine.core.common.businessentities.event_map mapping : result ) { assertEquals ( "TestRun" , mapping.getevent_up_name ( ) ) ; } }

Target:
public void testGetEventMapByName ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.EventMap > result = dao.getEventMapByName ( "TestRun" ) ; assertNotNull ( result ) ; for ( org.ovirt.engine.core.common.businessentities.EventMap mapping : result ) { assertEquals ( "TestRun" , mapping.getEventUpName ( ) ) ; } }
Source:
public void testGetAllNamesPinnedToHostReturnsVmNameForHostPinned ( ) throws java.lang.Exception { java.util.List < java.lang.String > namesPinnedToHost = dao.getAllNamesPinnedToHost ( org.ovirt.engine.core.dao.VmStaticDAOTest.VDS_STATIC_ID ) ; org.junit.Assert.assertFalse ( namesPinnedToHost.isEmpty ( ) ) ; org.junit.Assert.assertTrue ( namesPinnedToHost.contains ( existingVmStatic.getvm_name ( ) ) ) ; }

Target:
public void testGetAllNamesPinnedToHostReturnsVmNameForHostPinned ( ) throws java.lang.Exception { java.util.List < java.lang.String > namesPinnedToHost = dao.getAllNamesPinnedToHost ( org.ovirt.engine.core.dao.VmStaticDAOTest.VDS_STATIC_ID ) ; org.junit.Assert.assertFalse ( namesPinnedToHost.isEmpty ( ) ) ; org.junit.Assert.assertTrue ( namesPinnedToHost.contains ( existingVmStatic.getVmName ( ) ) ) ; }
Source:
public void testGetTreeForEntityWithVmType ( ) { baseTestGetTreeForEntity ( org.ovirt.engine.core.dao.PermissionDaoTest.VM_ENTITY_ID , VdcObjectType.VM , org.ovirt.engine.core.dao.PermissionDaoTest.VDS_GROUP_ID ) ; }

Target:
public void testGetTreeForEntityWithVmType ( ) { baseTestGetTreeForEntity ( org.ovirt.engine.core.dao.PermissionDaoTest.VM_ENTITY_ID , VdcObjectType.VM , org.ovirt.engine.core.dao.PermissionDaoTest.CLUSTER_ID ) ; }
Source:
private void logFailureMessage ( java.lang.String messagePrefix , java.lang.RuntimeException ex ) { org.ovirt.engine.core.vdsbroker.VdsUpdateRunTimeInfo.log.error ( "{} vds={}({}): {}" , messagePrefix , _vds.getName ( ) , _vds.getId ( ) , ex.getMessage ( ) ) ; }

Target:
private void logFailureMessage ( java.lang.String messagePrefix , java.lang.RuntimeException ex ) { org.ovirt.engine.core.vdsbroker.HostMonitoring.log.error ( "{} vds={}({}): {}" , messagePrefix , _vds.getName ( ) , _vds.getId ( ) , ex.getMessage ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.Cluster getCluster ( ) { return getEntity ( org.ovirt.engine.core.common.businessentities.Cluster.class , VdcQueryType.GetClusterById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( clusterId ) , clusterId.toString ( ) ) ; }

Target:
public org.ovirt.engine.api.resource.AssignedNetworkResource getNetworkResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendClusterNetworkResource ( id , this ) ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepSessionStart ( java.lang.String volumeName , java.lang.String remoteHost , java.lang.String remoteVolumeName , java.lang.Boolean force ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepSessionStart ( java.lang.String volumeName , java.lang.String remoteHost , java.lang.String remoteVolumeName , java.lang.String userName , java.lang.Boolean force ) ;
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs args ) { java.lang.String propName = args.propertyName ; if ( "IsCiscoUcsPrimaryPmTypeSelected" . equals ( propName ) ) { getView ( ) . updatePmSlotLabelText ( model.isCiscoUcsPrimaryPmTypeSelected ( ) ) ; } }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { getView ( ) . flush ( ) ; getView ( ) . getTestButton ( ) . getCommand ( ) . execute ( ) ; }
Source:
public void OnTimer ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.LdapGroup > groups = org.ovirt.engine.core.bll.DbUserCacheManager.updateGroups ( ) ; refreshAllUserData ( groups ) ; }

Target:
public void onTimer ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.LdapGroup > groups = org.ovirt.engine.core.bll.DbUserCacheManager.updateGroups ( ) ; refreshAllUserData ( groups ) ; }
Source:
public java.lang.Void runInTransaction ( ) { org.ovirt.engine.core.bll.Backend.getInstance ( ) . getResourceManager ( ) . RunVdsCommand ( VDSCommandType.SpmStopOnIrs , new org.ovirt.engine.core.vdsbroker.irsbroker.SpmStopOnIrsVDSCommandParameters ( getStoragePool ( ) . getId ( ) ) ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { runVdsCommand ( VDSCommandType.SpmStopOnIrs , new org.ovirt.engine.core.vdsbroker.irsbroker.SpmStopOnIrsVDSCommandParameters ( getStoragePool ( ) . getId ( ) ) ) ; return null ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult attestationServerConfigured ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.VDS_GROUP_CANNOT_SET_TRUSTED_ATTESTATION_SERVER_NOT_CONFIGURED ) . when ( ( ( cluster.supportsTrustedService ( ) ) && ( ! ( attestationServerEnabled ( ) ) ) ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult attestationServerConfigured ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.CLUSTER_CANNOT_SET_TRUSTED_ATTESTATION_SERVER_NOT_CONFIGURED ) . when ( ( ( cluster.supportsTrustedService ( ) ) && ( ! ( attestationServerEnabled ( ) ) ) ) ) ; }
Source:
protected java.util.List < java.lang.Class < ? > > getValidationGroups ( ) { org.ovirt.engine.core.bll.UpdateVmPoolWithVmsCommand.addValidationGroup ( org.ovirt.engine.core.common.validation.group.UpdateEntity.class ) ; return super . getValidationGroups ( ) ; }

Target:
protected java.util.List < java.lang.Class < ? > > getValidationGroups ( ) { org.ovirt.engine.core.bll.UpdateVmPoolWithVmsCommand.addValidationGroup ( org.ovirt.engine.core.common.validation.group.CreateEntity.class ) ; org.ovirt.engine.core.bll.UpdateVmPoolWithVmsCommand.addValidationGroup ( org.ovirt.engine.core.common.validation.group.UpdateEntity.class ) ; return super . getValidationGroups ( ) ; }
Source:
public void validateFailsOnNull ( ) { cmd.getParameters ( ) . setBricks ( getBricks ( volumeWithRemoveBricksTaskCompleted ) ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFailsOnNull ( ) { cmd.getParameters ( ) . setBricks ( getBricks ( volumeWithRemoveBricksTaskCompleted ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_GLUSTER_VOLUME_INVALID ) ; }
Source:
protected org.ovirt.engine.api.model.Step postPopulate ( org.ovirt.engine.api.model.Step model ) { model.getStatus ( ) . setState ( "started" ) ; model.setType ( "validating" ) ; return super . postPopulate ( model ) ; }

Target:
protected org.ovirt.engine.api.model.Step postPopulate ( org.ovirt.engine.api.model.Step model ) { model.getStatus ( ) . setState ( "started" ) ; model.setType ( StepEnum.VALIDATING ) ; return super . postPopulate ( model ) ; }
Source:
void addStyles ( ) { pathEditor.addContentWidgetContainerStyleName ( style.pathEditorContent ( ) ) ; }

Target:
void addStyles ( ) { pathEditor.addContentWidgetContainerStyleName ( style.pathEditorContent ( ) ) ; vfsTypeEditor.addContentWidgetContainerStyleName ( style.vfsTypeTextBoxEditor ( ) ) ; mountOptionsEditor.addContentWidgetContainerStyleName ( style.mountOptionsTextBoxEditor ( ) ) ; }
Source:
public void nameAcceptableLength ( ) { org.ovirt.engine.core.bll.storage.StorageHandlingCommandBaseTest.setAcceptableNameLength ( 255 ) ; checkStoragePoolNameLengthFails ( ) ; }

Target:
public void nameAcceptableLength ( ) { storagePool.setName ( "123456789" ) ; checkStoragePoolNameLengthFails ( ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.IsVmWithSameNameExistQuery.getQueryReturnValue ( ) . setReturnValue ( isVmWithSameNameExistStatic ( ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.IsVmWithSameNameExistQuery.getQueryReturnValue ( ) . setReturnValue ( isVmWithSameNameExistStatic ( org.ovirt.engine.core.bll.IsVmWithSameNameExistQuery.getParameters ( ) . getName ( ) , org.ovirt.engine.core.bll.IsVmWithSameNameExistQuery.getParameters ( ) . getDatacenterId ( ) ) ) ; }
Source:
public void setinitrd_url ( java.lang.String value ) { this . initrd_url = value ; }

Target:
public java.lang.String getKernelParams ( ) { return this . kernelParams ; }
Source:
public void getByNameNonExistant ( ) { org.junit.Assert.assertNull ( dao.getByName ( ( ( org.ovirt.engine.core.dao.FixturesTool.PROVIDER_NAME ) + ( org.ovirt.engine.core.dao.FixturesTool.PROVIDER_NAME ) ) ) ) ; }

Target:
public void getByNameNonExistant ( ) { org.junit.jupiter.api.Assertions.assertNull ( dao.getByName ( ( ( org.ovirt.engine.core.dao.FixturesTool.PROVIDER_NAME ) + ( org.ovirt.engine.core.dao.FixturesTool.PROVIDER_NAME ) ) ) ) ; }
Source:
protected void handleAsynchrony ( org.ovirt.engine.core.common.action.VdcReturnValueBase result , R model ) { model.setCreationStatus ( org.ovirt.engine.api.common.util.StatusUtils.create ( getAsynchronousStatus ( result ) ) ) ; linkSubResource ( model , org.ovirt.engine.api.restapi.resource.AbstractBackendCollectionResource.CREATION_STATUS_REL , asString ( result.getTaskIdList ( ) ) ) ; }

Target:
protected void handleAsynchrony ( org.ovirt.engine.core.common.action.VdcReturnValueBase result , R model ) { model.setCreationStatus ( org.ovirt.engine.api.common.util.StatusUtils.create ( getAsynchronousStatus ( result ) ) ) ; linkSubResource ( model , org.ovirt.engine.api.restapi.resource.AbstractBackendCollectionResource.CREATION_STATUS_REL , asString ( result.getVdsmTaskIdList ( ) ) ) ; }
Source:
public org.ovirt.engine.core.compat.Guid mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { return new org.ovirt.engine.core.compat.Guid ( rs.getString ( 1 ) ) ; }

Target:
public org.ovirt.engine.core.compat.Guid mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { return new org.ovirt.engine.core.compat.Guid ( ( ( java.util.UUID ) ( rs.getObject ( 1 ) ) ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createNic ( java.lang.String nicName , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , nicName , false , null , null , networkName , true , null ) ; }

Target:
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 , networkName , true , null , null ) ; }
Source:
protected void copyVmDevices ( ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.copyVmDevices ( org.ovirt.engine.core.bll.AddVmCommand.getVmTemplateId ( ) , org.ovirt.engine.core.bll.AddVmCommand.getVmId ( ) , srcDiskIdToTargetDiskIdMapping , _vmInterfaces , org.ovirt.engine.core.bll.AddVmCommand.getParameters ( ) . isSoundDeviceEnabled ( ) , org.ovirt.engine.core.bll.AddVmCommand.getParameters ( ) . isConsoleEnabled ( ) ) ; }

Target:
protected void addVmInit ( ) { org.ovirt.engine.core.bll.VmHandler.addVmInitToDB ( org.ovirt.engine.core.bll.AddVmCommand.getParameters ( ) . getVmStaticData ( ) ) ; }
Source:
public void canExecute ( ) { org.junit.Assert.assertEquals ( result , org.ovirt.engine.core.common.VdcActionUtils.canExecute ( java.util.Collections.singletonList ( toTest ) , toTest.getClass ( ) , action ) ) ; }

Target:
public void canExecute ( ) { org.junit.Assert.assertEquals ( result , org.ovirt.engine.core.common.VdcActionUtils.canExecute ( java.util.Collections.< org.ovirt.engine.core.common.businessentities.BusinessEntityWithStatus < ? , ? > > singletonList ( toTest ) , toTest.getClass ( ) , action ) ) ; }
Source:
protected java.util.List < com.google.gwt.user.client.ui.Widget > resourceAllocationTemplateHiddenFields ( ) { return java.util.Arrays.< com.google.gwt.user.client.ui.Widget > asList ( cpuPinningPanel , storageAllocationPanel , disksAllocationPanel ) ; }

Target:
protected java.util.List < com.google.gwt.user.client.ui.Widget > resourceAllocationTemplateHiddenFields ( ) { return java.util.Arrays.< com.google.gwt.user.client.ui.Widget > asList ( cpuPinningRow , storageAllocationPanel , disksAllocationPanel ) ; }
Source:
private void coresPerSocket_EntityChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { behavior.coresPerSocketChanged ( ) ; }

Target:
private void coresPerSocket_EntityChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { removeCPUListeners ( ) ; behavior.coresPerSocketChanged ( ) ; addCPUListeners ( ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { getModel ( ) . getIsSoundcardEnabled ( ) . setEntity ( returnValue ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { getModel ( ) . getIsVirtioScsiEnabled ( ) . setEntity ( ( ( java.lang.Boolean ) ( returnValue ) ) ) ; }
Source:
private boolean hasStorageDomainExternalStatus ( ) { return ( ( org.ovirt.engine.core.bll.AddExternalEventCommand.getParameters ( ) . getEvent ( ) . getStorageDomainId ( ) ) != null ) && ( ( org.ovirt.engine.core.bll.AddExternalEventCommand.getParameters ( ) . getExternalStatus ( ) ) != null ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.AuditLog getEvent ( ) { return org.ovirt.engine.core.bll.AddExternalEventCommand.getParameters ( ) . getEvent ( ) ; }
Source:
public void checkRemoveConnectionEmptyId ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections newNFSConnection = createNFSConnection ( "multipass.my.domain.tlv.company.com:/export/allstorage/data2" , StorageType.NFS , NfsVersion.V4 , 300 , 0 ) ; newNFSConnection.setId ( "" ) ; parameters.setStorageServerConnection ( newNFSConnection ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_STORAGE_CONNECTION_ID_EMPTY ) ; }

Target:
public void checkRemoveConnectionEmptyId ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections newNFSConnection = org.ovirt.engine.core.bll.storage.connection.RemoveStorageServerConnectionCommandTest.createNFSConnection ( "multipass.my.domain.tlv.company.com:/export/allstorage/data2" , StorageType.NFS , NfsVersion.V4 , 300 , 0 ) ; newNFSConnection.setId ( "" ) ; parameters.setStorageServerConnection ( newNFSConnection ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_STORAGE_CONNECTION_ID_EMPTY ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.storage.Disk > getTemplateDisks ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getDiskDao ( ) . getAllForVm ( org.ovirt.engine.core.bll.storage.disk.GetVmTemplatesDisksQuery.getParameters ( ) . getId ( ) , org.ovirt.engine.core.bll.storage.disk.GetVmTemplatesDisksQuery.getUserID ( ) , org.ovirt.engine.core.bll.storage.disk.GetVmTemplatesDisksQuery.getParameters ( ) . isFiltered ( ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.storage.Disk > getTemplateDisks ( ) { return diskDao.getAllForVm ( org.ovirt.engine.core.bll.storage.disk.GetVmTemplatesDisksQuery.getParameters ( ) . getId ( ) , org.ovirt.engine.core.bll.storage.disk.GetVmTemplatesDisksQuery.getUserID ( ) , org.ovirt.engine.core.bll.storage.disk.GetVmTemplatesDisksQuery.getParameters ( ) . isFiltered ( ) ) ; }
Source:
org.ovirt.engine.core.bll.host.provider.foreman.ContentHost findContentHost ( java.lang.String hostName ) ;

Target:
boolean isContentHostExist ( java.lang.String hostName ) ;
Source:
protected void setAllowChangeHostPlacementPropertiesWhenNotInMaintenance ( ) { getDataCenter ( ) . setIsChangable ( true ) ; getCluster ( ) . setIsChangable ( true ) ; }

Target:
protected void setAllowChangeHostPlacementPropertiesWhenNotInMaintenance ( ) { getDataCenter ( ) . setIsChangeable ( true ) ; getCluster ( ) . setIsChangeable ( true ) ; }
Source:
private void invokeHostUpgrade ( org.ovirt.engine.core.bll.CommandBase < ? > command , org.ovirt.engine.core.common.action.hostdeploy.UpgradeHostParameters parameters ) { org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.executeAsyncCommand ( VdcActionType.UpgradeHostInternal , createUpgradeParameters ( parameters ) , command.cloneContextAndDetachFromParent ( ) ) ; }

Target:
private void invokeHostUpgrade ( org.ovirt.engine.core.bll.CommandBase < ? > command , org.ovirt.engine.core.common.action.hostdeploy.UpgradeHostParameters parameters ) { org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.executeAsyncCommand ( ActionType.UpgradeHostInternal , createUpgradeParameters ( parameters ) , command.cloneContextAndDetachFromParent ( ) ) ; }
Source:
public final boolean setData ( java.lang.String key , java.lang.Object value ) { java.lang.String sessionId = org.ovirt.engine.core.utils.ThreadLocalParamsContainer.getHttpSessionId ( ) ; if ( org.apache.commons.lang.StringUtils.isEmpty ( sessionId ) ) { return false ; } setData ( sessionId , key , value ) ; return true ; }

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:
public static void getAAAProfilesListViaPublic ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.convertAAAProfilesResult ( aQuery ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runPublicQuery ( VdcQueryType.GetAAAProfileList , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , aQuery ) ; }

Target:
public static void getAAAProfilesListViaPublic ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , boolean passwordBasedOnly ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.convertAAAProfilesResult ( aQuery , passwordBasedOnly ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runPublicQuery ( VdcQueryType.GetAAAProfileList , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , aQuery ) ; }
Source:
public void setInitrdUrl ( java.lang.String value ) { vmStatic.setinitrd_url ( value ) ; }

Target:
public java.lang.String getKernelUrl ( ) { return vmStatic.getKernelUrl ( ) ; }
Source:
private void updateArrayOfVmStaticsInDb ( org.ovirt.engine.core.common.businessentities.VmStatic [ ] vmStaticArray ) { for ( int i = 0 ; i < ( vmStaticArray.length ) ; i ++ ) { dbFacade.getVmStaticDAO ( ) . update ( vmStaticArray [ i ] ) ; } }

Target:
private void updateArrayOfVmStaticsInDb ( org.ovirt.engine.core.common.businessentities.VmStatic [ ] vmStaticArray ) { for ( int i = 0 ; i < ( vmStaticArray.length ) ; i ++ ) { dbFacade.getVmStaticDao ( ) . update ( vmStaticArray [ i ] ) ; } }
Source:
public void removeInterfaceFromVds ( org.ovirt.engine.core.compat.Guid id ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "id" , id ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getNetworkQosDao ( ) . remove ( id ) ; getCallsHandler ( ) . executeModification ( "Deletevds_interface" , parameterSource ) ; }

Target:
public void removeInterfaceFromVds ( org.ovirt.engine.core.compat.Guid id ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "id" , id ) ; networkQosDao.remove ( id ) ; getCallsHandler ( ) . executeModification ( "Deletevds_interface" , parameterSource ) ; }
Source:
private void initCommand ( ) { org.ovirt.engine.core.common.businessentities.VM vm = createVm ( ) ; command = createVmFromTemplateCommand ( vm ) ; generateStorageToDisksMap ( command ) ; initDestSDs ( command ) ; storageDomainValidator = org.mockito.Mockito.mock ( org.ovirt.engine.core.bll.validator.StorageDomainValidator.class ) ; }

Target:
private void initCommand ( ) { org.ovirt.engine.core.common.businessentities.VM vm = createVm ( ) ; command = createVmFromTemplateCommand ( vm ) ; generateStorageToDisksMap ( command ) ; initDestSDs ( command ) ; storageDomainValidator = org.mockito.Mockito.mock ( org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator.class ) ; }
Source:
public void edit ( ) { errataTable.asEditor ( ) . edit ( errataListModel ) ; }

Target:
public void edit ( ) { errataTable.asEditor ( ) . edit ( errataListModel ) ; updateFilterPanel ( ) ; errataTable.setLoadingState ( LoadingState.LOADED ) ; }
Source:
protected org.ovirt.engine.core.dao.StoragePoolIsoMapDAO getStoragePoolIsoMapDAO ( ) { return org.ovirt.engine.core.bll.storage.StorageHandlingCommandBase.getDbFacade ( ) . getStoragePoolIsoMapDao ( ) ; }

Target:
protected org.ovirt.engine.core.dao.StoragePoolIsoMapDao getStoragePoolIsoMapDao ( ) { return org.ovirt.engine.core.bll.storage.StorageHandlingCommandBase.getDbFacade ( ) . getStoragePoolIsoMapDao ( ) ; }
Source:
public void setEnabled ( boolean enabled ) { ( ( com.google.gwt.user.client.ui.HasEnabled ) ( contentWidget ) ) . setEnabled ( enabled ) ; }

Target:
public void setEnabled ( boolean enabled ) { label.setEnabled ( enabled ) ; ( ( com.google.gwt.user.client.ui.HasEnabled ) ( contentWidget ) ) . setEnabled ( enabled ) ; }
Source:
public void providerIsNotSet ( ) throws java.lang.Exception { validator = new org.ovirt.engine.core.bll.provider.ProviderValidator ( null ) ; org.junit.Assert.assertThat ( validator.providerIsSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_PROVIDER_DOESNT_EXIST ) ) ; }

Target:
public void providerIsNotSet ( ) throws java.lang.Exception { validator = new org.ovirt.engine.core.bll.provider.ProviderValidator ( null ) ; org.junit.Assert.assertThat ( validator.providerIsSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_PROVIDER_DOESNT_EXIST ) ) ; }
Source:
protected org.ovirt.engine.api.model.Network getEntity ( int index , boolean isDisplay ) { return org.ovirt.engine.api.restapi.resource.AbstractBackendNetworksResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.api.model.Network.class ) , isDisplay , index ) ; }

Target:
protected org.ovirt.engine.api.model.Network getEntity ( int index , boolean isDisplay , boolean isRequired ) { return org.ovirt.engine.api.restapi.resource.AbstractBackendNetworksResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.api.model.Network.class ) , isDisplay , isRequired , index ) ; }
Source:
public static java.lang.Boolean isMemorySnapshotSupportedByArchitecture ( org.ovirt.engine.core.common.businessentities.ArchitectureType architecture , org.ovirt.engine.core.compat.Version version ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.memorySnapshotSupport.get ( architecture ) . get ( version ) ; }

Target:
public java.lang.Boolean isMemorySnapshotSupportedByArchitecture ( org.ovirt.engine.core.common.businessentities.ArchitectureType architecture , org.ovirt.engine.core.compat.Version version ) { return memorySnapshotSupport.get ( architecture ) . get ( version ) ; }
Source:
public void validateEnums ( org.ovirt.engine.api.model.HostNIC hostNic ) { if ( hostNic.isSetBootProtocol ( ) ) { org.ovirt.engine.api.common.util.EnumValidator.validateEnum ( org.ovirt.engine.api.model.BootProtocol.class , hostNic.getBootProtocol ( ) , true ) ; } }

Target:
public void validateEnums ( org.ovirt.engine.api.model.HostNic hostNic ) { if ( hostNic.isSetBootProtocol ( ) ) { org.ovirt.engine.api.common.util.EnumValidator.validateEnum ( org.ovirt.engine.api.model.BootProtocol.class , hostNic.getBootProtocol ( ) , true ) ; } }