auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testValidateNetworkExclusiveOnNicsVmAndNonVmAttachedToInterface ( ) throws java.lang.Exception { checkVmNetworkIsSoleAssignedInterface ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NETWORK_INTERFACES_NOT_EXCLUSIVELY_USED_BY_NETWORK ) , vmNetwork1 , nonVmNetwork1 ) ; }

Target:
public void testValidateNetworkExclusiveOnNicsTwoVmNetworksAttachedToInterface ( ) throws java.lang.Exception { checkVmNetworkIsSoleAssignedInterface ( failsWithNetworkInterfacesNotExclusivelyUsedByNetwork ( ) , vmNetwork1 , vmNetwork2 ) ; }
Source:
protected org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmModel getImportModel ( ) { org.ovirt.engine.ui.uicommonweb.models.templates.ImportTemplateModel model = new org.ovirt.engine.ui.uicommonweb.models.templates.ImportTemplateModel ( ) ; model.setTitle ( org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) . importTemplatesTitle ( ) ) ; model.setHashName ( "import_template" ) ; return model ; }

Target:
protected org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmModel getImportModel ( ) { org.ovirt.engine.ui.uicommonweb.models.templates.ImportTemplateModel model = new org.ovirt.engine.ui.uicommonweb.models.templates.ImportTemplateModel ( ) ; model.setTitle ( org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) . importTemplatesTitle ( ) ) ; model.setHelpTag ( HelpTag.import_template ) ; model.setHashName ( "import_template" ) ; return model ; }
Source:
public void NameTaken ( ) { qos.setName ( "foo" ) ; nameNotChangedOrNotTakenTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_NETWORK_QOS_NAME_EXIST ) ) ; }

Target:
public void NameTaken ( ) { qos.setName ( "foo" ) ; nameNotChangedOrNotTakenTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.ACTION_TYPE_FAILED_QOS_NAME_EXIST ) ) ; }
Source:
public static void sort ( java.util.List source , java.util.Comparator comparer ) { java.util.Collections.sort ( source , comparer ) ; }

Target:
public static final java.lang.Iterable < org.ovirt.engine.core.common.businessentities.Provider > filterNetworkProviders ( java.lang.Iterable < org.ovirt.engine.core.common.businessentities.Provider > source ) { return org.ovirt.engine.ui.uicommonweb.Linq.filterProvidersByProvidedType ( source , VdcObjectType.Network ) ; }
Source:
private void removeFromClusters ( ) { for ( org.ovirt.engine.core.common.businessentities.network.NetworkCluster networkCluster : org.ovirt.engine.core.bll.network.dc.RemoveNetworkCommand.getNetworkClusterDAO ( ) . getAllForNetwork ( getNetwork ( ) . getId ( ) ) ) { org.ovirt.engine.core.bll.network.cluster.NetworkClusterHelper helper = new org.ovirt.engine.core.bll.network.cluster.NetworkClusterHelper ( networkCluster ) ; helper.removeNetworkAndReassignRoles ( ) ; } }

Target:
private void removeFromClusters ( ) { for ( org.ovirt.engine.core.common.businessentities.network.NetworkCluster networkCluster : org.ovirt.engine.core.bll.network.dc.RemoveNetworkCommand.getNetworkClusterDao ( ) . getAllForNetwork ( getNetwork ( ) . getId ( ) ) ) { org.ovirt.engine.core.bll.network.cluster.NetworkClusterHelper helper = new org.ovirt.engine.core.bll.network.cluster.NetworkClusterHelper ( networkCluster ) ; helper.removeNetworkAndReassignRoles ( ) ; } }
Source:
private void format_Changed ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { getHostList ( ) . setIsChangable ( ( ( ! ( getFormat ( ) . getIsAvailable ( ) ) ) || ( java.lang.Boolean.TRUE.equals ( getFormat ( ) . getEntity ( ) ) ) ) ) ; }

Target:
private void format_Changed ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { getHostList ( ) . setIsChangeable ( ( ( ! ( getFormat ( ) . getIsAvailable ( ) ) ) || ( java.lang.Boolean.TRUE.equals ( getFormat ( ) . getEntity ( ) ) ) ) ) ; }
Source:
public void externalNetworkNameChanged ( ) { org.ovirt.engine.core.common.businessentities.network.Network externalNetwork = createExternalNetwork ( ) ; externalNetwork.setName ( "aaa" ) ; network.setName ( "bbb" ) ; 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 ) ) ; }

Target:
public void externalNetworkNameChanged ( ) { org.ovirt.engine.core.common.businessentities.network.Network externalNetwork = createExternalNetwork ( ) ; externalNetwork.setName ( "aaa" ) ; network.setName ( "bbb" ) ; org.hamcrest.MatcherAssert.assertThat ( validator.externalNetworkDetailsUnchanged ( externalNetwork ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
protected java.lang.String getStorageArgs ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageServerConnectionDao ( ) . get ( org.ovirt.engine.core.bll.storage.AddStorageDomainCommon.getStorageDomain ( ) . getstorage ( ) ) . getconnection ( ) ; }

Target:
protected java.lang.String getStorageArgs ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageServerConnectionDao ( ) . get ( org.ovirt.engine.core.bll.storage.AddStorageDomainCommon.getStorageDomain ( ) . getStorage ( ) ) . getconnection ( ) ; }
Source:
public void compensate ( ) { org.ovirt.engine.core.bll.ImagesHandler.updateImageStatus ( enclosingCommand.getParameters ( ) . getImageId ( ) , ImageStatus.OK ) ; }

Target:
public void compensate ( ) { org.ovirt.engine.core.bll.ImagesHandler.updateImageStatus ( enclosingCommand.getParameters ( ) . getImageId ( ) , ImageStatus.OK ) ; org.ovirt.engine.core.bll.ImagesHandler.updateImageStatus ( enclosingCommand.getParameters ( ) . getDestinationImageId ( ) , ImageStatus.OK ) ; }
Source:
public void canDoActionSucceedsExportOnLocal ( ) { sd.setStorageDomainType ( StorageDomainType.ImportExport ) ; sd.setStorageType ( StorageType.LOCALFS ) ; sd.setStorageFormat ( StorageFormatType.V1 ) ; sp.setIsLocal ( true ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionSuccess ( cmd ) ; }

Target:
public void validateSucceedsExportOnLocal ( ) { sd.setStorageDomainType ( StorageDomainType.ImportExport ) ; sd.setStorageType ( StorageType.LOCALFS ) ; sd.setStorageFormat ( StorageFormatType.V1 ) ; sp.setIsLocal ( true ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( cmd ) ; }
Source:
protected void setUpQueryExpectations ( java.lang.String query , java.lang.Object failure ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetClustersByStoragePoolId , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 1 ] } , setUpClusters ( ) , failure ) ; }

