auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void checkValidMask ( ) { runSetup ( org.ovirt.engine.core.common.validation.MaskConstraintTest.TEST_MASK , true , true , "" ) ; org.junit.Assert.assertTrue ( underTest.isValid ( org.ovirt.engine.core.common.validation.MaskConstraintTest.TEST_MASK , contextMock ) ) ; org.mockito.Mockito.verifyZeroInteractions ( contextMock ) ; }

Target:
public void checkValidMask ( ) { runSetup ( org.ovirt.engine.core.common.validation.MaskConstraintTest.TEST_MASK , true , true , "" ) ; org.junit.jupiter.api.Assertions.assertTrue ( underTest.isValid ( org.ovirt.engine.core.common.validation.MaskConstraintTest.TEST_MASK , contextMock ) ) ; org.mockito.Mockito.verifyZeroInteractions ( contextMock ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.StorageDomain a ) { return ( a.getstorage_domain_type ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainType.Data ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.StorageDomain a ) { return ( a.getStorageDomainType ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageDomainType.Data ) ; }
Source:
void setTooltip ( com.google.gwt.safehtml.shared.SafeHtml setTooltipText ) ;

Target:
void setTooltip ( java.lang.String tooltip ) ;
Source:
public java.lang.Void call ( ) { proxy.extendVolume ( cinderDisk.getId ( ) . toString ( ) , newSize ) ; return null ; }

Target:
public java.lang.Void call ( ) { proxy.extendVolume ( cinderDisk.getImageId ( ) . toString ( ) , newSize ) ; return null ; }
Source:
private boolean doesUserHavePemissionsOnStoragePool ( ) { org.ovirt.engine.core.common.businessentities.storage_pool pool = org.ovirt.engine.core.bll.AbstractGetAllImagesListByStoragePoolIdQuery.getDbFacade ( ) . getStoragePoolDao ( ) . get ( getStoragePoolId ( ) , org.ovirt.engine.core.bll.AbstractGetAllImagesListByStoragePoolIdQuery.getUserID ( ) , org.ovirt.engine.core.bll.AbstractGetAllImagesListByStoragePoolIdQuery.getParameters ( ) . isFiltered ( ) ) ; return pool != null ; }

Target:
private boolean doesUserHavePermissionsOnStoragePool ( ) { org.ovirt.engine.core.common.businessentities.storage_pool pool = org.ovirt.engine.core.bll.AbstractGetAllImagesListByStoragePoolIdQuery.getDbFacade ( ) . getStoragePoolDao ( ) . get ( getStoragePoolId ( ) , org.ovirt.engine.core.bll.AbstractGetAllImagesListByStoragePoolIdQuery.getUserID ( ) , org.ovirt.engine.core.bll.AbstractGetAllImagesListByStoragePoolIdQuery.getParameters ( ) . isFiltered ( ) ) ; return pool != null ; }
Source:
protected org.ovirt.engine.core.common.businessentities.storage.CinderDisk getDisk ( ) { if ( ( disk ) == null ) { disk = ( ( org.ovirt.engine.core.common.businessentities.storage.CinderDisk ) ( getDiskDao ( ) . get ( org.ovirt.engine.core.bll.storage.CloneSingleCinderDiskCommandCallback.getCommand ( ) . getParameters ( ) . getDestinationImageId ( ) ) ) ) ; } return disk ; }

Target:
protected org.ovirt.engine.core.common.businessentities.storage.CinderDisk getDisk ( ) { if ( ( disk ) == null ) { disk = ( ( org.ovirt.engine.core.common.businessentities.storage.CinderDisk ) ( getDiskDao ( ) . get ( org.ovirt.engine.core.bll.storage.CloneSingleCinderDiskCommandCallback.getCommand ( ) . getParameters ( ) . getContainerId ( ) ) ) ) ; } return disk ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult externalNetworkIsVmNetwork ( ) { return network.isVmNetwork ( ) ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_EXTERNAL_NETWORK_MUST_BE_VM_NETWORK ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult externalNetworkIsVmNetwork ( ) { return network.isVmNetwork ( ) ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_EXTERNAL_NETWORK_MUST_BE_VM_NETWORK ) ; }
Source:
public void canDoActionFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.StopRemoveGlusterVolumeBricksCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters ( null , getBricks ( volumeWithRemoveBricksTaskCompleted , 2 ) ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }

Target:
public void canDoActionFailsOnVolumeWithoutRemoveBricksTask ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.StopRemoveGlusterVolumeBricksCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters ( volumeWithoutRemoveBricksTask , getBricks ( volumeWithoutRemoveBricksTask ) ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }
Source:
protected org.ovirt.engine.core.bll.validator.storage.DiskValidator getDiskValidator ( org.ovirt.engine.core.common.businessentities.storage.Disk disk ) { return new org.ovirt.engine.core.bll.validator.storage.DiskValidator ( disk ) ; }

Target:
protected org.ovirt.engine.core.bll.validator.storage.DiskValidator getDiskValidator ( org.ovirt.engine.core.common.businessentities.storage.Disk disk ) { return new org.ovirt.engine.core.bll.validator.storage.DiskValidator ( disk , org.ovirt.engine.core.bll.storage.disk.AbstractDiskVmCommand.getVmDeviceUtils ( ) ) ; }
Source:
public void setParentParameters ( org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { parentParameters = parameters ; }

Target:
public void setParentParameters ( org.ovirt.engine.core.common.action.ActionParametersBase parameters ) { parentParameters = parameters ; }
Source:
public void getIdByTypeReturnsNullForNonExistingVm ( ) throws java.lang.Exception { org.junit.Assert.assertEquals ( null , dao.getId ( new org.ovirt.engine.core.compat.Guid ( ) , SnapshotType.REGULAR ) ) ; }

Target:
public void getIdByTypeReturnsNullForNonExistingVm ( ) throws java.lang.Exception { org.junit.Assert.assertEquals ( null , dao.getId ( Guid.Empty , SnapshotType.REGULAR ) ) ; }
Source:
public void testGetNonePermittedStorageDomains ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getPermittedStorageDomainsByStoragePool ( org.ovirt.engine.core.dao.StorageDomainDaoTest.EXISTING_USER_ID , ActionGroup.CONSUME_QUOTA , new org.ovirt.engine.core.compat.Guid ( "6d849ebf-755f-4552-ad09-9a090cda105d" ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetNumberOfImagesInExistingDomain ( ) { long numOfImages = dao.getNumberOfImagesInStorageDomain ( FixturesTool.STORAGE_DOAMIN_SCALE_SD5 ) ; org.junit.Assert.assertEquals ( "Number of images on storage domain different than expected" , org.ovirt.engine.core.dao.StorageDomainDaoTest.NUMBER_OF_IMAGES_ON_EXISTING_DOMAIN , numOfImages ) ; }
Source:
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 ) ) ; }

Target:
public org.ovirt.engine.api.resource.VmDiskResource getDeviceResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendVmDiskResource ( parentId , id , this , updateType , getUpdateParametersProvider ( ) , getRequiredUpdateFields ( ) , subCollections ) ) ; }
Source:
private void validateSource ( ) { clearError ( ) ; if ( ( ( importSources.getSelectedItem ( ) ) == ( ImportSource.EXPORT_DOMAIN ) ) && ( ( exportDomain ) == null ) ) { setError ( constants.notAvailableWithNoActiveExportDomain ( ) ) ; } }

Target:
private void validateSource ( ) { clearProblem ( ) ; if ( ( ( importSources.getSelectedItem ( ) ) == ( ImportSource.EXPORT_DOMAIN ) ) && ( ( exportDomain ) == null ) ) { setError ( constants.notAvailableWithNoActiveExportDomain ( ) ) ; } }
Source:
protected void onSelectedItemChanged ( ) { super . onSelectedItemChanged ( ) ; updateActionAvailability ( ) ; }

Target:
protected void onSelectedItemChanged ( ) { super . onSelectedItemChanged ( ) ; updateActionAvailability ( ) ; if ( ( getSelectedItem ( ) ) != null ) { updateAlerts ( ) ; } }
Source:
protected org.ovirt.engine.core.compat.Guid getCurrentVdsId ( ) { return ( getVdsDestinationId ( ) ) != null ? getVdsDestinationId ( ) : super . getCurrentVdsId ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid getCurrentVdsId ( ) { org.ovirt.engine.core.compat.Guid destinationVdsId = getDestinationVdsId ( ) ; return destinationVdsId != null ? destinationVdsId : super . getCurrentVdsId ( ) ; }
Source:
public java.lang.String toString ( ) { return uuid.toString ( ) ; }

Target:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s[%s]" , name , uuid ) ; }
Source:
public void dispose ( ) { org.ovirt.engine.core.vdsbroker.VdsManager.log.info ( "vdsManager::disposing" ) ; org.ovirt.engine.core.utils.timer.SchedulerUtilQuartzImpl.getInstance ( ) . deleteJob ( onTimerJobId ) ; org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcUtils.shutDownConnection ( ( ( org.ovirt.engine.core.vdsbroker.vdsbroker.VdsServerWrapper ) ( vdsProxy ) ) . getHttpClient ( ) ) ; }

Target:
public void dispose ( ) { org.ovirt.engine.core.vdsbroker.VdsManager.log.info ( "vdsManager::disposing" ) ; org.ovirt.engine.core.utils.timer.SchedulerUtilQuartzImpl.getInstance ( ) . deleteJob ( onTimerJobId ) ; org.ovirt.engine.core.utils.timer.SchedulerUtilQuartzImpl.getInstance ( ) . deleteJob ( vmsMonitoringJobId ) ; vdsProxy.close ( ) ; }
Source:
private static java.util.Map < java.lang.String , java.lang.Object > setDisksUsageInXmlRpc ( java.lang.Object [ ] disksUsageData ) { java.util.Map < java.lang.String , java.lang.Object > map = new java.util.HashMap < > ( ) ; map.put ( VdsProperties.VM_DISKS_USAGE , disksUsageData ) ; return map ; }

Target:
private static java.util.Map < java.lang.String , java.lang.Object > setDisksUsage ( java.lang.Object [ ] disksUsageData ) { java.util.Map < java.lang.String , java.lang.Object > map = new java.util.HashMap < > ( ) ; map.put ( VdsProperties.VM_DISKS_USAGE , disksUsageData ) ; return map ; }
Source:
public void getVdsDefault ( ) { final org.ovirt.engine.core.common.businessentities.VDS v = b.getVds ( ) ; org.junit.Assert.assertNull ( v ) ; }

Target:
public void getVdsDefault ( ) { final org.ovirt.engine.core.common.businessentities.VDS v = b.getVds ( ) ; org.junit.jupiter.api.Assertions.assertNull ( v ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.VmDevice addConsoleDevice ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.addManagedDevice ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , vmId ) , VmDeviceGeneralType.CONSOLE , VmDeviceType.CONSOLE , org.ovirt.engine.core.bll.utils.VmDeviceUtils.EMPTY_SPEC_PARAMS , true , false ) ; }

Target:
public static org.ovirt.engine.core.common.businessentities.VmDevice addConsoleDevice ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.addManagedDevice ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , vmId ) , VmDeviceGeneralType.CONSOLE , VmDeviceType.CONSOLE , org.ovirt.engine.core.bll.utils.VmDeviceUtils.getConsoleDeviceSpecParams ( ) , true , false ) ; }
Source:
public void setDetailPlaceTransitionHandler ( org.ovirt.engine.ui.webadmin.section.main.presenter.DetailsTransitionHandler < org.ovirt.engine.core.common.businessentities.Erratum > handler ) { super . setDetailPlaceTransitionHandler ( handler ) ; org.ovirt.engine.ui.webadmin.section.main.view.popup.ErrataTableView.initErrataGrid ( getTable ( ) , true , transitionHandler ) ; }

