auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void buildImageReference ( ) { org.ovirt.engine.core.utils.ovf.xml.XmlNodeList list = selectNodes ( _document , "//*/File" , _xmlNS ) ; for ( org.ovirt.engine.core.utils.ovf.xml.XmlNode node : list ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage disk = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; if ( ( node.attributes.get ( "ovf:disk_storage_type" ) ) != null ) { java.lang.String diskStorageType = node.attributes.get ( "ovf:disk_storage_type" ) . getValue ( ) ; if ( ( diskStorageType != null ) && ( diskStorageType.equals ( DiskStorageType.CINDER.name ( ) ) ) ) { disk = new org.ovirt.engine.core.common.businessentities.storage.CinderDisk ( ) ; } } disk.setImageId ( new org.ovirt.engine.core.compat.Guid ( node.attributes.get ( "ovf:id" ) . getValue ( ) ) ) ; disk.setId ( org.ovirt.engine.core.utils.ovf.OvfParser.GetImageGrupIdFromImageFile ( node.attributes.get ( "ovf:href" ) . getValue ( ) ) ) ; disk.setActive ( true ) ; disk.setImageStatus ( ImageStatus.OK ) ; disk.setDescription ( node.attributes.get ( "ovf:description" ) . getValue ( ) ) ; _images.add ( disk ) ; } }

Target:
private void buildImageReference ( ) { org.ovirt.engine.core.utils.ovf.xml.XmlNodeList list = selectNodes ( _document , "//*/File" , _xmlNS ) ; for ( org.ovirt.engine.core.utils.ovf.xml.XmlNode node : list ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage disk = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; if ( ( node.attributes.get ( "ovf:disk_storage_type" ) ) != null ) { java.lang.String diskStorageType = node.attributes.get ( "ovf:disk_storage_type" ) . getValue ( ) ; if ( ( diskStorageType != null ) && ( diskStorageType.equals ( DiskStorageType.CINDER.name ( ) ) ) ) { disk = new org.ovirt.engine.core.common.businessentities.storage.CinderDisk ( ) ; } } disk.setImageId ( new org.ovirt.engine.core.compat.Guid ( node.attributes.get ( "ovf:id" ) . getValue ( ) ) ) ; disk.setId ( org.ovirt.engine.core.utils.ovf.OvfParser.getImageGroupIdFromImageFile ( node.attributes.get ( "ovf:href" ) . getValue ( ) ) ) ; disk.setActive ( true ) ; disk.setImageStatus ( ImageStatus.OK ) ; disk.setDescription ( node.attributes.get ( "ovf:description" ) . getValue ( ) ) ; _images.add ( disk ) ; } }
Source:
public void add ( ) { runAddAndVerify ( createNewInterface ( ) , false , org.mockito.Mockito.times ( 0 ) , org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.OS_ID , org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.VERSION_3_2 ) ; }

Target:
public void add ( ) { runAddAndVerify ( org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.createNewInterface ( ) , false , org.mockito.Mockito.times ( 0 ) , org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.OS_ID , org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.VERSION_3_2 ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult diskProfileIsSet ( ) { return ( diskProfile ) == null ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_PROFILE_NOT_EXISTS ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult diskProfileExists ( ) { return ( getDiskProfileFromDb ( ) ) == null ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_PROFILE_NOT_EXISTS ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
private void initDataForClearTest ( java.lang.String key ) { container.SetData ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID , key , org.mockito.Mockito.mock ( org.ovirt.engine.core.common.businessentities.DbUser.class ) ) ; }

Target:
private void initDataForClearTest ( java.lang.String key ) { container.setData ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID , key , org.mockito.Mockito.mock ( org.ovirt.engine.core.common.businessentities.DbUser.class ) ) ; }
Source:
private void setSdFullDiscardFunctionality ( ) { setSdDiscardFunctionality ( true , true ) ; }

Target:
private void setSdFullDiscardSupport ( ) { setSdDiscardSupport ( true , true ) ; }
Source:
public void testGetAllAttachableDisksByPoolWithNoPermissions ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.storage.Disk > result = dao.getAllAttachableDisksByPoolId ( null , null , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllAttachableDisksByPoolWithNoPermissions ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.storage.Disk > result = dao.getAllAttachableDisksByPoolId ( null , null , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.jupiter.api.Assertions.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public void testRemoveNotFound ( ) { setUpEntityQueryExpectations ( 1 , 0 , true ) ; try { resource.remove ( ) ; org.junit.jupiter.api.Assertions.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testRemoveNotFound ( ) { setUpEntityQueryExpectations ( 1 , 0 , true ) ; verifyNotFoundException ( org.junit.jupiter.api.Assertions.assertThrows ( javax.ws.rs.WebApplicationException.class , ( ) -> org.ovirt.engine.api.restapi.resource.resource.remove ( ) ) ) ; }
Source:
public java.lang.String getHostFingerprint ( ) throws java.io.IOException { java.lang.String fingerprint = org.ovirt.engine.core.uutils.ssh.OpenSSHUtils.getKeyFingerprintString ( getHostKey ( ) ) ; if ( fingerprint == null ) { throw new java.io.IOException ( "Unable to parse host key" ) ; } return fingerprint ; }

Target:
public java.lang.String getHostFingerprint ( ) throws java.io.IOException { java.lang.String fingerprint = org.ovirt.engine.core.uutils.ssh.OpenSSHUtils.getKeyFingerprint ( getHostKey ( ) , "MD5" ) ; if ( fingerprint == null ) { throw new java.io.IOException ( "Unable to parse host key" ) ; } return fingerprint ; }
Source:
java.util.List < org.ovirt.engine.core.common.businessentities.Permission > getAllForAdElementAndGroups ( org.ovirt.engine.core.compat.Guid id , java.util.Collection < org.ovirt.engine.core.compat.Guid > groupIds , boolean isFiltered ) ;

Target:
java.util.List < org.ovirt.engine.core.common.businessentities.Permission > getAllForAdElementAndGroups ( org.ovirt.engine.core.compat.Guid id , org.ovirt.engine.core.compat.Guid currentUserId , java.util.Collection < org.ovirt.engine.core.compat.Guid > groupIds , boolean isFiltered ) ;
Source:
public java.lang.Integer getDisplaySecurePort ( ) { return this . displaySecurePort ; }

Target:
public void setGuestAgentStatus ( org.ovirt.engine.core.common.businessentities.GuestAgentStatus guestAgentStatus ) { this . guestAgentStatus = guestAgentStatus ; }
Source:
protected org.ovirt.engine.core.vdsbroker.vdsbroker.StatusForXmlRpc getReturnStatus ( ) { return returnValue.getXmlRpcStatus ( ) ; }

Target:
protected org.ovirt.engine.core.vdsbroker.vdsbroker.Status getReturnStatus ( ) { return returnValue.getStatus ( ) ; }
Source:
public void OnSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmModelBehaviorBase behavior = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.VmModelBehaviorBase ) ( target ) ) ; behavior.maxCpusPerSocket = ( ( java.lang.Integer ) ( returnValue ) ) ; behavior.UpdateTotalCpus ( ) ; }

Target:
public void OnSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmModelBehaviorBase behavior = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.VmModelBehaviorBase ) ( target ) ) ; behavior.maxCpusPerSocket = ( ( java.lang.Integer ) ( returnValue ) ) ; behavior.totalCpuCoresChanged ( ) ; }
Source:
public void removeLabel ( org.ovirt.engine.core.compat.Guid vfsConfigId , java.lang.String label ) { getCallsHandler ( ) . executeModification ( "DeletevfsConfigLabel" , createLabelParametersMapper ( vfsConfigId , label ) ) ; }