Target:
protected void setUpQueryExpectations ( java.lang.String query , java.lang.Object failure ) throws java.lang.Exception { setUpEntityQueryExpectations ( QueryType.GetClustersByStoragePoolId , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { "Id" } , new java.lang.Object [ ] { GUIDS [ 1 ] } , setUpClusters ( ) , failure ) ; }
Source:
public void setUp ( ) { vmId = org.ovirt.engine.core.compat.Guid.NewGuid ( ) ; snapshotId = org.ovirt.engine.core.compat.Guid.NewGuid ( ) ; org.mockito.Mockito.doReturn ( snapshotDao ) . when ( validator ) . getSnapshotDao ( ) ; }

Target:
public void setUp ( ) { vmId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; snapshotId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; org.mockito.Mockito.doReturn ( snapshotDao ) . when ( validator ) . getSnapshotDao ( ) ; }
Source:
public void setstorage_type ( org.ovirt.engine.core.common.businessentities.StorageType value ) { getStorageStaticData ( ) . setstorage_type ( value ) ; }

Target:
public void setStorageType ( org.ovirt.engine.core.common.businessentities.StorageType storageType ) { getStorageStaticData ( ) . setstorage_type ( storageType ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.network.InterfaceStatus getStatus ( ) { return getIface ( ) . getStatistics ( ) . getStatus ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.network.InterfaceStatus getStatus ( ) { return getOriginalIface ( ) . getStatistics ( ) . getStatus ( ) ; }
Source:
protected java.util.Date getRawValue ( org.ovirt.engine.core.common.businessentities.VmTemplate object ) { return object.getcreation_date ( ) ; }

Target:
protected java.util.Date getRawValue ( org.ovirt.engine.core.common.businessentities.VmTemplate object ) { return object.getCreationDate ( ) ; }
Source:
public void testFindExternalMacAddressesVnicsNull ( ) { final java.util.Set < java.lang.String > actual = underTest.findExternalMacAddresses ( vm ) ; org.junit.Assert.assertThat ( actual , org.hamcrest.Matchers.empty ( ) ) ; }

Target:
public void testFindExternalMacAddressesVnicsNull ( ) { final java.util.Set < java.lang.String > actual = underTest.findExternalMacAddresses ( vm ) ; org.hamcrest.MatcherAssert.assertThat ( actual , org.hamcrest.Matchers.empty ( ) ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; org.mockito.Mockito.when ( getDbFacadeMockInstance ( ) . getVmDeviceDao ( ) ) . thenReturn ( vmDeviceDAO ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; org.mockito.Mockito.when ( getDbFacadeMockInstance ( ) . getVmDeviceDao ( ) ) . thenReturn ( vmDeviceDAO ) ; org.mockito.Mockito.when ( getQueryParameters ( ) . getId ( ) ) . thenReturn ( org.ovirt.engine.core.bll.GetWatchdogQueryTest.TEST_VM_ID ) ; }
Source:
public org.ovirt.engine.core.bll.tasks.interfaces.CommandCallback getCallback ( ) { return new org.ovirt.engine.core.bll.SerialChildCommandsExecutionCallback ( ) ; }

Target:
public org.ovirt.engine.core.bll.tasks.interfaces.CommandCallback getCallback ( ) { return callbackProvider.get ( ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( addr , description , gateway , id , name , dataCenterId , stp , subnet , type , vlanId , mtu , vmNetwork , providedBy , label , qosId ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( addr , description , gateway , id , name , dataCenterId , stp , subnet , type , vlanId , mtu , vmNetwork , providedBy , label , qosId , dnsResolverConfiguration ) ; }
Source:
public org.ovirt.engine.extension.aaa.jdbc.core.datasource.Sql.Template setString ( java.lang.String column , java.lang.String value ) { if ( value != null ) { setRaw ( column , ( ( "'" + value ) + "'" ) ) ; } return this ; }

Target:
public org.ovirt.engine.extension.aaa.jdbc.core.datasource.Sql.Template setString ( java.lang.String column , java.lang.String value ) { if ( value != null ) { setRaw ( column , org.ovirt.engine.extension.aaa.jdbc.Formatter.escapeString ( value ) ) ; } return this ; }
Source:
private org.ovirt.engine.core.dao.AsyncTaskDAODbFacadeImpl.AsyncTaskParameterSource getTaskParameterSource ( org.ovirt.engine.core.common.businessentities.async_tasks task ) { return new org.ovirt.engine.core.dao.AsyncTaskDAODbFacadeImpl.AsyncTaskParameterSource ( dialect , task ) ; }

Target:
private org.ovirt.engine.core.dao.AsyncTaskDAODbFacadeImpl.AsyncTaskParameterSource getTaskParameterSource ( org.ovirt.engine.core.common.businessentities.AsyncTasks task ) { return new org.ovirt.engine.core.dao.AsyncTaskDAODbFacadeImpl.AsyncTaskParameterSource ( dialect , task ) ; }
Source:
protected java.util.ArrayList < org.ovirt.engine.core.common.businessentities.storage_domains > getNodeObjects ( org.ovirt.engine.core.common.businessentities.DiskImage disk ) { return org.ovirt.engine.ui.uicommonweb.Linq.getStorageDomainsByIds ( disk.getstorage_ids ( ) , listModel.getStorageDomains ( ) ) ; }

Target:
protected java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > getNodeObjects ( org.ovirt.engine.core.common.businessentities.DiskImage disk ) { return org.ovirt.engine.ui.uicommonweb.Linq.getStorageDomainsByIds ( disk.getStorageIds ( ) , listModel.getStorageDomains ( ) ) ; }
Source:
public void setDedicatedHostList ( java.util.List < org.ovirt.engine.core.compat.Guid > dedicatedHosts ) { if ( dedicatedHosts == null ) { this . dedicatedHostList = java.util.Collections.< org.ovirt.engine.core.compat.Guid > emptyList ( ) ; return ; } this . dedicatedHostList = dedicatedHosts ; }

Target:
public void setVm ( org.ovirt.engine.core.common.businessentities.VM vm ) { this . vm = vm ; }
Source:
public static org.ovirt.engine.core.common.queries.VdcQueryType forValue ( int value ) { return org.ovirt.engine.core.common.queries.VdcQueryType.values ( ) [ value ] ; }

Target:
public static org.ovirt.engine.core.common.queries.QueryType forValue ( int value ) { return org.ovirt.engine.core.common.queries.QueryType.values ( ) [ value ] ; }
Source:
private org.ovirt.engine.core.common.job.Job makeExternalTestJob ( ) { org.ovirt.engine.core.common.job.Job job = new org.ovirt.engine.core.common.job.Job ( ) ; job.setId ( org.ovirt.engine.core.bll.EndExternalJobCommandTest.jobId ) ; job.setDescription ( "Sample Job" ) ; job.setExternal ( true ) ; return job ; }

Target:
private org.ovirt.engine.core.common.job.Job makeJob ( ) { org.ovirt.engine.core.common.job.Job job = new org.ovirt.engine.core.common.job.Job ( ) ; job.setId ( org.ovirt.engine.core.bll.EndExternalJobCommandTest.jobId ) ; job.setDescription ( "Sample Job" ) ; return job ; }
Source:
public boolean isRDPAvailable ( ) { if ( ( rdpAvailable ) == null ) { rdpAvailable = configurator.isClientWindowsExplorer ( ) ; com.google.gwt.core.client.GWT.log ( ( "Determining if RDP console is available on current platform, result:" + ( rdpAvailable ) ) ) ; } return rdpAvailable ; }

Target:
public boolean isRDPAvailable ( ) { if ( ( rdpAvailable ) == null ) { rdpAvailable = configurator.isClientWindows ( ) ; com.google.gwt.core.client.GWT.log ( ( "Determining if RDP console is available on current platform, result:" + ( rdpAvailable ) ) ) ; } return rdpAvailable ; }
Source:
public void persistCommand ( org.ovirt.engine.core.common.businessentities.CommandEntity cmdEntity , org.ovirt.engine.core.bll.context.CommandContext cmdContext ) { initChildHierarchy ( ) ; if ( org.ovirt.engine.core.compat.Guid.isNullOrEmpty ( cmdEntity.getId ( ) ) ) { return ; } persistCommand ( cmdEntity ) ; saveCommandContext ( cmdEntity.getId ( ) , cmdContext ) ; }

Target:
public java.util.List < org.ovirt.engine.core.compat.Guid > getCommandIdsByEntityId ( org.ovirt.engine.core.compat.Guid entityId ) { return commandsRepository.getCommandsCache ( ) . getCommandIdsByEntityId ( entityId ) ; }
Source:
public void setVncAvailable ( boolean visible ) { vncRadioButton.setEnabled ( visible ) ; vncRadioButton.setTitle ( ( visible ? "" : constants.vncNotAvailable ( ) ) ) ; }

Target:
public void setVncAvailable ( boolean visible ) { vncRadioButton.setEnabled ( visible ) ; vncRadioButtonTooltip.setText ( ( visible ? "" : org.ovirt.engine.ui.common.view.popup.ConsolePopupView.constants.vncNotAvailable ( ) ) ) ; }
Source:
public java.lang.String getNetmask ( ) { return hasIpConfiguration ( ) ? getIpConfiguration ( ) . getNetmask ( ) : null ; }

Target:
public java.lang.String getNetmask ( ) { if ( primaryAddressNotSet ( ) ) { return null ; } return getIpConfiguration ( ) . getPrimaryAddress ( ) . getNetmask ( ) ; }
Source:
private void syncAttachedDirectLuns ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.LUNs > deviceList ) { org.ovirt.engine.core.common.action.SyncAttachedDirectLunsParameters parameters = new org.ovirt.engine.core.common.action.SyncAttachedDirectLunsParameters ( org.ovirt.engine.core.bll.storage.pool.SyncAllUsedLunsCommand.getParameters ( ) . getStoragePoolId ( ) ) ; parameters.setDeviceList ( deviceList ) ; runInternalAction ( VdcActionType.SyncAttachedDirectLuns , parameters ) ; }

Target:
private void syncDirectLunsAttachedToVmsInPool ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.LUNs > deviceList ) { org.ovirt.engine.core.common.action.SyncDirectLunsParameters parameters = new org.ovirt.engine.core.common.action.SyncDirectLunsParameters ( org.ovirt.engine.core.bll.storage.pool.SyncAllUsedLunsCommand.getParameters ( ) . getStoragePoolId ( ) ) ; parameters.setDeviceList ( deviceList ) ; runInternalAction ( ActionType.SyncDirectLuns , parameters ) ; }
Source:
public void auditLog ( org.ovirt.engine.core.common.AuditLogType auditLogType , org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase auditLogable ) { if ( auditLogType != null ) { new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector ( ) . log ( auditLogable , auditLogType ) ; } }

Target:
public void auditLog ( org.ovirt.engine.core.common.AuditLogType auditLogType , org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase auditLogable ) { if ( auditLogType != null ) { org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.class ) . log ( auditLogable , auditLogType ) ; } }
Source:
protected void UpdateTasksWithActionParameters ( ) { for ( org.ovirt.engine.core.compat.Guid taskID : getReturnValue ( ) . getTaskIdList ( ) ) { org.ovirt.engine.core.bll.AsyncTaskManager.getInstance ( ) . UpdateTaskWithActionParameters ( taskID , getParameters ( ) ) ; } }

Target:
protected void UpdateTasksWithActionParameters ( ) { for ( org.ovirt.engine.core.compat.Guid taskID : getReturnValue ( ) . getTaskIdList ( ) ) { getAsyncTaskManager ( ) . UpdateTaskWithActionParameters ( taskID , getParameters ( ) ) ; } }
Source:
public void Initialize ( ) { super . Initialize ( ) ; if ( ( getVm ( ) ) != null ) { updateSuggestedDiskAlias ( ) ; } }

Target:
public void initialize ( ) { super . initialize ( ) ; if ( ( getVm ( ) ) != null ) { updateSuggestedDiskAlias ( ) ; } }
Source:
void setEmulatedMachine ( org.ovirt.engine.core.compat.Guid vdsGroupId , java.lang.String emulatedMachine , boolean detectEmulatedMachine ) ;

Target:
void setEmulatedMachine ( org.ovirt.engine.core.compat.Guid clusterId , java.lang.String emulatedMachine , boolean detectEmulatedMachine ) ;
Source:
public void setDisplayNetwork ( boolean displayNetwork ) { getEntity ( ) . getCluster ( ) . setis_display ( displayNetwork ) ; }

Target:
public void setDisplayNetwork ( boolean displayNetwork ) { getEntity ( ) . getCluster ( ) . setDisplay ( displayNetwork ) ; }
Source:
public boolean IsMacInUse ( java.lang.String mac ) { return ( mAllocatedMacs.contains ( mac ) ) || ( mAllocatedCustomMacs.contains ( mac ) ) ; }

Target:
public boolean IsMacInUse ( java.lang.String mac ) { synchronized ( mLocObj ) { return ( mAllocatedMacs.contains ( mac ) ) || ( mAllocatedCustomMacs.contains ( mac ) ) ; } }
Source:
protected java.lang.Integer getUserSessionTimeout ( ) { return org.ovirt.engine.core.common.config.Config.< java.lang.Integer > getValue ( ConfigValues.UserSessionTimeOutInterval ) ; }

Target:
protected java.lang.Integer getEngineSessionTimeout ( java.lang.String sessionId ) { return ( ( java.lang.Integer ) ( runPublicQuery ( VdcQueryType.GetConfigurationValue , new org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ( org.ovirt.engine.core.common.queries.ConfigurationValues.UserSessionTimeOutInterval , org.ovirt.engine.core.common.config.ConfigCommon.defaultConfigurationVersion ) , sessionId ) ) ) ; }
Source:
public void testRemoveNonExistant ( ) { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( 0 , null ) ; try { resource.remove ( ) ; org.junit.jupiter.api.Assertions.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testRemoveNonExistant ( ) { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpGetEntityExpectations ( 0 , null ) ; verifyNotFoundException ( org.junit.jupiter.api.Assertions.assertThrows ( javax.ws.rs.WebApplicationException.class , ( ) -> org.ovirt.engine.api.restapi.resource.resource.remove ( ) ) ) ; }
Source:
protected org.ovirt.engine.core.common.businessentities.VM getVm ( ) { return org.ovirt.engine.api.restapi.resource.BackendVmApplicationsResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.core.common.businessentities.VM.class ) , control.createMock ( org.ovirt.engine.core.common.businessentities.VmDynamic.class ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.VM getVm ( ) { return org.ovirt.engine.api.restapi.resource.BackendVmApplicationsResourceTest.setUpEntityExpectations ( org.mockito.Mockito.mock ( org.ovirt.engine.core.common.businessentities.VM.class ) , org.mockito.Mockito.mock ( org.ovirt.engine.core.common.businessentities.VmDynamic.class ) ) ; }
Source:
private void TimeZone_SelectedItemChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { }

Target:
private void timeZone_SelectedItemChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { }
Source:
public void setksm_state ( java.lang.Boolean value ) { this . mVdsStatistics.setksm_state ( value ) ; }

Target:
public void setKsmState ( java.lang.Boolean value ) { this . mVdsStatistics.setksm_state ( value ) ; }
Source:
public java.lang.String getGuestCurUserName ( ) { return this . vmDynamic.getguest_cur_user_name ( ) ; }

Target:
public java.lang.String getGuestCurentUserName ( ) { return this . vmDynamic.getguest_cur_user_name ( ) ; }
Source:
public static org.ovirt.engine.core.common.queries.VdcQueryParametersBase eqQueryParams ( java.lang.Class < ? extends org.ovirt.engine.core.common.queries.VdcQueryParametersBase > clz , java.lang.String [ ] names , java.lang.Object [ ] values ) { return org.mockito.Matchers.argThat ( new org.ovirt.engine.api.restapi.test.util.TestHelper.QueryParametersEquals ( clz , names , values ) ) ; }

Target:
public static org.ovirt.engine.core.common.queries.VdcQueryParametersBase eqQueryParams ( java.lang.Class < ? extends org.ovirt.engine.core.common.queries.VdcQueryParametersBase > clz , java.lang.String [ ] names , java.lang.Object [ ] values ) { return org.mockito.ArgumentMatchers.argThat ( new org.ovirt.engine.api.restapi.test.util.TestHelper.QueryParametersEquals ( clz , names , values ) ) ; }
Source:
public void testValidateNetworkExclusiveOnNicsVmAndNonVmAttachedToInterface ( ) throws java.lang.Exception { checkVmNetworkIsSoleAssignedInterface ( failsWithNetworkInterfacesNotExclusivelyUsedByNetwork ( ) , vmNetwork1 , nonVmNetwork1 ) ; }

Target:
public void testValidateNetworkExclusiveOnNicsVmNetworkMustBeSoleAttachedInterface ( ) throws java.lang.Exception { checkVmNetworkIsSoleAssignedInterface ( false , java.util.Arrays.asList ( NetworkType.VM ) , vmNetwork1 ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.DiskImage createPreallocDiskImage ( ) { org.ovirt.engine.core.common.businessentities.DiskImage image = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; image.setvolume_type ( VolumeType.Preallocated ) ; image.setDiskInterface ( DiskInterface.IDE ) ; image.setSizeInGigabytes ( 5 ) ; return image ; }

Target:
private static org.ovirt.engine.core.common.businessentities.DiskImage createPreallocDiskImage ( ) { org.ovirt.engine.core.common.businessentities.DiskImage image = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; image.setVolumeType ( VolumeType.Preallocated ) ; image.setDiskInterface ( DiskInterface.IDE ) ; image.setSizeInGigabytes ( 5 ) ; return image ; }
Source:
public org.ovirt.engine.core.common.businessentities.CommandEntity createCommandEntity ( org.ovirt.engine.core.compat.Guid cmdId , org.ovirt.engine.core.common.action.ActionType actionType , org.ovirt.engine.core.common.action.VdcActionParametersBase params ) { org.ovirt.engine.core.common.businessentities.CommandEntity cmdEntity = new org.ovirt.engine.core.common.businessentities.CommandEntity ( ) ; cmdEntity.setId ( cmdId ) ; cmdEntity.setCommandType ( actionType ) ; cmdEntity.setCommandParameters ( params ) ; return cmdEntity ; }

Target:
public org.ovirt.engine.core.common.businessentities.CommandEntity createCommandEntity ( org.ovirt.engine.core.compat.Guid cmdId , org.ovirt.engine.core.common.action.ActionType actionType , org.ovirt.engine.core.common.action.ActionParametersBase params ) { org.ovirt.engine.core.common.businessentities.CommandEntity cmdEntity = new org.ovirt.engine.core.common.businessentities.CommandEntity ( ) ; cmdEntity.setId ( cmdId ) ; cmdEntity.setCommandType ( actionType ) ; cmdEntity.setCommandParameters ( params ) ; return cmdEntity ; }
Source:
private void DefaultHost_SelectedItemChanged ( java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { behavior.DefaultHost_SelectedItemChanged ( ) ; }

Target:
public void setVncKeyboardLayout ( org.ovirt.engine.ui.uicommonweb.models.ListModel vncKeyboardLayout ) { this . vncKeyboardLayout = vncKeyboardLayout ; }
Source:
private void setUpMockQueryParameters ( ) { params = org.ovirt.engine.core.bll.AbstractQueryTest.mock ( getParameterType ( ) ) ; org.mockito.Mockito.when ( params.getSessionId ( ) ) . thenReturn ( "test" ) ; org.mockito.Mockito.when ( params.getRefresh ( ) ) . thenReturn ( true ) ; }

Target:
private P createMockQueryParameters ( ) { P params = org.ovirt.engine.core.bll.AbstractQueryTest.mock ( getParameterType ( ) ) ; org.mockito.Mockito.when ( params.getSessionId ( ) ) . thenReturn ( "test" ) ; org.mockito.Mockito.when ( params.getRefresh ( ) ) . thenReturn ( true ) ; return params ; }
Source:
public java.util.Date getExportDate ( ) { return this . mVmStatic.getExportDate ( ) ; }

Target:
public void setDiskMap ( java.util.Map < org.ovirt.engine.core.compat.Guid , org.ovirt.engine.core.common.businessentities.Disk > diskMap ) { this . diskMap = diskMap ; }
Source:
public void addColumnWithHtmlHeader ( com.google.gwt.user.cellview.client.Column < T , ? > column , java.lang.String headerHtml , java.lang.String width ) { addColumnWithHtmlHeader ( column , headerHtml ) ; setColumnWidth ( column , width ) ; }

Target:
public void addColumnWithHtmlHeader ( com.google.gwt.user.cellview.client.Column < T , ? > column , java.lang.String headerHtml , java.lang.String width ) { table.addColumnWithHtmlHeader ( column , headerHtml , width ) ; tableHeader.addColumnWithHtmlHeader ( column , headerHtml , width ) ; }
Source:
public org.ovirt.engine.api.resource.WatchdogsResource getWatchdogsResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendWatchdogsResource ( true , guid , org.ovirt.engine.core.common.queries.VdcQueryType.GetWatchdog , new org.ovirt.engine.core.common.queries.IdQueryParameters ( guid ) ) ) ; }

Target:
public org.ovirt.engine.api.resource.VmWatchdogsResource getWatchdogsResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendVmWatchdogsResource ( guid ) ) ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { glusterHostUUID = org.ovirt.engine.core.vdsbroker.gluster.GetGlusterHostUUIDVDSCommand.getBroker ( ) . glusterHostUUIDGet ( ) ; org.ovirt.engine.core.vdsbroker.gluster.GetGlusterHostUUIDVDSCommand.ProceedProxyReturnValue ( ) ; if ( org.ovirt.engine.core.vdsbroker.gluster.GetGlusterHostUUIDVDSCommand.getVDSReturnValue ( ) . getSucceeded ( ) ) { setReturnValue ( glusterHostUUID.mUuid ) ; } }

Target:
protected void ExecuteVdsBrokerCommand ( ) { glusterHostUUID = org.ovirt.engine.core.vdsbroker.gluster.GetGlusterHostUUIDVDSCommand.getBroker ( ) . glusterHostUUIDGet ( ) ; org.ovirt.engine.core.vdsbroker.gluster.GetGlusterHostUUIDVDSCommand.proceedProxyReturnValue ( ) ; if ( org.ovirt.engine.core.vdsbroker.gluster.GetGlusterHostUUIDVDSCommand.getVDSReturnValue ( ) . getSucceeded ( ) ) { setReturnValue ( glusterHostUUID.mUuid ) ; } }
Source:
public void setVmName ( java.lang.String value ) { this . vmStatic.setVmName ( value ) ; }

Target:
public int getVmOsId ( ) { return this . vmStatic.getOsId ( ) ; }
Source:
public void testCreateVmInfoBuilder ( ) { final org.ovirt.engine.core.vdsbroker.vdsbroker.VmInfoBuilder actual = underTest.createVmInfoBuilder ( new org.ovirt.engine.core.common.businessentities.VM ( ) , org.ovirt.engine.core.compat.Guid.newGuid ( ) , new java.util.HashMap ( ) ) ; org.junit.Assert.assertThat ( actual , org.hamcrest.CoreMatchers.instanceOf ( org.ovirt.engine.core.vdsbroker.vdsbroker.VmInfoBuilder.class ) ) ; }

Target:
public void testCreateVmInfoBuilder ( ) { final org.ovirt.engine.core.vdsbroker.builder.vminfo.VmInfoBuilder actual = underTest.createVmInfoBuilder ( new org.ovirt.engine.core.common.businessentities.VM ( ) , org.ovirt.engine.core.compat.Guid.newGuid ( ) , new java.util.HashMap ( ) ) ; org.junit.Assert.assertThat ( actual , org.hamcrest.CoreMatchers.instanceOf ( org.ovirt.engine.core.vdsbroker.builder.vminfo.VmInfoBuilderImpl.class ) ) ; }
Source:
private void setUpMocksForRemove ( boolean hookFound , org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity hook , org.ovirt.engine.core.common.businessentities.VDSStatus status ) { setupMocks ( hookFound , hook ) ; org.mockito.Mockito.when ( vdsDao.getAllForCluster ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( getServers ( status ) ) ; }

Target:
private void setUpMocksForRemove ( boolean hookFound , org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity hook , org.ovirt.engine.core.common.businessentities.VDSStatus status ) { setupMocks ( hookFound , hook ) ; org.mockito.Mockito.when ( vdsDao.getAllForCluster ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ) . thenReturn ( getServers ( status ) ) ; }
Source:
protected org.ovirt.engine.api.model.Disk getEntity ( int index ) { org.ovirt.engine.core.common.businessentities.DiskImage disk = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; disk.setId ( org.ovirt.engine.api.restapi.resource.BackendExportDomainDiskResourceTest.DISK_ID ) ; return disk ; }

Target:
protected org.ovirt.engine.api.model.Disk getEntity ( int index ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage disk = new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ; disk.setId ( org.ovirt.engine.api.restapi.resource.BackendExportDomainDiskResourceTest.DISK_ID ) ; return disk ; }
Source:
public void verifyCall ( org.ovirt.engine.core.utils.log.Log mock , java.lang.String message , java.lang.Object args ) { org.mockito.Mockito.verify ( mock ) . traceFormat ( message , args ) ; }

Target:
public void verifyCall ( org.slf4j.Logger mock , java.lang.String message , java.lang.Object ... args ) { org.mockito.Mockito.verify ( mock ) . trace ( message , args ) ; }
Source:
protected final boolean failCanDoAction ( org.ovirt.engine.core.dal.VdcBllMessages message ) { addCanDoActionMessage ( message ) ; return false ; }

Target:
protected final boolean failCanDoAction ( org.ovirt.engine.core.common.errors.VdcBllMessages message ) { addCanDoActionMessage ( message ) ; return false ; }
Source:
protected void executeCommand ( ) { AddStoragePoolToDb ( ) ; org.ovirt.engine.core.bll.storage.AddEmptyStoragePoolCommand.getReturnValue ( ) . setActionReturnValue ( org.ovirt.engine.core.bll.storage.AddEmptyStoragePoolCommand.getStoragePool ( ) . getId ( ) ) ; addDefaultNetworks ( ) ; org.ovirt.engine.core.bll.storage.AddEmptyStoragePoolCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { addStoragePoolToDb ( ) ; org.ovirt.engine.core.bll.storage.AddEmptyStoragePoolCommand.getReturnValue ( ) . setActionReturnValue ( org.ovirt.engine.core.bll.storage.AddEmptyStoragePoolCommand.getStoragePool ( ) . getId ( ) ) ; addDefaultNetworks ( ) ; org.ovirt.engine.core.bll.storage.AddEmptyStoragePoolCommand.setSucceeded ( true ) ; }
Source:
private void attachLabeledNetwork ( ) { final org.ovirt.engine.core.common.action.AttachNetworkToClusterParameter attachNetworkToClusterParameter = getParameters ( ) ; runInternalAction ( VdcActionType.PropagateLabeledNetworksToClusterHosts , new org.ovirt.engine.core.common.action.ManageNetworkClustersParameters ( new java.util.ArrayList ( java.util.Collections.singleton ( attachNetworkToClusterParameter.getNetworkCluster ( ) ) ) ) ) ; }

Target:
private void attachLabeledNetwork ( ) { final org.ovirt.engine.core.common.action.AttachNetworkToClusterParameter attachNetworkToClusterParameter = getParameters ( ) ; runInternalAction ( ActionType.PropagateNetworksToClusterHosts , new org.ovirt.engine.core.common.action.ManageNetworkClustersParameters ( new java.util.ArrayList ( java.util.Collections.singleton ( attachNetworkToClusterParameter.getNetworkCluster ( ) ) ) ) ) ; }
Source:
public void validateWithPinnedHostOnVm ( ) { final org.ovirt.engine.core.bll.numa.vm.AddVmNumaNodesCommand command = mockedCommandWithVmFromDb ( ) ; org.assertj.core.api.Assertions.assertThat ( command.validate ( ) ) . isTrue ( ) ; }

Target:
public void canDetectNonContinuousNumaNodeIndices ( ) { paramNumaNodes.clear ( ) ; paramNumaNodes.addAll ( java.util.Arrays.asList ( org.ovirt.engine.core.bll.utils.NumaTestUtils.createVmNumaNode ( 2 ) , org.ovirt.engine.core.bll.utils.NumaTestUtils.createVmNumaNode ( 4 ) ) ) ; mockCommandWithVmFromParams ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.VM_NUMA_NODE_NON_CONTINUOUS_INDEX ) ; }
Source:
public void testGetAllWithIpAddress ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VdsStatic > result = dao.getAllWithIpAddress ( org.ovirt.engine.core.dao.VdsStaticDAOTest.IP_ADDRESS ) ; assertNotNull ( result ) ; assertFalse ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllWithIpAddress ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VdsStatic > result = dao.getAllWithIpAddress ( org.ovirt.engine.core.dao.VdsStaticDAOTest.IP_ADDRESS ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }
Source:
public void isClusterEmpty ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid clusterId ) { runBooleanQueryByEntityId ( VdcQueryType.IsClusterEmpty , aQuery , clusterId ) ; }

Target:
public void getManagementNetwork ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid clusterId ) { runQueryByIdParameter ( VdcQueryType.GetManagementNetwork , aQuery , clusterId ) ; }
Source:
boolean hasTableSelectionModel ( ) { return ( org.ovirt.engine.ui.common.presenter.AbstractSubTabPresenter.getView ( ) . getTableSelectionModel ( ) ) != null ; }

Target:
protected java.util.List < ? > getSelectedItems ( ) { return ( org.ovirt.engine.ui.common.presenter.AbstractSubTabPresenter.getView ( ) . getTable ( ) ) != null ? org.ovirt.engine.ui.common.presenter.AbstractSubTabPresenter.getView ( ) . getTable ( ) . getSelectionModel ( ) . getSelectedList ( ) : null ; }
Source:
public static void checkStatusAndLockVm ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.common.businessentities.VmDynamic vmDynamic = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDynamicDao ( ) . get ( vmId ) ; org.ovirt.engine.core.bll.VmHandler.checkStatusBeforeLock ( vmDynamic.getStatus ( ) ) ; org.ovirt.engine.core.bll.VmHandler.LockVm ( vmId ) ; }

Target:
public static void checkStatusAndLockVm ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.common.businessentities.VmDynamic vmDynamic = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVmDynamicDao ( ) . get ( vmId ) ; org.ovirt.engine.core.bll.VmHandler.checkStatusBeforeLock ( vmDynamic.getStatus ( ) ) ; org.ovirt.engine.core.bll.VmHandler.lockVm ( vmId ) ; }
Source:
public void getUsbPolicyIsSetDisabled ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; assertEquals ( UsbPolicy.DISABLED , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnCreate ( usb ) ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledNotSetPolicyNotSetUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; org.ovirt.engine.core.common.businessentities.UsbPolicy currentPolicy = org.ovirt.engine.core.common.businessentities.UsbPolicy.ENABLED_NATIVE ; org.junit.Assert.assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , currentPolicy ) , currentPolicy ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; usb.setType ( "native" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE ) , UsbPolicy.ENABLED_NATIVE ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; usb.setType ( UsbType.NATIVE ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE ) , UsbPolicy.ENABLED_NATIVE ) ; }
Source:
protected void OnSelectedItemChanged ( ) { super . OnSelectedItemChanged ( ) ; if ( ( getSelectedItem ( ) ) != null ) { UpdateFormat ( ) ; UpdateHost ( ) ; } }

Target:
protected void onSelectedItemChanged ( ) { super . onSelectedItemChanged ( ) ; if ( ( getSelectedItem ( ) ) != null ) { UpdateFormat ( ) ; UpdateHost ( ) ; } }
Source:
public void onSuccess ( java.util.List < org.ovirt.engine.core.common.businessentities.storage.DiskImage > returnValue ) { initTemplateDisks ( returnValue ) ; }

Target:
public void onSuccess ( java.lang.Integer returnValue ) { maxThreadsPerCore = returnValue ; totalCpuCoresChanged ( ) ; }
Source:
protected java.lang.Object GetValue ( org.ovirt.engine.core.common.config.DataType type , java.lang.String name , java.lang.String defaultValue ) { org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils.log.warnFormat ( "Using old GetValue for {0}." , name ) ; org.ovirt.engine.core.common.config.ConfigValues value = org.ovirt.engine.core.common.config.ConfigValues.valueOf ( name ) ; return GetValue ( value , ConfigCommon.defaultConfigurationVersion ) ; }

Target:
protected java.lang.Object getValue ( org.ovirt.engine.core.common.config.DataType type , java.lang.String name , java.lang.String defaultValue ) { org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils.log.warnFormat ( "Using old getValue for {0}." , name ) ; org.ovirt.engine.core.common.config.ConfigValues value = org.ovirt.engine.core.common.config.ConfigValues.valueOf ( name ) ; return getValue ( value , ConfigCommon.defaultConfigurationVersion ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.ServerCpu > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.ServerCpu > ( ) ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > ) ( source ) ) : new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > ( ) ; }
Source:
public void executeQueryCommand ( ) { org.ovirt.engine.core.bll.gluster.GetGlusterVolumeSnapshotsByVolumeIdQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.gluster.GetGlusterVolumeSnapshotsByVolumeIdQuery.getGlusterVolumeSnapshotDao ( ) . getAllByVolumeId ( org.ovirt.engine.core.bll.gluster.GetGlusterVolumeSnapshotsByVolumeIdQuery.getParameters ( ) . getId ( ) ) ) ; }

