auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public boolean syncDomainInfo ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.compat.Guid vdsId ) { org.ovirt.engine.core.common.action.StorageDomainParametersBase parameters = new org.ovirt.engine.core.common.action.StorageDomainParametersBase ( storageDomain.getId ( ) ) ; parameters.setVdsId ( vdsId ) ; return org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( VdcActionType.SyncLunsInfoForBlockStorageDomain , parameters ) . getSucceeded ( ) ; }

Target:
public boolean syncDomainInfo ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.compat.Guid vdsId ) { org.ovirt.engine.core.common.action.SyncLunsInfoForBlockStorageDomainParameters parameters = new org.ovirt.engine.core.common.action.SyncLunsInfoForBlockStorageDomainParameters ( storageDomain.getId ( ) ) ; parameters.setVdsId ( vdsId ) ; return org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( VdcActionType.SyncLunsInfoForBlockStorageDomain , parameters ) . getSucceeded ( ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.Quota mockStorageQuotaGlobalInGrace ( ) { org.ovirt.engine.core.common.businessentities.Quota quota = mockBasicQuota ( ) ; quota.setId ( org.ovirt.engine.core.bll.quota.QuotaManagerTest.STORAGE_QUOTA_GLOBAL_OVER_THRESHOLD ) ; quota.setGlobalQuotaStorage ( getQuotaStorage ( 100 , 104 ) ) ; return quota ; }

Target:
private org.ovirt.engine.core.common.businessentities.Quota mockStorageQuotaGlobalOverThreshold ( ) { org.ovirt.engine.core.common.businessentities.Quota quota = mockBasicQuota ( ) ; quota.setId ( org.ovirt.engine.core.bll.quota.QuotaManagerTest.STORAGE_QUOTA_GLOBAL_OVER_THRESHOLD ) ; quota.setGlobalQuotaStorage ( getQuotaStorage ( 100 , 83 ) ) ; return quota ; }
Source:
public void ExpandAll ( ) { for ( org.ovirt.engine.ui.uicommonweb.models.common.SelectionTreeNodeModel stm : getPermissionGroupModels ( ) ) { stm.setIsExpanded ( true ) ; for ( org.ovirt.engine.ui.uicommonweb.models.common.SelectionTreeNodeModel stmChild : stm.getChildren ( ) ) { stmChild.setIsExpanded ( true ) ; } } }

Target:
public void expandAll ( ) { for ( org.ovirt.engine.ui.uicommonweb.models.common.SelectionTreeNodeModel stm : getPermissionGroupModels ( ) ) { stm.setIsExpanded ( true ) ; for ( org.ovirt.engine.ui.uicommonweb.models.common.SelectionTreeNodeModel stmChild : stm.getChildren ( ) ) { stmChild.setIsExpanded ( true ) ; } } }
Source:
public void testGetAllForStoragePoolWithPermissionsDisabledUnprivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllForStoragePool ( org.ovirt.engine.core.dao.StorageDomainDaoTest.EXISTING_STORAGE_POOL_ID , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , false ) ; org.ovirt.engine.core.dao.StorageDomainDaoTest.assertGetAllForStoragePoolResult ( result , org.ovirt.engine.core.dao.StorageDomainDaoTest.EXISTING_STORAGE_POOL_ID ) ; }

Target:
public void testGetAllForStoragePoolWithPermissionsDisabledUnprivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllForStoragePool ( FixturesTool.STORAGE_POOL_NFS , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , false ) ; org.ovirt.engine.core.dao.StorageDomainDaoTest.assertGetAllForStoragePoolResult ( result , FixturesTool.STORAGE_POOL_NFS ) ; }
Source:
public int compareTo ( org.ovirt.engine.core.common.businessentities.VmDevice other ) { return org.ovirt.engine.core.common.businessentities.BusinessEntityComparator.< org.ovirt.engine.core.common.businessentities.VmDevice , org.ovirt.engine.core.common.businessentities.VmDeviceId > newInstance ( ) . compare ( this , other ) ; }

