auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void mapIncompleteSsoFromRestToBackend ( ) throws java.lang.Exception { org.ovirt.engine.api.model.Sso restSso = new org.ovirt.engine.api.model.Sso ( ) ; junit.framework.Assert.assertEquals ( null , org.ovirt.engine.api.restapi.types.SsoMapper.map ( restSso , null ) ) ; }

Target:
public void mapIncompleteSsoFromRestToBackend ( ) throws java.lang.Exception { org.ovirt.engine.api.model.Sso restSso = new org.ovirt.engine.api.model.Sso ( ) ; org.junit.Assert.assertEquals ( null , org.ovirt.engine.api.restapi.types.SsoMapper.map ( restSso , null ) ) ; }
Source:
public java.lang.String getValue ( java.lang.Object object ) { return java.lang.String.valueOf ( ( ( org.ovirt.engine.core.common.businessentities.VM ) ( object ) ) . getDiskMap ( ) . size ( ) ) ; }

Target:
public java.lang.String getValue ( java.lang.Object object ) { return ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData ) ( object ) ) . getVm ( ) . getVmName ( ) ; }
Source:
public org.ovirt.engine.api.resource.WatchdogResource getDeviceSubResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendWatchdogResource ( asGuidOr404 ( id ) , this , updateType , getUpdateParametersProvider ( ) , getRequiredUpdateFields ( ) ) ) ; }

Target:
public org.ovirt.engine.api.resource.WatchdogResource getDeviceSubResource ( java.lang.String watchdogId ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendWatchdogResource ( true , parentId , asGuidOr404 ( watchdogId ) , this , updateType , getUpdateParametersProvider ( ) , getRequiredUpdateFields ( ) ) ) ; }
Source:
public org.ovirt.engine.core.dao.MacPoolDao getMacPoolDao ( ) { return getDbFacade ( ) . getMacPoolDao ( ) ; }