Target:
public void setPlaceTransitionHandler ( org.ovirt.engine.ui.common.presenter.PlaceTransitionHandler handler ) { super . setPlaceTransitionHandler ( handler ) ; org.ovirt.engine.ui.webadmin.section.main.view.popup.ErrataTableView.initErrataGrid ( getTable ( ) , true , handler ) ; }
Source:
public void updateCallbackNotified ( org.ovirt.engine.core.compat.Guid commandId ) ;

Target:
org.ovirt.engine.core.bll.CommandBase < ? > retrieveCommand ( org.ovirt.engine.core.compat.Guid commandId ) ;
Source:
public static org.ovirt.engine.core.common.businessentities.StorageDomain findStorageDomainForMemory ( org.ovirt.engine.core.compat.Guid storagePoolId , long sizeRequested ) { return org.ovirt.engine.core.bll.VmHandler.findStorageDomainForMemory ( storagePoolId , sizeRequested , java.util.Collections.< org.ovirt.engine.core.common.businessentities.StorageDomain , java.lang.Integer > emptyMap ( ) ) ; }

Target:
public static boolean copyNonEditableFieldsToDestination ( org.ovirt.engine.core.common.businessentities.VmStatic source , org.ovirt.engine.core.common.businessentities.VmStatic destination , boolean hotSetEnabled ) { return org.ovirt.engine.core.bll.VmHandler.mUpdateVmsStatic.copyNonEditableFieldsToDestination ( source , destination , hotSetEnabled ) ; }
Source:
private java.util.List < org.ovirt.engine.api.model.UnmanagedNetwork > getAllUnmanagedNetworksByVdsId ( ) { return getBackendCollection ( VdcQueryType.GetAllUnmanagedNetworksByHostId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( hostId ) ) ; }

