auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
static org.ovirt.engine.ui.uicommonweb.models.vms.VmModelBehaviorBase.TimezoneType getTimezoneByOs ( boolean windows ) { return windows ? org.ovirt.engine.ui.uicommonweb.models.vms.VmModelBehaviorBase.TimezoneType.WINDOWS_TIMEZONE : org.ovirt.engine.ui.uicommonweb.models.vms.VmModelBehaviorBase.TimezoneType.GENERAL_TIMEZONE ; }

Target:
public void run ( ) { doUpdateTimeZone ( null ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.core.common.businessentities.VM object ) { return null ; }

Target:
public org.ovirt.engine.core.common.businessentities.VMStatus getRawValue ( org.ovirt.engine.core.common.businessentities.VM object ) { return object.getStatus ( ) ; }
Source:
public void getAllByVmFilteredWithPermissionsNoPermissions ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Snapshot > snapshots = dao.getAll ( FixturesTool.VM_RHEL5_POOL_57 , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertTrue ( "VM should have no snapshots viewable to the user" , snapshots.isEmpty ( ) ) ; }

Target:
public void getAllByVmFilteredWithPermissionsNoPermissions ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Snapshot > snapshots = dao.getAll ( FixturesTool.VM_RHEL5_POOL_57 , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.jupiter.api.Assertions.assertTrue ( snapshots.isEmpty ( ) , "VM should have no snapshots viewable to the user" ) ; }
Source:
public void glusterNetworkWhenGlusterServiceChangeWithBricks ( ) { testGlusterNetworkInUseAndUnset ( true , false , true , true , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_GLUSTER_NETWORK_INUSE ) ) ; }

Target:
public void glusterNetworkWhenGlusterServiceChangeWithBricks ( ) { testGlusterNetworkInUseAndUnset ( true , false , true , true , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_GLUSTER_NETWORK_INUSE ) ) ; }
Source:
protected void setActionMessageParameters ( ) { if ( ( getMoveOrCopyImageOperation ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.ImageOperation.Move ) ) { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__MOVE ) ; } else { addCanDoActionMessage ( VdcBllMessages.VAR__ACTION__COPY ) ; } addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__VM_TEMPLATE ) ; }

Target:
protected void setActionMessageParameters ( ) { if ( ( getMoveOrCopyImageOperation ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.ImageOperation.Move ) ) { addCanDoActionMessage ( EngineMessage.VAR__ACTION__MOVE ) ; } else { addCanDoActionMessage ( EngineMessage.VAR__ACTION__COPY ) ; } addCanDoActionMessage ( EngineMessage.VAR__TYPE__VM_TEMPLATE ) ; }
Source:
protected boolean isFilterDestinationDomainsBySourceType ( ) { return false ; }

Target:
protected boolean isFilterDestinationDomainsBySourceType ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel model ) { return false ; }
Source:
public void testAction ( ) throws java.lang.Exception { javax.ws.rs.core.UriInfo uriInfo = mockUri ( "vms" , "00000001-0001-0001-0001-000000000011" , "freezefilesystems" ) ; javax.ws.rs.core.Request request = mockRequest ( "POST" ) ; org.ovirt.engine.api.model.Fault fault = usageFinder.getUsageMessage ( uriInfo , request ) ; org.junit.Assert.assertEquals ( "For correct usage, see: http://localhost:8080/ovirt-engine/apidoc#services/vm/methods/freeze_filesystems" , fault.getDetail ( ) ) ; }

Target:
public void testAction ( ) throws java.lang.Exception { javax.ws.rs.core.UriInfo uriInfo = mockUri ( "vms" , "00000001-0001-0001-0001-000000000011" , "freezefilesystems" ) ; javax.ws.rs.core.Request request = mockRequest ( "POST" ) ; org.ovirt.engine.api.model.Fault fault = usageFinder.getUsageMessage ( uriInfo , request ) ; org.junit.jupiter.api.Assertions.assertEquals ( "For correct usage, see: http://localhost:8080/ovirt-engine/apidoc#services/vm/methods/freeze_filesystems" , fault.getDetail ( ) ) ; }
Source:
private boolean canEditAssign ( org.ovirt.engine.ui.uicommonweb.models.hosts.VfsConfigNetwork vfsConfigNetwork ) { return ( vfsConfigNetwork.getLabelViaAttached ( ) ) == null ; }

Target:
private boolean canEditAssign ( org.ovirt.engine.ui.uicommonweb.models.hosts.VfsConfigNetwork vfsConfigNetwork ) { return ! ( vfsConfigNetwork.isAttachedViaLabel ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.action.RolesParameterBase generateParameters ( ) { return new org.ovirt.engine.core.common.action.RolesParameterBase ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.action.RolesParameterBase generateParameters ( ) { return new org.ovirt.engine.core.common.action.RolesParameterBase ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult networkExists ( ) { return ( getNetwork ( ) ) == null ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.NETWORK_NOT_EXISTS ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult portMirroringNotChangedIfUsedByVms ( ) { if ( ( vnicProfile.isPortMirroring ( ) ) == ( getOldVnicProfile ( ) . isPortMirroring ( ) ) ) { return org.ovirt.engine.core.bll.ValidationResult.VALID ; } return vnicProfileNotUsedByVms ( ) ; }
Source:
public void update ( int index , org.ovirt.engine.ui.uicommonweb.models.EntityModel model , java.lang.Boolean value ) { org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel clusterNetworkManageModel = ( ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel ) ( model ) ) ; changeIsAttached ( clusterNetworkManageModel , value ) ; refreshNetworksTable ( ) ; }

Target:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel clusterNetworkModel ) { return org.ovirt.engine.ui.webadmin.widget.table.column.NetworkRoleColumnHelper.getTooltip ( ( clusterNetworkModel.isVmNetwork ( ) ? java.util.Collections.singletonMap ( vmImage , constants.vmItemInfo ( ) ) : java.util.Collections.< com.google.gwt.safehtml.shared.SafeHtml , java.lang.String > emptyMap ( ) ) ) ; }
Source:
public void removeDisk ( ) { org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( ActionType.RemoveDisk , new org.ovirt.engine.core.common.action.RemoveDiskParameters ( org.ovirt.engine.core.bll.storage.repoimage.ImportRepoImageCommand.getParameters ( ) . getImageGroupID ( ) ) ) ; }

Target:
public void removeDisk ( ) { backend.runInternalAction ( ActionType.RemoveDisk , new org.ovirt.engine.core.common.action.RemoveDiskParameters ( org.ovirt.engine.core.bll.storage.repoimage.ImportRepoImageCommand.getParameters ( ) . getImageGroupID ( ) ) ) ; }
Source:
org.ovirt.engine.core.common.businessentities.Guid getit_guid ( ) ;

Target:
org.ovirt.engine.core.compat.Guid getImageTemplateId ( ) ;
Source:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.AddVdsSpmIdCommand.getVds ( ) . getStoragePoolId ( ) . toString ( ) , LockMessagesMatchUtil.REGISTER_VDS ) ; }

Target:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return java.util.Collections.singletonMap ( org.ovirt.engine.core.bll.AddVdsSpmIdCommand.getVds ( ) . getStoragePoolId ( ) . toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.REGISTER_VDS , VdcBllMessages.ACTION_TYPE_FAILED_OBJECT_LOCKED ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDSGroup > ( ) ; } return source ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.Cluster > ( ) ; } return source ; }
Source:
public void canDoActionSucceedsWhenGlusterServerHasNoPeers ( ) throws java.lang.Exception { setupGlusterMock ( true , new org.ovirt.engine.core.common.businessentities.VDS ( ) , false ) ; org.junit.Assert.assertTrue ( commandMock.canDoAction ( ) ) ; }