Target:
public int compareTo ( org.ovirt.engine.core.common.businessentities.VmDevice other ) { return org.ovirt.engine.core.common.businessentities.comparators.BusinessEntityComparator.< org.ovirt.engine.core.common.businessentities.VmDevice , org.ovirt.engine.core.common.businessentities.VmDeviceId > newInstance ( ) . compare ( this , other ) ; }
Source:
protected void executeQueryCommand ( ) { getQueryReturnValue ( ) . setReturnValue ( getDbFacade ( ) . getDiskProfileDao ( ) . getAllForStorageDomain ( getParameters ( ) . getId ( ) , getUserID ( ) , getParameters ( ) . isFiltered ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { getQueryReturnValue ( ) . setReturnValue ( diskProfileDao.getAllForStorageDomain ( getParameters ( ) . getId ( ) , getUserID ( ) , getParameters ( ) . isFiltered ( ) ) ) ; }
Source:
public void setlog_type ( org.ovirt.engine.core.common.AuditLogType value ) { logType = value.getValue ( ) ; }

Target:
public void setLogType ( org.ovirt.engine.core.common.AuditLogType value ) { logType = value.getValue ( ) ; }
Source:
private javax.ws.rs.core.Response removeRestrictedInfoFromResponse ( javax.ws.rs.core.Response response ) { if ( isFiltered ( ) ) { org.ovirt.engine.api.model.VM vm = ( ( org.ovirt.engine.api.model.VM ) ( response.getEntity ( ) ) ) ; removeRestrictedInfoFromVM ( vm ) ; } return response ; }

Target:
private void validateIconParameters ( org.ovirt.engine.api.model.VM vm ) { if ( ! ( org.ovirt.engine.api.restapi.util.IconHelper.validateIconParameters ( vm ) ) ) { throw new org.ovirt.engine.api.restapi.resource.BaseBackendResource.WebFaultException ( null , localize ( Messages.INVALID_ICON_PARAMETERS ) , Response.Status.BAD_REQUEST ) ; } }
Source:
public javax.ws.rs.core.Response remove ( ) { return adaptRemove ( delegate :: remove ) ; }

Target:
public org.ovirt.engine.api.v3.types.V3VmPool update ( org.ovirt.engine.api.v3.types.V3VmPool pool ) { return adaptUpdate ( getDelegate ( ) :: update , pool ) ; }
Source:
public void setVncAvailable ( boolean visible ) { vncRadioButton.setVisible ( visible ) ; }

Target:
public void setVncAvailable ( boolean visible ) { vncRadioButton.setEnabled ( visible ) ; vncRadioButton.setTitle ( ( visible ? "" : constants.vncNotAvailable ( ) ) ) ; }
Source:
public void edit ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkManageModel model ) { networks.edit ( model ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkManageModel flush ( ) { return networks.asEditor ( ) . flush ( ) ; }
Source:
public void getUsbPolicyUsbTypeLegacy ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; usb.setType ( "legacy" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) , UsbPolicy.ENABLED_LEGACY ) ; }

Target:
public void getUsbPolicyUsbTypeLegacy ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; usb.setType ( UsbType.LEGACY ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) , UsbPolicy.ENABLED_LEGACY ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.Cluster getSelectedCluster ( ) { return cluster ; }

Target:
protected org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel createModel ( org.ovirt.engine.ui.uicommonweb.models.vms.VmModelBehaviorBase behavior ) { return new org.ovirt.engine.ui.uicommonweb.models.pools.PoolModel ( behavior ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult storagePoolExists ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.ACTION_TYPE_FAILED_STORAGE_POOL_NOT_EXIST ) . when ( ( ( ( entity.getStoragePoolId ( ) ) != null ) && ( ( getStoragePool ( ) ) == null ) ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult storagePoolExists ( ) { if ( ( entity.getStoragePoolId ( ) ) == null ) { return org.ovirt.engine.core.bll.ValidationResult.VALID ; } return getStoragePoolValidator ( ) . exists ( ) ; }
Source:
public boolean getAllowConsoleReconnect ( ) { return this . mVmStatic.getAllowConsoleReconnect ( ) ; }

Target:
public void setAllowConsoleReconnect ( boolean value ) { this . vmStatic.setAllowConsoleReconnect ( value ) ; }
Source:
public void testMulKeyVal ( ) { java.util.Map < java.lang.String , java.lang.String > map = org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStringUtils.string2Map ( MUL_KEY_VAL ) ; org.junit.Assert.assertEquals ( map.size ( ) , 4 ) ; }

Target:
public void testMulKeyVal ( ) { 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.MUL_KEY_VAL ) ; org.junit.Assert.assertEquals ( map.size ( ) , 4 ) ; }
Source:
public void findNoneOfActiveVmsUsingNetworks ( ) { mockDaos ( true ) ; java.util.List < java.lang.String > vmNames = findActiveVmsUsingNetwork.findNamesOfActiveVmsUsingNetworks ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , ( ( org.ovirt.engine.core.bll.network.FindActiveVmsUsingNetworkTest.NETWORK_NAME ) + "1" ) ) ; org.junit.Assert.assertTrue ( vmNames.isEmpty ( ) ) ; }

Target:
public void findNoneOfActiveVmsUsingNetworks ( ) { mockDaos ( true ) ; java.util.List < java.lang.String > vmNames = findActiveVmsUsingNetwork.findNamesOfActiveVmsUsingNetworks ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , ( ( org.ovirt.engine.core.bll.network.FindActiveVmsUsingNetworkTest.NETWORK_NAME ) + "1" ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( vmNames.isEmpty ( ) ) ; }
Source:
public void storagePoolUpEvent ( org.ovirt.engine.core.common.businessentities.StoragePool storagePool ) { org.ovirt.engine.core.bll.tasks.TaskManagerUtil.addStoragePoolExistingTasks ( storagePool ) ; }

Target:
public void storagePoolUpEvent ( org.ovirt.engine.core.common.businessentities.StoragePool storagePool ) { org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.addStoragePoolExistingTasks ( storagePool ) ; }
Source:
public void testGetAllInstanceTypesWithPermissionsForUnpriviligedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > result = dao.getAll ( org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true , VmEntityType.INSTANCE_TYPE ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllInstanceTypesWithPermissionsForUnpriviligedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > result = dao.getAll ( org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true , VmEntityType.INSTANCE_TYPE ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertTrue ( result.isEmpty ( ) ) ; }
Source:
protected void unLockImage ( ) { org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.updateAllDiskImageSnapshotsStatus ( org.ovirt.engine.core.bll.storage.disk.image.MoveImageGroupCommand.getRelevantDiskImage ( ) . getId ( ) , ImageStatus.OK ) ; }

Target:
protected void unLockImage ( ) { imageDao.updateStatusOfImagesByImageGroupId ( org.ovirt.engine.core.bll.storage.disk.image.MoveImageGroupCommand.getRelevantDiskImage ( ) . getId ( ) , ImageStatus.OK ) ; }
Source:
public void qosNotConfiguredOnAllNetworks ( ) { org.ovirt.engine.core.bll.network.host.SetupNetworksHelper helper = setupCompositeQosConfiguration ( false ) ; validateAndExpectViolation ( helper , VdcBllMessages.ACTION_TYPE_FAILED_HOST_NETWORK_QOS_INTERFACES_WITHOUT_QOS , org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.BOND_NAME ) ; }

Target:
public void qosNotConfiguredOnAllNetworks ( ) { org.ovirt.engine.core.bll.network.host.SetupNetworksHelper helper = setupCompositeQosConfiguration ( false ) ; validateAndExpectViolation ( helper , EngineMessage.ACTION_TYPE_FAILED_HOST_NETWORK_QOS_INTERFACES_WITHOUT_QOS , org.ovirt.engine.core.bll.network.host.SetupNetworksHelperTest.BOND_NAME ) ; }
Source:
protected org.ovirt.engine.core.common.action.VdcActionType getVdcActionType ( ) { return org.ovirt.engine.core.common.action.VdcActionType.UpdateVmTemplateInterface ; }

Target:
protected org.ovirt.engine.core.common.action.ActionType getActionType ( ) { return org.ovirt.engine.core.common.action.ActionType.UpdateVmTemplateInterface ; }
Source:
public void testGet ( ) { org.ovirt.engine.core.common.businessentities.LUNs result = dao.get ( existingLUN.getLUN_id ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingLUN , result ) ; }

Target:
public void testGet ( ) { org.ovirt.engine.core.common.businessentities.storage.LUNs result = dao.get ( existingLUN.getLUN_id ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingLUN , result ) ; }
Source:
public void testValidationFailsDiskNotExists ( ) { org.mockito.Mockito.doReturn ( null ) . when ( diskDao ) . get ( diskId ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_DISK_NOT_EXIST ) ; }

Target:
public void testValidationFailsDiskNotExists ( ) { org.mockito.Mockito.when ( diskValidator.isDiskExists ( ) ) . thenReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_DISK_NOT_EXIST ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_DISK_NOT_EXIST ) ; }
Source:
public java.lang.Integer getDisplaySecurePort ( ) { return this . vmDynamic.getDisplaySecurePort ( ) ; }

Target:
public java.util.List < java.lang.Integer > getNetworkUsageHistory ( ) { return this . vmStatistics.getNetworkUsageHistory ( ) ; }
Source:
public void setSelectedItem ( org.ovirt.engine.core.common.businessentities.network.VnicProfileView value ) { super . setSelectedItem ( value ) ; updateLinkChangability ( ) ; }

Target:
public void setSelectedItem ( org.ovirt.engine.core.common.businessentities.network.VnicProfileView value ) { super . setSelectedItem ( value ) ; if ( ( value != null ) && ( value.isPassthrough ( ) ) ) { getNicType ( ) . setSelectedItem ( VmInterfaceType.pciPassthrough ) ; } updateLinkChangability ( ) ; }
Source:
public void testValidNonPatternName ( ) { junit.framework.Assert.assertTrue ( new org.ovirt.engine.ui.uicommonweb.validation.PoolNameValidationTest.TestablePoolNameValidation ( ) . validate ( "pool-T4534f" ) . getSuccess ( ) ) ; }

Target:
public void testValidNonPatternName ( ) { org.junit.Assert.assertTrue ( new org.ovirt.engine.ui.uicommonweb.validation.PoolNameValidationTest.TestablePoolNameValidation ( ) . validate ( "pool-T4534f" ) . getSuccess ( ) ) ; }
Source:
public void testNameNotChanged ( ) { prepareVmToPassCanDoAction ( ) ; vm.setName ( "vm1" ) ; mockSameNameQuery ( true ) ; mockVmValidator ( ) ; org.junit.Assert.assertTrue ( "canDoAction should have passed." , command.canDoAction ( ) ) ; }

Target:
public void testLongName ( ) { vmStatic.setName ( "this_should_be_very_long_vm_name_so_it will_fail_can_do_action_validation" ) ; org.junit.Assert.assertFalse ( "validate should fail for too long vm name." , command.validate ( ) ) ; assertValidateMessage ( EngineMessage.ACTION_TYPE_FAILED_NAME_LENGTH_IS_TOO_LONG ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterGuideModel dataCenterGuideModel = ( ( org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterGuideModel ) ( target ) ) ; dataCenterGuideModel.clusters = ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Cluster > ) ( returnValue ) ) ; dataCenterGuideModel.updateOptionsLocalFS ( ) ; }

Target:
public void onSuccess ( java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > returnValue ) { clusters = returnValue ; updateOptionsLocalFS ( ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VmDevice generateNewEntity ( ) { return new org.ovirt.engine.core.common.businessentities.VmDevice ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) , org.ovirt.engine.core.dao.VmDeviceDAOTest.EXISTING_VM_ID ) , "disk" , "floppy" , "type:'drive', controller:'0', bus:'0', unit:'1'" , 2 , new java.util.HashMap < java.lang.String , java.lang.Object > ( ) , true , false , false , "alias" ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VmDevice generateNewEntity ( ) { return new org.ovirt.engine.core.common.businessentities.VmDevice ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) , org.ovirt.engine.core.dao.VmDeviceDAOTest.EXISTING_VM_ID ) , org.ovirt.engine.core.common.businessentities.VmDeviceGeneralType.DISK , "floppy" , "type:'drive', controller:'0', bus:'0', unit:'1'" , 2 , new java.util.HashMap < java.lang.String , java.lang.Object > ( ) , true , false , false , "alias" ) ; }
Source:
public void happyPath ( ) { org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }

Target:
public void nameExists ( ) { newPoolNameIsAlreadyTaken ( ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_STORAGE_POOL_NAME_ALREADY_EXIST ) ; }
Source:
public static java.util.HashMap < java.lang.Integer , java.lang.String > getOsUniqueOsNames ( ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.uniqueOsNames ; }

Target:
public java.util.HashMap < java.lang.Integer , java.lang.String > getOsUniqueOsNames ( ) { return uniqueOsNames ; }
Source:
protected void toggleGhost ( org.ovirt.engine.ui.uicommonweb.models.vms.VnicInstanceType value , org.ovirt.engine.ui.common.widget.profile.ProfileInstanceTypeEditor item , boolean becomingGhost ) { item.profileEditor.setEnabled ( ( ! becomingGhost ) ) ; item.profileEditor.asWidget ( ) . setEnabled ( true ) ; }

Target:
protected void toggleGhost ( org.ovirt.engine.ui.uicommonweb.models.vms.VnicInstanceType value , org.ovirt.engine.ui.common.widget.profile.ProfileInstanceTypeEditor widget , boolean becomingGhost ) { widget.vnicLabel.setEnabled ( ( ! becomingGhost ) ) ; }
Source:
protected java.lang.String getTitle ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel value ) { return value.isPool ( ) ? constants.returnVmLabel ( ) : constants.shutDownVm ( ) ; }

