auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected org.ovirt.engine.core.common.businessentities.StoragePool setUpStoragePool ( org.ovirt.engine.core.compat.Guid id ) { org.ovirt.engine.core.common.businessentities.StoragePool pool = org.mockito.Mockito.mock ( org.ovirt.engine.core.common.businessentities.StoragePool.class ) ; org.mockito.Mockito.when ( pool.getId ( ) ) . thenReturn ( id ) ; return pool ; }

Target:
private org.ovirt.engine.core.common.businessentities.StoragePool getStoragePool ( org.ovirt.engine.core.compat.Guid id ) { org.ovirt.engine.core.common.businessentities.StoragePool pool = org.mockito.Mockito.mock ( org.ovirt.engine.core.common.businessentities.StoragePool.class ) ; org.mockito.Mockito.when ( pool.getId ( ) ) . thenReturn ( id ) ; return pool ; }
Source:
public void settask_id ( org.ovirt.engine.core.compat.Guid value ) { this . taskId = value ; }

Target:
public void setTaskId ( org.ovirt.engine.core.compat.Guid value ) { this . taskId = value ; }
Source:
protected void executeQueryCommand ( ) { getQueryReturnValue ( ) . setReturnValue ( getDbFacade ( ) . getStorageServerConnectionExtensionDao ( ) . getByHostId ( getParameters ( ) . getId ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { getQueryReturnValue ( ) . setReturnValue ( storageServerConnectionExtensionDao.getByHostId ( getParameters ( ) . getId ( ) ) ) ; }
Source:
protected void performOvfUpdateForDomain ( org.ovirt.engine.core.compat.Guid storagePoolId , org.ovirt.engine.core.compat.Guid domainId ) { org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( VdcActionType.ProcessOvfUpdateForStorageDomain , new org.ovirt.engine.core.common.action.StorageDomainParametersBase ( storagePoolId , domainId ) ) ; }

Target:
protected void performOvfUpdateForDomain ( org.ovirt.engine.core.compat.Guid storagePoolId , org.ovirt.engine.core.compat.Guid domainId ) { org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( VdcActionType.ProcessOvfUpdateForStorageDomain , new org.ovirt.engine.core.common.action.ProcessOvfUpdateForStorageDomainCommandParameters ( storagePoolId , domainId ) ) ; }
Source:
protected abstract Q getEntity ( int index ) ;

Target:
protected Q getEntity ( int index ) { throw new java.lang.UnsupportedOperationException ( ) ; }
Source:
public void addToHistoryTwoValuesBefore ( ) { org.junit.Assert.assertEquals ( java.util.Arrays.asList ( 10 , 11 , 12 ) , statistics.addToHistory ( java.util.Arrays.asList ( 10 , 11 ) , 12 , 100 ) ) ; }

Target:
public void addToHistoryTwoValuesBefore ( ) { org.junit.jupiter.api.Assertions.assertEquals ( java.util.Arrays.asList ( 10 , 11 , 12 ) , statistics.addToHistory ( java.util.Arrays.asList ( 10 , 11 ) , 12 , 100 ) ) ; }
Source:
public static org.ovirt.engine.core.compat.Version getEffective ( org.ovirt.engine.core.common.businessentities.VM vm , java.util.function.Supplier < org.ovirt.engine.core.common.businessentities.VDSGroup > vdsGroupSupplier ) { return org.ovirt.engine.core.common.utils.CompatibilityVersionUtils.getEffective ( ( vm != null ? vm.getStaticData ( ) : null ) , vdsGroupSupplier ) ; }

Target:
public static org.ovirt.engine.core.compat.Version getEffective ( org.ovirt.engine.core.common.businessentities.VM vm , java.util.function.Supplier < org.ovirt.engine.core.common.businessentities.Cluster > clusterSupplier ) { return org.ovirt.engine.core.common.utils.CompatibilityVersionUtils.getEffective ( ( vm != null ? vm.getStaticData ( ) : null ) , clusterSupplier ) ; }
Source:
public void ClearTasks ( ) { synchronized ( _listTasks ) { java.util.ArrayList < org.ovirt.engine.core.bll.EntityAsyncTask > CurrentActionTypeTasks = getCurrentTasks ( ) ; for ( org.ovirt.engine.core.bll.EntityAsyncTask task : CurrentActionTypeTasks ) { task.clearAsyncTask ( ) ; } } }

Target:
public void ClearTasks ( ) { synchronized ( _listTasks ) { java.util.ArrayList < org.ovirt.engine.core.bll.CommandAsyncTask > CurrentActionTypeTasks = getCurrentTasks ( ) ; for ( org.ovirt.engine.core.bll.CommandAsyncTask task : CurrentActionTypeTasks ) { task.clearAsyncTask ( ) ; } } }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel model ) { return ( ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkManageModel ) ( model ) ) . getName ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel model ) { return ( ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel ) ( model ) ) . getDisplayedName ( ) ; }
Source:
public void testGetAllForStorageDomain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllForStorageDomain ( existingDomain.getId ( ) ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForStorageDomain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllForStorageDomain ( existingDomain.getId ( ) ) ; org.junit.jupiter.api.Assertions.assertFalse ( result.isEmpty ( ) ) ; }
Source:
public void testQueryIsAUserQuery ( ) throws java.lang.IllegalAccessException , java.lang.IllegalArgumentException { org.junit.Assert.assertFalse ( "A query tested for filtered access should not be an admin query" , org.ovirt.engine.core.bll.TestHelperQueriesCommandType.getQueryTypeFieldValue ( org.ovirt.engine.core.bll.AbstractUserQueryTest.getQuery ( ) ) . isAdmin ( ) ) ; }