Target:
public org.ovirt.engine.core.dao.SnapshotDao getSnapshotDAO ( ) { return getDbFacade ( ) . getSnapshotDao ( ) ; }
Source:
public void testGetAllForSubscriberWithNoSubscriptions ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.EventSubscriber > result = dao.getAllForSubscriber ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForSubscriberWithNoSubscriptions ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.EventSubscriber > result = dao.getAllForSubscriber ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase runInTransaction ( ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( VdcActionType.RemoveVds , new org.ovirt.engine.core.common.action.VdsActionParameters ( oVirtId ) ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase runInTransaction ( ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( VdcActionType.RemoveVds , new org.ovirt.engine.core.common.action.RemoveVdsParameters ( oVirtId ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult statusSupportedForHostUpgrade ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.CANNOT_UPGRADE_HOST_STATUS_ILLEGAL ) . unless ( org.ovirt.engine.core.common.VdcActionUtils.canExecute ( java.util.Arrays.asList ( host ) , org.ovirt.engine.core.common.businessentities.VDS.class , VdcActionType.UpgradeHost ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult statusSupportedForHostUpgrade ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.CANNOT_UPGRADE_HOST_STATUS_ILLEGAL ) . unless ( org.ovirt.engine.core.common.VdcActionUtils.canExecute ( java.util.Arrays.asList ( host ) , org.ovirt.engine.core.common.businessentities.VDS.class , ActionType.UpgradeHost ) ) ; }
Source:
public void testSecondParameterIsNotNull ( ) { org.ovirt.engine.core.bll.UpdateMacPoolCommand.validateDefaultFlagIsNotChanged ( new org.ovirt.engine.core.common.businessentities.MacPool ( ) , null ) ; }

Target:
public void testSecondParameterIsNotNull ( ) { org.junit.jupiter.api.Assertions.assertThrows ( java.lang.IllegalArgumentException.class , ( ) -> org.ovirt.engine.core.bll.UpdateMacPoolCommand.validateDefaultFlagIsNotChanged ( new org.ovirt.engine.core.common.businessentities.MacPool ( ) , null ) ) ; }
Source:
public org.ovirt.engine.api.v3.types.V3VM update ( org.ovirt.engine.api.v3.types.V3VM vm ) { return adaptUpdate ( delegate :: update , vm ) ; }

Target:
public org.ovirt.engine.api.v3.types.V3VM update ( org.ovirt.engine.api.v3.types.V3VM vm ) { return adaptUpdate ( getDelegate ( ) :: update , vm ) ; }
Source:
private org.ovirt.engine.core.utils.lock.EngineLock getEngineLock ( org.ovirt.engine.core.compat.Guid clusterId ) { return new org.ovirt.engine.core.utils.lock.EngineLock ( java.util.Collections.singletonMap ( clusterId.toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.GLUSTER , VdcBllMessages.ACTION_TYPE_FAILED_OBJECT_LOCKED ) ) , null ) ; }

Target:
private org.ovirt.engine.core.utils.lock.EngineLock getEngineLock ( org.ovirt.engine.core.compat.Guid clusterId ) { return new org.ovirt.engine.core.utils.lock.EngineLock ( java.util.Collections.singletonMap ( clusterId.toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.GLUSTER , VdcBllMessages.ACTION_TYPE_FAILED_GLUSTER_OPERATION_INPROGRESS ) ) , null ) ; }
Source:
public java.lang.Boolean getValue ( org.ovirt.engine.core.common.utils.Pair < org.ovirt.engine.core.common.businessentities.network_cluster , org.ovirt.engine.core.common.businessentities.VDSGroup > object ) { return object.getFirst ( ) . isRequired ( ) ; }

Target:
public java.lang.Boolean getValue ( org.ovirt.engine.core.common.utils.PairQueryable < org.ovirt.engine.core.common.businessentities.VDSGroup , org.ovirt.engine.core.common.businessentities.network_cluster > object ) { if ( ( object.getSecond ( ) ) != null ) { return object.getSecond ( ) . isRequired ( ) ; } return false ; }
Source:
public void testGetTreeForEntityWithVmTemplateType ( ) { baseTestGetTreeForEntity ( org.ovirt.engine.core.dao.PermissionDaoTest.VM_TEMPLATE_ENTITY_ID , VdcObjectType.VmTemplate , org.ovirt.engine.core.dao.PermissionDaoTest.VDS_GROUP_ID ) ; }

Target:
public void testGetTreeForEntityWithVmTemplateType ( ) { baseTestGetTreeForEntity ( org.ovirt.engine.core.dao.PermissionDaoTest.VM_TEMPLATE_ENTITY_ID , VdcObjectType.VmTemplate , org.ovirt.engine.core.dao.PermissionDaoTest.CLUSTER_ID ) ; }
Source:
public void setSecurePort ( int securePort ) { this . securePort = securePort ; }

Target:
public void setTrustStore ( java.lang.String trustStore ) { this . consoleOptions.setTrustStore ( trustStore ) ; }
Source:
protected org.ovirt.engine.core.common.action.UpdateVmDiskParameters createParameters ( ) { org.ovirt.engine.core.common.businessentities.DiskImage diskInfo = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; diskInfo.setId ( diskImageGuid ) ; return new org.ovirt.engine.core.common.action.UpdateVmDiskParameters ( vmId , diskImageGuid , diskInfo ) ; }

Target:
protected org.ovirt.engine.core.common.action.UpdateVmDiskParameters createParameters ( ) { org.ovirt.engine.core.common.businessentities.DiskImage diskInfo = createDiskImage ( ) ; return new org.ovirt.engine.core.common.action.UpdateVmDiskParameters ( vmId , diskImageGuid , diskInfo ) ; }
Source:
protected void executeQueryCommand ( ) { getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.scheduling.SchedulingManager.getInstance ( ) . getClusterPolicies ( ) ) ; }

Target:
protected void executeQueryCommand ( ) { getQueryReturnValue ( ) . setReturnValue ( schedulingManager.getClusterPolicies ( ) ) ; }
Source:
protected void updateDisksFromDb ( ) { org.ovirt.engine.core.bll.VmHandler.updateDisksFromDb ( org.ovirt.engine.core.bll.storage.disk.AbstractDiskVmCommand.getVm ( ) ) ; }

Target:
protected void updateDisksFromDb ( ) { vmHandler.updateDisksFromDb ( org.ovirt.engine.core.bll.storage.disk.AbstractDiskVmCommand.getVm ( ) ) ; }
Source:
public void testGetAllWithPermissionsDisabledUnprivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAll ( org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , false ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllWithPermissionsDisabledUnprivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAll ( org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , false ) ; org.junit.jupiter.api.Assertions.assertFalse ( result.isEmpty ( ) ) ; }
Source:
org.ovirt.engine.api.resource.ActionResource getActionSubresource ( @ javax.ws.rs.PathParam ( value = "action" ) java.lang.String action , @ javax.ws.rs.PathParam ( value = "oid" ) java.lang.String oid ) ;

Target:
org.ovirt.engine.api.resource.ActionResource getActionResource ( @ javax.ws.rs.PathParam ( value = "action" ) java.lang.String action , @ javax.ws.rs.PathParam ( value = "oid" ) java.lang.String oid ) ;
Source:
public int getpending_vmem_size ( ) { return mVdsDynamic.getpending_vmem_size ( ) ; }

Target:
public int getPendingVmemSize ( ) { return mVdsDynamic.getpending_vmem_size ( ) ; }
Source:
public static boolean IsVmAttachedToTag ( org.ovirt.engine.core.bll.Guid tagId , org.ovirt.engine.core.bll.Guid vmId ) { return ( org.ovirt.engine.core.bll.DbFacade.getInstance ( ) . getTagDAO ( ) . getAllVmTagsWithIds ( org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . GetTagIdAndChildrenIds ( tagId ) ) . size ( ) ) != 0 ; }

Target:
public static boolean IsVmAttachedToTag ( org.ovirt.engine.core.bll.Guid tagId , org.ovirt.engine.core.bll.Guid vmId ) { return ( org.ovirt.engine.core.bll.DbFacade.getInstance ( ) . getTagDao ( ) . getAllVmTagsWithIds ( org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . GetTagIdAndChildrenIds ( tagId ) ) . size ( ) ) != 0 ; }
Source:
protected void verifyModel ( org.ovirt.engine.api.model.User model , int index ) { assertEquals ( ( ( ( NAMES [ index ] ) + "@" ) + ( DOMAIN ) ) , model.getUserName ( ) ) ; }

Target:
protected void verifyModel ( org.ovirt.engine.api.model.User model , int index ) { org.junit.Assert.assertEquals ( ( ( ( NAMES [ index ] ) + "@" ) + ( DOMAIN ) ) , model.getUserName ( ) ) ; }
Source:
private void forceAddMacWithoutLocking ( java.lang.String mac ) { macsStorage.useMacNoDuplicityCheck ( org.ovirt.engine.core.utils.MacAddressRangeUtils.macToLong ( mac ) ) ; logWhenMacPoolIsEmpty ( ) ; }

Target:
public void forceAddMac ( java.lang.String mac ) { lockObj.writeLock ( ) . lock ( ) ; try { checkIfInitialized ( ) ; forceAddMacWithoutLocking ( mac ) ; logWhenMacPoolIsEmpty ( ) ; } finally { lockObj.writeLock ( ) . unlock ( ) ; } }
Source:
private void logWhenMacPoolIsEmpty ( ) { if ( ! ( macsStorage.availableMacExist ( ) ) ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( logable , AuditLogType.MAC_POOL_EMPTY ) ; } }

Target:
private void logWhenMacPoolIsEmpty ( ) { if ( ! ( macsStorage.availableMacExist ( ) ) ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector ( ) . log ( logable , AuditLogType.MAC_POOL_EMPTY ) ; } }
Source:
protected void ExecuteIrsBrokerCommand ( ) { setVDSReturnValue ( org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . runVdsCommand ( VDSCommandType.HSMGetAllTasksStatuses , new org.ovirt.engine.core.common.vdscommands.VdsIdVDSCommandParametersBase ( org.ovirt.engine.core.vdsbroker.irsbroker.SPMGetAllTasksStatusesVDSCommand.getCurrentIrsProxyData ( ) . getCurrentVdsId ( ) ) ) ) ; }

Target:
protected void executeIrsBrokerCommand ( ) { setVDSReturnValue ( org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . runVdsCommand ( VDSCommandType.HSMGetAllTasksStatuses , new org.ovirt.engine.core.common.vdscommands.VdsIdVDSCommandParametersBase ( org.ovirt.engine.core.vdsbroker.irsbroker.SPMGetAllTasksStatusesVDSCommand.getCurrentIrsProxyData ( ) . getCurrentVdsId ( ) ) ) ) ; }
Source:
java.lang.String removeStorageQoSMessage ( int numOfProfiles ) ;

Target:
java.lang.String editManagementNetworkTitle ( java.lang.String networkName ) ;
Source:
public static org.ovirt.engine.core.bll.context.CommandContext createDefaultContextForTasks ( org.ovirt.engine.core.bll.context.CommandContext commandContext , org.ovirt.engine.core.utils.lock.EngineLock lock ) { return commandContext.clone ( ) . withLock ( lock ) . withoutCompensationContext ( ) ; }

Target:
public static org.ovirt.engine.core.bll.context.CommandContext createDefaultContextForTasks ( org.ovirt.engine.core.bll.context.CommandContext commandContext , org.ovirt.engine.core.utils.lock.EngineLock lock ) { org.ovirt.engine.core.bll.context.CommandContext result = commandContext.clone ( ) . withLock ( lock ) . withoutCompensationContext ( ) ; return result.withExecutionContext ( org.ovirt.engine.core.bll.job.ExecutionHandler.createDefaultContextForTasksImpl ( result.getExecutionContext ( ) ) ) ; }
Source:
public boolean hasSpiceSupport ( int osId , org.ovirt.engine.core.compat.Version version ) ;

Target:
public boolean hasNicHotplugSupport ( int osId , org.ovirt.engine.core.compat.Version version ) ;
Source:
public void setUsageNetworkPercent ( java.lang.Integer value ) { this . usage_network_percentField = value ; }

Target:
public void setUsageNetworkPercent ( java.lang.Integer usageNetworkPercent ) { this . usageNetworkPercent = usageNetworkPercent ; }
Source:
void localize ( org.ovirt.engine.ui.common.CommonApplicationConstants constants ) { memoryEditor.setLabel ( constants.virtualMachineSnapshotPreviewPopupMemoryLabel ( ) ) ; messageLabel.setText ( constants.snapshotContainsMemory ( ) ) ; }

Target:
void localize ( ) { memoryEditor.setLabel ( org.ovirt.engine.ui.common.widget.uicommon.popup.vm.VmSnapshotPreviewPopupWidget.constants.virtualMachineSnapshotPreviewPopupMemoryLabel ( ) ) ; messageLabel.setText ( org.ovirt.engine.ui.common.widget.uicommon.popup.vm.VmSnapshotPreviewPopupWidget.constants.snapshotContainsMemory ( ) ) ; }
Source:
public boolean isLsmBetweenMixedStorageDomainsSupported ( org.ovirt.engine.core.compat.Version version ) { return ( ( java.lang.Boolean ) ( getConfigValuePreConverted ( ConfigurationValues.LiveStorageMigrationBetweenDifferentStorageTypes , version.toString ( ) ) ) ) ; }

Target:
public boolean isMemoryHotUnplugSupported ( org.ovirt.engine.core.common.businessentities.VM vm ) { if ( vm == null ) { return false ; } return isMemoryHotUnplugSupportedByArchitecture ( vm.getClusterArch ( ) , vm.getCompatibilityVersion ( ) ) ; }
Source:
public void testAddSupportedHostFeature ( ) { java.lang.String newFeature = "NEW_FEATURE_1" ; dao.addSupportedHostFeature ( org.ovirt.engine.core.dao.SupportedHostFeatureDaoTest.EXISTING_HOST_ID_1 , newFeature ) ; java.util.Set < java.lang.String > featuresSupported = dao.getSupportedHostFeaturesByHostId ( org.ovirt.engine.core.dao.SupportedHostFeatureDaoTest.EXISTING_HOST_ID_1 ) ; org.junit.Assert.assertThat ( "Failed to add the feature" , featuresSupported , org.hamcrest.Matchers.hasItem ( newFeature ) ) ; }

Target:
public void testAddSupportedHostFeature ( ) { java.lang.String newFeature = "NEW_FEATURE_1" ; dao.addSupportedHostFeature ( org.ovirt.engine.core.dao.SupportedHostFeatureDaoTest.EXISTING_HOST_ID_1 , newFeature ) ; java.util.Set < java.lang.String > featuresSupported = dao.getSupportedHostFeaturesByHostId ( org.ovirt.engine.core.dao.SupportedHostFeatureDaoTest.EXISTING_HOST_ID_1 ) ; org.junit.Assert.assertThat ( "Failed to add the feature" , featuresSupported , org.hamcrest.CoreMatchers.hasItem ( newFeature ) ) ; }
Source:
public void setdomain ( java.lang.String value ) { domain = value ; }

Target:
public void setDomain ( java.lang.String value ) { domain = value ; }
Source:
private static org.ovirt.engine.core.common.businessentities.StoragePool createStoragePoolLocalFS ( ) { org.ovirt.engine.core.common.businessentities.StoragePool pool = new org.ovirt.engine.core.common.businessentities.StoragePool ( ) ; pool.setStorageType ( StorageType.LOCALFS ) ; return pool ; }

Target:
private static org.ovirt.engine.core.common.businessentities.StoragePool createStoragePoolLocalFSOldVersion ( ) { org.ovirt.engine.core.common.businessentities.StoragePool pool = new org.ovirt.engine.core.common.businessentities.StoragePool ( ) ; pool.setIsLocal ( true ) ; pool.setcompatibility_version ( org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.VERSION_1_2 ) ; return pool ; }
Source:
protected void updateActiveSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId ) { getSnapshotDao ( ) . update ( new org.ovirt.engine.core.common.businessentities.Snapshot ( snapshotId , org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotStatus.OK , getVm ( ) . getId ( ) , null , org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotType.ACTIVE , "Active VM snapshot" , new java.util.Date ( ) , null ) ) ; }