Target:
protected java.lang.String getTitle ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel value ) { return org.ovirt.engine.ui.userportal.section.main.view.tab.extended.SideTabExtendedVirtualMachineView.constants.suspendVmLabel ( ) ; }
Source:
private static void addOrUpdateTaskInDB ( org.ovirt.engine.core.common.businessentities.AsyncTasks asyncTask ) { org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.addOrUpdateTaskInDB ( asyncTask ) ; }

Target:
private static void addOrUpdateTaskInDB ( org.ovirt.engine.core.common.businessentities.AsyncTask asyncTask ) { org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.addOrUpdateTaskInDB ( asyncTask ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VDS getUpServer ( ) { return getClusterUtils ( ) . getRandomUpServer ( org.ovirt.engine.core.bll.gluster.GlusterCommandBase.getVdsGroupId ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VDS getUpServer ( ) { return getClusterUtils ( ) . getRandomUpServer ( org.ovirt.engine.core.bll.gluster.GlusterCommandBase.getClusterId ( ) ) ; }
Source:
private java.lang.String getClientUrl ( ) { return ( ( ( ( "http://" + ( com.google.gwt.user.client.Window.Location.getHost ( ) ) ) + "/ovirt-engine-novnc-main.html?host=" ) + ( getProxyHost ( ) ) ) + "&port=" ) + ( getProxyPort ( ) ) ; }

Target:
private java.lang.String getClientUrl ( ) { return ( ( ( ( ( ( com.google.gwt.user.client.Window.Location.getProtocol ( ) ) + "//" ) + ( com.google.gwt.user.client.Window.Location.getHost ( ) ) ) + "/ovirt-engine-novnc-main.html?host=" ) + ( config.getProxyHost ( ) ) ) + "&port=" ) + ( config.getProxyPort ( ) ) ; }
Source:
public static java.lang.String getEngineNetwork ( ) { return org.ovirt.engine.core.common.config.Config.< java.lang.String > getValue ( ConfigValues.ManagementNetwork ) ; }

Target:
public static java.lang.String getEngineNetwork ( ) { return org.ovirt.engine.core.common.config.Config.< java.lang.String > getValue ( ConfigValues.DefaultManagementNetwork ) ; }
Source:
javax.ws.rs.core.Response doExport ( org.ovirt.engine.api.model.Action action ) ;

Target:
javax.ws.rs.core.Response export ( org.ovirt.engine.api.model.Action action ) ;
Source:
public void testCommandPackagesAreSortedAlphabetically ( ) { java.lang.String [ ] commandPackages = org.ovirt.engine.core.bll.CommandsFactory.getCommandPackages ( ) ; java.lang.String [ ] sortedCommandPackages = commandPackages.clone ( ) ; java.util.Arrays.sort ( sortedCommandPackages ) ; org.junit.Assert.assertArrayEquals ( "The command packages are not sorted." , sortedCommandPackages , commandPackages ) ; }

Target:
public void testCommandPackagesAreSortedAlphabetically ( ) { java.lang.String [ ] commandPackages = org.ovirt.engine.core.bll.CommandsFactory.getCommandPackages ( ) ; java.lang.String [ ] sortedCommandPackages = commandPackages.clone ( ) ; java.util.Arrays.sort ( sortedCommandPackages ) ; org.junit.jupiter.api.Assertions.assertArrayEquals ( sortedCommandPackages , commandPackages , "The command packages are not sorted." ) ; }
Source:
public void failNegativeNumOfValuesToShow ( ) { java.util.List < java.lang.Object > items = createItems ( ) ; java.lang.String separator = ", " ; org.ovirt.engine.core.utils.ReplacementUtils.replaceWith ( org.ovirt.engine.core.utils.ReplacementUtilsTest.PROPERTY_NAME , items , separator , ( - 5 ) ) ; }

Target:
public void failZeroValuesToShow ( ) { java.util.List < java.lang.Object > items = createItems ( ) ; java.lang.String separator = ", " ; org.junit.jupiter.api.Assertions.assertThrows ( java.lang.IllegalArgumentException.class , ( ) -> org.ovirt.engine.core.utils.ReplacementUtils.replaceWith ( org.ovirt.engine.core.utils.ReplacementUtilsTest.PROPERTY_NAME , items , separator , 0 ) ) ; }
Source:
public void updateGlusterHookInSync ( org.ovirt.engine.core.compat.Guid id , boolean inSync ) { getCallsHandler ( ) . executeModification ( "UpdateGlusterHookInsync" , getCustomMapSqlParameterSource ( ) . addValue ( "id" , id ) . addValue ( "in_sync" , inSync ) ) ; }

Target:
public void updateGlusterHookStatus ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.common.businessentities.gluster.GlusterHookStatus status ) { getCallsHandler ( ) . executeModification ( "UpdateGlusterHookStatus" , createIdParameterMapper ( id ) . addValue ( "hook_status" , org.ovirt.engine.core.common.utils.EnumUtils.nameOrNull ( status ) ) ) ; }
Source:
public void validateGenerateVmNameStartsWithMask ( ) { junit.framework.Assert.assertEquals ( "017mypool" , org.ovirt.engine.core.utils.NameForVmInPoolGenerator.generateVmName ( "???mypool" . replace ( '?' , VmPool.MASK_CHARACTER ) , 17 ) ) ; }

Target:
public void validateGenerateVmNameStartsWithMask ( ) { org.ovirt.engine.core.utils.NameForVmInPoolGenerator generator = createNameForVmInPoolGenerator ( "???mypool" ) ; for ( int i = 1 ; i < 17 ; ++ i ) { generator.generateVmName ( ) ; } junit.framework.Assert.assertEquals ( "017mypool" , generator.generateVmName ( ) ) ; }
Source:
public void parametersWithSecureDeletionAreNotFixedOnFileDomainWhenPostZeroIsFalse ( ) { org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandlerTest.ParametersWithPostDeleteAction parameters = org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandler.fixParameters ( new org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandlerTest.ParametersWithPostDeleteAction ( false ) , true ) ; assertPostZeroValue ( parameters , false ) ; }

Target:
public void parametersWithSecureDeletionAreNotFixedOnFileDomainWhenPostZeroIsFalse ( ) { org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandlerTest.ParametersWithPostDeleteAction parameters = postDeleteActionHandler.fixParameters ( new org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandlerTest.ParametersWithPostDeleteAction ( false ) , true ) ; assertPostZeroValue ( parameters , false ) ; }
Source:
private java.lang.String determineProtocolMessage ( org.ovirt.engine.ui.uicommonweb.models.userportal.ConsoleProtocol protocol , org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel item ) { if ( ( consoleUtils.isSmartcardGloballyEnabled ( item ) ) && ( ! ( consoleUtils.isSmartcardEnabledOverriden ( item ) ) ) ) { return messages.consoleWithSmartcard ( protocol.displayName ) ; } return protocol.displayName ; }

Target:
private java.lang.String determineProtocolMessage ( org.ovirt.engine.ui.uicommonweb.models.ConsoleProtocol protocol , org.ovirt.engine.ui.uicommonweb.models.HasConsoleModel item ) { if ( ( consoleUtils.isSmartcardGloballyEnabled ( item ) ) && ( ! ( consoleUtils.isSmartcardEnabledOverriden ( item ) ) ) ) { return messages.consoleWithSmartcard ( protocol.displayName ) ; } return protocol.displayName ; }
Source:
protected boolean canPerformDiskHotPlug ( org.ovirt.engine.core.common.businessentities.Disk disk ) { return ( isHotPlugSupported ( ) ) && ( isDiskSupportedForPlugUnPlug ( disk ) ) ; }

Target:
protected boolean canPerformDiskHotPlug ( org.ovirt.engine.core.common.businessentities.storage.Disk disk ) { return ( isHotPlugSupported ( ) ) && ( isDiskSupportedForPlugUnPlug ( disk ) ) ; }
Source:
protected boolean validateStorageDomainAvailableSpace ( ) { return validate ( getStorageDomainValidator ( ) . hasSpaceForClonedDisks ( getImages ( ) ) ) ; }

Target:
protected boolean validateStorageDomainAvailableSpace ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > disksList = org.ovirt.engine.core.bll.ImagesHandler.getSnapshotsDummiesForStorageAllocations ( getImages ( ) ) ; return validate ( getStorageDomainValidator ( ) . hasSpaceForClonedDisks ( disksList ) ) ; }
Source:
public void setUsbAutoShare ( boolean usbAutoShare ) { this . usbAutoShare = usbAutoShare ; getUsbAutoShareChangedEvent ( ) . raise ( this , EventArgs.EMPTY ) ; }

Target:
public void setWanOptionsEnabled ( boolean wanOptionsEnabled ) { this . consoleOptions.setWanOptionsEnabled ( wanOptionsEnabled ) ; }
Source:
public void setVolumeEntity ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity volumeEntity ) { this . volumeEntity = volumeEntity ; updateActionAvailability ( volumeEntity ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.UICommand getPauseSessionCommand ( ) { return pauseSessionCommand ; }
Source:
public void testValidModifiedBondsFailsWhenInsufficientNumberOfSlaves ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Bond bond = new org.ovirt.engine.core.common.businessentities.network.Bond ( ) ; doTestValidModifiedBonds ( bond , ValidationResult.VALID , ValidationResult.VALID , VdcBllMessages.NETWORK_BONDS_INVALID_SLAVE_COUNT , false , false ) ; }

Target:
public void testValidModifiedBondsFailsWhenInsufficientNumberOfSlaves ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Bond bond = createBond ( ) ; doTestValidModifiedBonds ( bond , ValidationResult.VALID , ValidationResult.VALID , new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.NETWORK_BONDS_INVALID_SLAVE_COUNT ) , ValidationResult.VALID ) ; }
Source:
protected void setUpGetEntityExpectations ( int index ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.GetVmTemplate , org.ovirt.engine.core.common.queries.GetVmTemplateParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ index ] } , org.ovirt.engine.api.restapi.resource.BackendTemplatesBasedResourceTest.getEntity ( index ) ) ; }

