auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public boolean hasSpiceSupport ( int osId , org.ovirt.engine.core.compat.Version version ) { java.util.List < org.ovirt.engine.core.common.businessentities.DisplayType > osDisplayTypes = getDisplayTypes ( osId , version ) ; return osDisplayTypes == null ? false : osDisplayTypes.contains ( DisplayType.qxl ) ; }

Target:
private void initializeLargeToSmallIconMap ( ) { largeToSmallOsDefaultIconIdMap = new java.util.HashMap < > ( ) ; for ( org.ovirt.engine.core.common.queries.VmIconIdSizePair pair : osIdToDefaultIconIdMap.values ( ) ) { largeToSmallOsDefaultIconIdMap.put ( pair.getLarge ( ) , pair.getSmall ( ) ) ; } }
Source:
public void validateFailureOnMovingVmLunDisk ( ) { initializeCommand ( ImageOperation.Move , new org.ovirt.engine.core.common.businessentities.storage.LunDisk ( ) ) ; vmDevice.setSnapshotId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_NOT_SUPPORTED_DISK_STORAGE_TYPE ) ; }

Target:
public void validateFailureOnMovingLunDisk ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.LunDisk ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_NOT_SUPPORTED_DISK_STORAGE_TYPE ) ; }
Source:
public void testNullAndIpv6 ( ) { org.junit.Assert.assertFalse ( new org.ovirt.engine.core.utils.network.predicate.IpAddressPredicate ( null ) . test ( "::" ) ) ; }

Target:
public void testNullAndIpv6 ( ) { org.junit.jupiter.api.Assertions.assertFalse ( new org.ovirt.engine.core.utils.network.predicate.IpAddressPredicate ( null ) . test ( "::" ) ) ; }
Source:
public void Init ( org.ovirt.engine.core.common.businessentities.VDS vds ) { mCurrentVdsId = vds.getId ( ) ; setmIrsPort ( vds.getport ( ) ) ; privatemCurrentIrsHost = vds.gethost_name ( ) ; }

Target:
public void Init ( org.ovirt.engine.core.common.businessentities.VDS vds ) { mCurrentVdsId = vds.getId ( ) ; setmIrsPort ( vds.getPort ( ) ) ; privatemCurrentIrsHost = vds.getHostName ( ) ; }
Source:
public < T > T getEntity ( java.lang.Class < T > clz , org.ovirt.engine.core.common.queries.VdcQueryType query , org.ovirt.engine.core.common.queries.VdcQueryParametersBase queryParams , java.lang.String identifier , boolean notFoundAs404 ) { return getEntity ( clz , query , queryParams , identifier , notFoundAs404 , true ) ; }

Target:
public < T > T getEntity ( java.lang.Class < T > clz , org.ovirt.engine.core.common.queries.QueryType query , org.ovirt.engine.core.common.queries.QueryParametersBase queryParams , java.lang.String identifier , boolean notFoundAs404 ) { return getEntity ( clz , query , queryParams , identifier , notFoundAs404 , true ) ; }
Source:
public void hostnameWithProtocol ( ) { junit.framework.Assert.assertTrue ( new org.ovirt.engine.ui.uicommonweb.validation.HostWithProtocolAndPortAddressValidationTest.TestableHostWithProtocolAndPortAddressValidation ( ) . validate ( "Xasd://someHostname" ) . getSuccess ( ) ) ; }

Target:
public void hostnameWithProtocol ( ) { org.junit.Assert.assertTrue ( new org.ovirt.engine.ui.uicommonweb.validation.HostWithProtocolAndPortAddressValidationTest.TestableHostWithProtocolAndPortAddressValidation ( ) . validate ( "Xasd://someHostname" ) . getSuccess ( ) ) ; }
Source:
public boolean isEmpty ( ) { return ( ( ( getOutAverageLinkshare ( ) ) == null ) && ( ( getOutAverageUpperlimit ( ) ) == null ) ) && ( ( getOutAverageRealtime ( ) ) == null ) ; }

Target:
public void setOutAverageRealtime ( java.lang.Integer outAverageRealtime ) { hostNetworkQosProperties.setOutAverageRealtime ( outAverageRealtime ) ; }
Source:
public void validateFailureOnCopyingLunDisk ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.LunDisk ( ) ) ; command.getParameters ( ) . setOperation ( ImageOperation.Copy ) ; command.init ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_NOT_SUPPORTED_DISK_STORAGE_TYPE ) ; }

Target:
public void passDiscardSupportedForCopyFloatingDiskOp ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) , VmEntityType.TEMPLATE ) ; command.getParameters ( ) . setOperation ( ImageOperation.Copy ) ; org.junit.Assert.assertTrue ( command.validatePassDiscardSupportedForDestinationStorageDomain ( ) ) ; }
Source:
public void testList ( ) throws java.lang.Exception { javax.ws.rs.core.UriInfo uriInfo = setUpUriExpectations ( null ) ; setUpGetGraphicsExpectations ( 3 ) ; setUpQueryExpectations ( "" ) ; collection.setUriInfo ( uriInfo ) ; verifyCollection ( getCollection ( ) ) ; }

Target:
public void testList ( ) throws java.lang.Exception { javax.ws.rs.core.UriInfo uriInfo = setUpUriExpectations ( null ) ; setUpGetGraphicsMultipleExpectations ( 3 ) ; setUpQueryExpectations ( "" ) ; collection.setUriInfo ( uriInfo ) ; verifyCollection ( getCollection ( ) ) ; }
Source:
public org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorTest.HostSetupNetworksValidatorBuilder setHost ( org.ovirt.engine.core.common.businessentities.VDS host ) { this . host = host ; return this ; }

Target:
public org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorTest.HostSetupNetworksValidatorBuilder setEmptyParams ( ) { setParams ( new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorTest.ParametersBuilder ( ) . build ( ) ) ; return this ; }
Source:
private java.lang.String getVdsCertificateSubject ( ) { return org.ovirt.engine.core.bll.ConfigureConsoleOptionsQuery.getBackend ( ) . runInternalQuery ( VdcQueryType.GetVdsCertificateSubjectByVmId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( getCachedVm ( ) . getId ( ) ) ) . getReturnValue ( ) ; }

