auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void statusSupportedForHostInstallation ( ) { org.mockito.Mockito.when ( oldHost.getStatus ( ) ) . thenReturn ( VDSStatus.Maintenance ) ; validator = createValidatorForHostInstallation ( ) ; org.junit.Assert.assertThat ( validator.statusSupportedForHostInstallation ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void statusSupportedForHostInstallation ( ) { org.mockito.Mockito.when ( oldHost.getStatus ( ) ) . thenReturn ( VDSStatus.Maintenance ) ; validator = createValidatorForHostInstallation ( ) ; org.hamcrest.MatcherAssert.assertThat ( validator.statusSupportedForHostInstallation ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult notManagementNetwork ( ) { return org.ovirt.engine.core.utils.NetworkUtils.isManagementNetwork ( network ) ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.NETWORK_CANNOT_REMOVE_MANAGEMENT_NETWORK , java.lang.String.format ( "$NetworkName %s" , network.getName ( ) ) ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
private java.lang.String getNetworkNameReplacement ( ) { return java.lang.String.format ( "$NetworkName %s" , network.getName ( ) ) ; }
Source:
protected void initCustomProperties ( ) { getCustomPropertySheet ( ) . setEntity ( org.ovirt.engine.ui.uicommonweb.models.vms.key_value.KeyValueModel.convertProperties ( getProfile ( ) . getCustomProperties ( ) ) ) ; }

Target:
protected void initCustomProperties ( ) { getCustomPropertySheet ( ) . deserialize ( org.ovirt.engine.ui.uicommonweb.models.vms.key_value.KeyValueModel.convertProperties ( getProfile ( ) . getCustomProperties ( ) ) ) ; }
Source:
public boolean isAutoSuspend ( ) { return this . vmStatic.isAutoSuspend ( ) ; }

Target:
public void setComment ( java.lang.String value ) { this . vmStatic.setComment ( value ) ; }
Source:
public void onUserLoginChange ( org.ovirt.engine.ui.common.auth.UserLoginChangeEvent event ) { if ( ! ( user.isLoggedIn ( ) ) ) { getModel ( ) . EnsureAsyncSearchStopped ( ) ; } }

Target:
public void onUserLoginChange ( org.ovirt.engine.ui.common.auth.UserLoginChangeEvent event ) { if ( ! ( user.isLoggedIn ( ) ) ) { getModel ( ) . ensureAsyncSearchStopped ( ) ; } }
Source:
public void getIdByTypeAndStatusReturnsNullForNonExistingVm ( ) throws java.lang.Exception { org.junit.Assert.assertEquals ( null , dao.getId ( Guid.Empty , SnapshotType.REGULAR , SnapshotStatus.OK ) ) ; }

Target:
public void getIdByTypeAndStatusReturnsNullForNonExistingVm ( ) throws java.lang.Exception { org.junit.Assert.assertNull ( dao.getId ( Guid.Empty , SnapshotType.REGULAR , SnapshotStatus.OK ) ) ; }
Source:
public void testAttachFailDomainTypeIncorrect ( ) { storageDomain.setStorageType ( StorageType.LOCALFS ) ; org.ovirt.engine.core.bll.ValidationResult attachIncorrectTypeResult = validator.validateDomainCanBeAttachedToPool ( ) ; org.junit.Assert.assertFalse ( "Attaching domain with an incorrect type succeeded while it should have failed" , attachIncorrectTypeResult.isValid ( ) ) ; assertFailingMessage ( "Attaching domain with an incorrect type failed with the wrong message" , attachIncorrectTypeResult , VdcBllMessages.ERROR_CANNOT_ATTACH_STORAGE_DOMAIN_STORAGE_TYPE_NOT_MATCH ) ; }

Target:
public void testAttachFailDomainTypeIncorrect ( ) { storageDomain.setStorageType ( StorageType.LOCALFS ) ; org.ovirt.engine.core.bll.ValidationResult attachIncorrectTypeResult = validator.validateDomainCanBeAttachedToPool ( ) ; org.junit.Assert.assertFalse ( "Attaching domain with an incorrect type succeeded while it should have failed" , attachIncorrectTypeResult.isValid ( ) ) ; assertFailingMessage ( "Attaching domain with an incorrect type failed with the wrong message" , attachIncorrectTypeResult , EngineMessage.ERROR_CANNOT_ATTACH_STORAGE_DOMAIN_STORAGE_TYPE_NOT_MATCH ) ; }
Source:
public java.lang.String GetTagIdsAndChildrenIdsByRegExp ( java.lang.String tagNameRegExp ) { return org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . GetTagIdsAndChildrenIdsByRegExp ( tagNameRegExp ) ; }

Target:
public java.lang.String GetTagIdAndChildrenIds ( org.ovirt.engine.core.compat.Guid tagId ) { return org.ovirt.engine.core.bll.TagsDirector.getInstance ( ) . GetTagIdAndChildrenIds ( tagId ) ; }
Source:
protected void handleSpecificCommandActions ( ) { }

Target:
protected java.util.Map < java.lang.String , org.ovirt.engine.core.common.utils.Pair < java.lang.String , java.lang.String > > getExclusiveLocks ( ) { return org.ovirt.engine.core.bll.RestartVdsCommand.createFenceExclusiveLocksMap ( org.ovirt.engine.core.bll.RestartVdsCommand.getVdsId ( ) ) ; }
Source:
public java.lang.String getInitrdUrl ( ) { return vmStatic.getinitrd_url ( ) ; }

Target:
public void setInitrdUrl ( java.lang.String value ) { vmStatic.setInitrdUrl ( value ) ; }
Source:
public void testIsNetworkInSyncWhenNetworkQosIsNull ( ) throws java.lang.Exception { networkQos = null ; org.junit.Assert.assertThat ( createTestedInstanceWithSameNonQosValues ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }

Target:
public void testIsNetworkInSyncWhenIfaceQosIsNull ( ) { iface.setQos ( null ) ; org.hamcrest.MatcherAssert.assertThat ( createTestedInstanceWithSameNonQosValues ( ) . isNetworkInSync ( ) , org.hamcrest.CoreMatchers.is ( true ) ) ; }
Source:
private void initDestStorageDomain ( org.ovirt.engine.core.common.businessentities.StorageType storageType ) { org.ovirt.engine.core.common.businessentities.StorageDomain destDomain = new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ; destDomain.setStorageType ( storageType ) ; destDomain.setStatus ( StorageDomainStatus.Active ) ; org.mockito.Mockito.doReturn ( destDomain ) . when ( command ) . getStorageDomain ( ) ; }

Target:
private void initDestStorageDomain ( org.ovirt.engine.core.common.businessentities.storage.StorageType storageType ) { org.ovirt.engine.core.common.businessentities.StorageDomain destDomain = new org.ovirt.engine.core.common.businessentities.StorageDomain ( ) ; destDomain.setStorageType ( storageType ) ; destDomain.setStatus ( StorageDomainStatus.Active ) ; org.mockito.Mockito.doReturn ( destDomain ) . when ( command ) . getStorageDomain ( ) ; }
Source:
public void addColumn ( com.google.gwt.user.cellview.client.Column < T , ? > column , com.google.gwt.safehtml.shared.SafeHtml headerHtml ) { addColumn ( column , createHeader ( column , headerHtml ) ) ; }

Target:
public void ensureColumnPresent ( com.google.gwt.user.cellview.client.Column < T , ? > column , java.lang.String headerText , boolean present , java.lang.String width ) { ensureColumnPresent ( column , com.google.gwt.safehtml.shared.SafeHtmlUtils.fromString ( headerText ) , present , width ) ; }
Source:
protected void setUpQueryExpectations ( java.lang.String query , java.lang.Object failure ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetAffinityGroupById , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , null , failure ) ; }

Target:
protected void setUpQueryExpectations ( java.lang.String query , java.lang.Object failure ) throws java.lang.Exception { setUpEntityQueryExpectations ( QueryType.GetAffinityGroupById , org.ovirt.engine.core.common.queries.IdQueryParameters.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , null , failure ) ; }
Source:
public void testUpdate ( ) { existingDomain.setstorage_name ( "UpdatedName" ) ; dao.update ( existingDomain ) ; org.ovirt.engine.core.common.businessentities.storage_domain_static after = dao.get ( existingDomain.getId ( ) ) ; org.junit.Assert.assertEquals ( after , existingDomain ) ; }

Target:
public void testUpdate ( ) { existingDomain.setstorage_name ( "UpdatedName" ) ; dao.update ( existingDomain ) ; org.ovirt.engine.core.common.businessentities.StorageDomainStatic after = dao.get ( existingDomain.getId ( ) ) ; org.junit.Assert.assertEquals ( after , existingDomain ) ; }
Source:
public void failCreateMoreNumaNodesThanVirtualCores ( ) { final org.ovirt.engine.core.bll.numa.vm.AddVmNumaNodesCommand command = mockedCommand ( ) ; vm.setNumOfSockets ( 1 ) ; vm.setCpuPerSocket ( 1 ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.VM_NUMA_NODE_MORE_NODES_THAN_CPUS ) ; }

Target:
public void canCreateAsMuchNumaNodesAsVirtualCores ( ) { final org.ovirt.engine.core.bll.numa.vm.AddVmNumaNodesCommand command = mockedCommandWithVmFromDb ( ) ; vm.setNumOfSockets ( 1 ) ; vm.setCpuPerSocket ( 4 ) ; org.assertj.core.api.Assertions.assertThat ( command.canDoAction ( ) ) . isTrue ( ) ; }
Source:
public org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient createClient ( org.ovirt.vdsm.jsonrpc.client.reactors.Reactor reactor , java.nio.channels.Selector selector , java.lang.String hostname , int port ) throws org.ovirt.vdsm.jsonrpc.client.ClientConnectionException { return new org.ovirt.vdsm.jsonrpc.client.reactors.SSLClient ( reactor , selector , hostname , port , createSSLEngine ( true ) ) ; }

Target:
public org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient createClient ( org.ovirt.vdsm.jsonrpc.client.reactors.Reactor reactor , java.nio.channels.Selector selector , java.lang.String hostname , int port ) throws org.ovirt.vdsm.jsonrpc.client.ClientConnectionException { return new org.ovirt.vdsm.jsonrpc.client.reactors.SSLClient ( reactor , selector , hostname , port , this . sslContext ) ; }
Source:
public void setMainTabSelectedItem ( org.ovirt.engine.core.common.businessentities.Disk selectedItem ) { org.ovirt.engine.ui.webadmin.section.main.view.tab.disk.SubTabDiskGeneralView.Driver.driver.edit ( getDetailModel ( ) ) ; formBuilder.showForm ( getDetailModel ( ) ) ; }

Target:
public void setMainTabSelectedItem ( org.ovirt.engine.core.common.businessentities.Disk selectedItem ) { driver.edit ( getDetailModel ( ) ) ; formBuilder.showForm ( getDetailModel ( ) ) ; }
Source:
public void setTemplate ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( template , value ) ) ) { template = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "Template" ) ) ; } }

