auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public static org.ovirt.engine.api.model.NicStatus map ( org.ovirt.engine.core.common.businessentities.InterfaceStatus interfaceStatus , org.ovirt.engine.api.model.NicStatus template ) { if ( interfaceStatus != null ) { switch ( interfaceStatus ) { case Up : return org.ovirt.engine.api.model.NicStatus.UP ; case Down : return org.ovirt.engine.api.model.NicStatus.DOWN ; default : return null ; } } return null ; }

Target:
public static org.ovirt.engine.api.model.NicStatus map ( org.ovirt.engine.core.common.businessentities.network.InterfaceStatus interfaceStatus , org.ovirt.engine.api.model.NicStatus template ) { if ( interfaceStatus != null ) { switch ( interfaceStatus ) { case Up : return org.ovirt.engine.api.model.NicStatus.UP ; case Down : return org.ovirt.engine.api.model.NicStatus.DOWN ; default : return null ; } } return null ; }
Source:
protected javax.ws.rs.core.Response performRemove ( java.lang.String id ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
public javax.ws.rs.core.Response performRemove ( java.lang.String id ) { org.ovirt.engine.core.common.action.AttachDetachStorageConnectionParameters params = new org.ovirt.engine.core.common.action.AttachDetachStorageConnectionParameters ( storageDomainId , id ) ; return performAction ( VdcActionType.DetachStorageConnectionFromStorageDomain , params ) ; }
Source:
public void vmIdDefault ( ) { final org.ovirt.engine.core.compat.Guid i = b.getVmId ( ) ; org.junit.Assert.assertEquals ( Guid.Empty , i ) ; }

Target:
public void vmIdDefault ( ) { final org.ovirt.engine.core.compat.Guid i = b.getVmId ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( Guid.Empty , i ) ; }
Source:
protected boolean isSystemSuperUser ( ) { return isSystemSuperUserPredicate.eval ( org.ovirt.engine.core.bll.PermissionsCommandBase.getCurrentUser ( ) . getId ( ) ) ; }

Target:
protected boolean isSystemSuperUser ( ) { return isSystemSuperUserPredicate.test ( org.ovirt.engine.core.bll.PermissionsCommandBase.getCurrentUser ( ) . getId ( ) ) ; }
Source:
public java.lang.String getJavaMemberStyleName ( org.ovirt.api.metamodel.concepts.Name name ) { return javaNames.getJavaMemberStyleName ( name ) ; }

Target:
public java.lang.String getJavaMemberStyleName ( org.ovirt.api.metamodel.concepts.Name name ) { return javaNames.getJavaMemberStyleName ( addPrefix ( name ) ) ; }
Source:
private org.ovirt.engine.ui.frontend.gwtservices.GenericApiGWTServiceAsync getService ( ) { return service ; }

Target:
public void onSuccess ( com.google.gwt.user.client.rpc.XsrfToken token ) { xsrfRequestBuilder.setXsrfToken ( token ) ; callback.serviceFound ( service ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.VolumeType getMemoryVolumeType ( ) { return org.ovirt.engine.core.bll.HibernateVmCommand.getMemoryVolumeTypeForPool ( org.ovirt.engine.core.bll.HibernateVmCommand.getStoragePool ( ) . getstorage_pool_type ( ) ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.VolumeType getMemoryVolumeType ( ) { return org.ovirt.engine.core.bll.HibernateVmCommand.getMemoryVolumeTypeForPool ( org.ovirt.engine.core.bll.HibernateVmCommand.getStoragePool ( ) . getStorageType ( ) ) ; }
Source:
private boolean checkIsDomainLocked ( org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap domainMap ) { if ( ( ( domainMap.getStatus ( ) ) != null ) && ( domainMap.getStatus ( ) . isStorageDomainInProcess ( ) ) ) { addInvalidSDStatusMessage ( StorageDomainStatus.Locked ) ; return true ; } return false ; }

Target:
protected org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator createStorageDomainValidator ( ) { return new org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator ( org.ovirt.engine.core.bll.storage.ReconstructMasterDomainCommand.getStorageDomain ( ) ) ; }
Source:
public void setversion ( java.lang.String value ) { version = value ; }

Target:
public void setVersion ( java.lang.String value ) { version = value ; }
Source:
private java.util.Map < java.lang.String , java.lang.String > getAddedServers ( ) { java.util.Map < java.lang.String , java.lang.String > servers = new java.util.HashMap < java.lang.String , java.lang.String > ( ) ; servers.put ( "test_server3" , serverKeyFingerprint ) ; return servers ; }

Target:
private java.util.Map < java.lang.String , java.lang.String > getAddedServers ( ) { java.util.Map < java.lang.String , java.lang.String > servers = new java.util.HashMap < java.lang.String , java.lang.String > ( ) ; servers.put ( org.ovirt.engine.core.bll.gluster.GetAddedGlusterServersQueryTest.TEST_SERVER3 , org.ovirt.engine.core.bll.gluster.GetAddedGlusterServersQueryTest.serverKeyFingerprint ) ; return servers ; }
Source:
private void reset ( ) { getResetRequestedEvent ( ) . raise ( this , EventArgs.Empty ) ; }

Target:
private void reset ( ) { getResetRequestedEvent ( ) . raise ( this , EventArgs.EMPTY ) ; }
Source:
public void setErrorMessageHtml ( java.lang.String text ) { setErrorMessageLabel ( errorMessage , text ) ; errorMessage.setVisible ( ( text != null ) ) ; if ( errorMessage.isVisible ( ) ) { errorMessagePanel.setVisible ( true ) ; } }

Target:
public void setErrorMessageHtml ( com.google.gwt.safehtml.shared.SafeHtml text ) { setErrorMessageLabel ( errorMessage , text ) ; errorMessage.setVisible ( ( text != null ) ) ; if ( errorMessage.isVisible ( ) ) { errorMessagePanel.setVisible ( true ) ; } }
Source:
public java.util.Map < java.lang.String , java.lang.Object > setVmTicket ( java.lang.String vmId , java.lang.String otp64 , java.lang.String sec , java.lang.String connectionAction , java.util.Map < java.lang.String , java.lang.String > params ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > get_image_transfer_session_stats ( java.lang.String ticketId ) ;
Source:
public void validateFailsWithEmptyBricksList ( ) { cmd.setGlusterVolumeId ( volumeWithoutAsyncTask ) ; cmd.getParameters ( ) . setBricks ( java.util.Collections.emptyList ( ) ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFailsWithEmptyBricksList ( ) { cmd.setGlusterVolumeId ( volumeWithoutAsyncTask ) ; cmd.getParameters ( ) . setBricks ( java.util.Collections.emptyList ( ) ) ; org.junit.jupiter.api.Assertions.assertFalse ( cmd.validate ( ) ) ; }
Source:
java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAllWithIpAddress ( java.lang.String address ) ;

Target:
org.ovirt.engine.core.common.businessentities.VDS getFirstUpRhelForVdsGroup ( org.ovirt.engine.core.compat.Guid vdsGroupId ) ;
Source:
protected void attachStorageDomainToDataCenter ( org.ovirt.engine.core.compat.Guid storageDomainId , org.ovirt.engine.core.compat.Guid storagePoolId ) { org.ovirt.engine.core.bll.storage.connection.CINDERStorageHelper CINDERStorageHelper = new org.ovirt.engine.core.bll.storage.connection.CINDERStorageHelper ( ) ; CINDERStorageHelper.setRunInNewTransaction ( false ) ; CINDERStorageHelper.attachCinderDomainToPool ( storageDomainId , storagePoolId ) ; CINDERStorageHelper.activateCinderDomain ( storageDomainId , storagePoolId ) ; }

Target:
protected void attachStorageDomainToDataCenter ( org.ovirt.engine.core.compat.Guid storageDomainId , org.ovirt.engine.core.compat.Guid storagePoolId ) { org.ovirt.engine.core.bll.storage.connection.CINDERStorageHelper cinderStorageHelper = new org.ovirt.engine.core.bll.storage.connection.CINDERStorageHelper ( ) ; cinderStorageHelper.setRunInNewTransaction ( false ) ; cinderStorageHelper.attachCinderDomainToPool ( storageDomainId , storagePoolId ) ; cinderStorageHelper.activateCinderDomain ( storageDomainId , storagePoolId ) ; }
Source:
public void refreshImportedNetworks ( ) { importedNetworks.edit ( importedNetworks.flush ( ) ) ; }

Target:
public void refreshImportedNetworks ( ) { importedNetworks.asEditor ( ) . edit ( importedNetworks.asEditor ( ) . flush ( ) ) ; }
Source:
protected void logExceptionAndCompensate ( java.lang.Exception e ) { log.errorFormat ( "Exception while wrapping-up compensation in endAction: {0}." , org.apache.commons.lang.exception.ExceptionUtils.getMessage ( e ) , e ) ; compensate ( ) ; }

Target:
protected void logExceptionAndCompensate ( java.lang.Exception e ) { log.error ( "Exception while wrapping-up compensation in endAction: {}." , org.apache.commons.lang.exception.ExceptionUtils.getMessage ( e ) ) ; log.error ( "Exception" , e ) ; compensate ( ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.IpConfiguration createIpConfiguration ( org.ovirt.engine.core.common.businessentities.network.Ipv4BootProtocol ipv4BootProtocol , org.ovirt.engine.core.common.businessentities.network.Ipv4BootProtocol ipv6BootProtocol ) { return populateIpConfiguration ( new org.ovirt.engine.core.common.businessentities.network.IpConfiguration ( ) , ipv4BootProtocol , ipv6BootProtocol ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.IpConfiguration createIpConfiguration ( org.ovirt.engine.core.common.businessentities.network.Ipv4BootProtocol ipv4BootProtocol , org.ovirt.engine.core.common.businessentities.network.Ipv6BootProtocol ipv6BootProtocol ) { return populateIpConfiguration ( new org.ovirt.engine.core.common.businessentities.network.IpConfiguration ( ) , ipv4BootProtocol , ipv6BootProtocol ) ; }
Source:
public void updateStatisticsForVds ( org.ovirt.engine.core.common.businessentities.VdsNetworkStatistics stats ) { update ( stats ) ; }

Target:
public void updateStatisticsForVds ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkStatistics stats ) { update ( stats ) ; }
Source:
private static void raiseQueryCompleteEvent ( final java.util.List < org.ovirt.engine.core.common.queries.VdcQueryType > queryTypeList , final java.lang.String context ) { for ( org.ovirt.engine.core.common.queries.VdcQueryType queryType : queryTypeList ) { org.ovirt.engine.ui.frontend.Frontend.raiseQueryCompleteEvent ( queryType , context ) ; } }

Target:
private void raiseQueryStartedEvent ( final java.util.List < org.ovirt.engine.core.common.queries.VdcQueryType > queryTypeList , final java.lang.String context ) { for ( org.ovirt.engine.core.common.queries.VdcQueryType queryType : queryTypeList ) { raiseQueryStartedEvent ( queryType , context ) ; } }
Source:
public javax.ws.rs.core.Response remove ( ) { return adaptRemove ( delegate :: remove ) ; }

Target:
public org.ovirt.engine.api.v3.types.V3Template update ( org.ovirt.engine.api.v3.types.V3Template template ) { return adaptUpdate ( getDelegate ( ) :: update , template ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VM > ( ) ; } return source ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VdsNumaNode > ( ) ; } return source ; }
Source:
private void setvds_spm_id ( int value ) { privatevds_spm_id = value ; }

Target:
private void setVdsSpmId ( int value ) { privatevds_spm_id = value ; }
Source:
public int getServerCount ( org.ovirt.engine.core.compat.Guid clusterId ) { return getVdsDao ( ) . getAllForVdsGroup ( clusterId ) . size ( ) ; }

Target:
public int getServerCount ( org.ovirt.engine.core.compat.Guid clusterId ) { return getVdsDao ( ) . getAllForCluster ( clusterId ) . size ( ) ; }
Source:
public void storageDomainNull ( ) { b.setStorageDomain ( null ) ; final org.ovirt.engine.core.common.businessentities.StorageDomain s = b.getStorageDomain ( ) ; org.junit.Assert.assertNull ( s ) ; }

Target:
public void storageDomainNull ( ) { b.setStorageDomain ( null ) ; final org.ovirt.engine.core.common.businessentities.StorageDomain s = b.getStorageDomain ( ) ; org.junit.jupiter.api.Assertions.assertNull ( s ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid getExistingEntityId ( ) { return org.ovirt.engine.core.dao.VdsStaticDaoTest.VDS_JUST_STATIC_ID ; }

Target:
protected org.ovirt.engine.core.compat.Guid getExistingEntityId ( ) { return FixturesTool.VDS_JUST_STATIC_ID ; }
Source:
public void unsetProfileDetail ( ) { this . profileDetail = null ; }

Target:
public void setProfileDetails ( org.ovirt.engine.sdk.entities.ProfileDetails value ) { this . profileDetails = value ; }
Source:
protected void addNetworkImportData ( java.lang.String macAddr , java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > networks ) { org.ovirt.engine.ui.uicommonweb.models.vms.ImportNetworkData data = new org.ovirt.engine.ui.uicommonweb.models.vms.ImportNetworkData ( ) ; data.setNetworks ( networks ) ; networkImportDataMap.put ( macAddr , data ) ; }

Target:
protected void addNetworkImportData ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface iface ) { networkImportDataMap.put ( ( ( ( iface.getVmName ( ) ) + "$" ) + ( iface.getName ( ) ) ) , new org.ovirt.engine.ui.uicommonweb.models.vms.ImportNetworkData ( networkProfiles ) ) ; }
Source:
protected boolean isPortMirroringSupported ( ) { org.ovirt.engine.core.compat.Version v31 = new org.ovirt.engine.core.compat.Version ( 3 , 1 ) ; boolean isLessThan31 = ( getDcCompatibilityVersion ( ) . compareTo ( v31 ) ) < 0 ; return ! isLessThan31 ; }

Target:
public void updateDc ( org.ovirt.engine.core.compat.Version dcCompatibilityVersion , org.ovirt.engine.core.compat.Guid dcId ) { this . dcCompatibilityVersion = dcCompatibilityVersion ; this . dcId = dcId ; initCustomPropertySheet ( ) ; initNetworkQoSList ( ) ; }
Source:
public java.lang.Void runInTransaction ( ) { org.ovirt.engine.core.bll.VmHandler.checkStatusAndLockVm ( oldVmId , getCompensationContext ( ) ) ; getCompensationContext ( ) . stateChanged ( ) ; return null ; }

Target:
protected void updateOriginalTemplate ( org.ovirt.engine.core.common.businessentities.VmStatic vmStatic ) { vmStatic.setOriginalTemplateGuid ( getVm ( ) . getOriginalTemplateGuid ( ) ) ; vmStatic.setOriginalTemplateName ( getVm ( ) . getOriginalTemplateName ( ) ) ; }
Source:
public void setIpv4BootProtocol ( org.ovirt.engine.core.common.businessentities.network.Ipv4BootProtocol ipv4BootProtocol ) { this . ipv4BootProtocol = ( ipv4BootProtocol == null ) ? org.ovirt.engine.core.common.businessentities.network.Ipv4BootProtocol.NONE : ipv4BootProtocol ; }

Target:
public void setIpv6BootProtocol ( org.ovirt.engine.core.common.businessentities.network.Ipv6BootProtocol ipv6BootProtocol ) { this . ipv6BootProtocol = ( ipv6BootProtocol == null ) ? org.ovirt.engine.core.common.businessentities.network.Ipv6BootProtocol.NONE : ipv6BootProtocol ; }
Source:
private void UpdateActionAvailability ( ) { java.util.List < ? > items = ( ( getSelectedItems ( ) ) != null ) ? getSelectedItems ( ) : java.util.Collections.emptyList ( ) ; for ( org.ovirt.engine.ui.uicommonweb.ReportCommand reportCommand : openReportCommands ) { UpdateReportCommandAvailability ( reportCommand , items ) ; } }

Target:
private void updateActionAvailability ( ) { java.util.List < ? > items = ( ( getSelectedItems ( ) ) != null ) ? getSelectedItems ( ) : java.util.Collections.emptyList ( ) ; for ( org.ovirt.engine.ui.uicommonweb.ReportCommand reportCommand : openReportCommands ) { updateReportCommandAvailability ( reportCommand , items ) ; } }
Source:
protected java.lang.String getStorageArgs ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageServerConnectionDao ( ) . get ( org.ovirt.engine.core.bll.storage.domain.AddStorageDomainCommon.getStorageDomain ( ) . getStorage ( ) ) . getConnection ( ) ; }

Target:
protected java.lang.String getStorageArgs ( ) { return storageServerConnectionDao.get ( org.ovirt.engine.core.bll.storage.domain.AddStorageDomainCommon.getStorageDomain ( ) . getStorage ( ) ) . getConnection ( ) ; }
Source:
private native void initializeBrowserInternalImageCache ( java.lang.String icon , org.ovirt.engine.ui.common.widget.editor.IconEditorWidget.Callback callback ) ;

Target:
private native void createValidationImageElement ( java.lang.String imageUrl , org.ovirt.engine.ui.common.widget.editor.IconEditorWidget.ImageElementCallback imageElementCallback ) ;
Source:
private static int getRefreshRate ( ) { return ( LegacyPollVmStatsRefresher.VMS_REFRESH_RATE ) * ( LegacyPollVmStatsRefresher.NUMBER_VMS_REFRESHES_BEFORE_SAVE ) ; }

Target:
private static int getRefreshRate ( ) { return ( VMS_REFRESH_RATE ) * ( NUMBER_VMS_REFRESHES_BEFORE_SAVE ) ; }
Source:
public void getUsbPolicySetDisabled ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; org.ovirt.engine.core.common.businessentities.VDSGroup vdsGroup = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb , vdsGroup ) , UsbPolicy.DISABLED ) ; }

Target:
public void getUsbPolicySetDisabled ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; org.ovirt.engine.core.common.businessentities.VDSGroup vdsGroup = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb , vdsGroup.getcompatibility_version ( ) ) , UsbPolicy.DISABLED ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.network getEntity ( int index ) { return org.ovirt.engine.api.restapi.resource.AbstractBackendNetworksResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.core.common.businessentities.network.class ) , index ) ; }

Target:
protected org.ovirt.engine.api.model.Network getEntity ( int index ) { return org.ovirt.engine.api.restapi.resource.AbstractBackendNetworksResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.api.model.Network.class ) , index ) ; }
Source:
public void setvm_host ( java.lang.String value ) { this . vm_host = value ; }

Target:
public void setVmIp ( java.lang.String value ) { this . vmIp = value ; }
Source:
public void testGetNotFound ( ) { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetNotExistingEntityExpectations ( ) ; try { resource.get ( ) ; org.junit.Assert.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testGetNotFound ( ) { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetNotExistingEntityExpectations ( ) ; try { resource.get ( ) ; org.junit.jupiter.api.Assertions.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }
Source:
public static boolean CheckIfCpusSameManufacture ( java.lang.String cpuName1 , java.lang.String cpuName2 , org.ovirt.engine.core.compat.Version ver ) { final org.ovirt.engine.core.bll.CpuFlagsManagerHandler.CpuFlagsManager cpuFlagsManager = org.ovirt.engine.core.bll.CpuFlagsManagerHandler._managersDictionary.get ( ver ) ; if ( cpuFlagsManager != null ) { return cpuFlagsManager.CheckIfCpusSameManufacture ( cpuName1 , cpuName2 ) ; } return false ; }

Target:
public static boolean checkIfCpusSameManufacture ( java.lang.String cpuName1 , java.lang.String cpuName2 , org.ovirt.engine.core.compat.Version ver ) { final org.ovirt.engine.core.bll.CpuFlagsManagerHandler.CpuFlagsManager cpuFlagsManager = org.ovirt.engine.core.bll.CpuFlagsManagerHandler._managersDictionary.get ( ver ) ; if ( cpuFlagsManager != null ) { return cpuFlagsManager.CheckIfCpusSameManufacture ( cpuName1 , cpuName2 ) ; } return false ; }
Source:
public void cancel ( ) { setWindow ( null ) ; org.ovirt.engine.ui.frontend.Frontend.Unsubscribe ( ) ; }

Target:
public void cancel ( ) { setWindow ( null ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . unsubscribe ( ) ; }
Source:
public void testConvertMBToBytes ( ) { long megabytes = 3L ; long bytes = org.ovirt.engine.core.common.utils.SizeConverter.convert ( megabytes , SizeConverter.SizeUnit.MB , SizeConverter.SizeUnit.BYTES ) . longValue ( ) ; org.junit.Assert.assertEquals ( bytes , 3145728 ) ; }

Target:
public void testConvertMBToBytes ( ) { long megabytes = 3L ; long bytes = org.ovirt.engine.core.common.utils.SizeConverter.convert ( megabytes , SizeConverter.SizeUnit.MiB , SizeConverter.SizeUnit.BYTES ) . longValue ( ) ; org.junit.Assert.assertEquals ( bytes , 3145728 ) ; }
Source:
org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeGeoRepStatusDetailForXmlRpc glusterVolumeGeoRepStatusDetail ( java.lang.String volumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterVolumeGeoRepSessionPause ( java.lang.String masterVolumeName , java.lang.String slaveHost , java.lang.String slaveVolumeName , java.lang.String userName , boolean force ) ;
Source:
public java.lang.Integer getDisplay ( ) { return this . vmDynamic.getDisplay ( ) ; }

Target:
public java.lang.String getGuestOsDistribution ( ) { return vmDynamic.getGuestOsDistribution ( ) ; }
Source:
public java.util.List < org.ovirt.engine.core.bll.utils.PermissionSubject > getPermissionCheckSubjects ( ) { return java.util.Collections.singletonList ( new org.ovirt.engine.core.bll.utils.PermissionSubject ( getClusterId ( ) , org.ovirt.engine.core.common.VdcObjectType.VdsGroups , getActionType ( ) . getActionGroup ( ) ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.bll.utils.PermissionSubject > getPermissionCheckSubjects ( ) { return java.util.Collections.singletonList ( new org.ovirt.engine.core.bll.utils.PermissionSubject ( getClusterId ( ) , org.ovirt.engine.core.common.VdcObjectType.Cluster , getActionType ( ) . getActionGroup ( ) ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.ExternalSubnet lookupSubnetById ( java.lang.String id ) { for ( org.ovirt.engine.core.common.businessentities.network.ExternalSubnet subnet : parent.getSubnets ( ) ) { if ( org.apache.commons.lang.ObjectUtils.equals ( subnet.getId ( ) , id ) ) { return subnet ; } } return null ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.ExternalSubnet lookupSubnetById ( java.lang.String id ) { for ( org.ovirt.engine.core.common.businessentities.network.ExternalSubnet subnet : parent.getSubnets ( ) ) { if ( java.util.Objects.equals ( subnet.getId ( ) , id ) ) { return subnet ; } } return null ; }
Source:
public static int rand ( int ceiling ) { return ( ( int ) ( java.lang.Math.floor ( ( ( ( java.lang.Math.random ( ) ) * 0.9999 ) * ceiling ) ) ) ) ; }

Target:
public static int rand ( int ceiling ) { return org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextInt ( ceiling ) ; }
Source:
private void logWhenMacPoolIsEmpty ( ) { if ( ! ( macsStorage.availableMacExist ( ) ) ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector ( ) . log ( logable , AuditLogType.MAC_POOL_EMPTY ) ; } }

Target:
private void logWhenMacPoolIsEmpty ( ) { if ( ! ( macsStorage.availableMacExist ( ) ) ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable = org.ovirt.engine.core.di.Injector.injectMembers ( new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ) ; new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector ( ) . log ( logable , AuditLogType.MAC_POOL_EMPTY ) ; } }
Source:
public void setItems ( java.lang.Iterable value ) { if ( value != null ) { java.util.Collections.sort ( ( ( java.util.List < org.ovirt.engine.core.common.businessentities.network.ExternalSubnet > ) ( value ) ) , new org.ovirt.engine.ui.uicommonweb.Linq.ExternalSubnetComparator ( ) ) ; } super . setItems ( value ) ; }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { super . executeCommand ( command ) ; if ( command == ( getRemoveCommand ( ) ) ) { remove ( ) ; } }
Source:
public void testSubResourceLocatorBadGuid ( ) throws java.lang.Exception { control.replay ( ) ; try { collection.getDeviceResource ( "foo" ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testSubResourceLocatorBadGuid ( ) throws java.lang.Exception { control.replay ( ) ; try { collection.getNicResource ( "foo" ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }
Source:
public void addTabWidget ( com.google.gwt.user.client.ui.Widget tabWidget , int index ) { getView ( ) . addTabWidget ( tabWidget , index ) ; }

Target:
private void setScrollDistance ( int scrollDistance ) { tabBar.setScrollDistance ( scrollDistance ) ; }
Source:
public org.ovirt.engine.core.bll.tasks.interfaces.CommandCallback getCallback ( ) { return org.ovirt.engine.core.bll.CreateCloneOfTemplateCommand.isDataOperationsByHSM ( ) ? new org.ovirt.engine.core.bll.ConcurrentChildCommandsExecutionCallback ( ) : null ; }

Target:
public org.ovirt.engine.core.bll.tasks.interfaces.CommandCallback getCallback ( ) { return org.ovirt.engine.core.bll.CreateCloneOfTemplateCommand.isDataOperationsByHSM ( ) ? callbackProvider.get ( ) : null ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml imageTextSetupNetworkUsage ( com.google.gwt.safehtml.shared.SafeHtml image , java.lang.String text ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml imageTextSetupNetworkUsage ( com.google.gwt.safehtml.shared.SafeHtml image , java.lang.String text , java.lang.String color ) ;
Source:
public void testCDANonExistingVds ( ) { org.mockito.Mockito.doReturn ( null ) . when ( vdsDaoMock ) . get ( vdsId ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( "canDoAction did not fail for non existing VDS" , command , EngineMessage.VDS_NOT_EXIST ) ; }

Target:
public void testCDANonExistingVds ( ) { org.mockito.Mockito.doReturn ( null ) . when ( vdsDaoMock ) . get ( vdsId ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( "validate did not fail for non existing VDS" , command , EngineMessage.VDS_NOT_EXIST ) ; }
Source:
public void error ( java.lang.Object msg ) { log.error ( addPrefixToLogMessage ( msg ) ) ; }

Target:
public void error ( java.lang.Object msg , java.lang.Throwable t ) { log.error ( convertToString ( msg ) , t ) ; }
Source:
public static void updateImportedVmUsbPolicy ( org.ovirt.engine.core.common.businessentities.VmBase vmBase ) { if ( ( vmBase.getOs ( ) . isLinux ( ) ) && ( vmBase.getUsbPolicy ( ) . equals ( UsbPolicy.ENABLED_LEGACY ) ) ) { vmBase.setUsbPolicy ( UsbPolicy.DISABLED ) ; } }

Target:
public static void updateImportedVmUsbPolicy ( org.ovirt.engine.core.common.businessentities.VmBase vmBase ) { if ( ( OsRepositoryImpl.INSTANCE.isLinux ( vmBase.getOsId ( ) ) ) && ( vmBase.getUsbPolicy ( ) . equals ( UsbPolicy.ENABLED_LEGACY ) ) ) { vmBase.setUsbPolicy ( UsbPolicy.DISABLED ) ; } }
Source:
public static boolean isUpdateValid ( org.ovirt.engine.core.common.businessentities.VmStatic source , org.ovirt.engine.core.common.businessentities.VmStatic destination ) { return org.ovirt.engine.core.bll.VmHandler.updateVmsStatic.IsUpdateValid ( source , destination ) ; }

Target:
public static boolean isUpdateValid ( org.ovirt.engine.core.common.businessentities.VmStatic source , org.ovirt.engine.core.common.businessentities.VmStatic destination ) { return source.isManagedHostedEngine ( ) ? org.ovirt.engine.core.bll.VmHandler.updateVmsStatic.isHostedEngineUpdateValid ( source , destination ) : org.ovirt.engine.core.bll.VmHandler.updateVmsStatic.IsUpdateValid ( source , destination ) ; }
Source:
protected void EndWithFailure ( ) { setSucceeded ( true ) ; }

Target:
protected void endWithFailure ( ) { setSucceeded ( true ) ; }
Source:
protected void OnEntityChanged ( ) { super . OnEntityChanged ( ) ; if ( ( getEntity ( ) ) != null ) { isEntityChanged = true ; getSearchCommand ( ) . Execute ( ) ; } }

Target:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; if ( ( getEntity ( ) ) != null ) { isEntityChanged = true ; getSearchCommand ( ) . Execute ( ) ; } }
Source:
public void testGlusterVolumeBricksByServerId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity > bricks = dao.getGlusterVolumeBricksByServerId ( org.ovirt.engine.core.dao.gluster.GlusterBrickDaoTest.SERVER_ID ) ; org.junit.Assert.assertNotNull ( bricks ) ; }

Target:
public void testRemove ( ) { org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity existingBrick = dao.getById ( FixturesTool.GLUSTER_BRICK_UUID1 ) ; org.junit.Assert.assertNotNull ( existingBrick ) ; dao.removeBrick ( FixturesTool.GLUSTER_BRICK_UUID1 ) ; org.junit.Assert.assertNull ( dao.getById ( FixturesTool.GLUSTER_BRICK_UUID1 ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.storage_server_connections > GetStorageServerConnectionsByDomain ( org.ovirt.engine.core.common.businessentities.storage_domain_static storageDomain ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage_server_connections > ( java.util.Arrays.asList ( new org.ovirt.engine.core.common.businessentities.storage_server_connections [ ] { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageServerConnectionDao ( ) . get ( storageDomain.getstorage ( ) ) } ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > getStorageServerConnectionsByDomain ( org.ovirt.engine.core.common.businessentities.StorageDomainStatic storageDomain ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageServerConnections > ( java.util.Arrays.asList ( new org.ovirt.engine.core.common.businessentities.StorageServerConnections [ ] { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageServerConnectionDao ( ) . get ( storageDomain.getstorage ( ) ) } ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.BusinessEntityMap < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > getBackendNics ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > backendNics = getBackendCollection ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface.class , VdcQueryType.GetVdsInterfacesByVdsId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; return new org.ovirt.engine.core.common.businessentities.BusinessEntityMap ( backendNics ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.BusinessEntityMap < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > getBackendNics ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > backendNics = getBackendCollection ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface.class , QueryType.GetVdsInterfacesByVdsId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ; return new org.ovirt.engine.core.common.businessentities.BusinessEntityMap ( backendNics ) ; }
Source:
public boolean evaluate ( java.lang.Object o ) { return ( ( org.ovirt.engine.core.common.businessentities.LUNs ) ( o ) ) . getId ( ) . equals ( lun.getId ( ) ) ; }

Target:
public boolean evaluate ( java.lang.Object o ) { return ( ( org.ovirt.engine.core.common.businessentities.storage.LUNs ) ( o ) ) . getId ( ) . equals ( lun.getId ( ) ) ; }
Source:
public void testGetAllForDiskProfiles ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > result = dao.getAllForDiskProfiles ( java.util.Collections.singleton ( FixturesTool.DISK_PROFILE_1 ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( 2 , result.size ( ) ) ; }

Target:
public void testGetAllForDiskProfiles ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > result = dao.getAllForDiskProfiles ( java.util.Collections.singleton ( FixturesTool.DISK_PROFILE_1 ) ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertEquals ( 2 , result.size ( ) ) ; }
Source:
protected void CheckMaxMemoryOverCommitValue ( ) { if ( ( getVdsGroup ( ) . getmax_vds_memory_over_commit ( ) ) <= 0 ) { getVdsGroup ( ) . setmax_vds_memory_over_commit ( org.ovirt.engine.core.common.config.Config.< java.lang.Integer > GetValue ( ConfigValues.MaxVdsMemOverCommit ) ) ; } }

Target:
protected void checkMaxMemoryOverCommitValue ( ) { if ( ( getVdsGroup ( ) . getmax_vds_memory_over_commit ( ) ) <= 0 ) { getVdsGroup ( ) . setmax_vds_memory_over_commit ( org.ovirt.engine.core.common.config.Config.< java.lang.Integer > GetValue ( ConfigValues.MaxVdsMemOverCommit ) ) ; } }
Source:
public java.lang.String toString ( ) { return org.ovirt.engine.core.common.utils.ToStringBuilder.forInstance ( this ) . append ( "ipv4Addresses" , getIPv4Addresses ( ) ) . build ( ) ; }

Target:
public java.lang.String toString ( ) { return org.ovirt.engine.core.common.utils.ToStringBuilder.forInstance ( this ) . append ( "ipv4Addresses" , getIPv4Addresses ( ) ) . append ( "ipv6Addresses" , getIpV6Addresses ( ) ) . build ( ) ; }
Source:
private void cancelRebalanceStatus ( ) { if ( ( getWindow ( ) ) == null ) { return ; } cancel ( ) ; }

Target:
private void cancelRebalanceStatus ( ) { if ( ( getWindow ( ) ) == null ) { return ; } ( ( org.ovirt.engine.ui.uicommonweb.models.gluster.VolumeRebalanceStatusModel ) ( getWindow ( ) ) ) . cancelRefresh ( ) ; cancel ( ) ; }
Source:
public void testValidateGateway ( ) { host.setVdsGroupCompatibilityVersion ( Version.v3_5 ) ; doTestValidateGateway ( "someGateway" , false , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.NETWORK_ATTACH_ILLEGAL_GATEWAY ) ) ; }

Target:
public void testValidateGatewayIsNotManagementNetworkAndMultipleGatewaysNotSupported ( ) { doTestValidateGateway ( "someGateway" , false , false , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.NETWORK_ATTACH_ILLEGAL_GATEWAY ) ) ; }
Source:
public static org.ovirt.engine.ui.uicommonweb.models.storage.SanTargetModel FindSanTargetByNotIsConnected ( java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.storage.SanTargetModel > items ) { for ( org.ovirt.engine.ui.uicommonweb.models.storage.SanTargetModel i : items ) { if ( ! ( i.getIsLoggedIn ( ) ) ) { return i ; } } return null ; }

Target:
public static org.ovirt.engine.ui.uicommonweb.models.storage.SanTargetModel findSanTargetByNotIsConnected ( java.util.ArrayList < org.ovirt.engine.ui.uicommonweb.models.storage.SanTargetModel > items ) { for ( org.ovirt.engine.ui.uicommonweb.models.storage.SanTargetModel i : items ) { if ( ! ( i.getIsLoggedIn ( ) ) ) { return i ; } } return null ; }
Source:
protected void syncSearch ( ) { if ( ( getEntity ( ) ) == null ) { return ; } org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity glusterVolumeEntity = ( ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity ) ( getEntity ( ) ) ) ; setItems ( glusterVolumeEntity.getBricks ( ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeEntity getVolumeEntity ( ) { return volumeEntity ; }
Source:
protected void ProceedProxyReturnValue ( ) { org.ovirt.engine.core.common.errors.VdcBllErrors returnStatus = GetReturnValueFromStatus ( getReturnStatus ( ) ) ; switch ( returnStatus ) { case StoragePoolUnknown : break ; default : super . ProceedProxyReturnValue ( ) ; InitializeVdsError ( returnStatus ) ; break ; } }

Target:
protected void ProceedProxyReturnValue ( ) { org.ovirt.engine.core.common.errors.VdcBllErrors returnStatus = GetReturnValueFromStatus ( getReturnStatus ( ) ) ; switch ( returnStatus ) { case StoragePoolUnknown : break ; default : super . ProceedProxyReturnValue ( ) ; initializeVdsError ( returnStatus ) ; break ; } }
Source:
public void parametersWithSecureDeletionAreNotFixedOnBlockDomainWhenPostZeroIsTrue ( ) { org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandlerTest.ParametersWithPostDeleteAction parameters = org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandler.fixParameters ( new org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandlerTest.ParametersWithPostDeleteAction ( true ) , false ) ; assertPostZeroValue ( parameters , true ) ; }

Target:
public void parametersWithSecureDeletionAreNotFixedOnBlockDomainWhenPostZeroIsTrue ( ) { org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandlerTest.ParametersWithPostDeleteAction parameters = postDeleteActionHandler.fixParameters ( new org.ovirt.engine.core.bll.storage.domain.PostDeleteActionHandlerTest.ParametersWithPostDeleteAction ( true ) , false ) ; assertPostZeroValue ( parameters , true ) ; }
Source:
public void testIpConfiguredForStaticBootProtocolWhenIpConfigurationIsNotNullAndBootProtocolIsStaticAndNetmaskIsEmpty ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.NetworkAttachment attachment = createNetworkAttachmentWithIpConfiguration ( NetworkBootProtocol.STATIC_IP , "192.168.1.1" , "" ) ; org.junit.Assert.assertThat ( createNetworkAttachmentValidator ( attachment ) . ipConfiguredForStaticBootProtocol ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NETWORK_ADDR_MANDATORY_IN_STATIC_IP ) ) ; }

Target:
public void testIpConfiguredForStaticBootProtocolWhenIpConfigurationIsNotNullAndBootProtocolIsStaticAndNetmaskIsNull ( ) throws java.lang.Exception { doTestIpConfiguredForStaticBootProtocol ( "192.168.1.1" , null ) ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml statusTemplate ( com.google.gwt.safehtml.shared.SafeHtml statusImage ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml vmCountWithMigrations ( java.lang.String title , com.google.gwt.safehtml.shared.SafeHtml incomingMigrations , java.lang.String vmCountStr , com.google.gwt.safehtml.shared.SafeHtml outgoingMigrations ) ;
Source:
public void validateFailsWithDuplicateBricks ( ) { cmd = org.mockito.Mockito.spy ( createTestCommand ( getVolume ( 2 , true ) ) ) ; prepareMocks ( cmd ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_DUPLICATE_BRICKS ) ; }

Target:
public void validateFailsWithDuplicateBricks ( ) { setVolume ( getVolume ( 2 , true ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_DUPLICATE_BRICKS ) ; }
Source:
protected java.lang.String getAdditionalInformation ( ) { if ( ( getVds ( ) ) != null ) { return java.lang.String.format ( "HostName = %1$s" , getVds ( ) . getvds_name ( ) ) ; } else { return super . getAdditionalInformation ( ) ; } }

Target:
protected java.lang.String getAdditionalInformation ( ) { if ( ( getVds ( ) ) != null ) { return java.lang.String.format ( "HostName = %1$s" , getVds ( ) . getVdsName ( ) ) ; } else { return super . getAdditionalInformation ( ) ; } }
Source:
protected org.ovirt.engine.core.common.action.RunVmOnceParams map ( org.ovirt.engine.api.model.VM vm , org.ovirt.engine.core.common.action.RunVmOnceParams params ) { return getMapper ( org.ovirt.engine.api.model.VM.class , org.ovirt.engine.core.common.action.RunVmOnceParams.class ) . map ( vm , params ) ; }

Target:
protected org.ovirt.engine.core.common.action.RunVmOnceParams map ( org.ovirt.engine.api.model.Vm vm , org.ovirt.engine.core.common.action.RunVmOnceParams params ) { return getMapper ( org.ovirt.engine.api.model.Vm.class , org.ovirt.engine.core.common.action.RunVmOnceParams.class ) . map ( vm , params ) ; }
Source:
public void setwrite_rate ( java.lang.Integer rate ) { writeRate = rate ; }

Target:
public void setWriteRate ( java.lang.Integer rate ) { writeRate = rate ; }
Source:
public void testGetLastSuccessfulEngineBackup ( ) { existingEngineBackupLog = dao.getLastSuccessfulEngineBackup ( org.ovirt.engine.core.dao.EngineBackupLogDaoTest.DB_NAME ) ; org.junit.Assert.assertNotNull ( existingEngineBackupLog ) ; }

Target:
public void testGetLastSuccessfulEngineBackupWithWrongDbName ( ) { existingEngineBackupLog = dao.getLastSuccessfulEngineBackup ( org.ovirt.engine.core.dao.EngineBackupLogDaoTest.NON_EXISTING_SCOPE ) ; org.junit.Assert.assertNull ( existingEngineBackupLog ) ; }
Source:
public void testAttachVdsToTag ( ) { dao.attachVdsToTag ( newVdsTag ) ; org.ovirt.engine.core.common.businessentities.tags_vds_map result = dao.getTagVdsByTagIdAndByVdsId ( newVdsTag.gettag_id ( ) , newVdsTag.getvds_id ( ) ) ; assertNotNull ( result ) ; assertEqualsTagsVdsMap ( newVdsTag , result ) ; }

Target:
public void testAttachVdsToTag ( ) { dao.attachVdsToTag ( newVdsTag ) ; org.ovirt.engine.core.common.businessentities.TagsVdsMap result = dao.getTagVdsByTagIdAndByVdsId ( newVdsTag.gettag_id ( ) , newVdsTag.getvds_id ( ) ) ; assertNotNull ( result ) ; assertEqualsTagsVdsMap ( newVdsTag , result ) ; }
Source:
public void hostDoesNotExist ( ) { validator = new org.ovirt.engine.core.bll.validator.UpdateHostValidator ( null , host , false ) ; org.junit.Assert.assertThat ( validator.hostExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.VDS_INVALID_SERVER_ID ) ) ; }

Target:
public void hostDoesNotExist ( ) { validator = new org.ovirt.engine.core.bll.validator.UpdateHostValidator ( null , host , false ) ; org.hamcrest.MatcherAssert.assertThat ( validator.hostExists ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.VDS_INVALID_SERVER_ID ) ) ; }
Source:
public void canDoActionFailsBlockLocal ( ) { sd.setStorageDomainType ( StorageDomainType.ImportExport ) ; sd.setStorageType ( StorageType.LOCALFS ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAIN_TYPE_ILLEGAL ) ; }

Target:
public void canDoActionFailsExportOnBlock ( ) { sd.setStorageDomainType ( StorageDomainType.ImportExport ) ; sd.setStorageType ( StorageType.ISCSI ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , VdcBllMessages.ACTION_TYPE_FAILED_DOMAIN_TYPE_CAN_BE_CREATED_ONLY_ON_SPECIFIC_STORAGE_DOMAINS ) ; }
Source:
public void formatStringTest3 ( ) { testMessages.addFallback ( DynamicMessageKey.APPLICATION_TITLE , "Testing 123: {0}" ) ; java.lang.String result = testMessages.formatString ( DynamicMessageKey.APPLICATION_TITLE , "1.1.1" , "2.2.2" ) ; org.junit.Assert.assertEquals ( "Testing 123: 1.1.1" , result ) ; }

Target:
public void formatStringTest3 ( ) { testMessages.addFallback ( DynamicMessageKey.APPLICATION_TITLE , "Testing 123: {0}" ) ; java.lang.String result = testMessages.formatString ( DynamicMessageKey.APPLICATION_TITLE , "1.1.1" , "2.2.2" ) ; org.junit.jupiter.api.Assertions.assertEquals ( "Testing 123: 1.1.1" , result ) ; }
Source:
private void mockGetAllForRole ( java.util.List < org.ovirt.engine.core.common.businessentities.RoleGroupMap > groups ) { org.mockito.Mockito.when ( getRoleGroupMapDAOMock ( ) . getAllForRole ( getParams ( ) . getRoleId ( ) ) ) . thenReturn ( groups ) ; }

Target:
private void mockGetAllForRole ( java.util.List < org.ovirt.engine.core.common.businessentities.RoleGroupMap > groups ) { org.mockito.Mockito.when ( getRoleGroupMapDaoMock ( ) . getAllForRole ( getParams ( ) . getRoleId ( ) ) ) . thenReturn ( groups ) ; }
Source:
protected void AsyncSearch ( ) { super . AsyncSearch ( ) ; setAsyncResult ( org.ovirt.engine.ui.frontend.Frontend.RegisterSearch ( getSearchString ( ) , SearchType.VM , getSearchPageSize ( ) ) ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }

Target:
private void newServer ( ) { newInternal ( VmType.Server ) ; }
Source:
public void rollback ( org.ovirt.engine.ui.uicompat.Enlistment enlistment ) { enlistment.Done ( ) ; }

Target:
public void rollback ( org.ovirt.engine.ui.uicompat.Enlistment enlistment ) { enlistment.done ( ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.StorageDomain getStorage ( ) { return org.ovirt.engine.core.bll.exportimport.GetAllFromExportDomainQuery.getDbFacade ( ) . getStorageDomainDao ( ) . getForStoragePool ( org.ovirt.engine.core.bll.exportimport.GetAllFromExportDomainQuery.getParameters ( ) . getStorageDomainId ( ) , org.ovirt.engine.core.bll.exportimport.GetAllFromExportDomainQuery.getParameters ( ) . getStoragePoolId ( ) ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.StorageDomain getStorage ( ) { return storageDomainDao.getForStoragePool ( org.ovirt.engine.core.bll.exportimport.GetAllFromExportDomainQuery.getParameters ( ) . getStorageDomainId ( ) , org.ovirt.engine.core.bll.exportimport.GetAllFromExportDomainQuery.getParameters ( ) . getStoragePoolId ( ) ) ; }
Source:
private java.lang.Object getVmInfoFromOvaFile ( ) { return org.ovirt.engine.core.bll.Backend.getInstance ( ) . getResourceManager ( ) . RunVdsCommand ( VDSCommandType.GetOvaInfo , buildGetOvaInfoParameters ( ) ) . getReturnValue ( ) ; }

Target:
private java.lang.Object getVmInfoFromOvaFile ( ) { return runVdsCommand ( VDSCommandType.GetOvaInfo , buildGetOvaInfoParameters ( ) ) . getReturnValue ( ) ; }
Source:
org.ovirt.engine.core.vdsbroker.irsbroker.OneUuidReturnForXmlRpc createVG ( java.lang.String sdUUID , java.lang.String [ ] deviceList ) ;

Target:
org.ovirt.engine.core.vdsbroker.irsbroker.StatusReturnForXmlRpc verifyUntrustedVolume ( java.lang.String spId , java.lang.String sdId , java.lang.String imgGroupId , java.lang.String imgId ) ;
Source:
public void testJsonDiskDescription ( ) throws java.io.IOException { java.lang.String jsonDescription = null ; jsonDescription = org.ovirt.engine.core.bll.ImagesHandler.getJsonDiskDescription ( "DiskAlias" , "DiskDescription" ) ; org.junit.Assert.assertTrue ( "Should be map of disk alias and disk description" , jsonDescription.equals ( "{\"DiskAlias\":\"DiskAlias\",\"DiskDescription\":\"DiskDescription\"}" ) ) ; }

Target:
public void testJsonDiskDescription ( ) throws java.io.IOException { org.ovirt.engine.core.bll.ImagesHandlerTest.assertDiskDescriptionMap ( "DiskAlias" , "DiskDescription" ) ; }
Source:
public void clearErrorMessages ( ) { com.google.gwt.user.client.ui.IsWidget errorIconWidget = errorMessagePanel.getWidget ( 0 ) ; errorMessagePanel.clear ( ) ; errorMessagePanel.add ( errorIconWidget ) ; errorMessagePanel.setVisible ( false ) ; }

Target:
public void setErrorMessages ( java.util.List < com.google.gwt.safehtml.shared.SafeHtml > messages ) { errorMessagePanel.setMessages ( messages , style.loginMessageError ( ) , style.labelDefault ( ) , style.informationMessage ( ) , PatternflyConstants.TEMP_LINK_COLOR ) ; errorMessagePanel.setVisible ( true ) ; }
Source:
com.gwtplatform.mvp.client.proxy.PlaceRequest resolveMainSectionPlace ( org.ovirt.engine.core.common.mode.ApplicationMode uiMode ) { switch ( uiMode ) { case GlusterOnly : return new com.gwtplatform.mvp.client.proxy.PlaceRequest ( ApplicationPlaces.volumeMainTabPlace ) ; case VirtOnly : case AllModes : default : return defaultMainSectionRequest ; } }

Target:
com.gwtplatform.mvp.client.proxy.PlaceRequest resolveMainSectionPlace ( org.ovirt.engine.core.common.mode.ApplicationMode uiMode ) { switch ( uiMode ) { case GlusterOnly : return org.ovirt.engine.ui.common.place.PlaceRequestFactory.get ( ApplicationPlaces.volumeMainTabPlace ) ; case VirtOnly : case AllModes : default : return defaultMainSectionRequest ; } }
Source:
public void testGetAll ( ) { dao.getAll ( ) ; }

Target:
public void testGetAll ( ) { org.junit.jupiter.api.Assertions.assertThrows ( java.lang.UnsupportedOperationException.class , ( ) -> org.ovirt.engine.core.dao.dao.getAll ( ) ) ; }
Source:
private void initProccessedInfoLists ( ) { proccessedIdsInfo = new java.util.LinkedList < org.ovirt.engine.core.compat.Guid > ( ) ; proccessedOvfGenerationsInfo = new java.util.LinkedList < java.lang.Long > ( ) ; }

Target:
private void initProcessedInfoLists ( ) { proccessedIdsInfo = new java.util.LinkedList < org.ovirt.engine.core.compat.Guid > ( ) ; proccessedOvfGenerationsInfo = new java.util.LinkedList < java.lang.Long > ( ) ; }