Target:
public void testQueryIsAUserQuery ( ) throws java.lang.IllegalAccessException , java.lang.IllegalArgumentException { org.junit.jupiter.api.Assertions.assertFalse ( org.ovirt.engine.core.bll.TestHelperQueriesCommandType.getQueryTypeFieldValue ( org.ovirt.engine.core.bll.AbstractUserQueryTest.getQuery ( ) ) . isAdmin ( ) , "A query tested for filtered access should not be an admin query" ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VDSGroup getVdsGroup ( ) { if ( ( getGlusterHook ( ) ) != null ) { setVdsGroupId ( getGlusterHook ( ) . getClusterId ( ) ) ; } return super . getVdsGroup ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.Cluster getCluster ( ) { if ( ( getGlusterHook ( ) ) != null ) { setClusterId ( getGlusterHook ( ) . getClusterId ( ) ) ; } return super . getCluster ( ) ; }
Source:
public void updateDynamicData ( org.ovirt.engine.core.common.businessentities.VdsDynamic dynamicData ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDynamicDao ( ) . updateIfNeeded ( dynamicData ) ; }

Target:
public void updateDynamicData ( org.ovirt.engine.core.common.businessentities.VdsDynamic dynamicData ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDynamicDao ( ) . updateIfNeeded ( dynamicData ) ; cachedVds.setDynamicData ( dynamicData ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( id , defaultTimeInDays , parameters , clusterId , description , name , type , maxAssignedVmsPerUser , spiceProxy ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( id , defaultTimeInDays , parameters , clusterId , description , name , type , stateful , maxAssignedVmsPerUser , spiceProxy ) ; }
Source:
public void testCDAStoragePoolNotUp ( ) { storagePool.setStatus ( StoragePoolStatus.Uninitialized ) ; org.junit.Assert.assertFalse ( "canDoAction did not fail on a Storage Pool which is not up" , command.canDoAction ( ) ) ; org.ovirt.engine.core.bll.CommandAssertUtils.checkMessagesContains ( command , VdcBllMessages.ACTION_TYPE_FAILED_IMAGE_REPOSITORY_NOT_FOUND ) ; }

Target:
public void testCDAStoragePoolNotUp ( ) { storagePool.setStatus ( StoragePoolStatus.Uninitialized ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( "canDoAction did not fail on a Storage Pool which is not up" , command , VdcBllMessages.ACTION_TYPE_FAILED_IMAGE_REPOSITORY_NOT_FOUND ) ; }
Source:
private void asserThatLabelAppearsOnlyOnceInParamsFailed ( org.ovirt.engine.core.bll.network.host.NicLabelValidator validator , java.util.Set < java.lang.String > duplicateLabels ) { org.junit.Assert.assertThat ( validator.labelAppearsOnlyOnceInParams ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.PARAMS_CONTAIN_DUPLICATE_LABELS , org.ovirt.engine.core.utils.ReplacementUtils.replaceWith ( "PARAMS_CONTAIN_DUPLICATE_LABELS_LIST" , new java.util.ArrayList < > ( duplicateLabels ) ) ) ) ; }

Target:
private void asserThatLabelAppearsOnlyOnceInParamsFailed ( org.ovirt.engine.core.bll.network.host.NicLabelValidator validator , java.util.Set < java.lang.String > duplicateLabels ) { org.hamcrest.MatcherAssert.assertThat ( validator.labelAppearsOnlyOnceInParams ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.PARAMS_CONTAIN_DUPLICATE_LABELS , org.ovirt.engine.core.utils.ReplacementUtils.replaceWith ( "PARAMS_CONTAIN_DUPLICATE_LABELS_LIST" , new java.util.ArrayList < > ( duplicateLabels ) ) ) ) ; }
Source:
public void testEvalNegaitive ( ) { org.mockito.Mockito.when ( mockVdsNetworkInterface.getNetworkName ( ) ) . thenReturn ( ( "not" + ( org.ovirt.engine.core.vdsbroker.vdsbroker.predicates.IsNetworkOnInterfacePredicateTest.TEST_NETWORK_NAME ) ) ) ; final org.ovirt.engine.core.vdsbroker.vdsbroker.predicates.IsNetworkOnInterfacePredicate underTest = new org.ovirt.engine.core.vdsbroker.vdsbroker.predicates.IsNetworkOnInterfacePredicate ( org.ovirt.engine.core.vdsbroker.vdsbroker.predicates.IsNetworkOnInterfacePredicateTest.TEST_NETWORK_NAME ) ; org.junit.Assert.assertFalse ( underTest.test ( mockVdsNetworkInterface ) ) ; }

Target:
public void testEvalNegaitive ( ) { org.mockito.Mockito.when ( mockVdsNetworkInterface.getNetworkName ( ) ) . thenReturn ( ( "not" + ( org.ovirt.engine.core.vdsbroker.vdsbroker.predicates.IsNetworkOnInterfacePredicateTest.TEST_NETWORK_NAME ) ) ) ; final org.ovirt.engine.core.vdsbroker.vdsbroker.predicates.IsNetworkOnInterfacePredicate underTest = new org.ovirt.engine.core.vdsbroker.vdsbroker.predicates.IsNetworkOnInterfacePredicate ( org.ovirt.engine.core.vdsbroker.vdsbroker.predicates.IsNetworkOnInterfacePredicateTest.TEST_NETWORK_NAME ) ; org.junit.jupiter.api.Assertions.assertFalse ( underTest.test ( mockVdsNetworkInterface ) ) ; }
Source:
protected void RunSleepOnReboot ( final org.ovirt.engine.core.common.businessentities.VDSStatus status ) { org.ovirt.engine.core.utils.threadpool.ThreadPoolUtil.execute ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { SleepOnReboot ( status ) ; } } ) ; }

Target:
protected void runSleepOnReboot ( final org.ovirt.engine.core.common.businessentities.VDSStatus status ) { org.ovirt.engine.core.utils.threadpool.ThreadPoolUtil.execute ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { sleepOnReboot ( status ) ; } } ) ; }
Source:
private void logFailedAttemptToRestartVm ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase event = org.ovirt.engine.core.di.Injector.injectMembers ( new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ) ; event.setVmId ( vmId ) ; auditLogDirector.log ( event , getRestartFailedAuditLogType ( ) ) ; }