Target:
public void removeLabel ( org.ovirt.engine.core.compat.Guid vfsConfigId , java.lang.String label ) { getCallsHandler ( ) . executeModification ( "DeleteVfsConfigLabel" , createLabelParametersMapper ( vfsConfigId , label ) ) ; }
Source:
public void storageDomainWithId ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.TestAuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.TestAuditLogableBase ( ) ; b.setStorageDomainId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; b.setStoragePoolId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; final org.ovirt.engine.core.common.businessentities.StorageDomain s = b.getStorageDomain ( ) ; org.junit.Assert.assertEquals ( b.STORAGE_DOMAIN , s ) ; }

Target:
public void storageDomainWithId ( ) { b.setStorageDomainId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; b.setStoragePoolId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; final org.ovirt.engine.core.common.businessentities.StorageDomain s = b.getStorageDomain ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.STORAGE_DOMAIN , s ) ; }
Source:
public void onRefreshActiveModel ( org.ovirt.engine.ui.frontend.communication.RefreshActiveModelEvent event ) { if ( getTimer ( ) . isActive ( ) ) { syncSearch ( ) ; if ( event.isDoFastForward ( ) ) { getTimer ( ) . fastForward ( ) ; } } }

Target:
public void execute ( ) { startRefresh ( ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.OriginType getRawValue ( org.ovirt.engine.core.common.businessentities.VmTemplate object ) { return object.getorigin ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.VmTemplate object ) { return ( object.getorigin ( ) ) == null ? constants.notSpecifiedLabel ( ) : object.getorigin ( ) . toString ( ) ; }
Source:
public org.ovirt.engine.core.vdsbroker.gluster.StorageDeviceListReturnForXmlRpc getStorageDeviceList ( ) { org.ovirt.vdsm.jsonrpc.client.JsonRpcRequest request = new org.ovirt.vdsm.jsonrpc.client.RequestBuilder ( "GlusterHost.storageDevicesList" ) . build ( ) ; java.util.Map < java.lang.String , java.lang.Object > response = new org.ovirt.engine.core.vdsbroker.jsonrpc.FutureMap ( this . client , request ) . withIgnoreResponseKey ( ) ; return new org.ovirt.engine.core.vdsbroker.gluster.StorageDeviceListReturnForXmlRpc ( response ) ; }

Target:
public org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatusForXmlRpc glusterVolumeGeoRepSessionList ( ) { org.ovirt.vdsm.jsonrpc.client.JsonRpcRequest request = new org.ovirt.vdsm.jsonrpc.client.RequestBuilder ( "GlusterVolume.geoRepSessionList" ) . build ( ) ; java.util.Map < java.lang.String , java.lang.Object > response = new org.ovirt.engine.core.vdsbroker.jsonrpc.FutureMap ( this . client , request ) . withIgnoreResponseKey ( ) ; return new org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatusForXmlRpc ( response ) ; }
Source:
protected void syncSearch ( ) { org.ovirt.engine.core.common.queries.SearchParameters searchParameters = new org.ovirt.engine.core.common.queries.SearchParameters ( applySortOptions ( getSearchString ( ) ) , org.ovirt.engine.core.common.interfaces.SearchType.Session , isCaseSensitiveSearch ( ) ) ; searchParameters.setMaxCount ( getSearchPageSize ( ) ) ; super . syncSearch ( VdcQueryType.Search , searchParameters ) ; }

Target:
protected void syncSearch ( ) { org.ovirt.engine.core.common.queries.SearchParameters searchParameters = new org.ovirt.engine.core.common.queries.SearchParameters ( applySortOptions ( getSearchString ( ) ) , org.ovirt.engine.core.common.interfaces.SearchType.Session , isCaseSensitiveSearch ( ) ) ; searchParameters.setMaxCount ( getSearchPageSize ( ) ) ; super . syncSearch ( QueryType.Search , searchParameters ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( super . hashCode ( ) , plugged , vmNames , templateVersionNames , vmEntityType , numberOfVms , logicalName , imageTransferPhase , imageTransferBytesSent , imageTransferBytesTotal ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( super . hashCode ( ) , plugged , vmNames , templateVersionNames , vmEntityType , numberOfVms , logicalName , imageTransferPhase , imageTransferBytesSent , imageTransferBytesTotal , transferType ) ; }
Source:
public static void RunMultipleQueries ( final java.util.List < org.ovirt.engine.core.common.queries.VdcQueryType > queryTypeList , final java.util.List < org.ovirt.engine.core.common.queries.VdcQueryParametersBase > queryParamsList , final org.ovirt.engine.ui.uicompat.IFrontendMultipleQueryAsyncCallback callback ) { org.ovirt.engine.ui.frontend.Frontend.RunMultipleQueries ( queryTypeList , queryParamsList , callback , null ) ; }

Target:
public void runMultipleQueries ( final java.util.List < org.ovirt.engine.core.common.queries.VdcQueryType > queryTypeList , final java.util.List < org.ovirt.engine.core.common.queries.VdcQueryParametersBase > queryParamsList , final org.ovirt.engine.ui.uicompat.IFrontendMultipleQueryAsyncCallback callback ) { runMultipleQueries ( queryTypeList , queryParamsList , callback , null ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.Provider < ? > getDeletedProvider ( ) { if ( ( deletedProvider ) == null ) { deletedProvider = org.ovirt.engine.core.bll.provider.RemoveProviderCommand.getProviderDao ( ) . get ( org.ovirt.engine.core.bll.provider.RemoveProviderCommand.getParameters ( ) . getProvider ( ) . getId ( ) ) ; } return deletedProvider ; }

Target:
private org.ovirt.engine.core.common.businessentities.Provider < ? > getDeletedProvider ( ) { if ( ( deletedProvider ) == null ) { deletedProvider = providerDao.get ( org.ovirt.engine.core.bll.provider.RemoveProviderCommand.getParameters ( ) . getProvider ( ) . getId ( ) ) ; } return deletedProvider ; }
Source:
public void validateEnums ( org.ovirt.engine.api.model.WatchDog entity ) { if ( entity != null ) { org.ovirt.engine.api.common.util.EnumValidator.validateEnum ( org.ovirt.engine.api.restapi.types.WatchdogAction.class , entity.getAction ( ) , true ) ; org.ovirt.engine.api.common.util.EnumValidator.validateEnum ( org.ovirt.engine.api.restapi.types.WatchdogModel.class , entity.getModel ( ) , true ) ; } }

Target:
public void validateEnums ( org.ovirt.engine.api.model.WatchDog entity ) { if ( entity != null ) { org.ovirt.engine.api.common.util.EnumValidator.validateEnum ( org.ovirt.engine.api.model.WatchdogAction.class , entity.getAction ( ) , true ) ; org.ovirt.engine.api.common.util.EnumValidator.validateEnum ( org.ovirt.engine.api.model.WatchdogModel.class , entity.getModel ( ) , true ) ; } }
Source:
public void onPowerringUp ( ) { decreasePendingVm ( org.ovirt.engine.core.bll.RunVmCommand.getVmStaticDAO ( ) . get ( org.ovirt.engine.core.bll.RunVmCommand.getVmId ( ) ) ) ; }

Target:
protected void runningFailed ( ) { cleanupPassthroughVnics ( ) ; if ( memoryFromSnapshotUsed ) { removeMemoryFromActiveSnapshot ( ) ; } super . runningFailed ( ) ; }
Source:
public void getUsbPolicyIsSetDisabled ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; 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 ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotNullUsb ( ) { org.ovirt.engine.api.model.Usb usb = null ; org.ovirt.engine.core.common.businessentities.UsbPolicy currentPolicy = org.ovirt.engine.core.common.businessentities.UsbPolicy.DISABLED ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , currentPolicy ) , currentPolicy ) ; }
Source:
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 ( ) ) ; }

Target:
public void getAllByStorageDomain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Snapshot > snapshots = dao.getAllByStorageDomain ( FixturesTool.STORAGE_DOMAIN_SCALE_SD5 ) ; org.junit.jupiter.api.Assertions.assertFalse ( snapshots.isEmpty ( ) , "Snapshots list shouldn't be empty" ) ; }
Source:
public void validateGenerateVmNameWithoutMask2 ( ) { junit.framework.Assert.assertEquals ( "mypool-17" , org.ovirt.engine.core.utils.NameForVmInPoolGenerator.generateVmName ( "mypool" , 17 ) ) ; }

Target:
public void validateGenerateVmNameWithoutMask2 ( ) { org.ovirt.engine.core.utils.NameForVmInPoolGenerator generator = createNameForVmInPoolGenerator ( "mypool" ) ; for ( int i = 1 ; i < 17 ; ++ i ) { generator.generateVmName ( ) ; } org.junit.Assert.assertEquals ( "mypool-17" , generator.generateVmName ( ) ) ; }
Source:
public java.util.Date getGuestLastLogoutTime ( ) { return this . guestLastLogoutTime ; }

Target:
public void setGuestOsCodename ( java.lang.String guestOsCodename ) { this . guestOsCodename = guestOsCodename ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeProfileInfo ( java.lang.String volumeName ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepSessionResume ( java.lang.String volumeName , java.lang.String slaveHostName , java.lang.String slaveVolumeName , boolean force ) ;
Source:
public java.lang.String getValue ( java.lang.Object object ) { return ( ( org.ovirt.engine.core.common.businessentities.VmTemplate ) ( object ) ) . getname ( ) ; }

Target:
public java.lang.String getValue ( java.lang.Object object ) { return ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportTemplateData ) ( object ) ) . getTemplate ( ) . getName ( ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { super . eventRaised ( ev , sender , args ) ; if ( ev.equals ( ChangeCDModel.ExecutedEventDefinition ) ) { changeCD ( sender , args ) ; } }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { super . eventRaised ( ev , sender , args ) ; if ( ev.matchesDefinition ( ChangeCDModel.ExecutedEventDefinition ) ) { changeCD ( sender , args ) ; } }
Source:
public boolean isManagementNetwork ( org.ovirt.engine.core.compat.Guid networkId , org.ovirt.engine.core.compat.Guid clusterId ) { final org.ovirt.engine.core.common.businessentities.network.NetworkCluster networkCluster = getNetworkClusterDao ( ) . get ( new org.ovirt.engine.core.common.businessentities.network.NetworkClusterId ( clusterId , networkId ) ) ; return ( networkCluster != null ) && ( networkCluster.isManagement ( ) ) ; }

Target:
public boolean isManagementNetwork ( org.ovirt.engine.core.compat.Guid networkId , org.ovirt.engine.core.compat.Guid clusterId ) { final org.ovirt.engine.core.common.businessentities.network.NetworkCluster networkCluster = networkClusterDao.get ( new org.ovirt.engine.core.common.businessentities.network.NetworkClusterId ( clusterId , networkId ) ) ; return ( networkCluster != null ) && ( networkCluster.isManagement ( ) ) ; }
Source:
private java.lang.String getClusterId ( ) { return parent.getParent ( ) . getParent ( ) . get ( ) . getId ( ) ; }

Target:
protected org.ovirt.engine.api.model.GlusterBrick addParents ( org.ovirt.engine.api.model.GlusterBrick glusterBrick ) { org.ovirt.engine.api.model.GlusterVolume volume = new org.ovirt.engine.api.model.GlusterVolume ( ) ; parent.addParents ( volume ) ; glusterBrick.setGlusterVolume ( volume ) ; return glusterBrick ; }
Source:
public void testNetworkCanBeAttachedNetworkAttachmentCannotBeAddedOnVlanInterfaces ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface vdsNetworkInterface = createVdsNetworkInterfaceWithName ( ) ; vdsNetworkInterface.setVlanId ( 1 ) ; org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.validator.HostInterfaceValidator ( vdsNetworkInterface ) . networkCanBeAttached ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.CANNOT_ADD_NETWORK_ATTACHMENT_ON_SLAVE_OR_VLAN ) ) ; }

