auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void updateGlusterServerHook ( org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity hook , org.ovirt.engine.core.compat.Guid hostId ) ;

Target:
public void removeGlusterServerHook ( org.ovirt.engine.core.compat.Guid hookId ) ;
Source:
public org.ovirt.engine.api.resource.CreationResource getCreationSubresource ( @ javax.ws.rs.PathParam ( value = "oid" ) java.lang.String oid ) ;

Target:
public org.ovirt.engine.api.resource.CreationResource getCreationResource ( @ javax.ws.rs.PathParam ( value = "oid" ) java.lang.String oid ) ;
Source:
public void setKsmState ( java.lang.Boolean value ) { this . mVdsStatistics.setksm_state ( value ) ; }

Target:
public void setKsmCpuPercent ( java.lang.Integer value ) { this . mVdsStatistics.setKsmCpuPercent ( value ) ; }
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.aaa.DbUser , org.ovirt.engine.ui.uicommonweb.models.users.UserListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.userMainTabLabel ( ) , 13 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.MainModelProvider < org.ovirt.engine.core.common.businessentities.aaa.DbUser , org.ovirt.engine.ui.uicommonweb.models.users.UserListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.MainTabUserPresenter.constants.userMainTabLabel ( ) , 13 , modelProvider ) ; }
Source:
public org.ovirt.engine.api.resource.gluster.GlusterBrickResource getGlusterBrickResource ( java.lang.String brickId ) { return inject ( new org.ovirt.engine.api.restapi.resource.gluster.BackendGlusterBrickResource ( brickId , this ) ) ; }

Target:
public org.ovirt.engine.api.resource.gluster.GlusterBrickResource getBrickResource ( java.lang.String brickId ) { return inject ( new org.ovirt.engine.api.restapi.resource.gluster.BackendGlusterBrickResource ( brickId , this ) ) ; }
Source:
protected javax.ws.rs.core.Response performRemove ( java.lang.String id ) { return performAction ( VdcActionType.RemoveDisk , new org.ovirt.engine.core.common.action.RemoveDiskParameters ( org.ovirt.engine.core.compat.Guid.createGuidFromString ( id ) ) ) ; }

Target:
protected javax.ws.rs.core.Response performRemove ( java.lang.String id ) { return performAction ( VdcActionType.RemoveDisk , new org.ovirt.engine.core.common.action.RemoveDiskParameters ( asGuid ( id ) ) ) ; }
Source:
protected java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DiskImage > getAllImageSnapshots ( org.ovirt.engine.core.common.businessentities.DiskImage diskImage ) { return org.ovirt.engine.core.bll.ImagesHandler.getAllImageSnapshots ( diskImage.getImageId ( ) , diskImage.getit_guid ( ) ) ; }

Target:
protected java.util.ArrayList < org.ovirt.engine.core.common.businessentities.DiskImage > getAllImageSnapshots ( org.ovirt.engine.core.common.businessentities.DiskImage diskImage ) { return org.ovirt.engine.core.bll.ImagesHandler.getAllImageSnapshots ( diskImage.getImageId ( ) , diskImage.getImageTemplateId ( ) ) ; }
Source:
public static java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getSoundDevices ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDeviceDao ( ) . getVmDeviceByVmIdAndType ( vmId , VmDeviceGeneralType.SOUND ) ; }

Target:
public static boolean hasVmRngDevice ( org.ovirt.engine.core.compat.Guid vmId ) { return ! ( org.ovirt.engine.core.bll.utils.VmDeviceUtils.dbFacade.getVmDeviceDao ( ) . getVmDeviceByVmIdAndType ( vmId , VmDeviceGeneralType.RNG ) . isEmpty ( ) ) ; }
Source:
org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeSnapshotCreateReturnForXmlRpc glusterSnapshotCreate ( java.lang.String volumeName , java.lang.String snapshotName , java.lang.String description , boolean force ) ;

Target:
org.ovirt.engine.core.vdsbroker.gluster.GlusterVolumeSnapshotCreateReturnForXmlRpc glusterVolumeSnapshotCreate ( java.lang.String volumeName , java.lang.String snapshotName , java.lang.String description , boolean force ) ;
Source:
protected org.ovirt.engine.core.common.queries.VdcQueryParametersBase getProductRPMVersionParams ( ) { return org.ovirt.engine.api.restapi.test.util.TestHelper.eqQueryParams ( org.ovirt.engine.core.common.queries.GetConfigurationValueParameters.class , new java.lang.String [ ] { "SessionId" , "ConfigValue" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendApiResourceTest.SESSION_ID , org.ovirt.engine.core.common.queries.ConfigurationValues.ProductRPMVersion } ) ; }

Target:
protected org.ovirt.engine.core.common.queries.VdcQueryParametersBase getProductRPMVersionParams ( ) { return org.ovirt.engine.api.restapi.test.util.TestHelper.eqParams ( org.ovirt.engine.core.common.queries.GetConfigurationValueParameters.class , new java.lang.String [ ] { "SessionId" , "ConfigValue" } , new java.lang.Object [ ] { org.ovirt.engine.api.restapi.resource.BackendApiResourceTest.SESSION_ID , org.ovirt.engine.core.common.queries.ConfigurationValues.ProductRPMVersion } ) ; }
Source:
public void init ( org.ovirt.engine.ui.uicommonweb.models.reports.ReportModel model ) { this . model = model ; if ( model.isDifferntDcError ( ) ) { errorPopupManager.show ( applicationConstants.reportFromDifferentDCsError ( ) ) ; } else { updateReportUrl ( ) ; } }

Target:
public void init ( org.ovirt.engine.ui.uicommonweb.models.reports.ReportModel model ) { this . model = model ; if ( model.isDifferntDcError ( ) ) { errorPopupManager.show ( applicationConstants.entitiesFromDifferentDCsError ( ) ) ; } else { updateReportUrl ( ) ; } }
Source:
public void hasDomains ( ) { domainListNotEmpty ( ) ; canDoActionFailed ( EngineMessage.ERROR_CANNOT_CHANGE_STORAGE_POOL_TYPE_WITH_DOMAINS ) ; }