Target:
protected void updateActiveSnapshot ( org.ovirt.engine.core.compat.Guid snapshotId ) { org.ovirt.engine.core.bll.ImportVmCommand.getSnapshotDao ( ) . update ( new org.ovirt.engine.core.common.businessentities.Snapshot ( snapshotId , org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotStatus.OK , getVm ( ) . getId ( ) , null , org.ovirt.engine.core.common.businessentities.Snapshot.SnapshotType.ACTIVE , "Active VM snapshot" , new java.util.Date ( ) , null ) ) ; }
Source:
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 ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterVolumeGeoRepSessionStop ( java.lang.String volumeName , java.lang.String remoteHost , java.lang.String remoteVolumeName , java.lang.String userName , java.lang.Boolean force ) ;
Source:
protected boolean matchEntity ( Q entity , org.ovirt.engine.core.compat.Guid id ) { return ( id.equals ( org.ovirt.engine.api.restapi.types.CdRomMapper.CDROM_ID ) ) && ( parentId.equals ( entity.getQueryableId ( ) ) ) ; }

Target:
protected < T > boolean matchEntity ( Q entity , T id ) { return ( id.equals ( org.ovirt.engine.api.restapi.types.CdRomMapper.CDROM_ID ) ) && ( parentId.equals ( entity.getQueryableId ( ) ) ) ; }
Source:
public void testCleanNotExpiredUsersSessionsNoUsers ( ) { initDataForClearTest ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY ) ; container.cleanExpiredUsersSessions ( ) ; org.junit.Assert.assertNotNull ( "Get should return the value since the session was not removed" , container.getData ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID , org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY , false ) ) ; }