Target:
public void testNetworkCanBeAttached ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface vdsNetworkInterface = createVdsNetworkInterfaceWithName ( ) ; java.lang.String networkName = "networkName" ; org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.validator.HostInterfaceValidator ( vdsNetworkInterface ) . networkCanBeAttached ( networkName ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
private int numberOfTasksToPoll ( ) { int retValue = 0 ; for ( org.ovirt.engine.core.bll.tasks.SPMAsyncTask task : _tasks.values ( ) ) { if ( task.getShouldPoll ( ) ) { retValue ++ ; } } return retValue ; }

Target:
private int numberOfTasksToPoll ( ) { int retValue = 0 ; for ( org.ovirt.engine.core.bll.tasks.interfaces.SPMTask task : _tasks.values ( ) ) { if ( task.getShouldPoll ( ) ) { retValue ++ ; } } return retValue ; }
Source:
public void missingMessagingConfigurationForMessagingBrokerValidation ( ) { mockMessagingConfiguration ( ) ; org.junit.Assert.assertThat ( validator.messagingBrokerProvided ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_MISSING_MESSAGING_BROKER_PROPERTIES ) ) ; }

Target:
public void missingMessagingConfigurationForMessagingBrokerValidation ( ) { mockMessagingConfiguration ( ) ; org.hamcrest.MatcherAssert.assertThat ( validator.messagingBrokerProvided ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_MISSING_MESSAGING_BROKER_PROPERTIES ) ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { if ( object.getOptimizationCustom_IsSelected ( ) . getEntity ( ) ) { optimizationCustomFormatter ( object ) ; optimizationCustomEditor.setVisible ( true ) ; } }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { optimizationForDesktopFormatter ( object ) ; }
Source:
public void testEvalPositive ( ) { org.mockito.Mockito.doReturn ( false ) . when ( mockExternalNetworkPredicate ) . test ( mockNetwork ) ; org.junit.Assert.assertTrue ( underTest.test ( mockNetwork ) ) ; }

Target:
public void testEvalPositive ( ) { org.mockito.Mockito.doReturn ( false ) . when ( mockExternalNetworkPredicate ) . test ( mockNetwork ) ; org.junit.jupiter.api.Assertions.assertTrue ( underTest.test ( mockNetwork ) ) ; }
Source:
public void testDefaultRouteNetworkCannotBeExternalWhenNotExternalNetwork ( ) { networkCluster.setDefaultRoute ( true ) ; setNetworkExternal ( network , false ) ; org.junit.Assert.assertThat ( validator.defaultRouteNetworkCannotBeExternal ( network ) , org.ovirt.engine.core.bll.network.cluster.NetworkClusterValidatorTestBase.isValid ( ) ) ; }

Target:
public void testDefaultRouteNetworkCannotBeExternalWhenNotExternalNetwork ( ) { networkCluster.setDefaultRoute ( true ) ; setNetworkExternal ( network , false ) ; org.hamcrest.MatcherAssert.assertThat ( validator.defaultRouteNetworkCannotBeExternal ( network ) , org.ovirt.engine.core.bll.network.cluster.NetworkClusterValidatorTestBase.isValid ( ) ) ; }
Source:
protected java.util.List < java.lang.Class < ? > > getValidationGroups ( ) { org.ovirt.engine.core.bll.storage.AddNetworkCommand.addValidationGroup ( org.ovirt.engine.core.common.validation.group.CreateEntity.class ) ; return super . getValidationGroups ( ) ; }

Target:
protected java.util.List < java.lang.Class < ? > > getValidationGroups ( ) { org.ovirt.engine.core.bll.network.dc.AddNetworkCommand.addValidationGroup ( org.ovirt.engine.core.common.validation.group.CreateEntity.class ) ; return super . getValidationGroups ( ) ; }
Source:
void customizeAgentTab ( boolean tabAvailable , java.lang.String ifMappingsLabel ) ;

Target:
void setAgentTabVisibility ( boolean visible ) ;
Source:
protected org.ovirt.engine.ui.common.widget.AlertManager getAlertManager ( ) { return this . alertManager ; }

Target:
protected void performLogin ( T loginModel ) { org.ovirt.engine.core.common.businessentities.aaa.DbUser loggedUser = loginModel.getLoggedUser ( ) ; beforeLogin ( ) ; frontend.initLoggedInUser ( loggedUser ) ; user.login ( loggedUser ) ; afterLogin ( ) ; performPlaceTransition ( ) ; }
Source:
public void oldHostDoesNotExist ( ) { validator = new org.ovirt.engine.core.bll.validator.UpdateHostValidator ( dbFacade , oldHost , null , false ) ; org.junit.Assert.assertThat ( validator.hostExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.VDS_INVALID_SERVER_ID ) ) ; }