Target:
public void validateSucceedsWhenGlusterServerHasNoPeers ( ) throws java.lang.Exception { setupGlusterMock ( true , new org.ovirt.engine.core.common.businessentities.VDS ( ) , false ) ; org.junit.Assert.assertTrue ( commandMock.validate ( ) ) ; }
Source:
public java.lang.Void runInTransaction ( ) { getNetworkClusterDAO ( ) . remove ( getParameters ( ) . getVdsGroupId ( ) , getParameters ( ) . getNetworkCluster ( ) . getNetworkId ( ) ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { org.ovirt.engine.core.bll.network.cluster.NetworkClusterHelper helper = new org.ovirt.engine.core.bll.network.cluster.NetworkClusterHelper ( getParameters ( ) . getNetworkCluster ( ) ) ; helper.removeNetworkAndReassignRoles ( ) ; return null ; }
Source:
protected org.ovirt.engine.core.compat.Guid getTemplateId ( org.ovirt.engine.api.model.VM vm ) { return vm.getTemplate ( ) . isSetId ( ) ? asGuid ( vm.getTemplate ( ) . getId ( ) ) : getTemplateByName ( vm ) . getId ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid getTemplateId ( org.ovirt.engine.api.model.Template template ) { return template.isSetId ( ) ? asGuid ( template.getId ( ) ) : getTemplateByName ( template ) . getId ( ) ; }
Source:
public void ExecuteCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { expandTree ( display.getRootTreeNode ( ) , false ) ; }

Target:
public void ExecuteCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { com.google.gwt.user.cellview.client.TreeNode collapseNode = findNode ( display.getRootTreeNode ( ) , modelProvider.getSelectionModel ( ) . getSelectedObject ( ) ) ; if ( collapseNode != null ) { collapseTree ( collapseNode ) ; } }
Source:
public void testMultiple ( ) { org.ovirt.engine.api.types.V4Vm object = objectFromJson ( "{'fqdn':'myvm.example.com','name':'myvm'}" ) ; org.junit.Assert.assertEquals ( "myvm" , object.getName ( ) ) ; org.junit.Assert.assertEquals ( "myvm.example.com" , object.getFqdn ( ) ) ; }

Target:
public void testMultiple ( ) { org.ovirt.engine.api.types.V4Vm object = objectFromJson ( "{'fqdn':'myvm.example.com','name':'myvm'}" ) ; org.junit.Assert.assertEquals ( "myvm" , object.name ( ) ) ; org.junit.Assert.assertEquals ( "myvm.example.com" , object.fqdn ( ) ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepStatus ( java.lang.String volumeName ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepSessionStart ( java.lang.String volumeName , java.lang.String remoteHost , java.lang.String remoteVolumeName , java.lang.Boolean force ) ;
Source:
public static java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageType > getStoragePoolTypeList ( ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageType > ( java.util.Arrays.asList ( new org.ovirt.engine.core.common.businessentities.StorageType [ ] { org.ovirt.engine.core.common.businessentities.StorageType.NFS , org.ovirt.engine.core.common.businessentities.StorageType.ISCSI , org.ovirt.engine.core.common.businessentities.StorageType.FCP , org.ovirt.engine.core.common.businessentities.StorageType.LOCALFS , org.ovirt.engine.core.common.businessentities.StorageType.POSIXFS , org.ovirt.engine.core.common.businessentities.StorageType.GLUSTERFS } ) ) ; }

Target:
public static java.util.List < org.ovirt.engine.core.common.businessentities.DisplayType > getDisplayTypes ( int osId , org.ovirt.engine.core.compat.Version version ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.displayTypes.get ( osId ) . get ( version ) ; }
Source:
public void setVdsGroupId ( org.ovirt.engine.core.compat.Guid value ) { this . mVdsStatic.setVdsGroupId ( value ) ; }

Target:
public void setVdsGroupId ( org.ovirt.engine.core.compat.Guid value ) { vdsStatic.setVdsGroupId ( value ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VmOsType getVmOs ( ) { return this . vmStatic.getOs ( ) ; }

Target:
public void setVmOs ( int value ) { this . vmStatic.setOsId ( value ) ; }
Source:
public void canDoActionFailesOnDownVolume ( ) { cmd = createTestCommand ( volumeId2 ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }

Target:
public void canDoActionFailesOnDownVolume ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( volumeId2 ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }
Source:
public void postDataCenterWithClusterSelectedItemChanged ( ) { updateDefaultHost ( ) ; updateNumOfSockets ( ) ; updateQuotaByCluster ( template.getQuotaId ( ) , template.getQuotaName ( ) ) ; updateMemoryBalloon ( ) ; updateCpuSharesAvailability ( ) ; updateVirtioScsiAvailability ( ) ; }

Target:
public void postDataCenterWithClusterSelectedItemChanged ( ) { updateDefaultHost ( ) ; updateNumOfSockets ( ) ; updateQuotaByCluster ( template.getQuotaId ( ) , template.getQuotaName ( ) ) ; updateMemoryBalloon ( ) ; updateCpuSharesAvailability ( ) ; updateVirtioScsiAvailability ( ) ; updateMigrationForLocalSD ( ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid getExistingEntityId ( ) { return org.ovirt.engine.core.dao.StepDaoTest.EXISTING_STEP_ID ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getStepDao ( ) ; existingStep = dao.get ( org.ovirt.engine.core.dao.StepDaoTest.EXISTING_STEP_ID ) ; newStep = generateNewEntity ( ) ; }
Source:
public void testValidateNetworkExclusiveOnNicAtMostOneNonVmNetworkViolated ( ) throws java.lang.Exception { checkVmNetworkIsSoleAssignedInterface ( failsWithNetworkInterfacesNotExclusivelyUsedByNetwork ( ) , nonVmNetwork1 , nonVmNetwork2 ) ; }

Target:
public void testValidateNetworkExclusiveOnNicsVmNetworkMustBeSoleAttachedInterface ( ) throws java.lang.Exception { checkVmNetworkIsSoleAssignedInterface ( false , java.util.Arrays.asList ( NetworkType.VM ) , vmNetwork1 ) ; }
Source:
private void addStyles ( ) { overrideIpTablesEditor.addContentWidgetStyleName ( style.overrideIpStyle ( ) ) ; activateHostAfterInstallEditor.addContentWidgetStyleName ( style.activateHostAfterInstallStyle ( ) ) ; publicKeyEditor.setCustomStyle ( style.pkStyle ( ) ) ; }

Target:
private void addStyles ( ) { overrideIpTablesEditor.addContentWidgetContainerStyleName ( style.overrideIpStyle ( ) ) ; activateHostAfterInstallEditor.addContentWidgetContainerStyleName ( style.activateHostAfterInstallStyle ( ) ) ; publicKeyEditor.setCustomStyle ( style.pkStyle ( ) ) ; }
Source:
public boolean isInSync ( ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface.NetworkImplementationDetails details = getNetworkImplementationDetails ( ) ; return details != null ? details.isInSync ( ) : true ; }

Target:
public org.ovirt.engine.core.common.businessentities.network.NetworkAttachment getNetworkAttachment ( ) { return getSetupModel ( ) . getNetworkAttachmentForNetwork ( getNetwork ( ) . getId ( ) ) ; }
Source:
public void testGetAllForDiskProfile ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > result = dao.getAllForDiskProfile ( FixturesTool.DISK_PROFILE_1 ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( 1 , result.size ( ) ) ; }

Target:
public void testGetAllForDiskProfile ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > result = dao.getAllForDiskProfile ( FixturesTool.DISK_PROFILE_1 ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertEquals ( 1 , result.size ( ) ) ; }
Source:
public void validateBondOptionsForNewAttachementWithOutOfSyncVmNetworkNotOverridden ( ) { validateValidBonds ( true , true , false , false ) ; }

Target:
public void testValidateBondOptionsForNewAttachementWithNonVmNetwork ( ) { validateValidBondsForAllBondModes ( true , false , true , false ) ; }
Source:
protected org.ovirt.engine.api.model.KatelloErratum addLinks ( org.ovirt.engine.api.model.KatelloErratum model , java.lang.Class < ? extends org.ovirt.engine.api.model.BaseResource > suggestedParent , java.lang.String ... subCollectionMembersToExclude ) { return super . addLinks ( model , org.ovirt.engine.api.model.VM.class ) ; }

Target:
protected org.ovirt.engine.api.model.KatelloErratum addLinks ( org.ovirt.engine.api.model.KatelloErratum model , java.lang.Class < ? extends org.ovirt.engine.api.model.BaseResource > suggestedParent , java.lang.String ... subCollectionMembersToExclude ) { return super . addLinks ( model , org.ovirt.engine.api.model.Vm.class ) ; }
Source:
protected java.util.Map < org.ovirt.engine.core.common.businessentities.GraphicsType , org.ovirt.engine.core.common.businessentities.GraphicsInfo > extractGraphicsInofs ( org.ovirt.engine.api.model.VM vm ) { return vm.getGraphicsInfos ( ) ; }

Target:
protected java.util.Map < org.ovirt.engine.core.common.businessentities.GraphicsType , org.ovirt.engine.core.common.businessentities.GraphicsInfo > extractGraphicsInofs ( org.ovirt.engine.api.restapi.resource.VM vm ) { return vm.getGraphicsInfos ( ) ; }
Source:
public int compare ( java.lang.Integer o1 , java.lang.Integer o2 ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.osNames.get ( o1 ) . compareTo ( org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.osNames.get ( o2 ) ) ; }

Target:
public static java.lang.String getOsName ( java.lang.Integer osId ) { if ( osId == null ) { return "" ; } return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.osNames.get ( osId ) ; }
Source:
private org.ovirt.engine.core.bll.gluster.AddBricksToGlusterVolumeCommand createTestCommand ( org.ovirt.engine.core.compat.Guid volumeId , java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity > bricks , int replicaCount , int stripeCount ) { return new org.ovirt.engine.core.bll.gluster.AddBricksToGlusterVolumeCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeBricksActionParameters ( volumeId , bricks , replicaCount , stripeCount ) ) ; }

Target:
private org.ovirt.engine.core.bll.gluster.AddBricksToGlusterVolumeCommand createTestCommand ( org.ovirt.engine.core.compat.Guid volumeId , java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity > bricks , int replicaCount , int stripeCount , boolean force ) { return new org.ovirt.engine.core.bll.gluster.AddBricksToGlusterVolumeCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeBricksActionParameters ( volumeId , bricks , replicaCount , stripeCount , force ) ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > getAllImageSnapshots ( org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage ) { return org.ovirt.engine.core.bll.ImagesHandler.getAllImageSnapshots ( diskImage.getImageId ( ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > getAllImageSnapshots ( org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage ) { return org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.getAllImageSnapshots ( diskImage.getImageId ( ) ) ; }
Source:
public void testRemoveAllOfTypeForVds ( ) throws java.lang.Exception { dao.removeAllOfTypeForVds ( org.ovirt.engine.core.dao.AuditLogDAOTest.VDS_ID , AuditLogType.IRS_DISK_SPACE_LOW_ERROR.getValue ( ) ) ; java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > result = dao.getAll ( org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertEquals ( 2 , result.size ( ) ) ; }

Target:
public void testRemoveAllOfTypeForVds ( ) throws java.lang.Exception { dao.removeAllOfTypeForVds ( org.ovirt.engine.core.dao.AuditLogDAOTest.VDS_ID , AuditLogType.IRS_DISK_SPACE_LOW_ERROR.getValue ( ) ) ; java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > result = dao.getAll ( org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertEquals ( 3 , result.size ( ) ) ; }
Source:
public void vmNotDuringSnapshotReturnsInvalidResultWhenInSnapshot ( ) throws java.lang.Exception { org.ovirt.engine.core.compat.Guid vmId = new org.ovirt.engine.core.compat.Guid ( ) ; org.mockito.Mockito.when ( snapshotDao.exists ( vmId , SnapshotStatus.LOCKED ) ) . thenReturn ( true ) ; validateInvalidResult ( validator.vmNotDuringSnapshot ( vmId ) , VdcBllMessages.ACTION_TYPE_FAILED_VM_IS_DURING_SNAPSHOT ) ; }

Target:
public void vmNotDuringSnapshotReturnsInvalidResultWhenInSnapshot ( ) throws java.lang.Exception { org.ovirt.engine.core.compat.Guid vmId = new org.ovirt.engine.core.compat.Guid ( ) ; org.mockito.Mockito.when ( snapshotDao.exists ( vmId , SnapshotStatus.LOCKED ) ) . thenReturn ( true ) ; org.ovirt.engine.core.bll.snapshots.SnapshotsValidatorTest.validateInvalidResult ( validator.vmNotDuringSnapshot ( vmId ) , VdcBllMessages.ACTION_TYPE_FAILED_VM_IS_DURING_SNAPSHOT ) ; }
Source:
public < T > T getOptionalEntity ( java.lang.Class < T > clz , org.ovirt.engine.core.common.queries.VdcQueryType query , org.ovirt.engine.core.common.queries.VdcQueryParametersBase queryParams , java.lang.String identifier , boolean notFoundAs404 ) { return getEntity ( clz , query , queryParams , identifier , notFoundAs404 , false ) ; }

Target:
public < T > T getOptionalEntity ( java.lang.Class < T > clz , org.ovirt.engine.core.common.queries.QueryType query , org.ovirt.engine.core.common.queries.VdcQueryParametersBase queryParams , java.lang.String identifier , boolean notFoundAs404 ) { return getEntity ( clz , query , queryParams , identifier , notFoundAs404 , false ) ; }
Source:
public void setDisks ( java.util.List < org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel > value ) { if ( ( disks ) != value ) { disks = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "Disks" ) ) ; } }

Target:
public void setDisks ( java.util.List < org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel > value ) { if ( ( disks ) != value ) { disks = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Disks" ) ) ; } }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.AuditLog object ) { return object.getVdsGroupName ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.AuditLog object ) { return object.getClusterName ( ) ; }
Source:
protected void endSuccessfullySynchronous ( ) { org.ovirt.engine.core.common.businessentities.VM vm = org.ovirt.engine.core.bll.ExportVmCommand.getVm ( ) ; org.ovirt.engine.core.bll.VmHandler.unLockVm ( vm ) ; org.ovirt.engine.core.bll.utils.VmDeviceUtils.setVmDevices ( vm.getStaticData ( ) ) ; this . updateSnapshotOvf ( vm ) ; org.ovirt.engine.core.bll.ExportVmCommand.setSucceeded ( true ) ; }

Target:
protected void endWithFailure ( ) { org.ovirt.engine.core.bll.ExportVmCommand.endActionOnAllImageGroups ( ) ; org.ovirt.engine.core.common.businessentities.VM vm = org.ovirt.engine.core.bll.ExportVmCommand.getVm ( ) ; org.ovirt.engine.core.bll.VmHandler.unLockVm ( vm ) ; org.ovirt.engine.core.bll.ExportVmCommand.setSucceeded ( true ) ; }
Source:
public java.lang.String getvm_name ( ) { return this . mVmStatic.getvm_name ( ) ; }

Target:
public int getMemSizeMb ( ) { return this . getVmMemSizeMb ( ) ; }
Source:
public void testCloneFromTemplateWithClonePermissionsClone ( ) throws java.lang.Exception { org.ovirt.engine.api.model.Vm model = createModel ( createDisksCollection ( ) ) ; doTestCloneFromTemplateWithClonePermissions ( model , true ) ; }

Target:
public void testCloneFromTemplateWithClonePermissionsClone ( ) throws java.lang.Exception { org.ovirt.engine.api.model.Vm model = createModel ( createDiskAttachmentsCollection ( ) ) ; doTestCloneFromTemplateWithClonePermissions ( model , true ) ; }
Source:
protected void AlertPowerManagementStatusFailed ( java.lang.String reason ) { Alert ( AuditLogType.VDS_ALERT_FENCE_TEST_FAILED , reason ) ; }

Target:
protected void alertPowerManagementStatusFailed ( java.lang.String reason ) { alert ( AuditLogType.VDS_ALERT_FENCE_TEST_FAILED , reason ) ; }
Source:
public void testGetAllForUserWithoutPermission ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VnicProfileView > result = dao.getAll ( org.ovirt.engine.core.dao.network.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForUserWithoutPermission ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VnicProfileView > result = dao.getAll ( org.ovirt.engine.core.dao.network.UNPRIVILEGED_USER_ID , true ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public void setEntityIds ( java.util.List < org.ovirt.engine.core.compat.Guid > entityIds ) { this . entityIds = entityIds ; if ( entityIds == null ) { this . entityIds = new java.util.ArrayList < > ( ) ; } }

Target:
public void setVmEnforcing ( boolean vmEnforcing ) { this . vmEnforcing = vmEnforcing ; }
Source:
public java.lang.Object call ( ) throws java.lang.Exception { _parser.cliEnvironmentSet ( VdsmEnv.ENGINE_HOST , org.ovirt.engine.core.utils.LocalConfig.getInstance ( ) . getHost ( ) ) ; return null ; }

Target:
public java.lang.Object call ( ) throws java.lang.Exception { _parser.cliEnvironmentSet ( VdsmEnv.ENGINE_HOST , org.ovirt.engine.core.utils.EngineLocalConfig.getInstance ( ) . getHost ( ) ) ; return null ; }
Source:
public org.ovirt.engine.core.common.businessentities.storage_domains getStorageDomain ( ) { return getEntity ( org.ovirt.engine.core.common.businessentities.storage_domains.class , VdcQueryType.GetStorageDomainById , new org.ovirt.engine.core.common.queries.StorageDomainQueryParametersBase ( storageDomainId ) , storageDomainId.toString ( ) ) ; }

Target:
public org.ovirt.engine.api.model.StorageDomain getStorageDomain ( ) { return getEntity ( org.ovirt.engine.api.model.StorageDomain.class , VdcQueryType.GetStorageDomainById , new org.ovirt.engine.core.common.queries.StorageDomainQueryParametersBase ( storageDomainId ) , storageDomainId.toString ( ) ) ; }
Source:
private void processExceptionToClient ( org.ovirt.engine.core.common.errors.VdcFault fault ) { fault.setSessionID ( getParameters ( ) . getSessionId ( ) ) ; _returnValue.getExecuteFailedMessages ( ) . add ( fault.getError ( ) . name ( ) ) ; _returnValue.setFault ( fault ) ; }

Target:
private void processExceptionToClient ( org.ovirt.engine.core.common.errors.EngineFault fault ) { fault.setSessionID ( getParameters ( ) . getSessionId ( ) ) ; _returnValue.getExecuteFailedMessages ( ) . add ( fault.getError ( ) . name ( ) ) ; _returnValue.setFault ( fault ) ; }
Source:
public void onMainTabSelected ( ) { super . onMainTabSelected ( ) ; getModel ( ) . getDiskViewType ( ) . setEntity ( null ) ; }

Target:
public void onMainTabSelected ( ) { super . onMainTabSelected ( ) ; getModel ( ) . getDiskViewType ( ) . setEntity ( null ) ; getModel ( ) . getDiskContentType ( ) . setEntity ( null ) ; }
Source:
public void testGetAllForVm ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Tags > result = dao.getAllForTemplate ( template.getUuid ( ) . toString ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForVm ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Tags > result = dao.getAllForTemplate ( template.getUuid ( ) . toString ( ) ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertFalse ( result.isEmpty ( ) ) ; }
Source:
private boolean shouldCommandEndOnAsyncOpEnd ( org.ovirt.engine.core.bll.CommandBase < ? > cmd ) { return ( cmd.getParameters ( ) . getEndProcedure ( ) ) == ( org.ovirt.engine.core.common.action.VdcActionParametersBase.EndProcedure.COMMAND_MANAGED ) ; }

Target:
private boolean shouldCommandEndOnAsyncOpEnd ( org.ovirt.engine.core.bll.CommandBase < ? > cmd ) { return ( cmd.getParameters ( ) . getEndProcedure ( ) ) == ( org.ovirt.engine.core.common.action.ActionParametersBase.EndProcedure.COMMAND_MANAGED ) ; }
Source:
public void vmIdNull ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; b.setVmId ( null ) ; final org.ovirt.engine.core.compat.Guid i = b.getVmId ( ) ; org.junit.Assert.assertEquals ( Guid.Empty , i ) ; }

Target:
public void vmIdDefault ( ) { final org.ovirt.engine.core.compat.Guid i = b.getVmId ( ) ; org.junit.Assert.assertEquals ( Guid.Empty , i ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepStatus ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepSessionPause ( java.lang.String masterVolumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName , java.lang.String userName , boolean force ) ;
Source:
public java.lang.String getDataCenterName ( ) { return org.ovirt.engine.core.bll.network.vm.VnicProfileCommandBase.getStoragePoolDAO ( ) . get ( getNetwork ( ) . getDataCenterId ( ) ) . getName ( ) ; }

Target:
public java.lang.String getDataCenterName ( ) { return org.ovirt.engine.core.bll.network.vm.VnicProfileCommandBase.getStoragePoolDao ( ) . get ( getNetwork ( ) . getDataCenterId ( ) ) . getName ( ) ; }
Source:
public void update ( org.ovirt.engine.core.common.businessentities.AsyncTasks task ) { org.ovirt.engine.core.dao.AsyncTaskDAODbFacadeImpl.logNullParameters ( task ) ; org.ovirt.engine.core.dao.AsyncTaskDAODbFacadeImpl.AsyncTaskParameterSource parameterSource = getTaskParameterSource ( task ) ; getCallsHandler ( ) . executeModification ( "Updateasync_tasks" , parameterSource ) ; }

Target:
public void update ( org.ovirt.engine.core.common.businessentities.AsyncTasks task ) { org.ovirt.engine.core.dao.AsyncTaskDAODbFacadeImpl.logNullParameters ( task ) ; org.ovirt.engine.core.dao.AsyncTaskDAODbFacadeImpl.AsyncTaskParameterSource parameterSource = getTaskParameterSource ( task ) ; parameterSource.addValue ( "storage_pool_id" , task.getStoragePoolId ( ) ) ; getCallsHandler ( ) . executeModification ( "Updateasync_tasks" , parameterSource ) ; }
Source:
public void shouldDetectNonMigratableVMs ( ) { invalidVM.setMigrationSupport ( org.ovirt.engine.core.common.businessentities.MigrationSupport.PINNED_TO_HOST ) ; org.hamcrest.MatcherAssert.assertThat ( validator.checkVmReadyForUpgrade ( invalidVM ) , org.hamcrest.CoreMatchers.hasItem ( UPGRADE_ERROR.VM_NOT_MIGRATABLE ) ) ; }

Target:
public void shouldDetectNonMigratableVMs ( ) { invalidVM.setMigrationSupport ( org.ovirt.engine.core.common.businessentities.MigrationSupport.PINNED_TO_HOST ) ; org.hamcrest.MatcherAssert.assertThat ( validator.checkVmReadyForUpgrade ( invalidVM ) , org.hamcrest.CoreMatchers.hasItem ( EngineMessage.CLUSTER_UPGRADE_DETAIL_VM_NOT_MIGRATABLE.name ( ) ) ) ; }
Source:
public org.ovirt.engine.api.resource.VmDiskResource getDeviceSubResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendVmDiskResource ( id , this , updateType , getUpdateParametersProvider ( ) , getRequiredUpdateFields ( ) , subCollections ) ) ; }

Target:
public org.ovirt.engine.api.resource.VmDiskResource getDeviceSubResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendVmDiskResource ( parentId , id , this , updateType , getUpdateParametersProvider ( ) , getRequiredUpdateFields ( ) , subCollections ) ) ; }
Source:
public void testGetByExternalId ( ) { org.ovirt.engine.core.common.businessentities.aaa.DbGroup result = dao.getByExternalId ( "rhel" , "a" ) ; org.junit.Assert.assertNotNull ( result ) ; }

Target:
public void testGetByExternalId ( ) { org.ovirt.engine.core.common.businessentities.aaa.DbGroup result = dao.getByExternalId ( "rhel" , "a" ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; }
Source:
public java.lang.Integer getDisplay ( ) { return this . vmDynamic.getDisplay ( ) ; }

Target:
public java.lang.String getEmulatedMachine ( ) { return this . vmDynamic.getEmulatedMachine ( ) ; }
Source:
public void onLogout ( ) { org.ovirt.engine.ui.common.uicommon.model.CommonModelManager.instance ( ) . signOut ( ) ; performLogout ( ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { commonModelProvider.get ( ) . updateReportsAvailability ( ) ; }
Source:
public void lowerVersionMgmtNetworkSupportedFeatures ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addManagementNetworksToPool ( 2 ) ; setupNetworkValidator ( true ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( cmd ) ; }

Target:
public void lowerVersionMgmtNetworkSupportedFeatures ( ) { cmd.getStoragePool ( ) . setCompatibilityVersion ( org.ovirt.engine.core.bll.storage.pool.UpdateStoragePoolCommandTest.VERSION_1_0 ) ; addNonDefaultClusterToPool ( ) ; addManagementNetworksToPool ( 2 ) ; setupNetworkValidator ( true ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( cmd ) ; }
Source:
public void setLabelViaAttached ( java.lang.String labelViaAttached ) { this . labelViaAttached = labelViaAttached ; }

Target:
public boolean isAttachedViaLabel ( ) { return ( getLabelViaAttached ( ) ) != null ; }
Source:
protected void setActionMessageParameters ( ) { if ( ! ( org.apache.commons.lang.StringUtils.isEmpty ( cdImagePath ) ) ) { addCanDoActionMessage ( EngineMessage.VAR__ACTION__CHANGE_CD ) ; } else { addCanDoActionMessage ( EngineMessage.VAR__ACTION__EJECT_CD ) ; } addCanDoActionMessage ( EngineMessage.VAR__TYPE__VM ) ; }

Target:
protected void setActionMessageParameters ( ) { if ( ! ( org.apache.commons.lang.StringUtils.isEmpty ( cdImagePath ) ) ) { addValidationMessage ( EngineMessage.VAR__ACTION__CHANGE_CD ) ; } else { addValidationMessage ( EngineMessage.VAR__ACTION__EJECT_CD ) ; } addValidationMessage ( EngineMessage.VAR__TYPE__VM ) ; }
Source:
public void enableColumnResizing ( ) { if ( ! ( showDefaultHeader ) ) { table.enableColumnResizing ( ) ; tableHeader.enableColumnResizing ( ) ; } }

Target:
boolean isTableHeaderVisible ( ) { return ! ( showDefaultHeader ) ; }
Source:
public void create ( ) { org.ovirt.engine.core.bll.Backend.checkDBConnectivity ( ) ; initialize ( ) ; }

Target:
public void create ( ) { org.ovirt.engine.core.bll.Backend.checkDBConnectivity ( ) ; try { initialize ( ) ; } catch ( java.lang.Exception ex ) { org.ovirt.engine.core.bll.Backend.log.error ( "Error during initialization" , ex ) ; throw ex ; } }
Source:
public void setacpi_enable ( java.lang.Boolean value ) { this . mVmDynamic.setacpi_enable ( value ) ; }

Target:
public void setDisplay ( java.lang.Integer value ) { this . vmDynamic.setdisplay ( value ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VDSGroup getVdsGroup ( ) { return super . getVdsGroup ( ) ; }

Target:
protected org.ovirt.engine.core.common.action.LockProperties applyLockProperties ( org.ovirt.engine.core.common.action.LockProperties lockProperties ) { return lockProperties.withScope ( Scope.Command ) ; }
Source:
public void emptyHostsAreNotMismatched ( ) { org.junit.Assert.assertThat ( getQuery ( ) . isDisplayAddressPartiallyOverridden ( new java.util.ArrayList < > ( ) ) , org.hamcrest.core.Is.is ( false ) ) ; }

Target:
public void emptyHostsAreNotMismatched ( ) { org.hamcrest.MatcherAssert.assertThat ( getQuery ( ) . isDisplayAddressPartiallyOverridden ( new java.util.ArrayList < > ( ) ) , org.hamcrest.core.Is.is ( false ) ) ; }
Source:
protected void executeQueryCommand ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.StorageDevice > storageDevices = org.ovirt.engine.core.bll.gluster.GetGlusterStorageDevicesQuery.getDbFacade ( ) . getStorageDeviceDao ( ) . getStorageDevicesInHost ( org.ovirt.engine.core.bll.gluster.GetGlusterStorageDevicesQuery.getParameters ( ) . getId ( ) ) ; org.ovirt.engine.core.bll.gluster.GetGlusterStorageDevicesQuery.getQueryReturnValue ( ) . setReturnValue ( filterStorageDevices ( storageDevices ) ) ; }

Target:
protected void executeQueryCommand ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.StorageDevice > storageDevices = storageDeviceDao.getStorageDevicesInHost ( org.ovirt.engine.core.bll.gluster.GetGlusterStorageDevicesQuery.getParameters ( ) . getId ( ) ) ; org.ovirt.engine.core.bll.gluster.GetGlusterStorageDevicesQuery.getQueryReturnValue ( ) . setReturnValue ( filterStorageDevices ( storageDevices ) ) ; }
Source:
public void testSetActionMessageParameters ( ) { command.setActionMessageParameters ( ) ; org.ovirt.engine.core.bll.CommandAssertUtils.checkMessages ( command , VdcBllMessages.VAR__TYPE__STORAGE__DOMAIN , VdcBllMessages.VAR__ACTION__REMOVE ) ; }

Target:
public void testCanDoActionNonExistingStorageDomain ( ) { org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( "canDoAction shouldn't be possible for a non-existent storage domain" , command , VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAIN_NOT_EXIST ) ; }
Source:
public void setInternalAttachableDisks ( org.ovirt.engine.ui.uicommonweb.models.ListModel value ) { internalAttachableDisks = value ; }

Target:
public void setExternalAttachableDisks ( org.ovirt.engine.ui.uicommonweb.models.ListModel externalAttachableDisks ) { this . externalAttachableDisks = externalAttachableDisks ; }
Source:
public static void isNextRunConfigurationChanged ( org.ovirt.engine.core.common.businessentities.VM original , org.ovirt.engine.core.common.businessentities.VM updated , org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetVmUpdatesOnNextRunExists , new org.ovirt.engine.core.common.queries.GetVmUpdatesOnNextRunExistsParameters ( original , updated ) , aQuery ) ; }

Target:
public void isNextRunConfigurationChanged ( org.ovirt.engine.core.common.businessentities.VM original , org.ovirt.engine.core.common.businessentities.VM updated , org.ovirt.engine.core.common.action.VmManagementParametersBase updateVmParameters , org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetVmUpdatesOnNextRunExists , new org.ovirt.engine.core.common.queries.GetVmUpdatesOnNextRunExistsParameters ( original , updated , updateVmParameters ) , aQuery ) ; }
Source:
public void testGetUsingInvalidName ( ) { org.ovirt.engine.core.common.businessentities.VDS result = dao.getByName ( "farkle" ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetUsingInvalidName ( ) { org.ovirt.engine.core.common.businessentities.VDS result = dao.getByName ( "farkle" ) ; org.junit.jupiter.api.Assertions.assertNull ( result ) ; }
Source:
protected void Perform ( ) { setSucceeded ( org.ovirt.engine.core.bll.Backend.getInstance ( ) . getResourceManager ( ) . RunVdsCommand ( VDSCommandType.VmMonitorCommand , new org.ovirt.engine.core.common.vdscommands.VmMonitorCommandVDSCommandParameters ( org.ovirt.engine.core.bll.MonitorCommand.getVdsId ( ) , org.ovirt.engine.core.bll.MonitorCommand.getVmId ( ) , mMonitorCommand ) ) . getSucceeded ( ) ) ; }

Target:
protected void perform ( ) { setSucceeded ( org.ovirt.engine.core.bll.Backend.getInstance ( ) . getResourceManager ( ) . RunVdsCommand ( VDSCommandType.VmMonitorCommand , new org.ovirt.engine.core.common.vdscommands.VmMonitorCommandVDSCommandParameters ( org.ovirt.engine.core.bll.MonitorCommand.getVdsId ( ) , org.ovirt.engine.core.bll.MonitorCommand.getVmId ( ) , mMonitorCommand ) ) . getSucceeded ( ) ) ; }
Source:
public void save ( org.ovirt.engine.core.common.businessentities.AuditLog event ) { getCallsHandler ( ) . executeModification ( "InsertAuditLog" , getSqlMapper ( event ) . addValue ( "log_type_name" , event.getlog_type_name ( ) ) ) ; }

Target:
public void update ( org.ovirt.engine.core.common.businessentities.AuditLog event ) { throw new java.lang.UnsupportedOperationException ( ) ; }
Source:
public int getOrder ( ) { return org.springframework.security.ui.FilterChainOrder.PRE_AUTH_FILTER ; }

Target:
public void doFilter ( javax.servlet.ServletRequest request , javax.servlet.ServletResponse response , javax.servlet.FilterChain chain ) throws java.io.IOException , javax.servlet.ServletException { doFilterHttp ( ( ( javax.servlet.http.HttpServletRequest ) ( request ) ) , ( ( javax.servlet.http.HttpServletResponse ) ( response ) ) , chain ) ; }
Source:
public java.util.Set < java.lang.String > getPeers ( org.ovirt.engine.core.utils.ssh.SSHClient client ) { java.lang.String serversXml = executePeerStatusCommand ( client ) ; return extractServers ( serversXml ) ; }

Target:
public java.util.Set < java.lang.String > getPeers ( org.ovirt.engine.core.bll.utils.EngineSSHClient client ) { java.lang.String serversXml = executePeerStatusCommand ( client ) ; return extractServers ( serversXml ) ; }
Source:
public java.lang.String getGateway ( ) { return hasIpConfiguration ( ) ? getIpConfiguration ( ) . getGateway ( ) : null ; }

Target:
private boolean primaryAddressNotSet ( ) { return ( ! ( hasIpConfiguration ( ) ) ) || ( ! ( getIpConfiguration ( ) . hasPrimaryAddressSet ( ) ) ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.StoragePool createHigherVersionStoragePool ( ) { org.ovirt.engine.core.common.businessentities.StoragePool pool = org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommandTest.createBasicPool ( ) ; pool.setStorageType ( StorageType.LOCALFS ) ; pool.setcompatibility_version ( org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommandTest.VERSION_1_2 ) ; return pool ; }

Target:
private static org.ovirt.engine.core.common.businessentities.StoragePool createHigherVersionStoragePool ( ) { org.ovirt.engine.core.common.businessentities.StoragePool pool = org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommandTest.createBasicPool ( ) ; pool.setIsLocal ( true ) ; pool.setcompatibility_version ( org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommandTest.VERSION_1_2 ) ; return pool ; }
Source:
public org.ovirt.engine.api.model.StorageConnection update ( org.ovirt.engine.api.model.StorageConnection connection ) { return performUpdate ( connection , new org.ovirt.engine.api.restapi.resource.QueryIdResolver ( org.ovirt.engine.core.common.queries.VdcQueryType.GetStorageServerConnectionById , org.ovirt.engine.core.common.queries.StorageServerConnectionQueryParametersBase.class ) , ActionType.UpdateStorageServerConnection , new org.ovirt.engine.api.restapi.resource.BackendStorageServerConnectionResource.UpdateParametersProvider ( ) ) ; }

Target:
public org.ovirt.engine.api.model.StorageConnection update ( org.ovirt.engine.api.model.StorageConnection connection ) { return performUpdate ( connection , new org.ovirt.engine.api.restapi.resource.QueryIdResolver ( org.ovirt.engine.core.common.queries.QueryType.GetStorageServerConnectionById , org.ovirt.engine.core.common.queries.StorageServerConnectionQueryParametersBase.class ) , ActionType.UpdateStorageServerConnection , new org.ovirt.engine.api.restapi.resource.BackendStorageServerConnectionResource.UpdateParametersProvider ( ) ) ; }
Source:
public void setMainTabSelectedItem ( org.ovirt.engine.core.common.businessentities.VDSGroup selectedItem ) { servicesTable.edit ( getDetailModel ( ) . getServiceList ( ) ) ; org.ovirt.engine.ui.webadmin.section.main.view.tab.cluster.SubTabClusterServiceView.Driver.driver.edit ( getDetailModel ( ) ) ; }

Target:
public void setMainTabSelectedItem ( org.ovirt.engine.core.common.businessentities.VDSGroup selectedItem ) { servicesTable.edit ( getDetailModel ( ) . getServiceList ( ) ) ; driver.edit ( getDetailModel ( ) ) ; }
Source:
public void canDoActionSucceedsOnDiskDomainCheckWhenEmptyStorageGuidInParams ( ) throws java.lang.Exception { initializeCommand ( Guid.Empty ) ; org.ovirt.engine.core.compat.Guid storageId = org.ovirt.engine.core.compat.Guid.NewGuid ( ) ; mockVmWithDisk ( storageId ) ; mockStorageDomain ( storageId ) ; mockStoragePoolIsoMap ( ) ; runAndAssertCanDoActionSuccess ( ) ; }

Target:
public void canDoActionSucceedsOnDiskDomainCheckWhenEmptyStorageGuidInParams ( ) throws java.lang.Exception { initializeCommand ( Guid.Empty ) ; org.ovirt.engine.core.compat.Guid storageId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; mockVmWithDisk ( storageId ) ; mockStorageDomain ( storageId ) ; mockStoragePoolIsoMap ( ) ; runAndAssertCanDoActionSuccess ( ) ; }
Source:
protected void removeOvfForTemplatesAndVmsOfStoragePool ( org.ovirt.engine.core.common.businessentities.StoragePool pool ) { org.ovirt.engine.core.compat.Guid poolId = pool.getId ( ) ; removedOvfIdsInfo = org.ovirt.engine.core.bll.storage.ovfstore.ProcessOvfUpdateForStoragePoolCommand.getVmAndTemplatesGenerationsDao ( ) . getIdsForOvfDeletion ( poolId ) ; markDomainsWithOvfsForOvfUpdate ( removedOvfIdsInfo ) ; org.ovirt.engine.core.bll.storage.ovfstore.ProcessOvfUpdateForStoragePoolCommand.getVmAndTemplatesGenerationsDao ( ) . deleteOvfGenerations ( removedOvfIdsInfo ) ; }

Target:
protected void removeOvfForTemplatesAndVmsOfStoragePool ( org.ovirt.engine.core.common.businessentities.StoragePool pool ) { org.ovirt.engine.core.compat.Guid poolId = pool.getId ( ) ; removedOvfIdsInfo = vmAndTemplatesGenerationsDao.getIdsForOvfDeletion ( poolId ) ; markDomainsWithOvfsForOvfUpdate ( removedOvfIdsInfo ) ; vmAndTemplatesGenerationsDao.deleteOvfGenerations ( removedOvfIdsInfo ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.core.common.scheduling.AffinityGroup object ) { java.lang.String join = join ( getEntityNames ( object ) , ", " ) ; if ( join.isEmpty ( ) ) { return constants.noMembersAffinityGroup ( ) ; } return join ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.scheduling.AffinityGroup object ) { java.lang.String join = join ( getEntityNames ( object ) , ", " ) ; if ( join.isEmpty ( ) ) { return org.ovirt.engine.ui.webadmin.section.main.view.tab.AbstractSubTabAffinityGroupsView.constants.noMembersAffinityGroup ( ) ; } return join ; }
Source:
private org.ovirt.engine.core.common.businessentities.DiskImage mockDiskImage ( org.ovirt.engine.core.compat.Guid diskImageId ) { org.ovirt.engine.core.common.businessentities.DiskImage diskImage = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; diskImage.setId ( diskImageId ) ; return diskImage ; }

Target:
private org.ovirt.engine.core.common.businessentities.DiskImage mockDiskImage ( org.ovirt.engine.core.compat.Guid diskImageId ) { org.ovirt.engine.core.common.businessentities.DiskImage diskImage = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; diskImage.setId ( diskImageId ) ; diskImage.setImageId ( diskImageId ) ; return diskImage ; }
Source:
public java.lang.Integer getDisplaySecurePort ( ) { return this . displaySecurePort ; }

Target:
public org.ovirt.engine.core.common.businessentities.ArchitectureType getGuestOsArch ( ) { return guestOsArch ; }
Source:
private org.ovirt.engine.core.bll.ValidationResult validateMinimumVersionSupport ( ) { return org.ovirt.engine.core.common.FeatureSupported.momPolicyOnHost ( getVdsGroup ( ) . getcompatibility_version ( ) ) ? ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_MOM_UPDATE_VDS_VERSION ) ; }

Target:
private org.ovirt.engine.core.bll.ValidationResult validateMinimumVersionSupport ( ) { return org.ovirt.engine.core.common.FeatureSupported.momPolicyOnHost ( getVdsGroup ( ) . getCompatibilityVersion ( ) ) ? ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_MOM_UPDATE_VDS_VERSION ) ; }