auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected boolean canDoAction ( ) { org.ovirt.engine.core.bll.validator.UpgradeHostValidator validator = new org.ovirt.engine.core.bll.validator.UpgradeHostValidator ( org.ovirt.engine.core.bll.hostdeploy.UpgradeHostInternalCommand.getVds ( ) ) ; return ( validate ( validator.hostExists ( ) ) ) && ( validate ( validator.statusSupportedForHostUpgradeInternal ( ) ) ) ; }

Target:
protected boolean validate ( ) { org.ovirt.engine.core.bll.validator.UpgradeHostValidator validator = new org.ovirt.engine.core.bll.validator.UpgradeHostValidator ( org.ovirt.engine.core.bll.hostdeploy.UpgradeHostInternalCommand.getVds ( ) ) ; return ( validate ( validator.hostExists ( ) ) ) && ( validate ( validator.statusSupportedForHostUpgradeInternal ( ) ) ) ; }
Source:
public void OnSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getDefaultConfigurationVersion ( target ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getDefaultConfigurationVersion ( target ) ; }
Source:
types.Vm host ( ) ;

Target:
types.Vm vm ( ) ;
Source:
public void tearDown ( ) { try { if ( ( client ) != null ) { client.close ( ) ; client = null ; } } catch ( java.io.IOException e ) { throw new java.lang.RuntimeException ( e ) ; } }

Target:
public void tearDown ( ) throws java.lang.Exception { if ( ( client ) != null ) { client.close ( ) ; client = null ; } }
Source:
public boolean Validate ( ) { getEmail ( ) . validateEntity ( new org.ovirt.engine.ui.uicommonweb.validation.IValidation [ ] { new org.ovirt.engine.ui.uicommonweb.validation.NotEmptyValidation ( ) , new org.ovirt.engine.ui.uicommonweb.validation.EmailValidation ( ) } ) ; return getEmail ( ) . getIsValid ( ) ; }

Target:
public boolean validate ( ) { getEmail ( ) . validateEntity ( new org.ovirt.engine.ui.uicommonweb.validation.IValidation [ ] { new org.ovirt.engine.ui.uicommonweb.validation.NotEmptyValidation ( ) , new org.ovirt.engine.ui.uicommonweb.validation.EmailValidation ( ) } ) ; return getEmail ( ) . getIsValid ( ) ; }
Source:
public void setup ( ) { final org.ovirt.engine.core.common.config.IConfigUtilsInterface configUtils = org.mockito.Mockito.mock ( org.ovirt.engine.core.common.config.IConfigUtilsInterface.class ) ; org.mockito.Mockito.when ( configUtils.GetValue ( ConfigValues.SearchResultsLimit , ConfigCommon.defaultConfigurationVersion ) ) . thenReturn ( 100 ) ; org.ovirt.engine.core.common.config.Config.setConfigUtils ( configUtils ) ; }

Target:
public void setup ( ) { final org.ovirt.engine.core.common.config.IConfigUtilsInterface configUtils = org.mockito.Mockito.mock ( org.ovirt.engine.core.common.config.IConfigUtilsInterface.class ) ; org.mockito.Mockito.when ( configUtils.getValue ( ConfigValues.SearchResultsLimit , ConfigCommon.defaultConfigurationVersion ) ) . thenReturn ( 100 ) ; org.ovirt.engine.core.common.config.Config.setConfigUtils ( configUtils ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.hosts.MoveHost moveHost = ( ( org.ovirt.engine.ui.uicommonweb.models.hosts.MoveHost ) ( target ) ) ; java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDS > hosts = ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDS > ) ( returnValue ) ) ; moveHost.postGetHostList ( hosts ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDS > hosts = ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDS > ) ( returnValue ) ) ; postGetHostList ( hosts ) ; }
Source:
protected org.ovirt.engine.ui.common.widget.action.SubTabTreeActionPanel createActionPanel ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider modelProvider ) { return new org.ovirt.engine.ui.common.widget.action.SubTabTreeActionPanel < org.ovirt.engine.core.common.businessentities.storage.DiskImage > ( modelProvider , org.ovirt.engine.ui.webadmin.gin.ClientGinjectorProvider.getEventBus ( ) ) ; }

Target:
protected org.ovirt.engine.ui.common.widget.action.SubTabTreeActionPanel createActionPanel ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider modelProvider ) { return new org.ovirt.engine.ui.common.widget.action.SubTabTreeActionPanel ( modelProvider , org.ovirt.engine.ui.webadmin.gin.ClientGinjectorProvider.getEventBus ( ) ) ; }
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 ) { updateReportsAvailability ( constants ) ; }

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 ) { updateReportsAvailability ( ) ; }
Source:
private boolean validateSourceStorageDomain ( org.ovirt.engine.core.compat.Guid imageId , org.ovirt.engine.core.compat.Guid sourceDomainId ) { org.ovirt.engine.core.bll.validator.StorageDomainValidator validator = getValidator ( imageId , sourceDomainId ) ; return validator.isDomainExistAndActive ( org.ovirt.engine.core.bll.lsm.LiveMigrateVmDisksCommand.getReturnValue ( ) . getCanDoActionMessages ( ) ) ; }

Target:
private boolean validateSourceStorageDomain ( org.ovirt.engine.core.compat.Guid imageId , org.ovirt.engine.core.compat.Guid sourceDomainId ) { org.ovirt.engine.core.bll.validator.StorageDomainValidator validator = getValidator ( imageId , sourceDomainId ) ; return validate ( validator.isDomainExistAndActive ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.Network createNetworkEntity ( ) { return new org.ovirt.engine.core.common.businessentities.Network ( ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.network.Network createNetworkEntity ( ) { return new org.ovirt.engine.core.common.businessentities.network.Network ( ) ; }
Source:
public void onExport ( ) { org.ovirt.engine.ui.uicommonweb.models.vms.ExportVmModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ExportVmModel ) ( org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel.getWindow ( ) ) ) ; if ( ! ( model.validate ( ) ) ) { return ; } model.startProgress ( null ) ; getTemplatesNotPresentOnExportDomain ( ) ; }

Target:
public void onExport ( ) { org.ovirt.engine.ui.uicommonweb.models.vms.ExportVmModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ExportVmModel ) ( org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel.getWindow ( ) ) ) ; if ( ! ( model.validate ( ) ) ) { return ; } model.startProgress ( ) ; getTemplatesNotPresentOnExportDomain ( ) ; }
Source:
public void setup ( ) { org.ovirt.engine.core.compat.Version version = org.mockito.Mockito.mock ( org.ovirt.engine.core.compat.Version.class ) ; org.mockito.Mockito.when ( version.getValue ( ) ) . thenReturn ( null ) ; validator = new org.ovirt.engine.core.bll.validator.VmNicValidator ( nic , version ) ; }