Target:
public void oldHostDoesNotExist ( ) { validator = new org.ovirt.engine.core.bll.validator.UpdateHostValidator ( dbFacade , oldHost , null , false , hostedEngineHelper ) ; org.junit.Assert.assertThat ( validator.hostExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.VDS_INVALID_SERVER_ID ) ) ; }
Source:
public static < T > org.ovirt.engine.core.utils.MockConfigRule.MockConfigDescriptor < T > mockConfig ( org.ovirt.engine.core.common.config.ConfigValues value , java.lang.String version , T returnValue ) { return new org.ovirt.engine.core.utils.MockConfigRule.MockConfigDescriptor ( value , version , returnValue ) ; }

Target:
public < T > void mockConfigValue ( org.ovirt.engine.core.utils.MockConfigDescriptor < T > mcd ) { mockConfigValue ( mcd.getValue ( ) , mcd.getVersion ( ) , mcd.getReturnValue ( ) ) ; }
Source:
public void testIsNetworkInSyncWhenIpv4BootProtocolNotStaticAddressDifferent ( ) throws java.lang.Exception { initIpv4ConfigurationBootProtocolAddress ( Ipv4BootProtocol.NONE , false ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testIsNetworkInSyncWhenIpv4BootProtocolEqual ( ) { initIpv4ConfigurationBootProtocol ( true ) ; org.hamcrest.MatcherAssert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
public void onFailure ( final java.lang.Throwable caught ) { loginOperation.getCallback ( ) . onFailure ( loginOperation , caught ) ; }

Target:
public void onFailure ( final java.lang.Throwable caught ) { xsrfRequestBuilder.setXsrfToken ( null ) ; loginOperation.getCallback ( ) . onFailure ( loginOperation , caught ) ; }
Source:
public void validNetworkNameWhenUnlinkingNotSupported ( ) throws java.lang.Exception { networkNameTest ( ValidationResult.VALID , false , "net" ) ; }

Target:
public void nullNetworkNameWhenUnlinkingNotSupported ( ) throws java.lang.Exception { networkNameTest ( org.junit.matchers.JUnitMatchers.both ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NULL_NETWORK_IS_NOT_SUPPORTED ) ) . and ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.replacements ( org.junit.matchers.JUnitMatchers.hasItem ( org.ovirt.engine.core.bll.validator.VmNicValidatorTest.CLUSTER_VERSION_REPLACEMENT ) ) ) , false , null ) ; }
Source:
public boolean match ( org.ovirt.engine.ui.uicommonweb.models.storage.LunModel source ) { return org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( source.getLunId ( ) , lun.getLunId ( ) ) ; }

