auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void checkMissingPrimaryIpv6Address ( ) { initIpConfiguration ( ) ; initIpv4ConfigurationDetails ( Ipv4BootProtocol.DHCP , false , false ) ; org.junit.Assert.assertThat ( underTest.validateNetworkAttachmentIpConfiguration ( networkAttachments ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void checkMissingPrimaryIpv6Address ( ) { initIpConfiguration ( ) ; initIpv4ConfigurationDetails ( Ipv4BootProtocol.DHCP , false , false ) ; org.hamcrest.MatcherAssert.assertThat ( underTest.validateNetworkAttachmentIpConfiguration ( networkAttachments ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void rollback ( ) { super . rollback ( ) ; org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolPerDcSingleton.getInstance ( ) . modifyPool ( oldMacPool ) ; }

Target:
public void onRollback ( ) { poolPerDc.modifyPool ( oldMacPool ) ; }
Source:
public void testStorageDomainForMemoryIsNotValidWhenItHasLowSpace ( ) { org.mockito.Mockito.when ( storageDomainValidator.isDomainWithinThresholds ( ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN ) ) ; org.junit.Assert.assertFalse ( filter.test ( storageDomain ) ) ; }

Target:
public void testStorageDomainForMemoryIsNotValidWhenItHasLowSpace ( ) { org.mockito.Mockito.when ( storageDomainValidator.isDomainWithinThresholds ( ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN ) ) ; org.junit.jupiter.api.Assertions.assertFalse ( filter.test ( storageDomain ) ) ; }
Source:
protected void setActionMessageParameters ( ) { super . setActionMessageParameters ( ) ; addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__REMOVE ) ; }

Target:
protected void setActionMessageParameters ( ) { super . setActionMessageParameters ( ) ; addValidationMessage ( EngineMessage.VAR__ACTION__REMOVE ) ; }
Source:
public void testGetByNameWithInvalidName ( ) { org.ovirt.engine.core.common.businessentities.network.Network result = dao.getByName ( "farkle" ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetByName ( ) { org.ovirt.engine.core.common.businessentities.network.Network result = dao.getByNameAndCluster ( org.ovirt.engine.core.dao.network.NetworkDaoTest.EXISTING_NETWORK_NAME1 , FixturesTool.CLUSTER ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.network.NetworkDaoTest.EXISTING_NETWORK_NAME1 , result.getName ( ) ) ; }
Source:
private void mockVmsUsingVnicProfile ( java.util.List < org.ovirt.engine.core.common.businessentities.VM > vms ) { org.mockito.Mockito.when ( vmDao.getAllForVnicProfile ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( vms ) ; }

Target:
private void mockVmsUsingVnicProfile ( java.util.List < org.ovirt.engine.core.common.businessentities.VM > vms ) { org.mockito.Mockito.when ( vmDao.getAllForVnicProfile ( org.mockito.ArgumentMatchers.any ( ) ) ) . thenReturn ( vms ) ; }
Source:
public static java.lang.String prepareMessageSubject ( int eventType , java.lang.String hostName , java.lang.String message ) { return java.lang.String.format ( "%s (%s), [%s]" , org.ovirt.engine.core.notifier.utils.sender.mail.MessageHelper.MessageType.getMessageByEventType ( eventType ) , hostName , message ) ; }

Target:
public static java.lang.String prepareMessageSubject ( org.ovirt.engine.core.common.businessentities.AuditLogEventType type , java.lang.String hostName , java.lang.String message ) { return java.lang.String.format ( "%s (%s), [%s]" , type , hostName , message ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.core.common.businessentities.storage.DiskImage object ) { if ( object.isBoot ( ) ) { return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromSafeConstant ( org.ovirt.engine.ui.webadmin.section.main.view.popup.storage.backup.ImportVmFromExportDomainPopupView.constants.bootableDisk ( ) ) ; } return null ; }

Target:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.core.common.businessentities.storage.DiskImage object ) { if ( object.getDiskVmElements ( ) . iterator ( ) . next ( ) . isBoot ( ) ) { return com.google.gwt.safehtml.shared.SafeHtmlUtils.fromSafeConstant ( org.ovirt.engine.ui.webadmin.section.main.view.popup.storage.backup.ImportVmFromExportDomainPopupView.constants.bootableDisk ( ) ) ; } return null ; }
Source:
public static void initCommandsCollection ( ) { org.ovirt.engine.core.bll.CommandCtorsTest.commandClasses = commandsFromEnum ( org.ovirt.engine.core.common.action.VdcActionType.class , CommandsFactory :: getCommandClass ) ; }

Target:
public static void initCommandsCollection ( ) { org.ovirt.engine.core.bll.CommandCtorsTest.commandClasses = commandsFromEnum ( org.ovirt.engine.core.common.action.ActionType.class , CommandsFactory :: getCommandClass ) ; }
Source:
private void initCheckBoxEditors ( ) { importGlusterConfigurationEditor = new org.ovirt.engine.ui.common.widget.editor.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; countThreadsAsCoresEditor = new org.ovirt.engine.ui.common.widget.editor.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; enableTrustedServiceEditor = new org.ovirt.engine.ui.common.widget.editor.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; enableBallooning = new org.ovirt.engine.ui.common.widget.editor.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; }

Target:
private void initCheckBoxEditors ( ) { importGlusterConfigurationEditor = new org.ovirt.engine.ui.common.widget.editor.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; countThreadsAsCoresEditor = new org.ovirt.engine.ui.common.widget.editor.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; enableTrustedServiceEditor = new org.ovirt.engine.ui.common.widget.editor.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; enableBallooning = new org.ovirt.engine.ui.common.widget.editor.EntityModelCheckBoxEditor ( org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; enableBallooning.getContentWidgetContainer ( ) . setWidth ( "350px" ) ; }
Source:
public void updateCallBackNotified ( final org.ovirt.engine.core.compat.Guid commandId ) { commandsCache.updateCallBackNotified ( commandId ) ; }

Target:
public void updateCallbackNotified ( final org.ovirt.engine.core.compat.Guid commandId ) { commandsCache.updateCallbackNotified ( commandId ) ; }
Source:
public void testGetAllForAdElementFilteredWithPermissions ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Permissions > result = dao.getAllForAdElement ( org.ovirt.engine.core.dao.PermissionDAOTest.AD_ELEMENT_ID , org.ovirt.engine.core.dao.PRIVILEGED_USER_SESSION_ID , true ) ; org.ovirt.engine.core.dao.PermissionDAOTest.assertValidGetByAdElement ( result ) ; }

Target:
public void testGetAllForAdElementFilteredWithPermissions ( ) { org.junit.Assert.assertNotNull ( privilegedUserSession ) ; java.util.List < org.ovirt.engine.core.common.businessentities.Permissions > result = dao.getAllForAdElement ( org.ovirt.engine.core.dao.PermissionDAOTest.AD_ELEMENT_ID , privilegedUserSession.getId ( ) , true ) ; org.ovirt.engine.core.dao.PermissionDAOTest.assertValidGetByAdElement ( result ) ; }
Source:
public void testSubResourceLocator ( ) throws java.lang.Exception { control.replay ( ) ; assertTrue ( ( ( resource.getVmApplicationSubResource ( org.ovirt.engine.api.restapi.resource.BackendVmApplicationsResourceTest.VM_ID.toString ( ) ) ) instanceof org.ovirt.engine.api.resource.VmApplicationResource ) ) ; }

Target:
public void testSubResourceLocator ( ) throws java.lang.Exception { control.replay ( ) ; assertTrue ( ( ( resource.getVmApplicationResource ( org.ovirt.engine.api.restapi.resource.BackendVmApplicationsResourceTest.VM_ID.toString ( ) ) ) instanceof org.ovirt.engine.api.resource.VmApplicationResource ) ) ; }
Source:
private org.ovirt.engine.api.model.Template getFromDataDomain ( ) { return performGet ( VdcQueryType.GetVmTemplate , new org.ovirt.engine.core.common.queries.GetVmTemplateParameters ( guid ) ) ; }

Target:
private org.ovirt.engine.api.model.Template getFromDataDomain ( ) { return performGet ( QueryType.GetVmTemplate , new org.ovirt.engine.core.common.queries.GetVmTemplateParameters ( guid ) ) ; }
Source:
public boolean equals ( java.lang.Object obj ) { if ( obj instanceof org.ovirt.api.metamodel.concepts.Name ) { org.ovirt.api.metamodel.concepts.Name that = ( ( org.ovirt.api.metamodel.concepts.Name ) ( obj ) ) ; return this . words.equals ( that.words ) ; } return false ; }

Target:
public int hashCode ( ) { return java.util.Objects.hashCode ( words ) ; }
Source:
public static java.lang.String startPasswordDialog ( java.lang.String user ) throws java.io.IOException { return org.ovirt.engine.core.config.EngineConfigLogic.startPasswordDialog ( user , "Please enter a password" ) ; }

Target:
public static java.lang.String startPasswordDialog ( java.lang.String user ) throws java.io.IOException { return org.ovirt.engine.core.config.EngineConfigLogic.startPasswordDialog ( user , "Please enter a password: " ) ; }
Source:
public void setVmsCoresCount ( java.lang.Integer value ) { this . mVdsDynamic.setvms_cores_count ( value ) ; }

Target:
public void setReservedMem ( java.lang.Integer value ) { vdsDynamic.setReservedMem ( value ) ; }
Source:
private static boolean shouldMonitorCommand ( org.ovirt.engine.core.common.action.VdcActionType actionType , boolean isInternal ) { return ( actionType.isActionMonitored ( ) ) && ( ! isInternal ) ; }

Target:
private static boolean shouldMonitorCommand ( org.ovirt.engine.core.common.action.ActionType actionType , boolean isInternal ) { return ( actionType.isActionMonitored ( ) ) && ( ! isInternal ) ; }
Source:
public void testHostLinks ( ) throws java.lang.Exception { org.ovirt.engine.api.model.Host host = new org.ovirt.engine.api.model.Host ( ) ; host.setId ( org.ovirt.engine.api.common.util.LinkHelperTest.HOST_ID ) ; org.ovirt.engine.api.common.util.LinkHelper.addLinks ( setUpUriExpectations ( ) , host ) ; assertEquals ( org.ovirt.engine.api.common.util.LinkHelperTest.HOST_HREF , host.getHref ( ) ) ; }

Target:
public void testHostLinks ( ) throws java.lang.Exception { org.ovirt.engine.api.model.Host host = new org.ovirt.engine.api.model.Host ( ) ; host.setId ( org.ovirt.engine.api.common.util.LinkHelperTest.HOST_ID ) ; org.ovirt.engine.api.utils.LinkHelper.addLinks ( setUpUriExpectations ( ) , host ) ; assertEquals ( org.ovirt.engine.api.common.util.LinkHelperTest.HOST_HREF , host.getHref ( ) ) ; }
Source:
protected void orderListOfRunningVmsOnVds ( org.ovirt.engine.core.compat.Guid vdsId ) { vms = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDAO ( ) . getAllRunningForVds ( vdsId ) ; java.util.Collections.sort ( vms , java.util.Collections.reverseOrder ( new org.ovirt.engine.core.common.businessentities.VmsComparer ( ) ) ) ; }

Target:
protected void orderListOfRunningVmsOnVds ( org.ovirt.engine.core.compat.Guid vdsId ) { vms = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDao ( ) . getAllRunningForVds ( vdsId ) ; java.util.Collections.sort ( vms , java.util.Collections.reverseOrder ( new org.ovirt.engine.core.common.businessentities.VmsComparer ( ) ) ) ; }
Source:
protected boolean CanAddDomain ( ) { if ( ( org.ovirt.engine.core.bll.storage.AddExistingSANStorageDomainCommand.getStorageDomain ( ) . getstorage_domain_type ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainType.ImportExport ) ) { addCanDoActionMessage ( VdcBllMessages.ERROR_CANNOT_ADD_EXISTING_STORAGE_DOMAIN_CONNECTION_DATA_ILLEGAL ) ; return false ; } return org.ovirt.engine.core.bll.storage.AddExistingSANStorageDomainCommand.CheckExistingStorageDomain ( ) ; }

Target:
protected boolean CanAddDomain ( ) { if ( ( org.ovirt.engine.core.bll.storage.AddExistingSANStorageDomainCommand.getStorageDomain ( ) . getStorageDomainType ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainType.ImportExport ) ) { addCanDoActionMessage ( VdcBllMessages.ERROR_CANNOT_ADD_EXISTING_STORAGE_DOMAIN_CONNECTION_DATA_ILLEGAL ) ; return false ; } return org.ovirt.engine.core.bll.storage.AddExistingSANStorageDomainCommand.CheckExistingStorageDomain ( ) ; }
Source:
private void editInstanceType ( ) { createWindow ( new org.ovirt.engine.ui.uicommonweb.models.vms.ExistingInstanceTypeModelBehavior ( ( ( org.ovirt.engine.core.common.businessentities.InstanceType ) ( getSelectedItem ( ) ) ) ) , "edit_instance_type" , "OnEditInstanceType" , false , org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) . editInstanceTypeTitle ( ) ) ; }

Target:
private void editInstanceType ( ) { createWindow ( new org.ovirt.engine.ui.uicommonweb.models.vms.instancetypes.ExistingInstanceTypeModelBehavior ( ( ( org.ovirt.engine.core.common.businessentities.InstanceType ) ( getSelectedItem ( ) ) ) ) , "edit_instance_type" , "OnEditInstanceType" , false , org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) . editInstanceTypeTitle ( ) , HelpTag.edit_instance_type ) ; }
Source:
public void InitCdImage ( ) { updateUserCdImage ( ( ( org.ovirt.engine.core.common.businessentities.StoragePool ) ( getModel ( ) . getDataCenter ( ) . getSelectedItem ( ) ) ) . getId ( ) ) ; }

Target:
public void initCdImage ( ) { updateUserCdImage ( ( ( org.ovirt.engine.core.common.businessentities.StoragePool ) ( getModel ( ) . getDataCenter ( ) . getSelectedItem ( ) ) ) . getId ( ) ) ; }
Source:
public java.lang.Void runInTransaction ( ) { dao.updateAll ( entities ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { dao.updateAll ( procedureName , entities ) ; return null ; }
Source:
public void onDataLoad ( ) { checkIfDefaultStorageApplicableForAllDisks ( ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmModel.ON_DISK_LOAD ) ) ; }

Target:
public void onDataLoad ( ) { checkIfDefaultStorageApplicableForAllDisks ( ) ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmModel.ON_DISK_LOAD ) ) ; }
Source:
public void passthroughProfileValidProperties ( ) { passthroughProfileContainsSupportedPropertiesTest ( true , false , null , null ) ; org.junit.Assert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void passthroughProfileContainsQos ( ) { passthroughProfileContainsSupportedPropertiesTest ( true , false , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_GUID , null ) ; org.hamcrest.MatcherAssert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_PASSTHROUGH_PROFILE_CONTAINS_NOT_SUPPORTED_PROPERTIES ) ) ; }
Source:
public void canDoActionFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.StartGlusterVolumeProfileCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeParameters ( null ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }

Target:
public void validateFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.StartGlusterVolumeProfileCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeParameters ( null ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
protected java.util.Map < org.ovirt.engine.core.compat.Guid , java.lang.String > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( getProblematicVdsId ( ) , getClass ( ) . getName ( ) ) ; }

Target:
protected java.util.Map < java.lang.String , java.lang.String > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( getProblematicVdsId ( ) . toString ( ) , LockingGroup.VDS_FENCE.name ( ) ) ; }
Source:
private void mockValidateCustomProperties ( ) { org.mockito.Mockito.doReturn ( java.util.Collections.EMPTY_LIST ) . when ( command ) . validateCustomProperties ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.VmStatic.class ) ) ; }

Target:
private void mockValidateCustomProperties ( ) { org.mockito.Mockito.doReturn ( java.util.Collections.< org.ovirt.engine.core.utils.vmproperties.VmPropertiesUtils.ValidationError > emptyList ( ) ) . when ( command ) . validateCustomProperties ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.VmStatic.class ) ) ; }
Source:
void initRadioButtonEditors ( ) { displayConsoleVncEditor = new org.ovirt.engine.ui.common.widget.editor.EntityModelRadioButtonEditor ( "1" ) ; displayConsoleSpiceEditor = new org.ovirt.engine.ui.common.widget.editor.EntityModelRadioButtonEditor ( "1" ) ; specificHost = new com.google.gwt.user.client.ui.RadioButton ( "runVmOnHostGroup" ) ; isAutoAssignEditor = new org.ovirt.engine.ui.common.widget.editor.EntityModelRadioButtonEditor ( "runVmOnHostGroup" ) ; }