Target:
private java.lang.String getVdsCertificateSubject ( ) { return backend.runInternalQuery ( VdcQueryType.GetVdsCertificateSubjectByVmId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( getCachedVm ( ) . getId ( ) ) ) . getReturnValue ( ) ; }
Source:
void initTable ( ) { initTableOverhead ( ) ; handleRadioButtonClick ( null ) ; }

Target:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( ) { return getDetailModel ( ) . getSetupNetworksCommand ( ) ; }
Source:
private void mockQuotaDao ( ) { org.mockito.Mockito.when ( quotaDao.getById ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( mockGeneralStorageQuota ( ) ) ; }

Target:
public void testSetup ( ) { org.mockito.Mockito.when ( quotaDao.getById ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( mockGeneralStorageQuota ( ) ) ; }
Source:
private void updateWidgetTitle ( java.lang.String title ) { contentWidget.asWidget ( ) . setTitle ( title ) ; }

Target:
public void setWidgetTooltip ( java.lang.String text ) { setContentWidgetContainerTooltip ( text ) ; setLabelTooltip ( text ) ; }
Source:
private java.lang.String showSpiceConsole ( org.ovirt.engine.ui.uicommonweb.models.HasConsoleModel model ) { if ( consoleUtils.canOpenSpiceConsole ( model ) ) { model.getDefaultConsoleModel ( ) . getConnectCommand ( ) . Execute ( ) ; } return null ; }

Target:
private java.lang.String showSpiceConsole ( org.ovirt.engine.ui.uicommonweb.models.HasConsoleModel model ) { if ( consoleUtils.canOpenSpiceConsole ( model ) ) { model.getDefaultConsoleModel ( ) . getConnectCommand ( ) . execute ( ) ; } return null ; }
Source:
public void vnicCreated ( org.ovirt.engine.core.compat.Guid vmId ) { }

Target:
protected void executeDiskModifications ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel model ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel.getcurrentVm ( ) . setId ( vmId ) ; model.getInstanceImages ( ) . executeDiskModifications ( org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel.getcurrentVm ( ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAllUpServers ( org.ovirt.engine.core.compat.Guid clusterId ) { return getVdsDao ( ) . getAllForVdsGroupWithStatus ( clusterId , VDSStatus.Up ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getAllUpServers ( org.ovirt.engine.core.compat.Guid clusterId ) { return getVdsDao ( ) . getAllForClusterWithStatus ( clusterId , VDSStatus.Up ) ; }
Source:
private org.ovirt.engine.api.model.Network getNetwork ( ) { return getEntity ( org.ovirt.engine.api.model.Network.class , VdcQueryType.GetNetworkById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) , guid.toString ( ) ) ; }

Target:
public org.ovirt.engine.api.resource.AssignedPermissionsResource getPermissionsResource ( ) { return null ; }
Source:
public java.lang.String getExitMessage ( ) { return this . mVmDynamic.getExitMessage ( ) ; }

Target:
public void setGuestRequestedMemory ( java.lang.Integer value ) { this . vmDynamic.setguest_requested_memory ( value ) ; }
Source:
public void setFaultTolerant ( boolean faultTolerant ) { this . faultTolerant = faultTolerant ; }

Target:
public void setFinishedChildCmdIds ( java.util.List < org.ovirt.engine.core.compat.Guid > finishedChildCmdIds ) { this . finishedChildCmdIds = finishedChildCmdIds ; }
Source:
public void testUpdateFieldsQutoaDefault ( ) { vm.setIsQuotaDefault ( true ) ; vmStatic.setQuotaDefault ( false ) ; org.junit.Assert.assertTrue ( "Quota default should be updatable" , command.areUpdatedFieldsLegal ( ) ) ; }

Target:
public void testUpdateFieldsQutoaDefault ( ) { vm.setIsQuotaDefault ( true ) ; vmStatic.setQuotaDefault ( false ) ; org.junit.jupiter.api.Assertions.assertTrue ( command.areUpdatedFieldsLegal ( ) , "Quota default should be updatable" ) ; }
Source:
public static org.ovirt.engine.api.resteasy.json.CustomObjectMapper get ( ) { org.ovirt.engine.api.resteasy.json.CustomObjectMapper mapper = new org.ovirt.engine.api.resteasy.json.CustomObjectMapper ( ) ; mapper.setSerializer ( new org.ovirt.engine.api.resteasy.json.CustomBeanFactory ( ) ) . includeDefaults ( false ) . indent ( true ) ; return mapper ; }

Target:
public static org.ovirt.engine.api.resteasy.json.CustomObjectMapper get ( ) { org.ovirt.engine.api.resteasy.json.CustomObjectMapper mapper = new org.ovirt.engine.api.resteasy.json.CustomObjectMapper ( ) ; mapper.setSerializer ( new org.ovirt.engine.api.resteasy.json.CustomBeanFactory ( ) ) . includeDefaults ( false ) . indent ( true ) . addSerializationConfig ( ) ; return mapper ; }
Source:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; return performAction ( VdcActionType.RemoveVnicProfile , new org.ovirt.engine.core.common.action.VnicProfileParameters ( getVnicProfile ( id ) ) ) ; }

Target:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; return performAction ( ActionType.RemoveVnicProfile , new org.ovirt.engine.core.common.action.VnicProfileParameters ( getVnicProfile ( id ) ) ) ; }
Source:
public void eventRaised ( org.ovirt.engine.core.compat.Event ev , java.lang.Object sender , org.ovirt.engine.core.compat.EventArgs args ) { getView ( ) . hideRoleSelection ( java.lang.Boolean.parseBoolean ( model.getIsRoleListHiddenModel ( ) . getEntity ( ) . toString ( ) ) ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { model.setIsEveryoneSelected ( false ) ; getView ( ) . changeStateOfElementsWhenAccessIsForEveryone ( false ) ; }
Source:
public void testIsNetworkInSyncWhenIpv4BootProtocolEqual ( ) { initIpv4ConfigurationBootProtocol ( true ) ; org.junit.Assert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testIsNetworkInSyncWhenIpv4BootProtocolEqual ( ) { initIpv4ConfigurationBootProtocol ( true ) ; org.hamcrest.MatcherAssert.assertThat ( createTestedInstance ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
public org.ovirt.engine.api.resource.StorageDomainContentResource < org.ovirt.engine.api.model.Template > getStorageDomainContentSubResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendStorageDomainTemplateResource ( this , id ) ) ; }

Target:
public org.ovirt.engine.api.resource.StorageDomainContentResource < org.ovirt.engine.api.model.Template > getStorageDomainContentResource ( java.lang.String id ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendStorageDomainTemplateResource ( this , id ) ) ; }
Source:
public void testNetworkAttachmentIsSetWhenAttachmentIsNull ( ) { org.ovirt.engine.core.common.errors.EngineMessage engineMessage = org.ovirt.engine.core.common.errors.EngineMessage.NULL_PASSED_AS_NETWORK_ATTACHMENT ; org.junit.Assert.assertThat ( createNetworkAttachmentValidator ( null ) . networkAttachmentIsSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( engineMessage , org.ovirt.engine.core.utils.ReplacementUtils.getVariableAssignmentString ( engineMessage , null ) ) ) ; }

Target:
public void testNetworkAttachmentIsSetWhenAttachmentIsNull ( ) { org.ovirt.engine.core.common.errors.EngineMessage engineMessage = org.ovirt.engine.core.common.errors.EngineMessage.NULL_PASSED_AS_NETWORK_ATTACHMENT ; org.hamcrest.MatcherAssert.assertThat ( createNetworkAttachmentValidator ( null ) . networkAttachmentIsSet ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( engineMessage , org.ovirt.engine.core.utils.ReplacementUtils.getVariableAssignmentString ( engineMessage , null ) ) ) ; }
Source:
protected java.lang.Boolean getRawValue ( org.ovirt.engine.core.common.businessentities.VmNetworkInterface object ) { return object.isLinked ( ) ; }

Target:
protected java.lang.Boolean getRawValue ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface object ) { return object.isLinked ( ) ; }
Source:
protected void verifyModel ( org.ovirt.engine.api.model.NetworkLabel model , int index ) { assertEquals ( org.ovirt.engine.api.restapi.resource.BackendHostNicLabelsResourceTest.LABELS [ index ] , model.getId ( ) ) ; verifyLinks ( model ) ; }

Target:
protected void verifyModel ( org.ovirt.engine.api.model.NetworkLabel model , int index ) { org.junit.Assert.assertEquals ( org.ovirt.engine.api.restapi.resource.BackendHostNicLabelsResourceTest.LABELS [ index ] , model.getId ( ) ) ; verifyLinks ( model ) ; }
Source:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; org.ovirt.engine.core.common.action.WatchdogParameters parameters = new org.ovirt.engine.core.common.action.WatchdogParameters ( ) ; parameters.setId ( vmId ) ; parameters.setVm ( true ) ; return performAction ( VdcActionType.RemoveWatchdog , parameters ) ; }

Target:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; org.ovirt.engine.core.common.action.WatchdogParameters parameters = new org.ovirt.engine.core.common.action.WatchdogParameters ( ) ; parameters.setId ( vmId ) ; parameters.setVm ( true ) ; return performAction ( ActionType.RemoveWatchdog , parameters ) ; }
Source:
private void removeAlarm ( org.ovirt.engine.core.compat.Guid hostId , boolean isConcurrent , org.ovirt.engine.core.common.AuditLogType conAlert , org.ovirt.engine.core.common.AuditLogType seqAlert ) { if ( isConcurrent ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AlertDirector.RemoveVdsAlert ( hostId , conAlert ) ; } else { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AlertDirector.RemoveVdsAlert ( hostId , seqAlert ) ; } }

Target:
private boolean isHealthy ( org.ovirt.engine.core.common.businessentities.FenceAgent agent , org.ovirt.engine.core.common.businessentities.VDS host ) { return new org.ovirt.engine.core.bll.FenceExecutor ( host ) . fence ( FenceActionType.Status , agent ) . getSucceeded ( ) ; }
Source:
protected void buildModel ( org.ovirt.engine.core.common.businessentities.VmBase vmBase ) { }

Target:
protected void buildModel ( org.ovirt.engine.core.common.businessentities.VmBase vmBase , org.ovirt.engine.ui.uicommonweb.builders.BuilderExecutor.BuilderExecutionFinished < org.ovirt.engine.core.common.businessentities.VmBase , org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel > callback ) { }
Source:
private void updateAuditLog ( org.ovirt.engine.core.common.AuditLogType auditLogType , java.lang.Long imageSizeInGigabytes ) { addCustomValue ( "DiskAlias" , org.ovirt.engine.core.bll.ExtendImageSizeCommand.getImage ( ) . getDiskAlias ( ) ) ; org.ovirt.engine.core.bll.ExtendImageSizeCommand.addCustomValue ( "NewSize" , java.lang.String.valueOf ( imageSizeInGigabytes ) ) ; org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.log ( this , auditLogType ) ; }

Target:
private void updateAuditLogFailedToUpdateVM ( java.lang.String vmName ) { org.ovirt.engine.core.bll.ExtendImageSizeCommand.addCustomValue ( "VmName" , vmName ) ; auditLogDirector.log ( this , AuditLogType.USER_EXTEND_DISK_SIZE_UPDATE_VM_FAILURE ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VM > getVmList ( ) { return org.ovirt.engine.core.bll.pm.FenceVdsBaseCommand.getVmDao ( ) . getAllRunningForVds ( org.ovirt.engine.core.bll.pm.FenceVdsBaseCommand.getVdsId ( ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.VM > getVmList ( ) { return vmDao.getAllRunningForVds ( org.ovirt.engine.core.bll.pm.FenceVdsBaseCommand.getVdsId ( ) ) ; }
Source:
public void testRemoveFailed ( ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetAllDbUsers , org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , getUsers ( ) ) ; doTestBadRemove ( true , false , org.ovirt.engine.api.restapi.resource.FAILURE ) ; }

Target:
public void testRemoveFailed ( ) throws java.lang.Exception { setUpEntityQueryExpectations ( QueryType.GetAllDbUsers , org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , getUsers ( ) ) ; doTestBadRemove ( true , false , org.ovirt.engine.api.restapi.resource.FAILURE ) ; }
Source:
public org.ovirt.engine.core.common.action.VdcReturnValueBase logoff ( org.ovirt.engine.core.common.action.VdcActionParametersBase parameters ) { return runAction ( VdcActionType.LogoutSession , parameters ) ; }

Target:
public org.ovirt.engine.core.common.action.ActionReturnValue logoff ( org.ovirt.engine.core.common.action.ActionParametersBase parameters ) { return runAction ( ActionType.LogoutSession , parameters ) ; }
Source:
public void canDoActionFailureOnMovingVmLunDisk ( ) { initializeCommand ( ImageOperation.Move , new org.ovirt.engine.core.common.businessentities.storage.LunDisk ( ) ) ; vmDevice.setSnapshotId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.ACTION_TYPE_FAILED_NOT_SUPPORTED_DISK_STORAGE_TYPE ) ; }

Target:
public void validateFailureOnMovingVmLunDisk ( ) { initializeCommand ( ImageOperation.Move , new org.ovirt.engine.core.common.businessentities.storage.LunDisk ( ) ) ; vmDevice.setSnapshotId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_NOT_SUPPORTED_DISK_STORAGE_TYPE ) ; }
Source:
public void testGetAnnotationFromSubclass ( ) { org.junit.Assert.assertSame ( org.ovirt.engine.core.utils.log.LoggedUtils.getAnnotation ( new org.ovirt.engine.core.utils.log.LoggedUtilsTest.LoggedClass ( ) ) , org.ovirt.engine.core.utils.log.LoggedUtils.getAnnotation ( new org.ovirt.engine.core.utils.log.LoggedUtilsTest.LoggedSubclass ( ) ) ) ; }

Target:
public void testGetAnnotationFromSubclass ( ) { org.junit.jupiter.api.Assertions.assertSame ( org.ovirt.engine.core.utils.log.LoggedUtils.getAnnotation ( new org.ovirt.engine.core.utils.log.LoggedUtilsTest.LoggedClass ( ) ) , org.ovirt.engine.core.utils.log.LoggedUtils.getAnnotation ( new org.ovirt.engine.core.utils.log.LoggedUtilsTest.LoggedSubclass ( ) ) ) ; }
Source:
public static boolean networkLinkingSupported ( org.ovirt.engine.core.compat.Version version ) { return org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > GetValue ( ConfigValues.NetworkLinkingSupported , version.getValue ( ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult networkProvidedForPortMirroring ( ) { return ( ( nic.getNetworkName ( ) ) == null ) && ( nic.isPortMirroring ( ) ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.PORT_MIRRORING_REQUIRES_NETWORK ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
public void testHasUniqueNamePersistingNewRecordWithNullIdAndSameName ( ) { final java.lang.String macPoolName = "macPool1" ; org.junit.Assert.assertThat ( callHasUniqueName ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , null , macPoolName , macPoolName ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_NAME_ALREADY_USED ) ) ; }

Target:
public void testHasUniqueNamePersistingNewRecordWithNullIdAndSameName ( ) { final java.lang.String macPoolName = "macPool1" ; org.hamcrest.MatcherAssert.assertThat ( callHasUniqueName ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , null , macPoolName , macPoolName ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_NAME_ALREADY_USED ) ) ; }
Source:
public void setSpiceVersion ( java.lang.String value ) { this . mVdsDynamic.setspice_version ( value ) ; }

Target:
public void setSpiceVersion ( java.lang.String value ) { vdsDynamic.setSpiceVersion ( value ) ; }
Source:
private boolean isTypeTenantOrAuthUrlAware ( ) { org.ovirt.engine.core.common.businessentities.ProviderType type = getType ( ) . getSelectedItem ( ) ; return ( ( type == ( org.ovirt.engine.core.common.businessentities.ProviderType.OPENSTACK_NETWORK ) ) || ( type == ( org.ovirt.engine.core.common.businessentities.ProviderType.OPENSTACK_IMAGE ) ) ) || ( type == ( org.ovirt.engine.core.common.businessentities.ProviderType.OPENSTACK_VOLUME ) ) ; }

Target:
protected boolean isExternalNetwork ( ) { return ( getType ( ) . getSelectedItem ( ) ) == ( org.ovirt.engine.core.common.businessentities.ProviderType.EXTERNAL_NETWORK ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult validateAddProvider ( ) { return validateAttachStorageDomain ( ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult validateAddProvider ( ) { if ( ( getStoragePool ( ) ) != null ) { return validateAttachStorageDomain ( ) ; } return org.ovirt.engine.core.bll.ValidationResult.VALID ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return java.util.Collections.< org.ovirt.engine.core.common.businessentities.CertificateInfo > emptyList ( ) ; } return source ; }

Target:
public java.lang.Boolean convert ( java.lang.Object source ) { if ( source != null ) { return ! ( ( ( java.util.Collection < ? > ) ( source ) ) . isEmpty ( ) ) ; } return false ; }
Source:
public void testExtractProperIpv6AddressWithPrefix ( ) { org.junit.Assert.assertThat ( org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.extractIpv6Address ( "::/123" ) , org.hamcrest.Matchers.is ( "::" ) ) ; }

Target:
public void testExtractProperIpv6AddressWithPrefix ( ) { org.junit.Assert.assertThat ( vdsBrokerObjectsBuilder.extractIpv6Address ( "::/123" ) , org.hamcrest.Matchers.is ( "::" ) ) ; }
Source:
public static void UnLockVm ( org.ovirt.engine.core.common.businessentities.VM vm ) { org.ovirt.engine.core.bll.Backend.getInstance ( ) . getResourceManager ( ) . RunVdsCommand ( VDSCommandType.SetVmStatus , new org.ovirt.engine.core.common.vdscommands.SetVmStatusVDSCommandParameters ( vm.getId ( ) , org.ovirt.engine.core.common.businessentities.VMStatus.Down ) ) ; vm.setstatus ( VMStatus.Down ) ; }

Target:
public static void UnLockVm ( org.ovirt.engine.core.common.businessentities.VM vm ) { org.ovirt.engine.core.bll.Backend.getInstance ( ) . getResourceManager ( ) . RunVdsCommand ( VDSCommandType.SetVmStatus , new org.ovirt.engine.core.common.vdscommands.SetVmStatusVDSCommandParameters ( vm.getId ( ) , org.ovirt.engine.core.common.businessentities.VMStatus.Down ) ) ; vm.setStatus ( VMStatus.Down ) ; }
Source:
public void setDisplay ( java.lang.Integer value ) { this . display = value ; }

Target:
public void setGuestOsTimezoneName ( java.lang.String guestOsTimezoneName ) { this . guestOsTimezoneName = guestOsTimezoneName ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VmIconDefault generateNewEntity ( ) { return new org.ovirt.engine.core.common.businessentities.VmIconDefault ( org.ovirt.engine.core.dao.VmIconDefaultDaoTest.NEW_ID , 2 , FixturesTool.SMALL_ICON_ID , org.ovirt.engine.core.dao.VmIconDefaultDaoTest.LARGE_ICON_ID ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VmIconDefault generateNewEntity ( ) { return new org.ovirt.engine.core.common.businessentities.VmIconDefault ( org.ovirt.engine.core.dao.VmIconDefaultDaoTest.NEW_ID , 2 , FixturesTool.SMALL_ICON_ID , FixturesTool.LARGE_ICON_ID ) ; }
Source:
public void ExecuteCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand , java.lang.Object ... parameters ) { ProxyUp ( ) ; }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand , java.lang.Object ... parameters ) { ProxyUp ( ) ; }
Source:
public void testSetActionMessageParameters ( ) { org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertSetActionMessageParameters ( command , EngineMessage.VAR__TYPE__STORAGE__DOMAIN , EngineMessage.VAR__ACTION__REMOVE ) ; }

Target:
public void testSetActionMessageParameters ( ) { org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertSetActionMessageParameters ( command , EngineMessage.VAR__TYPE__STORAGE__DOMAIN , EngineMessage.VAR__ACTION__REMOVE ) ; }
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 ) { onDataLoad ( ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { doInit ( storageDomainId ) ; }
Source:
public void setvm_migrating ( java.lang.Integer value ) { this . mVdsDynamic.setvm_migrating ( value ) ; }

Target:
public void setVmMigrating ( java.lang.Integer value ) { this . mVdsDynamic.setvm_migrating ( value ) ; }
Source:
public org.ovirt.engine.api.v3.servers.V3VmServer getVmResource ( @ javax.ws.rs.PathParam ( value = "id" ) java.lang.String id ) { return new org.ovirt.engine.api.v3.servers.V3VmServer ( id , delegate.getVmResource ( id ) ) ; }

Target:
public org.ovirt.engine.api.v3.servers.V3VmServer getVmResource ( @ javax.ws.rs.PathParam ( value = "id" ) java.lang.String id ) { return new org.ovirt.engine.api.v3.servers.V3VmServer ( id , getDelegate ( ) . getVmResource ( id ) ) ; }
Source:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { org.ovirt.engine.sdk4.Connection connection = org.ovirt.engine.sdk4.ConnectionBuilder.connection ( ) . url ( "https://engine40.example.com/ovirt-engine/api" ) . user ( "admin@internal" ) . password ( "redhat123" ) . trustStoreFile ( "truststore.jks" ) . build ( ) ; org.ovirt.engine.sdk4.services.VmsService vmsService = connection.systemService ( ) . vmsService ( ) ; org.ovirt.engine.sdk4.types.Vm vm = vmsService.list ( ) . search ( "name=myvm" ) . send ( ) . vms ( ) . get ( 0 ) ; org.ovirt.engine.sdk4.services.VmService vmService = vmsService.vmService ( vm.id ( ) ) ; org.ovirt.engine.sdk4.services.DiskAttachmentsService diskAttachmentsService = vmService.diskAttachmentsService ( ) ; java.util.List < org.ovirt.engine.sdk4.types.DiskAttachment > diskAttachments = diskAttachmentsService.list ( ) . send ( ) . attachments ( ) ; for ( org.ovirt.engine.sdk4.types.DiskAttachment diskAttachment : diskAttachments ) { java.lang.System.out.println ( diskAttachment.disk ( ) . id ( ) ) ; } connection.close ( ) ; }

Target:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { org.ovirt.engine.sdk4.Connection connection = org.ovirt.engine.sdk4.ConnectionBuilder.connection ( ) . url ( "https://engine40.example.com/ovirt-engine/api" ) . user ( "admin@internal" ) . password ( "redhat123" ) . trustStoreFile ( "truststore.jks" ) . build ( ) ; org.ovirt.engine.sdk4.services.VmsService vmsService = connection.systemService ( ) . vmsService ( ) ; org.ovirt.engine.sdk4.types.Vm vm = vmsService.list ( ) . search ( "name=myvm" ) . send ( ) . vms ( ) . get ( 0 ) ; org.ovirt.engine.sdk4.services.VmService vmService = vmsService.vmService ( vm.id ( ) ) ; org.ovirt.engine.sdk4.services.DiskAttachmentsService diskAttachmentsService = vmService.diskAttachmentsService ( ) ; java.util.List < org.ovirt.engine.sdk4.types.DiskAttachment > diskAttachments = diskAttachmentsService.list ( ) . send ( ) . attachments ( ) ; for ( org.ovirt.engine.sdk4.types.DiskAttachment diskAttachment : diskAttachments ) { org.ovirt.engine.sdk4.types.Disk disk = connection.followLink ( diskAttachment.disk ( ) ) ; java.lang.System.out.printf ( "name: %s\n" , disk.name ( ) ) ; java.lang.System.out.printf ( "id: %s\n" , disk.id ( ) ) ; java.lang.System.out.printf ( "status: %s\n" , disk.status ( ) ) ; java.lang.System.out.printf ( "provisioned_size: %s\n" , disk.provisionedSize ( ) ) ; } connection.close ( ) ; }
Source:
public void testCompleteSingleValue ( ) { org.junit.Assert.assertEquals ( 1 , completer.getCompletion ( "ot" ) . length ) ; }

Target:
public void testCompleteSingleValue ( ) { org.junit.jupiter.api.Assertions.assertEquals ( 1 , completer.getCompletion ( "ot" ) . length ) ; }
Source:
protected org.ovirt.engine.api.model.HostNIC map ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface , java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > ifaces ) { return map ( iface , null , ifaces ) ; }

Target:
protected org.ovirt.engine.api.model.HostNic map ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface , java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > ifaces ) { return map ( iface , null , ifaces ) ; }
Source:
public java.util.Date getlog_time ( ) { return this . logTime ; }

Target:
public java.util.Date getLogTime ( ) { return logTime ; }
Source:
public int compareTo ( ovirt_engine_dwh.historydelete_3_2.HistoryDelete.row21Struct other ) { int returnValue = - 1 ; return returnValue ; }

Target:
public int compareTo ( ovirt_engine_dwh.historydelete_3_2.HistoryDelete.row21Struct other ) { int returnValue = - 1 ; returnValue = checkNullsAndCompare ( this . history_id , other.history_id ) ; if ( returnValue != 0 ) { return returnValue ; } return returnValue ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createBond ( java.lang.String name , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) , name , true , null , null , networkName , true ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createBond ( java.lang.String name , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , name , true , null , null , networkName , true ) ; }
Source:
public void setText ( java.lang.String text ) { hyperlink.setText ( text ) ; }

Target:
public void setText ( java.lang.String text ) { hyperlinkLabel.setText ( text ) ; }
Source:
public java.lang.String getvds_group_cpu_name ( ) { return this . vds_group_cpu_nameField ; }

Target:
public void setExportDate ( java.util.Date value ) { this . vmStatic.setExportDate ( value ) ; }
Source:
protected void setValue ( com.google.gwt.safehtml.shared.SafeHtml headerText ) { this . headerText = headerText ; }

Target:
protected void setValue ( com.google.gwt.safehtml.shared.SafeHtml headerText ) { if ( showUnderline ) { this . headerText = org.ovirt.engine.ui.common.widget.table.header.SafeHtmlHeader.templates.underlinedHeader ( headerText ) ; } else { this . headerText = headerText ; } }
Source:
protected abstract void SetValue ( java.lang.String name , java.lang.String value , java.lang.String version ) ;

Target:
protected abstract void setValue ( java.lang.String name , java.lang.String value , java.lang.String version ) ;
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.MainModelProvider < org.ovirt.engine.core.common.businessentities.VmTemplate , org.ovirt.engine.ui.uicommonweb.models.templates.TemplateListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.templateMainTabLabel ( ) , 8 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.MainModelProvider < org.ovirt.engine.core.common.businessentities.VmTemplate , org.ovirt.engine.ui.uicommonweb.models.templates.TemplateListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.MainTabTemplatePresenter.constants.templateMainTabLabel ( ) , 8 , modelProvider ) ; }
Source:
public void testUnknownQuery ( ) throws java.lang.Exception { org.ovirt.engine.core.bll.QueriesCommandBase < ? > query = mockQuery ( ) ; org.junit.Assert.assertEquals ( "Wrong type for 'ThereIsNoSuchQuery' " , VdcQueryType.Unknown , org.ovirt.engine.core.bll.TestHelperQueriesCommandType.getQueryTypeFieldValue ( query ) ) ; }

Target:
public void testUnknownQuery ( ) throws java.lang.Exception { org.ovirt.engine.core.bll.QueriesCommandBase < ? > query = mockQuery ( ) ; org.junit.Assert.assertEquals ( "Wrong type for 'ThereIsNoSuchQuery' " , QueryType.Unknown , org.ovirt.engine.core.bll.TestHelperQueriesCommandType.getQueryTypeFieldValue ( query ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterVolumeGeoRepSessionDelete ( java.lang.String volumeName , java.lang.String remoteHost , java.lang.String remoteVolumeName ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterVolumeGeoRepSessionDelete ( java.lang.String volumeName , java.lang.String remoteHost , java.lang.String remoteVolumeName , java.lang.String userName ) ;
Source:
public boolean prepareConnectStorageServer ( org.ovirt.engine.core.common.action.ConnectHostToStoragePoolServersParameters parameters , java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > connections ) { return prepareStorageServer ( parameters , connections ) ; }

Target:
public boolean prepareConnectHostToStoragePoolServers ( org.ovirt.engine.core.bll.context.CommandContext cmdContext , org.ovirt.engine.core.common.action.ConnectHostToStoragePoolServersParameters parameters , java.util.List < org.ovirt.engine.core.common.businessentities.StorageServerConnections > connections ) { return prepareStorageServer ( parameters , connections ) ; }
Source:
public void validateGenerateVmNameWithoutMask2 ( ) { junit.framework.Assert.assertEquals ( "mypool-17" , org.ovirt.engine.core.utils.NameForVmInPoolGenerator.generateVmName ( "mypool" , 17 ) ) ; }

Target:
public void validateGenerateVmNameWithoutMask2 ( ) { org.ovirt.engine.core.utils.NameForVmInPoolGenerator generator = createNameForVmInPoolGenerator ( "mypool" ) ; for ( int i = 1 ; i < 17 ; ++ i ) { generator.generateVmName ( ) ; } junit.framework.Assert.assertEquals ( "mypool-17" , generator.generateVmName ( ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.Cluster lookupCluster ( org.ovirt.engine.core.compat.Guid id ) { return getEntity ( org.ovirt.engine.core.common.businessentities.Cluster.class , VdcQueryType.GetClusterByClusterId , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) , "GetClusterByClusterId" ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.Cluster lookupCluster ( org.ovirt.engine.core.compat.Guid id ) { return getEntity ( org.ovirt.engine.core.common.businessentities.Cluster.class , VdcQueryType.GetClusterById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) , "GetClusterById" ) ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel ) ( result.getState ( ) ) ) ; localModel.StopProgress ( ) ; Cancel ( ) ; OnEntityChanged ( ) ; }

Target:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel ) ( result.getState ( ) ) ) ; localModel.StopProgress ( ) ; Cancel ( ) ; onEntityChanged ( ) ; }
Source:
public void settype ( org.ovirt.engine.core.common.businessentities.TagsType type ) { this . type = type ; }

Target:
public void setType ( org.ovirt.engine.core.common.businessentities.TagsType type ) { this . type = type ; }
Source:
public void testCanDoActionPoolInMaintenance ( ) { getStoragePool ( ) . setstatus ( StoragePoolStatus.Maintenance ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , VdcBllMessages.ACTION_TYPE_FAILED_IMAGE_REPOSITORY_NOT_FOUND ) ; }

Target:
public void testCanDoActionDomainInMaintenance ( ) { getDiskStorageDomain ( ) . setStatus ( StorageDomainStatus.Maintenance ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAIN_STATUS_ILLEGAL ) ; }
Source:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.model.SchedulingPolicy schedulingPolicy ) { validateParameters ( schedulingPolicy , "name" ) ; return performCreate ( VdcActionType.AddClusterPolicy , new org.ovirt.engine.core.common.scheduling.parameters.ClusterPolicyCRUDParameters ( null , map ( schedulingPolicy ) ) , new org.ovirt.engine.api.restapi.resource.QueryIdResolver < org.ovirt.engine.core.compat.Guid > ( org.ovirt.engine.core.common.queries.VdcQueryType.GetClusterPolicyById , org.ovirt.engine.core.common.queries.IdQueryParameters.class ) ) ; }

Target:
public javax.ws.rs.core.Response add ( org.ovirt.engine.api.model.SchedulingPolicy schedulingPolicy ) { validateParameters ( schedulingPolicy , "name" ) ; return performCreate ( VdcActionType.AddClusterPolicy , new org.ovirt.engine.core.common.scheduling.parameters.ClusterPolicyCRUDParameters ( null , map ( schedulingPolicy ) ) , queryIdResolver ) ; }
Source:
public void testBadGuid ( ) throws java.lang.Exception { try { new org.ovirt.engine.api.restapi.resource.BackendPermissionResource ( "foo" , null , null , null ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testBadGuid ( ) throws java.lang.Exception { try { new org.ovirt.engine.api.restapi.resource.BackendPermissionResource ( "foo" , null , null , null ) ; org.junit.Assert.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }
Source:
public void testEvaluateVm ( ) { junit.framework.Assert.assertTrue ( underTest.evaluate ( NetworkType.VM ) ) ; }

Target:
public void testEvaluateVm ( ) { org.junit.Assert.assertTrue ( underTest.evaluate ( NetworkType.VM ) ) ; }
Source:
protected void setHostChangeability ( boolean isPathEditable ) { getContainer ( ) . getHost ( ) . setIsChangable ( isPathEditable ) ; }

Target:
protected void setHostChangeability ( boolean isPathEditable ) { getContainer ( ) . getHost ( ) . setIsChangeable ( isPathEditable ) ; }
Source:
public void rollback ( ) { super . rollback ( ) ; poolPerDc.removePool ( getMacPoolId ( ) ) ; }

Target:
public void onRollback ( ) { macPoolPerCluster.removePool ( getMacPoolId ( ) ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.hosts.HostInterface hostInterface ) { return ( hostInterface.getTxTotal ( ) ) != null ? java.lang.String.valueOf ( hostInterface.getTxTotal ( ) ) : org.ovirt.engine.ui.webadmin.widget.host.HostNetworkInterfaceBondedListViewItem.constants.notAvailableLabel ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.hosts.HostInterface hostInterface ) { return totalRenderer.render ( hostInterface.getTxTotal ( ) ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.StoragePool createInvalidVersionStoragePool ( ) { org.ovirt.engine.core.common.businessentities.StoragePool pool = org.ovirt.engine.core.bll.storage.pool.UpdateStoragePoolCommandTest.createBasicPool ( ) ; pool.setIsLocal ( true ) ; pool.setCompatibilityVersion ( org.ovirt.engine.core.bll.storage.pool.UpdateStoragePoolCommandTest.VERSION_2_0 ) ; return pool ; }

Target:
public void unsupportedVersion ( ) { cmd.getStoragePool ( ) . setCompatibilityVersion ( org.ovirt.engine.core.bll.storage.pool.UpdateStoragePoolCommandTest.VERSION_2_0 ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , org.ovirt.engine.core.bll.utils.VersionSupport.getUnsupportedVersionMessage ( ) ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.NetworkCluster networkCluster ) { return networkCluster.getis_display ( ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.NetworkCluster networkCluster ) { return networkCluster.isDisplay ( ) ; }
Source:
public void networkQosNotSupported ( ) throws java.lang.Exception { vnicProfileValidationTest ( org.junit.matchers.JUnitMatchers.both ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_NETWROK_QOS_IS_NOT_SUPPORTED ) ) . and ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.replacements ( org.junit.matchers.JUnitMatchers.hasItem ( org.ovirt.engine.core.bll.validator.VmNicValidatorTest.CLUSTER_VERSION_REPLACEMENT ) ) ) , true , true , true , false ) ; }

Target:
public void networkQosNotSupported ( ) throws java.lang.Exception { vnicProfileValidationTest ( org.junit.matchers.JUnitMatchers.both ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_NETWORK_QOS_IS_NOT_SUPPORTED ) ) . and ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.replacements ( org.junit.matchers.JUnitMatchers.hasItem ( org.ovirt.engine.core.bll.validator.VmNicValidatorTest.CLUSTER_VERSION_REPLACEMENT ) ) ) , true , true , true , false ) ; }
Source:
public void rollback ( ) { super . rollback ( ) ; poolPerDc.createPool ( getOldMacPool ( ) ) ; }

Target:
protected void executeCommand ( ) { registerRollbackHandler ( new org.ovirt.engine.core.bll.RemoveMacPoolCommand.CustomTransactionCompletionListener ( ) ) ; getMacPoolDao ( ) . remove ( getMacPoolId ( ) ) ; macPoolPerCluster.removePool ( getMacPoolId ( ) ) ; getReturnValue ( ) . setSucceeded ( true ) ; }
Source:
public void vdsMovedToMaintanance ( org.ovirt.engine.core.compat.Guid vdsId ) { org.ovirt.engine.core.common.businessentities.VDS vds = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDao ( ) . get ( vdsId ) ; org.ovirt.engine.core.bll.MaintananceVdsCommand.ProcessStorageOnVdsInactive ( vds ) ; org.ovirt.engine.core.bll.job.ExecutionHandler.updateSpecificActionJobCompleted ( vdsId , VdcActionType.MaintananceVds , true ) ; }

Target:
public void vdsMovedToMaintenance ( org.ovirt.engine.core.common.businessentities.VDS vds ) { try { org.ovirt.engine.core.bll.MaintenanceVdsCommand.ProcessStorageOnVdsInactive ( vds ) ; } finally { org.ovirt.engine.core.bll.job.ExecutionHandler.updateSpecificActionJobCompleted ( vds.getId ( ) , VdcActionType.MaintenanceVds , true ) ; } }
Source:
public java.util.List < org.ovirt.engine.core.common.job.Step > getStepsByJobId ( org.ovirt.engine.core.compat.Guid jobId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "job_id" , jobId ) ; return getCallsHandler ( ) . executeReadList ( "GetStepsByJobId" , createEntityRowMapper ( ) , parameterSource ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.job.Step > getStepsByExternalId ( org.ovirt.engine.core.compat.Guid externalId ) { return multipleResults ( entityManager.createNamedQuery ( "Step.getStepsByExternalId" , org.ovirt.engine.core.common.job.Step.class ) . setParameter ( "externalId" , externalId ) ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.hosts.HostModel ) ( target ) ) ; model.maxSpmPriority = ( ( java.lang.Integer ) ( returnValue ) ) ; initSpmPriorities1 ( ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { java.util.List < java.lang.String > pmTypes = ( ( java.util.ArrayList < java.lang.String > ) ( returnValue ) ) ; updatePmTypeList ( pmTypes ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > getAllNics ( ) { return allNics ; }

Target:
private org.ovirt.engine.ui.uicommonweb.action.UiAction createSetupNetworksAction ( ) { final org.ovirt.engine.core.common.action.HostSetupNetworksParameters hostSetupNetworksParameters = createHostSetupNetworksParameters ( ) ; return new org.ovirt.engine.ui.uicommonweb.action.UiVdcAction ( org.ovirt.engine.core.common.action.VdcActionType.HostSetupNetworks , hostSetupNetworksParameters , this , true ) { @ java.lang.Override protected boolean shouldExecute ( ) { return ! ( hostSetupNetworksParameters.isEmptyRequest ( ) ) ; } } ; }
Source:
public boolean syntaxErrorInProperties ( java.lang.String properties ) { return ( properties != null ) && ( ! ( properties.matches ( org.ovirt.engine.core.utils.customprop.CustomPropertiesUtils.VALIDATION_STR ) ) ) ; }

Target:
public boolean syntaxErrorInProperties ( java.lang.String properties ) { return ( properties != null ) && ( ! ( properties.matches ( org.ovirt.engine.core.common.utils.customprop.CustomPropertiesUtils.VALIDATION_STR ) ) ) ; }
Source:
public java.util.Date getcpu_over_commit_time_stamp ( ) { return mVdsDynamic.getcpu_over_commit_time_stamp ( ) ; }

Target:
public java.util.Date getCpuOverCommitTimestamp ( ) { return mVdsDynamic.getcpu_over_commit_time_stamp ( ) ; }
Source:
private void DisconnectStorage ( ) { getStorageHelper ( org.ovirt.engine.core.bll.storage.RemoveStorageDomainCommand.getStorageDomain ( ) ) . disconnectStorageFromDomainByVdsId ( org.ovirt.engine.core.bll.storage.RemoveStorageDomainCommand.getStorageDomain ( ) , org.ovirt.engine.core.bll.storage.RemoveStorageDomainCommand.getVds ( ) . getId ( ) ) ; }

Target:
private void disconnectStorage ( ) { getStorageHelper ( org.ovirt.engine.core.bll.storage.RemoveStorageDomainCommand.getStorageDomain ( ) ) . disconnectStorageFromDomainByVdsId ( org.ovirt.engine.core.bll.storage.RemoveStorageDomainCommand.getStorageDomain ( ) , org.ovirt.engine.core.bll.storage.RemoveStorageDomainCommand.getVds ( ) . getId ( ) ) ; }
Source:
public int compare ( org.ovirt.engine.core.common.businessentities.ProviderType type1 , org.ovirt.engine.core.common.businessentities.ProviderType type2 ) { final org.ovirt.engine.ui.uicompat.EnumTranslator enumTranslator = org.ovirt.engine.ui.uicompat.EnumTranslator.getInstance ( ) ; return org.ovirt.engine.core.common.businessentities.comparators.LexoNumericComparator.comp ( enumTranslator.get ( type1 ) , enumTranslator.get ( type2 ) ) ; }

Target:
public int compare ( org.ovirt.engine.core.common.businessentities.ProviderType type1 , org.ovirt.engine.core.common.businessentities.ProviderType type2 ) { final org.ovirt.engine.ui.uicompat.EnumTranslator enumTranslator = org.ovirt.engine.ui.uicompat.EnumTranslator.getInstance ( ) ; return org.ovirt.engine.core.common.businessentities.comparators.LexoNumericComparator.comp ( enumTranslator.translate ( type1 ) , enumTranslator.translate ( type2 ) ) ; }