auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { setItems ( new org.ovirt.engine.ui.frontend.INewAsyncCallback ( ) { @ java.lang.Override public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { doInit ( ) ; } } , externalVms ) ; }

Target:
public void onSuccess ( org.ovirt.engine.core.common.businessentities.StoragePool returnValue ) { setItems ( new org.ovirt.engine.ui.frontend.AsyncCallback < org.ovirt.engine.core.common.queries.VdcQueryReturnValue > ( ) { @ java.lang.Override public void onSuccess ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue returnValue ) { doInit ( ) ; } } , externalVms ) ; }
Source:
public void testGetTreeForEntityWithRoleTypeFilteredWithNoPermissions ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Permissions > result = dao.getTreeForEntity ( org.ovirt.engine.core.dao.PermissionDAOTest.STORAGE_ENTITY_ID , VdcObjectType.Storage , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_SESSION_ID , true ) ; org.ovirt.engine.core.dao.PermissionDAOTest.assertInvalidGetPermissionList ( result ) ; }

Target:
public void testGetTreeForEntityWithRoleTypeFilteredWithNoPermissions ( ) { org.junit.Assert.assertNotNull ( unprivilegedUserSession ) ; java.util.List < org.ovirt.engine.core.common.businessentities.Permissions > result = dao.getTreeForEntity ( org.ovirt.engine.core.dao.PermissionDAOTest.STORAGE_ENTITY_ID , VdcObjectType.Storage , unprivilegedUserSession.getId ( ) , true ) ; org.ovirt.engine.core.dao.PermissionDAOTest.assertInvalidGetPermissionList ( result ) ; }
Source:
public com.google.gwt.resources.client.ImageResource getValue ( java.lang.Object object ) { return new org.ovirt.engine.ui.webadmin.widget.table.column.VmTypeColumn ( ) . getValue ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData ) ( object ) ) . getVm ( ) ) ; }

Target:
public com.google.gwt.safehtml.shared.SafeHtml getValue ( java.lang.Object object ) { return org.ovirt.engine.ui.webadmin.widget.table.column.VmTypeColumn.getRenderedValue ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData ) ( object ) ) . getVm ( ) ) ; }
Source:
public void testValidModifiedBondsFailsWhenBondIsNullOrUnnamed ( ) throws java.lang.Exception { doTestValidModifiedBonds ( null , new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.HOST_NETWORK_INTERFACE_NOT_EXIST ) , ValidationResult.VALID , VdcBllMessages.HOST_NETWORK_INTERFACE_NOT_EXIST , false , false ) ; }