Target:
public void setTemplate ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( template , value ) ) ) { template = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Template" ) ) ; } }
Source:
public static org.ovirt.engine.core.compat.Guid createGuidFromString ( java.lang.String candidate ) { if ( candidate == null ) { return null ; } return new org.ovirt.engine.core.compat.Guid ( candidate ) ; }

Target:
public static org.ovirt.engine.core.compat.Guid createGuidFromString ( java.lang.String candidate ) { return org.ovirt.engine.core.compat.Guid.createGuidFromStringWithDefault ( candidate , null ) ; }
Source:
public void validateVmMemoryCantStartOnVdsBecauseOfPending ( ) { boolean vmPassedMemoryRequirement = org.ovirt.engine.core.bll.scheduling.SlaValidator.getInstance ( ) . hasPhysMemoryToRunVM ( vds , vm , 65 ) ; org.junit.Assert.assertEquals ( vmPassedMemoryRequirement , false ) ; }

Target:
public void validateVmMemoryCantStartOnVdsBecauseOfPending ( ) { boolean vmPassedMemoryRequirement = org.ovirt.engine.core.bll.scheduling.SlaValidator.getInstance ( ) . hasPhysMemoryToRunVM ( vds , vm , 65 ) ; org.junit.Assert.assertFalse ( vmPassedMemoryRequirement ) ; }
Source:
boolean CanUpdateField ( java.lang.Object obj , java.lang.String fieldName , java.lang.Enum < ? > status ) ;

Target:
boolean canUpdateField ( java.lang.Object obj , java.lang.String fieldName , java.lang.Enum < ? > status ) ;
Source:
protected void proceedProxyReturnValue ( ) { try { super . proceedProxyReturnValue ( ) ; } catch ( org.ovirt.engine.core.vdsbroker.vdsbroker.VDSNetworkException ignored ) { org.ovirt.engine.core.vdsbroker.vdsbroker.PollVDSCommand.log.debug ( "VDSNetworkException was caught and ignored" , ignored ) ; } }

Target:
private void handleException ( org.ovirt.engine.core.vdsbroker.vdsbroker.VDSExceptionBase e , java.lang.String reason ) { setVdsRuntimeError ( e ) ; final java.lang.String msg = java.lang.String.format ( "Failed to poll host %s - %s." , org.ovirt.engine.core.vdsbroker.vdsbroker.PollVDSCommand.getParameters ( ) . getVdsId ( ) , reason ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.PollVDSCommand.log.debug ( msg , e ) ; }
Source:
public void testExecuteQueryWithFilteringLUNsEnabled ( ) { lunsExpected = java.util.Collections.emptyList ( ) ; internalExecuteQuery ( ) ; }

Target:
public void testExecuteQueryWithFilteringLUNsDisabled ( ) { lunsExpected = lunsInput ; internalExecuteQuery ( ) ; }
Source:
public void setCommandStatus ( org.ovirt.engine.core.compat.CommandStatus status ) { cmdEntity.setCommandStatus ( status ) ; }

Target:
public void setCommandStatus ( org.ovirt.engine.core.compat.CommandStatus status ) { childCmdEntity.setCommandStatus ( status ) ; }
Source:
public void shouldSetNumaPinning ( ) { assertTrue ( org.ovirt.engine.core.bll.numa.vm.NumaValidator.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) . isValid ( ) ) ; }

Target:
public void shouldDetectDuplicateNodeIndex ( ) { vmNumaNodes.get ( 0 ) . setIndex ( 1 ) ; vmNumaNodes.get ( 1 ) . setIndex ( 1 ) ; assertValidationFailure ( org.ovirt.engine.core.bll.numa.vm.NumaValidator.checkVmNumaNodesIntegrity ( vm , vm.getvNumaNodeList ( ) ) , EngineMessage.VM_NUMA_NODE_INDEX_DUPLICATE ) ; }
Source:
public void parseLunReturnsUnknownForNoField ( ) { java.util.Map < java.lang.String , java.lang.Object > xlun = new java.util.HashMap < > ( ) ; org.ovirt.engine.core.common.businessentities.storage.LUNs lun = org.ovirt.engine.core.vdsbroker.vdsbroker.GetDeviceListVDSCommand.parseLun ( xlun , Version.v4_1 ) ; org.junit.Assert.assertEquals ( StorageType.UNKNOWN , lun.getLunType ( ) ) ; }

Target:
public void parseLunReturnsUnknownForNoField ( ) { java.util.Map < java.lang.String , java.lang.Object > xlun = new java.util.HashMap < > ( ) ; org.ovirt.engine.core.common.businessentities.storage.LUNs lun = org.ovirt.engine.core.vdsbroker.vdsbroker.GetDeviceListVDSCommand.parseLun ( xlun , Version.v4_1 ) ; org.junit.jupiter.api.Assertions.assertEquals ( StorageType.UNKNOWN , lun.getLunType ( ) ) ; }
Source:
protected void EndWithFailure ( ) { updateOldImageActive ( SnapshotType.ACTIVE , true ) ; org.ovirt.engine.core.bll.TryBackToSnapshotCommand.UndoActionOnSourceAndDestination ( ) ; org.ovirt.engine.core.bll.TryBackToSnapshotCommand.setSucceeded ( true ) ; }

Target:
protected void endWithFailure ( ) { updateOldImageActive ( SnapshotType.ACTIVE , true ) ; org.ovirt.engine.core.bll.TryBackToSnapshotCommand.UndoActionOnSourceAndDestination ( ) ; org.ovirt.engine.core.bll.TryBackToSnapshotCommand.setSucceeded ( true ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { getDetailModel ( ) . ExecuteCommand ( getDetailModel ( ) . getEditPolicyCommand ( ) ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { getDetailModel ( ) . getEditPolicyCommand ( ) . Execute ( java.lang.Boolean.TRUE ) ; }
Source:
public void checkExecuteCommandWithEmptyVdsId ( ) { parameters.setStorageServerConnection ( NFSConnection ) ; parameters.setVdsId ( Guid.Empty ) ; command.executeCommand ( ) ; org.mockito.Mockito.verify ( command , org.mockito.Mockito.never ( ) ) . disconnectStorage ( ) ; }

Target:
public void checkExecuteCommandWithNullVdsId ( ) { parameters.setStorageServerConnection ( org.ovirt.engine.core.bll.storage.connection.RemoveStorageServerConnectionCommandTest.NFSConnection ) ; parameters.setVdsId ( null ) ; command.executeCommand ( ) ; org.mockito.Mockito.verify ( command , org.mockito.Mockito.never ( ) ) . disconnectStorage ( ) ; }
Source:
private final org.ovirt.engine.core.common.interfaces.IVdcUser initUser ( ) { return org.ovirt.engine.core.bll.session.SessionDataContainer.getInstance ( ) . addUserToThreadContext ( parameters.getSessionId ( ) ) ; }

Target:
private final org.ovirt.engine.core.common.interfaces.IVdcUser initUser ( ) { return org.ovirt.engine.core.bll.session.SessionDataContainer.getInstance ( ) . addUserToThreadContext ( parameters.getSessionId ( ) , parameters.getRefresh ( ) ) ; }
Source:
public void validateFailureOnMovingLunDisk ( ) { initializeCommand ( ImageOperation.Move , new org.ovirt.engine.core.common.businessentities.storage.LunDisk ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_NOT_SUPPORTED_DISK_STORAGE_TYPE ) ; }

Target:
public void validateFailureOnCopyingCinderDisk ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.CinderDisk ( ) ) ; command.getParameters ( ) . setOperation ( ImageOperation.Copy ) ; command.init ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_NOT_SUPPORTED_DISK_STORAGE_TYPE ) ; }
Source:
public void copyDataTo ( ovirt_engine_dwh.aggregationtodaily_3_4.AggregationToDaily.dc_aggregate_dateStruct other ) { other.var_name = this . var_name ; other.var_value = this . var_value ; other.var_datetime = this . var_datetime ; }

Target:
public void copyKeysDataTo ( ovirt_engine_dwh.aggregationtodaily_3_4.AggregationToDaily.row11Struct other ) { other.var_name = this . var_name ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData importVmData ) { org.ovirt.engine.core.common.businessentities.ArchitectureType clusterArch = importVmData.getVm ( ) . getClusterArch ( ) ; return java.lang.String.valueOf ( clusterArch ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.vms.register.RegisterVmData registerVmData ) { org.ovirt.engine.core.common.businessentities.ArchitectureType clusterArch = registerVmData.getVm ( ) . getClusterArch ( ) ; return java.lang.String.valueOf ( clusterArch ) ; }
Source:
private void refreshHostStorage ( org.ovirt.engine.core.compat.Guid hostId ) { getBackendCollection ( VdcQueryType.GetDeviceList , new org.ovirt.engine.core.common.queries.GetDeviceListQueryParameters ( hostId , org.ovirt.engine.core.common.businessentities.StorageType.ISCSI ) ) ; }

Target:
private void refreshHostStorage ( org.ovirt.engine.core.compat.Guid hostId ) { getBackendCollection ( VdcQueryType.GetDeviceList , new org.ovirt.engine.core.common.queries.GetDeviceListQueryParameters ( hostId , org.ovirt.engine.core.common.businessentities.storage.StorageType.ISCSI ) ) ; }
Source:
public void setShouldBeEndedByParent ( boolean shouldBeEndedByParent ) { this . shouldBeEndedByParent = shouldBeEndedByParent ; }

Target:
public void setEndProcedure ( org.ovirt.engine.core.common.action.VdcActionParametersBase.EndProcedure endProcedure ) { this . endProcedure = endProcedure ; }
Source:
public void setPriority ( int value ) { vmStatic.setpriority ( value ) ; }

Target:
public java.lang.String getIsoPath ( ) { return vmStatic.getIsoPath ( ) ; }
Source:
public boolean Match ( org.ovirt.engine.core.common.businessentities.storage_domains source ) { return name.equals ( source.getstorage_name ( ) ) ; }

Target:
public boolean Match ( org.ovirt.engine.core.common.businessentities.StorageDomain source ) { return name.equals ( source.getStorageName ( ) ) ; }
Source:
public void nullNetworkWhenNoPortMirroring ( ) throws java.lang.Exception { portMirroringTest ( ValidationResult.VALID , null , false ) ; }

Target:
public void nullNetworkWhenNoPortMirroring ( ) throws java.lang.Exception { portMirroringTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) , null , false ) ; }
Source:
public boolean getHasVdssForSpmSelection ( ) { return ( GetPrioritizedVdsInPool ( ) . size ( ) ) > 0 ; }

Target:
public boolean getHasVdssForSpmSelection ( ) { return ( getPrioritizedVdsInPool ( ) . size ( ) ) > 0 ; }
Source:
public void checkValidIpConfigurationNoneBootProtocol ( ) { initIpConfigurationDetails ( Ipv4BootProtocol.NONE , false , false ) ; org.ovirt.engine.core.bll.ValidationResult actual = underTest.validateNetworkAttachmentIpConfiguration ( networkAttachments ) ; org.junit.Assert.assertEquals ( ValidationResult.VALID , actual ) ; }

Target:
public void checkMissingPrimaryIpv6Address ( ) { initIpConfiguration ( ) ; initIpv4ConfigurationDetails ( Ipv4BootProtocol.DHCP , false , false ) ; org.junit.Assert.assertThat ( underTest.validateNetworkAttachmentIpConfiguration ( networkAttachments ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void addToHistoryOneLimit ( ) { org.junit.Assert.assertEquals ( java.util.Collections.singletonList ( 13 ) , statistics.addToHistory ( java.util.Arrays.asList ( 9 , 10 , 11 , 12 ) , 13 , 1 ) ) ; }

Target:
public void addToHistoryOneLimit ( ) { org.junit.jupiter.api.Assertions.assertEquals ( java.util.Collections.singletonList ( 13 ) , statistics.addToHistory ( java.util.Arrays.asList ( 9 , 10 , 11 , 12 ) , 13 , 1 ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.HostNetworkQos createHostNetworkQos ( int outAverageRealtime , int outAverageUpperlimit , int outAverageLinkshare ) { org.ovirt.engine.core.common.businessentities.network.HostNetworkQos qos = new org.ovirt.engine.core.common.businessentities.network.HostNetworkQos ( ) ; qos.setOutAverageRealtime ( outAverageRealtime ) ; qos.setOutAverageUpperlimit ( outAverageUpperlimit ) ; qos.setOutAverageLinkshare ( outAverageLinkshare ) ; return qos ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.AnonymousHostNetworkQos createHostNetworkQos ( int outAverageRealtime , int outAverageUpperlimit , int outAverageLinkshare ) { org.ovirt.engine.core.common.businessentities.network.AnonymousHostNetworkQos qos = new org.ovirt.engine.core.common.businessentities.network.AnonymousHostNetworkQos ( ) ; qos.setOutAverageRealtime ( outAverageRealtime ) ; qos.setOutAverageUpperlimit ( outAverageUpperlimit ) ; qos.setOutAverageLinkshare ( outAverageLinkshare ) ; return qos ; }
Source:
protected org.ovirt.engine.api.model.GraphicsConsole addParents ( org.ovirt.engine.api.model.GraphicsConsole model ) { model.setVm ( new org.ovirt.engine.api.model.VM ( ) ) ; model.getVm ( ) . setId ( getGuid ( ) . toString ( ) ) ; return model ; }

Target:
protected org.ovirt.engine.api.model.GraphicsConsole addParents ( org.ovirt.engine.api.model.GraphicsConsole model ) { model.setVm ( new org.ovirt.engine.api.model.Vm ( ) ) ; model.getVm ( ) . setId ( getGuid ( ) . toString ( ) ) ; return model ; }
Source:
public void setGuestID ( java.lang.String value ) { }

Target:
public void setGuestID ( java.lang.String value ) { guestID = value ; }
Source:
protected void setUpGetEntityExpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( VdcQueryType.GetTasksStatusesByTasksIDs , org.ovirt.engine.core.common.queries.GetTasksStatusesByTasksIDsParameters.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , getTaskStatuses ( ) ) ; }

Target:
protected void setUpGetEntityExpectations ( ) throws java.lang.Exception { setUpGetEntityExpectations ( QueryType.GetTasksStatusesByTasksIDs , org.ovirt.engine.core.common.queries.GetTasksStatusesByTasksIDsParameters.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , getTaskStatuses ( ) ) ; }
Source:
public static void addDiskToVmIfNotExists ( org.ovirt.engine.core.common.businessentities.BaseDisk disk , org.ovirt.engine.core.compat.Guid vmId ) { if ( ! ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getBaseDiskDao ( ) . exists ( disk.getId ( ) ) ) ) { org.ovirt.engine.core.bll.ImagesHandler.addDiskToVm ( disk , vmId ) ; } }

Target:
public static void addDiskToVmIfNotExists ( org.ovirt.engine.core.common.businessentities.storage.BaseDisk disk , org.ovirt.engine.core.compat.Guid vmId ) { if ( ! ( org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getBaseDiskDao ( ) . exists ( disk.getId ( ) ) ) ) { org.ovirt.engine.core.bll.ImagesHandler.addDiskToVm ( disk , vmId ) ; } }
Source:
public void testGetFilteredByPermissionsForUnprivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.profiles.CpuProfile > result = dao.getAllForCluster ( FixturesTool.CLUSTER_RHEL6_ISCSI , org.ovirt.engine.core.dao.profiles.UNPRIVILEGED_USER_ID , true , ActionGroup.ASSIGN_CPU_PROFILE ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetFilteredByPermissionsForUnprivilegedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.profiles.CpuProfile > result = dao.getAllForCluster ( FixturesTool.CLUSTER_RHEL6_ISCSI , org.ovirt.engine.core.dao.profiles.UNPRIVILEGED_USER_ID , true , ActionGroup.ASSIGN_CPU_PROFILE ) ; org.junit.jupiter.api.Assertions.assertTrue ( result.isEmpty ( ) ) ; }
Source:
protected void auditLog ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase auditLogable , org.ovirt.engine.core.common.AuditLogType logType ) { org.ovirt.engine.core.common.businessentities.AuditLog al = new org.ovirt.engine.core.common.businessentities.AuditLog ( ) ; al.setlog_type ( logType ) ; mockAuditLogDao.save ( al ) ; }

Target:
protected void auditLog ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase auditLogable , org.ovirt.engine.core.common.AuditLogType logType ) { org.ovirt.engine.core.common.businessentities.AuditLog al = new org.ovirt.engine.core.common.businessentities.AuditLog ( ) ; al.setLogType ( logType ) ; mockAuditLogDao.save ( al ) ; }
Source:
public void testGetMessageDefaultLocale ( ) { java.lang.String testKey = "obrand.common.main_header_label" ; java.lang.String result = testManager.getMessage ( testKey ) ; org.junit.Assert.assertEquals ( "The result should be 'Main header'" , "Main header" , result ) ; }

Target:
public void testGetMessageDefaultLocale ( ) { java.lang.String testKey = "obrand.common.main_header_label" ; java.lang.String result = testManager.getMessage ( testKey ) ; org.junit.jupiter.api.Assertions.assertEquals ( "Main header" , result , "The result should be 'Main header'" ) ; }
Source:
public boolean isEnabled ( ) { for ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel clusterNetworkModel : getNetworksTableItems ( ) ) { if ( clusterNetworkModel.getIsChangable ( ) ) { return true ; } } return false ; }

Target:
public boolean isEnabled ( ) { for ( org.ovirt.engine.ui.uicommonweb.models.clusters.ClusterNetworkModel clusterNetworkModel : getNetworksTableItems ( ) ) { if ( canEditRequired ( clusterNetworkModel ) ) { return true ; } } return false ; }
Source:
private java.util.List < java.lang.String > allocateNewMacsWithoutLocking ( int numberOfMacs ) { java.util.List < java.lang.Long > macs = macsStorage.allocateAvailableMacs ( numberOfMacs ) ; java.util.Collections.sort ( macs ) ; logWhenMacPoolIsEmpty ( ) ; return org.ovirt.engine.core.utils.MacAddressRangeUtils.macAddressesToStrings ( macs ) ; }

Target:
public java.util.List < java.lang.String > allocateMacAddresses ( int numberOfAddresses ) { java.util.List < java.lang.Long > macs = macsStorage.allocateAvailableMacs ( numberOfAddresses ) ; java.util.Collections.sort ( macs ) ; logWhenMacPoolIsEmpty ( ) ; return org.ovirt.engine.core.utils.MacAddressRangeUtils.macAddressesToStrings ( macs ) ; }
Source:
public void setAttachedTagsToEntities ( java.util.Map < org.ovirt.engine.core.compat.Guid , java.lang.Boolean > value ) { if ( ( attachedTagsToEntities ) != value ) { attachedTagsToEntities = value ; AttachedTagsToEntitiesChanged ( ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "AttachedTagsToEntities" ) ) ; } }

Target:
public void setAttachedTagsToEntities ( java.util.Map < org.ovirt.engine.core.compat.Guid , java.lang.Boolean > value ) { if ( ( attachedTagsToEntities ) != value ) { attachedTagsToEntities = value ; attachedTagsToEntitiesChanged ( ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "AttachedTagsToEntities" ) ) ; } }
Source:
private org.ovirt.engine.core.common.queries.VdcQueryReturnValue getCACertificate ( ) { return backend.runInternalQuery ( VdcQueryType.GetCACertificate , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ; }

Target:
private org.ovirt.engine.core.common.queries.VdcQueryReturnValue getCACertificate ( ) { return backend.runInternalQuery ( QueryType.GetCACertificate , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ; }
Source:
public java.lang.String gethibernation_vol_handle ( ) { return this . mVmDynamic.gethibernation_vol_handle ( ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VmType getVmType ( ) { return this . vmStatic.getvm_type ( ) ; }
Source:
public void enableCifs ( ) { accessProtocols.add ( AccessProtocol.CIFS ) ; setOption ( GlusterConstants.OPTION_CIFS_DISABLE , GlusterConstants.OFF ) ; }

Target:
public void enableCifs ( ) { accessProtocols.add ( AccessProtocol.CIFS ) ; setOption ( GlusterConstants.OPTION_USER_CIFS , GlusterConstants.ON ) ; }
Source:
java.lang.String getRefreshRateItemKey ( ) { return org.ovirt.engine.ui.common.widget.refresh.AbstractRefreshManager.GRID_REFRESH_RATE_KEY ; }

Target:
java.lang.String getRefreshRateItemKey ( ) { return ( ( org.ovirt.engine.ui.common.widget.refresh.AbstractRefreshManager.GRID_REFRESH_RATE_PREFIX ) + "_" ) + ( controller.getId ( ) ) ; }
Source:
private int getActiveUsersStat ( ) { return org.ovirt.engine.core.bll.GetSystemStatisticsQuery.getDbFacade ( ) . getSystemStatisticsValue ( org.ovirt.engine.core.bll.GetSystemStatisticsQuery.USER_ENTITY_NAME , org.ovirt.engine.core.bll.GetSystemStatisticsQuery.USER_ACTIVE_STATUS ) ; }

Target:
private int getActiveUsersStat ( ) { return systemStatisticsDao.getSystemStatisticsValue ( org.ovirt.engine.core.bll.GetSystemStatisticsQuery.USER_ENTITY_NAME , org.ovirt.engine.core.bll.GetSystemStatisticsQuery.USER_ACTIVE_STATUS ) ; }
Source:
public javax.ws.rs.core.Response performRemove ( java.lang.String id ) { return performAction ( VdcActionType.RemoveVm , new org.ovirt.engine.core.common.action.RemoveVmParameters ( asGuid ( id ) , false ) ) ; }

Target:
private void validateIconParameters ( org.ovirt.engine.api.model.VM vm ) { if ( ! ( org.ovirt.engine.api.restapi.util.IconHelper.validateIconParameters ( vm ) ) ) { throw new org.ovirt.engine.api.restapi.resource.BaseBackendResource.WebFaultException ( null , localize ( Messages.INVALID_ICON_PARAMETERS ) , Response.Status.BAD_REQUEST ) ; } }
Source:
public static ExternalSubnet.IpVersion map ( org.ovirt.engine.api.restapi.types.IpVersion model ) { switch ( model ) { case V4 : return ExternalSubnet.IpVersion.IPV4 ; case V6 : return ExternalSubnet.IpVersion.IPV6 ; default : throw new java.lang.IllegalArgumentException ( ( ( "Unknown IP version \"" + model ) + "\"" ) ) ; } }

Target:
public static org.ovirt.engine.api.model.IpVersion map ( org.ovirt.engine.api.model.IpVersion model ) { switch ( model ) { case V4 : return org.ovirt.engine.api.model.IpVersion.IPV4 ; case V6 : return org.ovirt.engine.api.model.IpVersion.IPV6 ; default : throw new java.lang.IllegalArgumentException ( ( ( "Unknown IP version \"" + model ) + "\"" ) ) ; } }
Source:
public boolean connectStorageToDomainByVdsId ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.compat.Guid vdsId ) { org.ovirt.engine.core.common.action.StorageDomainParametersBase parameters = new org.ovirt.engine.core.common.action.StorageDomainParametersBase ( storageDomain.getId ( ) ) ; parameters.setVdsId ( vdsId ) ; org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( VdcActionType.SyncLunsInfoForBlockStorageDomain , parameters ) ; return true ; }

Target:
public boolean syncDomainInfo ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , org.ovirt.engine.core.compat.Guid vdsId ) { org.ovirt.engine.core.common.action.StorageDomainParametersBase parameters = new org.ovirt.engine.core.common.action.StorageDomainParametersBase ( storageDomain.getId ( ) ) ; parameters.setVdsId ( vdsId ) ; return org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( VdcActionType.SyncLunsInfoForBlockStorageDomain , parameters ) . getSucceeded ( ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult managementNetworkUnset ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.ACTION_TYPE_FAILED_MANAGEMENT_NETWORK_UNSET ) . when ( ( ( oldNetworkCluster.isManagement ( ) ) && ( ! ( networkCluster.isManagement ( ) ) ) ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult managementNetworkUnset ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.ACTION_TYPE_FAILED_MANAGEMENT_NETWORK_UNSET ) . when ( ( ( oldNetworkCluster.isManagement ( ) ) && ( ! ( networkCluster.isManagement ( ) ) ) ) ) ; }
Source:
public void validateFailsWithEmptyBricksList ( ) { cmd = org.mockito.Mockito.spy ( new org.ovirt.engine.core.bll.gluster.CommitRemoveGlusterVolumeBricksCommand ( new org.ovirt.engine.core.common.action.gluster.GlusterVolumeRemoveBricksParameters ( volumeWithoutRemoveBricksTask , new java.util.ArrayList < > ( ) ) , null ) ) ; prepareMocks ( cmd ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }

Target:
public void validateFailsWithInvalidBricks ( ) { cmd.setGlusterVolumeId ( volumeWithRemoveBricksTask ) ; cmd.getParameters ( ) . setBricks ( getInvalidBricks ( volumeWithRemoveBricksTask ) ) ; org.junit.Assert.assertFalse ( cmd.validate ( ) ) ; }
Source:
public void testInterfaceIsValidSlaveWhenInterfaceIsVlan ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface vdsNetworkInterface = createVdsNetworkInterfaceWithName ( ) ; vdsNetworkInterface.setVlanId ( 1 ) ; org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.validator.HostInterfaceValidator ( vdsNetworkInterface ) . interfaceIsValidSlave ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NETWORK_INTERFACE_BOND_OR_VLAN_CANNOT_BE_SLAVE ) ) ; }

Target:
public void testNetworkCanBeAttached ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface vdsNetworkInterface = createVdsNetworkInterfaceWithName ( ) ; java.lang.String networkName = "networkName" ; org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.validator.HostInterfaceValidator ( vdsNetworkInterface ) . networkCanBeAttached ( networkName ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.String ) ( source ) ) : "" ; }