Target:
protected void setUpGetEntityExpectations ( int index ) throws java.lang.Exception { setUpGetEntityExpectations ( QueryType.GetVmTemplate , org.ovirt.engine.core.common.queries.GetVmTemplateParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ index ] } , org.ovirt.engine.api.restapi.resource.BackendTemplatesBasedResourceTest.getEntity ( index ) ) ; }
Source:
public void init ( ) throws javax.servlet.ServletException { org.ovirt.engine.ui.frontend.server.gwt.GenericApiGWTServiceImpl.log.debug ( "Initializing servlet!" ) ; }

Target:
private java.lang.String getEngineSessionId ( ) { return ( ( java.lang.String ) ( getSession ( ) . getAttribute ( SessionConstants.HTTP_SESSION_ENGINE_SESSION_ID_KEY ) ) ) ; }
Source:
public java.util.Date getvm_last_boot_time ( ) { return this . mVmDynamic.getvm_last_boot_time ( ) ; }

Target:
public boolean isBalloonEnabled ( ) { return balloonEnabled ; }
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.isPartOfBond ( ) ) ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult networkCanBeAttached ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.CANNOT_ADD_NETWORK_ATTACHMENT_ON_SLAVE_OR_VLAN ) . when ( ( ( org.ovirt.engine.core.utils.NetworkUtils.isVlan ( iface ) ) || ( iface.isPartOfBond ( ) ) ) ) ; }
Source:
public void testIsNetworkInSyncWhenBootProtocolNotStaticNetmaskDifferent ( ) throws java.lang.Exception { initIpConfigurationBootProtocolNetmask ( NetworkBootProtocol.NONE , false ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testIsNetworkInSyncWhenIpv4GatewayDifferent ( ) { initIpv4ConfigurationBootProtocolGateway ( Ipv4BootProtocol.STATIC_IP , false ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( false ) ) ; }
Source:
public void removeLabel ( org.ovirt.engine.core.compat.Guid vfsConfigId , java.lang.String label ) { getCallsHandler ( ) . executeModification ( "DeletevfsConfigLabel" , createLabelParametersMapper ( vfsConfigId , label ) ) ; }

Target:
public void addNetwork ( org.ovirt.engine.core.compat.Guid vfsConfigId , org.ovirt.engine.core.compat.Guid networkId ) { getCallsHandler ( ) . executeModification ( "InsertVfsConfigNetwork" , createNetworkParametersMapper ( vfsConfigId , networkId ) ) ; }
Source:
public void versionDecreaseWithHost ( ) { createCommandWithOlderVersion ( true , false ) ; setupCpu ( ) ; vdsExist ( ) ; validateFailedWithReason ( EngineMessage.ACTION_TYPE_FAILED_CANNOT_DECREASE_CLUSTER_WITH_HOSTS_COMPATIBILITY_VERSION ) ; }

Target:
public void versionDecreaseLowerVersionThanDC ( ) { createCommandWithOlderVersion ( ) ; org.mockito.Mockito.when ( storagePoolDao.get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( org.ovirt.engine.core.bll.UpdateClusterCommandTest.createStoragePoolLocalFSOldVersion ( ) ) ; setupCpu ( ) ; validateFailedWithReason ( EngineMessage.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION_UNDER_DC ) ; }
Source:
protected void setUpConfigExpectations ( ) { org.easymock.classextension.EasyMock.expect ( org.ovirt.engine.core.common.config.Config.< java.lang.Integer > GetValue ( ConfigValues.NumberVmRefreshesBeforeSave ) ) . andReturn ( org.ovirt.engine.api.restapi.types.MappingTestHelper.rand ( 10 ) ) . anyTimes ( ) ; }

Target:
protected void setUpConfigExpectations ( ) { mcr.mockConfigValue ( ConfigValues.NumberVmRefreshesBeforeSave , 10 ) ; }
Source:
protected void startHardware ( ) { _writer.writeStartElement ( "Section" ) ; _writer.writeAttributeString ( org.ovirt.engine.core.utils.ovf.XSI_URI , "type" , ( ( OVF_PREFIX ) + ":VirtualHardwareSection_Type" ) ) ; }

Target:
protected void startHardwareSection ( ) { _writer.writeStartElement ( "Section" ) ; _writer.writeAttributeString ( org.ovirt.engine.core.utils.ovf.XSI_URI , "type" , ( ( OVF_PREFIX ) + ":VirtualHardwareSection_Type" ) ) ; }
Source:
protected org.ovirt.engine.core.bll.snapshots.SnapshotsManager getSnapshotManager ( ) { return new org.ovirt.engine.core.bll.snapshots.SnapshotsManager ( ) ; }

Target:
protected org.ovirt.engine.core.bll.snapshots.SnapshotVmConfigurationHelper getSnapshotVmConfigurationHelper ( ) { return new org.ovirt.engine.core.bll.snapshots.SnapshotVmConfigurationHelper ( ) ; }
Source:
public void canRebalanceOnDistributeReplicateVolume ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity volumeEntity = getDistributedReplicatedVolume ( volumeId1 , 12 , 4 ) ; org.ovirt.engine.core.bll.ValidationResult validationResult = brickValidator.canRebalance ( volumeEntity ) ; org.junit.Assert.assertThat ( validationResult , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void canRebalanceOnDistributeReplicateVolume ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity volumeEntity = getDistributedReplicatedVolume ( volumeId1 , 12 , 4 ) ; org.ovirt.engine.core.bll.ValidationResult validationResult = brickValidator.canRebalance ( volumeEntity ) ; org.hamcrest.MatcherAssert.assertThat ( validationResult , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VDSGroup object ) { return object.getcompatibility_version ( ) . getValue ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VDSGroup object ) { return object.getCompatibilityVersion ( ) . getValue ( ) ; }
Source:
public void validateFailedVMHasNotDisk ( ) throws java.lang.Exception { initializeCommand ( createParameters ( ) ) ; createNullDisk ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_DISK_NOT_EXIST ) ; }

Target:
public void validateFailedVMHasNotDisk ( ) throws java.lang.Exception { initializeCommand ( createParameters ( ) ) ; createNullDisk ( ) ; org.mockito.Mockito.doReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_DISK_NOT_EXIST ) ) . when ( diskValidator ) . isDiskExists ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_DISK_NOT_EXIST ) ; }
Source:
public java.lang.Void runInTransaction ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsStaticDao ( ) . update ( vdsStatic ) ; return null ; }

