auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void setlast_modified_date ( java.util.Date value ) { this . last_modified_dateField = value ; }

Target:
public void setLastModifiedDate ( java.util.Date lastModifiedDate ) { this . lastModifiedDate = lastModifiedDate ; }
Source:
public void addPermissionsOnNetwork ( org.ovirt.engine.core.compat.Guid userId , org.ovirt.engine.core.compat.Guid networkId ) { org.ovirt.engine.core.bll.MultiLevelAdministrationHandler.addPermission ( userId , networkId , PredefinedRoles.NETWORK_ADMIN , VdcObjectType.Network ) ; }

Target:
public void addPermissionsOnNetwork ( org.ovirt.engine.core.compat.Guid userId , org.ovirt.engine.core.compat.Guid networkId ) { multiLevelAdministrationHandler.addPermission ( userId , networkId , PredefinedRoles.NETWORK_ADMIN , VdcObjectType.Network ) ; }
Source:
public void testExecuteQueryGetAllEntitiesCommand ( ) { getQuery ( ) . executeQueryCommand ( ) ; @ java.lang.SuppressWarnings ( value = "unchecked" ) java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > result = getQuery ( ) . getQueryReturnValue ( ) . getReturnValue ( ) ; org.junit.Assert.assertEquals ( "Wrong number of Templates in result" , 2 , result.size ( ) ) ; }

Target:
public void testExecuteQueryGetAllEntitiesCommand ( ) { getQuery ( ) . executeQueryCommand ( ) ; @ java.lang.SuppressWarnings ( value = "unchecked" ) java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > result = getQuery ( ) . getQueryReturnValue ( ) . getReturnValue ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( 2 , result.size ( ) , "Wrong number of Templates in result" ) ; }
Source:
public void setvm_pool_id ( org.ovirt.engine.core.compat.Guid value ) { this . id = value ; }

Target:
public void setvds_group_id ( org.ovirt.engine.core.compat.Guid value ) { this . vdsGroupId = value ; }
Source:
public void setName ( org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.String > value ) { this . name = value ; }

Target:
public void setSource ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportSource source ) { this . source = source ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.storage.ImageTransfer > searchImageTransfer ( ) { return genericSearch ( org.ovirt.engine.core.bll.SearchQuery.getDbFacade ( ) . getImageTransferDao ( ) , false ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.Quota > searchQuota ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Quota > quotaList = genericSearch ( quotaDao , true ) ; quotaManager.updateUsage ( quotaList ) ; return quotaList ; }
Source:
public void executeCommand ( ) { setupMocks ( ) ; mockBackendStatusChange ( true ) ; cmd.executeCommand ( ) ; org.junit.Assert.assertEquals ( AuditLogType.GLUSTER_HOOK_ENABLE , cmd.getAuditLogTypeValue ( ) ) ; }

Target:
public void executeCommand ( ) { setupMocks ( ) ; mockBackendStatusChange ( true ) ; cmd.executeCommand ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( AuditLogType.GLUSTER_HOOK_ENABLE , cmd.getAuditLogTypeValue ( ) ) ; }
Source:
protected org.ovirt.engine.core.dao.gluster.GlusterVolumeDao getGlusterVolumeDao ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getGlusterVolumeDao ( ) ; }

Target:
protected org.ovirt.engine.core.dao.gluster.GlusterVolumeDao getGlusterVolumeDao ( ) { return org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.dao.gluster.GlusterVolumeDao.class ) ; }
Source:
public void validVnicProfileWhenUnlinkingSupported ( ) throws java.lang.Exception { vnicProfileTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , true , org.ovirt.engine.core.bll.validator.VmNicValidatorTest.VNIC_PROFILE_ID ) ; }

Target:
public void validVnicProfileWhenUnlinkingNotSupported ( ) throws java.lang.Exception { vnicProfileLinkingTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , false , org.ovirt.engine.core.bll.validator.VmNicValidatorTest.VNIC_PROFILE_ID ) ; }
Source:
public void qosBondAndSlaveSpeedsZero ( ) { org.ovirt.engine.core.bll.network.host.SetupNetworksHelper helper = qosBondSpeedSetup ( 0 , 0 ) ; validateAndExpectViolation ( helper , VdcBllMessages.ACTION_TYPE_FAILED_HOST_NETWORK_QOS_INVALID_INTERFACE_SPEED , org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.BOND_NAME ) ; }

Target:
public void qosBondAndSlaveSpeedsZero ( ) { org.ovirt.engine.core.bll.network.host.SetupNetworksHelper helper = qosBondSpeedSetup ( 0 , 0 ) ; validateAndExpectViolation ( helper , EngineMessage.ACTION_TYPE_FAILED_HOST_NETWORK_QOS_INVALID_INTERFACE_SPEED , org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.BOND_NAME ) ; }
Source:
public void testFirstParameterIsNotNull ( ) { org.ovirt.engine.core.bll.UpdateMacPoolCommand.validateDefaultFlagIsNotChanged ( null , new org.ovirt.engine.core.common.businessentities.MacPool ( ) ) ; }

Target:
public void testFirstParameterIsNotNull ( ) { org.junit.jupiter.api.Assertions.assertThrows ( java.lang.IllegalArgumentException.class , ( ) -> org.ovirt.engine.core.bll.UpdateMacPoolCommand.validateDefaultFlagIsNotChanged ( null , new org.ovirt.engine.core.common.businessentities.MacPool ( ) ) ) ; }
Source:
public void testConnection ( ) { getAll ( ) ; }

Target:
private com.woorea.openstack.quantum.Quantum getClient ( ) { if ( ( client ) == null ) { client = new com.woorea.openstack.quantum.Quantum ( ( ( provider.getUrl ( ) ) + ( org.ovirt.engine.core.bll.provider.network.openstack.OpenstackNetworkProviderProxy.API_VERSION ) ) ) ; } return client ; }
Source:
public void testHasPeersFalse ( ) { org.mockito.Mockito.doReturn ( org.ovirt.engine.core.utils.gluster.GlusterUtilTest.OUTPUT_XML_NO_PEERS ) . when ( glusterUtil ) . executePeerStatusCommand ( client ) ; org.junit.Assert.assertFalse ( glusterUtil.hasPeers ( client ) ) ; }