Target:
public boolean match ( org.ovirt.engine.ui.uicommonweb.models.storage.LunModel source ) { return java.util.Objects.equals ( source.getLunId ( ) , lun.getLunId ( ) ) ; }
Source:
public void testUpdateWithNonGuidId ( ) { try { javax.ws.rs.core.UriInfo uriInfo = mockUri ( "vms" , "00000001-0001-0001-0001-000000000011" , "disks" , "116" ) ; javax.ws.rs.core.Request request = mockRequest ( "PUT" ) ; control.replay ( ) ; org.ovirt.engine.api.model.Fault fault = usageFinder.getUsageMessage ( uriInfo , request ) ; assertEquals ( "For correct usage, see: http://localhost:8080/ovirt-engine/api/model#services/vm-disk/methods/update" , fault.getDetail ( ) ) ; } catch ( java.net.URISyntaxException | java.lang.ClassNotFoundException | java.io.IOException e ) { fail ( ) ; } }

Target:
public void testUpdateWithNonGuidId ( ) { try { javax.ws.rs.core.UriInfo uriInfo = mockUri ( "hosts" , "00000001-0001-0001-0001-000000000011" , "nics" , "116" ) ; javax.ws.rs.core.Request request = mockRequest ( "PUT" ) ; control.replay ( ) ; org.ovirt.engine.api.model.Fault fault = usageFinder.getUsageMessage ( uriInfo , request ) ; assertEquals ( "For correct usage, see: http://localhost:8080/ovirt-engine/api/model#services/host-nic/methods/update" , fault.getDetail ( ) ) ; } catch ( java.net.URISyntaxException | java.lang.ClassNotFoundException | java.io.IOException e ) { fail ( ) ; } }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel model ) { return ( ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel ) ( model ) ) . getDisplayedName ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel clusterNetworkModel ) { return clusterNetworkModel.getDisplayedName ( ) ; }
Source:
public void onFailure ( final org.ovirt.engine.ui.frontend.communication.VdcOperation < org.ovirt.engine.core.common.action.VdcActionType , org.ovirt.engine.core.common.action.LoginUserParameters > operation , final java.lang.Throwable caught ) { org.junit.Assert.fail ( "Should not get here" ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { testManager = new org.ovirt.engine.ui.frontend.communication.VdcOperationManager ( mockEventBus , mockOperationProcessor ) ; }
Source:
public int getlog_typeValue ( ) { return getlog_type ( ) . getValue ( ) ; }

Target:
public int getLogTypeValue ( ) { return getLogType ( ) . getValue ( ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult parentEntityNotChanged ( ) { if ( org.apache.commons.lang.ObjectUtils.equals ( getProfile ( ) . getStorageDomainId ( ) , getProfileFromDb ( ) . getStorageDomainId ( ) ) ) { return org.ovirt.engine.core.bll.ValidationResult.VALID ; } return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_CANNOT_CHANGE_PROFILE ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult parentEntityNotChanged ( ) { if ( org.apache.commons.lang.ObjectUtils.equals ( getProfile ( ) . getStorageDomainId ( ) , getProfileFromDb ( ) . getStorageDomainId ( ) ) ) { return org.ovirt.engine.core.bll.ValidationResult.VALID ; } return new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_CANNOT_CHANGE_PROFILE ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.DiskImage getImageByDiskId ( org.ovirt.engine.core.compat.Guid diskId ) { for ( org.ovirt.engine.core.common.businessentities.DiskImage disk : getEntity ( ) . getDiskImages ( ) ) { if ( disk.getId ( ) . equals ( diskId ) ) { return disk ; } } return null ; }

Target:
public org.ovirt.engine.core.common.businessentities.storage.DiskImage getImageByDiskId ( org.ovirt.engine.core.compat.Guid diskId ) { for ( org.ovirt.engine.core.common.businessentities.storage.DiskImage disk : getEntity ( ) . getDiskImages ( ) ) { if ( disk.getId ( ) . equals ( diskId ) ) { return disk ; } } return null ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { customPropertiesSheetEditor.edit ( object.getCustomPropertySheet ( ) ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { optimizationForDesktopFormatter ( object ) ; }
Source:
public org.ovirt.engine.ui.common.widget.form.FormItem withEmptyValue ( java.lang.String emptyValue ) { emptyValueLabel.setText ( emptyValue ) ; return this ; }

Target:
public org.ovirt.engine.ui.common.widget.form.FormItem withEmptyValue ( java.lang.String emptyValue ) { emptyValueLabel.setValue ( emptyValue ) ; return this ; }
Source:
public void versionDecreaseWithHost ( ) { createCommandWithOlderVersion ( true , false ) ; setupCpu ( ) ; VdsExist ( ) ; canDoActionFailedWithReason ( EngineMessage.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION ) ; }

Target:
public void versionDecreaseWithHost ( ) { createCommandWithOlderVersion ( true , false ) ; setupCpu ( ) ; vdsExist ( ) ; canDoActionFailedWithReason ( EngineMessage.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION ) ; }
Source:
public void testIsNetworkInSyncWhenIpv4GatewayDifferent ( ) { initIpv4ConfigurationBootProtocolGateway ( Ipv4BootProtocol.STATIC_IP , false ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( false ) ) ; }

Target:
public void testIsNetworkInSyncWhenIpv4GatewayDifferent ( ) { initIpv4ConfigurationBootProtocolGateway ( Ipv4BootProtocol.STATIC_IP , false ) ; org.hamcrest.MatcherAssert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( false ) ) ; }
Source:
public boolean isRequired ( ) { return getEntity ( ) . isRequired ( ) ; }

Target:
public boolean isRequired ( ) { return getEntity ( ) . getCluster ( ) . isRequired ( ) ; }
Source:
public void testDefaultPoolFlagIsNotSetInvalidUsage ( ) throws java.lang.Exception { macPool.setDefaultPool ( true ) ; org.junit.Assert.assertThat ( macPoolValidator.defaultPoolFlagIsNotSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_SETTING_DEFAULT_MAC_POOL_IS_NOT_SUPPORTED ) ) ; }

Target:
public void testDefaultPoolFlagIsNotSetInvalidUsage ( ) throws java.lang.Exception { macPool.setDefaultPool ( true ) ; org.junit.Assert.assertThat ( macPoolValidator.defaultPoolFlagIsNotSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_SETTING_DEFAULT_MAC_POOL_IS_NOT_SUPPORTED ) ) ; }
Source:
private java.lang.String getNetworkName ( ) { org.ovirt.engine.core.common.businessentities.VmNetworkInterface vmNetworkInterface = org.ovirt.engine.core.bll.PlugUnplugVmNicCommand.getVmNetworkInterfaceDAO ( ) . get ( org.ovirt.engine.core.bll.PlugUnplugVmNicCommand.getParameters ( ) . getNicId ( ) ) ; return vmNetworkInterface == null ? null : vmNetworkInterface.getNetworkName ( ) ; }

Target:
private java.lang.String getNetworkName ( ) { org.ovirt.engine.core.common.businessentities.VmNetworkInterface vmNetworkInterface = org.ovirt.engine.core.bll.ActivateDeactivateVmNicCommand.getVmNetworkInterfaceDAO ( ) . get ( org.ovirt.engine.core.bll.ActivateDeactivateVmNicCommand.getParameters ( ) . getNicId ( ) ) ; return vmNetworkInterface == null ? null : vmNetworkInterface.getNetworkName ( ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.gin.ClientGinjector ginjector ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( ginjector.getApplicationConstants ( ) . dataCenterNetworkSubTabLabel ( ) , 1 , ginjector.getSubTabDataCenterNetworkModelProvider ( ) ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.network.Network , org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterListModel , org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterNetworkListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.dataCenterNetworkSubTabLabel ( ) , 1 , modelProvider ) ; }
Source:
protected org.ovirt.engine.core.common.scheduling.AffinityGroup getAffinityGroup ( ) { if ( ( affinityGroup ) == null ) { affinityGroup = getAffinityGroupDao ( ) . get ( getParameters ( ) . getAffinityGroupId ( ) ) ; } return affinityGroup ; }

Target:
protected org.ovirt.engine.core.common.scheduling.AffinityGroup getAffinityGroup ( ) { if ( ( affinityGroup ) == null ) { affinityGroup = affinityGroupDao.get ( getParameters ( ) . getAffinityGroupId ( ) ) ; } return affinityGroup ; }
Source:
public void getAllDataCenterNetworks ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid storagePoolId ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.ListAsyncConverter ( ) ; org.ovirt.engine.core.common.queries.IdQueryParameters params = new org.ovirt.engine.core.common.queries.IdQueryParameters ( storagePoolId ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetNetworksByDataCenterId , params , aQuery ) ; }

Target:
public void getAllDataCenterNetworks ( org.ovirt.engine.ui.frontend.AsyncQuery < java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > > aQuery , org.ovirt.engine.core.compat.Guid storagePoolId ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.ListConverter < > ( ) ; org.ovirt.engine.core.common.queries.IdQueryParameters params = new org.ovirt.engine.core.common.queries.IdQueryParameters ( storagePoolId ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetNetworksByDataCenterId , params , aQuery ) ; }
Source:
private org.ovirt.engine.api.model.Permission getPermissions ( ) { return getEntity ( org.ovirt.engine.api.model.Permission.class , VdcQueryType.GetPermissionById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) , guid.toString ( ) ) ; }

Target:
private org.ovirt.engine.api.model.Permission getPermissions ( ) { return getEntity ( org.ovirt.engine.api.model.Permission.class , QueryType.GetPermissionById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) , guid.toString ( ) ) ; }
Source:
public void InitTest ( ) { mockOsRepository ( ) ; }

Target:
public void InitTest ( ) { mockOsRepository ( ) ; org.ovirt.engine.core.common.utils.SimpleDependecyInjector.getInstance ( ) . bind ( org.ovirt.engine.core.dal.dbbroker.DbFacade.class , dbFacade ) ; }
Source:
public void onSuccess ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue returnValue ) { if ( returnValue != null ) { _defaultConfigurationVersion = returnValue.getReturnValue ( ) ; } else { _defaultConfigurationVersion = org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.GENERAL ; } loginModel.getLoggedInEvent ( ) . raise ( loginModel , EventArgs.EMPTY ) ; }

Target:
public void onSuccess ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue returnValue ) { oses64bit = java.util.Collections.unmodifiableSet ( new java.util.HashSet ( returnValue.< java.util.List < java.lang.Integer > > getReturnValue ( ) ) ) ; }
Source:
public void typeMatchesProfileTypePassthroughProfileIsNull ( ) { typeMatchesProfileCommon ( true , null ) ; org.junit.Assert.assertThat ( validator.typeMatchesProfile ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_VM_INTERFACE_TYPE_NOT_MATCH_PROFILE ) ) ; }

Target:
public void typeMatchesProfileTypePassthroughProfileIsNull ( ) { typeMatchesProfileCommon ( true , null ) ; org.junit.Assert.assertThat ( validator.typeMatchesProfile ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_VM_INTERFACE_TYPE_NOT_MATCH_PROFILE ) ) ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; }