Target:
private void setFallbackProtocol ( org.ovirt.engine.core.common.businessentities.VdsProtocol protocol ) { final org.ovirt.engine.core.common.businessentities.VdsStatic vdsStatic = this . vds.getStaticData ( ) ; vdsStatic.setProtocol ( protocol ) ; org.ovirt.engine.core.utils.transaction.TransactionSupport.executeInNewTransaction ( ( ) -> { vdsStaticDao.update ( vdsStatic ) ; return null ; } ) ; }
Source:
protected void EntityPropertyChanged ( java.lang.Object sender , org.ovirt.engine.core.compat.PropertyChangedEventArgs e ) { super . EntityPropertyChanged ( sender , e ) ; behavior.EntityPropertyChanged ( e ) ; }

Target:
protected void EntityPropertyChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . EntityPropertyChanged ( sender , e ) ; behavior.EntityPropertyChanged ( e ) ; }
Source:
private void allQueriesForVms ( ) { org.mockito.Mockito.when ( vmDao.getAllForVdsGroup ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( java.util.Collections.< org.ovirt.engine.core.common.businessentities.VM > emptyList ( ) ) ; }

Target:
private void allQueriesForVms ( ) { org.mockito.Mockito.when ( vmDao.getAllForCluster ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( java.util.Collections.< org.ovirt.engine.core.common.businessentities.VM > emptyList ( ) ) ; }
Source:
public void setHibernationVolHandle ( java.lang.String value ) { this . hibernationVolHandle = value ; }

Target:
public void setGuestAgentStatus ( org.ovirt.engine.core.common.businessentities.GuestAgentStatus guestAgentStatus ) { this . guestAgentStatus = guestAgentStatus ; }
Source:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > result = dao.getAll ( ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.VmDAOTest.VM_COUNT , result.size ( ) ) ; }

Target:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > result = dao.getAll ( ) ; org.ovirt.engine.core.dao.VmDAOTest.assertCorrectGetAllResult ( result ) ; }
Source:
public java.lang.String toString ( ) { return ( ( ( ( "Path to theme: " + ( getPath ( ) ) ) + ", User portal css: " ) + ( getThemeStylesheets ( "webadmin" ) ) ) + ", Welcome page css: " ) + ( getThemeStylesheets ( "welcome" ) ) ; }