Target:
public void executeQueryCommand ( ) { org.ovirt.engine.core.bll.gluster.GetGlusterVolumeSnapshotsByVolumeIdQuery.getQueryReturnValue ( ) . setReturnValue ( glusterVolumeSnapshotDao.getAllByVolumeId ( org.ovirt.engine.core.bll.gluster.GetGlusterVolumeSnapshotsByVolumeIdQuery.getParameters ( ) . getId ( ) ) ) ; }
Source:
private void assertGetHostsForStorageOperationNonGluster ( java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result ) { for ( org.ovirt.engine.core.common.businessentities.VDS vds : result ) { org.junit.Assert.assertThat ( vds.getVdsGroupId ( ) , org.hamcrest.CoreMatchers.not ( org.hamcrest.core.IsEqual.equalTo ( FixturesTool.GLUSTER_CLUSTER_ID ) ) ) ; } }

Target:
private void assertGetHostsForStorageOperationNonGluster ( java.util.List < org.ovirt.engine.core.common.businessentities.VDS > result ) { for ( org.ovirt.engine.core.common.businessentities.VDS vds : result ) { org.junit.Assert.assertThat ( vds.getClusterId ( ) , org.hamcrest.CoreMatchers.not ( org.hamcrest.core.IsEqual.equalTo ( FixturesTool.GLUSTER_CLUSTER_ID ) ) ) ; } }
Source:
public org.ovirt.engine.core.common.eventqueue.EventResult call ( ) { runSynchronizeOperation ( new org.ovirt.engine.core.bll.storage.RefreshStoragePoolAndDisconnectAsyncOperationFactory ( ) ) ; return null ; }