Target:
public void hasDomains ( ) { org.mockito.Mockito.when ( sdDao.getAllForStoragePool ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( java.util.Collections.singletonList ( new org.ovirt.engine.core.common.businessentities.StorageDomainStatic ( ) ) ) ; canDoActionFailed ( EngineMessage.ERROR_CANNOT_CHANGE_STORAGE_POOL_TYPE_WITH_DOMAINS ) ; }
Source:
protected void endWithFailure ( ) { org.ovirt.engine.core.bll.snapshots.ColdMergeSnapshotSingleDiskCommand.setSucceeded ( true ) ; }

Target:
public java.util.List < org.ovirt.engine.core.bll.quota.QuotaConsumptionParameter > getQuotaStorageConsumptionParameters ( ) { return java.util.Collections.emptyList ( ) ; }
Source:
public void updatePosixEmptyVFSType ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections newPosixConnection = createPosixConnection ( "multipass.my.domain.tlv.company.com:/export/allstorage/data1" , StorageType.POSIXFS , null , "timeo=30" ) ; parameters.setStorageServerConnection ( newPosixConnection ) ; parameters.setStoragePoolId ( Guid.Empty ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , VdcBllMessages.VALIDATION_STORAGE_CONNECTION_EMPTY_VFSTYPE ) ; }

Target:
public void addPosixEmptyVFSType ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections newPosixConnection = createPosixConnection ( "multipass.my.domain.tlv.company.com:/export/allstorage/data1" , StorageType.POSIXFS , null , "timeo=30" ) ; parameters.setStorageServerConnection ( newPosixConnection ) ; parameters.setStoragePoolId ( Guid.Empty ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , VdcBllMessages.VALIDATION_STORAGE_CONNECTION_EMPTY_VFSTYPE ) ; }
Source:
public void setVmNames ( java.util.List < java.lang.String > vmNames ) { this . vmNames = vmNames ; }

Target:
public void setEntityIds ( java.util.List < org.ovirt.engine.core.compat.Guid > entityIds ) { this . entityIds = entityIds ; }
Source:
public org.ovirt.engine.core.common.businessentities.DbUser getEntity ( ) { return ( ( org.ovirt.engine.core.common.businessentities.DbUser ) ( ( super . getEntity ( ) ) instanceof org.ovirt.engine.core.common.businessentities.DbUser ? super . getEntity ( ) : null ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.aaa.DbUser getEntity ( ) { return ( ( org.ovirt.engine.core.common.businessentities.aaa.DbUser ) ( ( super . getEntity ( ) ) instanceof org.ovirt.engine.core.common.businessentities.aaa.DbUser ? super . getEntity ( ) : null ) ) ; }
Source:
void runFailedAutoStartVM ( org.ovirt.engine.core.compat.Guid vmId ) ;

Target:
void handleVdsMaintenanceTimeout ( org.ovirt.engine.core.common.businessentities.VDS vds ) ;
Source:
public < T > void mockConfigValue ( org.ovirt.engine.core.utils.MockConfigRule.MockConfigDescriptor < T > mcd ) { org.ovirt.engine.core.utils.MockConfigRule.mockConfigValue ( mcd.getValue ( ) , mcd.getVersion ( ) , mcd.getReturnValue ( ) ) ; }

Target:
public < T > void mockConfigValue ( org.ovirt.engine.core.common.utils.MockConfigRule.MockConfigDescriptor < T > mcd ) { org.ovirt.engine.core.common.utils.MockConfigRule.mockConfigValue ( mcd.getValue ( ) , mcd.getVersion ( ) , mcd.getReturnValue ( ) ) ; }
Source:
protected void performLogout ( ) { getLoginModel ( ) . resetAfterLogout ( ) ; user.onUserLogout ( ) ; org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.clearCache ( ) ; org.ovirt.engine.ui.common.uicommon.model.CleanupModelEvent.fire ( eventBus ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { currentUserRole.setCreateInstanceOnly ( loginModel.getCreateInstanceOnly ( ) . getEntity ( ) ) ; }
Source:
public java.lang.String call ( ) { com.woorea.openstack.cinder.model.SnapshotForCreate snapshotForCreate = new com.woorea.openstack.cinder.model.SnapshotForCreate ( ) ; snapshotForCreate.setVolumeId ( cinderDisk.getId ( ) . toString ( ) ) ; return proxy.createSnapshot ( snapshotForCreate ) ; }

Target:
public java.lang.String call ( ) { com.woorea.openstack.cinder.model.SnapshotForCreate snapshotForCreate = new com.woorea.openstack.cinder.model.SnapshotForCreate ( ) ; snapshotForCreate.setVolumeId ( cinderDisk.getImageId ( ) . toString ( ) ) ; return proxy.createSnapshot ( snapshotForCreate ) ; }
Source:
public void storagePoolStatusChange ( org.ovirt.engine.core.compat.Guid storagePoolId , org.ovirt.engine.core.common.businessentities.StoragePoolStatus status , org.ovirt.engine.core.common.AuditLogType auditLogType , org.ovirt.engine.core.common.errors.VdcBllErrors error ) { storagePoolStatusChange ( storagePoolId , status , auditLogType , error , null ) ; }

Target:
public void storagePoolStatusChange ( org.ovirt.engine.core.compat.Guid storagePoolId , org.ovirt.engine.core.common.businessentities.StoragePoolStatus status , org.ovirt.engine.core.common.AuditLogType auditLogType , org.ovirt.engine.core.common.errors.EngineError error ) { storagePoolStatusChange ( storagePoolId , status , auditLogType , error , null ) ; }
Source:
public void setRebootAfterInstallation ( java.lang.Boolean value ) { this . rebootAfterInstallation = value ; }

Target:
public boolean isSetStorageConnectionExtensions ( ) { return ( this . storageConnectionExtensions ) != null ; }
Source:
private org.ovirt.engine.core.common.businessentities.VDSGroup getVdsGroup ( boolean glusterEnabled ) { org.ovirt.engine.core.common.businessentities.VDSGroup vdsGroup = new org.ovirt.engine.core.common.businessentities.VDSGroup ( ) ; vdsGroup.setId ( clusterId ) ; vdsGroup.setVirtService ( false ) ; vdsGroup.setGlusterService ( glusterEnabled ) ; vdsGroup.setCompatibilityVersion ( Version.v3_1 ) ; return vdsGroup ; }

Target:
private org.ovirt.engine.core.common.businessentities.Cluster getCluster ( boolean glusterEnabled ) { org.ovirt.engine.core.common.businessentities.Cluster cluster = new org.ovirt.engine.core.common.businessentities.Cluster ( ) ; cluster.setId ( clusterId ) ; cluster.setVirtService ( false ) ; cluster.setGlusterService ( glusterEnabled ) ; cluster.setCompatibilityVersion ( Version.v3_1 ) ; return cluster ; }
Source:
private void assertThatExternalNetworkDetailsUnchangedFails ( org.ovirt.engine.core.common.businessentities.network.Network externalNetwork ) { org.junit.Assert.assertThat ( validator.externalNetworkDetailsUnchanged ( externalNetwork ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_EXTERNAL_NETWORK_DETAILS_CANNOT_BE_EDITED ) ) ; }

Target:
private void assertThatExternalNetworkDetailsUnchangedFails ( org.ovirt.engine.core.common.businessentities.network.Network externalNetwork ) { org.hamcrest.MatcherAssert.assertThat ( validator.externalNetworkDetailsUnchanged ( externalNetwork ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_EXTERNAL_NETWORK_DETAILS_CANNOT_BE_EDITED ) ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.gin.ClientGinjector ginjector ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( ginjector.getApplicationConstants ( ) . storageIsoSubTabLabel ( ) , 6 , ginjector.getSubTabStorageIsoModelProvider ( ) ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.ApplicationConstants applicationConstants , org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.RepoImage , org.ovirt.engine.ui.uicommonweb.models.storage.StorageListModel , org.ovirt.engine.ui.uicommonweb.models.storage.StorageIsoListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( applicationConstants.storageImagesSubTabLabel ( ) , 6 , modelProvider ) ; }
Source:
public void testGetOsIdByUniqueName ( ) { org.junit.Assert.assertEquals ( 777 , OsRepositoryImpl.INSTANCE.getOsIdByUniqueName ( "rhel7" ) ) ; }

Target:
public void testGetOsIdByUniqueName ( ) { org.junit.jupiter.api.Assertions.assertEquals ( 777 , OsRepositoryImpl.INSTANCE.getOsIdByUniqueName ( "rhel7" ) ) ; }
Source:
public void setOriginalReturnValue ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue originalReturnValue ) { this . originalReturnValue = originalReturnValue ; }

Target:
public org.ovirt.engine.ui.frontend.AsyncQuery < T > handleFailure ( ) { setHandleFailure ( true ) ; return this ; }
Source:
public void canDoActionFailsOnNullCluster ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.EnableGlusterHookCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterHookParameters ( null , org.ovirt.engine.core.bll.gluster.EnableGlusterHookCommandTest.HOOK_ID ) ) ) ; setupMocks ( ) ; org.junit.Assert.assertFalse ( cmd.canDoAction ( ) ) ; }

Target:
public void canDoActionSucceeds ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.EnableGlusterHookCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterHookParameters ( CLUSTER_ID , HOOK_ID ) ) ) ; setupMocks ( cmd ) ; org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }
Source:
protected boolean isUpdateValid ( ) { return org.ovirt.engine.core.bll.VdsHandler.isUpdateValid ( getHost ( ) . getStaticData ( ) , oldHost.getStaticData ( ) , oldHost.getStatus ( ) ) ; }