Target:
public void setup ( ) { org.mockito.Mockito.when ( version.getValue ( ) ) . thenReturn ( null ) ; validator = new org.ovirt.engine.core.bll.validator.VmNicValidator ( nic , version ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface createBaseNic ( ) { return ( ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface ) ( org.ovirt.engine.ui.uicommonweb.Cloner.clone ( getNic ( ) ) ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface createBaseNic ( ) { return new org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface ( getNic ( ) ) ; }
Source:
private org.ovirt.engine.core.common.action.AdElementParametersBase createParameters ( ) { org.ovirt.engine.core.common.action.AdElementParametersBase parameters = new org.ovirt.engine.core.common.action.AdElementParametersBase ( adElementId ) ; return parameters ; }

Target:
private org.ovirt.engine.core.common.action.AdElementParametersBase createParameters ( ) { return new org.ovirt.engine.core.common.action.AdElementParametersBase ( adElementId ) ; }
Source:
public void testGet ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( ) ; control.replay ( ) ; verifyModel ( resource.get ( ) , 3 ) ; }

Target:
public void testGet ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( ) ; verifyModel ( resource.get ( ) , 3 ) ; }
Source:
public void OnSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterGuideModel clusterGuideModel = ( ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterGuideModel ) ( target ) ) ; isAnyHostUpInCluster = ( ( java.lang.Boolean ) ( returnValue ) ) ; clusterGuideModel.UpdateOptionsNonLocalFS ( ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterGuideModel clusterGuideModel = ( ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterGuideModel ) ( target ) ) ; isAnyHostUpInCluster = ( ( java.lang.Boolean ) ( returnValue ) ) ; clusterGuideModel.UpdateOptionsNonLocalFS ( ) ; }
Source:
public void canRunVmFailStatelessWhenVmHA ( ) { org.ovirt.engine.core.bll.RunVmCommandTest.canRunStatelessVmTest ( true , false , java.lang.Boolean.TRUE , false ) ; }