Target:
public void getEngineSshPublicKey ( org.ovirt.engine.ui.frontend.AsyncQuery < java.lang.String > aQuery ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.StringConverter ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetEngineSSHPublicKey , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) , aQuery ) ; }
Source:
public static java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getGraphicsDevices ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.dao.getVmDeviceByVmIdAndType ( vmId , VmDeviceGeneralType.GRAPHICS ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getRngDevices ( org.ovirt.engine.core.compat.Guid vmId ) { return vmDeviceDao.getVmDeviceByVmIdAndType ( vmId , VmDeviceGeneralType.RNG ) ; }
Source:
public void testEmptyGetAllForDiskProfiles ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > result = dao.getAllForDiskProfiles ( java.util.Collections.singletonList ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testEmptyGetAllForDiskProfiles ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > result = dao.getAllForDiskProfiles ( java.util.Collections.singletonList ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertTrue ( result.isEmpty ( ) ) ; }
Source:
protected org.ovirt.engine.core.common.asynctasks.AsyncTaskType getTaskType ( ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
protected org.ovirt.engine.core.common.action.LockProperties applyLockProperties ( org.ovirt.engine.core.common.action.LockProperties lockProperties ) { return lockProperties ; }
Source:
public org.ovirt.engine.ui.common.widget.form.FormItem withDefaultValue ( java.lang.String defaultValue , org.ovirt.engine.ui.common.widget.form.FormItem.DefaultValueCondition defaultValueCondition ) { this . defaultValueLabel = new org.ovirt.engine.ui.common.widget.label.TextBoxLabel ( defaultValue ) ; this . defaultValueCondition = defaultValueCondition ; return this ; }

Target:
public org.ovirt.engine.ui.common.widget.form.FormItem withDefaultValue ( java.lang.String defaultValue , org.ovirt.engine.ui.common.widget.form.FormItem.DefaultValueCondition defaultValueCondition ) { this . defaultValueLabel = new org.ovirt.engine.ui.common.widget.label.StringValueLabel ( defaultValue ) ; this . defaultValueCondition = defaultValueCondition ; return this ; }
Source:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; if ( ( getEntity ( ) ) != null ) { getSearchCommand ( ) . execute ( ) ; updateIsDiskHotPlugAvailable ( ) ; updateLiveStorageMigrationEnabled ( ) ; } updateActionAvailability ( ) ; }

Target:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; if ( ( getEntity ( ) ) != null ) { updateDataCenterVersion ( ) ; getSearchCommand ( ) . execute ( ) ; updateIsDiskHotPlugAvailable ( ) ; updateLiveStorageMigrationEnabled ( ) ; } updateActionAvailability ( ) ; }
Source:
public void execute ( ) { lockInteractionManager.showLoadingIndicator ( ) ; getLoginModel ( ) . AutoLogin ( vdcUser ) ; }

Target:
public void execute ( ) { lockInteractionManager.showLoadingIndicator ( ) ; getLoginModel ( ) . autoLogin ( vdcUser ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDSGroup > getAll ( ) { return getAll ( null , false ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.Cluster > getAll ( ) { return getAll ( null , false ) ; }
Source:
public void nonInternalInactiveAllowed ( ) { testExecution ( StorageDomainStatus.InActive ) ; canDoActionSucceeds ( ) ; noIllegalStatusMessage ( ) ; }

Target:
public void internalActiveDisallowed ( ) { testInternalExecution ( StorageDomainStatus.Active ) ; testActionDisallowed ( ) ; }
Source:
public void setSearchString ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( searchString , value ) ) ) { searchString = value ; pagingSearchString = null ; searchStringChanged ( ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "SearchString" ) ) ; } }

Target:
public void setSearchString ( java.lang.String value ) { if ( ! ( java.util.Objects.equals ( searchString , value ) ) ) { searchString = value ; pagingSearchString = null ; searchStringChanged ( ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "SearchString" ) ) ; } }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.ExternalComputeResource > getProviderComputeResource ( org.ovirt.engine.core.common.businessentities.Provider hostProvider ) { org.ovirt.engine.core.bll.host.provider.HostProviderProxy proxy = org.ovirt.engine.core.bll.provider.ProviderProxyFactory.getInstance ( ) . create ( hostProvider ) ; return proxy.getComputeResources ( ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.ExternalComputeResource > getProviderComputeResource ( org.ovirt.engine.core.common.businessentities.Provider hostProvider ) { org.ovirt.engine.core.bll.host.provider.HostProviderProxy proxy = providerProxyFactory.create ( hostProvider ) ; return proxy.getComputeResources ( ) ; }
Source:
private static void failureEventHandler ( java.util.ArrayList < org.ovirt.engine.ui.frontend.Message > messages ) { org.ovirt.engine.ui.frontend.Frontend.frontendFailureEvent.raise ( org.ovirt.engine.ui.frontend.Frontend.class , new org.ovirt.engine.ui.frontend.FrontendFailureEventArgs ( messages ) ) ; }

Target:
public static org.ovirt.engine.ui.frontend.FrontendLoginHandler getLoginHandler ( ) { return org.ovirt.engine.ui.frontend.Frontend.loginHandler ; }
Source:
public java.util.List < org.ovirt.engine.core.common.businessentities.CommandEntity > getCommandsWithCallbackEnabled ( ) { return getCommands ( true ) ; }

Target:
public void updateCommandData ( final org.ovirt.engine.core.compat.Guid commandId , final java.util.Map < java.lang.String , java.io.Serializable > data ) { commandsRepository.updateCommandData ( commandId , data ) ; }
Source:
public java.lang.String getMetadataDevice ( ) { return getStorageStaticData ( ) . getMetadataDevice ( ) ; }

Target:
public java.lang.String getFirstMetadataDevice ( ) { return getStorageStaticData ( ) . getFirstMetadataDevice ( ) ; }
Source:
public void calculateNetworkImplementationDetailsManagedNetwork ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface = createNetworkDevice ( ) ; calculateNetworkImplementationDetailsAndAssertManaged ( iface , true , createNetworksMap ( iface.getNetworkName ( ) , iface.isBridged ( ) , iface.getMtu ( ) , iface.getVlanId ( ) ) ) ; }

Target:
public void calculateNetworkImplementationDetailsManagedNetwork ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface = createNetworkDevice ( ) ; calculateNetworkImplementationDetailsAndAssertManaged ( iface , true , createNetwork ( iface.getNetworkName ( ) , iface.isBridged ( ) , iface.getMtu ( ) , iface.getVlanId ( ) ) ) ; }
Source:
public void setBrandingManager ( final org.ovirt.engine.ui.frontend.server.gwt.branding.BrandingManager manager ) { brandingManager = manager ; }

