auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testGetAllInterfacesWithIpAddress ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > interfaces = dao.getAllInterfacesWithIpAddress ( org.ovirt.engine.core.dao.network.InterfaceDaoImplTest.CLUSTER_ID , org.ovirt.engine.core.dao.network.InterfaceDaoImplTest.IP_ADDR ) ; org.junit.Assert.assertNotNull ( interfaces ) ; org.junit.Assert.assertEquals ( 1 , interfaces.size ( ) ) ; assertGetAllForVdsCorrectResult ( interfaces ) ; }

Target:
public void testGetAllInterfacesWithIpAddress ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > interfaces = dao.getAllInterfacesWithIpAddress ( FixturesTool.CLUSTER , org.ovirt.engine.core.dao.network.InterfaceDaoImplTest.IP_ADDR ) ; org.junit.Assert.assertNotNull ( interfaces ) ; org.junit.Assert.assertEquals ( 1 , interfaces.size ( ) ) ; assertGetAllForVdsCorrectResult ( interfaces ) ; }
Source:
private boolean isVnicProfileChanged ( org.ovirt.engine.core.common.businessentities.network.VmNic oldNic , org.ovirt.engine.core.common.businessentities.network.VmNic newNic ) { return ! ( org.apache.commons.lang.ObjectUtils.equals ( oldNic.getVnicProfileId ( ) , newNic.getVnicProfileId ( ) ) ) ; }

Target:
private boolean isVnicProfileChanged ( org.ovirt.engine.core.common.businessentities.network.VmNic oldNic , org.ovirt.engine.core.common.businessentities.network.VmNic newNic ) { return ! ( java.util.Objects.equals ( oldNic.getVnicProfileId ( ) , newNic.getVnicProfileId ( ) ) ) ; }
Source:
public static java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getBalloonDevices ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDeviceDao ( ) . getVmDeviceByVmIdAndType ( vmId , VmDeviceGeneralType.BALLOON ) ; }

Target:
public static java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getSoundDevices ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.dbFacade.getVmDeviceDao ( ) . getVmDeviceByVmIdAndType ( vmId , VmDeviceGeneralType.SOUND ) ; }
Source:
public org.ovirt.engine.core.bll.tasks.interfaces.CommandCallback getCallback ( ) { if ( shouldUseCallback ( ) ) { return new org.ovirt.engine.core.bll.ConcurrentChildCommandsExecutionCallback ( ) ; } return null ; }

Target:
public org.ovirt.engine.core.bll.tasks.interfaces.CommandCallback getCallback ( ) { return shouldUseCallback ( ) ? callbackProvider.get ( ) : null ; }
Source:
public org.ovirt.engine.api.resource.TemplateDiskAttachmentsResource getDiskAttachmentsResource ( ) { return null ; }