Target:
public void testHasPeersFalse ( ) { org.mockito.Mockito.doReturn ( org.ovirt.engine.core.utils.gluster.GlusterUtilTest.OUTPUT_XML_NO_PEERS ) . when ( glusterUtil ) . executePeerStatusCommand ( client ) ; org.junit.Assert.assertTrue ( glusterUtil.getPeers ( client ) . isEmpty ( ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult notRemovingManagementNetwork ( ) { return createNetworkValidator ( ) . notRemovingManagementNetwork ( ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.NetworkAttachment getExistingNetworkAttachment ( ) { if ( ( existingNetworkAttachment ) == null ) { existingNetworkAttachment = networkAttachmentDao.get ( attachment.getId ( ) ) ; } return existingNetworkAttachment ; }
Source:
public void Search ( ) { if ( ( getEntity ( ) ) != null ) { setSearchString ( org.ovirt.engine.core.compat.StringFormat.format ( "events: event_storage=%1$s" , getEntity ( ) . getstorage_name ( ) ) ) ; super . Search ( ) ; } }

Target:
public void Search ( ) { if ( ( getEntity ( ) ) != null ) { setSearchString ( ( "events: event_storage=" + ( getEntity ( ) . getstorage_name ( ) ) ) ) ; super . Search ( ) ; } }
Source:
public void validateVmMemoryCanRunOnVdsHighMem ( ) { vm.setMinAllocatedMem ( 10000 ) ; vm.setVmMemSizeMb ( 10000 ) ; vds.setPhysicalMemMb ( 15000 ) ; boolean vmPassedMemoryRequirement = slaValidator.hasOvercommitMemoryToRunVM ( vds , vm ) ; org.junit.Assert.assertTrue ( vmPassedMemoryRequirement ) ; }

Target:
public void validateVmMemoryCanRunOnVdsHighMem ( ) { vm.setMinAllocatedMem ( 10000 ) ; vm.setVmMemSizeMb ( 10000 ) ; vds.setPhysicalMemMb ( 15000 ) ; boolean vmPassedMemoryRequirement = slaValidator.hasOvercommitMemoryToRunVM ( vds , vm ) ; org.junit.jupiter.api.Assertions.assertTrue ( vmPassedMemoryRequirement ) ; }
Source:
protected void setDestinationVdsId ( org.ovirt.engine.core.compat.Guid vdsId ) { destinationVds = ( vdsId != null ) ? org.ovirt.engine.core.bll.MigrateVmCommand.getVdsDAO ( ) . get ( vdsId ) : null ; }

Target:
protected void setDestinationVdsId ( org.ovirt.engine.core.compat.Guid vdsId ) { destinationVds = ( vdsId != null ) ? org.ovirt.engine.core.bll.MigrateVmCommand.getVdsDao ( ) . get ( vdsId ) : null ; }
Source:
private void initSearchDependencies ( ) { org.ovirt.engine.core.common.utils.SimpleDependecyInjector.getInstance ( ) . bind ( new org.ovirt.engine.core.searchbackend.OsValueAutoCompleter ( org.ovirt.engine.core.common.utils.SimpleDependecyInjector.getInstance ( ) . get ( org.ovirt.engine.core.common.osinfo.OsRepository.class ) . getUniqueOsNames ( ) ) ) ; }

Target:
private void loadService ( java.lang.Class < ? extends org.ovirt.engine.core.common.BackendService > service ) { org.ovirt.engine.core.bll.Backend.log.info ( "Start " , services.select ( service ) . get ( ) ) ; }
Source:
public void typeMatchesProfileOnlyProfilePassthrough ( ) { typeMatchesProfileCommon ( false , true ) ; org.junit.Assert.assertThat ( validator.typeMatchesProfile ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_VM_INTERFACE_TYPE_NOT_MATCH_PROFILE ) ) ; }

Target:
public void typeMatchesProfileOnlyProfilePassthrough ( ) { typeMatchesProfileCommon ( false , true ) ; org.junit.Assert.assertThat ( validator.typeMatchesProfile ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_VM_INTERFACE_TYPE_NOT_MATCH_PROFILE ) ) ; }
Source:
protected org.ovirt.engine.core.bll.network.macpool.MacPool getMacPool ( ) { return org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.bll.network.macpool.MacPoolPerDc.class ) . poolForDataCenter ( params.getStoragePoolId ( ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.StorageDomain getStorageDomain ( ) { if ( ( cachedStorageDomain ) == null ) { cachedStorageDomain = getStorageDomainDao ( ) . get ( params.getStorageDomainId ( ) ) ; } return cachedStorageDomain ; }
Source:
public void testGetByName ( ) { org.ovirt.engine.core.common.businessentities.tags tag = createTag ( "tag1" , "desc1" ) ; tagsDirector.AddTag ( tag ) ; org.ovirt.engine.core.common.businessentities.tags fromTagsDirector = tagsDirector.GetTagByName ( "tag1" ) ; org.junit.Assert.assertNotNull ( fromTagsDirector ) ; org.junit.Assert.assertEquals ( tag , fromTagsDirector ) ; }

Target:
public void testGetByName ( ) { org.ovirt.engine.core.common.businessentities.Tags tag = createTag ( "tag1" , "desc1" ) ; tagsDirector.AddTag ( tag ) ; org.ovirt.engine.core.common.businessentities.Tags fromTagsDirector = tagsDirector.GetTagByName ( "tag1" ) ; org.junit.Assert.assertNotNull ( fromTagsDirector ) ; org.junit.Assert.assertEquals ( tag , fromTagsDirector ) ; }
Source:
public int compare ( org.ovirt.engine.core.common.businessentities.VDS o1 , org.ovirt.engine.core.common.businessentities.VDS o2 ) { return ( o1.getvm_count ( ) ) - ( o2.getvm_count ( ) ) ; }

Target:
public int compare ( org.ovirt.engine.core.common.businessentities.VDS o1 , org.ovirt.engine.core.common.businessentities.VDS o2 ) { return ( o1.getVmCount ( ) ) - ( o2.getVmCount ( ) ) ; }
Source:
private java.lang.String showVncConsole ( org.ovirt.engine.ui.uicommonweb.models.HasConsoleModel model ) { model.getDefaultConsoleModel ( ) . getConnectCommand ( ) . Execute ( ) ; return null ; }

Target:
private java.lang.String showVncConsole ( org.ovirt.engine.ui.uicommonweb.models.HasConsoleModel model ) { model.getDefaultConsoleModel ( ) . getConnectCommand ( ) . execute ( ) ; return null ; }
Source:
private int calculateJsonFieldPotentialOverhead ( java.lang.String fieldName , java.util.Map < java.lang.String , java.lang.Object > descriptionMap ) { return ( java.lang.String.format ( "\"%s\":\"\"" , fieldName ) . length ( ) ) + ( descriptionMap.isEmpty ( ) ? 0 : 1 ) ; }

Target:
private int calculateJsonFieldPotentialOverhead ( java.lang.String fieldName , java.util.Map < java.lang.String , java.lang.Object > descriptionMap ) { return ( generateJsonField ( fieldName , StringUtils.EMPTY ) . length ( ) ) + ( descriptionMap.isEmpty ( ) ? 0 : 1 ) ; }
Source:
public boolean render ( org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel value ) { if ( value instanceof org.ovirt.engine.ui.uicommonweb.models.vms.SpiceConsoleModel ) { return extractBoolean ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.SpiceConsoleModel ) ( value ) ) . getspice ( ) ) ; } return false ; }

Target:
public boolean render ( org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel value ) { if ( value instanceof org.ovirt.engine.ui.uicommonweb.models.vms.SpiceConsoleModel ) { return extractBoolean ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.SpiceConsoleModel ) ( value ) ) . getSpiceImpl ( ) ) ; } return false ; }
Source:
public java.lang.String render ( org.ovirt.engine.core.compat.RpmVersion version ) { java.lang.String formattedVersion ; formattedVersion = version.getRpmName ( ) ; return new org.ovirt.engine.ui.common.widget.renderer.EmptyValueRenderer < java.lang.String > ( org.ovirt.engine.ui.webadmin.gin.ClientGinjectorProvider.getApplicationConstants ( ) . unAvailablePropertyLabel ( ) ) . render ( formattedVersion ) ; }