Target:
private java.util.List < org.ovirt.engine.api.model.UnmanagedNetwork > getAllUnmanagedNetworksByVdsId ( ) { return getBackendCollection ( QueryType.GetAllUnmanagedNetworksByHostId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( hostId ) ) ; }
Source:
public void testDefaultPoolFlagIsNotSetValidUsage ( ) throws java.lang.Exception { macPool.setDefaultPool ( false ) ; org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.MacPoolValidator ( macPool ) . defaultPoolFlagIsNotSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
private org.ovirt.engine.core.bll.MacPoolValidator createMacPoolValidator ( org.ovirt.engine.core.common.businessentities.MacPool macPool ) { org.ovirt.engine.core.bll.MacPoolValidator macPoolValidator = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.MacPoolValidator ( macPool ) ) ; org.mockito.Mockito.doReturn ( dbFacadeMock ) . when ( macPoolValidator ) . getDbFacade ( ) ; return macPoolValidator ; }
Source:
public void testGetVmsListForDisk ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > result = dao.getVmsListForDisk ( FixturesTool.IMAGE_GROUP_ID , false ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( "wrong number of VMs" , 1 , result.size ( ) ) ; }

Target:
public void testGetVmsListForDisk ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > result = dao.getVmsListForDisk ( FixturesTool.IMAGE_GROUP_ID , false ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertEquals ( 1 , result.size ( ) , "wrong number of VMs" ) ; }
Source:
public void testCanDoAction ( ) { org.mockito.Mockito.doReturn ( true ) . when ( cmd ) . validateVmNotDuringSnapshot ( ) ; vm.setStatus ( VMStatus.Up ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , EngineMessage.VMT_CANNOT_CREATE_TEMPLATE_FROM_DOWN_VM ) ; }

Target:
public void testValidateInstanceNameDuplicate ( ) { cmd.getParameters ( ) . setTemplateType ( VmEntityType.INSTANCE_TYPE ) ; org.mockito.Mockito.doReturn ( true ) . when ( cmd ) . isInstanceWithSameNameExists ( "templateName" ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_NAME_ALREADY_USED ) ; }
Source:
public < T > void mockConfigValue ( org.ovirt.engine.core.utils.MockConfigRule.MockConfigDescriptor < T > mcd ) { org.ovirt.engine.core.utils.MockConfigRule.mockConfigValue ( mcd.getValue ( ) , mcd.getVersion ( ) , mcd.getReturnValue ( ) ) ; }

Target:
public < T > void mockConfigValue ( org.ovirt.engine.core.utils.MockConfigDescriptor < T > mcd ) { mockConfigValue ( mcd.getValue ( ) , mcd.getVersion ( ) , mcd.getReturnValue ( ) ) ; }
Source:
protected void RunCommands ( ) { for ( org.ovirt.engine.core.bll.CommandBase < ? > command : getCommands ( ) ) { if ( command.getReturnValue ( ) . getCanDoAction ( ) ) { executeValidatedCommand ( command ) ; } } }

Target:
protected void runCommands ( ) { for ( org.ovirt.engine.core.bll.CommandBase < ? > command : getCommands ( ) ) { if ( command.getReturnValue ( ) . getCanDoAction ( ) ) { executeValidatedCommand ( command ) ; } } }
Source:
public void setTitle ( java.lang.String title ) { this . title = ( title != null ) ? title : "" ; }

Target:
public void setTitle ( java.lang.String title ) { tooltipPanel.setText ( title ) ; }
Source:
protected void setUpGetEntityNextRunExpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.GetVmNextRunConfiguration , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , getEntity ( 0 ) ) ; }

Target:
protected void setUpGetEntityNextRunExpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( QueryType.GetVmNextRunConfiguration , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 0 ] } , getEntity ( 0 ) ) ; }
Source:
public org.ovirt.engine.core.common.TimeZoneType getTimeZoneType ( ) { org.ovirt.engine.core.common.businessentities.VmOsType vmOsType = ( ( org.ovirt.engine.core.common.businessentities.VmOsType ) ( getModel ( ) . getOSType ( ) . getSelectedItem ( ) ) ) ; return org.ovirt.engine.core.common.TimeZoneType.getTimeZoneByOs ( vmOsType ) ; }