Target:
void initRadioButtonEditors ( ) { displayConsoleVncEditor = new org.ovirt.engine.ui.common.widget.editor.generic.EntityModelRadioButtonEditor ( "1" ) ; displayConsoleSpiceEditor = new org.ovirt.engine.ui.common.widget.editor.generic.EntityModelRadioButtonEditor ( "1" ) ; specificHost = new com.google.gwt.user.client.ui.RadioButton ( "runVmOnHostGroup" ) ; isAutoAssignEditor = new org.ovirt.engine.ui.common.widget.editor.generic.EntityModelRadioButtonEditor ( "runVmOnHostGroup" ) ; }
Source:
public void vmTemplateNameDefault ( ) { final java.lang.String n = b.getVmTemplateName ( ) ; org.junit.Assert.assertNull ( n ) ; }

Target:
public void vmTemplateNameDefault ( ) { final java.lang.String n = b.getVmTemplateName ( ) ; org.junit.jupiter.api.Assertions.assertNull ( n ) ; }
Source:
public org.ovirt.engine.core.bll.validator.storage.MultipleStorageDomainsValidator createMultipleStorageDomainsValidator ( java.util.Collection < org.ovirt.engine.core.common.businessentities.storage.DiskImage > diskImages ) { return new org.ovirt.engine.core.bll.validator.storage.MultipleStorageDomainsValidator ( params.getStoragePoolId ( ) , org.ovirt.engine.core.bll.ImagesHandler.getAllStorageIdsForImageIds ( diskImages ) ) ; }