Target:
public org.ovirt.engine.api.resource.TemplateDiskAttachmentsResource getDiskAttachmentsResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendTemplateDiskAttachmentsResource ( guid ) ) ; }
Source:
public void testValidStatusForEnrollCertificate ( ) { mockHostForActivation ( VDSStatus.Maintenance ) ; org.junit.Assert.assertThat ( validator.validateStatusForEnrollCertificate ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testValidStatusForEnrollCertificate ( ) { mockHostForActivation ( VDSStatus.Maintenance ) ; org.hamcrest.MatcherAssert.assertThat ( validator.validateStatusForEnrollCertificate ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult networkCanBeAttached ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.CANNOT_ADD_NETWORK_ATTACHMENT_ON_SLAVE_OR_VLAN ) . when ( ( ( org.ovirt.engine.core.utils.NetworkUtils.isVlan ( iface ) ) || ( iface.isBondSlave ( ) ) ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult networkCanBeAttached ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.CANNOT_ADD_NETWORK_ATTACHMENT_ON_SLAVE_OR_VLAN ) . when ( ( ( org.ovirt.engine.core.utils.NetworkUtils.isVlan ( iface ) ) || ( iface.isPartOfBond ( ) ) ) ) ; }
Source:
private void assertNoNetworksRemoved ( org.ovirt.engine.core.bll.SetupNetworksHelper helper ) { junit.framework.Assert.assertTrue ( java.text.MessageFormat.format ( "Expected no networks to be removed but there were. Removed networks: {0}" , helper.getRemoveNetworks ( ) ) , helper.getRemoveNetworks ( ) . isEmpty ( ) ) ; }

Target:
private void assertNoNetworksRemoved ( org.ovirt.engine.core.bll.SetupNetworksHelper helper ) { junit.framework.Assert.assertTrue ( java.text.MessageFormat.format ( "Expected no networks to be removed but some were removed. Removed networks: {0}" , helper.getRemoveNetworks ( ) ) , helper.getRemoveNetworks ( ) . isEmpty ( ) ) ; }
Source:
protected abstract org.ovirt.engine.ui.userportal.widget.action.UserPortalImageButtonDefinition < T > createButtonDefinition ( T data ) ;

Target:
protected void onClick ( T value ) { org.ovirt.engine.ui.uicommonweb.UICommand command = resolveCommand ( value ) ; if ( command != null ) { command.Execute ( ) ; } }
Source:
public void storageDomainNull ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; b.setStorageDomain ( null ) ; final org.ovirt.engine.core.common.businessentities.StorageDomain s = b.getStorageDomain ( ) ; org.junit.Assert.assertNull ( s ) ; }

Target:
public void storageDomainWithIdNullPool ( ) { b.setStorageDomainId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; b.setStoragePoolId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID2 ) ; final org.ovirt.engine.core.common.businessentities.StorageDomain s = b.getStorageDomain ( ) ; org.junit.Assert.assertNull ( s ) ; }
Source:
protected void setActionMessageParameters ( ) { addValidationMessageVariable ( "volumeName" , org.ovirt.engine.core.bll.gluster.GlusterAsyncCommandBase.getGlusterVolumeName ( ) ) ; addValidationMessageVariable ( "vdsGroup" , org.ovirt.engine.core.bll.gluster.GlusterAsyncCommandBase.getVdsGroupName ( ) ) ; }

Target:
protected void setActionMessageParameters ( ) { addValidationMessageVariable ( "volumeName" , org.ovirt.engine.core.bll.gluster.GlusterAsyncCommandBase.getGlusterVolumeName ( ) ) ; addValidationMessageVariable ( "cluster" , org.ovirt.engine.core.bll.gluster.GlusterAsyncCommandBase.getClusterName ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.queries.VdcQueryReturnValue runInternalQuery ( org.ovirt.engine.core.common.queries.VdcQueryType actionType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters ) { parameters.setRefresh ( false ) ; return getBackend ( ) . runInternalQuery ( actionType , parameters , getEngineContext ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.queries.VdcQueryReturnValue runInternalQuery ( org.ovirt.engine.core.common.queries.VdcQueryType actionType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase parameters ) { parameters.setRefresh ( false ) ; return backend.runInternalQuery ( actionType , parameters , getEngineContext ( ) ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.VmDevice addDiskDevice ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.compat.Guid deviceId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.addDiskDevice ( vmId , deviceId , true , false , "" , false ) ; }

Target:
public boolean hasWatchdog ( org.ovirt.engine.core.compat.Guid vmId ) { return ! ( getWatchdogs ( vmId ) . isEmpty ( ) ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase logOff ( org.ovirt.engine.core.common.businessentities.aaa.DbUser userToLogoff ) { org.ovirt.engine.core.common.action.LogoutUserParameters params = new org.ovirt.engine.core.common.action.LogoutUserParameters ( userToLogoff.getId ( ) ) ; params.setSessionId ( getEngineSessionId ( ) ) ; org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue = getBackend ( ) . logoff ( params ) ; return returnValue ; }

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase logOff ( org.ovirt.engine.core.common.businessentities.aaa.DbUser userToLogoff ) { org.ovirt.engine.core.common.action.VdcActionParametersBase params = new org.ovirt.engine.core.common.action.VdcActionParametersBase ( ) ; params.setSessionId ( getEngineSessionId ( ) ) ; org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue = getBackend ( ) . logoff ( params ) ; return returnValue ; }
Source:
public void run ( org.ovirt.engine.ui.uicompat.TaskContext context ) { UpdateOptionsAsync ( ( ( getPrefix ( ) ) + ( getSearchString ( ) ) ) ) ; }

Target:
public void run ( org.ovirt.engine.ui.uicompat.TaskContext context ) { updateOptionsAsync ( ( ( getPrefix ( ) ) + ( getSearchString ( ) ) ) ) ; }
Source:
public void verifyNoDomainForMemoryWhenDomainHasLowSpace ( ) { org.mockito.Mockito.when ( validStorageDomainValidator.isDomainWithinThresholds ( ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN ) ) ; verifyNoDomainForMemory ( java.util.Arrays.asList ( validStorageDomain ) ) ; }

Target:
public void verifyFirstDomainForMemory ( ) { verifyDomainForMemory ( java.util.Arrays.asList ( validStorageDomain , invalidStorageDomain1 , invalidStorageDomain2 ) ) ; }
Source:
public void listOfMigrationPoliciesIsValid ( ) { org.junit.Assert.assertEquals ( helper.validate ( null , helper.getExamplePolicy ( ) ) . isOk ( ) , true ) ; }

Target:
public void listOfMigrationPoliciesIsValid ( ) { org.junit.Assert.assertTrue ( helper.validate ( null , helper.getExamplePolicy ( ) ) . isOk ( ) ) ; }
Source:
public void clusterAlreadyInLocalFs ( ) { createCommandWithDefaultVdsGroup ( ) ; oldGroupIsDetachedDefault ( ) ; storagePoolIsLocalFS ( ) ; cpuExists ( ) ; cpuManufacturersMatch ( ) ; allQueriesEmpty ( ) ; storagePoolAlreadyHasCluster ( ) ; canDoActionFailedWithReason ( VdcBllMessages.VDS_GROUP_CANNOT_ADD_MORE_THEN_ONE_HOST_TO_LOCAL_STORAGE ) ; }

Target:
public void clusterAlreadyInLocalFs ( ) { createCommandWithDefaultVdsGroup ( ) ; oldGroupIsDetachedDefault ( ) ; storagePoolIsLocalFS ( ) ; cpuExists ( ) ; cpuManufacturersMatch ( ) ; allQueriesForVms ( ) ; storagePoolAlreadyHasCluster ( ) ; canDoActionFailedWithReason ( VdcBllMessages.VDS_GROUP_CANNOT_ADD_MORE_THEN_ONE_HOST_TO_LOCAL_STORAGE ) ; }
Source:
public void testGetWithPermissionsUnprivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > result = dao.getAll ( org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetWithPermissionsUnprivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > result = dao.getAll ( org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertTrue ( result.isEmpty ( ) ) ; }
Source:
protected void mockAllMacsForCluster ( org.ovirt.engine.core.common.businessentities.Cluster cluster , java.lang.String ... macAddress ) { org.mockito.Mockito.when ( macPoolDao.getAllMacsForMacPool ( org.mockito.ArgumentMatchers.eq ( cluster.getMacPoolId ( ) ) ) ) . thenReturn ( java.util.Arrays.asList ( macAddress ) ) ; }

Target:
protected void mockUsedMacsInSystem ( org.ovirt.engine.core.compat.Guid macPoolId , java.lang.String ... macAddress ) { org.mockito.Mockito.when ( macsUsedAcrossWholeSystem.getMacsForMacPool ( macPoolId ) ) . thenReturn ( java.util.Arrays.asList ( macAddress ) ) ; }
Source:
void setupCloneVmPermissions ( org.ovirt.engine.api.model.Template template , org.ovirt.engine.core.common.action.AddVmTemplateParameters params ) { if ( ( template.isSetPermissions ( ) ) && ( template.getPermissions ( ) . isSetClone ( ) ) ) { params.setCopyVmPermissions ( template.getPermissions ( ) . isClone ( ) ) ; } }

Target:
void setupCloneVmPermissions ( org.ovirt.engine.core.common.action.AddVmTemplateParameters params ) { boolean clonePermissions = org.ovirt.engine.api.common.util.QueryHelper.getBooleanMatrixParameter ( uriInfo , org.ovirt.engine.api.restapi.resource.BackendTemplatesResource.CLONE_PERMISSIONS , true , false ) ; if ( clonePermissions ) { params.setCopyVmPermissions ( clonePermissions ) ; } }
Source:
protected boolean checkIfCpusExist ( ) { return org.ovirt.engine.core.bll.CpuFlagsManagerHandler.checkIfCpusExist ( org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getcpu_name ( ) , org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getcompatibility_version ( ) ) ; }

Target:
protected boolean checkIfCpusExist ( ) { return org.ovirt.engine.core.bll.CpuFlagsManagerHandler.checkIfCpusExist ( org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getCpuName ( ) , org.ovirt.engine.core.bll.UpdateVdsGroupCommand.getVdsGroup ( ) . getCompatibilityVersion ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.gluster.GlusterStatus parse ( java.lang.CharSequence text ) throws java.text.ParseException { return org.ovirt.engine.core.common.businessentities.gluster.GlusterStatus.valueOf ( text.toString ( ) . toUpperCase ( ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.gluster.GlusterStatus parse ( java.lang.CharSequence text ) throws java.text.ParseException { if ( org.ovirt.engine.core.compat.StringHelper.isNullOrEmpty ( text.toString ( ) ) ) { return null ; } return org.ovirt.engine.core.common.businessentities.gluster.GlusterStatus.valueOf ( text.toString ( ) . toUpperCase ( ) ) ; }
Source:
public void testGetAllForVdsGroupWithPermissionsForPriviligedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result = dao.getAllForVdsGroup ( existingVds.getvds_group_id ( ) , org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , true ) ; assertGetAllForVdsGroupCorrectResult ( result ) ; }

Target:
public void testGetAllForVdsGroupWithPermissionsForPriviligedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result = dao.getAllForVdsGroup ( existingVds.getVdsGroupId ( ) , org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , true ) ; assertGetAllForVdsGroupCorrectResult ( result ) ; }
Source:
public void setSshKeyFingerprint ( java.lang.String sshKeyFingerprint ) { mVdsStatic.setSshKeyFingerprint ( sshKeyFingerprint ) ; }

Target:
public void setSSHKeyFingerprint ( java.lang.String sshKeyFingerprint ) { mVdsStatic.setSSHKeyFingerprint ( sshKeyFingerprint ) ; }
Source:
public void testDifferentVerbosity ( ) { java.lang.String command = createCommand ( new org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilder ( ) . verboseLevel ( AnsibleVerbosity.LEVEL2 ) . playbook ( org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilderTest.ANSIBLE_PLAYBOOK ) ) ; org.junit.Assert.assertEquals ( join ( AnsibleCommandBuilder.ANSIBLE_COMMAND , "-vv" , org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilderTest.PRIVATE_KEY , org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilderTest.ANSIBLE_PLAYBOOK_FULL_PATH ) , command ) ; }

Target:
public void testDisableVerboseMode ( ) { java.lang.String command = createCommand ( new org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilder ( ) . verboseLevel ( AnsibleVerbosity.LEVEL0 ) . playbook ( org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilderTest.ANSIBLE_PLAYBOOK ) ) ; org.junit.Assert.assertEquals ( join ( AnsibleCommandBuilder.ANSIBLE_COMMAND , org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilderTest.IGNORE_SSH_CONFIG , org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilderTest.PRIVATE_KEY , org.ovirt.engine.core.common.utils.ansible.AnsibleCommandBuilderTest.ANSIBLE_PLAYBOOK_FULL_PATH ) , command ) ; }
Source:
public void isNetworkDevicePossitive ( ) { org.junit.Assert.assertEquals ( false , isNetworkDevice ( pciDevice ) ) ; }

Target:
public void isNetworkDevicePossitive ( ) { org.junit.Assert.assertFalse ( hostNicVfsConfigHelper.isNetworkDevice ( pciDevice ) ) ; }
Source:
public int getOnStartConnectionTimeout ( ) { return onStartConnectionTimeout ; }

Target:
public org.ovirt.engine.core.dal.dbbroker.SimpleJdbcCallsHandler getCallsHandler ( ) { return callsHandler ; }
Source:
public void getIpv4AddressOfNetworkReturnsNullWhenThereIsNoIpSet ( ) { org.junit.Assert.assertThat ( underTest.getIpv4AddressOfNetwork ( org.ovirt.engine.core.bll.network.NetworkConfiguratorTest.NETWORK_NAME1 ) , org.hamcrest.Matchers.nullValue ( ) ) ; }

Target:
public void getIpv4AddressOfNetworkReturnsNullWhenThereIsNoIpSet ( ) { org.hamcrest.MatcherAssert.assertThat ( underTest.getIpv4AddressOfNetwork ( org.ovirt.engine.core.bll.network.NetworkConfiguratorTest.NETWORK_NAME1 ) , org.hamcrest.Matchers.nullValue ( ) ) ; }
Source:
public void setAllowConsoleReconnect ( boolean value ) { this . mVmStatic.setAllowConsoleReconnect ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "allowConsoleReconnect" ) ) ; }

Target:
public boolean isInitialized ( ) { return this . vmStatic.isInitialized ( ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface > ( ) ; } return source ; }

Target:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.HashMap < org.ovirt.engine.core.common.businessentities.network.Network , java.util.Set < org.ovirt.engine.core.compat.Guid > > ( ) ; } return source ; }
Source:
public java.lang.String toString ( ) { return java.lang.String.format ( "storagePoolId = %s, poolVersion = %s" , getStoragePoolId ( ) , getCompatibilityVersion ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.utils.ToStringBuilder appendAttributes ( org.ovirt.engine.core.common.utils.ToStringBuilder tsb ) { return super . appendAttributes ( tsb ) . append ( "storagePoolId" , getStoragePoolId ( ) ) . append ( "poolVersion " , getCompatibilityVersion ( ) ) ; }
Source:
public java.lang.String toString ( ) { return ( ( ( ( ( "GlusterAsyncTask[" + ( getTaskId ( ) ) ) + "-" ) + ( getType ( ) ) ) + "-" ) + ( getStatus ( ) ) ) + "]" ; }

Target:
public java.lang.String toString ( ) { return org.ovirt.engine.core.common.utils.ToStringBuilder.forInstance ( this ) . append ( "taskId" , getTaskId ( ) ) . append ( "type" , getType ( ) ) . append ( "status" , getStatus ( ) ) . build ( ) ; }
Source:
public boolean isRunOnce ( ) { return runOnce ; }

Target:
public void setRunOnce ( boolean value ) { vmDynamic.setRunOnce ( value ) ; }
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 testValidateNetworkExclusiveOnNicsVmAndVlanAttachedToInterface ( ) throws java.lang.Exception { checkVmNetworkIsSoleAssignedInterface ( true , java.util.Arrays.asList ( NetworkType.VM , NetworkType.VLAN ) , vmNetwork1 , vlanNetwork ) ; }
Source:
public abstract long getsize ( ) ;

Target:
public abstract long getSize ( ) ;
Source:
public void findActiveVmsUsingNetworks ( ) { mockDaos ( ) ; java.util.List < java.lang.String > vmNames = vmInterfaceManager.findActiveVmsUsingNetworks ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) , java.util.Collections.singletonList ( NETWORK_NAME ) ) ; org.junit.Assert.assertTrue ( vmNames.contains ( VM_NAME ) ) ; }

Target:
public void findActiveVmsUsingNetworks ( ) { mockDaos ( ) ; java.util.List < java.lang.String > vmNames = vmInterfaceManager.findActiveVmsUsingNetworks ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , java.util.Collections.singletonList ( NETWORK_NAME ) ) ; org.junit.Assert.assertTrue ( vmNames.contains ( VM_NAME ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult mtuValid ( ) { return ( ( network.getMtu ( ) ) == 0 ) || ( org.ovirt.engine.core.common.FeatureSupported.mtuSpecification ( getDataCenter ( ) . getcompatibility_version ( ) ) ) ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.NETWORK_MTU_OVERRIDE_NOT_SUPPORTED ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult mtuValid ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.NETWORK_MTU_OVERRIDE_NOT_SUPPORTED ) . unless ( ( ( ( network.getMtu ( ) ) == 0 ) || ( org.ovirt.engine.core.common.FeatureSupported.mtuSpecification ( getDataCenter ( ) . getCompatibilityVersion ( ) ) ) ) ) ; }
Source:
public void validateVdsFenceTypeConfig ( ) { org.junit.Assert.assertEquals ( expectedResult , validator.validate ( ConfigurationValues.VdsFenceType.name ( ) , vdsFenceType ) . isOk ( ) ) ; }

Target:
public void validateVdsFenceTypeConfig ( ) { org.junit.Assert.assertEquals ( expectedResult , validator.validate ( ConfigValues.VdsFenceType.name ( ) , vdsFenceType ) . isOk ( ) ) ; }
Source:
public void testSerialize ( ) { org.ovirt.engine.core.utils.serialization.json.JsonSerializablePojo serializablePojo = new org.ovirt.engine.core.utils.serialization.json.JsonSerializablePojo ( ) ; org.junit.Assert.assertEquals ( serializablePojo.toJsonForm ( true ) , new org.ovirt.engine.core.utils.serialization.json.JsonObjectSerializer ( ) . serialize ( serializablePojo ) . replaceAll ( "\\s" , "" ) ) ; }

Target:
public void testSerialize ( ) { org.ovirt.engine.core.utils.serialization.json.JsonSerializablePojo serializablePojo = new org.ovirt.engine.core.utils.serialization.json.JsonSerializablePojo ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( serializablePojo.toJsonForm ( true ) , new org.ovirt.engine.core.utils.serialization.json.JsonObjectSerializer ( ) . serialize ( serializablePojo ) . replaceAll ( "\\s" , "" ) ) ; }
Source:
org.ovirt.engine.api.resource.gluster.GlusterBrickResource getGlusterBrickSubResource ( @ javax.ws.rs.PathParam ( value = "id" ) java.lang.String id ) ;

Target:
org.ovirt.engine.api.resource.gluster.GlusterBrickResource getGlusterBrickResource ( @ javax.ws.rs.PathParam ( value = "id" ) java.lang.String id ) ;
Source:
public void setGuestLastLogoutTime ( java.util.Date value ) { this . vmDynamic.setGuestLastLogoutTime ( value ) ; }

Target:
public void setGuestOsTimezoneName ( java.lang.String timezoneName ) { vmDynamic.setGuestOsTimezoneName ( timezoneName ) ; }
Source:
public void testFindMultipleDcNetworks ( ) { org.mockito.Mockito.when ( mockNetworkDao.getAllForDataCenter ( org.ovirt.engine.core.bll.network.cluster.DefaultManagementNetworkFinderImplTest.TEST_DC_ID ) ) . thenReturn ( java.util.Arrays.asList ( mockNetwork , mockNetwork ) ) ; final org.ovirt.engine.core.common.businessentities.network.Network actual = underTest.findDefaultManagementNetwork ( org.ovirt.engine.core.bll.network.cluster.DefaultManagementNetworkFinderImplTest.TEST_DC_ID ) ; org.junit.Assert.assertNull ( actual ) ; }

Target:
public void testFindMultipleDcNetworks ( ) { org.mockito.Mockito.when ( mockNetworkDao.getAllForDataCenter ( org.ovirt.engine.core.bll.network.cluster.DefaultManagementNetworkFinderImplTest.TEST_DC_ID ) ) . thenReturn ( java.util.Arrays.asList ( mockNetwork , mockNetwork ) ) ; final org.ovirt.engine.core.common.businessentities.network.Network actual = underTest.findDefaultManagementNetwork ( org.ovirt.engine.core.bll.network.cluster.DefaultManagementNetworkFinderImplTest.TEST_DC_ID ) ; org.junit.jupiter.api.Assertions.assertNull ( actual ) ; }
Source:
public boolean isCloudInitUsed ( ) { return ( ( getInitializationType ( ) ) == ( InitializationType.CloudInit ) ) && ( ! ( org.ovirt.engine.core.common.utils.SimpleDependecyInjector.getInstance ( ) . get ( org.ovirt.engine.core.common.osinfo.OsRepository.class ) . isWindows ( getVmOsId ( ) ) ) ) ; }

Target:
public int getNumOfCpus ( boolean countThreadsAsCPU ) { return countThreadsAsCPU ? this . getNumOfCpus ( ) : ( getNumOfSockets ( ) ) * ( getCpuPerSocket ( ) ) ; }
Source:
public void testFindProblematicMacs ( ) { org.mockito.Mockito.when ( mockReadMacPool.isDuplicateMacAddressesAllowed ( ) ) . thenReturn ( false ) ; final java.util.Collection < java.lang.String > actual = underTest.findProblematicMacs ( mockVm ) ; org.junit.Assert.assertThat ( actual , org.hamcrest.Matchers.contains ( org.ovirt.engine.core.bll.network.vm.mac.VmMacsInUseFinderTest.MAC2 ) ) ; }

Target:
public void testFindProblematicMacs ( ) { org.mockito.Mockito.when ( mockReadMacPool.isDuplicateMacAddressesAllowed ( ) ) . thenReturn ( false ) ; final java.util.Collection < java.lang.String > actual = underTest.findProblematicMacs ( mockVm ) ; org.hamcrest.MatcherAssert.assertThat ( actual , org.hamcrest.Matchers.contains ( org.ovirt.engine.core.bll.network.vm.mac.VmMacsInUseFinderTest.MAC2 ) ) ; }
Source:
public org.ovirt.engine.api.v3.types.V3Disk update ( org.ovirt.engine.api.v3.types.V3Disk disk ) { return adaptUpdate ( delegate :: update , disk ) ; }

Target:
public javax.ws.rs.core.Response move ( org.ovirt.engine.api.v3.types.V3Action action ) { return adaptAction ( getDelegate ( ) :: move , action ) ; }
Source:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { getView ( ) . showSpicePanel ( event.getValue ( ) ) ; }

Target:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { getView ( ) . showVncPanel ( event.getValue ( ) ) ; }
Source:
public void setVncHost ( java.lang.String vncHost ) { this . vncHost = vncHost ; }

Target:
public void setVncHost ( java.lang.String vncHost ) { consoleOptions.setHost ( vncHost ) ; }
Source:
public static org.ovirt.engine.core.bll.tasks.AsyncTaskManager getInstance ( ) { return org.ovirt.engine.core.bll.tasks.AsyncTaskManager._taskManager ; }

Target:
public static org.ovirt.engine.core.bll.tasks.AsyncTaskManager getInstance ( ) { return org.ovirt.engine.core.bll.tasks.AsyncTaskManager.taskManager ; }
Source:
protected org.ovirt.engine.core.common.businessentities.StoragePool getDataCenter ( org.ovirt.engine.api.model.Cluster cluster ) { return org.ovirt.engine.api.restapi.resource.BackendDataCenterResource.getStoragePool ( cluster.getDataCenter ( ) , this ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StoragePool getDataCenter ( org.ovirt.engine.core.common.businessentities.Cluster cluster ) { return org.ovirt.engine.api.restapi.resource.BackendDataCenterResource.getStoragePool ( cluster.getDataCenter ( ) , this ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { if ( java.lang.Boolean.FALSE.equals ( returnValue ) ) { diskInterfaces.remove ( DiskInterface.VirtIO_SCSI ) ; } setInterfaces ( diskInterfaces ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue2 ) { java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DiskInterface > diskInterfaces = ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DiskInterface > ) ( returnValue2 ) ) ; if ( isVirtioScsiDisabled ) { diskInterfaces.remove ( DiskInterface.VirtIO_SCSI ) ; } setInterfaces ( diskInterfaces ) ; }
Source:
public void setEntity ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity value ) { super . setEntity ( value ) ; }

Target:
public void setEntity ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity value ) { super . setEntity ( value ) ; updateActionAvailability ( value ) ; }
Source:
protected java.lang.String getThisFieldMustContainCidrInFormatMsg ( ) { return org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) . thisFieldMustContainCidrInFormatMsg ( ) ; }

Target:
protected java.lang.String getThisFieldMustContainCidrInFormatMsg ( ) { return getUiConstants ( ) . thisFieldMustContainCidrInFormatMsg ( ) ; }
Source:
public org.ovirt.engine.api.model.Network get ( ) { org.ovirt.engine.core.common.businessentities.IscsiBond bond = getBond ( ) ; if ( ! ( bond.getNetworkIds ( ) . contains ( guid ) ) ) { notFound ( ) ; } return performGet ( VdcQueryType.GetNetworkById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; }

Target:
private org.ovirt.engine.api.model.Network getNetwork ( ) { return getEntity ( org.ovirt.engine.api.model.Network.class , VdcQueryType.GetNetworkById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) , guid.toString ( ) ) ; }
Source:
public void testInterfaceIsValidSlaveWhenInterfaceIsVlan ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface vdsNetworkInterface = createVdsNetworkInterfaceWithName ( ) ; vdsNetworkInterface.setVlanId ( 1 ) ; org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.validator.HostInterfaceValidator ( vdsNetworkInterface ) . interfaceIsValidSlave ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NETWORK_INTERFACE_BOND_OR_VLAN_CANNOT_BE_SLAVE ) ) ; }

Target:
public void testInterfaceIsValidSlaveWhenInterfaceIsVlan ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface vdsNetworkInterface = createVdsNetworkInterfaceWithName ( ) ; vdsNetworkInterface.setVlanId ( 1 ) ; org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.validator.HostInterfaceValidator ( vdsNetworkInterface ) . interfaceIsValidSlave ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.NETWORK_INTERFACE_BOND_OR_VLAN_CANNOT_BE_SLAVE ) ) ; }
Source:
private void addServerHook ( org.ovirt.engine.core.compat.Guid serverId ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterServerHook newServerHook = new org.ovirt.engine.core.common.businessentities.gluster.GlusterServerHook ( ) ; newServerHook.setHookId ( entity.getId ( ) ) ; newServerHook.setStatus ( getNewStatus ( ) ) ; newServerHook.setServerId ( serverId ) ; addServerHookInDb ( newServerHook ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity getGlusterHook ( ) { if ( ( entity ) == null ) { entity = getGlusterHooksDao ( ) . getById ( getParameters ( ) . getHookId ( ) , true ) ; } return entity ; }
Source:
public void vmNotHavingPassthroughVnicsValid ( ) { vmNotHavingPassthroughVnicsCommon ( vm.getId ( ) , 0 , 2 ) ; assertThatVmNotHavingPassthroughVnics ( true ) ; }

Target:
public void allPassthroughVnicsMigratableForRegularVnics ( ) { mockVnics ( createRegularNics ( 2 ) ) ; assertThatAllPassthroughVnicsMigratable ( true ) ; }
Source:
protected org.ovirt.engine.core.utils.linq.Predicate < org.ovirt.engine.core.common.businessentities.StorageDomain > getPredicate ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > disksList ) { return predicate ; }

Target:
protected org.ovirt.engine.core.utils.linq.Predicate < org.ovirt.engine.core.common.businessentities.StorageDomain > getPredicate ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > memoryDisks ) { return predicate ; }
Source:
public boolean containsKey ( java.lang.Object key ) { return ( get ( key ) ) != null ; }

Target:
public boolean containsKey ( T key ) { return ( get ( key ) ) != null ; }
Source:
public void setstorage_pool_id ( org.ovirt.engine.core.compat.NGuid value ) { storagePoolId = value ; }

Target:
public void setStoragePoolId ( org.ovirt.engine.core.compat.NGuid value ) { storagePoolId = value ; }
Source:
protected org.ovirt.engine.core.common.action.VdcActionParametersBase getAddParameters ( org.ovirt.engine.api.model.Network network , org.ovirt.engine.api.model.Network entity ) { return new org.ovirt.engine.core.common.action.AttachNetworkToVdsGroupParameter ( getVDSGroup ( ) , entity ) ; }

Target:
protected org.ovirt.engine.core.common.action.VdcActionParametersBase getAddParameters ( org.ovirt.engine.api.model.Network network , org.ovirt.engine.api.model.Network entity ) { return new org.ovirt.engine.core.common.action.AttachNetworkToClusterParameter ( getCluster ( ) , entity ) ; }
Source:
public void testAdGroup ( ) { testLoadClass ( org.ovirt.engine.core.dao.AdGroupDAO.class ) ; }

Target:
public void testAdGroup ( ) { testLoadClass ( org.ovirt.engine.core.dao.DbGroupDAO.class ) ; }
Source:
public java.lang.Object runInTransaction ( ) { try { boolean isPartiallySubmittedCommand = isPartiallySubmittedCommand ( tasks ) ; for ( org.ovirt.engine.core.common.businessentities.AsyncTasks task : tasks ) { handleTaskOfCommandWithEmptyVdsmId ( isPartiallySubmittedCommand , task ) ; } return null ; } finally { irsBrokerLatch.countDown ( ) ; } }

Target:
public java.lang.Object runInTransaction ( ) { try { boolean isPartiallySubmittedCommand = isPartiallySubmittedCommand ( tasks ) ; for ( org.ovirt.engine.core.common.businessentities.AsyncTask task : tasks ) { handleTaskOfCommandWithEmptyVdsmId ( isPartiallySubmittedCommand , task ) ; } return null ; } finally { irsBrokerLatch.countDown ( ) ; } }
Source:
public void clusterAlreadyInLocalFs ( ) { prepareManagementNetworkMocks ( ) ; createCommandWithDefaultCluster ( ) ; oldGroupIsDetachedDefault ( ) ; storagePoolIsLocalFS ( ) ; setupCpu ( ) ; storagePoolAlreadyHasCluster ( ) ; architectureIsUpdatable ( ) ; validateFailedWithReason ( EngineMessage.CLUSTER_CANNOT_ADD_MORE_THEN_ONE_HOST_TO_LOCAL_STORAGE ) ; }

Target:
public void clusterAlreadyInLocalFs ( ) { newDefaultManagementNetworkFound ( ) ; createCommandWithDefaultCluster ( ) ; oldGroupIsDetachedDefault ( ) ; storagePoolIsLocalFS ( ) ; setupCpu ( ) ; storagePoolAlreadyHasCluster ( ) ; architectureIsUpdatable ( ) ; validateFailedWithReason ( EngineMessage.CLUSTER_CANNOT_ADD_MORE_THEN_ONE_HOST_TO_LOCAL_STORAGE ) ; }
Source:
public org.ovirt.engine.api.v3.types.V3StorageConnection get ( ) { return adaptGet ( delegate :: get ) ; }

Target:
public org.ovirt.engine.api.v3.types.V3StorageConnection get ( ) { return adaptGet ( getDelegate ( ) :: get ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.NetworkStatus getStatus ( ) { return ( getEntity ( ) . getCluster ( ) ) == null ? null : getEntity ( ) . getCluster ( ) . getstatus ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.network.NetworkStatus getStatus ( ) { return ( getEntity ( ) . getCluster ( ) ) == null ? null : getEntity ( ) . getCluster ( ) . getstatus ( ) ; }
Source:
private void clearSearchString ( ) { setSearchString ( ( getHasSearchStringPrefix ( ) ? "" : getSelectedItem ( ) . getDefaultSearchString ( ) ) , false ) ; getSearchCommand ( ) . execute ( ) ; }

Target:
private void clearSearchString ( ) { setSearchStringImpl ( ( getHasSearchStringPrefix ( ) ? "" : getSelectedItem ( ) . getDefaultSearchString ( ) ) , false ) ; getSearchCommand ( ) . execute ( ) ; }
Source:
public void networkNull ( ) { validator = new org.ovirt.engine.core.bll.validator.NetworkValidator ( null ) ; org.junit.Assert.assertThat ( validator.networkIsSet ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.NETWORK_HAVING_ID_NOT_EXISTS ) ) ; }

Target:
public void networkNull ( ) { validator = new org.ovirt.engine.core.bll.validator.NetworkValidator ( null ) ; org.hamcrest.MatcherAssert.assertThat ( validator.networkIsSet ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.NETWORK_HAVING_ID_NOT_EXISTS ) ) ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VnicProfileView > ( ) ; } return source ; }

Target:
public void getVnicProfilesByNetworkId ( org.ovirt.engine.ui.frontend.AsyncQuery < java.util.List < org.ovirt.engine.core.common.businessentities.network.VnicProfileView > > aQuery , org.ovirt.engine.core.compat.Guid networkId ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.ListConverter < > ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetVnicProfilesByNetworkId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( networkId ) , aQuery ) ; }
Source:
public void testGetMasterStorageDomainIdForPool ( ) { org.ovirt.engine.core.compat.Guid result = dao.getMasterStorageDomainIdForPool ( FixturesTool.DATA_CENTER ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( FixturesTool.STORAGE_DOAMIN_SCALE_SD5 , result ) ; }

Target:
public void testGetMasterStorageDomainIdForPool ( ) { org.ovirt.engine.core.compat.Guid result = dao.getMasterStorageDomainIdForPool ( FixturesTool.DATA_CENTER ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( FixturesTool.STORAGE_DOMAIN_SCALE_SD5 , result ) ; }
Source:
protected void OnEntityChanged ( ) { super . OnEntityChanged ( ) ; if ( ( getEntity ( ) ) != null ) { UpdateVolumeDetails ( ) ; } UpdateActionAvailability ( ) ; }

Target:
protected void OnEntityChanged ( ) { super . OnEntityChanged ( ) ; if ( ( getEntity ( ) ) != null ) { UpdateVolumeDetails ( ) ; updateAlerts ( ) ; } UpdateActionAvailability ( ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VM > getAllForDedicatedPowerClientByVds ( org.ovirt.engine.core.compat.Guid id ) { return getCallsHandler ( ) . executeReadList ( "GetVmsDedicatedToPowerClientByVdsId" , org.ovirt.engine.core.dao.VmDAODbFacadeImpl.VMRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "dedicated_vm_for_vds" , id ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VM > getAllRunningOnOrMigratingToVds ( org.ovirt.engine.core.compat.Guid id ) { return getCallsHandler ( ) . executeReadList ( "GetVmsRunningOnOrMigratingToVds" , org.ovirt.engine.core.dao.VmDAODbFacadeImpl.VMRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "vds_id" , id ) ) ; }
Source:
private static void assertEmptyCanDoActionMessage ( ) { org.junit.Assert.assertTrue ( org.ovirt.engine.core.bll.quota.QuotaManagerTest.EXPECTED_EMPTY_CAN_DO_MESSAGE , ( ( org.ovirt.engine.core.bll.quota.QuotaManagerTest.canDoActionMessages.size ( ) ) == 0 ) ) ; }

Target:
private void assertEmptyCanDoActionMessage ( ) { org.junit.Assert.assertTrue ( org.ovirt.engine.core.bll.quota.QuotaManagerTest.EXPECTED_EMPTY_CAN_DO_MESSAGE , canDoActionMessages.isEmpty ( ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { return source != null ? source : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeSnapshotEntity > ( ) ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { return source != null ? source : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepSession > ( ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.OriginType getRawValue ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.VmTemplate ) ( object ) ) . getOrigin ( ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.OriginType getRawValue ( java.lang.Object object ) { return ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportTemplateData ) ( object ) ) . getTemplate ( ) . getOrigin ( ) ; }
Source:
protected void createImage ( ) { org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.executeAsyncCommand ( VdcActionType.AddDisk , getAddDiskParameters ( ) , org.ovirt.engine.core.bll.storage.disk.image.UploadDiskImageCommand.cloneContextAndDetachFromParent ( ) ) ; }

Target:
protected void createImage ( ) { org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.executeAsyncCommand ( VdcActionType.AddDisk , getAddDiskParameters ( ) , org.ovirt.engine.core.bll.storage.disk.image.TransferDiskImageCommand.cloneContextAndDetachFromParent ( ) ) ; }
Source:
public final void AddPermittedField ( java.lang.String fieldName ) { permitted.add ( fieldName ) ; }

Target:
public final void AddPermittedFields ( java.lang.String ... fieldNames ) { for ( java.lang.String fieldName : fieldNames ) { permitted.add ( fieldName ) ; } }
Source:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__REMOVE_BRICKS_STOP ) ; super . setActionMessageParameters ( ) ; }

Target:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__REMOVE_BRICKS_STOP ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__GLUSTER_BRICK ) ; super . setActionMessageParameters ( ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) . intValue ( ) : 1 ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.migrationSupport = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; }
Source:
public javax.ws.rs.core.Response logon ( org.ovirt.engine.api.v3.types.V3Action action ) { return adaptAction ( delegate :: logon , action ) ; }

Target:
public org.ovirt.engine.api.v3.types.V3VM get ( ) { return adaptGet ( getDelegate ( ) :: get ) ; }
Source:
public void preventRollback ( ) { org.ovirt.engine.core.bll.storage.lsm.LiveMigrateDiskCommand.getParameters ( ) . setExecutionIndex ( 0 ) ; org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.updateAllDiskImageSnapshotsStatus ( org.ovirt.engine.core.bll.storage.lsm.LiveMigrateDiskCommand.getParameters ( ) . getImageGroupID ( ) , ImageStatus.OK ) ; }

Target:
private void unlockDisk ( ) { org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.updateAllDiskImageSnapshotsStatus ( org.ovirt.engine.core.bll.storage.lsm.LiveMigrateDiskCommand.getParameters ( ) . getImageGroupID ( ) , ImageStatus.OK ) ; }
Source:
public static boolean isNonVmNonVlanNetwork ( org.ovirt.engine.core.common.businessentities.network.Network network ) { return ( ! ( network.isVmNetwork ( ) ) ) && ( ( network.getVlanId ( ) ) == null ) ; }

Target:
public static boolean isNonVmNonVlanNetwork ( org.ovirt.engine.core.common.businessentities.network.Network network ) { return ( ! ( network.isVmNetwork ( ) ) ) && ( ! ( org.ovirt.engine.core.utils.NetworkUtils.isVlan ( network ) ) ) ; }
Source:
public abstract void removeCommand ( org.ovirt.engine.core.compat.Guid commandId ) ;

Target:
public void removeAllCommandsInHierarchy ( org.ovirt.engine.core.compat.Guid commandId ) ;
Source:
private < T extends org.ovirt.engine.core.common.businessentities.BusinessEntity < org.ovirt.engine.core.compat.Guid > > java.lang.String getHostName ( T entity ) { if ( entity instanceof org.ovirt.engine.core.common.businessentities.VDS ) { return ", name : " + ( ( ( org.ovirt.engine.core.common.businessentities.VDS ) ( entity ) ) . getvds_name ( ) ) ; } return "" ; }

Target:
private < T extends org.ovirt.engine.core.common.businessentities.BusinessEntity < org.ovirt.engine.core.compat.Guid > > java.lang.String getHostName ( T entity ) { if ( entity instanceof org.ovirt.engine.core.common.businessentities.VDS ) { return ", name : " + ( ( ( org.ovirt.engine.core.common.businessentities.VDS ) ( entity ) ) . getVdsName ( ) ) ; } return "" ; }
Source:
protected org.ovirt.engine.core.common.businessentities.Bookmark getBookmark ( ) { if ( ( bookmark ) == null ) { bookmark = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getBookmarkDao ( ) . get ( getBookmarkId ( ) ) ; } return bookmark ; }

Target:
protected org.ovirt.engine.core.common.businessentities.Bookmark getBookmark ( ) { if ( ( bookmark ) == null ) { bookmark = bookmarkDao.get ( getBookmarkId ( ) ) ; } return bookmark ; }
Source:
public java.lang.Iterable < T > getVisibleItems ( ) { return null ; }

Target:
public java.lang.Iterable < T > getVisibleItems ( ) { return java.util.Collections.emptyList ( ) ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.storage.RegisterEntityModel < org.ovirt.engine.core.common.businessentities.VmTemplate > object ) { super . edit ( object ) ; }

Target:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.storage.RegisterTemplateModel object ) { super . edit ( object ) ; }
Source:
public void addMainTab ( java.lang.String label , java.lang.String historyToken , java.lang.String contentUrl , org.ovirt.engine.ui.webadmin.plugin.api.TabOptions options ) { addTab ( MainTabPanelPresenter.TYPE_RequestTabs , MainTabPanelPresenter.TYPE_SetTabContent , label , historyToken , true , contentUrl , options ) ; }

Target:
public void addMainTab ( java.lang.String label , java.lang.String historyToken , java.lang.String contentUrl , org.ovirt.engine.ui.webadmin.plugin.api.TabOptions options ) { addTab ( MainTabPanelPresenter.TYPE_RequestTabs , MainTabPanelPresenter.TYPE_ChangeTab , MainTabPanelPresenter.TYPE_SetTabContent , label , historyToken , true , contentUrl , options ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getId ( ) { return this . mVmStatic.getId ( ) ; }

Target:
public void setId ( org.ovirt.engine.core.compat.Guid value ) { this . vmStatic.setId ( value ) ; this . vmDynamic.setId ( value ) ; this . vmStatistics.setId ( value ) ; }
Source:
public void testGetEmptyIscsiBondIdByNetworkId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.IscsiBond > fetchedIscsiBonds = dao.getIscsiBondsByNetworkId ( FixturesTool.NETWORK_ENGINE_2 ) ; org.junit.Assert.assertEquals ( 0 , fetchedIscsiBonds.size ( ) ) ; }

Target:
public void testGetEmptyIscsiBondIdByNetworkId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.IscsiBond > fetchedIscsiBonds = dao.getIscsiBondsByNetworkId ( FixturesTool.NETWORK_ENGINE_2 ) ; org.junit.jupiter.api.Assertions.assertEquals ( 0 , fetchedIscsiBonds.size ( ) ) ; }
Source:
private void mockDaoForQuery ( ) throws java.lang.Exception { org.mockito.Mockito.when ( getDbFacadeMockInstance ( ) . getVmDao ( ) ) . thenReturn ( vmDao ) ; org.mockito.Mockito.when ( getQueryParameters ( ) . getId ( ) ) . thenReturn ( vmId ) ; }

Target:
private void mockDaoForQuery ( ) throws java.lang.Exception { org.mockito.Mockito.when ( getDbFacadeMockInstance ( ) . getVmDao ( ) ) . thenReturn ( vmDao ) ; org.mockito.Mockito.when ( getQueryParameters ( ) . getId ( ) ) . thenReturn ( org.ovirt.engine.core.bll.GetNextAvailableDiskAliasNameByVMIdQueryTest.vmId ) ; }
Source:
protected boolean uniqueInterfaceName ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNic > interfaces ) { return org.ovirt.engine.core.bll.VmHandler.isNotDuplicateInterfaceName ( interfaces , getInterfaceName ( ) , org.ovirt.engine.core.bll.network.vm.AbstractVmInterfaceCommand.getReturnValue ( ) . getValidationMessages ( ) ) ; }

Target:
protected boolean uniqueInterfaceName ( java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNic > interfaces ) { return vmHandler.isNotDuplicateInterfaceName ( interfaces , getInterfaceName ( ) , org.ovirt.engine.core.bll.network.vm.AbstractVmInterfaceCommand.getReturnValue ( ) . getValidationMessages ( ) ) ; }
Source:
protected void EndImportCommand ( ) { EndActionOnAllImageGroups ( ) ; endVmRelatedOps ( ) ; setSucceeded ( true ) ; }

Target:
protected void endImportCommand ( ) { endActionOnAllImageGroups ( ) ; endVmRelatedOps ( ) ; setSucceeded ( true ) ; }
Source:
public void testEvalNegative ( ) { org.mockito.Mockito.when ( mockNetwork.isExternal ( ) ) . thenReturn ( false ) ; org.junit.Assert.assertFalse ( underTest.eval ( mockNetwork ) ) ; }

Target:
public void testEvalNegative ( ) { org.mockito.Mockito.when ( mockNetwork.isExternal ( ) ) . thenReturn ( false ) ; org.junit.Assert.assertFalse ( underTest.test ( mockNetwork ) ) ; }