Target:
public void testValidModifiedBondsFailsWhenBondIsUnnamed ( ) throws java.lang.Exception { doTestValidModifiedBonds ( new org.ovirt.engine.core.common.businessentities.network.Bond ( ) , new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.HOST_NETWORK_INTERFACE_NOT_EXIST ) , ValidationResult.VALID , new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.HOST_NETWORK_INTERFACE_NOT_EXIST ) , ValidationResult.VALID ) ; }
Source:
public void testGetAllWithPermissionsForUnpriviligedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > result = dao.getAll ( org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllWithPermissionsForUnpriviligedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > result = dao.getAll ( org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true , VmEntityType.TEMPLATE ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public static org.ovirt.engine.core.common.action.VdcActionType [ ] data ( ) { return org.ovirt.engine.core.common.action.VdcActionType.values ( ) ; }

Target:
public static org.ovirt.engine.core.common.action.ActionType [ ] data ( ) { return org.ovirt.engine.core.common.action.ActionType.values ( ) ; }
Source:
public void testEmptyDisksUsages ( ) { java.lang.Object [ ] disksUsages = new java.lang.Object [ 0 ] ; java.util.Map < java.lang.String , java.lang.Object > xml = org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectBuilderTest.setDisksUsageInXmlRpc ( disksUsages ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectBuilderTest.validateDisksUsagesList ( org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectBuilderTest.getVmStatistics ( ) , disksUsages , xml ) ; }

Target:
public void testEmptyDisksUsages ( ) { java.lang.Object [ ] disksUsages = new java.lang.Object [ 0 ] ; java.util.Map < java.lang.String , java.lang.Object > xml = org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectBuilderTest.setDisksUsage ( disksUsages ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectBuilderTest.validateDisksUsagesList ( org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectBuilderTest.getVmStatistics ( ) , disksUsages , xml ) ; }
Source:
public com.google.gwt.resources.client.ImageResource getValue ( java.lang.Object object ) { return new org.ovirt.engine.ui.webadmin.widget.table.column.VmTypeColumn ( ) . getValue ( ( ( org.ovirt.engine.core.common.businessentities.VM ) ( object ) ) ) ; }

Target:
public com.google.gwt.resources.client.ImageResource getValue ( java.lang.Object object ) { return new org.ovirt.engine.ui.webadmin.widget.table.column.VmTypeColumn ( ) . getValue ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData ) ( object ) ) . getVm ( ) ) ; }
Source:
private boolean nicNameAndNicIdIsIncoherent ( org.ovirt.engine.core.compat.Guid nicId , java.lang.String nicName ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface interfaceById = existingInterfacesMap.get ( nicId ) ; org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface interfaceByName = existingInterfacesMap.get ( nicName ) ; return ! ( java.util.Objects.equals ( interfaceById , interfaceByName ) ) ; }

Target:
private boolean isNicNameAndNicIdIncoherent ( org.ovirt.engine.core.compat.Guid nicId , java.lang.String nicName ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface interfaceById = existingInterfacesMap.get ( nicId ) ; org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface interfaceByName = existingInterfacesMap.get ( nicName ) ; return ! ( java.util.Objects.equals ( interfaceById , interfaceByName ) ) ; }
Source:
public java.lang.String toString ( ) { java.lang.StringBuilder builder = new java.lang.StringBuilder ( ) ; for ( org.ovirt.engine.ui.uicommonweb.models.vms.SpiceMenuItem item : getItems ( ) ) { builder.append ( ItemToString ( item , null ) ) ; } return builder.toString ( ) ; }

Target:
public java.lang.String toString ( ) { java.lang.StringBuilder builder = new java.lang.StringBuilder ( ) ; for ( org.ovirt.engine.ui.uicommonweb.models.vms.SpiceMenuItem item : getItems ( ) ) { builder.append ( itemToString ( item , null ) ) ; } return builder.toString ( ) ; }
Source:
protected void setActionMessageParameters ( ) { addCanDoActionMessage ( EngineMessage.VAR__TYPE__DESKTOP_POOL ) ; }

Target:
protected org.ovirt.engine.core.bll.network.macpoolmanager.MacPoolManagerStrategy getMacPool ( ) { if ( ( macPool ) == null ) { macPool = poolPerDc.poolForDataCenter ( org.ovirt.engine.core.bll.CommonVmPoolWithVmsCommand.getStoragePoolId ( ) ) ; } return macPool ; }
Source:
public void testExecuteQueryGetAllEntitiesCommand ( ) { getQuery ( ) . executeQueryCommand ( ) ; @ java.lang.SuppressWarnings ( value = "unchecked" ) java.util.List < org.ovirt.engine.core.common.businessentities.VM > result = getQuery ( ) . getQueryReturnValue ( ) . getReturnValue ( ) ; org.junit.Assert.assertEquals ( "Wrong number of Disks in result" , 1 , result.size ( ) ) ; }

Target:
public void testExecuteQueryGetAllEntitiesCommand ( ) { getQuery ( ) . executeQueryCommand ( ) ; @ java.lang.SuppressWarnings ( value = "unchecked" ) java.util.List < org.ovirt.engine.core.common.businessentities.VM > result = getQuery ( ) . getQueryReturnValue ( ) . getReturnValue ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( 1 , result.size ( ) , "Wrong number of Disks in result" ) ; }
Source:
public void WriteAttributeString ( java.lang.String namespaceURI , java.lang.String localName , java.lang.String value ) { try { writer.writeAttribute ( namespaceURI , localName , value ) ; } catch ( javax.xml.stream.XMLStreamException e ) { throw new java.lang.RuntimeException ( "Failed to write attribute" , e ) ; } }

Target:
public void writeAttributeString ( java.lang.String namespaceURI , java.lang.String localName , java.lang.String value ) { try { writer.writeAttribute ( namespaceURI , localName , value ) ; } catch ( javax.xml.stream.XMLStreamException e ) { throw new java.lang.RuntimeException ( "Failed to write attribute" , e ) ; } }
Source:
public void testFailWhenUsingMacOutsideOfRange ( ) { rangeOf10Macs.use ( org.ovirt.engine.core.bll.network.macpool.RangeTest.MAC_OUTSIDE_OF_RANGE , false ) ; }

Target:
public void testFailWhenUsingMacOutsideOfRange ( ) { org.junit.jupiter.api.Assertions.assertThrows ( java.lang.IllegalArgumentException.class , ( ) -> rangeOf10Macs.use ( org.ovirt.engine.core.bll.network.macpool.RangeTest.MAC_OUTSIDE_OF_RANGE , false ) ) ; }
Source:
public void testEmptyGuidListValues ( ) { java.lang.String listValues = "" ; java.util.List < org.ovirt.engine.core.compat.Guid > stringList = org.ovirt.engine.core.compat.Guid.createGuidListFromString ( listValues ) ; java.util.List < org.ovirt.engine.core.compat.Guid > expectedList = new java.util.ArrayList < > ( ) ; org.junit.Assert.assertEquals ( expectedList , stringList ) ; }

Target:
public void testEmptyGuidListValues ( ) { java.lang.String listValues = "" ; java.util.List < org.ovirt.engine.core.compat.Guid > stringList = org.ovirt.engine.core.compat.Guid.createGuidListFromString ( listValues ) ; java.util.List < org.ovirt.engine.core.compat.Guid > expectedList = new java.util.ArrayList < > ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( expectedList , stringList ) ; }
Source:
public void testGetSoundDevice ( ) { org.junit.Assert.assertEquals ( "ac97" , OsRepositoryImpl.INSTANCE.getSoundDevice ( 777 , null , ChipsetType.I440FX ) ) ; }

Target:
public void testGetSoundDevice ( ) { org.junit.jupiter.api.Assertions.assertEquals ( "ac97" , OsRepositoryImpl.INSTANCE.getSoundDevice ( 777 , null , ChipsetType.I440FX ) ) ; }
Source:
public void setData ( java.util.Map < java.lang.String , java.lang.Object > data ) { this . data = data ; }

Target:
public void setCommandStatus ( org.ovirt.engine.core.compat.CommandStatus commandStatus ) { this . commandStatus = commandStatus ; }
Source:
public void setName ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.common.utils.ObjectUtils.objectsEqual ( name , value ) ) ) { name = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( org.ovirt.engine.ui.uicommonweb.models.providers.ProviderGeneralModel.PROPERTY_NAME ) ) ; } }

Target:
public void setName ( java.lang.String value ) { if ( ! ( java.util.Objects.equals ( name , value ) ) ) { name = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( org.ovirt.engine.ui.uicommonweb.models.providers.ProviderGeneralModel.PROPERTY_NAME ) ) ; } }
Source:
protected org.ovirt.engine.core.common.errors.VdcBllMessages getProviderNetworkUsedValidationMessage ( int numberOfNetworks ) { boolean singular = numberOfNetworks == 1 ; if ( singular ) { return org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_PROVIDER_NETWORKS_USED_ONCE ; } else { return org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_PROVIDER_NETWORKS_USED_MULTIPLE_TIMES ; } }

Target:
protected org.ovirt.engine.core.common.errors.EngineMessage getProviderNetworkUsedValidationMessage ( int numberOfNetworks ) { boolean singular = numberOfNetworks == 1 ; if ( singular ) { return org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_PROVIDER_NETWORKS_USED_ONCE ; } else { return org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_PROVIDER_NETWORKS_USED_MULTIPLE_TIMES ; } }
Source:
protected void ChangeDefualtHost ( ) { super . ChangeDefualtHost ( ) ; doChangeDefautlHost ( template.getDedicatedVmForVds ( ) ) ; }