Target:
public org.ovirt.engine.core.bll.validator.storage.MultipleStorageDomainsValidator createMultipleStorageDomainsValidator ( java.util.Collection < org.ovirt.engine.core.common.businessentities.storage.DiskImage > diskImages ) { return new org.ovirt.engine.core.bll.validator.storage.MultipleStorageDomainsValidator ( params.getStoragePoolId ( ) , org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.getAllStorageIdsForImageIds ( diskImages ) ) ; }
Source:
public void InitTest ( ) { mockCpuFlagsManagerHandler ( ) ; mockOsRepository ( ) ; org.ovirt.engine.core.common.utils.SimpleDependecyInjector.getInstance ( ) . bind ( org.ovirt.engine.core.dal.dbbroker.DbFacade.class , dbFacade ) ; }

Target:
public void InitTest ( ) { mockCpuFlagsManagerHandler ( ) ; mockOsRepository ( ) ; org.ovirt.engine.core.common.utils.SimpleDependencyInjector.getInstance ( ) . bind ( org.ovirt.engine.core.dal.dbbroker.DbFacade.class , dbFacade ) ; }
Source:
public void validateFailsMissingIsoFile ( ) { mockVdsWithOsVersion ( org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.VALID_OVIRT_VERSION ) ; org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters param = org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.createParameters ( ) ; param.setoVirtIsoFile ( org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.INVALID_VERSION_OVIRT_ISO_FILENAME ) ; org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommand < org.ovirt.engine.core.common.action.hostdeploy.InstallVdsParameters > command = createCommand ( param ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.VDS_CANNOT_INSTALL_MISSING_IMAGE_FILE ) ; }