Target:
public org.ovirt.engine.core.common.eventqueue.EventResult call ( ) { runSynchronizeOperation ( new org.ovirt.engine.core.bll.storage.pool.RefreshStoragePoolAndDisconnectAsyncOperationFactory ( ) ) ; return null ; }
Source:
protected boolean isLocalFs ( org.ovirt.engine.core.common.businessentities.StorageDomain dom ) { return ( dom.getStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.StorageType.LOCALFS ) ; }

Target:
protected boolean isLocalFs ( org.ovirt.engine.core.common.businessentities.StorageDomain dom ) { return ( dom.getStorageType ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.StorageType.LOCALFS ) ; }
Source:
public void ExecuteCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { expandTree ( display.getRootTreeNode ( ) , true ) ; }

Target:
public void ExecuteCommand ( org.ovirt.engine.ui.uicommonweb.UICommand command ) { com.google.gwt.user.cellview.client.TreeNode expandNode = findNode ( display.getRootTreeNode ( ) , modelProvider.getSelectionModel ( ) . getSelectedObject ( ) ) ; if ( expandNode != null ) { expandTree ( expandNode ) ; } }
Source:
private org.ovirt.engine.core.bll.validator.HostValidator mockHostForActivation ( org.ovirt.engine.core.common.businessentities.VDSStatus status ) { org.ovirt.engine.core.common.businessentities.VDS host = org.mockito.Mockito.mock ( org.ovirt.engine.core.common.businessentities.VDS.class ) ; org.mockito.Mockito.when ( host.getStatus ( ) ) . thenReturn ( status ) ; return new org.ovirt.engine.core.bll.validator.HostValidator ( dbFacade , host ) ; }