Target:
protected void changeDefualtHost ( ) { super . changeDefualtHost ( ) ; doChangeDefautlHost ( template.getDedicatedVmForVds ( ) ) ; }
Source:
public void canDoActionFailsNoPool ( ) { sd.setStorageFormat ( null ) ; vds.setStoragePoolId ( null ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( cmd , VdcBllMessages.ACTION_TYPE_FAILED_STORAGE_DOMAIN_FORMAT_ILLEGAL_HOST ) ; }

Target:
public void canDoActionSucceedsNoPool ( ) { sd.setStorageFormat ( null ) ; vds.setStoragePoolId ( null ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionSuccess ( cmd ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.tags lookupEntity ( org.ovirt.engine.core.compat.Guid nullId ) { assert nullId == null ; return lookupTagById ( id ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.tags lookupEntity ( org.ovirt.engine.core.compat.Guid id ) throws org.ovirt.engine.api.restapi.resource.BackendFailureException { assert id == null ; return lookupTagById ( this . id ) ; }
Source:
public java.lang.String getServerUniqueId ( ) { wrapper.executeCommand ( VdsInstaller._getUniqueIdCommand ) ; return callback.serverUniqueId ; }

Target:
public java.lang.String getServerUniqueId ( ) { wrapper.executeCommand ( org.ovirt.engine.core.common.config.Config.< java.lang.String > GetValue ( ConfigValues.BootstrapNodeIDCommand ) ) ; return callback.serverUniqueId ; }
Source:
public void clearSession ( ) { container.removeSessionOnLogout ( org.ovirt.engine.core.bll.session.SessionDataContainerTest.TEST_SESSION_ID ) ; }

Target:
public void clearSession ( ) { container.removeSessionOnLogout ( org.ovirt.engine.core.bll.aaa.SessionDataContainerTest.TEST_SESSION_ID ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface generateVdsNetworkInterface ( java.lang.String address ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface = new org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface ( ) ; iface.setAddress ( address ) ; return iface ; }

Target:
public org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface generateVdsNetworkInterface ( java.lang.String address ) { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface iface = new org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface ( ) ; iface.setIpv4Address ( address ) ; return iface ; }
Source:
private static org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator mockStorageDomainValidatorWithSpace ( ) { org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator storageDomainValidator = org.ovirt.engine.core.bll.MoveOrCopyDiskCommandTest.mockStorageDomainValidator ( ) ; org.mockito.Mockito.when ( storageDomainValidator.hasSpaceForClonedDisk ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.storage.DiskImage.class ) ) ) . thenReturn ( ValidationResult.VALID ) ; return storageDomainValidator ; }

Target:
private static org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator mockStorageDomainValidatorWithSpace ( ) { org.ovirt.engine.core.bll.validator.storage.StorageDomainValidator storageDomainValidator = org.ovirt.engine.core.bll.MoveOrCopyDiskCommandTest.mockStorageDomainValidator ( ) ; org.mockito.Mockito.when ( storageDomainValidator.hasSpaceForDiskWithSnapshots ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.businessentities.storage.DiskImage.class ) ) ) . thenReturn ( ValidationResult.VALID ) ; return storageDomainValidator ; }
Source:
public void snapshotNameEmpty ( ) { final java.lang.String e = "" ; b.setSnapshotName ( e ) ; final java.lang.String s = b.getSnapshotName ( ) ; org.junit.Assert.assertEquals ( e , s ) ; }

Target:
public void snapshotNameEmpty ( ) { final java.lang.String e = "" ; b.setSnapshotName ( e ) ; final java.lang.String s = b.getSnapshotName ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( e , s ) ; }
Source:
protected void alertIfPowerManagementOperationFailed ( ) { Alert ( AuditLogType.VDS_ALERT_FENCE_OPERATION_FAILED ) ; }

Target:
protected void alertIfPowerManagementOperationFailed ( ) { alert ( AuditLogType.VDS_ALERT_FENCE_OPERATION_FAILED ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { if ( ( manualRefreshCallback ) != null ) { manualRefreshCallback.onManualRefresh ( ) ; } controller.refresh ( ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { if ( ( manualRefreshCallback ) != null ) { manualRefreshCallback.onManualRefresh ( ) ; } org.ovirt.engine.ui.common.widget.refresh.ManualRefreshEvent.fire ( this ) ; controller.refresh ( ) ; }
Source:
public void processOnVmStop ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.bll.VmPoolHandler.processVmPoolOnStopVm ( vmId , null ) ; }

Target:
public void run ( ) { for ( org.ovirt.engine.core.compat.Guid vmId : vmIds ) { org.ovirt.engine.core.bll.Backend.getInstance ( ) . runInternalAction ( VdcActionType.ProcessDownVm , new org.ovirt.engine.core.common.action.IdParameters ( vmId ) ) ; } }
Source:
public java.lang.Object call ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.VDSGroup vdsGroup = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsGroupDao ( ) . get ( _vds.getvds_group_id ( ) ) ; _parser.cliEnvironmentSet ( VdsmEnv.CHECK_VIRT_HARDWARE , vdsGroup.supportsVirtService ( ) ) ; return null ; }

Target:
public java.lang.Object call ( ) throws java.lang.Exception { _parser.cliEnvironmentSet ( "OVIRT_ENGINE/correlationId" , _correlationId ) ; return null ; }
Source:
public void onMouseOver ( com.google.gwt.event.dom.client.MouseOverEvent event ) { setWidget ( infoImageHover ) ; infoPanel.showRelativeTo ( this ) ; }

Target:
public void setText ( com.google.gwt.safehtml.shared.SafeHtml text ) { infoPanel.setWidget ( new com.google.gwt.user.client.ui.HTML ( text ) ) ; }
Source:
public java.lang.Void runInTransaction ( ) { compensationContext.snapshotEntityStatus ( vm.getDynamicData ( ) , vm.getStatus ( ) ) ; org.ovirt.engine.core.bll.VmHandler.UnLockVm ( vm ) ; compensationContext.stateChanged ( ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { compensationContext.snapshotEntityStatus ( vm.getDynamicData ( ) ) ; org.ovirt.engine.core.bll.VmHandler.unLockVm ( vm ) ; compensationContext.stateChanged ( ) ; return null ; }
Source:
public final java.util.concurrent.Future < java.lang.Void > disconnect ( ) { final java.util.concurrent.Callable < java.lang.Void > callable = new java.util.concurrent.Callable < java.lang.Void > ( ) { @ java.lang.Override public java.lang.Void call ( ) { closeChannel ( ) ; return null ; } } ; return scheduleTask ( callable ) ; }

Target:
public java.util.concurrent.Future < java.lang.Void > close ( ) { final java.util.concurrent.Callable < java.lang.Void > callable = new java.util.concurrent.Callable < java.lang.Void > ( ) { @ java.lang.Override public java.lang.Void call ( ) { disconnect ( ) ; return null ; } } ; return scheduleTask ( callable ) ; }
Source:
public java.util.Set < java.lang.String > getConsumedEvents ( ) { java.util.Set < java.lang.String > set = new java.util.HashSet < java.lang.String > ( ) ; org.ovirt.engine.ui.common.widget.tooltip.TooltipMixin.addTooltipsEvents ( set ) ; return set ; }

Target:
public java.util.Set < java.lang.String > getConsumedEvents ( ) { java.util.Set < java.lang.String > set = new java.util.HashSet < java.lang.String > ( ) ; org.ovirt.engine.ui.common.widget.tooltip.ElementTooltipUtils.addTooltipsEvents ( set ) ; return set ; }
Source:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.users.AdElementListModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.users.AdElementListModel ) ( result.getState ( ) ) ) ; localModel.stopProgress ( ) ; cancel ( ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.users.AdElementListModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.users.AdElementListModel ) ( result.getState ( ) ) ) ; localModel.stopProgress ( ) ; syncSearch ( ) ; if ( closeWindow ) { cancel ( ) ; } }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel model = ( ( org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel ) ( target ) ) ; java.util.List < java.lang.String > images = ( ( java.util.List < java.lang.String > ) ( returnValue ) ) ; setImagesToModel ( model , images ) ; }

Target:
protected void commonInitialize ( ) { priorityUtil = new org.ovirt.engine.ui.uicommonweb.models.vms.PriorityUtil ( getModel ( ) ) ; virtioScsiUtil = new org.ovirt.engine.ui.uicommonweb.models.vms.VirtioScsiUtil ( getModel ( ) ) ; }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.bll.storage.connection.iscsibond.RemoveIscsiBondCommand.getDbFacade ( ) . getIscsiBondDao ( ) . remove ( org.ovirt.engine.core.bll.storage.connection.iscsibond.RemoveIscsiBondCommand.getParameters ( ) . getIscsiBondId ( ) ) ; org.ovirt.engine.core.bll.storage.connection.iscsibond.RemoveIscsiBondCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { iscsiBondDao.remove ( org.ovirt.engine.core.bll.storage.connection.iscsibond.RemoveIscsiBondCommand.getParameters ( ) . getIscsiBondId ( ) ) ; org.ovirt.engine.core.bll.storage.connection.iscsibond.RemoveIscsiBondCommand.setSucceeded ( true ) ; }
Source:
public void testDisksUsagesWithNullEntry ( ) { java.lang.Object [ ] disksUsages = initDisksUsageData ( ) ; disksUsages [ 1 ] = null ; org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct xml = setDisksUsageInXmlRpc ( disksUsages ) ; validateDisksUsagesList ( getVmStatistics ( ) , disksUsages , xml ) ; }

Target:
public void testDisksUsagesWithNullEntry ( ) { java.lang.Object [ ] disksUsages = org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectBuilderTest.initDisksUsageData ( ) ; disksUsages [ 1 ] = null ; org.ovirt.engine.core.vdsbroker.xmlrpc.XmlRpcStruct xml = org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectBuilderTest.setDisksUsageInXmlRpc ( disksUsages ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectBuilderTest.validateDisksUsagesList ( getVmStatistics ( ) , disksUsages , xml ) ; }
Source:
public void setSearchString ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( searchString , value ) ) ) { searchString = value ; searchStringChanged ( ) ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "SearchString" ) ) ; } }