Target:
public java.lang.String toString ( ) { return org.ovirt.engine.core.common.utils.ToStringBuilder.forInstance ( this ) . append ( "Path to theme" , getPath ( ) ) . append ( "webadmin css" , getThemeStylesheets ( "webadmin" ) ) . append ( "welcome css" , getThemeStylesheets ( "welcome" ) ) . build ( ) ; }
Source:
public static void GetGlusterVolumeOptionInfoList ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid clusterId ) { org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.GetGlusterVolumeOptionsInfo , new org.ovirt.engine.core.common.queries.gluster.GlusterParameters ( clusterId ) , aQuery ) ; }

Target:
public static void getGlusterVolumeOptionInfoList ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid clusterId ) { org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.GetGlusterVolumeOptionsInfo , new org.ovirt.engine.core.common.queries.gluster.GlusterParameters ( clusterId ) , aQuery ) ; }
Source:
public void updatePanel ( org.ovirt.engine.core.common.businessentities.VmNetworkInterface nic ) { updateTabsData ( nic ) ; }

Target:
public void updatePanel ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface nic ) { updateTabsData ( nic ) ; }
Source:
public int getvmt_child_count ( ) { return this . vmt_child_countField ; }

Target:
public java.util.Date getVmtCreationDate ( ) { return this . vmtCreationDate ; }
Source:
protected void executeVmCommand ( ) { initVdss ( ) ; perform ( ) ; processVm ( ) ; org.ovirt.engine.core.bll.MigrateVmCommand.setSucceeded ( true ) ; }