Target:
public void validateFailsIsoVersionNotCompatible ( ) { mockVdsWithOsVersion ( org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.INVALID_OVIRT_VERSION ) ; command.getParameters ( ) . setoVirtIsoFile ( org.ovirt.engine.core.bll.hostdeploy.UpgradeOvirtNodeInternalCommandTest.VALID_VERSION_OVIRT_ISO_FILENAME ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.VDS_CANNOT_UPGRADE_BETWEEN_MAJOR_VERSION ) ; }
Source:
public static org.ovirt.engine.core.common.action.VdcReturnValueBase findVdcReturnValueByDescription ( java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > items , java.lang.String description ) { for ( org.ovirt.engine.core.common.action.VdcReturnValueBase i : items ) { if ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( i.getDescription ( ) , description ) ) { return i ; } } return null ; }

Target:
public static org.ovirt.engine.core.common.action.VdcReturnValueBase findVdcReturnValueByDescription ( java.util.ArrayList < org.ovirt.engine.core.common.action.VdcReturnValueBase > items , java.lang.String description ) { for ( org.ovirt.engine.core.common.action.VdcReturnValueBase i : items ) { if ( org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( i.getDescription ( ) , description ) ) { return i ; } } return null ; }
Source:
public void testGetAllRunningForStorageDomain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > result = dao.getAllRunningForStorageDomain ( org.ovirt.engine.core.dao.VmDAOTest.STORAGE_DOMAIN_ID ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllActiveForStorageDomain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > result = dao.getAllActiveForStorageDomain ( org.ovirt.engine.core.dao.VmDAOTest.STORAGE_DOMAIN_ID ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }
Source:
private void setupGetStorageDomainExpectations ( org.ovirt.engine.core.common.businessentities.StorageDomainType type ) { setUpEntityQueryExpectations ( VdcQueryType.GetStorageDomainById , org.ovirt.engine.core.common.queries.StorageDomainQueryParametersBase.class , new java.lang.String [ ] { "StorageDomainId" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , getStorageDomain ( GUIDS [ 0 ] , type ) ) ; }

Target:
private void setupGetStorageDomainExpectations ( org.ovirt.engine.core.common.businessentities.StorageDomainType type ) { setUpEntityQueryExpectations ( VdcQueryType.GetStorageDomainById , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , getStorageDomain ( GUIDS [ 0 ] , type ) ) ; }
Source:
protected org.ovirt.engine.core.vdsbroker.vdsbroker.StatusForXmlRpc getReturnStatus ( ) { return isoList.mStatus ; }

Target:
protected org.ovirt.engine.core.vdsbroker.vdsbroker.StatusForXmlRpc getReturnStatus ( ) { return isoList.getXmlRpcStatus ( ) ; }
Source:
private void saveConnection ( org.ovirt.engine.core.common.businessentities.storage.LUNStorageServerConnectionMap connectionMapRecord ) { if ( ( getStorageServerConnectionLunMapDao ( ) . get ( connectionMapRecord.getId ( ) ) ) == null ) { getStorageServerConnectionLunMapDao ( ) . save ( connectionMapRecord ) ; } }

Target:
private void saveConnection ( org.ovirt.engine.core.common.businessentities.storage.LUNStorageServerConnectionMap connectionMapRecord ) { if ( ( storageServerConnectionLunMapDao.get ( connectionMapRecord.getId ( ) ) ) == null ) { storageServerConnectionLunMapDao.save ( connectionMapRecord ) ; } }
Source:
public void testEmptySignKeyVal ( ) { java.util.Map < java.lang.String , java.lang.String > map = org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStringUtils.string2Map ( org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStringUtilsTest.EMPTY_SIGN_KEY_VAL ) ; org.junit.Assert.assertEquals ( 1 , map.size ( ) ) ; }

Target:
public void testEmptySignKeyVal ( ) { java.util.Map < java.lang.String , java.lang.String > map = org.ovirt.engine.core.utils.StringMapUtils.string2Map ( org.ovirt.engine.core.utils.StringMapUtilsTest.EMPTY_SIGN_KEY_VAL ) ; org.junit.Assert.assertEquals ( 1 , map.size ( ) ) ; }
Source:
public static java.util.List < java.lang.String > getSoundDevicesForEntity ( org.ovirt.engine.api.restapi.resource.BackendResource resource , org.ovirt.engine.core.compat.Guid id ) { return resource.getEntity ( java.util.List.class , VdcQueryType.GetSoundDevices , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) , "GetSoundDevices" , true ) ; }

Target:
public static java.util.List < java.lang.String > getSoundDevicesForEntity ( org.ovirt.engine.api.restapi.resource.BackendResource resource , org.ovirt.engine.core.compat.Guid id ) { return resource.getEntity ( java.util.List.class , QueryType.GetSoundDevices , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) , "GetSoundDevices" , true ) ; }
Source:
public java.lang.String getname ( ) { return this . name ; }