Target:
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" ) ) ; } }
Source:
public void setStatus ( org.ovirt.engine.core.vdsbroker.vdsbroker.StatusForXmlRpc status ) { this . status = status ; }

Target:
public void setStatus ( org.ovirt.engine.core.vdsbroker.vdsbroker.Status status ) { this . status = status ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { getConnectivityTimeout ( ) . setEntity ( ( ( java.lang.Integer ) ( returnValue ) ) ) ; postOnSetupNetworks ( ) ; }

Target:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > networks = ( ( java.util.List < org.ovirt.engine.core.common.businessentities.network.Network > ) ( returnValue ) ) ; allNetworks = networks ; initNetworkModels ( ) ; initDcNetworkParams ( ) ; queryInterfaces ( ) ; }
Source:
private void ProcessExceptionToClient ( org.ovirt.engine.core.common.errors.VdcFault fault ) { fault.setSessionID ( getParameters ( ) . getSessionId ( ) ) ; _returnValue.setFault ( fault ) ; }

Target:
private void processExceptionToClient ( org.ovirt.engine.core.common.errors.VdcFault fault ) { fault.setSessionID ( getParameters ( ) . getSessionId ( ) ) ; _returnValue.getExecuteFailedMessages ( ) . add ( fault.getError ( ) . name ( ) ) ; _returnValue.setFault ( fault ) ; }
Source:
private boolean shouldUpdateStorageDisk ( ) { return ( ( org.ovirt.engine.core.bll.CopyImageGroupCommand.getParameters ( ) . getOperation ( ) ) == ( org.ovirt.engine.core.common.businessentities.ImageOperation.Move ) ) || ( ( org.ovirt.engine.core.bll.CopyImageGroupCommand.getParameters ( ) . getParentCommand ( ) ) == ( org.ovirt.engine.core.common.action.VdcActionType.ImportVm ) ) ; }

