auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel model ) { return org.ovirt.engine.ui.webadmin.widget.table.column.NetworkRoleColumnHelper.getTooltip ( ( model.isVmNetwork ( ) ? java.util.Collections.singletonMap ( vmImage , constants.vmItemInfo ( ) ) : java.util.Collections.< com.google.gwt.safehtml.shared.SafeHtml , java.lang.String > emptyMap ( ) ) ) ; }

Target:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel clusterNetworkModel ) { return org.ovirt.engine.ui.webadmin.widget.table.column.NetworkRoleColumnHelper.getTooltip ( ( clusterNetworkModel.isVmNetwork ( ) ? java.util.Collections.singletonMap ( vmImage , constants.vmItemInfo ( ) ) : java.util.Collections.< com.google.gwt.safehtml.shared.SafeHtml , java.lang.String > emptyMap ( ) ) ) ; }
Source:
protected org.ovirt.engine.core.extensions.mgr.ExtensionsManager getExtensionsManager ( ) { return org.ovirt.engine.core.utils.extensionsmgr.EngineExtensionsManager.getInstance ( ) ; }

Target:
public java.util.Map < java.lang.String , java.lang.Object > getDomainList ( ) { return org.ovirt.engine.core.aaa.SSOOAuthServiceUtils.getDomainList ( org.ovirt.engine.core.bll.GetDomainListQuery.getSessionDataContainer ( ) . getSsoAccessToken ( org.ovirt.engine.core.bll.GetDomainListQuery.getParameters ( ) . getSessionId ( ) ) ) ; }
Source:
public org.ovirt.engine.api.model.Host get ( ) { if ( isForce ( ) ) { performAction ( VdcActionType.RefreshHostCapabilities , new org.ovirt.engine.core.common.action.VdsActionParameters ( guid ) ) ; } return performGet ( VdcQueryType.GetVdsByVdsId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; }

Target:
public org.ovirt.engine.api.model.Host get ( ) { if ( isForce ( ) ) { performAction ( VdcActionType.RefreshHostCapabilities , new org.ovirt.engine.core.common.action.VdsActionParameters ( guid ) ) ; } org.ovirt.engine.api.model.Host host = performGet ( VdcQueryType.GetVdsByVdsId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; deprecatedAddLinksToAgents ( host ) ; return host ; }
Source:
public void setapp_list ( java.lang.String value ) { this . mVmDynamic.setapp_list ( value ) ; }

Target:
public void setMigratingToVds ( org.ovirt.engine.core.compat.NGuid value ) { this . vmDynamic.setmigrating_to_vds ( value ) ; }
Source:
public void setSelectedItem ( org.ovirt.engine.core.compat.Guid id ) { setSelectedItem ( treeItemById.get ( id ) ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.models.SystemTreeItemModel getItemById ( org.ovirt.engine.core.compat.Guid id ) { return treeItemById.get ( id ) ; }
Source:
public void testAddValueEnum ( ) { paramSource.addValue ( paramName , org.ovirt.engine.core.dal.dbbroker.CustomMapSqlParameterSourceTest.TestEnum.TWO ) ; org.junit.Assert.assertEquals ( "wrong value returned from parameter source" , org.ovirt.engine.core.dal.dbbroker.CustomMapSqlParameterSourceTest.TestEnum.TWO.ordinal ( ) , paramSource.getValue ( paramName ) ) ; }

Target:
public void testAddValueEnum ( ) { paramSource.addValue ( paramName , org.ovirt.engine.core.dal.dbbroker.CustomMapSqlParameterSourceTest.TestEnum.TWO ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.core.dal.dbbroker.CustomMapSqlParameterSourceTest.TestEnum.TWO.ordinal ( ) , paramSource.getValue ( paramName ) , "wrong value returned from parameter source" ) ; }
Source:
public void allImagesAreSnapshots ( ) { disk1.setActive ( false ) ; disk2.setActive ( false ) ; org.junit.Assert.assertThat ( validator.imagesAreSnapshots ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void allImagesAreSnapshots ( ) { disk1.setActive ( false ) ; disk2.setActive ( false ) ; org.hamcrest.MatcherAssert.assertThat ( validator.imagesAreSnapshots ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
protected java.lang.Object ProvideDetailModelEntity ( java.lang.Object selectedItem ) { return selectedItem ; }

Target:
protected java.lang.Object provideDetailModelEntity ( java.lang.Object selectedItem ) { return selectedItem ; }
Source:
private void Cancel ( ) { setWindow ( null ) ; ResetData ( ) ; }

Target:
private void cancel ( ) { setWindow ( null ) ; org.ovirt.engine.ui.frontend.Frontend.Unsubscribe ( ) ; }
Source:
public static org.ovirt.engine.api.model.WatchdogModel map ( org.ovirt.engine.core.common.businessentities.VmWatchdogType model ) { switch ( model ) { case i6300esb : return org.ovirt.engine.api.model.WatchdogModel.I6300ESB ; default : return null ; } }

Target:
public static org.ovirt.engine.api.model.WatchdogModel map ( org.ovirt.engine.core.common.businessentities.VmWatchdogType model ) { switch ( model ) { case i6300esb : return org.ovirt.engine.api.model.WatchdogModel.I6300ESB ; case diag288 : return org.ovirt.engine.api.model.WatchdogModel.DIAG288 ; default : return null ; } }
Source:
public org.ovirt.engine.core.utils.ISingleAsyncOperation CreateSingleAsyncOperation ( ) { return new org.ovirt.engine.core.bll.storage.ConntectVDSToPoolAndDomains ( ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDS > ) ( vdsList ) ) , masterDomain , storagePool ) ; }

Target:
public org.ovirt.engine.core.utils.ISingleAsyncOperation createSingleAsyncOperation ( ) { return new org.ovirt.engine.core.bll.storage.ConntectVDSToPoolAndDomains ( ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDS > ) ( vdsList ) ) , masterDomain , storagePool ) ; }
Source:
public void setCipherSuite ( java.lang.String cipherSuite ) { this . cipherSuite = cipherSuite ; }

Target:
public void setLocalizedStrings ( java.lang.String [ ] localizedStrings ) { this . consoleOptions.setLocalizedStrings ( localizedStrings ) ; }
Source:
public void diskInterfaceSupportedByOs ( ) { org.ovirt.engine.core.common.businessentities.VM vm = org.ovirt.engine.core.bll.validator.storage.DiskVmElementValidatorTest.createVM ( org.ovirt.engine.core.bll.validator.storage.DiskVmElementValidatorTest.OS_WITH_SUPPORTED_INTERFACES ) ; initializeOsRepository ( DiskInterface.VirtIO ) ; dve.setDiskInterface ( DiskInterface.VirtIO ) ; org.junit.Assert.assertThat ( validator.isDiskInterfaceSupported ( vm ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void diskInterfaceSupportedByOs ( ) { org.ovirt.engine.core.common.businessentities.VM vm = org.ovirt.engine.core.bll.validator.storage.DiskVmElementValidatorTest.createVM ( org.ovirt.engine.core.bll.validator.storage.DiskVmElementValidatorTest.OS_WITH_SUPPORTED_INTERFACES ) ; initializeInterfaceValidation ( DiskInterface.VirtIO ) ; dve.setDiskInterface ( DiskInterface.VirtIO ) ; org.junit.Assert.assertThat ( validator.isDiskInterfaceSupported ( vm ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public abstract void updateHosts ( ) ;

Target:
public void setHostedEngineHostModel ( org.ovirt.engine.ui.uicommonweb.models.hosts.HostedEngineHostModel hostedEngineHostModel ) { this . hostedEngineHostModel = hostedEngineHostModel ; }
Source:
public void onExport ( ) { org.ovirt.engine.ui.uicommonweb.models.vms.ExportVmModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ExportVmModel ) ( getWindow ( ) ) ) ; if ( ! ( model.validate ( ) ) ) { return ; } model.startProgress ( null ) ; getTemplatesNotPresentOnExportDomain ( ) ; }

Target:
public void onExport ( ) { org.ovirt.engine.ui.uicommonweb.models.vms.ExportVmModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ExportVmModel ) ( org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel.getWindow ( ) ) ) ; if ( ! ( model.validate ( ) ) ) { return ; } model.startProgress ( null ) ; getTemplatesNotPresentOnExportDomain ( ) ; }
Source:
public void testPhasesCorrelation ( ) { for ( org.ovirt.engine.api.model.ImageTransferPhase phase : org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.storage.ImageTransferPhase.values ( ) ) { try { org.ovirt.engine.api.model.ImageTransferPhase.valueOf ( phase.name ( ) ) ; } catch ( java.lang.Exception ex ) { fail ( ) ; } } }

Target:
public void testPhasesCorrelation ( ) { for ( org.ovirt.engine.api.model.ImageTransferPhase phase : org.ovirt.engine.api.model.org.ovirt.engine.core.common.businessentities.storage.ImageTransferPhase.values ( ) ) { try { org.ovirt.engine.api.model.ImageTransferPhase.valueOf ( phase.name ( ) ) ; } catch ( java.lang.Exception ex ) { org.junit.Assert.fail ( ) ; } } }
Source:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; usb.setType ( UsbType.NATIVE ) ; org.junit.Assert.assertEquals ( UsbPolicy.ENABLED_NATIVE , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE ) ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; usb.setType ( UsbType.NATIVE ) ; org.junit.jupiter.api.Assertions.assertEquals ( UsbPolicy.ENABLED_NATIVE , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE ) ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.DiskImage > getAllImageSnapshots ( org.ovirt.engine.core.common.businessentities.DiskImage diskImage ) { return org.ovirt.engine.core.bll.ImagesHandler.getAllImageSnapshots ( diskImage.getImageId ( ) , diskImage.getImageTemplateId ( ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > getAllImageSnapshots ( org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage ) { return org.ovirt.engine.core.bll.ImagesHandler.getAllImageSnapshots ( diskImage.getImageId ( ) ) ; }
Source:
public void setEntityNames ( java.util.List < java.lang.String > entityNames ) { this . entityNames = entityNames ; if ( entityNames == null ) { this . entityNames = new java.util.ArrayList < > ( ) ; } }

Target:
public void setVmEntityNames ( java.util.List < java.lang.String > vmEntityNames ) { this . vmEntityNames = vmEntityNames ; if ( vmEntityNames == null ) { this . vmEntityNames = new java.util.ArrayList < > ( ) ; } }
Source:
private org.ovirt.engine.core.common.businessentities.StoragePool createStoragePool ( ) { if ( ( storagePool ) == null ) { storagePool = new org.ovirt.engine.core.common.businessentities.StoragePool ( ) ; storagePool.setId ( org.ovirt.engine.core.bll.AddVmCommandTest.STORAGE_POOL_ID ) ; } return storagePool ; }

Target:
private org.ovirt.engine.core.common.businessentities.StoragePool createStoragePool ( ) { if ( ( storagePool ) == null ) { storagePool = new org.ovirt.engine.core.common.businessentities.StoragePool ( ) ; storagePool.setId ( org.ovirt.engine.core.bll.AddVmCommandTest.STORAGE_POOL_ID ) ; storagePool.setStatus ( StoragePoolStatus.Up ) ; } return storagePool ; }
Source:
public void testRefreshLightWeight ( ) throws java.lang.Exception { setupMocks ( ) ; glusterManager.refreshLightWeightData ( ) ; verifyMocksForLightWeight ( ) ; }

Target:
public void testRefreshLightWeight ( ) throws java.lang.Exception { createCluster ( Version.v3_2 ) ; setupMocks ( ) ; glusterManager.refreshLightWeightData ( ) ; verifyMocksForLightWeight ( ) ; }
Source:
protected void setActionMessageParameters ( ) { switch ( getParameters ( ) . getAction ( ) ) { case START : addCanDoActionMessage ( EngineMessage.VAR__ACTION__START ) ; break ; default : break ; } addCanDoActionMessage ( EngineMessage.VAR__TYPE__GLUSTER_BRICK ) ; }

Target:
protected void setActionMessageParameters ( ) { switch ( getParameters ( ) . getAction ( ) ) { case START : addValidationMessage ( EngineMessage.VAR__ACTION__START ) ; break ; default : break ; } addValidationMessage ( EngineMessage.VAR__TYPE__GLUSTER_BRICK ) ; }
Source:
public void setvmt_name ( java.lang.String value ) { this . vmt_nameField = value ; }

Target:
public void setVmtGuid ( org.ovirt.engine.core.compat.Guid value ) { this . vmStatic.setvmt_guid ( value ) ; }
Source:
public void internalLockedAllowed ( ) { testInternalExecution ( StorageDomainStatus.Locked ) ; canDoActionSucceeds ( ) ; noIllegalStatusMessage ( ) ; }

Target:
public void internalLockedAllowed ( ) { internalActionAllowed ( StorageDomainStatus.Locked ) ; }
Source:
private boolean checkFreeSpace ( ) { if ( ! ( hasFreeSpace ( org.ovirt.engine.core.bll.AddDiskCommand.getStorageDomain ( ) ) ) ) { return failCanDoAction ( VdcBllMessages.ACTION_TYPE_FAILED_DISK_SPACE_LOW ) ; } return true ; }

Target:
protected boolean doesStorageDomainhaveSpaceForRequest ( org.ovirt.engine.core.common.businessentities.storage_domains storageDomain ) { return validate ( new org.ovirt.engine.core.bll.validator.StorageDomainValidator ( storageDomain ) . isDomainHasSpaceForRequest ( getDiskImageInfo ( ) . getSizeInGigabytes ( ) ) ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase Logoff ( org.ovirt.engine.core.common.action.LogoutUserParameters parameters ) { return RunAction ( VdcActionType.LogoutUser , parameters ) ; }

Target:
public org.ovirt.engine.core.common.action.VdcReturnValueBase logoff ( org.ovirt.engine.core.common.action.LogoutUserParameters parameters ) { return RunAction ( VdcActionType.LogoutUser , parameters ) ; }
Source:
public void canDoActionFailsOnNull ( ) { cmd = createTestCommand ( null , 0 ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }

Target:
public void canDoActionFailsOnNull ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( null , 0 ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }
Source:
public static org.ovirt.engine.core.searchbackend.ISyntaxChecker CreateADSyntaxChecker ( java.lang.String AuthenticationMethod ) { org.ovirt.engine.core.searchbackend.SyntaxCheckerFactory.ConfigAuthenticationMethod = AuthenticationMethod ; return org.ovirt.engine.core.searchbackend.SyntaxCheckerFactory.adSyntaxChecker ; }

Target:
public static org.ovirt.engine.core.searchbackend.ISyntaxChecker createADSyntaxChecker ( java.lang.String AuthenticationMethod ) { org.ovirt.engine.core.searchbackend.SyntaxCheckerFactory.ConfigAuthenticationMethod = AuthenticationMethod ; return org.ovirt.engine.core.searchbackend.SyntaxCheckerFactory.adSyntaxChecker ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetTagByTagIdQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . GetTagById ( org.ovirt.engine.core.bll.GetTagByTagIdQuery.getParameters ( ) . getId ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetTagByTagIdQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . getTagById ( org.ovirt.engine.core.bll.GetTagByTagIdQuery.getParameters ( ) . getId ( ) ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.TaskInfoReturnForXmlRpc getTaskInfo ( java.lang.String taskUUID ) ;

Target:
org.ovirt.engine.core.vdsbroker.gluster.GlusterServicesReturnForXmlRpc glusterServicesList ( org.ovirt.engine.core.compat.Guid serverId , java.lang.String [ ] serviceNames ) ;
Source:
public void testBadGuid ( ) { try { new org.ovirt.engine.api.restapi.resource.externalhostproviders.BackendExternalHostProviderResource ( "foo" ) ; org.junit.Assert.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testBadGuid ( ) { try { new org.ovirt.engine.api.restapi.resource.externalhostproviders.BackendExternalHostProviderResource ( "foo" ) ; org.junit.jupiter.api.Assertions.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }
Source:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.v3.types.V3Event event ) { return adaptAdd ( delegate :: add , event ) ; }

Target:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.v3.types.V3Event event ) { return adaptAdd ( getDelegate ( ) :: add , event ) ; }
Source:
java.util.Map < java.lang.Boolean , java.util.List < org.ovirt.engine.core.common.businessentities.VM > > getForDisk ( org.ovirt.engine.core.compat.Guid disk ) ;

Target:
java.util.Map < java.lang.Boolean , java.util.List < org.ovirt.engine.core.common.businessentities.VM > > getForDisk ( org.ovirt.engine.core.compat.Guid disk , boolean includeVmsSnapshotAttachedTo ) ;
Source:
public java.lang.String getPmProxyPreferences ( ) { return vdsStatic.getPmProxyPreferences ( ) ; }

Target:
public void setFenceProxySources ( java.util.List < org.ovirt.engine.core.common.businessentities.pm.FenceProxySourceType > fenceProxySources ) { vdsStatic.setFenceProxySources ( fenceProxySources ) ; }
Source:
protected org.ovirt.engine.core.common.action.VdcActionType getChildActionType ( ) { return org.ovirt.engine.core.common.action.VdcActionType.RemoveSnapshotSingleDisk ; }

Target:
public org.ovirt.engine.core.bll.tasks.interfaces.CommandCallBack getCallBack ( ) { return new org.ovirt.engine.core.bll.RemoveSnapshotCommandCallback ( ) ; }
Source:
private void assertSizes ( int i , int j ) { assertEquals ( "unexpected primary map size" , i , map.size ( ) ) ; assertEquals ( "unexpected secondary map size" , j , map.reapableSize ( ) ) ; }

Target:
private void assertSizes ( int i , int j ) { org.junit.Assert.assertEquals ( "unexpected primary map size" , i , map.size ( ) ) ; org.junit.Assert.assertEquals ( "unexpected secondary map size" , j , map.reapableSize ( ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > getAllForVdsGroup ( org.ovirt.engine.core.compat.Guid id ) { return getCallsHandler ( ) . executeReadList ( "GetVmTemplateByVdsGroupId" , org.ovirt.engine.core.dao.VmTemplateDaoImpl.VMTemplateRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "vds_group_id" , id ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > getAllForCluster ( org.ovirt.engine.core.compat.Guid id ) { return getCallsHandler ( ) . executeReadList ( "GetVmTemplateByClusterId" , org.ovirt.engine.core.dao.VmTemplateDaoImpl.VMTemplateRowMapper.instance , getCustomMapSqlParameterSource ( ) . addValue ( "cluster_id" , id ) ) ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { Cancel ( ) ; StopProgress ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { Cancel ( ) ; StopProgress ( ) ; }
Source:
private void endUnlockOps ( ) { if ( isVmInDb ) { org.ovirt.engine.core.bll.VmHandler.UnLockVm ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getVm ( ) ) ; } org.ovirt.engine.core.bll.VmTemplateHandler.UnLockVmTemplate ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getVmTemplateId ( ) ) ; }

Target:
private void endUnlockOps ( ) { if ( isVmInDb ) { org.ovirt.engine.core.bll.VmHandler.unLockVm ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getVm ( ) ) ; } org.ovirt.engine.core.bll.VmTemplateHandler.unlockVmTemplate ( org.ovirt.engine.core.bll.AddVmTemplateCommand.getVmTemplateId ( ) ) ; }
Source:
public java.lang.Void runInTransaction ( ) { getDbFacade ( ) . getVdsCpuStatisticsDAO ( ) . massSaveCpuStatistics ( cpuStatisticsToSave , _vds.getId ( ) ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { getDbFacade ( ) . getVdsNumaNodeDAO ( ) . massUpdateNumaNodeStatistics ( vdsNumaNodesToSave ) ; return null ; }
Source:
public void setguest_requested_memory ( java.lang.Integer value ) { this . mVmDynamic.setguest_requested_memory ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "guest_requested_memory" ) ) ; }

Target:
public void setGuestAgentNicsHash ( int guestAgentNicsHash ) { vmDynamic.setGuestAgentNicsHash ( guestAgentNicsHash ) ; }
Source:
public void discardFieldsAreParsed ( ) { testDiscardFieldsParsing ( Version.v4_1 , 1024L , false ) ; }

Target:
public void discardMaxBytesFieldIsParsed ( ) { testDiscardFieldParsing ( Version.v4_1 , 1024L ) ; }
Source:
public void setvmt_mem_size_mb ( int value ) { this . vmt_mem_size_mbField = value ; }

Target:
public java.lang.String getVmtName ( ) { return this . vmtName ; }
Source:
public void testSave ( ) { dao.save ( newOption ) ; org.ovirt.engine.core.common.businessentities.VdcOption result = dao.getByNameAndVersion ( newOption.getOptionName ( ) , newOption.getVersion ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( newOption , result ) ; }

Target:
public void testSave ( ) { dao.save ( newOption ) ; org.ovirt.engine.core.common.businessentities.VdcOption result = dao.getByNameAndVersion ( newOption.getOptionName ( ) , newOption.getVersion ( ) ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertEquals ( newOption , result ) ; }
Source:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; return performAction ( VdcActionType.DetachDiskFromVm , new org.ovirt.engine.core.common.action.AttachDetachVmDiskParameters ( vmId , guid ) ) ; }

Target:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; return performAction ( VdcActionType.DetachDiskFromVm , new org.ovirt.engine.core.common.action.AttachDetachVmDiskParameters ( new org.ovirt.engine.core.common.businessentities.storage.DiskVmElement ( guid , vmId ) ) ) ; }
Source:
private static void copyProperties ( org.ovirt.engine.core.common.businessentities.storage.DiskVmElement source , org.ovirt.engine.core.common.businessentities.storage.DiskVmElement dest ) { dest.setBoot ( source.isBoot ( ) ) ; dest.setDiskInterface ( source.getDiskInterface ( ) ) ; }

Target:
private static void copyProperties ( org.ovirt.engine.core.common.businessentities.storage.DiskVmElement source , org.ovirt.engine.core.common.businessentities.storage.DiskVmElement dest ) { dest.setBoot ( source.isBoot ( ) ) ; dest.setPassDiscard ( source.isPassDiscard ( ) ) ; dest.setDiskInterface ( source.getDiskInterface ( ) ) ; }
Source:
public void testCanDoActionMasterPreparingForMaintenance ( ) { validateCanDoActionDomainInProcess ( StorageDomainStatus.PreparingForMaintenance , StorageDomainStatus.Active , StorageDomainStatus.PreparingForMaintenance ) ; }

Target:
public void testValidateMasterPreparingForMaintenance ( ) { validateDomainInProcess ( StorageDomainStatus.PreparingForMaintenance , StorageDomainStatus.Active , StorageDomainStatus.PreparingForMaintenance ) ; }
Source:
protected org.ovirt.engine.core.compat.Version getClusterCompatibilityVersion ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup cluster = getModel ( ) . getSelectedCluster ( ) ; if ( cluster == null ) { return null ; } return cluster.getcompatibility_version ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Version getClusterCompatibilityVersion ( ) { org.ovirt.engine.core.common.businessentities.VDSGroup cluster = getModel ( ) . getSelectedCluster ( ) ; if ( cluster == null ) { return null ; } return cluster.getCompatibilityVersion ( ) ; }
Source:
public static java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageType > getStoragePoolTypeList ( ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageType > ( java.util.Arrays.asList ( new org.ovirt.engine.core.common.businessentities.StorageType [ ] { org.ovirt.engine.core.common.businessentities.StorageType.NFS , org.ovirt.engine.core.common.businessentities.StorageType.ISCSI , org.ovirt.engine.core.common.businessentities.StorageType.FCP , org.ovirt.engine.core.common.businessentities.StorageType.LOCALFS , org.ovirt.engine.core.common.businessentities.StorageType.POSIXFS , org.ovirt.engine.core.common.businessentities.StorageType.GLUSTERFS } ) ) ; }

Target:
public static void getVmWatchdogTypes ( int osId , org.ovirt.engine.core.compat.Version version , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.OsRepository , new org.ovirt.engine.core.common.queries.OsQueryParameters ( org.ovirt.engine.core.common.queries.OsQueryParameters.OsRepositoryVerb.GetVmWatchdogTypes , osId , version ) , asyncQuery ) ; }
Source:
public void testGetByNicId ( ) { org.ovirt.engine.core.common.businessentities.network.HostNicVfsConfig result = dao.getByNicId ( FixturesTool.VDS_NETWORK_INTERFACE ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( FixturesTool.VDS_NETWORK_INTERFACE , result.getNicId ( ) ) ; }

Target:
public void testGetByNicId ( ) { org.ovirt.engine.core.common.businessentities.network.HostNicVfsConfig result = dao.getByNicId ( FixturesTool.VDS_NETWORK_INTERFACE ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertEquals ( FixturesTool.VDS_NETWORK_INTERFACE , result.getNicId ( ) ) ; }
Source:
public void setCpuOverCommitTimestamp ( java.util.Date value ) { mVdsStatistics.setcpu_over_commit_time_stamp ( value ) ; }

Target:
public void setCpuOverCommitTimestamp ( java.util.Date value ) { mVdsStatistics.setCpuOverCommitTimeStamp ( value ) ; }
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 ( ) . volumeEventSubTabLabel ( ) , 4 , ginjector.getSubTabDataCenterEventModelProvider ( ) , org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; }

Target:
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 ( ) . volumeEventSubTabLabel ( ) , 4 , ginjector.getSubTabVolumeEventModelProvider ( ) , org.ovirt.engine.ui.common.widget.Align.RIGHT ) ; }
Source:
public void canDoActionSucceeds ( ) { cmd = createTestCommand ( stoppedVolumeId ) ; org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }

Target:
public void canDoActionFails ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.DeleteGlusterVolumeCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeActionParameters ( startedVolumeId , false ) ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }
Source:
public static org.ovirt.engine.core.bll.provider.storage.OpenStackVolumeProviderProxy getFromStorageDomainId ( org.ovirt.engine.core.compat.Guid storageDomainId ) { org.ovirt.engine.core.common.businessentities.StorageDomainStatic storageDomainStatic = getDbFacade ( ) . getStorageDomainStaticDao ( ) . get ( storageDomainId ) ; if ( storageDomainStatic != null ) { return org.ovirt.engine.core.bll.provider.storage.OpenStackVolumeProviderProxy.getProviderFromStorageDomainStatic ( storageDomainStatic ) ; } return null ; }

Target:
public static org.ovirt.engine.core.bll.provider.storage.OpenStackVolumeProviderProxy getFromStorageDomainId ( org.ovirt.engine.core.compat.Guid storageDomainId , org.ovirt.engine.core.bll.provider.ProviderProxyFactory providerProxyFactory ) { org.ovirt.engine.core.common.businessentities.StorageDomainStatic storageDomainStatic = getDbFacade ( ) . getStorageDomainStaticDao ( ) . get ( storageDomainId ) ; if ( storageDomainStatic != null ) { return org.ovirt.engine.core.bll.provider.storage.OpenStackVolumeProviderProxy.getProviderFromStorageDomainStatic ( storageDomainStatic , providerProxyFactory ) ; } return null ; }
Source:
public void testGetAllActiveForStorageDomain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > result = dao.getAllActiveForStorageDomain ( FixturesTool.STORAGE_DOMAIN_SCALE_SD5 ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllActiveForStorageDomain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > result = dao.getAllActiveForStorageDomain ( FixturesTool.STORAGE_DOMAIN_SCALE_SD5 ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertFalse ( result.isEmpty ( ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > getAllByVMName ( java.lang.String vmName , org.ovirt.engine.core.compat.Guid userID , boolean isFiltered ) { return null ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > getAllByVMId ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.compat.Guid userID , boolean isFiltered ) { return null ; }
Source:
public void onFailed ( ) { }

Target:
public java.util.List < org.ovirt.engine.core.bll.quota.QuotaConsumptionParameter > getQuotaStorageConsumptionParameters ( ) { return java.util.Collections.emptyList ( ) ; }
Source:
public void Initialize ( ) { super . Initialize ( ) ; setHash ( ( ( getHashName ( ) ) + ( new java.util.Date ( ) ) ) ) ; behavior.setHash ( getHash ( ) ) ; InitDataCenter ( ) ; }

Target:
public void initialize ( ) { super . initialize ( ) ; setHash ( ( ( getHashName ( ) ) + ( new java.util.Date ( ) ) ) ) ; behavior.setHash ( getHash ( ) ) ; initDataCenter ( ) ; }
Source:
protected void endWithFailure ( ) { removeNetwork ( ) ; removeImages ( ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmTemplateDao ( ) . remove ( getVmTemplateId ( ) ) ; setSucceeded ( true ) ; }

Target:
protected void endActionOnAllImageGroups ( ) { for ( org.ovirt.engine.core.common.action.VdcActionParametersBase p : getParameters ( ) . getImagesParameters ( ) ) { p.setTaskGroupSuccess ( getParameters ( ) . getTaskGroupSuccess ( ) ) ; getBackend ( ) . EndAction ( getImagesActionType ( ) , p ) ; } }
Source:
protected void ConcreteStartPollingTask ( ) { org.ovirt.engine.core.bll.CommandMultiAsyncTasks entityInfo = GetCommandMultiAsyncTasks ( ) ; entityInfo.StartPollingTask ( getVdsmTaskId ( ) ) ; }

Target:
public void concreteStartPollingTask ( ) { org.ovirt.engine.core.bll.CommandMultiAsyncTasks entityInfo = GetCommandMultiAsyncTasks ( ) ; entityInfo.StartPollingTask ( getVdsmTaskId ( ) ) ; }
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 ) { updateCloudInitVisibility ( object ) ; }

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 ) { updateCloudInitVisibility ( object ) ; if ( java.lang.Boolean.TRUE.equals ( object.getIsCloudInitEnabled ( ) . getEntity ( ) ) ) { runOnceModel.autoSetVmHostname ( ) ; } }
Source:
public void canDoAction_duplicateVm_Test ( ) { affinityGroup.getEntityIds ( ) . add ( vmId ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , VdcBllMessages.ACTION_TYPE_FAILED_DUPLICTE_VM_IN_AFFINITY_GROUP ) ; }

Target:
public void canDoAction_duplicateVm_Test ( ) { affinityGroup.getEntityIds ( ) . add ( vmId ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.ACTION_TYPE_FAILED_DUPLICTE_VM_IN_AFFINITY_GROUP ) ; }
Source:
public void discardIsTrueWhenDiscardAfterDeleteIsTrueAndDomainSupportsDiscard ( ) { assertDiscardValue ( true , true , true ) ; }

Target:
public void discardIsFalseWhenDiscardAfterDeleteIsTrueAndDomainDoesNotSupportDiscard ( ) { assertDiscardValue ( true , false , false , false ) ; assertDiscardValue ( true , null , false , false ) ; }
Source:
public void getOneSnapshotsByMemoryConf ( ) { org.ovirt.engine.core.common.businessentities.Snapshot snapshot = new org.ovirt.engine.core.common.businessentities.Snapshot ( ) ; snapshot.setMemoryDiskId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; snapshot.setMetadataDiskId ( org.ovirt.engine.core.dao.SnapshotDaoTest.EXISTING_MEMORY_CONF_DISK_ID ) ; org.junit.Assert.assertEquals ( 1 , dao.getNumOfSnapshotsByDisks ( snapshot ) ) ; }

Target:
public void getOneSnapshotsByMemoryConf ( ) { org.ovirt.engine.core.common.businessentities.Snapshot snapshot = new org.ovirt.engine.core.common.businessentities.Snapshot ( ) ; snapshot.setMemoryDiskId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; snapshot.setMetadataDiskId ( org.ovirt.engine.core.dao.SnapshotDaoTest.EXISTING_MEMORY_CONF_DISK_ID ) ; org.junit.jupiter.api.Assertions.assertEquals ( 1 , dao.getNumOfSnapshotsByDisks ( snapshot ) ) ; }
Source:
public static java.util.Map < org.ovirt.engine.core.common.utils.Pair < java.lang.Integer , org.ovirt.engine.core.compat.Version > , java.util.Set < java.lang.String > > getDiskHotpluggableInterfacesMap ( ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.diskHotpluggableInterfacesMap ; }

Target:
public java.util.Map < org.ovirt.engine.core.common.utils.Pair < java.lang.Integer , org.ovirt.engine.core.compat.Version > , java.util.Set < java.lang.String > > getDiskHotpluggableInterfacesMap ( ) { return diskHotpluggableInterfacesMap ; }
Source:
public void setDedicatedVmForVds ( org.ovirt.engine.core.compat.Guid value ) { vmStatic.setDedicatedVmForVds ( value ) ; }

Target:
public void setDedicatedVmForVdsList ( java.util.List < org.ovirt.engine.core.compat.Guid > value ) { vmStatic.setDedicatedVmForVdsList ( value ) ; }
Source:
protected java.util.List < org.ovirt.engine.api.model.CpuProfile > getCpuProfilesCollection ( ) { return getBackendCollection ( QueryType.GetAllCpuProfiles , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.api.model.CpuProfile > getCpuProfilesCollection ( ) { return getBackendCollection ( QueryType.GetAllCpuProfiles , new org.ovirt.engine.core.common.queries.QueryParametersBase ( ) ) ; }
Source:
public void queryFailed ( ) { getWindow ( ) . stopProgress ( ) ; cancel ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.userportal.AttachCdModel attachCdModel = ( ( org.ovirt.engine.ui.uicommonweb.models.userportal.AttachCdModel ) ( result.getState ( ) ) ) ; attachCdModel.stopProgress ( ) ; cancel ( ) ; }
Source:
public org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterVolumeGeoRepSessionDelete ( java.lang.String volumeName , java.lang.String remoteHost , java.lang.String remoteVolumeName ) { try { return new org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc ( vdsServer.glusterVolumeGeoRepSessionDelete ( volumeName , remoteHost , remoteVolumeName ) ) ; } catch ( java.lang.reflect.UndeclaredThrowableException ute ) { throw new org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcRunTimeException ( ute ) ; } }

Target:
public org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatusForXmlRpc glusterVolumeGeoRepSessionList ( java.lang.String volumeName ) { try { java.util.Map < java.lang.String , java.lang.Object > response ; response = vdsServer.glusterVolumeGeoRepSessionList ( volumeName ) ; return new org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatusForXmlRpc ( response ) ; } catch ( java.lang.reflect.UndeclaredThrowableException ute ) { throw new org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcRunTimeException ( ute ) ; } }
Source:
private org.ovirt.engine.core.common.businessentities.Provider createProvider ( java.lang.String name ) { org.ovirt.engine.core.common.businessentities.Provider p = org.mockito.Mockito.mock ( org.ovirt.engine.core.common.businessentities.Provider.class ) ; org.mockito.Mockito.when ( p.getName ( ) ) . thenReturn ( name ) ; return p ; }

Target:
private org.ovirt.engine.core.common.businessentities.Provider < org.ovirt.engine.core.common.businessentities.Provider.AdditionalProperties > createProvider ( java.lang.String name ) { org.ovirt.engine.core.common.businessentities.Provider < org.ovirt.engine.core.common.businessentities.Provider.AdditionalProperties > p = org.mockito.Mockito.mock ( org.ovirt.engine.core.common.businessentities.Provider.class ) ; org.mockito.Mockito.when ( p.getName ( ) ) . thenReturn ( name ) ; return p ; }
Source:
public void validate_vmNotExists_Test ( ) { org.mockito.Mockito.doReturn ( null ) . when ( vmStaticDao ) . get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_INVALID_ENTITY_FOR_AFFINITY_GROUP ) ; }

Target:
public void validate_vmNotExists_Test ( ) { org.mockito.Mockito.doReturn ( null ) . when ( vmStaticDao ) . get ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_INVALID_ENTITY_FOR_AFFINITY_GROUP ) ; }
Source:
private org.ovirt.engine.ui.uicommonweb.action.UiVdcAction createAction ( boolean showErrorDialog ) { return new org.ovirt.engine.ui.uicommonweb.action.UiVdcAction ( ACTION_TYPE , new org.ovirt.engine.core.common.action.VdcActionParametersBase ( ) , model , showErrorDialog ) ; }

Target:
private org.ovirt.engine.ui.uicommonweb.action.UiVdcAction createAction ( boolean showErrorDialog ) { return new org.ovirt.engine.ui.uicommonweb.action.UiVdcAction ( ACTION_TYPE , new org.ovirt.engine.core.common.action.ActionParametersBase ( ) , model , showErrorDialog ) ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.vdsbroker.VmReplicateDiskFinishVDSCommand.getBroker ( ) . diskReplicateFinish ( org.ovirt.engine.core.vdsbroker.vdsbroker.VmReplicateDiskFinishVDSCommand.getParameters ( ) . getVmId ( ) . toString ( ) , org.ovirt.engine.core.vdsbroker.vdsbroker.VmReplicateDiskFinishVDSCommand.getSrcDiskXmlRpc ( ) , org.ovirt.engine.core.vdsbroker.vdsbroker.VmReplicateDiskFinishVDSCommand.getDstDiskXmlRpc ( ) ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VmReplicateDiskFinishVDSCommand.proceedProxyReturnValue ( ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.vdsbroker.VmReplicateDiskFinishVDSCommand.getBroker ( ) . diskReplicateFinish ( org.ovirt.engine.core.vdsbroker.vdsbroker.VmReplicateDiskFinishVDSCommand.getParameters ( ) . getVmId ( ) . toString ( ) , org.ovirt.engine.core.vdsbroker.vdsbroker.VmReplicateDiskFinishVDSCommand.getSrcDiskXmlRpc ( ) , org.ovirt.engine.core.vdsbroker.vdsbroker.VmReplicateDiskFinishVDSCommand.getDstDiskXmlRpc ( ) ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VmReplicateDiskFinishVDSCommand.proceedProxyReturnValue ( ) ; }
Source:
public void macAddressFormatValidForUpdate ( ) throws java.lang.Exception { assertMacAddressFormatValidation ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_MAC_ADDRESS , org.ovirt.engine.core.common.validation.group.UpdateEntity.class , false ) ; }

Target:
public void macAddressFormatValidForCreate ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.assertMacAddressFormatValidation ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_MAC_ADDRESS , org.ovirt.engine.core.common.validation.group.CreateEntity.class , false ) ; }
Source:
private void initAnchor ( java.lang.String url , com.google.gwt.user.client.ui.Anchor anchor ) { anchor.setHref ( url ) ; anchor.setText ( constants.exportToPdf ( ) ) ; anchor.setTarget ( "_blank" ) ; }

Target:
private void initAnchor ( java.lang.String url , com.google.gwt.user.client.ui.Anchor anchor ) { anchor.setHref ( url ) ; anchor.setText ( org.ovirt.engine.ui.webadmin.section.main.view.popup.gluster.VolumeProfileStatisticsPopupView.constants.exportToPdf ( ) ) ; anchor.setTarget ( "_blank" ) ; }
Source:
private void initIpConfigurationWithPrimaryAddress ( ) { initIpConfiguration ( ) ; getTestedNetworkAttachment ( ) . getIpConfiguration ( ) . setIPv4Addresses ( java.util.Arrays.asList ( new org.ovirt.engine.core.common.businessentities.network.IPv4Address ( ) ) ) ; }

Target:
private void initIpv4Address ( ) { getTestedNetworkAttachment ( ) . getIpConfiguration ( ) . setIPv4Addresses ( java.util.Arrays.asList ( new org.ovirt.engine.core.common.businessentities.network.IPv4Address ( ) ) ) ; }
Source:
public org.ovirt.engine.api.model.Users list ( ) { if ( isFiltered ( ) ) { return mapDbUserCollection ( getBackendCollection ( QueryType.GetAllDbUsers , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , SearchType.DBUser ) ) ; } else { return mapDbUserCollection ( getBackendCollection ( SearchType.DBUser , getSearchPattern ( ) ) ) ; } }

Target:
public org.ovirt.engine.api.model.Users list ( ) { if ( isFiltered ( ) ) { return mapDbUserCollection ( getBackendCollection ( QueryType.GetAllDbUsers , new org.ovirt.engine.core.common.queries.QueryParametersBase ( ) , SearchType.DBUser ) ) ; } else { return mapDbUserCollection ( getBackendCollection ( SearchType.DBUser , getSearchPattern ( ) ) ) ; } }
Source:
public org.ovirt.engine.core.bll.ValidationResult allVfsAreFree ( org.ovirt.engine.core.bll.network.host.HostNicVfsConfigHelper hostNicVfsConfigHelper ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.ACTION_TYPE_FAILED_NUM_OF_VFS_CANNOT_BE_CHANGED , getNicNameReplacement ( ) ) . unless ( hostNicVfsConfigHelper.areAllVfsFree ( getNic ( ) ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult allVfsAreFree ( org.ovirt.engine.core.bll.network.host.NetworkDeviceHelper networkDeviceHelper ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.ACTION_TYPE_FAILED_NUM_OF_VFS_CANNOT_BE_CHANGED , getNicNameReplacement ( ) ) . unless ( networkDeviceHelper.areAllVfsFree ( getNic ( ) ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterVolumeRemoveBrickForce ( java.lang.String volumeName , java.lang.String [ ] brickList , int replicCount ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterVolumeRemoveBricksStop ( java.lang.String volumeName , java.lang.String [ ] brickList , int replicaCount ) ;
Source:
private static void assertGetByNameValidResults ( java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > results ) { org.ovirt.engine.core.dao.AuditLogDAOTest.assertGetByNameResults ( results , org.ovirt.engine.core.dao.AuditLogDAOTest.EXISTING_COUNT ) ; }

Target:
private static void assertGetByNameValidResults ( java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > results ) { org.ovirt.engine.core.dao.AuditLogDAOTest.assertGetByNameResults ( results , org.ovirt.engine.core.dao.AuditLogDAOTest.FILTERED_COUNT ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.ServerCpu > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.ServerCpu > ( ) ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) . intValue ( ) : 0 ; }
Source:
public void testGetWithInvalidId ( ) { org.ovirt.engine.core.common.businessentities.VDS result = dao.get ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetWithInvalidId ( ) { org.ovirt.engine.core.common.businessentities.VDS result = dao.get ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertNull ( result ) ; }
Source:
public void validateNonExternalJobFails ( ) { org.mockito.Mockito.when ( jobDaoMock.get ( org.ovirt.engine.core.bll.EndExternalJobCommandTest.jobId ) ) . thenReturn ( makeNonExternalTestJob ( ) ) ; org.junit.Assert.assertTrue ( ( ! ( commandMock.validate ( ) ) ) ) ; }

Target:
public void validateNonExternalJobFails ( ) { org.mockito.Mockito.when ( jobDaoMock.get ( org.ovirt.engine.core.bll.EndExternalJobCommandTest.jobId ) ) . thenReturn ( makeNonExternalTestJob ( ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( ( ! ( commandMock.validate ( ) ) ) ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.storage_pool > searchStoragePool ( ) { return genericSearch ( org.ovirt.engine.core.bll.SearchQuery.getDbFacade ( ) . getStoragePoolDAO ( ) , true , null ) ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.storage_pool > searchStoragePool ( ) { return genericSearch ( org.ovirt.engine.core.bll.SearchQuery.getDbFacade ( ) . getStoragePoolDao ( ) , true , null ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) . intValue ( ) : 1 ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.Integer ) ( source ) ) : 1 ; }
Source:
public void testNetworkExistWhenNeitherIdNorNameIsSpecified ( ) { org.ovirt.engine.core.common.businessentities.network.NetworkAttachment networkAttachment = new org.ovirt.engine.core.common.businessentities.network.NetworkAttachment ( ) ; org.ovirt.engine.core.bll.validator.NetworkAttachmentValidator validator = createNetworkAttachmentValidator ( networkAttachment ) ; org.junit.Assert.assertThat ( validator.networkExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.NETWORK_ATTACHMENT_NETWORK_ID_OR_NAME_IS_NOT_SET ) ) ; }

Target:
public void testNetworkExistWhenNeitherIdNorNameIsSpecified ( ) { org.ovirt.engine.core.common.businessentities.network.NetworkAttachment networkAttachment = new org.ovirt.engine.core.common.businessentities.network.NetworkAttachment ( ) ; org.ovirt.engine.core.bll.validator.NetworkAttachmentValidator validator = createNetworkAttachmentValidator ( networkAttachment ) ; org.hamcrest.MatcherAssert.assertThat ( validator.networkExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.NETWORK_ATTACHMENT_NETWORK_ID_OR_NAME_IS_NOT_SET ) ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.DiskImage createShareableDiskImage ( ) { org.ovirt.engine.core.common.businessentities.DiskImage image = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; image.setShareable ( true ) ; return image ; }

Target:
private static org.ovirt.engine.core.common.businessentities.DiskImage createShareableDiskImage ( ) { org.ovirt.engine.core.common.businessentities.DiskImage image = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; image.setShareable ( true ) ; image.setDiskInterface ( DiskInterface.IDE ) ; return image ; }
Source:
public void testdefaultVersionedValue ( ) { org.junit.Assert.assertEquals ( 1024 , OsRepositoryImpl.INSTANCE.getMinimumRam ( 888 , Version.v3_6 ) ) ; }

Target:
public void testDerivedVersionedValue ( ) { org.junit.Assert.assertEquals ( 512 , OsRepositoryImpl.INSTANCE.getMinimumRam ( 888 , Version.v3_6 ) ) ; }
Source:
public void testDiskAttachedToAnyNonDownVM ( ) { org.junit.Assert.assertThat ( validator.isDiskAttachedToAnyNonDownVm ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testDiskAttachedToAnyNonDownVM ( ) { org.junit.Assert.assertThat ( validator.isDiskAPluggedToAnyNonDownVm ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public long getsize ( ) { return lun.getDeviceSize ( ) ; }

Target:
public long getSize ( ) { return lun.getDeviceSize ( ) ; }