Target:
private org.ovirt.engine.core.bll.validator.HostValidator mockHostForActivation ( org.ovirt.engine.core.common.businessentities.VDSStatus status ) { org.ovirt.engine.core.common.businessentities.VDS host = org.mockito.Mockito.mock ( org.ovirt.engine.core.common.businessentities.VDS.class ) ; org.mockito.Mockito.when ( host.getStatus ( ) ) . thenReturn ( status ) ; return new org.ovirt.engine.core.bll.validator.HostValidator ( dbFacade , host , hostedEngineHelper ) ; }
Source:
protected void removeVmFromDb ( ) { removeLunDisks ( ) ; org.ovirt.engine.core.bll.RemoveVmCommand.removeVmUsers ( ) ; org.ovirt.engine.core.bll.RemoveVmCommand.removeVmNetwork ( ) ; org.ovirt.engine.core.bll.RemoveVmCommand.removeVmSnapshots ( ) ; removeVmStatic ( getParameters ( ) . isRemovePermissions ( ) ) ; }

Target:
protected void removeVmFromDb ( ) { removeLunDisks ( ) ; org.ovirt.engine.core.bll.RemoveVmCommand.removeVmUsers ( ) ; org.ovirt.engine.core.bll.RemoveVmCommand.removeVmNetwork ( ) ; org.ovirt.engine.core.bll.RemoveVmCommand.removeVmSnapshots ( ) ; removeVmStatic ( getParameters ( ) . isRemovePermissions ( ) ) ; removeIcons ( ) ; }
Source:
public void setBootProtocol ( org.ovirt.engine.core.common.businessentities.network.NetworkBootProtocol value ) { if ( ( bootProtocol ) != value ) { bootProtocol = value ; BootProtocolChanged ( ) ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "BootProtocol" ) ) ; } }