Target:
private boolean shouldUpdateStorageDisk ( ) { return ( ( org.ovirt.engine.core.bll.CopyImageGroupCommand.getParameters ( ) . getOperation ( ) ) == ( org.ovirt.engine.core.common.businessentities.storage.ImageOperation.Move ) ) || ( ( org.ovirt.engine.core.bll.CopyImageGroupCommand.getParameters ( ) . getParentCommand ( ) ) == ( org.ovirt.engine.core.common.action.VdcActionType.ImportVm ) ) ; }
Source:
protected final boolean failCanDoAction ( org.ovirt.engine.core.common.errors.VdcBllMessages message ) { addCanDoActionMessage ( message ) ; return false ; }

Target:
protected final boolean failCanDoAction ( org.ovirt.engine.core.common.errors.VdcBllMessages message , java.lang.String ... variableReplacements ) { addCanDoActionMessage ( message ) ; for ( java.lang.String variableReplacement : variableReplacements ) { addCanDoActionMessage ( variableReplacement ) ; } return false ; }
Source:
public org.ovirt.engine.core.compat.Guid fetchDedicatedVmForSingleHost ( ) { if ( ( getDedicatedVmForVdsList ( ) . size ( ) ) == 0 ) { return null ; } return getDedicatedVmForVdsList ( ) . get ( 0 ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.BiosType getBiosType ( ) { return biosType ; }
Source:
public void macAddressIsNullForDefault ( ) throws java.lang.Exception { assertNicValidation ( createNic ( null , org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_NIC_NAME , org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_NIC_TYPE ) , javax.validation.groups.Default.class , false , VmNetworkInterface.VALIDATION_MESSAGE_MAC_ADDRESS_NOT_NULL ) ; }

Target:
public void nameIsNotNullForUpdate ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.assertNicValidation ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.createNic ( org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_MAC_ADDRESS , org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_NIC_NAME , org.ovirt.engine.core.common.businessentities.network.VmNetworkInterfaceValidationTest.VALID_NIC_TYPE ) , org.ovirt.engine.core.common.validation.group.UpdateEntity.class , false , VmNetworkInterface.VALIDATION_MESSAGE_NAME_NOT_NULL ) ; }
Source:
protected boolean isImageExist ( ) { if ( ( org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getImage ( ) ) == null ) { addCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_DISK_NOT_EXIST ) ; return false ; } return true ; }

Target:
protected boolean isImageExist ( ) { if ( ( org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getImage ( ) ) == null ) { return failCanDoAction ( VdcBllMessages.ACTION_TYPE_FAILED_DISK_NOT_EXIST ) ; } return true ; }
Source:
public void runMultipleAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , final org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback callback , final boolean showErrorDialog ) { runMultipleAction ( actionType , parameters , callback , null , showErrorDialog ) ; }

Target:
public void runMultipleAction ( final org.ovirt.engine.core.common.action.VdcActionType actionType , final java.util.List < org.ovirt.engine.core.common.action.VdcActionParametersBase > parameters , final org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback callback , final boolean showErrorDialog , final boolean waitForResult ) { runMultipleAction ( actionType , parameters , false , callback , null , showErrorDialog , waitForResult ) ; }
Source:
protected boolean isMemoryStateRemovable ( java.lang.String memoryVolume ) { return ( ! ( memoryVolume.isEmpty ( ) ) ) && ( ( getDbFacade ( ) . getSnapshotDao ( ) . getNumOfSnapshotsByMemory ( memoryVolume ) ) == 0 ) ; }

Target:
protected org.ovirt.engine.core.dao.SnapshotDao getSnapshotDao ( ) { return getDbFacade ( ) . getSnapshotDao ( ) ; }
Source:
public void noStpWhenNonVmNetwork ( ) throws java.lang.Exception { stpTest ( ValidationResult.VALID , false , false ) ; }

Target:
public void stpWhenNonVmNetwork ( ) throws java.lang.Exception { stpTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NON_VM_NETWORK_CANNOT_SUPPORT_STP ) , false , true ) ; }
Source:
public void testLongName ( ) { vmStatic.setName ( "this_should_be_very_long_vm_name_so_it will_fail_can_do_action_validation" ) ; org.junit.Assert.assertFalse ( "canDoAction should fail for too long vm name." , command.canDoAction ( ) ) ; assertCanDoActionMessage ( EngineMessage.ACTION_TYPE_FAILED_NAME_LENGTH_IS_TOO_LONG ) ; }