Target:
public java.lang.String render ( org.ovirt.engine.core.compat.RpmVersion version ) { java.lang.String formattedVersion = version.getRpmName ( ) ; return new org.ovirt.engine.ui.common.widget.renderer.EmptyValueRenderer < java.lang.String > ( org.ovirt.engine.ui.webadmin.widget.renderer.VersionRenderer.constants.unAvailablePropertyLabel ( ) ) . render ( formattedVersion ) ; }
Source:
public void cutFromTree ( ) { if ( hasParent ( ) ) { parent.getNodes ( ) . remove ( this ) ; if ( parent.getNodes ( ) . isEmpty ( ) ) { parent.cutFromTree ( ) ; } } }

Target:
public void cutSelf ( ) { if ( hasParent ( ) ) { parent.getNodes ( ) . remove ( this ) ; if ( parent.getNodes ( ) . isEmpty ( ) ) { parent.cutSelf ( ) ; } } }
Source:
private void initProcessedInfoLists ( ) { proccessedIdsInfo = new java.util.LinkedList < org.ovirt.engine.core.compat.Guid > ( ) ; proccessedOvfGenerationsInfo = new java.util.LinkedList < java.lang.Long > ( ) ; }

Target:
private void initProcessedInfoLists ( ) { proccessedIdsInfo = new java.util.LinkedList < org.ovirt.engine.core.compat.Guid > ( ) ; proccessedOvfGenerationsInfo = new java.util.LinkedList < java.lang.Long > ( ) ; proccessedOvfConfigurationsInfo = new java.util.LinkedList < > ( ) ; removedOvfIdsInfo = null ; }
Source:
protected org.ovirt.engine.api.model.StorageDomain addParents ( org.ovirt.engine.api.model.StorageDomain storageDomain ) { storageDomain.setDataCenter ( new org.ovirt.engine.api.model.DataCenter ( ) ) ; storageDomain.getDataCenter ( ) . setId ( dataCenterId.toString ( ) ) ; return storageDomain ; }