Target:
public void testCleanExpiredSessions ( ) { initDataForClearTest ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY ) ; container.cleanExpiredUsersSessions ( ) ; org.junit.Assert.assertNull ( "Get not find the session" , container.getData ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID , org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_KEY , false ) ) ; }
Source:
public boolean addOperation ( final org.ovirt.engine.ui.frontend.communication.VdcOperation < ? , ? > operation ) { return addOperation ( operation , false ) ; }

Target:
public boolean addOperation ( final org.ovirt.engine.ui.frontend.communication.VdcOperation < ? , ? > operation ) { return addOperationImpl ( operation ) ; }
Source:
private void setUpGetEntityExpectations ( org.ovirt.engine.core.common.businessentities.Quota quota ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.GetQuotaByQuotaId , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendQuotaStorageLimitsResourceTest.QUOTA_ID } , quota ) ; }

Target:
private void setUpGetEntityExpectations ( org.ovirt.engine.core.common.businessentities.Quota quota ) throws java.lang.Exception { setUpGetEntityExpectations ( QueryType.GetQuotaByQuotaId , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendQuotaStorageLimitsResourceTest.QUOTA_ID } , quota ) ; }
Source:
public java.lang.String getSystemHostName ( ) { return systemHostName ; }

Target:
public java.lang.String getEngineHostName ( ) { return engineHostName ; }
Source:
public int compare ( org.ovirt.engine.ui.uicommonweb.models.storage.StorageDomainModel x , org.ovirt.engine.ui.uicommonweb.models.storage.StorageDomainModel y ) { return x.getStorageDomain ( ) . getstorage_name ( ) . compareTo ( y.getStorageDomain ( ) . getstorage_name ( ) ) ; }

Target:
public int compare ( org.ovirt.engine.ui.uicommonweb.models.storage.StorageDomainModel x , org.ovirt.engine.ui.uicommonweb.models.storage.StorageDomainModel y ) { return x.getStorageDomain ( ) . getStorageName ( ) . compareTo ( y.getStorageDomain ( ) . getStorageName ( ) ) ; }
Source:
private void ResetInternal ( org.ovirt.engine.ui.uicommonweb.models.tags.TagModel root ) { root.setSelection ( false ) ; for ( org.ovirt.engine.ui.uicommonweb.models.tags.TagModel item : root.getChildren ( ) ) { ResetInternal ( item ) ; } }

Target:
private void resetInternal ( org.ovirt.engine.ui.uicommonweb.models.tags.TagModel root ) { root.setSelection ( false ) ; for ( org.ovirt.engine.ui.uicommonweb.models.tags.TagModel item : root.getChildren ( ) ) { resetInternal ( item ) ; } }
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 ( ) ; } org.junit.Assert.assertEquals ( "017mypool" , generator.generateVmName ( ) ) ; }
Source:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.core.common.businessentities.Role role ) { if ( role.isReadonly ( ) ) { return getApplicationResources ( ) . lockImage ( ) ; } return null ; }