Target:
public void testNameNotChanged ( ) { prepareVmToPassValidate ( ) ; vm.setName ( "vm1" ) ; mockSameNameQuery ( true ) ; mockVmValidator ( ) ; command.initEffectiveCompatibilityVersion ( ) ; org.junit.Assert.assertTrue ( "validate should have passed." , command.validate ( ) ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( serverId , glusterServerUuid , knownAddresses ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( serverId , glusterServerUuid , knownAddresses , peerStatus ) ; }
Source:
public org.ovirt.engine.api.resource.AssignedNetworksResource getAssignedNetworksSubResource ( ) { return inject ( new org.ovirt.engine.api.restapi.resource.BackendClusterNetworksResource ( id ) ) ; }

Target:
public org.ovirt.engine.api.resource.AssignedNetworksResource getAssignedNetworksSubResource ( ) { return org.ovirt.engine.api.restapi.resource.BackendClusterResource.inject ( new org.ovirt.engine.api.restapi.resource.BackendClusterNetworksResource ( id ) ) ; }
Source:
public java.lang.Void runInTransaction ( ) { initImportClonedTemplateDisks ( ) ; addVmTemplateToDb ( ) ; addVmInterfaces ( ) ; getCompensationContext ( ) . stateChanged ( ) ; return null ; }

Target:
public java.lang.Void runInTransaction ( ) { initImportClonedTemplateDisks ( ) ; addVmTemplateToDb ( ) ; updateOriginalTemplateNameOnDerivedVms ( ) ; addVmInterfaces ( ) ; getCompensationContext ( ) . stateChanged ( ) ; return null ; }
Source:
protected void freeLock ( ) { if ( ( commandLock ) != null ) { org.ovirt.engine.core.utils.lock.LockManagerFactory.getLockManager ( ) . releaseLock ( commandLock ) ; log.infoFormat ( "Lock freed to object {0}" , commandLock ) ; commandLock = null ; } }

Target:
protected org.ovirt.engine.core.utils.lock.LockManager getLockManager ( ) { return org.ovirt.engine.core.utils.lock.LockManagerFactory.getLockManager ( ) ; }
Source:
public void lowerVersionHostsNoNetwork ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addHostsToCluster ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( cmd ) ; }

Target:
public void lowerVersionHostsAndNetwork ( ) { cmd.getStoragePool ( ) . setCompatibilityVersion ( org.ovirt.engine.core.bll.storage.pool.UpdateStoragePoolCommandTest.VERSION_1_0 ) ; addNonDefaultClusterToPool ( ) ; addHostsToCluster ( ) ; addNonManagementNetworkToPool ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( cmd , EngineMessage.ACTION_TYPE_FAILED_CANNOT_DECREASE_DATA_CENTER_COMPATIBILITY_VERSION ) ; }
Source:
public void setlibvirt_version ( java.lang.String value ) { this . mVdsDynamic.setlibvirt_version ( value ) ; }

Target:
public void setlibvirt_version ( org.ovirt.engine.core.compat.RpmVersion value ) { this . mVdsDynamic.setlibvirt_version ( value ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepSessionDelete ( java.lang.String volumeName , java.lang.String remoteHost , java.lang.String remoteVolumeName ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepSessionStart ( java.lang.String volumeName , java.lang.String remoteHost , java.lang.String remoteVolumeName , java.lang.String userName , java.lang.Boolean force ) ;
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getVdssByUniqueId ( ) { if ( ( _vdssByUniqueId ) == null ) { org.ovirt.engine.core.bll.VdsInstaller.UpdateUniqueId ( getStrippedVdsUniqueId ( ) ) ; _vdssByUniqueId = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDAO ( ) . getAllWithUniqueId ( getStrippedVdsUniqueId ( ) ) ; } return _vdssByUniqueId ; }

Target:
private java.util.List < org.ovirt.engine.core.common.businessentities.VDS > getVdssByUniqueId ( ) { if ( ( _vdssByUniqueId ) == null ) { org.ovirt.engine.core.bll.VdsInstaller.UpdateUniqueId ( getStrippedVdsUniqueId ( ) ) ; _vdssByUniqueId = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDao ( ) . getAllWithUniqueId ( getStrippedVdsUniqueId ( ) ) ; } return _vdssByUniqueId ; }
Source:
public void testSelfMapper ( ) { org.ovirt.engine.api.restapi.types.Mapper < org.ovirt.engine.api.restapi.test.mappers.api.IFoo , org.ovirt.engine.api.restapi.test.mappers.api.IFoo > mapper = mappingLocator.getMapper ( org.ovirt.engine.api.restapi.test.mappers.api.IFoo.class , org.ovirt.engine.api.restapi.test.mappers.api.IFoo.class ) ; assertNull ( mapper ) ; }

Target:
public void testSelfMapper ( ) { org.ovirt.engine.api.restapi.types.Mapper < org.ovirt.engine.api.restapi.test.mappers.api.IFoo , org.ovirt.engine.api.restapi.test.mappers.api.IFoo > mapper = mappingLocator.getMapper ( org.ovirt.engine.api.restapi.test.mappers.api.IFoo.class , org.ovirt.engine.api.restapi.test.mappers.api.IFoo.class ) ; org.junit.Assert.assertNull ( mapper ) ; }
Source:
private void setNewSessionExpiration ( long timeout ) { org.ovirt.engine.core.bll.storage.disk.image.UploadImageCommand.getParameters ( ) . setSessionExpiration ( ( ( ( java.lang.System.currentTimeMillis ( ) ) / 1000 ) + timeout ) ) ; persistCommand ( org.ovirt.engine.core.bll.storage.disk.image.UploadImageCommand.getParameters ( ) . getParentCommand ( ) , true ) ; }

Target:
private void setNewSessionExpiration ( long timeout ) { org.ovirt.engine.core.bll.storage.disk.image.TransferImageCommand.getParameters ( ) . setSessionExpiration ( ( ( ( java.lang.System.currentTimeMillis ( ) ) / 1000 ) + timeout ) ) ; persistCommand ( org.ovirt.engine.core.bll.storage.disk.image.TransferImageCommand.getParameters ( ) . getParentCommand ( ) , true ) ; }
Source:
public void testHasUniqueNameRenamingPool ( ) { final org.ovirt.engine.core.compat.Guid macPoolId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; org.junit.Assert.assertThat ( callHasUniqueName ( macPoolId , macPoolId , "macPool1" , "macPool2" ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void testHasUniqueNameRenamingPool ( ) { final org.ovirt.engine.core.compat.Guid macPoolId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; org.hamcrest.MatcherAssert.assertThat ( callHasUniqueName ( macPoolId , macPoolId , "macPool1" , "macPool2" ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
com.google.gwt.safehtml.shared.SafeHtml textWithTooltip ( java.lang.String text , java.lang.String tooltip ) ;

Target:
com.google.gwt.safehtml.shared.SafeHtml vmCountInOutMigrations ( java.lang.String prefix , java.lang.String vmCountStr , com.google.gwt.safehtml.shared.SafeHtml image , java.lang.String postfix ) ;
Source:
public void testLGetWithCustomGlobalHeader ( ) { clusterService.get ( ) . send ( ) ; org.junit.Assert.assertEquals ( getLastRequestHeaders ( ) . get ( "my" ) . getFirst ( ) , "value" ) ; }

Target:
public void testListWithCustomGlobalHeaderOverridden ( ) { clustersService.list ( ) . header ( "my" , "local" ) . send ( ) ; org.junit.Assert.assertEquals ( "local" , getLastRequestHeaders ( ) . get ( "my" ) . getFirst ( ) ) ; }
Source:
protected boolean isGhost ( org.ovirt.engine.ui.uicommonweb.models.dnsconfiguration.NameServerModel value ) { return org.ovirt.engine.ui.uicompat.external.StringUtils.isEmpty ( value.getEntity ( ) ) ; }

Target:
protected boolean isGhost ( org.ovirt.engine.ui.uicommonweb.models.dnsconfiguration.NameServerModel value ) { return org.ovirt.engine.core.compat.StringHelper.isNullOrEmpty ( value.getEntity ( ) ) ; }
Source:
protected void endWithFailure ( ) { super . endWithFailure ( ) ; org.ovirt.engine.core.bll.job.ExecutionHandler.setAsyncJob ( org.ovirt.engine.core.bll.lsm.LiveMigrateDiskCommand.getExecutionContext ( ) , false ) ; }

Target:
public void preventRollback ( ) { getParameters ( ) . setExecutionIndex ( 0 ) ; org.ovirt.engine.core.bll.ImagesHandler.updateImageStatus ( getParameters ( ) . getImageId ( ) , ImageStatus.OK ) ; org.ovirt.engine.core.bll.ImagesHandler.updateImageStatus ( getParameters ( ) . getDestinationImageId ( ) , ImageStatus.OK ) ; }
Source:
public static java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getMemoryBalloons ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.dao.getVmDeviceByVmIdAndType ( vmId , VmDeviceGeneralType.BALLOON ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VmDevice addDiskDevice ( org.ovirt.engine.core.compat.Guid vmId , org.ovirt.engine.core.compat.Guid deviceId , java.lang.Boolean isPlugged , java.lang.Boolean isReadOnly , boolean isUsingScsiReservation ) { return addDiskDevice ( vmId , deviceId , isPlugged , isReadOnly , "" , isUsingScsiReservation ) ; }
Source:
public org.ovirt.engine.api.restapi.rsdl.RsdlBuilder.LinkBuilder responseType ( final java.lang.String responseType ) { link.setResponse ( new org.ovirt.engine.api.model.Response ( ) { { setType ( responseType ) ; } } ) ; return this ; }

Target:
public org.ovirt.engine.api.restapi.rsdl.RsdlBuilder.LinkBuilder requestParameter ( final java.lang.String requestParameter ) { org.ovirt.engine.api.model.Body body = new org.ovirt.engine.api.model.Body ( ) ; body.setType ( requestParameter ) ; org.ovirt.engine.api.model.Request request = new org.ovirt.engine.api.model.Request ( ) ; request.setBody ( body ) ; link.setRequest ( request ) ; return this ; }
Source:
protected void onNoVmsAdded ( org.ovirt.engine.core.compat.Guid poolId ) { org.ovirt.engine.core.bll.AddVmPoolWithVmsCommand.getVmPoolDao ( ) . remove ( poolId ) ; }

Target:
protected void onNoVmsAdded ( org.ovirt.engine.core.compat.Guid poolId ) { org.ovirt.engine.core.bll.AddVmPoolCommand.getVmPoolDao ( ) . remove ( poolId ) ; }
Source:
protected void verifyBuiltVmSpecific ( org.ovirt.engine.core.common.businessentities.VM vm ) { org.junit.Assert.assertEquals ( org.ovirt.engine.ui.uicommonweb.models.vms.TEMPLATE_GUID , vm.getVmtGuid ( ) ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.ui.uicommonweb.models.vms.CUSTOM_PROPERTIES , vm.getCustomProperties ( ) ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.ui.uicommonweb.models.vms.INSTANCE_TYPE_ID , vm.getInstanceTypeId ( ) ) ; }

Target:
protected void verifyBuiltVmSpecific ( org.ovirt.engine.core.common.businessentities.VM vm ) { org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.ui.uicommonweb.models.vms.TEMPLATE_GUID , vm.getVmtGuid ( ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.ui.uicommonweb.models.vms.CUSTOM_PROPERTIES , vm.getCustomProperties ( ) ) ; org.junit.jupiter.api.Assertions.assertEquals ( org.ovirt.engine.ui.uicommonweb.models.vms.INSTANCE_TYPE_ID , vm.getInstanceTypeId ( ) ) ; }
Source:
public boolean isVisible ( ) { return getDetailModel ( ) . getHasStorageDomain ( ) ; }

Target:
public boolean getIsAvailable ( ) { return getDetailModel ( ) . getHasStorageDomain ( ) ; }
Source:
protected org.ovirt.engine.core.dao.StorageServerConnectionDAO getStorageServerConnectionDAO ( ) { return org.ovirt.engine.core.bll.storage.StorageDomainCommandBase.getDbFacade ( ) . getStorageServerConnectionDAO ( ) ; }

Target:
protected org.ovirt.engine.core.dao.StorageDomainStaticDAO getStorageDomainStaticDAO ( ) { return org.ovirt.engine.core.bll.storage.StorageDomainCommandBase.getDbFacade ( ) . getStorageDomainStaticDao ( ) ; }
Source:
public void testGetOvfGenerations ( ) { java.lang.Long value = dao.getOvfGeneration ( FixturesTool.VM_RHEL5_POOL_50 ) ; org.junit.Assert.assertNotNull ( "ovf generation wasn't retrieved succesfully" , value ) ; org.junit.Assert.assertEquals ( "ovf generation was retrieved but it's value isn't as expected" , 1 , value.longValue ( ) ) ; }

Target:
public void testGetOvfGenerations ( ) { java.lang.Long value = dao.getOvfGeneration ( FixturesTool.VM_RHEL5_POOL_50 ) ; org.junit.jupiter.api.Assertions.assertNotNull ( value , "ovf generation wasn't retrieved succesfully" ) ; org.junit.jupiter.api.Assertions.assertEquals ( 1 , value.longValue ( ) , "ovf generation was retrieved but it's value isn't as expected" ) ; }
Source:
public void setUnitString ( java.lang.String unitString ) { com.google.gwt.user.client.ui.SimplePanel unitAddOn = new com.google.gwt.user.client.ui.SimplePanel ( ) ; unitAddOn.getElement ( ) . setInnerHTML ( unitString ) ; unitAddOn.addStyleName ( Styles.INPUT_GROUP_ADDON ) ; contentWidgetContainer.add ( unitAddOn ) ; }

Target:
public void setUnitString ( java.lang.String unitString ) { com.google.gwt.user.client.ui.SimplePanel unitAddOn = new com.google.gwt.user.client.ui.SimplePanel ( ) ; unitAddOn.getElement ( ) . setInnerHTML ( unitString ) ; unitAddOn.addStyleName ( Styles.INPUT_GROUP_ADDON ) ; contentWidgetContainer.addStyleName ( Styles.INPUT_GROUP ) ; contentWidgetContainer.add ( unitAddOn ) ; }
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 , null ) , UsbPolicy.ENABLED_NATIVE ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotEnabledNativePolicyUsb ( ) { 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.DISABLED ) , UsbPolicy.ENABLED_NATIVE ) ; }
Source:
private org.ovirt.engine.ui.uicommonweb.models.vms.VncConsoleModel asVncConsoleModel ( org.ovirt.engine.ui.uicommonweb.models.HasConsoleModel model ) { return ( ( org.ovirt.engine.ui.uicommonweb.models.vms.VncConsoleModel ) ( model.getDefaultConsoleModel ( ) ) ) ; }

Target:
protected org.ovirt.engine.ui.uicommonweb.models.vms.IVnc asVnc ( org.ovirt.engine.ui.uicommonweb.models.VmConsoles vmConsoles ) { return vmConsoles.getConsoleModel ( org.ovirt.engine.ui.uicommonweb.models.vms.VncConsoleModel.class ) . getVncImpl ( ) ; }
Source:
private static java.util.List < java.lang.Object > asList ( java.lang.Object model , java.lang.String superField ) { return ( ( java.util.List < java.lang.Object > ) ( org.ovirt.engine.api.common.util.ReflectionHelper.get ( org.ovirt.engine.api.common.util.ReflectionHelper.get ( model , superField ) , superField ) ) ) ; }

Target:
private static java.util.List < java.lang.Object > asList ( java.lang.Object model , java.lang.String superField ) { return ( ( java.util.List < java.lang.Object > ) ( org.ovirt.engine.api.utils.ReflectionHelper.get ( org.ovirt.engine.api.utils.ReflectionHelper.get ( model , superField ) , superField ) ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.utils.customprop.ValidationError > validateVmProperties ( org.ovirt.engine.core.compat.Version version , java.lang.String properties ) { return validateProperties ( allVmProperties.get ( version ) , convertProperties ( properties ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.utils.customprop.ValidationError > validateVmProperties ( org.ovirt.engine.core.compat.Version version , java.lang.String properties ) { if ( syntaxErrorInProperties ( properties ) ) { return invalidSyntaxValidationError ; } return validateProperties ( allVmProperties.get ( version ) , convertProperties ( properties ) ) ; }
Source:
public void addToHistoryTwoOverLimitValuesBefore ( ) { org.junit.Assert.assertEquals ( java.util.Arrays.asList ( 11 , 12 , 13 ) , statistics.addToHistory ( java.util.Arrays.asList ( 9 , 10 , 11 , 12 ) , 13 , 3 ) ) ; }

Target:
public void addToHistoryTwoOverLimitValuesBefore ( ) { org.junit.jupiter.api.Assertions.assertEquals ( java.util.Arrays.asList ( 11 , 12 , 13 ) , statistics.addToHistory ( java.util.Arrays.asList ( 9 , 10 , 11 , 12 ) , 13 , 3 ) ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeProfileInfo ( java.lang.String volumeName ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeProfileInfo ( java.lang.String volumeName , boolean nfs ) ;
Source:
public void testEmptyGetAllForCpuProfile ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > result = dao.getAllForCpuProfile ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testEmptyGetAllForCpuProfile ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > result = dao.getAllForCpuProfile ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public void testGetTreeForEntityWithRoleTypeFilteredWithNoPermissionsCheckDisabled ( ) { baseTestGetTreeForEntityFiltered ( org.ovirt.engine.core.dao.PermissionDAOTest.STORAGE_ENTITY_ID , VdcObjectType.Storage , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_SESSION_ID , false ) ; }

Target:
public void testGetTreeForEntityWithRoleTypeFilteredWithNoPermissionsCheckDisabled ( ) { org.junit.Assert.assertNotNull ( unprivilegedUserSession ) ; baseTestGetTreeForEntityFiltered ( org.ovirt.engine.core.dao.PermissionDAOTest.STORAGE_ENTITY_ID , VdcObjectType.Storage , unprivilegedUserSession.getId ( ) , false ) ; }
Source:
public void testGetAll ( ) throws java.lang.Exception { java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > interfaces = dao.getAll ( ) ; org.junit.Assert.assertNotNull ( interfaces ) ; org.junit.Assert.assertEquals ( FixturesTool.NUMBER_OF_VM_INTERFACES , interfaces.size ( ) ) ; }

Target:
public void testGetAll ( ) throws java.lang.Exception { java.util.List < org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface > interfaces = dao.getAll ( ) ; org.junit.Assert.assertNotNull ( interfaces ) ; org.junit.Assert.assertEquals ( FixturesTool.NUMBER_OF_VM_INTERFACE_VIEWS , interfaces.size ( ) ) ; }
Source:
private void saveStoageDevice ( org.ovirt.engine.core.common.businessentities.gluster.StorageDevice storageDevice ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getStorageDeviceDao ( ) . save ( storageDevice ) ; }

Target:
private void saveStoageDevice ( org.ovirt.engine.core.common.businessentities.gluster.StorageDevice storageDevice ) { storageDeviceDao.save ( storageDevice ) ; }