Target:
public void setBootProtocol ( org.ovirt.engine.core.common.businessentities.network.NetworkBootProtocol value ) { if ( ( bootProtocol ) != value ) { bootProtocol = value ; BootProtocolChanged ( ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "BootProtocol" ) ) ; } }
Source:
public void setSuperItems ( java.lang.Iterable value ) { super . setItems ( value ) ; }

Target:
public void setSuperItems ( java.util.Collection value ) { super . setItems ( value ) ; }
Source:
public static org.ovirt.engine.core.bll.provider.ProviderProxy create ( org.ovirt.engine.core.common.businessentities.Provider provider ) { return null ; }

Target:
public < P extends org.ovirt.engine.core.bll.provider.ProviderProxy > P create ( org.ovirt.engine.core.common.businessentities.Provider provider ) { return ( ( P ) ( new org.ovirt.engine.core.bll.host.provider.foreman.ForemanHostProviderProxy ( provider ) ) ) ; }
Source:
public java.lang.String getDocumentationBaseURL ( ) { return ( ( removeModulName ( com.google.gwt.core.client.GWT.getModuleBaseURL ( ) ) ) + ( getDocumentationBasePath ( ) ) ) + ( org.ovirt.engine.ui.uicommonweb.Configurator.documentationLangPath ) ; }