Target:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.core.common.businessentities.Role role ) { if ( role.isReadonly ( ) ) { return org.ovirt.engine.ui.webadmin.widget.table.column.IsLockedImageTypeColumn.resources.lockImage ( ) ; } return null ; }
Source:
public void canDoActionSucceeds ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.RemoveGlusterServerCommand ( new org.ovirt.engine.core.common.action.gluster.RemoveGlusterServerParameters ( org.ovirt.engine.core.bll.gluster.RemoveGlusterServerCommandTest.CLUSTER_ID , org.ovirt.engine.core.bll.gluster.RemoveGlusterServerCommandTest.SERVER_NAME , false ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }

Target:
public void validateSucceeds ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.RemoveGlusterServerCommand ( new org.ovirt.engine.core.common.action.gluster.RemoveGlusterServerParameters ( org.ovirt.engine.core.bll.gluster.RemoveGlusterServerCommandTest.CLUSTER_ID , org.ovirt.engine.core.bll.gluster.RemoveGlusterServerCommandTest.SERVER_NAME , false ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertTrue ( cmd.validate ( ) ) ; }
Source:
public void validateVmMemoryCantStartOnVdsBecauseOfPending ( ) { boolean vmPassedMemoryRequirement = org.ovirt.engine.core.bll.scheduling.SlaValidator.getInstance ( ) . hasPhysMemoryToRunVM ( vds , vm , 65 ) ; org.junit.Assert.assertEquals ( vmPassedMemoryRequirement , false ) ; }

Target:
public void validateVmMemoryCantStartOnVdsBecauseOfPending ( ) { boolean vmPassedMemoryRequirement = slaValidator.hasPhysMemoryToRunVM ( vds , vm , 65 ) ; org.junit.Assert.assertFalse ( vmPassedMemoryRequirement ) ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { glusterServers = org.ovirt.engine.core.vdsbroker.gluster.GlusterServersListVDSCommand.getBroker ( ) . glusterServersList ( ) ; org.ovirt.engine.core.vdsbroker.gluster.GlusterServersListVDSCommand.ProceedProxyReturnValue ( ) ; if ( org.ovirt.engine.core.vdsbroker.gluster.GlusterServersListVDSCommand.getVDSReturnValue ( ) . getSucceeded ( ) ) { setReturnValue ( glusterServers.getServers ( ) ) ; } }

Target:
protected void ExecuteVdsBrokerCommand ( ) { glusterServers = org.ovirt.engine.core.vdsbroker.gluster.GlusterServersListVDSCommand.getBroker ( ) . glusterServersList ( ) ; org.ovirt.engine.core.vdsbroker.gluster.GlusterServersListVDSCommand.proceedProxyReturnValue ( ) ; if ( org.ovirt.engine.core.vdsbroker.gluster.GlusterServersListVDSCommand.getVDSReturnValue ( ) . getSucceeded ( ) ) { setReturnValue ( glusterServers.getServers ( ) ) ; } }
Source:
private void CancelConfirm ( ) { org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( getWindow ( ) ) ) ; org.ovirt.engine.ui.uicommonweb.models.storage.SanStorageModel sanStorageModel = model.getSanStorageModel ( ) ; sanStorageModel.setForce ( false ) ; setConfirmWindow ( null ) ; }

Target:
private void CancelConfirm ( ) { org.ovirt.engine.ui.uicommonweb.models.vms.AbstractDiskModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.AbstractDiskModel ) ( getWindow ( ) ) ) ; org.ovirt.engine.ui.uicommonweb.models.storage.SanStorageModel sanStorageModel = model.getSanStorageModel ( ) ; sanStorageModel.setForce ( false ) ; setConfirmWindow ( null ) ; }
Source:
public void showOnlyVfsConfig ( ) { tabPanel.setVisible ( false ) ; contentPanel.setWidget ( vfsConfigTab.getContent ( ) ) ; mainPanel.setWidth ( "400px" ) ; }

Target:
public void showOnlyVfsConfig ( ) { tabPanel.setVisible ( false ) ; contentPanel.setWidget ( vfsConfigTab.getContent ( ) ) ; mainPanel.setWidth ( "515px" ) ; }
Source:
protected java.util.List < org.ovirt.engine.api.model.StorageConnectionExtension > getCollection ( ) { return collection.list ( ) . getStorageConnectionExtension ( ) ; }

Target:
protected java.util.List < org.ovirt.engine.api.model.StorageConnectionExtension > getCollection ( ) { return collection.list ( ) . getStorageConnectionExtensions ( ) ; }
Source:
public void updateVisibility ( ) { super . updateVisibility ( ) ; attachPanel.setVisible ( false ) ; }

Target:
public void updateVisibility ( ) { super . updateVisibility ( ) ; attachPanel.setVisible ( false ) ; clusterTab.setVisible ( false ) ; }
Source:
private void initVds ( ) { vds = new org.ovirt.engine.core.common.businessentities.VDS ( ) ; vds.setId ( new org.ovirt.engine.core.compat.Guid ( "00000000-0000-0000-0000-000000000012" ) ) ; vds.setVdsGroupCompatibilityVersion ( Version.v3_4 ) ; }

Target:
private void initVds ( ) { vds = new org.ovirt.engine.core.common.businessentities.VDS ( ) ; vds.setId ( new org.ovirt.engine.core.compat.Guid ( "00000000-0000-0000-0000-000000000012" ) ) ; vds.setClusterCompatibilityVersion ( Version.v3_4 ) ; }
Source:
java.lang.String thisFieldMustContainSubnetInFormatMsg ( ) ;

Target:
java.lang.String thisFieldMustContainValidNetmask ( ) ;
Source:
public java.util.Set < java.lang.String > getConsumedEvents ( ) { java.util.Set < java.lang.String > set = new java.util.HashSet < java.lang.String > ( ) ; org.ovirt.engine.ui.common.widget.tooltip.TooltipMixin.addTooltipsEvents ( set ) ; return set ; }

Target:
public java.util.Set < java.lang.String > getConsumedEvents ( ) { java.util.Set < java.lang.String > set = new java.util.HashSet < java.lang.String > ( ) ; org.ovirt.engine.ui.common.widget.tooltip.TooltipMixin.addTooltipsEvents ( set ) ; set.addAll ( super . getConsumedEvents ( ) ) ; return set ; }
Source:
private void setUpGetEntityExpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.GetStorageDomainById , org.ovirt.engine.core.common.queries.StorageDomainQueryParametersBase.class , new java.lang.String [ ] { "StorageDomainId" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , new org.ovirt.engine.api.model.StorageDomain ( ) ) ; }