Target:
protected boolean isUpdateValid ( ) { return vdsHandler.isUpdateValid ( getHost ( ) . getStaticData ( ) , oldHost.getStaticData ( ) , oldHost.getStatus ( ) ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.VM , org.ovirt.engine.ui.uicommonweb.models.hosts.HostListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.hosts.HostVmListModel > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.host.SubTabHostVmPresenter.constants.hostVmSubTabLabel ( ) , 1 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( ) { return new org.ovirt.engine.ui.common.uicommon.model.GroupedTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.host.SubTabHostVmPresenter.constants.hostVmSubTabLabel ( ) , 1 ) ; }
Source:
public void setFormPanel ( org.ovirt.engine.ui.common.widget.form.AbstractFormPanel formPanel ) { this . formPanel = formPanel ; }

Target:
public void setFormPanel ( org.ovirt.engine.ui.common.widget.form.AbstractFormPanel formPanel ) { this . formPanel = formPanel ; if ( ( autoPlacement ) && ( getIsAvailable ( ) ) ) { this . autoPlacementRow = formPanel.getNextAvailableRow ( column ) ; } }
Source:
protected void executeQueryCommand ( ) { P params = org.ovirt.engine.core.bll.GetPermittedStorageDomainsByStoragePoolIdQuery.getParameters ( ) ; setReturnValue ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageDomainDAO ( ) . getPermittedStorageDomainsByStoragePool ( org.ovirt.engine.core.bll.GetPermittedStorageDomainsByStoragePoolIdQuery.getUserID ( ) , params.getActionGroup ( ) , params.getStoragePoolId ( ) ) ) ; }

Target:
protected void executeQueryCommand ( ) { P params = org.ovirt.engine.core.bll.GetPermittedStorageDomainsByStoragePoolIdQuery.getParameters ( ) ; setReturnValue ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageDomainDao ( ) . getPermittedStorageDomainsByStoragePool ( org.ovirt.engine.core.bll.GetPermittedStorageDomainsByStoragePoolIdQuery.getUserID ( ) , params.getActionGroup ( ) , params.getStoragePoolId ( ) ) ) ; }
Source:
void mockGetVdsCertificateSubjectByVmId ( ) { org.mockito.Mockito.doReturn ( hostSubjectReturnValue ) . when ( backend ) . runInternalQuery ( org.mockito.Matchers.eq ( VdcQueryType.GetVdsCertificateSubjectByVmId ) , org.mockito.Matchers.any ( org.ovirt.engine.core.common.queries.IdQueryParameters.class ) ) ; org.mockito.Mockito.doReturn ( org.ovirt.engine.core.bll.ConfigureConsoleOptionsQueryTest.HOST_SUBJECT ) . when ( hostSubjectReturnValue ) . getReturnValue ( ) ; }

Target:
void mockGetVdsCertificateSubjectByVmId ( ) { org.mockito.Mockito.doReturn ( hostSubjectReturnValue ) . when ( backend ) . runInternalQuery ( org.mockito.ArgumentMatchers.eq ( VdcQueryType.GetVdsCertificateSubjectByVmId ) , org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.common.queries.IdQueryParameters.class ) ) ; org.mockito.Mockito.doReturn ( org.ovirt.engine.core.bll.ConfigureConsoleOptionsQueryTest.HOST_SUBJECT ) . when ( hostSubjectReturnValue ) . getReturnValue ( ) ; }
Source:
public void executeQueryCommandWithNull ( ) { getQuery ( ) . executeQueryCommand ( ) ; org.junit.Assert.assertTrue ( ( ( java.util.List < ? > ) ( getQuery ( ) . getQueryReturnValue ( ) . getReturnValue ( ) ) ) . isEmpty ( ) ) ; }