Target:
public java.lang.String getDocumentationBaseURL ( ) { return ( ( org.ovirt.engine.ui.uicommonweb.Configurator.getRootURL ( ) ) + ( getDocumentationBasePath ( ) ) ) + "/" ; }
Source:
public void setMessage ( java.lang.String msg , com.google.gwt.user.client.ui.Label errorLabel ) { errorLabel.setText ( msg ) ; errorLabel.setVisible ( ( ! ( msg.isEmpty ( ) ) ) ) ; }

Target:
public void setMessage ( java.lang.String msg ) { super . setMessage ( msg ) ; errorMsgLabel.setText ( msg ) ; errorMsgLabel.setVisible ( true ) ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc validateStorageDomain ( java.lang.String sdUUID ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterHookEnable ( java.lang.String glusterCommand , java.lang.String stage , java.lang.String hookName ) ;
Source:
protected boolean validate ( ) { org.ovirt.engine.core.common.businessentities.AuditLog event = auditLogDao.get ( org.ovirt.engine.core.bll.RemoveAuditLogByIdCommand.getParameters ( ) . getAuditLogId ( ) ) ; if ( event == null ) { return failValidation ( EngineMessage.AUDIT_LOG_CANNOT_REMOVE_AUDIT_LOG_NOT_EXIST ) ; } return true ; }

Target:
protected boolean validate ( ) { if ( ( getAuditLog ( ) ) == null ) { return failValidation ( EngineMessage.AUDIT_LOG_CANNOT_REMOVE_AUDIT_LOG_NOT_EXIST ) ; } return true ; }
Source:
private org.ovirt.engine.core.common.businessentities.VmTemplate mockVmTemplate ( ) { org.ovirt.engine.core.common.businessentities.VmTemplate template = new org.ovirt.engine.core.common.businessentities.VmTemplate ( ) ; template.setId ( vmTemplateId ) ; template.setStoragePoolId ( storagePoolId ) ; org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommandTestAbstract.setDiskList ( template ) ; return template ; }

Target:
private org.ovirt.engine.core.common.businessentities.VmTemplate mockVmTemplate ( ) { org.ovirt.engine.core.common.businessentities.VmTemplate template = new org.ovirt.engine.core.common.businessentities.VmTemplate ( ) ; template.setId ( vmTemplateId ) ; template.setStoragePoolId ( storagePoolId ) ; template.setClusterArch ( ArchitectureType.x86_64 ) ; org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommandTestAbstract.setDiskList ( template ) ; return template ; }
Source:
public void storagePoolId ( ) { b.setStoragePoolId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; final org.ovirt.engine.core.compat.Guid n = b.getStoragePoolId ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID , n ) ; }

Target:
public void storagePoolId ( ) { b.setStoragePoolId ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID ) ; final org.ovirt.engine.core.compat.Guid n = b.getStoragePoolId ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.GUID , n ) ; }