Target:
public void canRunVmFailStatelessWhenVmHA ( ) { canRunStatelessVmTest ( true , false , java.lang.Boolean.TRUE , false ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.Network n ) { return iface.getNetworkName ( ) . equals ( n.getname ( ) ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.Network n ) { return n.getName ( ) . equals ( iface.getNetworkName ( ) ) ; }
Source:
private void mockCommandParameters ( ) { org.mockito.Mockito.doReturn ( unregisteredDisksDaoMock ) . when ( cmd ) . getUnregisteredDisksDao ( ) ; org.mockito.Mockito.doReturn ( unregisteredOVFDataDaoMock ) . when ( cmd ) . getUnregisteredOVFDataDao ( ) ; org.mockito.Mockito.doReturn ( diskImageDaoMock ) . when ( cmd ) . getDiskImageDao ( ) ; }

Target:
private void mockCommandParameters ( ) { org.mockito.Mockito.doReturn ( unregisteredDisksDaoMock ) . when ( cmd ) . getUnregisteredDisksDao ( ) ; org.mockito.Mockito.doReturn ( diskImageDaoMock ) . when ( cmd ) . getDiskImageDao ( ) ; }
Source:
void localize ( org.ovirt.engine.ui.common.CommonApplicationConstants constants ) { searchButton.setLabel ( constants.goPermissionsPopup ( ) ) ; namespaceSelection.setLabel ( constants.namespacePermissionsPopup ( ) ) ; }

Target:
void localize ( org.ovirt.engine.ui.common.CommonApplicationConstants constants ) { searchButton.setLabel ( constants.goPermissionsPopup ( ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > getAllForMonitoredVm ( org.ovirt.engine.core.compat.Guid vmId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "vm_id" , vmId ) ; java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > results = getCallsHandler ( ) . executeReadList ( "GetVmNetworkInterfaceToMonitorByVmId" , org.ovirt.engine.core.dao.network.VmNetworkInterfaceDaoImpl.VmNetworkInterfaceMonitoringRowMapper.INSTANCE , parameterSource ) ; return results ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > getAllForMonitoredVm ( org.ovirt.engine.core.compat.Guid vmId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "vm_id" , vmId ) ; return getCallsHandler ( ) . executeReadList ( "GetVmNetworkInterfaceToMonitorByVmId" , org.ovirt.engine.core.dao.network.VmNetworkInterfaceDaoImpl.VmNetworkInterfaceMonitoringRowMapper.INSTANCE , parameterSource ) ; }
Source:
public java.lang.String getMasterStorageDomainId ( ) { return masterStorageDomainId ; }

Target:
public java.lang.String getMasterStorageDomainId ( ) { return ( masterStorageDomainId ) == null ? this . id : masterStorageDomainId ; }
Source:
protected abstract org.ovirt.engine.core.common.businessentities.network.VnicProfile getProfile ( ) ;

Target:
public abstract org.ovirt.engine.core.common.businessentities.network.VnicProfile getProfile ( ) ;
Source:
protected byte [ ] runHttpMethod ( org.ovirt.engine.core.bll.provider.BaseProviderProxy.HttpMethodType httpMethod , java.lang.String contentType , java.lang.String relativeUrl , java.lang.String body ) { org.ovirt.engine.core.bll.provider.BaseProviderProxy.ConnectionWrapper wrapper = createConnection ( relativeUrl ) ; return runHttpMethod ( httpMethod , contentType , relativeUrl , body , wrapper ) ; }

Target:
protected byte [ ] runHttpMethod ( org.ovirt.engine.core.bll.provider.BaseProviderProxy.HttpMethodType httpMethod , java.lang.String contentType , java.lang.String relativeUrl , java.lang.String body ) { return runHttpMethod ( httpMethod , contentType , relativeUrl , body , createConnection ( relativeUrl ) ) ; }
Source:
public void moveShareableDisk ( ) { initializeCommand ( ImageOperation.Move , new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ) ; initSrcStorageDomain ( ) ; initDestStorageDomain ( StorageType.NFS ) ; initVmDiskImage ( true ) ; org.junit.Assert.assertTrue ( command.validate ( ) ) ; }

Target:
public void moveShareableDisk ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ) ; initSrcStorageDomain ( ) ; initDestStorageDomain ( StorageType.NFS ) ; initVmDiskImage ( true ) ; org.junit.Assert.assertTrue ( command.validate ( ) ) ; }
Source:
public void testGetStorageTypesInPoolForSingleType ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageType > expectedTypes = java.util.Arrays.asList ( ) ; org.ovirt.engine.core.compat.Guid poolId = FixturesTool.STORAGE_POOL_NFS ; java.util.List < org.ovirt.engine.core.common.businessentities.StorageType > storageTypes = dao.getStorageTypesInPool ( poolId ) ; assertStorageTypes ( storageTypes , StorageType.NFS ) ; }

Target:
public void testGetStorageTypesInPoolForSingleType ( ) { org.ovirt.engine.core.compat.Guid poolId = FixturesTool.STORAGE_POOL_NFS ; java.util.List < org.ovirt.engine.core.common.businessentities.StorageType > storageTypes = dao.getStorageTypesInPool ( poolId ) ; assertStorageTypes ( storageTypes , StorageType.NFS ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { if ( ( ( java.lang.Boolean ) ( object.getOptimizationCustom_IsSelected ( ) . getEntity ( ) ) ) ) { optimizationCustomFormatter ( object ) ; optimizationCustomEditor.setVisible ( true ) ; } }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { if ( object.getOptimizationCustom_IsSelected ( ) . getEntity ( ) ) { optimizationCustomFormatter ( object ) ; optimizationCustomEditor.setVisible ( true ) ; } }
Source:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createNic ( java.lang.String name , java.lang.String bondName , org.ovirt.engine.core.common.businessentities.network.NetworkBootProtocol bootProtocol , java.lang.String network ) { return createVdsInterface ( name , false , bondName , null , bootProtocol , network , null ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createNic ( java.lang.String name , java.lang.String bondName , org.ovirt.engine.core.common.businessentities.network.NetworkBootProtocol bootProtocol , java.lang.String network ) { return createVdsInterface ( name , false , bondName , null , bootProtocol , network , null , null ) ; }
Source:
protected boolean isAllowClusterWithVirtGluster ( ) { java.lang.Boolean allowVirGluster = org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > GetValue ( ConfigValues.AllowClusterWithVirtGlusterEnabled ) ; return allowVirGluster ; }

Target:
protected boolean isAllowClusterWithVirtGluster ( ) { java.lang.Boolean allowVirGluster = org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > getValue ( ConfigValues.AllowClusterWithVirtGlusterEnabled ) ; return allowVirGluster ; }
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 ( ) . clusterHostSubTabLabel ( ) , 3 , ginjector.getSubTabClusterHostModelProvider ( ) ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.webadmin.gin.ClientGinjector ginjector ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( ginjector.getApplicationConstants ( ) . clusterHostSubTabLabel ( ) , 2 , ginjector.getSubTabClusterHostModelProvider ( ) ) ; }
Source:
public void calculateNextMaintenanceAttemptTime ( ) { this . nextMaintenanceAttemptTime = ( java.lang.System.currentTimeMillis ( ) ) + ( java.util.concurrent.TimeUnit.MILLISECONDS.convert ( org.ovirt.engine.core.common.config.Config.< java.lang.Integer > GetValue ( ConfigValues.HostPreparingForMaintenanceIdleTime ) , java.util.concurrent.TimeUnit.SECONDS ) ) ; }

Target:
public void calculateNextMaintenanceAttemptTime ( ) { this . nextMaintenanceAttemptTime = ( java.lang.System.currentTimeMillis ( ) ) + ( java.util.concurrent.TimeUnit.MILLISECONDS.convert ( org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.HostPreparingForMaintenanceIdleTime ) , java.util.concurrent.TimeUnit.SECONDS ) ) ; }
Source:
private void addAuditLogCustomValues ( ) { this . addCustomValue ( "DiskAlias" , org.ovirt.engine.core.bll.RemoveDiskSnapshotsCommand.getDiskImage ( ) . getDiskAlias ( ) ) ; this . addCustomValue ( "Snapshots" , org.apache.commons.lang.StringUtils.join ( getSnapshotsNames ( ) , ", " ) ) ; }

Target:
private void addAuditLogCustomValues ( ) { this . addCustomValue ( "DiskAlias" , org.ovirt.engine.core.bll.RemoveDiskSnapshotsCommand.getParameters ( ) . getDiskAlias ( ) ) ; this . addCustomValue ( "Snapshots" , org.apache.commons.lang.StringUtils.join ( getSnapshotsNames ( ) , ", " ) ) ; }
Source:
private void setExternalHostName ( org.ovirt.engine.ui.uicommonweb.models.ListModel value ) { privateExternalHostName = value ; }

Target:
protected void setExternalHostName ( org.ovirt.engine.ui.uicommonweb.models.ListModel value ) { privateExternalHostName = value ; }
Source:
public int compare ( org.ovirt.engine.core.common.businessentities.AuditLog x , org.ovirt.engine.core.common.businessentities.AuditLog y ) { long xid = x.getAuditLogId ( ) ; long yid = y.getAuditLogId ( ) ; return java.lang.Long.valueOf ( xid ) . compareTo ( yid ) ; }

Target:
public int compare ( org.ovirt.engine.core.common.businessentities.AuditLog x , org.ovirt.engine.core.common.businessentities.AuditLog y ) { long xid = x.getAuditLogId ( ) ; long yid = y.getAuditLogId ( ) ; return java.lang.Long.compare ( xid , yid ) ; }
Source:
public void testGroupLinks ( ) throws java.lang.Exception { org.ovirt.engine.api.model.Group group = new org.ovirt.engine.api.model.Group ( ) ; group.setId ( org.ovirt.engine.api.restapi.util.LinkHelperTest.GROUP_ID ) ; org.ovirt.engine.api.restapi.util.LinkHelper.addLinks ( setUpUriExpectations ( ) , group ) ; assertEquals ( org.ovirt.engine.api.restapi.util.LinkHelperTest.GROUP_HREF , group.getHref ( ) ) ; }

Target:
public void testGroupLinks ( ) throws java.lang.Exception { org.ovirt.engine.api.model.Group group = new org.ovirt.engine.api.model.Group ( ) ; group.setId ( org.ovirt.engine.api.restapi.util.LinkHelperTest.GROUP_ID ) ; org.ovirt.engine.api.restapi.util.LinkHelper.addLinks ( group ) ; assertEquals ( org.ovirt.engine.api.restapi.util.LinkHelperTest.GROUP_HREF , group.getHref ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VM getEntity ( int index ) { return org.ovirt.engine.api.restapi.resource.AbstractBackendCdRomsResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.core.common.businessentities.VM.class ) , control.createMock ( org.ovirt.engine.core.common.businessentities.VmStatic.class ) , index ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VM getEntity ( int index ) { return org.ovirt.engine.api.restapi.resource.AbstractBackendCdRomsResourceTest.setUpEntityExpectations ( ) ; }
Source:
static void verifyModelSpecific ( org.ovirt.engine.api.model.VmPool model , int index ) { assertNotNull ( model.getCluster ( ) ) ; assertNotNull ( model.getCluster ( ) . getId ( ) ) ; }

Target:
static void verifyModelSpecific ( org.ovirt.engine.api.model.VmPool model ) { assertNotNull ( model.getCluster ( ) ) ; assertNotNull ( model.getCluster ( ) . getId ( ) ) ; }
Source:
public void validateFailsWithClusterDoesNotSupportGluster ( ) { org.mockito.Mockito.doReturn ( getCluster ( false , Version.v4_1 ) ) . when ( clusterDao ) . get ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_CLUSTER_DOES_NOT_SUPPORT_GLUSTER ) ; }

Target:
public void validateFailsWithClusterDoesNotSupportGluster ( ) { org.mockito.Mockito.doReturn ( getCluster ( false , Version.v4_1 ) ) . when ( clusterDao ) . get ( org.mockito.ArgumentMatchers.any ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_CLUSTER_DOES_NOT_SUPPORT_GLUSTER ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid getClusterId ( ) { return getEntity ( ) . getVdsGroupId ( ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid getClusterId ( ) { return getEntity ( ) . getClusterId ( ) ; }
Source:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { org.ovirt.engine.ui.uicommonweb.models.EntityModel < org.ovirt.engine.core.common.businessentities.DisplayType > displayType = getModel ( ) . getDisplayType ( ) . getSelectedItem ( ) ; enableSinglePCI ( ( ( displayType.getEntity ( ) ) == ( org.ovirt.engine.core.common.businessentities.DisplayType.qxl ) ) ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { enableSinglePCI ( ( ( getModel ( ) . getDisplayType ( ) . getSelectedItem ( ) ) == ( org.ovirt.engine.core.common.businessentities.DisplayType.qxl ) ) ) ; }
Source:
public java.lang.String getNetworkName ( ) { return org.ovirt.engine.core.bll.network.cluster.DetachNetworkToVdsGroupCommand.getParameters ( ) . getNetwork ( ) . getName ( ) ; }

Target:
public java.lang.String getNetworkName ( ) { return getNetwork ( ) . getName ( ) ; }
Source:
public void render ( org.ovirt.engine.ui.common.widget.table.cell.Context context , java.lang.String value , com.google.gwt.safehtml.shared.SafeHtmlBuilder sb ) { org.ovirt.engine.ui.common.widget.table.cell.ScrollableTextCell.CellTemplate template = com.google.gwt.core.client.GWT.create ( org.ovirt.engine.ui.common.widget.table.cell.ScrollableTextCell.CellTemplate.class ) ; sb.append ( template.input ( value , "" ) ) ; }

Target:
public void render ( org.ovirt.engine.ui.common.widget.table.cell.Context context , java.lang.String value , com.google.gwt.safehtml.shared.SafeHtmlBuilder sb , java.lang.String id ) { org.ovirt.engine.ui.common.widget.table.cell.ScrollableTextCell.CellTemplate template = com.google.gwt.core.client.GWT.create ( org.ovirt.engine.ui.common.widget.table.cell.ScrollableTextCell.CellTemplate.class ) ; sb.append ( template.input ( value , "" , id ) ) ; }
Source:
private org.ovirt.engine.core.common.config.IConfigUtilsInterface initConfigUtils ( ) { validator = org.ovirt.engine.core.common.utils.ValidationUtils.getValidator ( ) ; org.ovirt.engine.core.common.config.IConfigUtilsInterface configUtils = org.mockito.Mockito.mock ( org.ovirt.engine.core.common.config.IConfigUtilsInterface.class ) ; org.mockito.Mockito.when ( configUtils.GetValue ( ConfigValues.vdsTimeout , ConfigCommon.defaultConfigurationVersion ) ) . thenReturn ( org.ovirt.engine.core.common.utils.ConfiguredRangeValidatorTest.TEST_MAX_RANGE ) ; return configUtils ; }

Target:
private org.ovirt.engine.core.common.config.IConfigUtilsInterface initConfigUtils ( ) { validator = org.ovirt.engine.core.common.utils.ValidationUtils.getValidator ( ) ; org.ovirt.engine.core.common.config.IConfigUtilsInterface configUtils = org.mockito.Mockito.mock ( org.ovirt.engine.core.common.config.IConfigUtilsInterface.class ) ; org.mockito.Mockito.when ( configUtils.getValue ( ConfigValues.vdsTimeout , ConfigCommon.defaultConfigurationVersion ) ) . thenReturn ( org.ovirt.engine.core.common.utils.ConfiguredRangeValidatorTest.TEST_MAX_RANGE ) ; return configUtils ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledNotSetNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setType ( UsbType.NATIVE ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE ) , UsbPolicy.ENABLED_NATIVE ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledNotSetNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setType ( UsbType.NATIVE ) ; assertEquals ( UsbPolicy.ENABLED_NATIVE , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VDSGroup getVdsGroup ( ) { if ( ( _vdsGroup ) == null ) { _vdsGroup = org.ovirt.engine.core.bll.VdsGroupCommandBase.getVdsGroupDAO ( ) . get ( org.ovirt.engine.core.bll.VdsGroupCommandBase.getParameters ( ) . getVdsGroupId ( ) ) ; } return _vdsGroup ; }

Target:
public org.ovirt.engine.core.common.businessentities.VDSGroup getVdsGroup ( ) { if ( ( _vdsGroup ) == null ) { _vdsGroup = org.ovirt.engine.core.bll.VdsGroupCommandBase.getVdsGroupDAO ( ) . get ( org.ovirt.engine.core.bll.VdsGroupCommandBase.getParameters ( ) . getVdsGroupId ( ) ) ; } return _vdsGroup ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections connection = ( ( org.ovirt.engine.core.common.businessentities.StorageServerConnections ) ( returnValue ) ) ; getPath ( ) . setEntity ( connection.getConnection ( ) ) ; prepareConnectionForEditing ( connection ) ; }

Target:
public void onSuccess ( org.ovirt.engine.core.common.businessentities.StorageServerConnections connection ) { getPath ( ) . setEntity ( connection.getConnection ( ) ) ; prepareConnectionForEditing ( connection ) ; }
Source:
public org.ovirt.engine.core.compat.Version mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { org.ovirt.engine.core.compat.Version entity = new org.ovirt.engine.core.compat.Version ( rs.getString ( versionColumnName ) ) ; return entity ; }

Target:
public org.ovirt.engine.core.compat.Version mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { return new org.ovirt.engine.core.compat.Version ( rs.getString ( versionColumnName ) ) ; }
Source:
public org.ovirt.engine.core.compat.NGuid getStorageDomainId ( ) { super . setStorageDomainId ( getMasterDomainIdFromDb ( ) ) ; return super . getStorageDomainId ( ) ; }

Target:
public org.ovirt.engine.core.compat.Guid getStorageDomainId ( ) { super . setStorageDomainId ( getMasterDomainIdFromDb ( ) ) ; return super . getStorageDomainId ( ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { uniqueOsNames = ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ; org.ovirt.engine.core.common.utils.SimpleDependencyInjector.getInstance ( ) . bind ( new org.ovirt.engine.core.searchbackend.OsValueAutoCompleter ( uniqueOsNames ) ) ; }

Target:
public void onSuccess ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue returnValue ) { uniqueOsNames = returnValue.getReturnValue ( ) ; org.ovirt.engine.core.common.utils.SimpleDependencyInjector.getInstance ( ) . bind ( new org.ovirt.engine.core.searchbackend.OsValueAutoCompleter ( uniqueOsNames ) ) ; }
Source:
private static void setNonOperationl ( org.ovirt.engine.core.common.businessentities.VDS vds , org.ovirt.engine.core.common.businessentities.NonOperationalReason reason , java.util.Map < java.lang.String , java.lang.String > customLogValues ) { org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . getEventListener ( ) . vdsNonOperational ( vds.getId ( ) , reason , true , true , Guid.Empty , customLogValues ) ; }

Target:
private static void setNonOperationl ( org.ovirt.engine.core.common.businessentities.VDS vds , org.ovirt.engine.core.common.businessentities.NonOperationalReason reason , java.util.Map < java.lang.String , java.lang.String > customLogValues ) { org.ovirt.engine.core.vdsbroker.ResourceManager.getInstance ( ) . getEventListener ( ) . vdsNonOperational ( vds.getId ( ) , reason , true , Guid.Empty , customLogValues ) ; }
Source:
public void updateCommandStatus ( org.ovirt.engine.core.compat.Guid commandId , org.ovirt.engine.core.common.asynctasks.AsyncTaskType taskType , org.ovirt.engine.core.compat.CommandStatus status ) ;

Target:
public void updateCommandStatus ( org.ovirt.engine.core.compat.Guid commandId , org.ovirt.engine.core.compat.CommandStatus status ) ;
Source:
protected com.google.gwt.user.client.ui.SplitLayoutPanel createRootPanel ( ) { com.google.gwt.user.client.ui.SplitLayoutPanel rootPanel = new com.google.gwt.user.client.ui.SplitLayoutPanel ( ) ; rootPanel.setHeight ( "495px" ) ; rootPanel.setWidth ( "100%" ) ; return rootPanel ; }

Target:
private com.google.gwt.user.client.ui.SplitLayoutPanel createRootPanel ( ) { com.google.gwt.user.client.ui.SplitLayoutPanel rootPanel = new com.google.gwt.user.client.ui.SplitLayoutPanel ( ) ; rootPanel.setHeight ( "495px" ) ; rootPanel.setWidth ( "100%" ) ; return rootPanel ; }
Source:
public org.ovirt.engine.core.common.action.VdcActionParametersBase getParameters ( org.ovirt.engine.api.model.Qos incoming , org.ovirt.engine.core.common.businessentities.qos.QosBase entity ) { org.ovirt.engine.core.common.action.QosParametersBase < org.ovirt.engine.core.common.businessentities.qos.QosBase > parameters = new org.ovirt.engine.core.common.action.QosParametersBase < org.ovirt.engine.core.common.businessentities.qos.QosBase > ( ) ; parameters.setQosId ( guid ) ; parameters.setQos ( map ( incoming , entity ) ) ; return parameters ; }

Target:
public org.ovirt.engine.core.common.action.VdcActionParametersBase getParameters ( org.ovirt.engine.api.model.Qos incoming , org.ovirt.engine.core.common.businessentities.qos.QosBase entity ) { org.ovirt.engine.core.common.action.QosParametersBase < org.ovirt.engine.core.common.businessentities.qos.QosBase > parameters = new org.ovirt.engine.core.common.action.QosParametersBase ( ) ; parameters.setQosId ( guid ) ; parameters.setQos ( map ( incoming , entity ) ) ; return parameters ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VdsNumaNode > getAllVdsNumaNodeByVdsId ( org.ovirt.engine.core.compat.Guid vdsId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "vds_id" , vdsId ) ; java.util.List < org.ovirt.engine.core.common.businessentities.VdsNumaNode > vdsNumaNodes = getCallsHandler ( ) . executeReadList ( "GetNumaNodeByVdsId" , org.ovirt.engine.core.dao.VdsNumaNodeDaoImpl.vdsNumaNodeRowMapper , parameterSource ) ; return vdsNumaNodes ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VdsNumaNode > getAllVdsNumaNodeByVdsId ( org.ovirt.engine.core.compat.Guid vdsId ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "vds_id" , vdsId ) ; return getCallsHandler ( ) . executeReadList ( "GetNumaNodeByVdsId" , org.ovirt.engine.core.dao.VdsNumaNodeDaoImpl.vdsNumaNodeRowMapper , parameterSource ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.network.VnicProfileView > getAllForDataCenter ( org.ovirt.engine.core.compat.Guid id ) { return getCallsHandler ( ) . executeReadList ( "GetVnicProfileViewsByDataCenterId" , org.ovirt.engine.core.dao.network.VnicProfileViewDaoDbFacadeImpl.VnicProfileViewRowMapper.INSTANCE , getCustomMapSqlParameterSource ( ) . addValue ( "id" , id ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.network.VnicProfileView > getAllForDataCenter ( org.ovirt.engine.core.compat.Guid id ) { return getAllForDataCenter ( id , null , false ) ; }
Source:
private void addVmDynamicToList ( org.ovirt.engine.core.common.businessentities.VmDynamic vmDynamic ) { vmDynamicToSave.put ( vmDynamic.getId ( ) , vmDynamic ) ; }

Target:
protected void addVmDynamicToList ( org.ovirt.engine.core.common.businessentities.VmDynamic vmDynamic ) { vmDynamicToSave.put ( vmDynamic.getId ( ) , vmDynamic ) ; }
Source:
public void updateNotified ( org.ovirt.engine.core.compat.Guid id , boolean notified ) { getCallsHandler ( ) . executeModification ( "UpdateCommandEntityNotified" , createIdParameterMapper ( id ) . addValue ( "callback_notified" , notified ) ) ; }

Target:
public void updateNotified ( org.ovirt.engine.core.compat.Guid id ) { getCallsHandler ( ) . executeModification ( "UpdateCommandEntityNotified" , createIdParameterMapper ( id ) . addValue ( "callback_notified" , true ) ) ; }
Source:
public void setVms ( java.util.Set < org.ovirt.engine.sdk.entities.VM > vms ) { this . vms = vms ; }

Target:
public void setVms ( java.util.Map < java.lang.String , org.ovirt.engine.sdk.entities.VM > vms ) { this . vms = vms ; }
Source:
protected void onReveal ( ) { super . onReveal ( ) ; setInSlot ( org.ovirt.engine.ui.webadmin.section.main.presenter.HeaderPresenterWidget.TYPE_SetSearchPanel , searchPanel ) ; setInSlot ( org.ovirt.engine.ui.webadmin.section.main.presenter.HeaderPresenterWidget.TYPE_SetTabBar , tabBar ) ; configureFeedbackUrl ( ) ; setMainTabBarOffset ( org.ovirt.engine.ui.webadmin.section.main.presenter.HeaderPresenterWidget.MAIN_TABBAR_INITIAL_OFFSET ) ; }

Target:
protected void onReveal ( ) { super . onReveal ( ) ; setInSlot ( org.ovirt.engine.ui.webadmin.section.main.presenter.HeaderPresenterWidget.TYPE_SetSearchPanel , searchPanel ) ; setInSlot ( org.ovirt.engine.ui.webadmin.section.main.presenter.HeaderPresenterWidget.TYPE_SetTabBar , tabBar ) ; configureFeedbackUrl ( ) ; }
Source:
public void testNonExistingStorageDomain ( ) { org.mockito.Mockito.doReturn ( null ) . when ( command ) . executeHSMGetStorageDomainInfo ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.common.vdscommands.HSMGetStorageDomainInfoVDSCommandParameters.class ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_STORAGE_DOMAIN_NOT_EXIST ) ; }

Target:
public void testNonExistingStorageDomain ( ) { org.mockito.Mockito.doReturn ( null ) . when ( command ) . executeHSMGetStorageDomainInfo ( org.mockito.ArgumentMatchers.any ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_STORAGE_DOMAIN_NOT_EXIST ) ; }
Source:
public int compare ( org.ovirt.engine.core.common.businessentities.storage_pool x , org.ovirt.engine.core.common.businessentities.storage_pool y ) { return x.getname ( ) . compareTo ( y.getname ( ) ) ; }

Target:
public int compare ( org.ovirt.engine.core.common.businessentities.StoragePool x , org.ovirt.engine.core.common.businessentities.StoragePool y ) { return x.getname ( ) . compareTo ( y.getname ( ) ) ; }
Source:
public void checkRemoveConnectionEmptyId ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections newNFSConnection = createNFSConnection ( "multipass.my.domain.tlv.company.com:/export/allstorage/data2" , StorageType.NFS , NfsVersion.V4 , 300 , 0 ) ; newNFSConnection.setid ( "" ) ; parameters.setStorageServerConnection ( newNFSConnection ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.ACTION_TYPE_FAILED_STORAGE_CONNECTION_ID_EMPTY ) ; }

Target:
public void checkRemoveConnectionEmptyId ( ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections newNFSConnection = createNFSConnection ( "multipass.my.domain.tlv.company.com:/export/allstorage/data2" , StorageType.NFS , NfsVersion.V4 , 300 , 0 ) ; newNFSConnection.setId ( "" ) ; parameters.setStorageServerConnection ( newNFSConnection ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.ACTION_TYPE_FAILED_STORAGE_CONNECTION_ID_EMPTY ) ; }
Source:
protected org.ovirt.engine.ui.common.widget.action.SubTabTreeActionPanel createActionPanel ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider modelProvider ) { return new org.ovirt.engine.ui.common.widget.action.SubTabTreeActionPanel < org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel > ( modelProvider , org.ovirt.engine.ui.webadmin.gin.ClientGinjectorProvider.getEventBus ( ) ) ; }

Target:
protected org.ovirt.engine.ui.common.widget.action.SubTabTreeActionPanel createActionPanel ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider modelProvider ) { return new org.ovirt.engine.ui.common.widget.action.SubTabTreeActionPanel ( modelProvider , org.ovirt.engine.ui.webadmin.gin.ClientGinjectorProvider.getEventBus ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap getStoragePoolIsoMap ( ) { org.ovirt.engine.core.common.businessentities.StoragePoolIsoMapId mapId = new org.ovirt.engine.core.common.businessentities.StoragePoolIsoMapId ( org.ovirt.engine.core.bll.storage.UpdateStorageServerConnectionCommand.getStorageDomain ( ) . getId ( ) , org.ovirt.engine.core.bll.storage.UpdateStorageServerConnectionCommand.getParameters ( ) . getStoragePoolId ( ) ) ; return getStoragePoolIsoMapDao ( ) . get ( mapId ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap getStoragePoolIsoMap ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain ) { org.ovirt.engine.core.common.businessentities.StoragePoolIsoMapId mapId = new org.ovirt.engine.core.common.businessentities.StoragePoolIsoMapId ( storageDomain.getId ( ) , org.ovirt.engine.core.bll.storage.UpdateStorageServerConnectionCommand.getParameters ( ) . getStoragePoolId ( ) ) ; return getStoragePoolIsoMapDao ( ) . get ( mapId ) ; }
Source:
public void passthroughProfileContainsQos ( ) { passthroughProfileContainsSupportedPropertiesTest ( true , false , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_GUID ) ; org.junit.Assert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_PASSTHROUGH_PROFILE_CONTAINS_NOT_SUPPORTED_PROPERTIES ) ) ; }

Target:
public void passthroughProfileContainsQos ( ) { passthroughProfileContainsSupportedPropertiesTest ( true , false , org.ovirt.engine.core.bll.validator.VnicProfileValidatorTest.DEFAULT_GUID , null ) ; org.junit.Assert.assertThat ( validator.passthroughProfileContainsSupportedProperties ( false ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.ACTION_TYPE_FAILED_PASSTHROUGH_PROFILE_CONTAINS_NOT_SUPPORTED_PROPERTIES ) ) ; }
Source:
private void simulateNicExists ( ) { org.mockito.Mockito.when ( interfaceDao.get ( org.ovirt.engine.core.bll.validator.VfsConfigValidatorTest.NIC_ID ) ) . thenReturn ( nic ) ; org.mockito.Mockito.when ( nic.getId ( ) ) . thenReturn ( org.ovirt.engine.core.bll.validator.VfsConfigValidatorTest.NIC_ID ) ; org.mockito.Mockito.when ( nic.getName ( ) ) . thenReturn ( org.ovirt.engine.core.bll.validator.VfsConfigValidatorTest.NIC_NAME ) ; }

Target:
private void simulateNicExists ( ) { org.mockito.Mockito.when ( interfaceDao.get ( org.ovirt.engine.core.bll.validator.VfsConfigValidatorTest.NIC_ID ) ) . thenReturn ( nic ) ; org.mockito.Mockito.when ( nic.getName ( ) ) . thenReturn ( org.ovirt.engine.core.bll.validator.VfsConfigValidatorTest.NIC_NAME ) ; }
Source:
protected void setUpQueryExpectations ( java.lang.String query ) throws java.lang.Exception { setUpEntityQueryExpectations ( 1 ) ; control.replay ( ) ; }

Target:
protected void setUpQueryExpectations ( java.lang.String query ) throws java.lang.Exception { setUpEntityQueryExpectations ( 1 ) ; }
Source:
protected void updateDefaultTimeZone ( ) { org.ovirt.engine.ui.uicommonweb.models.vms.TimeZoneModel.withLoadedDefaultTimeZoneKey ( getTimeZoneType ( ) , new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { doUpdateTimeZone ( null ) ; } } ) ; }

Target:
protected void updateDefaultTimeZone ( ) { doUpdateTimeZone ( null ) ; }
Source:
public void setis_initialized ( boolean value ) { this . mVmStatic.setis_initialized ( value ) ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "is_initialized" ) ) ; }

Target:
public void setis_initialized ( boolean value ) { this . mVmStatic.setis_initialized ( value ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VMStatus getstatus ( ) { return this . status ; }

Target:
public org.ovirt.engine.core.common.businessentities.VMStatus getStatus ( ) { return this . status ; }
Source:
private void mockDynamicVmDao ( ) { org.ovirt.engine.core.common.businessentities.VmDynamic mockDynamicVm = getVmDynamic ( ) ; org.mockito.Mockito.doReturn ( vmDynamicDao ) . when ( spyCommand ) . getVmDynamicDao ( ) ; org.mockito.Mockito.when ( vmDynamicDao.get ( vmId ) ) . thenReturn ( mockDynamicVm ) ; }

Target:
private void mockDynamicVmDao ( ) { org.ovirt.engine.core.common.businessentities.VmDynamic mockDynamicVm = getVmDynamic ( ) ; org.mockito.Mockito.when ( vmDynamicDao.get ( vmId ) ) . thenReturn ( mockDynamicVm ) ; }
Source:
public void useDefaultMTU ( ) { java.util.Set < javax.validation.ConstraintViolation < org.ovirt.engine.core.common.utils.MTUValidatorTest.MtuContainer > > validate = validate ( new org.ovirt.engine.core.common.utils.MTUValidatorTest.MtuContainer ( 0 ) ) ; org.junit.Assert.assertTrue ( ( ( validate.size ( ) ) == 0 ) ) ; }

Target:
public void useDefaultMTU ( ) { java.util.Set < javax.validation.ConstraintViolation < org.ovirt.engine.core.common.utils.MTUValidatorTest.MtuContainer > > validate = validate ( new org.ovirt.engine.core.common.utils.MTUValidatorTest.MtuContainer ( 0 ) ) ; org.junit.Assert.assertTrue ( validate.isEmpty ( ) ) ; }
Source:
protected java.lang.String renderNullSafe ( org.ovirt.engine.core.common.businessentities.gluster.BrickProfileDetails object ) { return object.getBrickName ( ) ; }

Target:
protected java.lang.String renderNullSafe ( org.ovirt.engine.core.common.businessentities.gluster.BrickProfileDetails object ) { return object.getName ( ) ; }
Source:
public abstract void addColumnWithHtmlHeader ( com.google.gwt.user.cellview.client.Column < T , ? > column , com.google.gwt.safehtml.shared.SafeHtml headerHtml , java.lang.String width ) ;

Target:
void addColumnWithHtmlHeader ( com.google.gwt.user.cellview.client.Column < T , ? > column , com.google.gwt.safehtml.shared.SafeHtml headerHtml , java.lang.String width ) ;
Source:
private void mockStorageDomainDaoGetAllStoragesForPool ( int domainSpaceGB ) { org.powermock.api.mockito.PowerMockito.when ( sdDAO.getAllForStoragePool ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( java.util.Arrays.asList ( createStorageDomain ( domainSpaceGB ) ) ) ; }

Target:
private void mockStorageDomainDaoGetAllStoragesForPool ( int domainSpaceGB ) { org.mockito.Mockito.when ( sdDAO.getAllForStoragePool ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( java.util.Arrays.asList ( createStorageDomain ( domainSpaceGB ) ) ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getQuotaId ( ) { return org.ovirt.engine.core.bll.AddVmCommand.getParameters ( ) . getVmStaticData ( ) . getQuotaId ( ) ; }

Target:
private org.ovirt.engine.core.compat.Guid getQuotaId ( ) { return org.ovirt.engine.core.bll.AddVmCommand.getParameters ( ) . getVmStaticData ( ) . getQuotaId ( ) ; }
Source:
public void run ( org.ovirt.engine.core.common.businessentities.StoragePool item , org.ovirt.engine.ui.uicommonweb.models.hosts.AsyncIteratorCallback callback ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getLocalStorageHost ( callback.getAsyncQuery ( ) , item.getname ( ) ) ; }

Target:
public void run ( org.ovirt.engine.core.common.businessentities.StoragePool item , org.ovirt.engine.ui.uicommonweb.models.hosts.AsyncIteratorCallback callback ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getLocalStorageHost ( callback.getAsyncQuery ( ) , item.getName ( ) ) ; }
Source:
protected org.ovirt.engine.core.compat.Guid getEntityGuid ( ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getEntityGuid ( getEntity ( ) ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid getEntityGuid ( ) { return org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getInstance ( ) . getEntityGuid ( getEntity ( ) ) ; }
Source:
public void dismissAlert ( ) { org.ovirt.engine.core.common.businessentities.AuditLog auditLog = getSelectedItem ( ) ; org.ovirt.engine.core.common.action.RemoveAuditLogByIdParameters params = new org.ovirt.engine.core.common.action.RemoveAuditLogByIdParameters ( auditLog.getAuditLogId ( ) ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runAction ( VdcActionType.RemoveAuditLogById , params ) ; }

Target:
public void dismissAlert ( ) { dismissAlert ( getSelectedItem ( ) ) ; }
Source:
public void onResizeEnd ( com.google.gwt.user.cellview.client.Column < T , ? > column , com.google.gwt.dom.client.Element headerElement ) { headerElement.getStyle ( ) . clearBackgroundColor ( ) ; table.redraw ( ) ; }

Target:
public void onResizeEnd ( com.google.gwt.user.cellview.client.Column < T , ? > column , com.google.gwt.dom.client.Element headerElement ) { super . onResizeEnd ( column , headerElement ) ; table.redraw ( ) ; }
Source:
public org.ovirt.engine.core.searchbackend.IAutoCompleter getFieldRelationshipAutoCompleter ( java.lang.String fieldName ) { if ( "TAG" . equals ( fieldName ) ) { return StringOnlyEqualConditionRelationAutoCompleter.INSTANCE ; } else { return StringConditionRelationAutoCompleter.INSTANCE ; } }

Target:
public org.ovirt.engine.core.searchbackend.IAutoCompleter getFieldRelationshipAutoCompleter ( java.lang.String fieldName ) { return StringConditionRelationAutoCompleter.INSTANCE ; }
Source:
public static org.ovirt.engine.core.common.businessentities.VmDynamic buildVMDynamicData ( java.util.Map < java.lang.String , java.lang.Object > xmlRpcStruct ) { org.ovirt.engine.core.common.businessentities.VmDynamic vmdynamic = new org.ovirt.engine.core.common.businessentities.VmDynamic ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.updateVMDynamicData ( vmdynamic , xmlRpcStruct ) ; return vmdynamic ; }

Target:
public static org.ovirt.engine.core.common.businessentities.VmDynamic buildVMDynamicData ( java.util.Map < java.lang.String , java.lang.Object > xmlRpcStruct , org.ovirt.engine.core.common.businessentities.VDS host ) { org.ovirt.engine.core.common.businessentities.VmDynamic vmdynamic = new org.ovirt.engine.core.common.businessentities.VmDynamic ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.updateVMDynamicData ( vmdynamic , xmlRpcStruct , host ) ; return vmdynamic ; }
Source:
protected void addCanDoActionMessage ( org.ovirt.engine.core.common.errors.VdcBllMessages message ) { super . addCanDoActionMessage ( message ) ; }

Target:
protected void addCanDoActionMessage ( org.ovirt.engine.core.common.errors.EngineMessage message ) { super . addCanDoActionMessage ( message ) ; }