Target:
public java.lang.String getLastName ( ) { return lastName ; }
Source:
public boolean disconnectStorageFromDomainByVdsId ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.compat.Guid vdsId ) { return true ; }

Target:
public boolean connectStorageToDomainByVdsId ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.compat.Guid vdsId ) { return runConnectionStorageToDomain ( storageDomain , vdsId , VDSCommandType.ConnectStorageServer.getValue ( ) ) . getFirst ( ) ; }
Source:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( ) { return command ; }

Target:
public boolean isEnabled ( java.util.List < T > selectedItems ) { return org.ovirt.engine.ui.webadmin.plugin.jsni.JsFunctionResultHelper.invokeAndGetResultAsBoolean ( actionButtonInterface.isEnabled ( ) , org.ovirt.engine.ui.webadmin.plugin.entity.EntityObject.arrayFrom ( selectedItems ) , null , true ) ; }
Source:
private void updateController ( ) { this . controller = modelProvider.getModel ( ) ; updateTimer ( ) ; }

Target:
org.ovirt.engine.ui.uicommonweb.models.GridTimer getModelTimer ( ) { return modelProvider.getModel ( ) . getTimer ( ) ; }
Source:
void updateCommonModel ( ) { this . commonModel = org.ovirt.engine.ui.common.uicommon.model.CommonModelManager.instance ( ) ; }

Target:
void updateCommonModel ( ) { this . commonModel = org.ovirt.engine.ui.common.uicommon.model.CommonModelManager.instance ( ) ; getView ( ) . setCommonModel ( commonModel ) ; }
Source:
public void testFloatingDisk ( ) { org.junit.Assert.assertEquals ( ActionType.MoveOrCopyDisk , command.getMoveActionType ( java.util.Collections.emptyList ( ) ) ) ; }

Target:
public void testFloatingDisk ( ) { org.junit.jupiter.api.Assertions.assertEquals ( ActionType.MoveOrCopyDisk , command.getMoveActionType ( java.util.Collections.emptyList ( ) ) ) ; }
Source:
public void setPmSecondaryPort ( java.lang.Integer value ) { mVdsStatic.setPmSecondaryPort ( value ) ; }

Target:
public void setSELinuxEnforceMode ( java.lang.Integer value ) { mVdsDynamic.setSELinuxEnforceMode ( value ) ; }
Source:
public void testAddVnicProfileFailure ( ) throws java.lang.Exception { doTestBadAddVnicProfile ( true , false , org.ovirt.engine.api.restapi.resource.FAILURE ) ; }

Target:
public void testAddVnicProfileFailure ( ) throws java.lang.Exception { setUpNetworkQueryExpectations ( ) ; doTestBadAddVnicProfile ( true , false , org.ovirt.engine.api.restapi.resource.FAILURE ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface , org.ovirt.engine.core.common.businessentities.VmTemplate > object ) { return object.getSecond ( ) . getvds_group_name ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface , org.ovirt.engine.core.common.businessentities.VmTemplate > object ) { return object.getSecond ( ) . getVdsGroupName ( ) ; }
Source:
public void Search ( ) { super . Search ( ) ; }

Target:
public void search ( ) { super . search ( ) ; }
Source:
public void add ( ) { runAddAndVerify ( org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.createNewInterface ( ) , false , org.mockito.Mockito.times ( 0 ) , org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.OS_ID ) ; }

Target:
public void addWithExistingMacAddressSucceed ( ) { runAddAndVerify ( org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.createNewInterface ( ) , false ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.VmNetworkInterface i ) { if ( ( i.getNetworkName ( ) ) != null ) { return i.getNetworkName ( ) . equals ( bond.getNetworkName ( ) ) ; } return false ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface i ) { if ( ( i.getNetworkName ( ) ) != null ) { return i.getNetworkName ( ) . equals ( bond.getNetworkName ( ) ) ; } return false ; }
Source:
protected org.ovirt.engine.core.common.businessentities.storage.DiskVmElement getDiskVmElement ( ) { if ( ( dveFromDb ) == null ) { dveFromDb = org.ovirt.engine.core.bll.storage.disk.DetachDiskFromVmCommand.getDiskVmElementDao ( ) . get ( super . getDiskVmElement ( ) . getId ( ) ) ; } return dveFromDb ; }

Target:
protected org.ovirt.engine.core.common.businessentities.storage.DiskVmElement getDiskVmElement ( ) { if ( ( dveFromDb ) == null ) { dveFromDb = diskVmElementDao.get ( super . getDiskVmElement ( ) . getId ( ) ) ; } return dveFromDb ; }
Source:
public void setEntity ( org.ovirt.engine.core.common.businessentities.VM value ) { super . setEntity ( value ) ; }

Target:
private void attach ( ) { if ( ( getWindow ( ) ) != null ) { return ; } addDisk ( new org.ovirt.engine.ui.uicommonweb.models.vms.AttachDiskModel ( ) , org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) . attachVirtualDiskTitle ( ) , HelpTag.attach_virtual_disk , "attach_virtual_disk" ) ; }
Source:
public void networkPrefixInnocent ( ) throws java.lang.Exception { networkPrefixValidTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , DEFAULT_NETWORK_NAME ) ; }