Target:
public org.ovirt.engine.core.common.TimeZoneType getTimeZoneType ( ) { int vmOsType = ( ( java.lang.Integer ) ( getModel ( ) . getOSType ( ) . getSelectedItem ( ) ) ) ; return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.isWindowsOsType ( vmOsType ) ? org.ovirt.engine.core.common.TimeZoneType.WINDOWS_TIMEZONE : org.ovirt.engine.core.common.TimeZoneType.GENERAL_TIMEZONE ; }
Source:
public void vmIdDefault ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; final org.ovirt.engine.core.compat.Guid i = b.getVmId ( ) ; org.junit.Assert.assertEquals ( Guid.Empty , i ) ; }

Target:
public void vmIdNull ( ) { b.setVmId ( null ) ; final org.ovirt.engine.core.compat.Guid i = b.getVmId ( ) ; org.junit.Assert.assertEquals ( Guid.Empty , i ) ; }
Source:
protected void openReport ( ) { setWidgetModel ( createReportModel ( ) ) ; }

Target:
public void onSuccess ( java.util.List < T > returnValue ) { setItems ( returnValue ) ; }
Source:
public void update ( org.ovirt.engine.core.common.businessentities.DbGroup group ) { insertOrUpdate ( group , "UpdateGroup" ) ; }

Target:
public void update ( org.ovirt.engine.core.common.businessentities.aaa.DbGroup group ) { insertOrUpdate ( group , "UpdateGroup" ) ; }
Source:
public void setLabelStyleName ( java.lang.String styleName ) { getLabelElement ( ) . setClassName ( styleName ) ; }