Target:
public void init ( ) { init ( new org.codehaus.jackson.map.ObjectMapper ( ) , new org.ovirt.engine.ui.frontend.server.gwt.branding.BrandingManager ( ) ) ; }
Source:
public void testGetAllForConnectionWithInvalidConnection ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllForConnection ( org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextString ( 10 ) ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForConnectionWithInvalidConnection ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllForConnection ( org.ovirt.engine.core.utils.RandomUtils.instance ( ) . nextString ( 10 ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( result.isEmpty ( ) ) ; }
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.tags > getTagsAttachedToObject ( ) { return getTagDao ( ) . getAllForVm ( org.ovirt.engine.core.bll.VmCommand.getParameters ( ) . getVmId ( ) . toString ( ) ) ; }

Target:
protected boolean canPerformDiskHotPlug ( org.ovirt.engine.core.common.businessentities.Disk disk ) { return ( isHotPlugSupported ( ) ) && ( isDiskSupportedForPlugUnPlug ( disk ) ) ; }
Source:
protected void onActionExecuted ( ) { sourceListModel.setWindow ( null ) ; sourceListModel.search ( ) ; }

Target:
public void execute ( ) { sourceListModel.setWindow ( null ) ; sourceListModel.search ( ) ; }
Source:
public void numOfVfsValidZero ( ) { numOfVfsInRangeTest ( 0 , org.ovirt.engine.core.bll.validator.VfsConfigValidatorTest.NUM_OF_VFS ) ; org.junit.Assert.assertThat ( validator.nicSriovEnabled ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void numOfVfsValidLessThanMax ( ) { numOfVfsInRangeTest ( org.ovirt.engine.core.bll.validator.VfsConfigValidatorTest.NUM_OF_VFS , ( ( org.ovirt.engine.core.bll.validator.VfsConfigValidatorTest.NUM_OF_VFS ) + 1 ) ) ; org.hamcrest.MatcherAssert.assertThat ( validator.nicSriovEnabled ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
protected void setUpQueryExpectations ( java.lang.String query ) throws java.lang.Exception { assertEquals ( "" , query ) ; setUpGetEntityExpectations ( true ) ; }

Target:
protected void setUpQueryExpectations ( java.lang.String query ) throws java.lang.Exception { org.junit.Assert.assertEquals ( "" , query ) ; setUpGetEntityExpectations ( true ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getStorageDomainDao ( ) ; existingDomain = dao.get ( org.ovirt.engine.core.dao.StorageDomainDaoTest.EXISTING_DOMAIN_ID ) ; }

Target:
public void testGetMasterStorageDomainIdForPool ( ) { org.ovirt.engine.core.compat.Guid result = dao.getMasterStorageDomainIdForPool ( FixturesTool.DATA_CENTER ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( FixturesTool.STORAGE_DOAMIN_SCALE_SD5 , result ) ; }
Source:
public org.ovirt.engine.core.common.utils.VmDeviceType getDisplayDevice ( int osId , org.ovirt.engine.core.compat.Version version , org.ovirt.engine.core.common.businessentities.DisplayType displayType ) ;

Target:
public boolean isBalloonEnabled ( int osId , org.ovirt.engine.core.compat.Version version ) ;
Source:
private void UpdateItemsAvailability ( ) { if ( ( getItems ( ) ) == null ) { return ; } behavior.UpdateItemsAvailability ( ) ; }

Target:
private void updateItemsAvailability ( ) { if ( ( getItems ( ) ) == null ) { return ; } behavior.updateItemsAvailability ( ) ; }
Source:
public void clearErrorMessage ( ) { setErrorMessageHtml ( null ) ; }

Target:
public void clearErrorMessage ( ) { setErrorMessageHtml ( null ) ; tooltipPanel.hide ( ) ; }
Source:
public void setCtrlAltDeleteRemapHotkey ( java.lang.String hotkey ) { remapCtrlAltDeleteSpice.setLabel ( messages.remapCtrlAltDelete ( hotkey ) ) ; remapCtrlAltDeleteVnc.setLabel ( messages.remapCtrlAltDelete ( hotkey ) ) ; }

Target:
public void setSpicePluginImplEnabled ( boolean enabled , java.lang.String reason ) { spicePluginImplRadioButton.setEnabled ( enabled ) ; if ( ! enabled ) { spicePluginImplRadioButtonTooltip.setText ( reason ) ; } }
Source:
public synchronized boolean EntityHasTasks ( org.ovirt.engine.core.compat.Guid id ) { for ( org.ovirt.engine.core.bll.SPMAsyncTask task : _tasks.values ( ) ) { if ( isCurrentTaskLookedFor ( id , task ) ) { return true ; } } return false ; }

Target:
public synchronized boolean entityHasTasks ( org.ovirt.engine.core.compat.Guid id ) { for ( org.ovirt.engine.core.bll.SPMAsyncTask task : _tasks.values ( ) ) { if ( isCurrentTaskLookedFor ( id , task ) ) { return true ; } } return false ; }
Source:
public void setPrincipal ( java.lang.String sessionId , java.lang.String principal ) { setData ( sessionId , org.ovirt.engine.core.bll.aaa.SessionDataContainer.PRINCIPAL_PARAMETER_NAME , principal ) ; }

Target:
public java.lang.String getPrincipalName ( java.lang.String sessionId ) { java.lang.String principal = null ; org.ovirt.engine.api.extensions.ExtMap authRecord = getAuthRecord ( sessionId ) ; if ( authRecord != null ) { principal = authRecord.< java.lang.String > get ( Authn.AuthRecord.PRINCIPAL ) ; } return principal ; }
Source:
public void setused_disk_size ( java.lang.Integer value ) { getStorageDynamicData ( ) . setused_disk_size ( value ) ; UpdateTotalDiskSize ( ) ; }

Target:
public void setUsedDiskSize ( java.lang.Integer usedDiskSize ) { getStorageDynamicData ( ) . setused_disk_size ( usedDiskSize ) ; UpdateTotalDiskSize ( ) ; }