Target:
private void logFailedAttemptToRestartVm ( org.ovirt.engine.core.compat.Guid vmId ) { logVmEvent ( vmId , getRestartFailedAuditLogType ( ) ) ; }
Source:
public void internalNetworkProvidedByChanged ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.Network externalNetwork = mockExternalNetwork ( ) ; org.mockito.Mockito.when ( network.getProvidedBy ( ) ) . thenReturn ( null ) ; assertThatExternalNetworkDetailsUnchangedFails ( externalNetwork ) ; }

Target:
public void externalNetworkProvidedByChanged ( ) { org.ovirt.engine.core.common.businessentities.network.Network externalNetwork = createExternalNetwork ( ) ; externalNetwork.setProvidedBy ( createProviderNetwork ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ) ; assertThatExternalNetworkDetailsUnchangedFails ( externalNetwork ) ; }
Source:
public void storagePoolIdDefault ( ) { 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 n = b.getStoragePoolId ( ) ; org.junit.Assert.assertNull ( n ) ; }

Target:
public void storagePoolIdNull ( ) { b.setStoragePoolId ( null ) ; final org.ovirt.engine.core.compat.Guid n = b.getStoragePoolId ( ) ; org.junit.Assert.assertNull ( n ) ; }
Source:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s, diskId = %s" , super . toString ( ) , disk.getId ( ) ) ; }

Target:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s, diskId = %s, addressMap = %s" , super . toString ( ) , disk.getId ( ) , getAddressMap ( ) ) ; }
Source:
private java.util.List < org.ovirt.engine.api.model.NetworkLabel > getNetworkLabels ( org.ovirt.engine.core.compat.Guid networkId ) { return getBackendCollection ( VdcQueryType.GetNetworkLabelsByNetworkId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( networkId ) ) ; }

Target:
private java.util.List < org.ovirt.engine.api.model.NetworkLabel > getNetworkLabels ( org.ovirt.engine.core.compat.Guid networkId ) { return getBackendCollection ( QueryType.GetNetworkLabelsByNetworkId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( networkId ) ) ; }
Source:
private boolean isVmRunning ( ) { switch ( getEntity ( ) . getStatus ( ) ) { case PoweringUp : case Up : case RebootInProgress : case PoweringDown : case Paused : return true ; default : return false ; } }

Target:
public boolean canConnect ( ) { if ( ! ( canBeSelected ( ) ) ) { return false ; } return getForceVmStatusUp ( ) ? ( getEntity ( ) . getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.Up ) : isVmRunning ( ) ; }
Source:
public void executeCommandTest ( ) { org.ovirt.engine.core.bll.profiles.AddCpuProfileCommandTest.addCpuProfileCommand.executeCommand ( ) ; org.mockito.Mockito.verify ( org.ovirt.engine.core.bll.profiles.AddCpuProfileCommandTest.addCpuProfileCommand ) . addPermissions ( ) ; org.junit.Assert.assertTrue ( org.ovirt.engine.core.bll.profiles.AddCpuProfileCommandTest.addCpuProfileCommand.getReturnValue ( ) . getSucceeded ( ) ) ; }