Target:
public void setLabelStyleName ( java.lang.String styleName ) { getFormLabel ( ) . setStyleName ( styleName ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > getConnections ( ) { return getEntity ( java.util.List.class , VdcQueryType.GetStorageServerConnectionsForDomain , new org.ovirt.engine.core.common.queries.IdQueryParameters ( storageDomainId ) , ( "storage domain: id=" + ( storageDomainId ) ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > getConnections ( ) { return getEntity ( java.util.List.class , QueryType.GetStorageServerConnectionsForDomain , new org.ovirt.engine.core.common.queries.IdQueryParameters ( storageDomainId ) , ( "storage domain: id=" + ( storageDomainId ) ) ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid CreateTask ( org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { return CreateTask ( asyncTaskCreationInfo , parentCommand , null ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid CreateTask ( org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand , org.ovirt.engine.core.common.VdcObjectType entityType , org.ovirt.engine.core.compat.Guid ... entityIds ) { return CreateTask ( asyncTaskCreationInfo , parentCommand , null , entityType , entityIds ) ; }
Source:
public void updateAllInBatch ( java.lang.String procedureName , java.util.Collection < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > paramValues , org.ovirt.engine.core.dal.dbbroker.MapSqlParameterMapper < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > mapper ) { getCallsHandler ( ) . executeStoredProcAsBatch ( procedureName , paramValues , mapper ) ; }

Target:
public void updateAllInBatch ( java.lang.String procedureName , java.util.Collection < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > paramValues , org.ovirt.engine.core.dal.dbbroker.MapSqlParameterMapper < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > mapper ) { for ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface entity : paramValues ) { persistQosChanges ( entity ) ; } getCallsHandler ( ) . executeStoredProcAsBatch ( procedureName , paramValues , mapper ) ; }
Source:
public void testGetByLargeIconId ( ) { final java.util.List < org.ovirt.engine.core.common.businessentities.VmIconDefault > result = dao.getByLargeIconId ( FixturesTool.LARGE_ICON_ID ) ; org.junit.Assert.assertTrue ( result.contains ( org.ovirt.engine.core.dao.VmIconDefaultDaoTest.OTHER_OS_VM_ICON_DEFAULT ) ) ; }

Target:
public void testGetByLargeIconId ( ) { final java.util.List < org.ovirt.engine.core.common.businessentities.VmIconDefault > result = dao.getByLargeIconId ( FixturesTool.LARGE_ICON_ID ) ; org.junit.jupiter.api.Assertions.assertTrue ( result.contains ( org.ovirt.engine.core.dao.VmIconDefaultDaoTest.OTHER_OS_VM_ICON_DEFAULT ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createVdsNetworkInterface ( java.lang.String name ) { return createVdsNetworkInterface ( null , name ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createVdsNetworkInterface ( ) { return createVdsNetworkInterface ( null , "interfaceWithUnreportedNetwork" ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult domainIsValidDestination ( ) { if ( storageDomain.getStorageDomainType ( ) . isIsoOrImportExportDomain ( ) ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAIN_TYPE_ILLEGAL ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult domainIsValidDestination ( ) { if ( storageDomain.getStorageDomainType ( ) . isIsoOrImportExportDomain ( ) ) { return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_STORAGE_DOMAIN_TYPE_ILLEGAL ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
private static void updateDiskVolumeType ( org.ovirt.engine.core.common.businessentities.StorageType storageType , org.ovirt.engine.core.common.businessentities.DiskImage disk ) { org.ovirt.engine.core.common.businessentities.VolumeType volumeType = ( storageType.isFileDomain ( ) ) ? org.ovirt.engine.core.common.businessentities.VolumeType.Sparse : org.ovirt.engine.core.common.businessentities.VolumeType.Preallocated ; disk.setVolumeType ( volumeType ) ; }

Target:
private static void updateDiskVolumeType ( org.ovirt.engine.core.common.businessentities.storage.StorageType storageType , org.ovirt.engine.core.common.businessentities.storage.DiskImage disk ) { org.ovirt.engine.core.common.businessentities.storage.VolumeType volumeType = ( storageType.isFileDomain ( ) ) ? org.ovirt.engine.core.common.businessentities.storage.VolumeType.Sparse : org.ovirt.engine.core.common.businessentities.storage.VolumeType.Preallocated ; disk.setVolumeType ( volumeType ) ; }
Source:
public org.ovirt.engine.core.bll.tasks.interfaces.CommandCallBack getCallBack ( ) { return null ; }

Target:
public org.ovirt.engine.core.bll.tasks.interfaces.CommandCallback getCallback ( ) { return null ; }
Source:
public void testGetAllInterfacesWithIpAddress ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > interfaces = dao.getAllInterfacesWithIpAddress ( FixturesTool.CLUSTER , org.ovirt.engine.core.dao.network.InterfaceDaoImplTest.IP_ADDR ) ; org.junit.Assert.assertNotNull ( interfaces ) ; org.junit.Assert.assertEquals ( 1 , interfaces.size ( ) ) ; assertGetAllForVdsCorrectResult ( interfaces ) ; }

Target:
public void testGetAllInterfacesWithIpAddress ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > interfaces = dao.getAllInterfacesWithIpAddress ( FixturesTool.CLUSTER , org.ovirt.engine.core.dao.network.InterfaceDaoImplTest.IP_ADDR ) ; org.junit.jupiter.api.Assertions.assertNotNull ( interfaces ) ; org.junit.jupiter.api.Assertions.assertEquals ( 1 , interfaces.size ( ) ) ; assertGetAllForVdsCorrectResult ( interfaces ) ; }
Source:
public void DefaultHost_SelectedItemChanged ( ) { UpdateCdImage ( ) ; }

Target:
public void cluster_SelectedItemChanged ( ) { updateDefaultHost ( ) ; updateNumOfSockets ( ) ; updateQuotaByCluster ( template.getQuotaId ( ) , template.getQuotaName ( ) ) ; }
Source:
public void testGetAllForStoragePoolWithPermissionsPrivilegedUser ( ) { org.ovirt.engine.core.compat.Guid storagePoolId = new org.ovirt.engine.core.compat.Guid ( "6d849ebf-755f-4552-ad09-9a090cda105d" ) ; java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllForStoragePool ( storagePoolId , org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , true ) ; org.ovirt.engine.core.dao.StorageDomainDaoTest.assertGetAllForStoragePoolResult ( result , storagePoolId ) ; }

Target:
public void testGetNonePermittedStorageDomains ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getPermittedStorageDomainsByStoragePool ( FixturesTool.USER_EXISTING_ID , ActionGroup.CONSUME_QUOTA , FixturesTool.DATA_CENTER ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public static void RunAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { org.ovirt.engine.ui.frontend.Frontend.RunAction ( actionType , parameters , org.ovirt.engine.ui.frontend.Frontend.NULLABLE_ASYNC_CALLBACK ) ; }

Target:
public void runMultipleActions ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , final java.util.List < org.ovirt.engine.ui.uicompat.IFrontendActionAsyncCallback > callbacks ) { runMultipleActions ( actionType , parameters , callbacks , null ) ; }
Source:
public void setVfsChangeability ( boolean isPathEditable ) { getVfsType ( ) . setIsChangable ( isPathEditable ) ; }

Target:
public void prepareForEdit ( org.ovirt.engine.core.common.businessentities.StorageDomain storage ) { super . prepareForEdit ( storage ) ; boolean isEditable = isEditable ( storage ) ; setVfsChangeability ( isEditable ) ; getMountOptions ( ) . setIsChangable ( isEditable ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > listFailedAutorecoverables ( ) { return getCallsHandler ( ) . executeReadList ( "GetFailingVdss" , org.ovirt.engine.core.dao.VdsDAODbFacadeImpl.VdsRowMapper.instance , null ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > listFailedAutorecoverables ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > vdsList = getCallsHandler ( ) . executeReadList ( "GetFailingVdss" , org.ovirt.engine.core.dao.VdsDAODbFacadeImpl.VdsRowMapper.instance , null ) ; return uniteAgents ( vdsList ) ; }
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.StorageDomain > ( ) ; } 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.storage.DiskImage > ( ) ; } return source ; }
Source:
public boolean Match ( org.ovirt.engine.core.common.businessentities.StorageDomain source ) { return name.equals ( source.getStorageName ( ) ) ; }

Target:
public boolean match ( org.ovirt.engine.core.common.businessentities.StorageDomain source ) { return name.equals ( source.getStorageName ( ) ) ; }
Source:
private java.lang.Boolean isNfsStatistics ( ) { return org.ovirt.engine.api.common.util.ParametersHelper.getBooleanParameter ( httpHeaders , uriInfo , org.ovirt.engine.api.restapi.resource.gluster.BackendGlusterVolumeResource.NFS_CONSTRAINT_PARAMETER , true , false ) ; }

Target:
private java.lang.Boolean isNfsStatistics ( ) { return org.ovirt.engine.api.restapi.util.ParametersHelper.getBooleanParameter ( httpHeaders , uriInfo , org.ovirt.engine.api.restapi.resource.gluster.BackendGlusterVolumeResource.NFS_CONSTRAINT_PARAMETER , true , false ) ; }
Source:
protected org.ovirt.engine.core.common.utils.ToStringBuilder appendAttributes ( org.ovirt.engine.core.common.utils.ToStringBuilder tsb ) { return super . appendAttributes ( tsb ) . append ( "imageId" , imageId ) . append ( "volumeId" , volumeId ) . append ( "qcowCompat" , qcowCompat ) ; }

Target:
protected org.ovirt.engine.core.common.utils.ToStringBuilder appendAttributes ( org.ovirt.engine.core.common.utils.ToStringBuilder tsb ) { return super . appendAttributes ( tsb ) . append ( "imageId" , imageId ) . append ( "volumeId" , volumeId ) . append ( "generation" , generation ) . append ( "qcowCompat" , qcowCompat ) ; }
Source:
public boolean isEnableDeprecatedClientModeSpicePlugin ( ) { return ( ( java.lang.Boolean ) ( getConfigValuePreConverted ( ConfigurationValues.EnableDeprecatedClientModeSpicePlugin , getDefaultConfigurationVersion ( ) ) ) ) ; }

Target:
public boolean isGetNamesOfVmsFromExternalProviderSupported ( org.ovirt.engine.core.compat.Version dataCenterVersion ) { return ( ( java.lang.Boolean ) ( getConfigValuePreConverted ( ConfigurationValues.GetNamesOfVmsFromExternalProviderSupported , dataCenterVersion.toString ( ) ) ) ) ; }
Source:
public void checkServerTrusted ( java.security.cert.X509Certificate [ ] certs , java.lang.String authType ) { }

Target:
public void checkServerTrusted ( java.security.cert.X509Certificate [ ] certs , java.lang.String authType ) { tmcerts.addAll ( java.util.Arrays.asList ( certs ) ) ; }
Source:
public org.ovirt.engine.core.compat.Version getcompatibility_version ( ) { return compatVersion ; }

Target:
public org.ovirt.engine.core.compat.Version getCompatibilityVersion ( ) { return compatVersion ; }
Source:
public void snapshotExistsByGuidReturnsInvalidResultWhenNoSnapshot ( ) throws java.lang.Exception { org.mockito.Mockito.when ( snapshotDao.exists ( vmId , snapshot.getId ( ) ) ) . thenReturn ( false ) ; org.ovirt.engine.core.bll.snapshots.SnapshotsValidatorTest.validateInvalidResult ( validator.snapshotExists ( vmId , snapshot.getId ( ) ) , VdcBllMessages.ACTION_TYPE_FAILED_VM_SNAPSHOT_DOES_NOT_EXIST ) ; }

Target:
public void snapshotExistsByGuidReturnsInvalidResultWhenNoSnapshot ( ) throws java.lang.Exception { org.mockito.Mockito.when ( snapshotDao.exists ( vmId , snapshot.getId ( ) ) ) . thenReturn ( false ) ; org.ovirt.engine.core.bll.snapshots.SnapshotsValidatorTest.validateInvalidResult ( validator.snapshotExists ( vmId , snapshot.getId ( ) ) , EngineMessage.ACTION_TYPE_FAILED_VM_SNAPSHOT_DOES_NOT_EXIST ) ; }
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 reuseCurrentSession ( ) { java.lang.String currentSessionId = getCurrentSessionId ( ) ; if ( currentSessionId != null ) { org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionAcquiredEvent.fire ( eventBus , currentSessionId ) ; scheduleKeepAliveHeartbeat ( ) ; } else { org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.logger.severe ( "Engine REST API session ID is not available" ) ; } }

Target:
public void reuseSession ( ) { java.lang.String sessionId = getSessionId ( ) ; if ( sessionId != null ) { org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionAcquiredEvent.fire ( eventBus , sessionId ) ; } else { org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.logger.severe ( "Engine REST API session ID is not available" ) ; } }
Source:
public void testSameNotIpv6Strings ( ) { org.junit.Assert.assertTrue ( new org.ovirt.engine.core.utils.network.predicate.IpAddressPredicate ( org.ovirt.engine.core.utils.network.predicate.IpAddressPredicateTest.SOME_NON_IPV6_STRING ) . test ( org.ovirt.engine.core.utils.network.predicate.IpAddressPredicateTest.SOME_NON_IPV6_STRING ) ) ; }

Target:
public void testSameNotIpv6Strings ( ) { org.junit.jupiter.api.Assertions.assertTrue ( new org.ovirt.engine.core.utils.network.predicate.IpAddressPredicate ( org.ovirt.engine.core.utils.network.predicate.IpAddressPredicateTest.SOME_NON_IPV6_STRING ) . test ( org.ovirt.engine.core.utils.network.predicate.IpAddressPredicateTest.SOME_NON_IPV6_STRING ) ) ; }
Source:
public void testTemplate ( ) { testValidSql ( "Template: " , "SELECT * FROM ((SELECT distinct vm_templates_view.* FROM vm_templates_view ) ORDER BY name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "Template: hosts.name = fake1" , "SELECT * FROM ((SELECT distinct vm_templates_view.* FROM vm_templates_view LEFT OUTER JOIN vms_with_tags ON vm_templates_view.vmt_guid=vms_with_tags.vmt_guid LEFT OUTER JOIN vds_with_tags ON vms_with_tags.run_on_vds=vds_with_tags.vds_id WHERE (vds_with_tags.vds_name IS NULL OR vds_with_tags.vds_name LIKE fake1) ) ORDER BY name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "Templates: storage.name = 111" , "SELECT * FROM (SELECT * FROM vm_templates_view WHERE ( vmt_guid IN (SELECT distinct vm_templates_storage_domain.vmt_guid FROM vm_templates_storage_domain LEFT OUTER JOIN vms_with_tags ON vm_templates_storage_domain.vmt_guid=vms_with_tags.vmt_guid LEFT OUTER JOIN storage_domains_with_hosts_view ON vm_templates_storage_domain.storage_id=storage_domains_with_hosts_view.id WHERE (storage_domains_with_hosts_view.storage_name IS NULL OR storage_domains_with_hosts_view.storage_name LIKE 111) )) ORDER BY name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; }

Target:
public void testTemplate ( ) { testValidSql ( "Template: " , "SELECT * FROM ((SELECT distinct vm_templates_view.* FROM vm_templates_view ) ORDER BY name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "Template: hosts.name = fake1" , "SELECT * FROM ((SELECT distinct vm_templates_view.* FROM vm_templates_view LEFT OUTER JOIN vms_with_tags ON vm_templates_view.vmt_guid=vms_with_tags.vmt_guid LEFT OUTER JOIN vds_with_tags ON vms_with_tags.run_on_vds=vds_with_tags.vds_id WHERE vds_with_tags.vds_name LIKE fake1 ) ORDER BY name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; testValidSql ( "Templates: storage.name = 111" , "SELECT * FROM (SELECT * FROM vm_templates_view WHERE ( vmt_guid IN (SELECT distinct vm_templates_storage_domain.vmt_guid FROM vm_templates_storage_domain LEFT OUTER JOIN vms_with_tags ON vm_templates_storage_domain.vmt_guid=vms_with_tags.vmt_guid LEFT OUTER JOIN storage_domains_with_hosts_view ON vm_templates_storage_domain.storage_id=storage_domains_with_hosts_view.id WHERE storage_domains_with_hosts_view.storage_name LIKE 111 )) ORDER BY name ASC ) as T1 OFFSET (1 -1) LIMIT 0" ) ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue = result.getReturnValue ( ) ; StopProgress ( ) ; if ( ( returnValue != null ) && ( returnValue.getSucceeded ( ) ) ) { cancel ( ) ; postOnSave ( ) ; } }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue = result.getReturnValue ( ) ; StopProgress ( ) ; if ( ( returnValue != null ) && ( returnValue.getSucceeded ( ) ) ) { cancel ( ) ; postOnSave ( ) ; } }
Source:
public void testBadGuid ( ) { try { new org.ovirt.engine.api.restapi.resource.BackendClusterResource ( "foo" , new org.ovirt.engine.api.restapi.resource.BackendClustersResource ( ) ) ; org.junit.Assert.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testBadGuid ( ) { try { new org.ovirt.engine.api.restapi.resource.BackendClusterResource ( "foo" , new org.ovirt.engine.api.restapi.resource.BackendClustersResource ( ) ) ; org.junit.jupiter.api.Assertions.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }
Source:
private org.ovirt.engine.core.common.businessentities.network.ExternalVnicProfileMapping mapSingleMappingEntry ( org.ovirt.engine.api.model.VnicProfileMapping model ) { return new org.ovirt.engine.core.common.businessentities.network.ExternalVnicProfileMapping ( model.getSourceNetworkName ( ) , model.getSourceNetworkProfileName ( ) , org.ovirt.engine.core.compat.Guid.createGuidFromString ( model.getTargetVnicProfile ( ) . getId ( ) ) ) ; }

Target:
private static org.ovirt.engine.core.common.businessentities.network.ExternalVnicProfileMapping mapSingleMappingEntry ( org.ovirt.engine.api.model.VnicProfileMapping model ) { return new org.ovirt.engine.core.common.businessentities.network.ExternalVnicProfileMapping ( model.getSourceNetworkName ( ) , model.getSourceNetworkProfileName ( ) , org.ovirt.engine.api.restapi.types.ExternalVnicProfileMappingMapper.getTargetVnicProfileId ( model ) ) ; }
Source:
public void makeSortable ( ) { makeSortable ( new java.util.Comparator < T > ( ) { @ java.lang.Override public int compare ( T arg0 , T arg1 ) { return getProgressValue ( arg0 ) . compareTo ( getProgressValue ( arg1 ) ) ; } } ) ; }

Target:
public void makeSortable ( ) { makeSortable ( java.util.Comparator.comparing ( this :: getProgressValue ) ) ; }
Source:
public void Init ( org.ovirt.engine.core.common.businessentities.VDS vds ) { mCurrentVdsId = vds.getId ( ) ; setmIrsPort ( vds.getPort ( ) ) ; privatemCurrentIrsHost = vds.getHostName ( ) ; }

Target:
public void init ( org.ovirt.engine.core.common.businessentities.VDS vds ) { mCurrentVdsId = vds.getId ( ) ; setmIrsPort ( vds.getPort ( ) ) ; privatemCurrentIrsHost = vds.getHostName ( ) ; }
Source:
private void movePoolToProblematicInDB ( org.ovirt.engine.core.common.businessentities.StoragePool storagePool ) { updateStoragePoolStatus ( storagePool.getId ( ) , StoragePoolStatus.NonResponsive , AuditLogType.SYSTEM_CHANGE_STORAGE_POOL_STATUS_PROBLEMATIC , VdcBllErrors.ENGINE ) ; storagePool.setSpmVdsId ( null ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStoragePoolDao ( ) . update ( storagePool ) ; }

Target:
private void movePoolToProblematicInDB ( org.ovirt.engine.core.common.businessentities.StoragePool storagePool ) { updateStoragePoolStatus ( storagePool.getId ( ) , StoragePoolStatus.NonResponsive , AuditLogType.SYSTEM_CHANGE_STORAGE_POOL_STATUS_PROBLEMATIC , EngineError.ENGINE ) ; storagePool.setSpmVdsId ( null ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStoragePoolDao ( ) . update ( storagePool ) ; }
Source:
public void passthroughProfileContainsQos ( ) { passthroughProfileContainsSupportedPropertiesTest ( true , false , DEFAULT_GUID ) ; org.junit.Assert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_PASSTHROUGH_PROFILE_CONTAINS_NOT_SUPPORTED_PROPERTIES ) ) ; }

Target:
public void passthroughProfileContainsQos ( ) { passthroughProfileContainsSupportedPropertiesTest ( true , false , DEFAULT_GUID ) ; org.junit.Assert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_PASSTHROUGH_PROFILE_CONTAINS_NOT_SUPPORTED_PROPERTIES ) ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( getBootProtocol ( ) , getAddress ( ) , getNetmask ( ) , getGateway ( ) ) ; }

Target:
public java.lang.String toString ( ) { return org.ovirt.engine.core.common.utils.ToStringBuilder.forInstance ( this ) . append ( "bootProtocol" , getBootProtocol ( ) ) . append ( "ipv4Addresses" , getIPv4Addresses ( ) ) . build ( ) ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getNetworkDao ( ) . remove ( org.ovirt.engine.core.bll.storage.RemoveNetworkCommand.getParameters ( ) . getNetwork ( ) . getId ( ) ) ; org.ovirt.engine.core.bll.storage.RemoveNetworkCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.storage.RemoveNetworkCommand.getNetworkDAO ( ) . remove ( org.ovirt.engine.core.bll.storage.RemoveNetworkCommand.getParameters ( ) . getNetwork ( ) . getId ( ) ) ; org.ovirt.engine.core.bll.storage.RemoveNetworkCommand.setSucceeded ( true ) ; }
Source:
private void verifyModel ( org.ovirt.engine.api.model.Watchdog model ) { org.junit.Assert.assertEquals ( org.ovirt.engine.api.restapi.resource.BackendInstanceTypeWatchdogResourceTest.WATCHDOG_ID.toString ( ) , model.getId ( ) ) ; verifyLinks ( model ) ; }

Target:
private void verifyModel ( org.ovirt.engine.api.model.Watchdog model ) { org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.api.restapi.resource.BackendInstanceTypeWatchdogResourceTest.WATCHDOG_ID.toString ( ) , model.getId ( ) ) ; verifyLinks ( model ) ; }
Source:
public void testAddGroupFailure ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( ( ( "ADGROUP@" + ( DOMAIN ) ) + ": name=*" ) , SearchType.AdGroup , getAdGroup ( 0 ) ) ; control.replay ( ) ; org.ovirt.engine.api.model.Group model = new org.ovirt.engine.api.model.Group ( ) ; model.setName ( BAD_NAMES [ 0 ] ) ; try { javax.ws.rs.core.Response response = collection.add ( model ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { assertNotNull ( wae.getResponse ( ) ) ; assertEquals ( 404 , wae.getResponse ( ) . getStatus ( ) ) ; } }

Target:
private void setUpGetEntityExpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( GUIDS [ 0 ] , false ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > desktopLock ( java.lang.String vmId ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterHooksList ( ) ;
Source:
public int getProxyHttpPort ( ) { return getInteger ( "ENGINE_PROXY_HTTP_PORT" ) ; }

Target:
public java.lang.String getProperty ( java.lang.String key ) { return getProperty ( key , false ) ; }
Source:
public void getAllByStorageDomain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Snapshot > snapshots = dao.getAllByStorageDomain ( FixturesTool.STORAGE_DOAMIN_SCALE_SD5 ) ; org.junit.Assert.assertFalse ( "Snapshots list shouldn't be empty" , snapshots.isEmpty ( ) ) ; }

Target:
public void getAllByStorageDomain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Snapshot > snapshots = dao.getAllByStorageDomain ( FixturesTool.STORAGE_DOMAIN_SCALE_SD5 ) ; org.junit.Assert.assertFalse ( "Snapshots list shouldn't be empty" , snapshots.isEmpty ( ) ) ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getTagDAO ( ) . save ( org.ovirt.engine.core.bll.AddTagCommand.getTag ( ) ) ; org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . AddTag ( org.ovirt.engine.core.bll.AddTagCommand.getTag ( ) ) ; org.ovirt.engine.core.bll.AddTagCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getTagDao ( ) . save ( org.ovirt.engine.core.bll.AddTagCommand.getTag ( ) ) ; org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . AddTag ( org.ovirt.engine.core.bll.AddTagCommand.getTag ( ) ) ; org.ovirt.engine.core.bll.AddTagCommand.setSucceeded ( true ) ; }
Source:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( ( ( org.ovirt.engine.core.bll.PlugUnplugVmNicCommand.getParameters ( ) . getAction ( ) ) == ( org.ovirt.engine.core.common.action.PlugAction.PLUG ) ? org.ovirt.engine.core.dal.VdcBllMessages.VAR__ACTION__ACTIVATE : org.ovirt.engine.core.dal.VdcBllMessages.VAR__ACTION__DEACTIVATE ) ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__INTERFACE ) ; }

Target:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( ( ( org.ovirt.engine.core.bll.ActivateDeactivateVmNicCommand.getParameters ( ) . getAction ( ) ) == ( org.ovirt.engine.core.common.action.PlugAction.PLUG ) ? org.ovirt.engine.core.dal.VdcBllMessages.VAR__ACTION__ACTIVATE : org.ovirt.engine.core.dal.VdcBllMessages.VAR__ACTION__DEACTIVATE ) ) ; addCanDoActionMessage ( VdcBllMessages.VAR__TYPE__INTERFACE ) ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.RemoveDiskSnapshotsCommand.setSucceeded ( true ) ; }

Target:
protected void endWithFailure ( ) { unlockImages ( ) ; org.ovirt.engine.core.bll.RemoveDiskSnapshotsCommand.setSucceeded ( true ) ; }
Source:
public void getVmTemplateWithId ( ) { b.setVmTemplate ( null ) ; b.setVmTemplateId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; final org.ovirt.engine.core.common.businessentities.VmTemplate t = b.getVmTemplate ( ) ; org.junit.Assert.assertNotNull ( t ) ; }

Target:
public void getVmTemplateWithId ( ) { b.setVmTemplate ( null ) ; b.setVmTemplateId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; final org.ovirt.engine.core.common.businessentities.VmTemplate t = b.getVmTemplate ( ) ; org.junit.jupiter.api.Assertions.assertNotNull ( t ) ; }
Source:
private double getRequestDiskSpace ( ) { if ( ( org.ovirt.engine.core.bll.AddDiskCommand.getParameters ( ) . getDiskInfo ( ) . getDiskStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.Disk.DiskStorageType.IMAGE ) ) { return getDiskImageInfo ( ) . getSizeInGigabytes ( ) ; } return 0 ; }

Target:
private double getRequestDiskSpace ( ) { if ( ( org.ovirt.engine.core.bll.AddDiskCommand.getParameters ( ) . getDiskInfo ( ) . getDiskStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.DiskStorageType.IMAGE ) ) { return getDiskImageInfo ( ) . getSizeInGigabytes ( ) ; } return 0 ; }
Source:
protected org.ovirt.engine.core.vdsbroker.vdsbroker.StatusForXmlRpc getReturnStatus ( ) { return result.getStatus ( ) ; }

Target:
protected org.ovirt.engine.core.vdsbroker.vdsbroker.Status getReturnStatus ( ) { return result.getStatus ( ) ; }