Target:
public void networkPrefixInnocent ( ) throws java.lang.Exception { networkPrefixValidTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , org.ovirt.engine.core.bll.validator.NetworkValidatorTest.DEFAULT_NETWORK_NAME ) ; }
Source:
private void AddTaskToMap ( org.ovirt.engine.core.compat.Guid guid , org.ovirt.engine.core.bll.SPMAsyncTask asyncTask ) { _tasks.put ( guid , asyncTask ) ; logChangedMap = true ; }

Target:
private void addTaskToMap ( org.ovirt.engine.core.compat.Guid guid , org.ovirt.engine.core.bll.SPMAsyncTask asyncTask ) { _tasks.put ( guid , asyncTask ) ; logChangedMap = true ; }
Source:
public static org.ovirt.engine.core.utils.gluster.GlusterUtil getInstance ( ) { return org.ovirt.engine.core.utils.gluster.GlusterUtil.instance ; }

Target:
public static org.ovirt.engine.core.bll.utils.GlusterUtil getInstance ( ) { return org.ovirt.engine.core.bll.utils.GlusterUtil.instance ; }
Source:
protected void init ( ) { struct.add ( "vmId" , org.ovirt.engine.core.vdsbroker.vdsbroker.HotPlugNicVDSCommand.getParameters ( ) . getVm ( ) . getId ( ) . toString ( ) ) ; struct.add ( "nic" , initNicStructure ( ) ) ; }

Target:
protected void init ( ) { struct.add ( VdsProperties.vm_guid , org.ovirt.engine.core.vdsbroker.vdsbroker.HotPlugNicVDSCommand.getParameters ( ) . getVm ( ) . getId ( ) . toString ( ) ) ; struct.add ( VdsProperties.VM_NETWORK_INTERFACE , initNicStructure ( ) ) ; }
Source:
public void setButtonsEnabled ( boolean enabled ) { for ( com.google.gwt.user.client.ui.PushButton button : buttons ) { button.setEnabled ( enabled ) ; } }

Target:
public void setButtonsEnabled ( boolean enabled ) { for ( org.gwtbootstrap3.client.ui.Button button : buttons ) { button.setEnabled ( enabled ) ; } }
Source:
protected abstract void removeTabWidget ( com.google.gwt.user.client.ui.Widget tabWidget ) ;

Target:
public abstract void removeTabWidget ( com.google.gwt.user.client.ui.IsWidget tabWidget ) ;
Source:
private static void translateErrors ( java.util.List < org.ovirt.engine.core.common.action.VdcReturnValueBase > errors ) { for ( org.ovirt.engine.core.common.action.VdcReturnValueBase retVal : errors ) { retVal.setCanDoActionMessages ( org.ovirt.engine.ui.frontend.Frontend.canDoActionErrorsTranslator.translateErrorText ( retVal.getCanDoActionMessages ( ) ) ) ; } }

Target:
private static void translateErrors ( java.util.List < org.ovirt.engine.core.common.action.VdcReturnValueBase > errors ) { for ( org.ovirt.engine.core.common.action.VdcReturnValueBase retVal : errors ) { retVal.setCanDoActionMessages ( ( ( java.util.ArrayList < java.lang.String > ) ( org.ovirt.engine.ui.frontend.Frontend.translateError ( retVal ) ) ) ) ; } }
Source:
public void canDoActionFailureOnMovingVmLunDisk ( ) { initializeCommand ( ImageOperation.Move , new org.ovirt.engine.core.common.businessentities.storage.LunDisk ( ) ) ; vmDevice.setSnapshotId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.ACTION_TYPE_FAILED_LUN_DISK ) ; }

Target:
public void canDoActionFailureOnMovingVmLunDisk ( ) { initializeCommand ( ImageOperation.Move , new org.ovirt.engine.core.common.businessentities.storage.LunDisk ( ) ) ; vmDevice.setSnapshotId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.ACTION_TYPE_FAILED_NOT_SUPPORTED_DISK_STORAGE_TYPE ) ; }
Source:
public void searchQueryByNonExistentName ( ) { org.junit.Assert.assertTrue ( dao.getAllWithQuery ( "SELECT * FROM providers WHERE name = 'foo'" ) . isEmpty ( ) ) ; }

Target:
public void searchQueryByNonExistentName ( ) { org.junit.jupiter.api.Assertions.assertTrue ( dao.getAllWithQuery ( "SELECT * FROM providers WHERE name = 'foo'" ) . isEmpty ( ) ) ; }
Source:
public java.lang.Void runInTransaction ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStoragePoolIsoMapDAO ( ) . updateStatus ( new org.ovirt.engine.core.common.businessentities.StoragePoolIsoMapId ( storageDomainId , getStoragePool ( ) . getId ( ) ) , StorageDomainStatus.InActive ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStoragePoolIsoMapDao ( ) . updateStatus ( new org.ovirt.engine.core.common.businessentities.StoragePoolIsoMapId ( storageDomainId , getStoragePool ( ) . getId ( ) ) , StorageDomainStatus.InActive ) ; return null ; }
Source:
public org.ovirt.engine.ui.uicommonweb.models.Model setTitle ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( title , value ) ) ) { title = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Title" ) ) ; } return this ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.Model setTitle ( java.lang.String value ) { if ( ! ( java.util.Objects.equals ( title , value ) ) ) { title = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Title" ) ) ; } return this ; }
Source:
public static java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getVirtioScsiControllers ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.dao.getVmDeviceByVmIdTypeAndDevice ( vmId , VmDeviceGeneralType.CONTROLLER , VmDeviceType.VIRTIOSCSI.getName ( ) ) ; }