Target:
protected org.ovirt.engine.api.model.StorageDomain addParents ( org.ovirt.engine.api.model.StorageDomain storageDomain ) { storageDomain.setDataCenter ( new org.ovirt.engine.api.model.DataCenter ( ) ) ; storageDomain.getDataCenter ( ) . setId ( dataCenterId.toString ( ) ) ; org.ovirt.engine.api.restapi.util.StorageDomainHelper.addAttachedDataCenterReferences ( this , storageDomain ) ; return storageDomain ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { loginModel.getLoginCommand ( ) . Execute ( ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { getView ( ) . flush ( ) ; getView ( ) . getLoginButton ( ) . getCommand ( ) . Execute ( ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { java.io.File etcDir = new java.io.File ( this . getClass ( ) . getClassLoader ( ) . getResource ( "./org/ovirt/engine/core/utils" ) . getFile ( ) ) ; testManager = new org.ovirt.engine.core.utils.branding.BrandingManager ( etcDir ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { java.io.File etcDir = new java.io.File ( this . getClass ( ) . getClassLoader ( ) . getResource ( "./org/ovirt/engine/core/utils" ) . toURI ( ) . getPath ( ) ) ; testManager = new org.ovirt.engine.core.utils.branding.BrandingManager ( etcDir ) ; }
Source:
private boolean isHostedEngineOnVds ( ) { for ( org.ovirt.engine.core.common.businessentities.VM vm : vms ) { if ( vm.isHostedEngine ( ) ) { return true ; } } return false ; }

Target:
private boolean isHostedEngineOnVds ( ) { return vms.stream ( ) . anyMatch ( VM :: isHostedEngine ) ; }
Source:
public void onFailed ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { getCommand ( cmdId ) . endAction ( ) ; org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.removeAllCommandsInHierarchy ( cmdId ) ; }

Target:
public void onFailed ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { revertCinderDisks ( childCmdIds ) ; getCommand ( cmdId ) . endAction ( ) ; getCommand ( cmdId ) . getParameters ( ) . setTaskGroupSuccess ( false ) ; }
Source:
public void testGetByNameWithInvalidName ( ) { org.ovirt.engine.core.common.businessentities.VdsStatic result = dao.get ( "farkle" ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetByVdsNameWithInvalidName ( ) { org.ovirt.engine.core.common.businessentities.VdsStatic result = dao.getByVdsName ( "farkle" ) ; org.junit.Assert.assertNull ( result ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.gluster.GetGlusterHooksQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.gluster.GetGlusterHooksQuery.getGlusterHookDao ( ) . getByClusterId ( org.ovirt.engine.core.bll.gluster.GetGlusterHooksQuery.getParameters ( ) . getClusterId ( ) ) ) ; org.ovirt.engine.core.bll.gluster.GetGlusterHooksQuery.getQueryReturnValue ( ) . setSucceeded ( true ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.gluster.GetGlusterHooksQuery.getQueryReturnValue ( ) . setReturnValue ( glusterHooksDao.getByClusterId ( org.ovirt.engine.core.bll.gluster.GetGlusterHooksQuery.getParameters ( ) . getClusterId ( ) ) ) ; org.ovirt.engine.core.bll.gluster.GetGlusterHooksQuery.getQueryReturnValue ( ) . setSucceeded ( true ) ; }
Source:
public void tearDown ( ) { org.ovirt.engine.core.aaa.AuthenticatorManager.getInstance ( ) . clear ( ) ; org.ovirt.engine.core.aaa.DirectoryManager.getInstance ( ) . clear ( ) ; org.ovirt.engine.core.aaa.AuthenticationProfileManager.getInstance ( ) . clear ( ) ; }

Target:
public void tearDown ( ) { org.ovirt.engine.core.aaa.AuthenticationProfileRepository.getInstance ( ) . clear ( ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( getIPv4Addresses ( ) ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hashCode ( iPv4Addresses ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc copyData ( java.util.Map src , java.util.Map dst , boolean collapse ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc copyData ( java.lang.String jobId , java.util.Map src , java.util.Map dst ) ;
Source:
public org.ovirt.engine.core.bll.tasks.interfaces.CommandCallback getCallback ( ) { return org.ovirt.engine.core.bll.RunVmCommand.getParameters ( ) . isUseCinderCommandCallback ( ) ? new org.ovirt.engine.core.bll.ConcurrentChildCommandsExecutionCallback ( ) : null ; }

Target:
public org.ovirt.engine.core.bll.tasks.interfaces.CommandCallback getCallback ( ) { return ( org.ovirt.engine.core.bll.RunVmCommand.getParameters ( ) . isUseCinderCommandCallback ( ) ) && ( getFlow ( ) . isStateless ( ) ) ? new org.ovirt.engine.core.bll.ConcurrentChildCommandsExecutionCallback ( ) : null ; }
Source:
public void testValidModifiedBondsFailsWhenBondNotHaveNameAndId ( ) throws java.lang.Exception { doTestValidModifiedBonds ( new org.ovirt.engine.core.common.businessentities.network.Bond ( ) , ValidationResult.VALID , new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.BOND_DOES_NOT_HAVE_NEITHER_ID_NOR_NAME_SPECIFIED ) , ValidationResult.VALID ) ; }

Target:
public void testValidModifiedBondsFailsWhenBondNotHaveNameAndId ( ) throws java.lang.Exception { org.ovirt.engine.core.common.action.CreateOrUpdateBond createOrUpdateBond = new org.ovirt.engine.core.common.action.CreateOrUpdateBond ( ) ; doTestValidModifiedBonds ( createOrUpdateBond , ValidationResult.VALID , new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.BOND_DOES_NOT_HAVE_NEITHER_ID_NOR_NAME_SPECIFIED ) , ValidationResult.VALID ) ; }
Source:
protected boolean validateTemplateArchitecture ( ) { if ( ( getVmTemplate ( ) . getClusterArch ( ) ) == ( org.ovirt.engine.core.common.businessentities.ArchitectureType.undefined ) ) { addCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_VM_CANNOT_IMPORT_TEMPLATE_WITH_NOT_SUPPORTED_ARCHITECTURE ) ; return false ; } return true ; }

Target:
protected boolean validateTemplateArchitecture ( ) { if ( ( getVmTemplate ( ) . getClusterArch ( ) ) == ( org.ovirt.engine.core.common.businessentities.ArchitectureType.undefined ) ) { addCanDoActionMessage ( EngineMessage.ACTION_TYPE_FAILED_VM_CANNOT_IMPORT_TEMPLATE_WITH_NOT_SUPPORTED_ARCHITECTURE ) ; return false ; } return true ; }
Source:
public void prepareSetupNetworksParamsToAttachTo ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkInterfaceModel targetNic ) { org.ovirt.engine.core.common.businessentities.network.NetworkAttachment networkAttachment = createAttachmentWhenAttachingTo ( targetNic.getOriginalIface ( ) ) ; networkModel.getSetupModel ( ) . getHostSetupNetworksParametersData ( ) . getNetworkAttachments ( ) . add ( networkAttachment ) ; }

Target:
public void prepareSetupNetworksParamsToAttachTo ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkInterfaceModel targetNic ) { org.ovirt.engine.core.common.businessentities.network.NetworkAttachment networkAttachment = createAttachmentWhenAttachingTo ( targetNic.getOriginalIface ( ) ) ; networkModel.getSetupModel ( ) . getHostSetupNetworksParametersData ( ) . addNetworkAttachmentToParameters ( networkAttachment ) ; }
Source:
public void testGetTagVmMapByTag ( ) { org.ovirt.engine.core.common.businessentities.tags_vm_map result = dao.getTagVmByTagIdAndByVmId ( existingVmTag.gettag_id ( ) , existingVmTag.getvm_id ( ) ) ; assertNotNull ( result ) ; assertEqualsTagsVmMap ( existingVmTag , result ) ; }

Target:
public void testGetTagVmMapByTag ( ) { org.ovirt.engine.core.common.businessentities.TagsVmMap result = dao.getTagVmByTagIdAndByVmId ( existingVmTag.gettag_id ( ) , existingVmTag.getvm_id ( ) ) ; assertNotNull ( result ) ; assertEqualsTagsVmMap ( existingVmTag , result ) ; }
Source:
public boolean isVmNetwork ( ) { return getEntity ( ) . isVmNetwork ( ) ; }

Target:
public boolean isMigrationNetwork ( ) { return getEntity ( ) . getCluster ( ) . isMigration ( ) ; }
Source:
protected org.ovirt.engine.api.model.DataCenter postPopulate ( org.ovirt.engine.api.model.DataCenter model ) { model.setStorageFormat ( org.ovirt.engine.api.restapi.types.MappingTestHelper.shuffle ( org.ovirt.engine.api.restapi.model.StorageFormat.class ) . value ( ) ) ; model.setQuotaMode ( org.ovirt.engine.api.restapi.types.MappingTestHelper.shuffle ( org.ovirt.engine.api.model.QuotaModeType.class ) . value ( ) ) ; return model ; }

Target:
protected org.ovirt.engine.api.model.DataCenter postPopulate ( org.ovirt.engine.api.model.DataCenter model ) { model.setStorageFormat ( org.ovirt.engine.api.restapi.types.MappingTestHelper.shuffle ( org.ovirt.engine.api.model.StorageFormat.class ) ) ; model.setQuotaMode ( org.ovirt.engine.api.restapi.types.MappingTestHelper.shuffle ( org.ovirt.engine.api.model.QuotaModeType.class ) ) ; return model ; }
Source:
public void testGetAllForNetworkHasPermission ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VnicProfile > result = dao.getAllForNetwork ( FixturesTool.NETWORK_ENGINE , org.ovirt.engine.core.dao.network.VnicProfileDaoTest.PRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( 2 , result.size ( ) ) ; }

Target:
public void testGetAllForNetwork ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VnicProfile > result = dao.getAllForNetwork ( FixturesTool.NETWORK_ENGINE ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( 2 , result.size ( ) ) ; }
Source:
public void testGetDataAndSetDataWithFullSession ( ) { container.setData ( org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_SESSION_ID , org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_KEY , org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_VALUE ) ; org.junit.Assert.assertEquals ( "Get should return the value with a given session" , org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_VALUE , container.getData ( org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_SESSION_ID , org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_KEY , false ) ) ; }

Target:
public void testGetDataAndSetDataWithFullSession ( ) { container.setData ( org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_SESSION_ID , org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_KEY , org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_VALUE ) ; org.junit.Assert.assertEquals ( "Get should return the value with a given session" , org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_VALUE , container.getData ( org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_SESSION_ID , org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_KEY , false ) ) ; clearSession ( ) ; }
Source:
public void update ( int index , org.ovirt.engine.ui.uicommonweb.models.vms.ImportEntityData < E > object , java.lang.String value ) { registerEntityModel.selectQuotaByName ( value , object.getClusterQuota ( ) ) ; }

Target:
public void update ( int index , D object , java.lang.String value ) { registerEntityModel.selectQuotaByName ( value , object.getClusterQuota ( ) ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { getView ( ) . flush ( ) ; getView ( ) . getTestButton ( ) . getCommand ( ) . execute ( ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { com.google.gwt.user.client.Window.open ( dynamicMessages.fencingOptionsUrl ( ) , "_blank" , null ) ; }
Source:
public void testSave ( ) { dao.save ( new_bookmark ) ; org.ovirt.engine.core.common.businessentities.bookmarks result = dao.getByName ( new_bookmark.getbookmark_name ( ) ) ; assertNotNull ( result ) ; }

Target:
public void testSave ( ) { dao.save ( new_bookmark ) ; org.ovirt.engine.core.common.businessentities.Bookmark result = dao.getByName ( new_bookmark.getbookmark_name ( ) ) ; assertNotNull ( result ) ; }
Source:
public void onSuccess ( ) { releaseMacs ( ) ; }

Target:
public void onSuccess ( ) { log.debug ( "Command succeeded, releasing macs {}." , super . macs ) ; releaseMacs ( ) ; }
Source:
public org.ovirt.engine.ui.common.widget.table.column.TextCellWithEditableTooltip getCell ( ) { org.ovirt.engine.ui.common.widget.table.column.TextCellWithEditableTooltip textCellWithEditableTooltip = super . getCell ( ) ; textCellWithEditableTooltip.setTitle ( constants.quotaCalculationsMessage ( ) ) ; return textCellWithEditableTooltip ; }

Target:
public org.ovirt.engine.ui.common.widget.table.cell.TextCellWithEditableTooltip getCell ( ) { org.ovirt.engine.ui.common.widget.table.cell.TextCellWithEditableTooltip textCellWithEditableTooltip = super . getCell ( ) ; textCellWithEditableTooltip.setTitle ( constants.quotaCalculationsMessage ( ) ) ; return textCellWithEditableTooltip ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml volumeActivityMenu ( com.google.gwt.safehtml.shared.SafeHtml statusImage ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml statusTemplate ( com.google.gwt.safehtml.shared.SafeHtml statusImage , java.lang.String id ) ;
Source:
public void warn ( java.lang.Object msg ) { log.warn ( addPrefixToLogMessage ( msg ) ) ; }

Target:
public void warn ( java.lang.Object msg ) { log.warn ( convertToString ( msg ) ) ; }
Source:
public void canDoActionSucceeds ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.DisableGlusterHookCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterHookStatusChangeParameters ( CLUSTER_ID , HOOK_ID ) ) ) ; setupMocks ( cmd ) ; org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }

Target:
public void canDoActionSucceeds ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.DisableGlusterHookCommand < org.ovirt.engine.core.common.action.gluster.GlusterHookParameters > ( new org.ovirt.engine.core.common.action.gluster.GlusterHookParameters ( HOOK_ID ) ) ) ; setupMocks ( cmd ) ; org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }
Source:
protected void freeCustomLocks ( ) { releaseHostDevicesLock ( ) ; }

Target:
private boolean checkRequiredHostDevicesAvailability ( ) { if ( ! ( needsHostDevices ) ) { return true ; } return hostDeviceManager.checkVmHostDeviceAvailability ( org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) , org.ovirt.engine.core.bll.RunVmCommand.getVm ( ) . getDedicatedVmForVdsList ( ) . get ( 0 ) ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getVmDynamicDao ( ) ; existingVm = dao.get ( new org.ovirt.engine.core.compat.Guid ( "77296e00-0cad-4e5a-9299-008a7b6f4355" ) ) ; existingVm.setStatus ( VMStatus.Up ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getVmDynamicDao ( ) ; existingVm = dao.get ( FixturesTool.VM_RHEL5_POOL_57 ) ; existingVm.setStatus ( VMStatus.Up ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { command.Execute ( ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { command.execute ( ) ; }
Source:
public void updateStatusForNonExistingSnapshot ( ) { org.ovirt.engine.core.compat.Guid snapshotId = org.ovirt.engine.core.compat.Guid.Empty ; org.junit.Assert.assertNull ( dao.get ( snapshotId ) ) ; dao.updateStatus ( snapshotId , SnapshotStatus.LOCKED ) ; org.junit.Assert.assertNull ( dao.get ( snapshotId ) ) ; }

Target:
public void updateStatusForNonExistingSnapshot ( ) { org.ovirt.engine.core.compat.Guid snapshotId = org.ovirt.engine.core.compat.Guid.Empty ; org.junit.jupiter.api.Assertions.assertNull ( dao.get ( snapshotId ) ) ; dao.updateStatus ( snapshotId , SnapshotStatus.LOCKED ) ; org.junit.jupiter.api.Assertions.assertNull ( dao.get ( snapshotId ) ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyNativeGotDisabledLegacyPolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; usb.setType ( "legacy" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE , null ) , UsbPolicy.DISABLED ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyLegacyGotNullUsb ( ) { org.ovirt.engine.api.model.Usb usb = null ; org.ovirt.engine.core.common.businessentities.UsbPolicy currentPolicy = org.ovirt.engine.core.common.businessentities.UsbPolicy.ENABLED_LEGACY ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , currentPolicy ) , currentPolicy ) ; }
Source:
public void testRemoveCantDo ( ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.Search , org.ovirt.engine.core.common.queries.SearchParameters.class , new java.lang.String [ ] { "SearchPattern" , "SearchTypeValue" } , new java.lang.Object [ ] { "users:" , org.ovirt.engine.core.common.interfaces.SearchType.DBUser } , getUsers ( ) ) ; doTestBadRemove ( false , true , org.ovirt.engine.api.restapi.resource.CANT_DO ) ; }

Target:
public void testRemoveFailed ( ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.Search , org.ovirt.engine.core.common.queries.SearchParameters.class , new java.lang.String [ ] { "SearchPattern" , "SearchTypeValue" } , new java.lang.Object [ ] { "users:" , org.ovirt.engine.core.common.interfaces.SearchType.DBUser } , getUsers ( ) ) ; doTestBadRemove ( true , false , org.ovirt.engine.api.restapi.resource.FAILURE ) ; }
Source:
public void removeNetwork ( org.ovirt.engine.core.compat.Guid vfsConfigId , org.ovirt.engine.core.compat.Guid networkId ) { getCallsHandler ( ) . executeModification ( "DeletevfsConfigNetwork" , createNetworkParametersMapper ( vfsConfigId , networkId ) ) ; }

Target:
public void addLabel ( org.ovirt.engine.core.compat.Guid vfsConfigId , java.lang.String label ) { getCallsHandler ( ) . executeModification ( "InsertVfsConfigLabel" , createLabelParametersMapper ( vfsConfigId , label ) ) ; }
Source:
public org.ovirt.engine.api.v3.types.V3VM update ( org.ovirt.engine.api.v3.types.V3VM vm ) { vm = adaptUpdate ( getDelegate ( ) :: update , vm ) ; org.ovirt.engine.api.v3.helpers.V3VmHelper.addDisksLink ( vm ) ; return vm ; }

Target:
public org.ovirt.engine.api.v3.types.V3VM update ( org.ovirt.engine.api.v3.types.V3VM vm ) { vm = adaptUpdate ( getDelegate ( ) :: update , vm ) ; org.ovirt.engine.api.v3.helpers.V3VmHelper.addDisksLink ( vm ) ; org.ovirt.engine.api.v3.helpers.V3VmHelper.addGuestIp ( vm ) ; return vm ; }
Source:
private void updateItemsAvailability ( ) { if ( ( getItems ( ) ) == null ) { return ; } behavior.updateItemsAvailability ( ) ; }

Target:
private void updateItemsAvailability ( ) { if ( ( getStorageModels ( ) ) == null ) { return ; } behavior.updateItemsAvailability ( ) ; }
Source:
public void testRemove ( ) { dao.remove ( existingAdGroup.getid ( ) ) ; org.ovirt.engine.core.common.businessentities.ad_groups result = dao.get ( existingAdGroup.getid ( ) ) ; assertNull ( result ) ; }

Target:
public void testRemove ( ) { dao.remove ( existingAdGroup.getid ( ) ) ; org.ovirt.engine.core.common.businessentities.LdapGroup result = dao.get ( existingAdGroup.getid ( ) ) ; assertNull ( result ) ; }
Source:
public void defaultClusterInLocalFs ( ) { createCommandWithDefaultVdsGroup ( ) ; oldGroupIsDetachedDefault ( ) ; storagePoolIsLocalFS ( ) ; cpuExists ( ) ; cpuManufacturersMatch ( ) ; allQueriesEmpty ( ) ; canDoActionFailedWithReason ( VdcBllMessages.DEFAULT_CLUSTER_CANNOT_BE_ON_LOCALFS ) ; }

Target:
public void defaultClusterInLocalFs ( ) { createCommandWithDefaultVdsGroup ( ) ; oldGroupIsDetachedDefault ( ) ; storagePoolIsLocalFS ( ) ; cpuExists ( ) ; cpuManufacturersMatch ( ) ; allQueriesForVms ( ) ; canDoActionFailedWithReason ( VdcBllMessages.DEFAULT_CLUSTER_CANNOT_BE_ON_LOCALFS ) ; }
Source:
private void prepareMessageSubject ( java.lang.String hostName , org.ovirt.engine.core.common.businessentities.AuditLogEvent event ) { subject = org.ovirt.engine.core.notifier.transport.smtp.MessageHelper.prepareMessageSubject ( event.getType ( ) , hostName , event.getMessage ( ) ) ; }

Target:
private void prepareMessageSubject ( java.lang.String hostName , org.ovirt.engine.core.notifier.filter.AuditLogEvent event ) { subject = org.ovirt.engine.core.notifier.transport.smtp.MessageHelper.prepareMessageSubject ( event.getType ( ) , hostName , event.getMessage ( ) ) ; }
Source:
private void Alert ( org.ovirt.engine.core.common.AuditLogType logType , java.lang.String reason ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase alert = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; alert.setVdsId ( getVdsId ( ) ) ; alert.addCustomValue ( "Reason" , reason ) ; org.ovirt.engine.core.dal.dbbroker.auditloghandling.AlertDirector.Alert ( alert , logType ) ; }

Target:
private void alert ( org.ovirt.engine.core.common.AuditLogType logType , java.lang.String reason ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase alert = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; alert.setVdsId ( getVdsId ( ) ) ; alert.addCustomValue ( "Reason" , reason ) ; org.ovirt.engine.core.dal.dbbroker.auditloghandling.AlertDirector.Alert ( alert , logType ) ; }
Source:
public void onFailed ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { revertCinderDisks ( childCmdIds ) ; getCommand ( cmdId ) . endAction ( ) ; org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.removeAllCommandsInHierarchy ( cmdId ) ; }

Target:
public void onFailed ( org.ovirt.engine.core.compat.Guid cmdId , java.util.List < org.ovirt.engine.core.compat.Guid > childCmdIds ) { revertCinderDisks ( childCmdIds ) ; getCommand ( cmdId ) . endAction ( ) ; getCommand ( cmdId ) . getParameters ( ) . setTaskGroupSuccess ( false ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VDS object ) { return java.lang.String.valueOf ( object.getvm_count ( ) ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VDS object ) { return java.lang.String.valueOf ( object.getVmCount ( ) ) ; }
Source:
public void attachmentAndNicLabelReferenceSameLabelConflict ( ) { attachmentAndNicLabelReferenceSameLabelCommonTest ( false , false ) ; }

Target:
public void attachmentAndNicLabelReferenceSameLabelNotConflict ( ) { final boolean referenceSameNic = true ; attachmentAndNicLabelReferenceSameLabelCommonTest ( referenceSameNic , true ) ; }
Source:
public void testAllDomainsExistAndActiveAllActive ( ) { domain1.setStatus ( StorageDomainStatus.Active ) ; domain2.setStatus ( StorageDomainStatus.Active ) ; org.junit.Assert.assertTrue ( "Both domains should be active" , validator.allDomainsExistAndActive ( ) . isValid ( ) ) ; }

Target:
public void testAllDomainsExistAndActiveAllActive ( ) { domain1.setStatus ( StorageDomainStatus.Active ) ; domain2.setStatus ( StorageDomainStatus.Active ) ; domain3.setStatus ( StorageDomainStatus.Active ) ; org.junit.Assert.assertTrue ( "Both domains should be active" , validator.allDomainsExistAndActive ( ) . isValid ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.DbUser getUser ( java.lang.String sessionId , boolean refresh ) { return ( ( org.ovirt.engine.core.common.businessentities.DbUser ) ( getData ( sessionId , org.ovirt.engine.core.bll.session.SessionDataContainer.USER_PARAMETER_NAME , refresh ) ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.DbUser getUser ( java.lang.String sessionId , boolean refresh ) { return ( ( org.ovirt.engine.core.common.businessentities.DbUser ) ( getData ( sessionId , org.ovirt.engine.core.bll.aaa.SessionDataContainer.USER_PARAMETER_NAME , refresh ) ) ) ; }
Source:
public void setAutoStartup ( boolean value ) { vmStatic.setauto_startup ( value ) ; }

Target:
public org.ovirt.engine.core.compat.NGuid getDedicatedVmForVds ( ) { return vmStatic.getDedicatedVmForVds ( ) ; }
Source:
public void testNetworkAttachmentIsSetWhenAttachmentIsNull ( ) throws java.lang.Exception { org.junit.Assert.assertThat ( createNetworkAttachmentValidator ( null ) . networkAttachmentIsSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.NETWORK_ATTACHMENT_NOT_EXISTS ) ) ; }

Target:
public void testNetworkAttachmentIsSetWhenAttachmentIsNull ( ) throws java.lang.Exception { org.junit.Assert.assertThat ( createNetworkAttachmentValidator ( null ) . networkAttachmentIsSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.NETWORK_ATTACHMENT_NOT_EXISTS , HostSetupNetworksValidator.VAR_NETWORK_ATTACHMENT_NOT_EXISTS_ENTITY , "null" ) ) ; }
Source:
private void debugQuery ( org.ovirt.engine.core.common.queries.VdcQueryType queryType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters ) { org.ovirt.engine.ui.frontend.server.gwt.GenericApiGWTServiceImpl.log.debug ( "Query type '{}', Parameters '{}'" , queryType , parameters ) ; }

Target:
private void debugQuery ( org.ovirt.engine.core.common.queries.QueryType queryType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters ) { org.ovirt.engine.ui.frontend.server.gwt.GenericApiGWTServiceImpl.log.debug ( "Query type '{}', Parameters '{}'" , queryType , parameters ) ; }
Source:
void initStyles ( ) { tableContainer.setStyleName ( ( showDefaultHeader ? style.contentWithDefaultHeader ( ) : style.content ( ) ) ) ; }

Target:
protected java.lang.String getTableContainerStyleName ( ) { return showDefaultHeader ? style.contentWithDefaultHeader ( ) : style.content ( ) ; }
Source:
public void canRebalanceOnDistributedVolume ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity volumeEntity = getDistributedVolume ( volumeId1 , 5 ) ; org.ovirt.engine.core.bll.ValidationResult validationResult = brickValidator.canRebalance ( volumeEntity ) ; org.junit.Assert.assertTrue ( validationResult.isValid ( ) ) ; }

Target:
public void canRebalanceOnDistributedVolume ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity volumeEntity = getDistributedVolume ( volumeId1 , 5 ) ; org.ovirt.engine.core.bll.ValidationResult validationResult = brickValidator.canRebalance ( volumeEntity ) ; org.junit.Assert.assertThat ( validationResult , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
protected boolean canDoAction ( ) { return canDetachDomain ( org.ovirt.engine.core.bll.storage.DetachStorageDomainFromPoolCommand.getParameters ( ) . getDestroyingPool ( ) , org.ovirt.engine.core.bll.storage.DetachStorageDomainFromPoolCommand.getParameters ( ) . getRemoveLast ( ) , org.ovirt.engine.core.bll.storage.DetachStorageDomainFromPoolCommand.isInternalExecution ( ) ) ; }

Target:
protected boolean canDoAction ( ) { return ( canDetachStorageDomainWithVmsAndDisks ( org.ovirt.engine.core.bll.storage.DetachStorageDomainFromPoolCommand.getStorageDomain ( ) ) ) && ( canDetachDomain ( org.ovirt.engine.core.bll.storage.DetachStorageDomainFromPoolCommand.getParameters ( ) . getDestroyingPool ( ) , org.ovirt.engine.core.bll.storage.DetachStorageDomainFromPoolCommand.getParameters ( ) . getRemoveLast ( ) , org.ovirt.engine.core.bll.storage.DetachStorageDomainFromPoolCommand.isInternalExecution ( ) ) ) ; }
Source:
public void testSave ( ) { dao.save ( new_bookmark ) ; org.ovirt.engine.core.common.businessentities.Bookmark result = dao.getByName ( new_bookmark.getName ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; }

Target:
public void testSave ( ) { dao.save ( new_bookmark ) ; org.ovirt.engine.core.common.businessentities.Bookmark result = dao.getByName ( new_bookmark.getName ( ) ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; }
Source:
public void setDeviceInfoText ( java.lang.String raidType ) { deviceSelectionInfo.setText ( ( ( ( "(" + ( constants.getStorageDeviceSelectionInfo ( ) ) ) + raidType ) + ")" ) ) ; }

Target:
public void setRaidInfoMessages ( java.lang.String raidType , int stripeSize ) { deviceSelectionInfo.setText ( applicationMessages.getStorageDeviceSelectionInfo ( raidType ) ) ; this . stripeSizeWithInfo.setExplanation ( templates.italicText ( applicationMessages.stripSizeInfoForGlusterBricks ( stripeSize , raidType ) ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VDS getServer ( ) { org.ovirt.engine.core.common.businessentities.VDS server = new org.ovirt.engine.core.common.businessentities.VDS ( ) ; server.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; server.setVdsName ( "VDS1" ) ; server.setStatus ( VDSStatus.Up ) ; server.setVdsGroupId ( org.ovirt.engine.core.bll.gluster.RefreshGlusterHooksCommandTest.CLUSTER_ID ) ; return server ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VDS getServer ( ) { org.ovirt.engine.core.common.businessentities.VDS server = new org.ovirt.engine.core.common.businessentities.VDS ( ) ; server.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; server.setVdsName ( "VDS1" ) ; server.setStatus ( VDSStatus.Up ) ; server.setClusterId ( org.ovirt.engine.core.bll.gluster.RefreshGlusterHooksCommandTest.CLUSTER_ID ) ; return server ; }
Source:
public void testSave ( ) { dao.save ( newVmStatistics ) ; org.ovirt.engine.core.common.businessentities.VmNetworkStatistics savedStatistics = dao.get ( org.ovirt.engine.core.dao.VmNetworkStatisticsDAOTest.NEW_INTERFACE_ID ) ; org.junit.Assert.assertNotNull ( savedStatistics ) ; org.junit.Assert.assertEquals ( newVmStatistics.getStatus ( ) , savedStatistics.getStatus ( ) ) ; }

Target:
public void testSave ( ) { dao.save ( newVmStatistics ) ; org.ovirt.engine.core.common.businessentities.network.VmNetworkStatistics savedStatistics = dao.get ( org.ovirt.engine.core.dao.VmNetworkStatisticsDAOTest.NEW_INTERFACE_ID ) ; org.junit.Assert.assertNotNull ( savedStatistics ) ; org.junit.Assert.assertEquals ( newVmStatistics.getStatus ( ) , savedStatistics.getStatus ( ) ) ; }
Source:
public void validateEnums ( ) { org.ovirt.engine.api.model.CPU entity = new org.ovirt.engine.api.model.CPU ( ) ; entity.setArchitecture ( "X86_64" ) ; new org.ovirt.engine.api.restapi.resource.validation.CPUValidator ( ) . validateEnums ( entity ) ; }

Target:
public void validateEnums ( ) { org.ovirt.engine.api.model.Cpu entity = new org.ovirt.engine.api.model.Cpu ( ) ; entity.setArchitecture ( "X86_64" ) ; new org.ovirt.engine.api.restapi.resource.validation.CPUValidator ( ) . validateEnums ( entity ) ; }
Source:
public void setvmt_guid ( org.ovirt.engine.core.compat.Guid value ) { this . mVmStatic.setvmt_guid ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "vmt_guid" ) ) ; }

Target:
public void setVmtNumOfCpus ( int value ) { this . vmtNumOfCpus = value ; }
Source:
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 ) ; } }

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:
private void assertInvalidVolumeInfoCombination ( org.ovirt.engine.core.common.businessentities.storage.VolumeFormat volumeFormat , org.ovirt.engine.core.common.businessentities.storage.VolumeType volumeType , org.ovirt.engine.core.common.businessentities.storage.StorageType storageType ) { org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( setupVolumeFormatAndTypeTest ( volumeFormat , volumeType , storageType ) , EngineMessage.ACTION_TYPE_FAILED_DISK_CONFIGURATION_NOT_SUPPORTED ) ; }

Target:
private void assertInvalidVolumeInfoCombination ( org.ovirt.engine.core.common.businessentities.storage.VolumeFormat volumeFormat , org.ovirt.engine.core.common.businessentities.storage.VolumeType volumeType , org.ovirt.engine.core.common.businessentities.storage.StorageType storageType ) { org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( setupVolumeFormatAndTypeTest ( volumeFormat , volumeType , storageType ) , EngineMessage.ACTION_TYPE_FAILED_DISK_CONFIGURATION_NOT_SUPPORTED ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid getDataCenterId ( org.ovirt.engine.api.model.Network network ) { return getEntity ( org.ovirt.engine.core.common.businessentities.storage_pool.class , SearchType.StoragePool , ( "Datacenter: name=" + ( network.getDataCenter ( ) . getName ( ) ) ) ) . getId ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid getDataCenterId ( org.ovirt.engine.api.model.Network network ) { return getEntity ( org.ovirt.engine.core.common.businessentities.StoragePool.class , SearchType.StoragePool , ( "Datacenter: name=" + ( network.getDataCenter ( ) . getName ( ) ) ) ) . getId ( ) ; }
Source:
public java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > runMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.ArrayList < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , boolean isRunOnlyIfAllValidationPass ) { return runMultipleActions ( actionType , parameters , isRunOnlyIfAllValidationPass , false ) ; }

Target:
protected org.ovirt.engine.core.common.queries.QueryReturnValue runQueryImpl ( org.ovirt.engine.core.common.queries.QueryType actionType , org.ovirt.engine.core.common.queries.QueryParametersBase parameters , boolean isPerformUserCheck ) { return runQueryImpl ( actionType , parameters , isPerformUserCheck , null ) ; }
Source:
public org.ovirt.engine.api.model.Users list ( ) { return mapDomainUserCollection ( getUsersFromDomain ( ) ) ; }

Target:
public org.ovirt.engine.api.model.Users list ( ) { return mapUsers ( getDomainUsers ( ) ) ; }