Target:
public void getDataCenterById ( org.ovirt.engine.ui.frontend.AsyncQuery < org.ovirt.engine.core.common.businessentities.StoragePool > aQuery , org.ovirt.engine.core.compat.Guid dataCenterId ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.CastingConverter < > ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetStoragePoolById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( dataCenterId ) . withoutRefresh ( ) , aQuery ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.StorageDomain mockStorageDomain ( org.ovirt.engine.core.compat.Guid storageId , org.ovirt.engine.core.common.businessentities.storage.StorageType storageType ) { return mockStorageDomain ( storageId , 6 , 4 , storageType , new org.ovirt.engine.core.compat.Version ( ) ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.StorageDomain mockStorageDomain ( org.ovirt.engine.core.compat.Guid storageId ) { return mockStorageDomain ( storageId , 6 , 4 , StorageType.UNKNOWN ) ; }
Source:
public javax.ws.rs.core.Response remove ( ) { org.ovirt.engine.core.common.scheduling.ClusterPolicy entity = parent.getClusterPolicy ( ) ; updateEntityForRemove ( entity , guid ) ; return performAction ( VdcActionType.EditClusterPolicy , new org.ovirt.engine.core.common.scheduling.parameters.ClusterPolicyCRUDParameters ( entity.getId ( ) , entity ) ) ; }

Target:
public javax.ws.rs.core.Response remove ( ) { org.ovirt.engine.core.common.scheduling.ClusterPolicy entity = parent.getClusterPolicy ( ) ; updateEntityForRemove ( entity , guid ) ; return performAction ( ActionType.EditClusterPolicy , new org.ovirt.engine.core.common.scheduling.parameters.ClusterPolicyCRUDParameters ( entity.getId ( ) , entity ) ) ; }
Source:
protected org.ovirt.engine.core.common.scheduling.ClusterPolicy getClusterPolicy ( ) { return getEntity ( org.ovirt.engine.core.common.scheduling.ClusterPolicy.class , VdcQueryType.GetClusterPolicyById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( schedulingPolicyId ) , schedulingPolicyId.toString ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.scheduling.ClusterPolicy getClusterPolicy ( ) { return getEntity ( org.ovirt.engine.core.common.scheduling.ClusterPolicy.class , QueryType.GetClusterPolicyById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( schedulingPolicyId ) , schedulingPolicyId.toString ( ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc createVolumeContainer ( java.lang.String sdUUID , java.lang.String imgGUID , java.lang.String size , int volFormat , int diskType , java.lang.String volUUID , java.lang.String descr , java.lang.String srcImgGUID , java.lang.String srcVolUUID ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.QemuImageInfoReturnForXmlRpc getQemuImageInfo ( java.lang.String sdUUID , java.lang.String spUUID , java.lang.String imgUUID , java.lang.String volUUID ) ;
Source:
protected void selectedItemPropertyChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . selectedItemPropertyChanged ( sender , e ) ; if ( ( e.PropertyName.equals ( "status" ) ) || ( e.PropertyName.equals ( "pm_enabled" ) ) ) { updateActionAvailability ( ) ; } }

Target:
protected void selectedItemPropertyChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs e ) { super . selectedItemPropertyChanged ( sender , e ) ; if ( ( e.propertyName.equals ( "status" ) ) || ( e.propertyName.equals ( "pm_enabled" ) ) ) { updateActionAvailability ( ) ; } }
Source:
public void invalidCluster ( ) { createSimpleCommand ( ) ; org.mockito.Mockito.when ( clusterDao.get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( null ) ; validateFailedWithReason ( EngineMessage.VDS_CLUSTER_IS_NOT_VALID ) ; }

Target:
public void invalidCluster ( ) { createSimpleCommand ( ) ; org.mockito.Mockito.when ( clusterDao.get ( org.mockito.ArgumentMatchers.any ( ) ) ) . thenReturn ( null ) ; validateFailedWithReason ( EngineMessage.VDS_CLUSTER_IS_NOT_VALID ) ; }
Source:
public void notAllImagesAreSnapshots ( ) { disk1.setActive ( true ) ; disk2.setActive ( false ) ; org.junit.Assert.assertThat ( validator.imagesAreSnapshots ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_DISK_SNAPSHOTS_ACTIVE ) ) ; }

Target:
public void notAllImagesAreSnapshots ( ) { disk1.setActive ( true ) ; disk2.setActive ( false ) ; org.junit.Assert.assertThat ( validator.imagesAreSnapshots ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_DISK_SNAPSHOTS_ACTIVE ) ) ; }
Source:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand ) { this . onImportVmAsClone ( importModel ) ; }

Target:
private void onSetConsoleKey ( ) { org.ovirt.engine.ui.uicommonweb.models.PublicKeyModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.PublicKeyModel ) ( org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel.getWindow ( ) ) ) ; model.onSetConsoleKey ( this , this ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase runAction ( org.ovirt.engine.core.bll.CommandBase < ? > action , org.ovirt.engine.core.bll.job.ExecutionContext executionContext ) { return runAction ( action , true , org.ovirt.engine.core.bll.job.ExecutionHandler.createDefaultContexForTasks ( executionContext ) ) ; }

Target:
public org.ovirt.engine.core.common.queries.VdcQueryReturnValue runInternalQuery ( org.ovirt.engine.core.common.queries.VdcQueryType queryType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase queryParameters ) { return runInternalQuery ( queryType , queryParameters , null ) ; }
Source:
protected java.lang.String getGlusterVolumeName ( org.ovirt.engine.core.compat.Guid volumeId ) { return getGlusterVolumeDao ( ) . getById ( volumeId ) . getName ( ) ; }

Target:
protected java.lang.String getGlusterVolumeName ( org.ovirt.engine.core.compat.Guid volumeId ) { return glusterVolumeDao.getById ( volumeId ) . getName ( ) ; }
Source:
public java.lang.Integer getUsageCpuPercent ( ) { return this . mVdsStatistics.getusage_cpu_percent ( ) ; }

Target:
public java.lang.Integer getUsageMemPercent ( ) { return this . mVdsStatistics.getUsageMemPercent ( ) ; }
Source:
public int hashCode ( ) { return super . hashCode ( ) ; }

Target:
public int hashCode ( ) { final int prime = 31 ; int result = super . hashCode ( ) ; result = ( prime * result ) + ( ( vdsNumaNodeList ) == null ? 0 : vdsNumaNodeList.hashCode ( ) ) ; return result ; }
Source:
public java.util.concurrent.Future < java.lang.Void > close ( ) { final java.util.concurrent.Callable < java.lang.Void > callable = new java.util.concurrent.Callable < java.lang.Void > ( ) { @ java.lang.Override public java.lang.Void call ( ) { disconnect ( ) ; return null ; } } ; return scheduleTask ( callable ) ; }

Target:
public java.util.concurrent.Future < java.lang.Void > close ( ) { return scheduleTask ( this . disconnectCallable ) ; }
Source:
public org.ovirt.engine.core.dao.StoragePoolIsoMapDao getStoragePoolIsoMapDao ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStoragePoolIsoMapDao ( ) ; }

Target:
public org.ovirt.engine.core.dao.StoragePoolIsoMapDao getStoragePoolIsoMapDao ( ) { return org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.dao.StoragePoolIsoMapDao.class ) ; }
Source:
public void testCanDoAction ( ) { org.ovirt.engine.core.bll.UpdateRngDeviceCommand command = mockCommand ( Version.v3_5 ) ; org.junit.Assert.assertEquals ( true , command.canDoAction ( ) ) ; }

Target:
public void testValidate ( ) { org.ovirt.engine.core.bll.UpdateRngDeviceCommand command = mockCommand ( Version.v3_5 ) ; org.junit.Assert.assertEquals ( true , command.validate ( ) ) ; }