Target:
public void executeQueryCommandWithNull ( ) { getQuery ( ) . executeQueryCommand ( ) ; org.junit.jupiter.api.Assertions.assertTrue ( ( ( java.util.List < ? > ) ( getQuery ( ) . getQueryReturnValue ( ) . getReturnValue ( ) ) ) . isEmpty ( ) ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { getModel ( ) . getIsVirtioScsiEnabled ( ) . setEntity ( ( ( java.lang.Boolean ) ( returnValue ) ) ) ; }

Target:
public void afterUpdates ( ) { getInstanceTypeManager ( ) . activate ( ) ; }
Source:
public void passwordNotNeededForNonPasswordMethod ( ) { validator = createValidatorForHostInstallation ( ) ; org.junit.Assert.assertThat ( validator.passwordProvidedForHostInstallation ( AuthenticationMethod.PublicKey , null ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void passwordNotNeededForNonPasswordMethod ( ) { validator = createValidatorForHostInstallation ( ) ; org.hamcrest.MatcherAssert.assertThat ( validator.passwordProvidedForHostInstallation ( AuthenticationMethod.PublicKey , null ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
protected void executeVdsBrokerCommand ( ) { httpTask = org.ovirt.engine.core.vdsbroker.vdsbroker.SetupNetworksVDSCommand.getBroker ( ) . setupNetworks ( generateNetworks ( ) , generateBonds ( ) , generateOptions ( ) ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { httpTask = org.ovirt.engine.core.vdsbroker.vdsbroker.SetupNetworksVDSCommand.getBroker ( ) . setupNetworks ( generateNetworks ( ) , generateBonds ( ) , generateOptions ( ) , org.ovirt.engine.core.vdsbroker.vdsbroker.SetupNetworksVDSCommand.getParameters ( ) . isManagementNetworkChanged ( ) ) ; }
Source:
protected org.ovirt.engine.api.model.VM getEntity ( int index ) { org.ovirt.engine.api.model.VM vm = new org.ovirt.engine.api.model.VM ( ) ; return org.ovirt.engine.api.restapi.resource.BackendVmsResourceTest.setUpEntityExpectations ( vm , vm.getStatisticsData ( ) , index ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VM getEntity ( int index ) { org.ovirt.engine.api.restapi.resource.VM vm = new org.ovirt.engine.api.restapi.resource.VM ( ) ; return org.ovirt.engine.api.restapi.resource.BackendVmsResourceTest.setUpEntityExpectations ( vm , vm.getStatisticsData ( ) , index ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.network.VnicProfile getVnicProfile ( org.ovirt.engine.core.compat.Guid vnicProfileId ) { if ( vnicProfileId == null ) { return null ; } return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVnicProfileDao ( ) . get ( vnicProfileId ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.network.VnicProfile getVnicProfile ( org.ovirt.engine.core.compat.Guid vnicProfileId ) { if ( vnicProfileId == null ) { return null ; } return vnicProfileDao.get ( vnicProfileId ) ; }
Source:
public void removeNetwork ( org.ovirt.engine.core.compat.Guid vfsConfigId , org.ovirt.engine.core.compat.Guid networkId ) { getCallsHandler ( ) . executeModification ( "DeletevfsConfigNetwork" , createNetworkParametersMapper ( vfsConfigId , networkId ) ) ; }

Target:
private void removeAllNetworksByVfsConfigId ( org.ovirt.engine.core.compat.Guid vfsConfigId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = createVfsConfigIdParameter ( vfsConfigId ) ; getCallsHandler ( ) . executeModification ( "DeleteAllVfsConfigNetworks" , parameterSource ) ; }
Source:
public void testSubResourceLocatorBadGuid ( ) { try { collection.getParameterResource ( "foo" ) ; org.junit.jupiter.api.Assertions.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testAddIncompleteParameters ( ) { org.ovirt.engine.api.model.NetworkFilterParameter model = new org.ovirt.engine.api.model.NetworkFilterParameter ( ) ; setUriInfo ( setUpBasicUriExpectations ( ) ) ; verifyIncompleteException ( org.junit.jupiter.api.Assertions.assertThrows ( javax.ws.rs.WebApplicationException.class , ( ) -> org.ovirt.engine.api.restapi.resource.collection.add ( model ) ) , "NetworkFilterParameter" , "add" , "value" ) ; }
Source:
public void testInvalidMemory ( ) { prepareVmToPassCanDoAction ( ) ; vmStatic.setMemSizeMb ( 99999 ) ; junit.framework.Assert.assertFalse ( "canDoAction should have failed with invalid memory." , command.canDoAction ( ) ) ; assertCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_ILLEGAL_MEMORY_SIZE ) ; }

Target:
private void prepareVmToPassCanDoAction ( ) { vmStatic.setName ( "vm1" ) ; vmStatic.setMemSizeMb ( 256 ) ; vmStatic.setSingleQxlPci ( false ) ; mockVmDaoGetVm ( ) ; mockSameNameQuery ( false ) ; mockValidateCustomProperties ( ) ; mockValidatePciAndIdeLimit ( ) ; }
Source:
private org.ovirt.engine.core.common.action.VdcReturnValueBase getErrorCommandReturnValue ( org.ovirt.engine.core.common.errors.EngineMessage message ) { org.ovirt.engine.core.common.action.VdcReturnValueBase returnValue = new org.ovirt.engine.core.common.action.VdcReturnValueBase ( ) ; returnValue.setValid ( false ) ; returnValue.getValidationMessages ( ) . add ( message.toString ( ) ) ; return returnValue ; }

Target:
private org.ovirt.engine.core.common.action.ActionReturnValue getErrorCommandReturnValue ( org.ovirt.engine.core.common.errors.EngineMessage message ) { org.ovirt.engine.core.common.action.ActionReturnValue returnValue = new org.ovirt.engine.core.common.action.ActionReturnValue ( ) ; returnValue.setValid ( false ) ; returnValue.getValidationMessages ( ) . add ( message.toString ( ) ) ; return returnValue ; }
Source:
public void shouldNotElectActiveHostedEngineDomain ( ) { prepareStorageDomainForElection ( StorageDomainStatus.Active , org.ovirt.engine.core.bll.storage.domain.StorageDomainCommandBaseTest.HE_STORAGE_DOMAIN_NAME ) ; org.junit.Assert.assertEquals ( null , cmd.electNewMaster ( ) ) ; }

Target:
public void shouldNotElectActiveHostedEngineDomain ( ) { prepareStorageDomainForElection ( StorageDomainStatus.Active , org.ovirt.engine.core.bll.storage.domain.StorageDomainCommandBaseTest.HE_STORAGE_DOMAIN_NAME ) ; org.mockito.Mockito.when ( hostedEngineHelper.isHostedEngineStorageDomain ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.StorageDomain.class ) ) ) . thenReturn ( true ) ; org.junit.Assert.assertEquals ( null , cmd.electNewMaster ( ) ) ; }
Source:
private void cluster_SelectedItemChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { behavior.cluster_SelectedItemChanged ( ) ; updateMaximalVmMemSize ( ) ; }

Target:
private void vmTypeChanged ( ) { behavior.vmTypeChanged ( ( ( org.ovirt.engine.core.common.businessentities.VmType ) ( getVmType ( ) . getSelectedItem ( ) ) ) ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getRoleGroupMapDao ( ) ; existingRoleGroupMap = dao.getByActionGroupAndRole ( ActionGroup.RUN_VM , org.ovirt.engine.core.dao.RoleGroupMapDaoTest.EXISTING_ROLE_ID ) ; actionGroup = org.ovirt.engine.core.common.businessentities.ActionGroup.CONNECT_TO_VM ; newRoleGroupMap = new org.ovirt.engine.core.common.businessentities.RoleGroupMap ( actionGroup , org.ovirt.engine.core.dao.RoleGroupMapDaoTest.EXISTING_ROLE_ID ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getRoleGroupMapDao ( ) ; existingRoleGroupMap = dao.getByActionGroupAndRole ( ActionGroup.RUN_VM , FixturesTool.ROLE_ID ) ; actionGroup = org.ovirt.engine.core.common.businessentities.ActionGroup.CONNECT_TO_VM ; newRoleGroupMap = new org.ovirt.engine.core.common.businessentities.RoleGroupMap ( actionGroup , FixturesTool.ROLE_ID ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.AdRefStatus getAdStatus ( ) { if ( ( getstatus ( ) ) == 0 ) { return AdRefStatus.Inactive ; } return AdRefStatus.Active ; }

Target:
public org.ovirt.engine.core.common.businessentities.LdapRefStatus getAdStatus ( ) { if ( ( getstatus ( ) ) == 0 ) { return LdapRefStatus.Inactive ; } return LdapRefStatus.Active ; }
Source:
public void testSubResourceLocatorBadGuid ( ) throws java.lang.Exception { try { collection.getNicResource ( "foo" ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testSubResourceLocatorBadGuid ( ) throws java.lang.Exception { try { collection.getNicResource ( "foo" ) ; org.junit.Assert.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }
Source:
public boolean test ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface ) { return ( managementAddress ) == null ? false : managementAddress.equals ( iface.getAddress ( ) ) ; }

Target:
public boolean test ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface ) { return ( managementAddress ) == null ? false : managementAddress.equals ( iface.getIpv4Address ( ) ) ; }
Source:
public void testValidateNetworkExclusiveOnNicsVmAndVlanAttachedToInterface ( ) throws java.lang.Exception { checkVmNetworkIsSoleAssignedInterface ( failsWithNetworkInterfacesNotExclusivelyUsedByNetwork ( ) , vmNetwork1 , vlanNetwork ) ; }

Target:
public void testValidateNetworkExclusiveOnNicsVmAndVlanAttachedToInterface ( ) throws java.lang.Exception { checkVmNetworkIsSoleAssignedInterface ( true , java.util.Arrays.asList ( NetworkType.VM , NetworkType.VLAN ) , vmNetwork1 , vlanNetwork ) ; }
Source:
private static java.util.Map < java.lang.String , java.lang.Object > getConsoleDeviceSpecParams ( ) { java.util.Map < java.lang.String , java.lang.Object > specParams = new java.util.HashMap < > ( ) ; specParams.put ( "enableSocket" , "true" ) ; return specParams ; }

Target:
private static java.util.Map < java.lang.String , java.lang.Object > getConsoleDeviceSpecParams ( ) { java.util.Map < java.lang.String , java.lang.Object > specParams = new java.util.HashMap < > ( ) ; specParams.put ( "enableSocket" , "true" ) ; specParams.put ( "consoleType" , "serial" ) ; return specParams ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult networkExists ( ) { return createNetworkValidator ( ) . networkIsSet ( ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult networkExists ( ) { return getNetworkValidator ( ) . networkIsSet ( ) ; }
Source:
public void testGetstorage_domain_by_type_for_storagePoolId ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain result = dao.getStorageDomain ( new org.ovirt.engine.core.compat.Guid ( "6d849ebf-755f-4552-ad09-9a090cda105d" ) , StorageDomainType.Master ) ; org.junit.Assert.assertNotNull ( result ) ; assertGetResult ( result ) ; }

Target:
public void testGetstorage_domain_by_type_for_storagePoolId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getStorageDomains ( new org.ovirt.engine.core.compat.Guid ( "6d849ebf-755f-4552-ad09-9a090cda105d" ) , StorageDomainType.Master ) ; assertGetResult ( result.get ( 0 ) ) ; }
Source:
public java.lang.String render ( java.util.Date object ) { if ( object == null ) { return org.ovirt.engine.ui.common.widget.renderer.FullDateTimeRenderer.constants.notAvailableLabel ( ) ; } return org.ovirt.engine.ui.common.widget.renderer.FullDateTimeRenderer.getLocalizedDateTimeFormat ( ) . format ( object ) ; }

Target:
public java.lang.String render ( java.util.Date object ) { if ( object == null ) { return org.ovirt.engine.ui.common.widget.renderer.FullDateTimeRenderer.constants.notAvailableLabel ( ) ; } return formatter.format ( object ) ; }
Source:
protected void lockImage ( ) { org.ovirt.engine.core.bll.storage.disk.image.ImagesHandler.updateAllDiskImageSnapshotsStatusWithCompensation ( org.ovirt.engine.core.bll.storage.disk.image.MoveImageGroupCommand.getRelevantDiskImage ( ) . getId ( ) , ImageStatus.LOCKED , org.ovirt.engine.core.bll.storage.disk.image.MoveImageGroupCommand.getRelevantDiskImage ( ) . getImageStatus ( ) , org.ovirt.engine.core.bll.storage.disk.image.MoveImageGroupCommand.getCompensationContext ( ) ) ; }

Target:
protected void lockImage ( ) { imagesHandler.updateAllDiskImageSnapshotsStatusWithCompensation ( org.ovirt.engine.core.bll.storage.disk.image.MoveImageGroupCommand.getRelevantDiskImage ( ) . getId ( ) , ImageStatus.LOCKED , org.ovirt.engine.core.bll.storage.disk.image.MoveImageGroupCommand.getRelevantDiskImage ( ) . getImageStatus ( ) , org.ovirt.engine.core.bll.storage.disk.image.MoveImageGroupCommand.getCompensationContext ( ) ) ; }
Source:
protected java.lang.String getWarning ( ) { return ( ( org.ovirt.engine.ui.webadmin.ApplicationConstants ) ( constants ) ) . storageDestroyPopupWarningLabel ( ) ; }

Target:
protected java.lang.String getWarning ( ) { return org.ovirt.engine.ui.webadmin.section.main.view.popup.storage.StorageDestroyPopupView.constants.storageDestroyPopupWarningLabel ( ) ; }
Source:
private void prepareVmToPassCanDoAction ( ) { vmStatic.setVmName ( "vm1" ) ; vmStatic.setMemSizeMb ( 256 ) ; mockVmDaoGetVm ( ) ; mockSameNameQuery ( false ) ; mockValidateCustomProperties ( ) ; }

Target:
private void prepareVmToPassCanDoAction ( ) { vmStatic.setName ( "vm1" ) ; vmStatic.setMemSizeMb ( 256 ) ; mockVmDaoGetVm ( ) ; mockSameNameQuery ( false ) ; mockValidateCustomProperties ( ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.StoragePool createBasicPool ( ) { org.ovirt.engine.core.common.businessentities.StoragePool pool = new org.ovirt.engine.core.common.businessentities.StoragePool ( ) ; pool.setId ( org.ovirt.engine.core.compat.Guid.NewGuid ( ) ) ; pool.setname ( "Default" ) ; return pool ; }

Target:
private static org.ovirt.engine.core.common.businessentities.StoragePool createBasicPool ( ) { org.ovirt.engine.core.common.businessentities.StoragePool pool = new org.ovirt.engine.core.common.businessentities.StoragePool ( ) ; pool.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; pool.setname ( "Default" ) ; return pool ; }
Source:
protected void initSubTabHistoryTokens ( java.util.Map < org.ovirt.engine.ui.webadmin.plugin.entity.EntityType , java.lang.String > map ) { map.put ( org.ovirt.engine.ui.webadmin.plugin.entity.EntityType.Event , ApplicationPlaces.quotaEventSubTabPlace ) ; }

Target:
protected void initSubTabHistoryTokens ( java.util.Map < org.ovirt.engine.ui.webadmin.plugin.entity.EntityType , java.lang.String > map ) { map.put ( org.ovirt.engine.ui.webadmin.plugin.entity.EntityType.Event , WebAdminApplicationPlaces.quotaEventSubTabPlace ) ; }
Source:
protected < T extends org.ovirt.engine.core.common.vdscommands.StorageDomainIdParametersBase & org.ovirt.engine.core.common.vdscommands.PostDeleteAction > T fixParameters ( T parameters , boolean isFileDomain ) { if ( isFileDomain ) { parameters.setPostZero ( false ) ; } return parameters ; }

Target:
protected < T extends org.ovirt.engine.core.common.vdscommands.StorageDomainIdParametersBase & org.ovirt.engine.core.common.vdscommands.PostDeleteAction > T fixPostZeroField ( T parameters , boolean isFileDomain ) { if ( isFileDomain ) { parameters.setPostZero ( false ) ; } return parameters ; }
Source:
public org.ovirt.engine.core.bll.tasks.interfaces.SPMTask construct ( org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo creationInfo , org.ovirt.engine.core.common.businessentities.AsyncTask asyncTask ) { return org.ovirt.engine.core.bll.tasks.AsyncTaskFactory.construct ( this , creationInfo.getTaskType ( ) , new org.ovirt.engine.core.common.asynctasks.AsyncTaskParameters ( creationInfo , asyncTask ) , true ) ; }

Target:
public org.ovirt.engine.core.bll.tasks.interfaces.SPMTask construct ( org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo creationInfo , org.ovirt.engine.core.common.businessentities.AsyncTask asyncTask ) { return asyncTaskFactory.construct ( creationInfo.getTaskType ( ) , new org.ovirt.engine.core.common.asynctasks.AsyncTaskParameters ( creationInfo , asyncTask ) , true ) ; }
Source:
private void initDataForClearTest ( java.lang.String key ) { container.setData ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID , key , org.mockito.Mockito.mock ( org.ovirt.engine.core.common.businessentities.DbUser.class ) ) ; container.setData ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID , org.ovirt.engine.core.bll.session.SessionDataContainerTest.SOFT_LIMIT , org.apache.commons.lang.time.DateUtils.addMinutes ( new java.util.Date ( ) , ( - 1 ) ) ) ; }

Target:
private void initDataForClearTest ( java.lang.String key ) { container.setData ( org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_SESSION_ID , key , org.mockito.Mockito.mock ( org.ovirt.engine.core.common.businessentities.DbUser.class ) ) ; container.setData ( org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_SESSION_ID , org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.SOFT_LIMIT , org.apache.commons.lang.time.DateUtils.addMinutes ( new java.util.Date ( ) , ( - 1 ) ) ) ; }
Source:
public void macAddressFormatInvalidForCreate ( ) throws java.lang.Exception { assertMacAddressFormatValidation ( createInvalidMacAddress ( ) , org.ovirt.engine.core.common.validation.group.CreateEntity.class , true ) ; }

Target:
public void macAddressTooLongForCreate ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.assertMacAddressFormatValidation ( ( ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_MAC_ADDRESS ) + ":00" ) , org.ovirt.engine.core.common.validation.group.CreateEntity.class , true ) ; }
Source:
private void mockStorageDomainSpaceChecker ( org.ovirt.engine.core.common.businessentities.storage_domains domain , boolean succeeded ) { org.mockito.Mockito.doReturn ( succeeded ) . when ( command ) . isStorageDomainBelowThresholds ( domain ) ; }

Target:
private void mockStorageDomainSpaceChecker ( org.ovirt.engine.core.common.businessentities.storage_domains domain , boolean succeeded ) { org.mockito.Mockito.doReturn ( succeeded ) . when ( command ) . isStorageDomainWithinThresholds ( domain ) ; }
Source:
protected boolean showTransportProperties ( ) { return false ; }

Target:
protected boolean showTransportProperties ( org.ovirt.engine.core.common.businessentities.VDS vds ) { if ( VDSStatus.Maintenance.equals ( vds.getStatus ( ) ) ) { return true ; } return false ; }
Source:
public java.lang.String getSSHKeyFingerprint ( ) { return mVdsStatic.getSSHKeyFingerprint ( ) ; }

Target:
public void setSshKeyFingerprint ( java.lang.String sshKeyFingerprint ) { mVdsStatic.setSshKeyFingerprint ( sshKeyFingerprint ) ; }
Source:
public void passwordIsEmpty ( ) { org.junit.Assert.assertThat ( validator.passwordNotEmpty ( false , AuthenticationMethod.Password , null ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.VDS_CANNOT_INSTALL_EMPTY_PASSWORD ) ) ; }

Target:
public void passwordIsEmpty ( ) { org.hamcrest.MatcherAssert.assertThat ( validator.passwordNotEmpty ( false , AuthenticationMethod.Password , null ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.VDS_CANNOT_INSTALL_EMPTY_PASSWORD ) ) ; }
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 > getStepsByJobIdForVdsmAndGluster ( org.ovirt.engine.core.compat.Guid jobId ) { return multipleResults ( entityManager.createNamedQuery ( "Step.getStepsByJobIdForVdsmAndGluster" , org.ovirt.engine.core.common.job.Step.class ) . setParameter ( "jobId" , jobId ) . setParameter ( "systemType" , java.util.EnumSet.of ( ExternalSystemType.VDSM , ExternalSystemType.GLUSTER ) ) ) ; }
Source:
private org.ovirt.engine.core.utils.lock.EngineLock createLockForRunVmCommand ( org.ovirt.engine.core.compat.Guid vmId ) { return new org.ovirt.engine.core.utils.lock.EngineLock ( java.util.Collections.singletonMap ( vmId.toString ( ) , org.ovirt.engine.core.bll.LockMessagesMatchUtil.makeLockingPair ( LockingGroup.VM , VdcBllMessages.ACTION_TYPE_FAILED_OBJECT_LOCKED.name ( ) ) ) , null ) ; }

Target:
private org.ovirt.engine.core.utils.lock.EngineLock createEngineLockForRunVm ( org.ovirt.engine.core.compat.Guid vmId ) { return new org.ovirt.engine.core.utils.lock.EngineLock ( org.ovirt.engine.core.bll.RunVmCommandBase.getExclusiveLocksForRunVm ( vmId , getLockMessage ( ) ) , org.ovirt.engine.core.bll.RunVmCommandBase.getSharedLocksForRunVm ( ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity > getBricksOfVolume ( org.ovirt.engine.core.compat.Guid volumeId ) { return getCallsHandler ( ) . executeReadList ( "GetBricksByGlusterVolumeGuid" , brickRowMapper , getCustomMapSqlParameterSource ( ) . addValue ( "volume_id" , volumeId ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity > getBricksOfVolume ( org.ovirt.engine.core.compat.Guid volumeId ) { java.util.List < org.ovirt.engine.core.common.businessentities.gluster.GlusterBrickEntity > bricks = getCallsHandler ( ) . executeReadList ( "GetBricksByGlusterVolumeGuid" , brickRowMapper , getCustomMapSqlParameterSource ( ) . addValue ( "volume_id" , volumeId ) ) ; populateBrickDetails ( bricks ) ; return bricks ; }
Source:
public void Cancel ( ) { ResetData ( ) ; setWindow ( null ) ; }

Target:
public void Cancel ( ) { ResetData ( ) ; setWindow ( null ) ; org.ovirt.engine.ui.frontend.Frontend.Unsubscribe ( ) ; }
Source:
public void lowerVersionMgmtNetworkNonSupportedFeatures ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addManagementNetworksToPool ( 2 ) ; setupNetworkValidator ( false ) ; canDoActionFailed ( VdcBllMessages.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION ) ; }

Target:
public void lowerVersionMgmtNetworkNonSupportedFeatures ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addManagementNetworksToPool ( 2 ) ; setupNetworkValidator ( false ) ; canDoActionFailed ( EngineMessage.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { if ( ( ( org.ovirt.engine.ui.webadmin.section.main.view.popup.host.HostPopupView ) ( getView ( ) ) ) . rbProvisionedHost.asRadioButton ( ) . getValue ( ) ) { model.getIsDiscoveredHosts ( ) . setEntity ( false ) ; } }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { if ( ( ( org.ovirt.engine.ui.webadmin.section.main.view.popup.host.HostPopupView ) ( getView ( ) ) ) . rbDiscoveredHost.asRadioButton ( ) . getValue ( ) ) { model.getIsDiscoveredHosts ( ) . setEntity ( true ) ; } }
Source:
public void testValidateIp6Localhost ( ) { org.ovirt.engine.core.config.entity.helper.WebSocketProxyLocationValueHelper helper = new org.ovirt.engine.core.config.entity.helper.WebSocketProxyLocationValueHelper ( ) ; org.junit.Assert.assertTrue ( helper.validate ( null , "[::1]:6100" ) . isOk ( ) ) ; }

Target:
public void testValidateIp6Localhost ( ) { org.ovirt.engine.core.config.entity.helper.WebSocketProxyLocationValueHelper helper = new org.ovirt.engine.core.config.entity.helper.WebSocketProxyLocationValueHelper ( ) ; org.junit.jupiter.api.Assertions.assertTrue ( helper.validate ( null , "[::1]:6100" ) . isOk ( ) ) ; }
Source:
public void testIsUpdValid ( ) { org.junit.Assert.assertThat ( "Storage pool should be up" , validator.isUp ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testIsUpValid ( ) { org.junit.Assert.assertThat ( "Storage pool should be up" , validator.isUp ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public java.util.Map getDoneStatus ( ) { return getStatusMap ( "Done" , 0 ) ; }

Target:
public java.util.Map getDoneStatus ( ) { return ResultCodes.DONE.newMap ( ) ; }
Source:
public void rollback ( ) { super . rollback ( ) ; org.ovirt.engine.core.bll.MacPoolManager.getInstance ( ) . freeMac ( getMacAddress ( ) ) ; }

Target:
public void rollback ( ) { super . rollback ( ) ; org.ovirt.engine.core.bll.network.MacPoolManager.getInstance ( ) . freeMac ( getMacAddress ( ) ) ; }
Source:
public void validateVmMemoryCanStartOnVdsBecauseOfLowGuestOverhead ( ) { org.mockito.Mockito.doReturn ( 0 ) . when ( vmOverheadCalculator ) . getStaticOverheadInMb ( org.mockito.Matchers.any ( ) ) ; boolean vmPassedMemoryRequirement = slaValidator.hasPhysMemoryToRunVM ( vds , vm , 65 ) ; org.junit.Assert.assertTrue ( vmPassedMemoryRequirement ) ; }

Target:
public void validateVmMemoryCanStartOnVdsBecauseOfLowGuestOverhead ( ) { org.mockito.Mockito.doReturn ( 0 ) . when ( vmOverheadCalculator ) . getStaticOverheadInMb ( org.mockito.Matchers.any ( ) ) ; boolean vmPassedMemoryRequirement = slaValidator.hasPhysMemoryToRunVM ( vds , vm , 65 ) ; org.junit.jupiter.api.Assertions.assertTrue ( vmPassedMemoryRequirement ) ; }
Source:
protected void asyncSearch ( ) { super . asyncSearch ( ) ; setAsyncResult ( null ) ; setItems ( getAsyncResult ( ) . getData ( ) ) ; }

Target:
private org.ovirt.engine.ui.uicommonweb.UICommand createCancelCommand ( java.lang.String commandName ) { org.ovirt.engine.ui.uicommonweb.UICommand command ; command = new org.ovirt.engine.ui.uicommonweb.UICommand ( commandName , this ) ; command.setTitle ( org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) . cancel ( ) ) ; command.setIsCancel ( true ) ; return command ; }
Source:
public org.ovirt.engine.core.compat.CommandStatus getCommandStatus ( org.ovirt.engine.core.compat.Guid commandId ) ;

Target:
java.util.List < org.ovirt.engine.core.compat.Guid > getChildCommandIds ( org.ovirt.engine.core.compat.Guid commandId ) ;
Source:
public void invokeClient ( ) { org.ovirt.engine.ui.common.uicommon.WebClientConsoleInvoker invoker = new org.ovirt.engine.ui.common.uicommon.WebClientConsoleInvoker ( org.ovirt.engine.ui.common.uicommon.NoVncImpl.CLIENT_PAGE , config , getVncHost ( ) , getVncPort ( ) , getTicket ( ) , false ) ; invoker.invokeClient ( ) ; }

Target:
public void invokeClient ( ) { org.ovirt.engine.ui.common.uicommon.WebClientConsoleInvoker invoker = new org.ovirt.engine.ui.common.uicommon.WebClientConsoleInvoker ( org.ovirt.engine.ui.common.uicommon.NoVncImpl.CLIENT_PAGE , config , getOptions ( ) . getHost ( ) , getOptions ( ) . getPort ( ) , getOptions ( ) . getTicket ( ) , false ) ; invoker.invokeClient ( ) ; }
Source:
private void assertCanDoActionFailure ( final java.lang.String messageToVerify ) { org.junit.Assert.assertFalse ( command.canDoAction ( ) ) ; org.junit.Assert.assertTrue ( command.getReturnValue ( ) . getCanDoActionMessages ( ) . contains ( messageToVerify ) ) ; }

Target:
private void assertValidateFailure ( final java.lang.String messageToVerify ) { org.junit.Assert.assertFalse ( command.validate ( ) ) ; org.junit.Assert.assertTrue ( command.getReturnValue ( ) . getValidationMessages ( ) . contains ( messageToVerify ) ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.Network n ) { return iface.getNetworkName ( ) . equals ( n.getName ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.Network n ) { return org.apache.commons.lang.ObjectUtils.equals ( n.getId ( ) , network.getId ( ) ) ; }
Source:
private void explicitAuth ( org.ovirt.engine.extensions.aaa.builtin.kerberosldap.UserDomainInfo userDomainInfo ) throws org.ovirt.engine.extensions.aaa.builtin.kerberosldap.AuthenticationResultException { org.ovirt.engine.extensions.aaa.builtin.kerberosldap.GSSAPICallbackHandler callbackHandler = new org.ovirt.engine.extensions.aaa.builtin.kerberosldap.GSSAPICallbackHandler ( userName , password ) ; authenticateToKDC ( callbackHandler , userDomainInfo ) ; }

Target:
public void authenticate ( ) throws org.ovirt.engine.extensions.aaa.builtin.kerberosldap.AuthenticationResultException { org.ovirt.engine.extensions.aaa.builtin.kerberosldap.GSSAPICallbackHandler callbackHandler = new org.ovirt.engine.extensions.aaa.builtin.kerberosldap.GSSAPICallbackHandler ( userName , password ) ; authenticateToKDC ( callbackHandler ) ; }
Source:
public void shouldAllowUpgradeForVM ( ) { org.assertj.core.api.Assertions.assertThat ( validator.isVmReadyForUpgrade ( validVM ) ) . isEmpty ( ) ; }

Target:
public void shouldAllowUpgradeForVM ( ) { org.assertj.core.api.Assertions.assertThat ( validator.checkVmReadyForUpgrade ( validVM ) ) . isEmpty ( ) ; }
Source:
public java.lang.String renderNullSafe ( org.ovirt.engine.core.common.businessentities.StoragePool dataCenter ) { return dataCenter.getName ( ) ; }

Target:
protected void createQosWidget ( ) { qosWidget = new org.ovirt.engine.ui.webadmin.section.main.view.popup.qos.StorageQosWidget ( constants ) ; }