Target:
private void setUpGetEntityExpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.GetStorageDomainById , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , new org.ovirt.engine.api.model.StorageDomain ( ) ) ; }
Source:
private org.ovirt.engine.core.common.job.Job makeExternalTestJob ( ) { org.ovirt.engine.core.common.job.Job job = new org.ovirt.engine.core.common.job.Job ( ) ; job.setId ( org.ovirt.engine.core.bll.EndExternalJobCommandTest.jobId ) ; job.setDescription ( "Sample Job" ) ; job.setExternal ( true ) ; return job ; }

Target:
private org.ovirt.engine.core.common.job.Job makeExternalTestJob ( ) { org.ovirt.engine.core.common.job.Job job = makeJob ( ) ; job.setExternal ( true ) ; return job ; }
Source:
public void setGateway ( java.lang.String gateway ) { this . gateway = gateway ; }

Target:
public void setIPv4Addresses ( java.util.List < org.ovirt.engine.core.common.businessentities.network.IPv4Address > iPv4Addresses ) { this . iPv4Addresses = iPv4Addresses ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.common.businessentities.VmDevice rngDevice = getParameters ( ) . getRngDevice ( ) ; getDbFacade ( ) . getVmDeviceDao ( ) . update ( rngDevice ) ; setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { org.ovirt.engine.core.common.businessentities.VmDevice rngDevice = getParameters ( ) . getRngDevice ( ) ; vmDeviceDao.update ( rngDevice ) ; setSucceeded ( true ) ; }
Source:
public org.ovirt.engine.api.resource.ReadOnlyDevicesResource < org.ovirt.engine.api.model.Cdrom , org.ovirt.engine.api.model.Cdroms > getCdRomsResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendReadOnlyCdRomsResource < org.ovirt.engine.core.common.businessentities.VmTemplate > ( org.ovirt.engine.core.common.businessentities.VmTemplate.class , guid , org.ovirt.engine.core.common.queries.VdcQueryType.GetVmTemplate , new org.ovirt.engine.core.common.queries.GetVmTemplateParameters ( guid ) ) ) ; }

Target:
public org.ovirt.engine.api.resource.TemplateCdromsResource getCdromsResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendTemplateCdromsResource ( guid ) ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.StoragePool getStoragePool ( ) { org.ovirt.engine.core.common.businessentities.StoragePool storagePool = new org.ovirt.engine.core.common.businessentities.StoragePool ( ) ; storagePool.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; storagePool.setCompatibilityVersion ( Version.v3_5 ) ; return storagePool ; }

Target:
private static org.ovirt.engine.core.common.businessentities.StoragePool getStoragePool ( ) { org.ovirt.engine.core.common.businessentities.StoragePool storagePool = new org.ovirt.engine.core.common.businessentities.StoragePool ( ) ; storagePool.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; storagePool.setCompatibilityVersion ( org.ovirt.engine.core.compat.Version.getLast ( ) ) ; return storagePool ; }
Source:
protected boolean canPerformHotPlug ( ) { return ( isHotPlugSupported ( ) ) && ( isOsSupportingHotPlug ( ) ) ; }

Target:
protected boolean canPerformDiskHotPlug ( org.ovirt.engine.core.common.businessentities.Disk disk ) { return ( isHotPlugSupported ( ) ) && ( isDiskSupportedForPlugUnPlug ( disk ) ) ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { Cancel ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { Cancel ( ) ; }
Source:
protected void executeCommand ( ) { removeQuotaFromCache ( ) ; setQuotaParameter ( ) ; org.ovirt.engine.core.dao.QuotaDao dao = getQuotaDao ( ) ; dao.update ( getParameters ( ) . getQuota ( ) ) ; getReturnValue ( ) . setSucceeded ( true ) ; afterUpdate ( ) ; }

Target:
protected void executeCommand ( ) { removeQuotaFromCache ( ) ; setQuotaParameter ( ) ; quotaDao.update ( getParameters ( ) . getQuota ( ) ) ; getReturnValue ( ) . setSucceeded ( true ) ; afterUpdate ( ) ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface > ( ) ; } return source ; }

Target:
public void getVmGuestAgentInterfacesByVmId ( org.ovirt.engine.ui.frontend.AsyncQuery < java.util.List < org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface > > aQuery , org.ovirt.engine.core.compat.Guid vmId ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.ListConverter < > ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetVmGuestAgentInterfacesByVmId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( vmId ) . withoutRefresh ( ) , aQuery ) ; }
Source:
protected javax.ws.rs.core.Response performRemove ( java.lang.String id ) { throw new org.apache.commons.lang.NotImplementedException ( ) ; }

Target:
private java.util.Map < java.lang.Integer , org.ovirt.engine.core.common.queries.VmIconIdSizePair > getIconDefaults ( ) { return ( ( java.util.Map < java.lang.Integer , org.ovirt.engine.core.common.queries.VmIconIdSizePair > ) ( getEntity ( java.util.Map.class , VdcQueryType.GetVmIconDefaults , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , "Icon defaults" ) ) ) ; }
Source:
protected void startPollingAsyncTasks ( java.util.Collection < org.ovirt.engine.core.compat.Guid > taskIds ) { for ( org.ovirt.engine.core.compat.Guid taskID : taskIds ) { getAsyncTaskManager ( ) . startPollingTask ( taskID ) ; } }