Target:
public static java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getVirtioScsiControllers ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.compat.Guid userID , boolean isFiltered ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.dao.getVmDeviceByVmIdTypeAndDevice ( vmId , VmDeviceGeneralType.CONTROLLER , VmDeviceType.VIRTIOSCSI.getName ( ) , userID , isFiltered ) ; }
Source:
public void testInterfaceByNameExists ( ) throws java.lang.Exception { org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.validator.HostInterfaceValidator ( createVdsNetworkInterfaceWithName ( ) ) . interfaceByNameExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testInterfaceByNameExists ( ) throws java.lang.Exception { org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.validator.HostInterfaceValidator ( createVdsNetworkInterfaceWithName ( ) ) . interfaceHasNameSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getEnabledHtml ( ) { return ! ( showTitle ) ? enabledImage : ! ( imageAfterTitle ) ? org.ovirt.engine.ui.common.widget.action.ImageUiCommandButtonDefinition.TEMPLATES.imageTextButton ( enabledImage , org.ovirt.engine.ui.common.widget.action.ImageUiCommandButtonDefinition.getTitle ( ) ) : org.ovirt.engine.ui.common.widget.action.ImageUiCommandButtonDefinition.TEMPLATES.textImageButton ( org.ovirt.engine.ui.common.widget.action.ImageUiCommandButtonDefinition.getTitle ( ) , enabledImage ) ; }

Target:
public com.google.gwt.safehtml.shared.SafeHtml getEnabledHtml ( ) { return ! ( showTitle ) ? enabledImage : ! ( imageAfterTitle ) ? org.ovirt.engine.ui.common.widget.action.ImageUiCommandButtonDefinition.templates.imageTextButton ( enabledImage , org.ovirt.engine.ui.common.widget.action.ImageUiCommandButtonDefinition.getTitle ( ) ) : org.ovirt.engine.ui.common.widget.action.ImageUiCommandButtonDefinition.templates.textImageButton ( org.ovirt.engine.ui.common.widget.action.ImageUiCommandButtonDefinition.getTitle ( ) , enabledImage ) ; }
Source:
public void validateSucceeds ( ) { initTestCommand ( volumeId2 , getBricks ( volumeId2 , 1 ) , 2 , 0 , false ) ; org.junit.Assert.assertTrue ( cmd.validate ( ) ) ; }

Target:
public void validateSucceeds ( ) { initTestCommand ( volumeId2 , getBricks ( volumeId2 , 1 ) , 2 , 0 , false ) ; org.junit.jupiter.api.Assertions.assertTrue ( cmd.validate ( ) ) ; }
Source:
public void testCDAVdsNotUp ( ) { vds.setStatus ( VDSStatus.Down ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( "canDoAction did not fail for a VDS with a status different from UP" , command , VdcBllMessages.CANNOT_FORCE_SELECT_SPM_VDS_NOT_UP ) ; }

Target:
public void testCDAVdsNotUp ( ) { vds.setStatus ( VDSStatus.Down ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( "canDoAction did not fail for a VDS with a status different from UP" , command , EngineMessage.CANNOT_FORCE_SELECT_SPM_VDS_NOT_UP ) ; }
Source:
private void setVnicProfiles ( org.ovirt.engine.ui.uicommonweb.models.ListModel < org.ovirt.engine.core.common.businessentities.network.VnicProfileView > vnicProfiles ) { this . vnicProfiles = vnicProfiles ; }

Target:
public void setSpiceProxy ( org.ovirt.engine.ui.uicommonweb.models.EntityModel < java.lang.String > spiceProxy ) { this . spiceProxy = spiceProxy ; }
Source:
protected abstract org.ovirt.engine.core.common.queries.VdcQueryType getProfilesByQosIdQueryType ( ) ;

Target:
protected abstract org.ovirt.engine.core.common.queries.VdcQueryType getUsingEntitiesByQosIdQueryType ( ) ;
Source:
public java.lang.String getValue ( java.lang.Object object ) { return java.lang.String.valueOf ( ( ( org.ovirt.engine.core.common.businessentities.VmTemplate ) ( object ) ) . getNumOfCpus ( ) ) ; }

Target:
public java.lang.String getValue ( java.lang.Object object ) { return java.lang.String.valueOf ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportTemplateData ) ( object ) ) . getTemplate ( ) . getNumOfCpus ( ) ) ; }
Source:
public javax.ws.rs.core.Response head ( ) { return adaptResponse ( delegate :: get ) ; }

Target:
public javax.ws.rs.core.Response head ( ) { return adaptResponse ( getDelegate ( ) :: get ) ; }
Source:
public int getAvailableMacsCount ( ) { try ( org.ovirt.engine.core.utils.lock.AutoCloseableLock l = new org.ovirt.engine.core.utils.lock.AutoCloseableLock ( lockObj.readLock ( ) ) ) { checkIfInitialized ( ) ; int availableMacsSize = macsStorage.getAvailableMacsCount ( ) ; org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolManagerRanges.log.debugFormat ( "Number of available Mac addresses = {1}" , availableMacsSize ) ; return availableMacsSize ; } }

Target:
public int getAvailableMacsCount ( ) { try ( org.ovirt.engine.core.utils.lock.AutoCloseableLock l = new org.ovirt.engine.core.utils.lock.AutoCloseableLock ( lockObj.readLock ( ) ) ) { checkIfInitialized ( ) ; int availableMacsSize = macsStorage.getAvailableMacsCount ( ) ; org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolManagerRanges.log.debug ( "Number of available Mac addresses = {}" , availableMacsSize ) ; return availableMacsSize ; } }
Source:
public org.ovirt.engine.core.bll.ValidationResult nameNotEmpty ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.ACTION_TYPE_FAILED_NAME_MAY_NOT_BE_EMPTY ) . when ( org.apache.commons.lang.StringUtils.isEmpty ( host.getName ( ) ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult nameNotEmpty ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.ACTION_TYPE_FAILED_NAME_MAY_NOT_BE_EMPTY ) . when ( org.apache.commons.lang.StringUtils.isEmpty ( host.getName ( ) ) ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface , org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.vms.VmInterfaceListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.virtualMachine.SubTabVirtualMachineNetworkInterfacePresenter.constants.virtualMachineNetworkInterfaceSubTabLabel ( ) , 1 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( ) { return new org.ovirt.engine.ui.common.uicommon.model.GroupedTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.virtualMachine.SubTabVirtualMachineNetworkInterfacePresenter.constants.virtualMachineNetworkInterfaceSubTabLabel ( ) , 1 ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.compat.Guid > getVdsWhiteList ( ) { org.ovirt.engine.core.compat.Guid predefinedDestinationVdsId = getPredefinedDestinationVdsId ( ) ; return predefinedDestinationVdsId != null ? java.util.Arrays.asList ( predefinedDestinationVdsId ) : super . getVdsWhiteList ( ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.compat.Guid > getVdsWhiteList ( ) { org.ovirt.engine.core.compat.Guid predefinedDestinationVdsId = getPredefinedVdsIdToRunOn ( ) ; return predefinedDestinationVdsId != null ? java.util.Arrays.asList ( predefinedDestinationVdsId ) : super . getVdsWhiteList ( ) ; }
Source:
public int getvm_count ( ) { return this . vm_count ; }

Target:
public int getVmCount ( ) { return vmCount ; }
Source:
public final boolean setData ( java.lang.String key , java.lang.Object value ) { java.lang.String sessionId = org.ovirt.engine.core.utils.ThreadLocalParamsContainer.getHttpSessionId ( ) ; if ( org.apache.commons.lang.StringUtils.isEmpty ( sessionId ) ) { return false ; } setData ( sessionId , key , value ) ; return true ; }

Target:
public final void removeSessionOnLogout ( java.lang.String sessionId ) { removeSessionImpl ( sessionId , Acct.ReportReason.PRINCIPAL_LOGOUT , "Prinicial %1$s has performed logout" , getPrincipalName ( sessionId ) ) ; }
Source:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > result = dao.getAll ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.AuditLogDAOTest.EXISTING_COUNT , result.size ( ) ) ; }

Target:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > result = dao.getAll ( null , false ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.AuditLogDAOTest.TOTAL_COUNT , result.size ( ) ) ; }
Source:
protected void setUpClusterQueryExpectations ( ) { setUpEntityQueryExpectations ( VdcQueryType.GetClusterById , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { CLUSTER_ID } , new org.ovirt.engine.core.common.businessentities.Cluster ( ) ) ; }

Target:
protected void setUpClusterQueryExpectations ( ) { setUpEntityQueryExpectations ( QueryType.GetClusterById , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { CLUSTER_ID } , new org.ovirt.engine.core.common.businessentities.Cluster ( ) ) ; }
Source:
public void testCanDoActionWithAttachedStorageDomain ( ) { storageDomain.setStorageType ( StorageType.NFS ) ; storageDomain.setStorageDomainType ( StorageDomainType.Data ) ; org.mockito.Mockito.doReturn ( java.lang.Boolean.TRUE ) . when ( command ) . isStorageDomainAttached ( storageDomain ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( "canDoAction shouldn't be possible for an attached storage domain" , command , EngineMessage.ACTION_TYPE_FAILED_FORMAT_STORAGE_DOMAIN_WITH_ATTACHED_DATA_DOMAIN ) ; }

Target:
public void testValidateWithAttachedStorageDomain ( ) { storageDomain.setStorageType ( StorageType.NFS ) ; storageDomain.setStorageDomainType ( StorageDomainType.Data ) ; org.mockito.Mockito.doReturn ( java.lang.Boolean.TRUE ) . when ( command ) . isStorageDomainAttached ( storageDomain ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( "validate shouldn't be possible for an attached storage domain" , command , EngineMessage.ACTION_TYPE_FAILED_FORMAT_STORAGE_DOMAIN_WITH_ATTACHED_DATA_DOMAIN ) ; }
Source:
private org.ovirt.engine.core.common.job.Job makeNonExternalTestJob ( ) { org.ovirt.engine.core.common.job.Job job = new org.ovirt.engine.core.common.job.Job ( ) ; job.setId ( org.ovirt.engine.core.bll.EndExternalJobCommandTest.jobId ) ; job.setDescription ( "Sample Job" ) ; job.setExternal ( false ) ; return job ; }

Target:
private org.ovirt.engine.core.common.job.Job makeNonExternalTestJob ( ) { org.ovirt.engine.core.common.job.Job job = makeJob ( ) ; job.setExternal ( false ) ; return job ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs args ) { if ( "IsChangable" . equals ( args.propertyName ) ) { enabled = model.getIsChangable ( ) ; updateEnabled ( ) ; } }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs args ) { if ( "IsChangable" . equals ( args.propertyName ) ) { setEnabled ( model.getIsChangable ( ) ) ; updateEnabled ( ) ; } }
Source:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { fetchSSHFingerprint ( ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { updatePmModels ( ) ; }
Source:
private static boolean hasSnappableDisks ( org.ovirt.engine.core.common.businessentities.VM vm ) { return ! ( vm.getImages ( ) . isEmpty ( ) ) ; }

Target:
private void saveDiskImageDynamic ( org.ovirt.engine.core.common.businessentities.DiskImage disk ) { org.ovirt.engine.core.common.businessentities.DiskImageDynamic diskDynamic = new org.ovirt.engine.core.common.businessentities.DiskImageDynamic ( ) ; diskDynamic.setId ( disk.getImageId ( ) ) ; diskDynamic.setactual_size ( disk.getactual_size ( ) ) ; getDiskImageDynamicDAO ( ) . save ( diskDynamic ) ; }