Target:
public void executeCommandTest ( ) { addCpuProfileCommand.executeCommand ( ) ; org.mockito.Mockito.verify ( addCpuProfileCommand ) . addPermissions ( ) ; org.junit.Assert.assertTrue ( addCpuProfileCommand.getReturnValue ( ) . getSucceeded ( ) ) ; }
Source:
public boolean isManaged ( ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface.NetworkImplementationDetails details = getNetworkImplementationDetails ( ) ; return ( details == null ) || ( details.isManaged ( ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.network.ReportedConfigurations getReportedConfigurations ( ) { org.ovirt.engine.core.common.businessentities.network.NetworkAttachment networkAttachment = getNetworkAttachment ( ) ; return networkAttachment == null ? null : networkAttachment.getReportedConfigurations ( ) ; }
Source:
private static void addToAuditLogErrorMessage ( java.lang.String problematicRepoFilesList ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; logable.AddCustomValue ( "isoDomains" , problematicRepoFilesList ) ; org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( logable , AuditLogType.REFRESH_REPOSITORY_FILE_LIST_FAILED ) ; }

Target:
private static void addToAuditLogErrorMessage ( java.lang.String problematicRepoFilesList ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; logable.addCustomValue ( "isoDomains" , problematicRepoFilesList ) ; org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( logable , AuditLogType.REFRESH_REPOSITORY_FILE_LIST_FAILED ) ; }
Source:
protected void setUpGetEntityExpectations ( int index ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.LdapGroup user = org.ovirt.engine.api.restapi.resource.BackendGroupsResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.core.common.businessentities.LdapGroup.class ) , index ) ; setUpGetEntityExpectations ( ( ( "ADGROUP@" + ( DOMAIN ) ) + ": name=*" ) , SearchType.AdGroup , user ) ; }

Target:
protected void verifyModel ( org.ovirt.engine.api.model.Group model , int index ) { assertEquals ( GUIDS [ index ] . toString ( ) , model.getId ( ) ) ; assertEquals ( NAMES [ index ] , model.getName ( ) ) ; }
Source:
private void addStyles ( ) { }

Target:
private void addStyles ( ) { copyPermissionsEditor.addContentWidgetStyleName ( style.textBoxWidth ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.network.NetworkAttachment getEntity ( int index ) { return setUpEntityExpectations ( control.createMock ( org.ovirt.engine.core.common.businessentities.network.NetworkAttachment.class ) , index ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.network.NetworkAttachment getEntity ( int index ) { return setUpEntityExpectations ( org.ovirt.engine.api.restapi.resource.AbstractBackendNetworkAttachmentsResourceTest.mock ( org.ovirt.engine.core.common.businessentities.network.NetworkAttachment.class ) , index ) ; }
Source:
public void addMenuItem ( org.ovirt.engine.ui.common.widget.action.ActionButton actionButton ) { kebabMenu.add ( actionButton ) ; }

Target:
public void addMenuItem ( org.ovirt.engine.ui.common.widget.action.ActionButton actionButton ) { addMenuItem ( actionButton , java.lang.Integer.MAX_VALUE ) ; }
Source:
public static java.lang.Iterable GetUsbPolicyList ( ) { return org.ovirt.engine.core.compat.EnumCompat.GetValues ( org.ovirt.engine.core.common.businessentities.UsbPolicy.class ) ; }

Target:
public static java.lang.Iterable GetUsbPolicyList ( ) { return java.util.Arrays.asList ( org.ovirt.engine.core.common.businessentities.UsbPolicy.values ( ) ) ; }
Source:
public void setusage_network_percent ( java.lang.Integer value ) { this . mVmStatistics.setusage_network_percent ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "usage_network_percent" ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VmOsType getVmtOs ( ) { return this . vmtOs ; }
Source:
private void setUpGetEntityExpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.GetAuditLogById , org.ovirt.engine.core.common.queries.GetAuditLogByIdParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendEventResourceTest.LOG_IDS [ 0 ] } , getEntity ( 0 ) ) ; }

Target:
private void setUpGetEntityExpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( QueryType.GetAuditLogById , org.ovirt.engine.core.common.queries.GetAuditLogByIdParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendEventResourceTest.LOG_IDS [ 0 ] } , getEntity ( 0 ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object returnValue , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { return returnValue == null ? new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepNonEligibilityReason > ( ) : ( ( java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepNonEligibilityReason > ) ( returnValue ) ) ; }

Target:
public java.lang.Object convert ( java.lang.Object returnValue , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { return returnValue == null ? new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepNonEligibilityReason > ( ) : ( ( java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterGeoRepNonEligibilityReason > ) ( returnValue ) ) ; }
Source:
private void setUpTemplateDisksExpectations ( org.ovirt.engine.core.compat.Guid templateId ) { setUpEntityQueryExpectations ( VdcQueryType.GetVmTemplatesDisks , org.ovirt.engine.core.common.queries.GetVmTemplatesDisksParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { templateId } , createDiskList ( ) ) ; }

Target:
private void setUpTemplateDisksExpectations ( org.ovirt.engine.core.compat.Guid templateId ) { setUpEntityQueryExpectations ( VdcQueryType.GetVmTemplatesDisks , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { templateId } , createDiskList ( ) ) ; }
Source:
public void verifyNoDomainForMemoryWhenDomainIsNotActive ( ) { for ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus storageDomainStatus : org.ovirt.engine.core.common.businessentities.StorageDomainStatus.values ( ) ) { if ( storageDomainStatus != ( org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Active ) ) { validStorageDomain.setStatus ( storageDomainStatus ) ; verifyNoDomainForMemory ( java.util.Arrays.asList ( validStorageDomain ) ) ; } } }

Target:
public void testFindStorageDomainForMemoryWithSingleDomain ( ) { verifyDomainForMemory ( java.util.Collections.singletonList ( validStorageDomain ) ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > getDeviceList ( int storageType ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > getDeviceList ( int storageType , java.util.Map options ) ;
Source:
public void shouldAllowUnpinnedNumaNodes ( ) { validVM.setvNumaNodeList ( java.util.Arrays.asList ( org.ovirt.engine.core.bll.utils.NumaTestUtils.createVmNumaNode ( 1 ) ) ) ; org.hamcrest.MatcherAssert.assertThat ( validator.checkVmReadyForUpgrade ( validVM ) , org.hamcrest.core.Is.is ( org.hamcrest.Matchers.empty ( ) ) ) ; }

Target:
public void shouldAllowUnpinnedNumaNodes ( ) { validVM.setvNumaNodeList ( java.util.Arrays.asList ( org.ovirt.engine.core.bll.utils.NumaTestUtils.createVmNumaNode ( 1 ) ) ) ; org.assertj.core.api.Assertions.assertThat ( validator.checkVmReadyForUpgrade ( validVM ) ) . isEmpty ( ) ; }
Source:
public void testPosixEmptyVFSType ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections newPosixConnection = createPosixConnection ( "multipass.my.domain.tlv.company.com:/export/allstorage/data1" , StorageType.POSIXFS , null , "timeo=30" ) ; parameters.setStorageServerConnection ( newPosixConnection ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( getCommand ( ) , VdcBllMessages.VALIDATION_STORAGE_CONNECTION_EMPTY_VFSTYPE ) ; }

Target:
public void testPosixEmptyVFSType ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections newPosixConnection = createPosixConnection ( "multipass.my.domain.tlv.company.com:/export/allstorage/data1" , StorageType.POSIXFS , null , "timeo=30" ) ; parameters.setStorageServerConnection ( newPosixConnection ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( getCommand ( ) , EngineMessage.VALIDATION_STORAGE_CONNECTION_EMPTY_VFSTYPE ) ; }
Source:
public static void clearVdsFromCache ( org.ovirt.engine.core.compat.Guid storagePoolId , org.ovirt.engine.core.compat.Guid vdsId , java.lang.String vdsName ) { org.ovirt.engine.core.vdsbroker.irsbroker.IrsBrokerCommand.IrsProxyData irsProxyData = org.ovirt.engine.core.vdsbroker.irsbroker.IrsBrokerCommand.getIrsProxyData ( storagePoolId ) ; if ( irsProxyData != null ) { irsProxyData.clearVdsFromCache ( vdsId , vdsName ) ; } }

Target:
public static void clearVdsFromCache ( org.ovirt.engine.core.compat.Guid storagePoolId , org.ovirt.engine.core.compat.Guid vdsId , java.lang.String vdsName ) { org.ovirt.engine.core.vdsbroker.irsbroker.IrsProxyData irsProxyData = org.ovirt.engine.core.vdsbroker.irsbroker.IrsBrokerCommand.getIrsProxyData ( storagePoolId ) ; if ( irsProxyData != null ) { irsProxyData.clearVdsFromCache ( vdsId , vdsName ) ; } }
Source:
public void setSupportedClusterLevels ( java.lang.String value ) { supportedClusterLevels = value ; }

Target:
public void setSupportedClusterLevels ( java.lang.String value ) { supportedClusterLevels = value ; supportedClusterVersionsSet = null ; }
Source:
public void validateNonExistingJobFails ( ) throws java.lang.Exception { setupMock ( ) ; parameters.setJobId ( org.ovirt.engine.core.bll.EndExternalJobCommandTest.nonExistingJobId ) ; org.junit.Assert.assertTrue ( ( ! ( commandMock.validate ( ) ) ) ) ; }

Target:
public void validateNonExternalJobFails ( ) throws java.lang.Exception { setupMock ( ) ; org.mockito.Mockito.when ( jobDaoMock.get ( org.ovirt.engine.core.bll.EndExternalJobCommandTest.jobId ) ) . thenReturn ( makeNonExternalTestJob ( ) ) ; org.junit.Assert.assertTrue ( ( ! ( commandMock.validate ( ) ) ) ) ; }
Source:
private void updateVolumeType ( org.ovirt.engine.core.common.businessentities.StorageType storageType ) { getVolumeType ( ) . setSelectedItem ( ( storageType.isBlockDomain ( ) ? org.ovirt.engine.core.common.businessentities.VolumeType.Preallocated : org.ovirt.engine.core.common.businessentities.VolumeType.Sparse ) ) ; volumeType_SelectedItemChanged ( ) ; }

Target:
private void setDefaultVolumeType ( org.ovirt.engine.core.common.businessentities.StorageType storageType ) { getVolumeType ( ) . setSelectedItem ( ( storageType.isBlockDomain ( ) ? org.ovirt.engine.core.common.businessentities.VolumeType.Preallocated : org.ovirt.engine.core.common.businessentities.VolumeType.Sparse ) ) ; volumeType_SelectedItemChanged ( ) ; }
Source:
public java.util.List < org.ovirt.engine.core.bll.scheduling.PolicyUnitImpl > getPolicyUnits ( ) { return new java.util.ArrayList < org.ovirt.engine.core.bll.scheduling.PolicyUnitImpl > ( policyUnits.values ( ) ) ; }

Target:
public java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.bll.scheduling.PolicyUnitImpl > getPolicyUnitsMap ( ) { return policyUnits ; }
Source:
protected void setUpQueryExpectations ( java.lang.String query , java.lang.Object failure ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetIscsiBondsByStoragePoolId , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendIscsiBondsResourceTest.DATA_CENTER_ID } , org.ovirt.engine.api.restapi.resource.BackendIscsiBondsResourceTest.setUpIscsiBonds ( ) , failure ) ; }

Target:
protected void setUpQueryExpectations ( java.lang.String query , java.lang.Object failure ) throws java.lang.Exception { setUpEntityQueryExpectations ( QueryType.GetIscsiBondsByStoragePoolId , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendIscsiBondsResourceTest.DATA_CENTER_ID } , org.ovirt.engine.api.restapi.resource.BackendIscsiBondsResourceTest.setUpIscsiBonds ( ) , failure ) ; }
Source:
public static void hasSpiceSupport ( int osId , org.ovirt.engine.core.compat.Version version , org.ovirt.engine.ui.frontend.AsyncQuery callback ) { org.ovirt.engine.ui.frontend.Frontend.RunQuery ( VdcQueryType.OsRepository , new org.ovirt.engine.core.common.queries.OsQueryParameters ( org.ovirt.engine.core.common.queries.OsQueryParameters.OsRepositoryVerb.HasSpiceSupport , osId , version ) , callback ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.displayTypes = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; }
Source:
public void testNameNotChanged ( ) { prepareVmToPassCanDoAction ( ) ; vm.setvm_name ( "vm1" ) ; mockSameNameQuery ( true ) ; junit.framework.Assert.assertTrue ( "canDoAction should have passed." , command.canDoAction ( ) ) ; }

Target:
public void testNameNotChanged ( ) { prepareVmToPassCanDoAction ( ) ; vm.setVmName ( "vm1" ) ; mockSameNameQuery ( true ) ; junit.framework.Assert.assertTrue ( "canDoAction should have passed." , command.canDoAction ( ) ) ; }
Source:
private boolean removedHEVM ( org.ovirt.engine.core.common.businessentities.VM vm ) { org.ovirt.engine.core.common.action.RemoveVmParameters parameters = new org.ovirt.engine.core.common.action.RemoveVmParameters ( vm.getId ( ) , true ) ; parameters.setRemoveDisks ( false ) ; return backend.runInternalAction ( VdcActionType.RemoveVm , parameters ) . getSucceeded ( ) ; }

Target:
private boolean removedHEVM ( org.ovirt.engine.core.common.businessentities.VM vm ) { org.ovirt.engine.core.common.action.RemoveVmParameters parameters = new org.ovirt.engine.core.common.action.RemoveVmParameters ( vm.getId ( ) , true ) ; parameters.setRemoveDisks ( false ) ; return backend.runInternalAction ( ActionType.RemoveVm , parameters ) . getSucceeded ( ) ; }
Source:
public void shouldMigrateFromHostWithLessHosts ( ) { org.ovirt.engine.core.common.scheduling.AffinityGroup positiveGroup = createAffinityGroup ( vdsGroup , true , vm1 , vm2 , vm4 ) ; affinityGroups.add ( positiveGroup ) ; org.junit.Assert.assertEquals ( vm4 , enforcer.chooseNextVmToMigrate ( vdsGroup ) ) ; }

Target:
public void shouldMigrateFromHostWithLessHosts ( ) { org.ovirt.engine.core.common.scheduling.AffinityGroup positiveGroup = createAffinityGroup ( vdsGroup , true , vm1 , vm2 , vm4 ) ; affinityGroups.add ( positiveGroup ) ; org.assertj.core.api.Assertions.assertThat ( enforcer.chooseNextVmToMigrate ( vdsGroup ) ) . isEqualTo ( vm4 ) ; }
Source:
public void testIsInternalExecutionTrue ( ) { org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery query = new org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery ( org.mockito.Mockito.mock ( org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class ) ) ; query.setInternalExecution ( true ) ; org.junit.Assert.assertTrue ( "Query should be marked for internel execution" , query.isInternalExecution ( ) ) ; }

Target:
public void testIsInternalExecutionTrue ( ) { org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery query = new org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery ( org.mockito.Mockito.mock ( org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class ) ) ; query.setInternalExecution ( true ) ; org.junit.Assert.assertTrue ( "Query should be marked for internal execution" , query.isInternalExecution ( ) ) ; }
Source:
public void setvm_pool_type ( org.ovirt.engine.core.common.businessentities.VmPoolType value ) { this . type = value ; }

Target:
public void setVmPoolType ( org.ovirt.engine.core.common.businessentities.VmPoolType value ) { this . type = value ; }
Source:
private java.lang.String getFingerprint ( org.ovirt.engine.core.utils.ssh.SSHClient client ) { java.security.PublicKey serverKey = client.getServerKey ( ) ; if ( serverKey == null ) { log.error ( "Could not get server key" ) ; return null ; } return org.ovirt.engine.core.engineencryptutils.OpenSSHUtils.getKeyFingerprintString ( serverKey ) ; }

Target:
private java.lang.String getFingerprint ( org.ovirt.engine.core.utils.ssh.SSHClient client ) { java.security.PublicKey hostKey = client.getHostKey ( ) ; if ( hostKey == null ) { log.error ( "Could not get server key" ) ; return null ; } return org.ovirt.engine.core.engineencryptutils.OpenSSHUtils.getKeyFingerprintString ( hostKey ) ; }
Source:
protected void OnEntityChanged ( ) { super . OnEntityChanged ( ) ; if ( ( super . getEntity ( ) ) != null ) { UpdateProperties ( ) ; } }

Target:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; if ( ( super . getEntity ( ) ) != null ) { UpdateProperties ( ) ; } }
Source:
protected java.lang.String getEngineRpmVersion ( java.lang.String sessionId ) { return ( ( java.lang.String ) ( runPublicQuery ( VdcQueryType.GetConfigurationValue , new org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ( org.ovirt.engine.core.common.config.ConfigValues.ProductRPMVersion , org.ovirt.engine.core.common.config.ConfigCommon.defaultConfigurationVersion ) , sessionId ) ) ) ; }

Target:
protected java.lang.String getEngineRpmVersion ( java.lang.String sessionId ) { return ( ( java.lang.String ) ( runPublicQuery ( QueryType.GetConfigurationValue , new org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ( org.ovirt.engine.core.common.config.ConfigValues.ProductRPMVersion , org.ovirt.engine.core.common.config.ConfigCommon.defaultConfigurationVersion ) , sessionId ) ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface getNic ( ) { if ( ( nic ) == null ) { nic = getInterfaceDao ( ) . get ( getVfsConfig ( ) . getNicId ( ) ) ; } return nic ; }

Target:
public org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface getNic ( ) { if ( ( nic ) == null ) { nic = interfaceDao.get ( getVfsConfig ( ) . getNicId ( ) ) ; } return nic ; }
Source:
public void testNotExternalNetworkSucceedsForNonExternalNetwork ( ) { org.mockito.Mockito.when ( network.isExternal ( ) ) . thenReturn ( false ) ; org.junit.Assert.assertThat ( validator.notExternalNetwork ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testNotExternalNetworkSucceedsForNonExternalNetwork ( ) { org.mockito.Mockito.when ( network.isExternal ( ) ) . thenReturn ( false ) ; org.hamcrest.MatcherAssert.assertThat ( validator.notExternalNetwork ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public int getVlanId ( ) { java.lang.Integer vlanId = getEntity ( ) . getVlanId ( ) ; return vlanId == null ? - 1 : vlanId ; }

Target:
public int getVlanId ( ) { java.lang.Integer vlanId = getNetwork ( ) . getVlanId ( ) ; return vlanId == null ? - 1 : vlanId ; }
Source:
public static void initCommandsCollection ( ) { org.ovirt.engine.core.bll.QueriesCtorsTest.queryClasses = commandsFromEnum ( org.ovirt.engine.core.common.queries.VdcQueryType.class , CommandsFactory :: getQueryClass ) ; }

Target:
public static void initCommandsCollection ( ) { org.ovirt.engine.core.bll.QueriesCtorsTest.queryClasses = commandsFromEnum ( org.ovirt.engine.core.common.queries.QueryType.class , CommandsFactory :: getQueryClass ) ; }
Source:
private void init ( ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.log.info ( "Initializing the DbFacade" ) ; dbFacadeLocator.configure ( this ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.instance = this ; }

Target:
public org.ovirt.engine.core.dal.dbbroker.DbEngineDialect getDbEngineDialect ( ) { return dbEngineDialect ; }
Source:
public java.lang.Integer getDisplay ( ) { return this . vmDynamic.getDisplay ( ) ; }

Target:
public org.ovirt.engine.core.common.locks.LockInfo getLockInfo ( ) { return lockInfo ; }
Source:
java.lang.String noItemsToDisplay ( java.lang.String items ) ;

Target:
java.lang.String maxAssignedVmsPerUserHelp ( ) ;
Source:
public void storagePoolName ( ) { final org.ovirt.engine.core.common.businessentities.StoragePool p = new org.ovirt.engine.core.common.businessentities.StoragePool ( ) ; p.setName ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.NAME ) ; b.setStoragePool ( p ) ; final java.lang.String s = b.getStoragePoolName ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.NAME , s ) ; }

Target:
public void storagePoolName ( ) { final org.ovirt.engine.core.common.businessentities.StoragePool p = new org.ovirt.engine.core.common.businessentities.StoragePool ( ) ; p.setName ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.NAME ) ; b.setStoragePool ( p ) ; final java.lang.String s = b.getStoragePoolName ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.NAME , s ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotDisabledLegacyPolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; usb.setType ( "legacy" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED ) , UsbPolicy.DISABLED ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotDisabledLegacyPolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; usb.setType ( UsbType.LEGACY ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED ) , UsbPolicy.DISABLED ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult externalNetworkSupported ( ) { return org.ovirt.engine.core.common.FeatureSupported.deviceCustomProperties ( version ) ? 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_NOT_SUPPORTED ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult externalNetworkSupported ( ) { return org.ovirt.engine.core.common.FeatureSupported.deviceCustomProperties ( version ) ? 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_NOT_SUPPORTED ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturn allocateVolume ( java.lang.String spUUID , java.lang.String sdUUID , java.lang.String imgGUID , java.lang.String volUUID , java.lang.String size ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturn glusterVolumeResetBrickStart ( java.lang.String volumeName , java.lang.String existingBrickDir ) ;
Source:
public java.nio.channels.SelectionKey call ( ) throws java.nio.channels.ClosedChannelException { return channel.register ( selector , ( ( java.nio.channels.SelectionKey.OP_READ ) | ( java.nio.channels.SelectionKey.OP_WRITE ) ) , client ) ; }

Target:
public java.nio.channels.SelectionKey call ( ) throws java.nio.channels.ClosedChannelException { if ( ! ( this . isOpen ( ) ) ) { throw new java.nio.channels.ClosedChannelException ( ) ; } return channel.register ( selector , ( ( java.nio.channels.SelectionKey.OP_READ ) | ( java.nio.channels.SelectionKey.OP_WRITE ) ) , client ) ; }
Source:
public org.ovirt.engine.api.v3.types.V3Templates list ( ) { return adaptList ( getDelegate ( ) :: list ) ; }

Target:
public org.ovirt.engine.api.v3.types.V3Templates list ( ) { org.ovirt.engine.api.v3.types.V3Templates templates = adaptList ( getDelegate ( ) :: list ) ; templates.getTemplates ( ) . stream ( ) . forEach ( V3TemplateHelper :: addDisksLink ) ; return templates ; }
Source:
protected void doNetworkOperation ( org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue , java.util.List < org.ovirt.engine.ui.uicommonweb.models.vms.NicWithLogicalNetworks > nicWithLogicalNetworks ) { networkCreatingManager.updateOrCreateIfNothingToUpdate ( ( ( org.ovirt.engine.core.compat.Guid ) ( returnValue.getActionReturnValue ( ) ) ) , nicWithLogicalNetworks ) ; }

Target:
protected void doNetworkOperation ( org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue , java.util.List < org.ovirt.engine.ui.uicommonweb.models.vms.VnicInstanceType > nicWithLogicalNetworks ) { networkCreatingManager.updateOrCreateIfNothingToUpdate ( ( ( org.ovirt.engine.core.compat.Guid ) ( returnValue.getActionReturnValue ( ) ) ) , nicWithLogicalNetworks ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.DetailModelProvider < org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.vms.VmGeneralModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.virtualMachineGeneralSubTabLabel ( ) , 1 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.DetailModelProvider < org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.vms.VmGeneralModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.virtualMachine.SubTabVirtualMachineGeneralPresenter.constants.virtualMachineGeneralSubTabLabel ( ) , 1 , modelProvider ) ; }
Source:
public org.ovirt.engine.api.model.Clusters list ( ) { return mapCollection ( getVdsGroups ( ) ) ; }

Target:
public org.ovirt.engine.api.model.Clusters list ( ) { return mapCollection ( getClusters ( ) ) ; }
Source:
public static boolean IsVdsAttachedToTag ( org.ovirt.engine.core.bll.Guid tagId , int vdsId ) { return ( org.ovirt.engine.core.bll.DbFacade.getInstance ( ) . getTagDAO ( ) . getAllForVdsWithIds ( org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . GetTagIdAndChildrenIds ( tagId ) ) . size ( ) ) != 0 ; }

Target:
public static boolean IsVdsAttachedToTag ( org.ovirt.engine.core.bll.Guid tagId , int vdsId ) { return ( org.ovirt.engine.core.bll.DbFacade.getInstance ( ) . getTagDao ( ) . getAllForVdsWithIds ( org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . GetTagIdAndChildrenIds ( tagId ) ) . size ( ) ) != 0 ; }
Source:
public void setPmOptions ( java.lang.String value ) { pmOptions = value ; pmOptionsMap = org.ovirt.engine.core.common.businessentities.VdsStatic.PmOptionsStringToMap ( value ) ; }

Target:
public void setPmOptions ( java.lang.String value ) { pmOptions = value ; pmOptionsMap = org.ovirt.engine.core.common.businessentities.VdsStatic.pmOptionsStringToMap ( value ) ; }
Source:
protected boolean isStorageDomainSpaceWithinThresholds ( ) { return validate ( new org.ovirt.engine.core.bll.validator.StorageDomainValidator ( org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getStorageDomain ( ) ) . isDomainWithinThresholds ( ) ) ; }

Target:
protected org.ovirt.engine.core.bll.validator.StorageDomainValidator createStorageDomainValidator ( ) { return new org.ovirt.engine.core.bll.validator.StorageDomainValidator ( org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getStorageDomain ( ) ) ; }
Source:
public void getByName ( ) { org.junit.Assert.assertEquals ( FixturesTool.PROVIDER_NAME , dao.getByName ( FixturesTool.PROVIDER_NAME ) . getName ( ) ) ; }

Target:
public void getByName ( ) { org.junit.jupiter.api.Assertions.assertEquals ( FixturesTool.PROVIDER_NAME , dao.getByName ( FixturesTool.PROVIDER_NAME ) . getName ( ) ) ; }
Source:
public void execute ( ) { selectionModel.setSelected ( values.get ( 0 ) , true ) ; }

Target:
public void execute ( ) { selectionModel.setSelected ( table.getVisibleItems ( ) . get ( 0 ) , true ) ; }
Source:
void enforceScrollPosition ( ) { tableContainer.getElement ( ) . setScrollLeft ( tableContainerHorizontalScrollPosition ) ; updateTableHeaderPosition ( ) ; }

Target:
public void onScroll ( com.google.gwt.event.dom.client.ScrollEvent event ) { tableContainerHorizontalScrollPosition = tableContainer.getElement ( ) . getScrollLeft ( ) ; updateTableHeaderPosition ( ) ; }
Source:
public void shouldDetectCpuPinning ( ) { invalidVM.setCpuPinning ( "i am pinned" ) ; org.hamcrest.MatcherAssert.assertThat ( validator.checkVmReadyForUpgrade ( invalidVM ) , org.hamcrest.CoreMatchers.hasItem ( UPGRADE_ERROR.VM_CPUS_PINNED ) ) ; }

Target:
public void shouldDetectCpuPinning ( ) { invalidVM.setCpuPinning ( "i am pinned" ) ; org.assertj.core.api.Assertions.assertThat ( validator.checkVmReadyForUpgrade ( invalidVM ) ) . contains ( UpgradeError.VM_CPUS_PINNED ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult networkExists ( org.ovirt.engine.core.compat.Guid networkId ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.ACTION_TYPE_FAILED_NETWORK_NOT_EXIST , getNicNameReplacement ( ) , java.lang.String.format ( org.ovirt.engine.core.bll.validator.VfsConfigValidator.NETWORK_ID_REPLACEMENT , networkId ) ) . when ( ( ( getNetwork ( networkId ) ) == null ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult networkExists ( org.ovirt.engine.core.compat.Guid networkId ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.ACTION_TYPE_FAILED_NETWORK_NOT_EXIST , getNicNameReplacement ( ) , java.lang.String.format ( org.ovirt.engine.core.bll.validator.VfsConfigValidator.NETWORK_ID_REPLACEMENT , networkId ) ) . when ( ( ( getNetwork ( networkId ) ) == null ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity getEntity ( ) { return ( ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity ) ( super . getEntity ( ) ) ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel ) ( getConfirmWindow ( ) ) ) ; localModel.stopProgress ( ) ; setConfirmWindow ( null ) ; }
Source:
public final boolean IsDynamicVariable ( java.lang.String strMessage ) { return org.ovirt.engine.core.utils.ErrorTranslatorImpl.startsWithVariableDefinitionPattern.matcher ( strMessage ) . matches ( ) ; }

Target:
public final boolean isDynamicVariable ( java.lang.String strMessage ) { return org.ovirt.engine.core.utils.ErrorTranslatorImpl.startsWithVariableDefinitionPattern.matcher ( strMessage ) . matches ( ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VDSGroup getVdsGroup ( ) { if ( ( _vdsGroup ) == null ) { _vdsGroup = org.ovirt.engine.core.bll.VdsGroupCommandBase.getVdsGroupDAO ( ) . get ( org.ovirt.engine.core.bll.VdsGroupCommandBase.getParameters ( ) . getVdsGroupId ( ) ) ; } return _vdsGroup ; }

Target:
public org.ovirt.engine.core.common.businessentities.VDSGroup getVdsGroup ( ) { if ( ( _vdsGroup ) == null ) { _vdsGroup = org.ovirt.engine.core.bll.VdsGroupCommandBase.getVdsGroupDao ( ) . get ( org.ovirt.engine.core.bll.VdsGroupCommandBase.getParameters ( ) . getVdsGroupId ( ) ) ; } return _vdsGroup ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getRngDevices ( ) { return getVmDeviceDao ( ) . getVmDeviceByVmIdAndType ( org.ovirt.engine.core.bll.AbstractRngDeviceCommand.getParameters ( ) . getRngDevice ( ) . getVmId ( ) , VmDeviceGeneralType.RNG ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getRngDevices ( ) { return cachedRngDevices ; }
Source:
public void updateAll ( java.lang.String procedureName , java.util.Collection < org.ovirt.engine.core.common.businessentities.VdsDynamic > entities ) { updateAll ( entities ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VdsDynamic get ( org.ovirt.engine.core.compat.Guid id ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "vds_id" , id ) ; return getCallsHandler ( ) . executeRead ( "GetVdsDynamicByVdsId" , org.ovirt.engine.core.dao.VdsDynamicDAODbFacadeImpl.VdcDynamicRowMapper.instance , parameterSource ) ; }
Source:
protected void executeCommand ( ) { super . executeCommand ( ) ; getLibvirtSecretDao ( ) . update ( getParameters ( ) . getLibvirtSecret ( ) ) ; registerLibvirtSecret ( ) ; setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { super . executeCommand ( ) ; libvirtSecretDao.update ( getParameters ( ) . getLibvirtSecret ( ) ) ; registerLibvirtSecret ( ) ; setSucceeded ( true ) ; }
Source:
protected void initTableColumns ( org.ovirt.engine.ui.webadmin.ApplicationConstants constants ) { hostsTable.addEntityModelColumn ( new org.ovirt.engine.ui.common.widget.table.column.EntityModelTextColumn < java.lang.String > ( ) { @ java.lang.Override public java.lang.String getText ( java.lang.String hostAddress ) { return hostAddress ; } } , constants.detachGlusterHostsHostAddress ( ) ) ; }

Target:
protected void initTableColumns ( org.ovirt.engine.ui.webadmin.ApplicationConstants constants ) { hostsTable.addEntityModelColumn ( new org.ovirt.engine.ui.common.widget.table.column.AbstractEntityModelTextColumn < java.lang.String > ( ) { @ java.lang.Override public java.lang.String getText ( java.lang.String hostAddress ) { return hostAddress ; } } , constants.detachGlusterHostsHostAddress ( ) ) ; }