Target:
protected void removeCommand ( ) { javax.transaction.Transaction transaction = org.ovirt.engine.core.utils.transaction.TransactionSupport.suspend ( ) ; try { org.ovirt.engine.core.bll.tasks.TaskManagerUtil.removeCommand ( getCommandId ( ) ) ; } finally { org.ovirt.engine.core.utils.transaction.TransactionSupport.resume ( transaction ) ; } }
Source:
public org.ovirt.engine.core.compat.Guid getStorageDomainId ( ) { return org.ovirt.engine.core.bll.ExportRepoImageCommand.getParameters ( ) . getStorageDomainId ( ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getStorageDomainId ( ) { return ( getDiskImage ( ) ) != null ? getDiskImage ( ) . getStorageIds ( ) . get ( 0 ) : null ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult vmNetworkSetCorrectly ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.NON_VM_NETWORK_NOT_SUPPORTED_FOR_POOL_LEVEL ) . unless ( ( ( network.isVmNetwork ( ) ) || ( org.ovirt.engine.core.common.FeatureSupported.nonVmNetwork ( getDataCenter ( ) . getcompatibility_version ( ) ) ) ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult vmNetworkSetCorrectly ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.NON_VM_NETWORK_NOT_SUPPORTED_FOR_POOL_LEVEL ) . unless ( ( ( network.isVmNetwork ( ) ) || ( org.ovirt.engine.core.common.FeatureSupported.nonVmNetwork ( getDataCenter ( ) . getCompatibilityVersion ( ) ) ) ) ) ; }
Source:
public void getUserIdIdSet ( ) { b.setUserId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; final org.ovirt.engine.core.compat.Guid g = b.getUserId ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID , g ) ; }

Target:
public void getUserIdIdSet ( ) { b.setUserId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; final org.ovirt.engine.core.compat.Guid g = b.getUserId ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID , g ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc heartBeat ( ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.LUNListReturnForXmlRpc getDeviceList ( int storageType , java.lang.String [ ] devicesList ) ;
Source:
public void setKsmState ( java.lang.Boolean value ) { this . mVdsStatistics.setksm_state ( value ) ; }

Target:
public void setKsmPages ( java.lang.Long value ) { this . mVdsStatistics.setKsmPages ( value ) ; }
Source:
public static void RemoveVdsAlert ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.Guid vdsId , org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogType type ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.DbFacade.getInstance ( ) . getAuditLogDao ( ) . removeAllOfTypeForVds ( vdsId , type.getValue ( ) ) ; }

Target:
public static void RemoveVdsAlert ( org.ovirt.engine.core.compat.Guid vdsId , org.ovirt.engine.core.common.AuditLogType type ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getAuditLogDao ( ) . removeAllOfTypeForVds ( vdsId , type.getValue ( ) ) ; }
Source:
public void testQueryFail ( ) { setUpEmptyQueryExpectations ( ) ; assertEquals ( 0 , getCollection ( ) . size ( ) ) ; }

Target:
public void testQueryFail ( ) { setUpEmptyQueryExpectations ( ) ; org.junit.Assert.assertEquals ( 0 , getCollection ( ) . size ( ) ) ; }
Source:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s, diskId = %s" , super . toString ( ) , disk.getId ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.utils.ToStringBuilder appendAttributes ( org.ovirt.engine.core.common.utils.ToStringBuilder tsb ) { return super . appendAttributes ( tsb ) . append ( "diskId" , disk.getId ( ) ) ; }
Source:
public static void RunMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , org.ovirt.engine.ui.uicompat.IFrontendActionAsyncCallback successCallback ) { org.ovirt.engine.ui.frontend.Frontend.RunMultipleActions ( actionType , parameters , successCallback , null ) ; }

Target:
public static void RunMultipleActions ( org.ovirt.engine.core.common.action.VdcActionType actionType , java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , java.util.List < org.ovirt.engine.ui.uicompat.IFrontendActionAsyncCallback > callbacks ) { org.ovirt.engine.ui.frontend.Frontend.RunMultipleActions ( actionType , parameters , callbacks , null ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterVolumeBrickAdd ( java.lang.String volumeName , java.lang.String [ ] bricks , int replicaCount , int stripeCount ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc wipeVolume ( java.lang.String sdUUID , java.lang.String imgUUID , java.lang.String volUUID ) ;
Source:
private void verifyManagementNetwork ( org.ovirt.engine.api.model.Cluster updatedCluster ) { assertEquals ( java.lang.String.format ( "%s/%s/%s/%s/%s" , org.ovirt.engine.api.restapi.resource.BASE_PATH , "clusters" , GUIDS [ 0 ] , "networks" , org.ovirt.engine.api.restapi.resource.BackendClusterResourceTest.MANAGEMENT_NETWORK_ID ) , updatedCluster.getManagementNetwork ( ) . getHref ( ) ) ; }

Target:
private void verifyManagementNetwork ( org.ovirt.engine.core.common.businessentities.Cluster updatedCluster ) { assertEquals ( java.lang.String.format ( "%s/%s/%s/%s/%s" , org.ovirt.engine.api.restapi.resource.BASE_PATH , "clusters" , GUIDS [ 0 ] , "networks" , org.ovirt.engine.api.restapi.resource.BackendClusterResourceTest.MANAGEMENT_NETWORK_ID ) , updatedCluster.getManagementNetwork ( ) . getHref ( ) ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetAllDisksQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getDiskDao ( ) . getAll ( ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetAllDisksQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getDiskDao ( ) . getAll ( org.ovirt.engine.core.bll.GetAllDisksQuery.getUserID ( ) , org.ovirt.engine.core.bll.GetAllDisksQuery.getParameters ( ) . isFiltered ( ) ) ) ; }
Source:
public void getUsbPolicySetDisabled ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; org.ovirt.engine.core.common.businessentities.VDSGroup vdsGroup = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb , vdsGroup.getcompatibility_version ( ) ) , UsbPolicy.DISABLED ) ; }

Target:
public void getUsbPolicyNullUsb ( ) { org.ovirt.engine.api.model.Usb usb = null ; org.ovirt.engine.core.common.businessentities.VDSGroup vdsGroup = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb , vdsGroup.getCompatibilityVersion ( ) ) , UsbPolicy.DISABLED ) ; }
Source:
protected org.ovirt.engine.core.common.utils.ToStringBuilder appendAttributes ( org.ovirt.engine.core.common.utils.ToStringBuilder tsb ) { return super . appendAttributes ( tsb ) . append ( "libvirtSecrets" , getLibvirtSecrets ( ) ) . append ( "clearUnusedSecrets" , getLibvirtSecrets ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.utils.ToStringBuilder appendAttributes ( org.ovirt.engine.core.common.utils.ToStringBuilder tsb ) { return super . appendAttributes ( tsb ) . append ( "libvirtSecrets" , getLibvirtSecrets ( ) ) . append ( "clearUnusedSecrets" , isClearUnusedSecrets ( ) ) ; }
Source:
public void testValidateStatusNonResponsiveForActivation ( ) { mockHostForActivation ( VDSStatus.NonResponsive ) ; org.junit.Assert.assertThat ( validator.validateStatusForActivation ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.VDS_NON_RESPONSIVE ) ) ; }

Target:
public void testValidateStatusNonResponsiveForActivation ( ) { mockHostForActivation ( VDSStatus.NonResponsive ) ; org.hamcrest.MatcherAssert.assertThat ( validator.validateStatusForActivation ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.VDS_NON_RESPONSIVE ) ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getBusinessEntitySnapshotDAO ( ) ; prepareDAO ( dao ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getBusinessEntitySnapshotDao ( ) ; prepareDAO ( dao ) ; }
Source:
public boolean prepareDisconnectStorageServer ( org.ovirt.engine.core.common.action.HostStoragePoolParametersBase parameters , java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > connections ) { return true ; }

Target:
public void prepareDisconnectHostFromStoragePoolServers ( org.ovirt.engine.core.common.action.HostStoragePoolParametersBase parameters , java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > connections ) { }
Source:
private void initDiskImageBasedOnTemplate ( org.ovirt.engine.core.compat.Guid diskImageId ) { org.ovirt.engine.core.common.businessentities.DiskImage diskImage = mockDiskImage ( diskImageId ) ; diskImage.setParentId ( templateDiskImageId ) ; org.mockito.Mockito.when ( diskImageDao.get ( diskImageId ) ) . thenReturn ( diskImage ) ; }

Target:
private void initDiskImageBasedOnTemplate ( org.ovirt.engine.core.compat.Guid diskImageId ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage = mockDiskImage ( diskImageId ) ; diskImage.setParentId ( templateDiskImageId ) ; org.mockito.Mockito.when ( diskImageDao.get ( diskImageId ) ) . thenReturn ( diskImage ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.storage.CinderConnectionInfo call ( ) { com.woorea.openstack.cinder.model.ConnectionForInitialize connectionForInitialize = new com.woorea.openstack.cinder.model.ConnectionForInitialize ( ) ; return proxy.initializeConnectionForVolume ( cinderDisk.getImageId ( ) . toString ( ) , connectionForInitialize ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.storage.CinderConnectionInfo initializeConnectionForDisk ( final org.ovirt.engine.core.common.businessentities.storage.CinderDisk cinderDisk ) { return execute ( ( ) -> { com.woorea.openstack.cinder.model.ConnectionForInitialize connectionForInitialize = new com.woorea.openstack.cinder.model.ConnectionForInitialize ( ) ; return proxy.initializeConnectionForVolume ( cinderDisk.getImageId ( ) . toString ( ) , connectionForInitialize ) ; } ) ; }
Source:
private static void fillIpConfigurationData ( org.ovirt.engine.core.common.businessentities.network.NetworkAttachment networkAttachment , org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface nicToWhichIsNetworkAttached ) { org.ovirt.engine.core.common.businessentities.network.IpConfiguration ipConfiguration = new org.ovirt.engine.core.common.businessentities.network.IpConfiguration ( ) ; networkAttachment.setIpConfiguration ( ipConfiguration ) ; ipConfiguration.getIPv4Addresses ( ) . add ( org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkOperation.newPrimaryAddress ( nicToWhichIsNetworkAttached ) ) ; }

Target:
private static void addLabel ( java.lang.String dstIfaceName , org.ovirt.engine.core.compat.Guid dstIfaceId , java.lang.String label , org.ovirt.engine.ui.uicommonweb.models.hosts.network.DataFromHostSetupNetworksModel dataFromHostSetupNetworksModel ) { dataFromHostSetupNetworksModel.addLabelToParameters ( new org.ovirt.engine.core.common.businessentities.network.NicLabel ( dstIfaceId , dstIfaceName , label ) ) ; }
Source:
public org.ovirt.engine.api.v3.types.V3CpuProfiles list ( ) { return adaptList ( delegate :: list ) ; }

Target:
public org.ovirt.engine.api.v3.types.V3CpuProfiles list ( ) { return adaptList ( getDelegate ( ) :: list ) ; }
Source:
public void testConvertBytestoGB ( ) { long bytes = 3221228000L ; int gigabytes = org.ovirt.engine.core.common.utils.SizeConverter.convert ( bytes , SizeConverter.SizeUnit.BYTES , SizeConverter.SizeUnit.GiB ) . intValue ( ) ; org.junit.Assert.assertEquals ( 3 , gigabytes ) ; }

Target:
public void testConvertBytestoGB ( ) { long bytes = 3221228000L ; int gigabytes = org.ovirt.engine.core.common.utils.SizeConverter.convert ( bytes , SizeConverter.SizeUnit.BYTES , SizeConverter.SizeUnit.GiB ) . intValue ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( 3 , gigabytes ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid asGuid ( java.lang.String id ) { try { return new org.ovirt.engine.core.compat.Guid ( id ) ; } catch ( java.lang.IllegalArgumentException e ) { throw new org.ovirt.engine.api.restapi.resource.BaseBackendResource.MalformedIdException ( e ) ; } }

Target:
protected org.ovirt.engine.core.compat.Guid asGuid ( java.lang.String id ) { try { return new org.ovirt.engine.core.compat.Guid ( id ) ; } catch ( java.lang.IllegalArgumentException e ) { throw new org.ovirt.engine.api.restapi.utils.MalformedIdException ( e ) ; } }
Source:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepSessionCreate ( java.lang.String volumeName , java.lang.String remoteHost , java.lang.String remoteVolumeName , java.lang.String remoteUserName , java.lang.Boolean force ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepSessionStop ( java.lang.String volumeName , java.lang.String remoteHost , java.lang.String remoteVolumeName , java.lang.String userName , java.lang.Boolean force ) ;