Target:
public void reportCompleted ( ) { try { super . reportCompleted ( ) ; } finally { decreasePendingVms ( getVdsDestinationId ( ) ) ; org.ovirt.engine.core.bll.MigrateVmCommand.freeLock ( ) ; } }
Source:
public void testGetAllForNetworkWithInvalidNetwork ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.NetworkCluster > result = dao.getAllForNetwork ( networkNoCluster.getId ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForNetworkWithInvalidNetwork ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.NetworkCluster > result = dao.getAllForNetwork ( networkNoCluster.getId ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
protected void undoActionOnSourceAndDestination ( ) { if ( ( getDestinationDiskImage ( ) ) != null ) { removeSnapshot ( getDestinationDiskImage ( ) ) ; } if ( ( getDiskImage ( ) ) != null ) { unLockImage ( ) ; } }

Target:
protected void undoActionOnSourceAndDestination ( ) { if ( ( getDestinationDiskImage ( ) ) != null ) { removeSnapshot ( getDestinationDiskImage ( ) ) ; } if ( ( getRelevantDiskImage ( ) ) != null ) { unLockImage ( ) ; } }
Source:
public void testSingleAgentFenceActionExecutorUsage ( ) { org.ovirt.engine.core.bll.pm.HostFenceActionExecutor executor = new org.ovirt.engine.core.bll.pm.HostFenceActionExecutor ( fencedHost , new org.ovirt.engine.core.common.businessentities.FencingPolicy ( ) ) ; org.junit.Assert.assertTrue ( ( ( executor.createFenceActionExecutor ( createSingleAgentList ( 1 ) ) ) instanceof org.ovirt.engine.core.bll.pm.SingleAgentFenceActionExecutor ) ) ; }

Target:
public void testSingleAgentFenceActionExecutorUsage ( ) { org.ovirt.engine.core.bll.pm.HostFenceActionExecutor executor = new org.ovirt.engine.core.bll.pm.HostFenceActionExecutor ( fencedHost , new org.ovirt.engine.core.common.businessentities.FencingPolicy ( ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( ( ( executor.createFenceActionExecutor ( createSingleAgentList ( 1 ) ) ) instanceof org.ovirt.engine.core.bll.pm.SingleAgentFenceActionExecutor ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeSnapshotConfigReturnForXmlRpc glusterVolumeSnapshotConfigGet ( org.ovirt.engine.core.compat.Guid clusterId , java.lang.String volumeName ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterVolumeGeoRepSessionCreate ( java.lang.String volumeName , java.lang.String remoteHost , java.lang.String remoteVolumeName , java.lang.String remoteUserName , java.lang.Boolean force ) ;
Source:
public void testGetAllInterfacesWithIpAddress ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > interfaces = dao.getAllInterfacesWithIpAddress ( org.ovirt.engine.core.dao.network.InterfaceDaoTest.CLUSTER_ID , org.ovirt.engine.core.dao.network.InterfaceDaoTest.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 ( 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 ) ; }
Source:
public void testNetworkAttachmentIsSetWhenAttachmentIsNull ( ) throws java.lang.Exception { org.junit.Assert.assertThat ( createNetworkAttachmentValidator ( null ) . networkAttachmentIsSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NETWORK_ATTACHMENT_NOT_EXISTS ) ) ; }

Target:
public void testNetworkAttachmentIsSetWhenAttachmentIsNull ( ) throws java.lang.Exception { org.junit.Assert.assertThat ( createNetworkAttachmentValidator ( null ) . networkAttachmentIsSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.NETWORK_ATTACHMENT_NOT_EXISTS , HostSetupNetworksValidator.VAR_NETWORK_ATTACHMENT_NOT_EXISTS_ENTITY , "null" ) ) ; }
Source:
public org.ovirt.engine.api.model.Snapshot get ( ) { org.ovirt.engine.api.model.Snapshot entity = getSnapshot ( ) ; org.ovirt.engine.api.model.Snapshot snapshot = map ( entity , null ) ; snapshot = addLinks ( snapshot ) ; snapshot = collection.addVmConfiguration ( entity , snapshot ) ; return snapshot ; }

Target:
public org.ovirt.engine.api.model.Snapshot get ( ) { org.ovirt.engine.api.model.Snapshot entity = getSnapshot ( ) ; org.ovirt.engine.api.model.Snapshot snapshot = populate ( map ( entity , null ) , entity ) ; snapshot = addLinks ( snapshot ) ; snapshot = collection.addVmConfiguration ( entity , snapshot ) ; return snapshot ; }
Source:
public void setLabel ( java.lang.String label ) { getButtonWidget ( ) . setText ( label ) ; }

Target:
public void setLabel ( java.lang.String label ) { com.google.gwt.user.client.ui.Widget widget = getButtonWidget ( ) ; if ( widget instanceof com.google.gwt.user.client.ui.HasText ) { ( ( com.google.gwt.user.client.ui.HasText ) ( widget ) ) . setText ( label ) ; } }
Source:
public void setManagedDeviceMap ( java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.VmDevice > map ) { this . vmManagedDeviceMap = map ; }

Target:
public void setDbGeneration ( long value ) { this . dbGeneration = value ; }
Source:
public void bufferReset_sizeUpperBound ( ) { tested.reset ( 1 , ( ( org.ovirt.engine.ui.common.utils.AddOnlyRingBufferTest.CAPACITY ) + 1 ) ) ; }

Target:
public void bufferReset_sizeUpperBound ( ) { org.junit.jupiter.api.Assertions.assertThrows ( java.lang.IllegalArgumentException.class , ( ) -> tested.reset ( 1 , ( ( org.ovirt.engine.ui.common.utils.AddOnlyRingBufferTest.CAPACITY ) + 1 ) ) ) ; }
Source:
public void getAllForVmForUnprivilegedUserWithNoFilter ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface > interfaces = dao.getAllForVm ( org.ovirt.engine.core.dao.VmGuestAgentInterfaceDaoTest.EXISTING_VM_ID , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , false ) ; assertVmGuestAgentInterfaceForVm ( interfaces ) ; }

Target:
public void getAllForVmForUnprivilegedUserWithNoFilter ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface > interfaces = dao.getAllForVm ( FixturesTool.VM_RHEL5_POOL_50 , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , false ) ; assertVmGuestAgentInterfaceForVm ( interfaces ) ; }
Source:
private void mockVdsDynamicDao ( ) { org.ovirt.engine.core.common.businessentities.VdsDynamic currentVds = new org.ovirt.engine.core.common.businessentities.VdsDynamic ( ) ; currentVds.setId ( org.ovirt.engine.core.bll.pm.StartVdsCommandTest.FENCECD_HOST_ID ) ; currentVds.setStatus ( VDSStatus.NonResponsive ) ; org.mockito.Mockito.when ( vdsDynamicDao.get ( org.ovirt.engine.core.bll.pm.StartVdsCommandTest.FENCECD_HOST_ID ) ) . thenReturn ( currentVds ) ; }

Target:
private void mockVdsDynamicDao ( ) { org.ovirt.engine.core.common.businessentities.VdsDynamic currentVds = new org.ovirt.engine.core.common.businessentities.VdsDynamic ( ) ; currentVds.setId ( org.ovirt.engine.core.bll.pm.StartVdsCommandTest.FENCECD_HOST_ID ) ; currentVds.setStatus ( VDSStatus.Reboot ) ; org.mockito.Mockito.when ( vdsDynamicDao.get ( org.ovirt.engine.core.bll.pm.StartVdsCommandTest.FENCECD_HOST_ID ) ) . thenReturn ( currentVds ) ; }
Source:
public int hashCode ( org.ovirt.engine.core.common.businessentities.tags tag ) { return tag.gettag_id ( ) . hashCode ( ) ; }

Target:
public int hashCode ( org.ovirt.engine.core.common.businessentities.Tags tag ) { return tag.gettag_id ( ) . hashCode ( ) ; }
Source:
public org.ovirt.engine.core.bll.job.ExecutionContext createFinalizingContext ( org.ovirt.engine.core.compat.Guid stepId ) { return org.ovirt.engine.core.bll.job.ExecutionHandler.getInstance ( ) . createFinalizingContext ( stepId ) ; }

Target:
public void updateCommandStatus ( org.ovirt.engine.core.compat.Guid commandId , org.ovirt.engine.core.common.asynctasks.AsyncTaskType taskType , org.ovirt.engine.core.compat.CommandStatus status ) { commandsCache.updateCommandStatus ( commandId , taskType , status ) ; }
Source:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { model.setAuthenticationMethod ( AuthenticationMethod.PublicKey ) ; displayPassPkWindow ( false ) ; }

Target:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { model.setAuthenticationMethod ( AuthenticationMethod.PublicKey ) ; displayPasswordField ( false ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.AuditLog getEventWithExternalOrigin ( ) { org.ovirt.engine.core.common.businessentities.AuditLog auditLog = new org.ovirt.engine.core.common.businessentities.AuditLog ( ) ; auditLog.setaudit_log_id ( org.ovirt.engine.core.bll.RemoveAuditLogByIdCommandTest.EVENT_ID_3 ) ; auditLog.setOrigin ( org.ovirt.engine.core.bll.RemoveAuditLogByIdCommandTest.EXTERNAL_ORIGIN ) ; return auditLog ; }

Target:
private org.ovirt.engine.core.common.businessentities.AuditLog getEventWithExternalOrigin ( ) { org.ovirt.engine.core.common.businessentities.AuditLog auditLog = new org.ovirt.engine.core.common.businessentities.AuditLog ( ) ; auditLog.setAuditLogId ( org.ovirt.engine.core.bll.RemoveAuditLogByIdCommandTest.EVENT_ID_3 ) ; auditLog.setOrigin ( org.ovirt.engine.core.bll.RemoveAuditLogByIdCommandTest.EXTERNAL_ORIGIN ) ; return auditLog ; }