auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected void executeQueryCommand ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VdsNumaNode > numaNodes = org.ovirt.engine.core.bll.numa.host.GetVdsNumaNodesByVdsIdQuery.getDbFacade ( ) . getVdsNumaNodeDao ( ) . getAllVdsNumaNodeByVdsId ( org.ovirt.engine.core.bll.numa.host.GetVdsNumaNodesByVdsIdQuery.getParameters ( ) . getId ( ) ) ; org.ovirt.engine.core.bll.numa.host.GetVdsNumaNodesByVdsIdQuery.getQueryReturnValue ( ) . setReturnValue ( numaNodes ) ; }

Target:
protected void executeQueryCommand ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VdsNumaNode > numaNodes = vdsNumaNodeDao.getAllVdsNumaNodeByVdsId ( org.ovirt.engine.core.bll.numa.host.GetVdsNumaNodesByVdsIdQuery.getParameters ( ) . getId ( ) ) ; org.ovirt.engine.core.bll.numa.host.GetVdsNumaNodesByVdsIdQuery.getQueryReturnValue ( ) . setReturnValue ( numaNodes ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult mtuValid ( ) { return ( network.getMtu ( ) ) == 0 ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_EXTERNAL_NETWORK_CANNOT_HAVE_MTU ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult mtuValid ( ) { return ( network.getMtu ( ) ) == 0 ? org.ovirt.engine.core.bll.ValidationResult.VALID : new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_EXTERNAL_NETWORK_CANNOT_HAVE_MTU ) ; }
Source:
public void testBadGuid ( ) { try { new org.ovirt.engine.api.restapi.resource.aaa.BackendUserResource ( "foo" , null ) ; org.junit.jupiter.api.Assertions.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testBadGuid ( ) { verifyNotFoundException ( org.junit.jupiter.api.Assertions.assertThrows ( javax.ws.rs.WebApplicationException.class , ( ) -> new org.ovirt.engine.api.restapi.resource.aaa.BackendUserResource ( "foo" , null ) ) ) ; }
Source:
public void lowerVersionMgmtNetworkSupportedFeatures ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addManagementNetworksToPool ( org.ovirt.engine.core.bll.storage.UpdateStoragePoolCommandTest.TEST_MANAGEMENT_NETWORK_ID ) ; setupNetworkValidator ( true ) ; org.junit.Assert.assertTrue ( cmd.canDoAction ( ) ) ; }

Target:
public void lowerVersionNoHostsWithNetwork ( ) { storagePoolWithLowerVersion ( ) ; addNonDefaultClusterToPool ( ) ; addNonManagementNetworkToPool ( ) ; canDoActionFailed ( VdcBllMessages.ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION ) ; }
Source:
public void setTabIndex ( int index ) { getButtonWidget ( ) . setTabIndex ( index ) ; }

Target:
public java.lang.String getLabel ( ) { com.google.gwt.user.client.ui.Widget widget = getButtonWidget ( ) ; java.lang.String result = null ; if ( widget instanceof com.google.gwt.user.client.ui.HasText ) { result = ( ( com.google.gwt.user.client.ui.HasText ) ( widget ) ) . getText ( ) ; } return result ; }
Source:
public void add ( ) { }

Target:
public void add ( ) { if ( ( getWindow ( ) ) != null ) { return ; } final org.ovirt.engine.ui.uicommonweb.models.providers.ProviderModel providerModel = new org.ovirt.engine.ui.uicommonweb.models.providers.ProviderModel ( this ) ; setWindow ( providerModel ) ; }
Source:
public void setDiskId ( java.lang.String value ) { if ( ( diskId ) != value ) { diskId = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "ID" ) ) ; } }

Target:
public void setDiskId ( java.lang.String value ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( diskId , value ) ) ) { diskId = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "ID" ) ) ; } }
Source:
public java.lang.String encode ( org.ovirt.engineextensions.aaa.ldap.ASN1OctetString value ) { return format.encode ( value ) ; }

Target:
public org.ovirt.engineextensions.aaa.ldap.ASN1OctetString decode ( java.lang.String value , org.ovirt.engineextensions.aaa.ldap.MapProperties props ) { return format.decode ( value , props ) ; }
Source:
public void testGetAllForStorageDomainWithPermissionsForUnpriviligedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > result = dao.getAllForStorageDomain ( FixturesTool.STORAGE_DOMAIN_SCALE_SD5 , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForStorageDomainWithPermissionsForUnpriviligedUser ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VmTemplate > result = dao.getAllForStorageDomain ( FixturesTool.STORAGE_DOMAIN_SCALE_SD5 , org.ovirt.engine.core.dao.UNPRIVILEGED_USER_ID , true ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.RoleGroupMap mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { org.ovirt.engine.core.common.businessentities.RoleGroupMap entity = new org.ovirt.engine.core.common.businessentities.RoleGroupMap ( org.ovirt.engine.core.common.businessentities.ActionGroup.forValue ( rs.getInt ( "action_group_id" ) ) , org.ovirt.engine.core.compat.Guid.createGuidFromString ( rs.getString ( "role_id" ) ) ) ; return entity ; }

Target:
public org.ovirt.engine.core.common.businessentities.RoleGroupMap mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { org.ovirt.engine.core.common.businessentities.RoleGroupMap entity = new org.ovirt.engine.core.common.businessentities.RoleGroupMap ( org.ovirt.engine.core.common.businessentities.ActionGroup.forValue ( rs.getInt ( "action_group_id" ) ) , org.ovirt.engine.core.compat.Guid.createGuidFromStringDefaultEmpty ( rs.getString ( "role_id" ) ) ) ; return entity ; }
Source:
protected org.ovirt.engine.core.compat.Guid asGuid ( java.lang.String id ) { return new org.ovirt.engine.core.compat.Guid ( id ) ; }

Target:
protected org.ovirt.engine.core.compat.Guid asGuid ( java.lang.String id ) { try { return new org.ovirt.engine.core.compat.Guid ( id ) ; } catch ( java.lang.IllegalArgumentException e ) { throw new org.ovirt.engine.api.restapi.resource.BaseBackendResource.MalformedIdException ( e ) ; } }
Source:
public void add ( int index , T element ) { super . add ( index , element ) ; OnCollectionChanged ( ) ; }

Target:
public void add ( int index , T element ) { super . add ( index , element ) ; onCollectionChanged ( ) ; }
Source:
public void setSoftTimeout ( long softTimeout ) { this . softTimeout = softTimeout ; }

Target:
public void setSoftTimeout ( long softTimeout ) { _softTimeout = softTimeout ; }
Source:
protected void updateExistingEntity ( ) { existingEntity.setDiskInterface ( DiskInterface.IDE ) ; }

Target:
protected void updateExistingEntity ( ) { existingEntity.setDiskAlias ( "Other_Alias" ) ; }
Source:
private void logWhenMacPoolIsEmpty ( ) { if ( ! ( macsStorage.availableMacExist ( ) ) ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ; new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector ( ) . log ( logable , AuditLogType.MAC_POOL_EMPTY ) ; } }

Target:
private void logWhenMacPoolIsEmpty ( ) { if ( ! ( macsStorage.availableMacExist ( ) ) ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogable logable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableImpl ( ) ; org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector.class ) . log ( logable , AuditLogType.MAC_POOL_EMPTY ) ; } }
Source:
protected org.ovirt.engine.api.model.Disk getEntity ( int index ) { return org.ovirt.engine.api.restapi.resource.BackendVmDisksResourceTest.setUpEntityExpectations ( control.createMock ( org.ovirt.engine.core.common.businessentities.storage.DiskImage.class ) , index ) ; }

Target:
protected org.ovirt.engine.api.model.Disk getEntity ( int index ) { return org.ovirt.engine.api.restapi.resource.BackendVmDisksResourceTest.setUpEntityExpectations ( org.mockito.Mockito.mock ( org.ovirt.engine.core.common.businessentities.storage.DiskImage.class ) , index ) ; }
Source:
public void init ( java.util.List items , final org.ovirt.engine.core.compat.Guid storageDomainId ) { setItems ( items , storageDomainId ) ; }

Target:
public org.ovirt.engine.ui.uicommonweb.validation.ValidationResult validate ( java.lang.Object value ) { return ! ( isVmNameUnique ( ) ) ? org.ovirt.engine.ui.uicommonweb.validation.ValidationResult.fail ( org.ovirt.engine.ui.uicompat.ConstantsManager.getInstance ( ) . getConstants ( ) . nameMustBeUniqueInvalidReason ( ) ) : org.ovirt.engine.ui.uicommonweb.validation.ValidationResult.ok ( ) ; }
Source:
private org.ovirt.engine.api.model.Hosts listGlusterOnly ( ) { if ( isFiltered ( ) ) { return mapGlusterOnlyCollection ( getBackendCollection ( VdcQueryType.GetAllHosts , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ) ; } else { return mapGlusterOnlyCollection ( getBackendCollection ( SearchType.VDS ) ) ; } }

Target:
private org.ovirt.engine.api.model.Hosts listGlusterOnly ( ) { if ( isFiltered ( ) ) { return mapGlusterOnlyCollection ( getBackendCollection ( QueryType.GetAllHosts , new org.ovirt.engine.core.common.queries.VdcQueryParametersBase ( ) ) ) ; } else { return mapGlusterOnlyCollection ( getBackendCollection ( SearchType.VDS ) ) ; } }
Source:
public void getJobIdByEntityIdAndEntityType ( ) { java.util.List < org.ovirt.engine.core.compat.Guid > jobIdByEntityIdAndEntityType = dao.getJobIdByEntityId ( org.ovirt.engine.core.dao.JobSubjectEntityDaoTest.EXISTING_ENTITY_ID ) ; org.junit.Assert.assertTrue ( "Verify job subject entities exist for a given job" , jobIdByEntityIdAndEntityType.contains ( org.ovirt.engine.core.dao.JobSubjectEntityDaoTest.EXISTING_JOB_ID ) ) ; }

Target:
public void getJobIdByEntityIdAndEntityType ( ) { java.util.List < org.ovirt.engine.core.compat.Guid > jobIdByEntityIdAndEntityType = dao.getJobIdByEntityId ( FixturesTool.HOST_ID ) ; org.junit.Assert.assertTrue ( "Verify job subject entities exist for a given job" , jobIdByEntityIdAndEntityType.contains ( org.ovirt.engine.core.dao.JobSubjectEntityDaoTest.EXISTING_JOB_ID ) ) ; }
Source:
public void validateSpaceNotWithinThreshold ( ) { org.mockito.Mockito.doReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN ) ) . when ( storageDomainValidator ) . isDomainWithinThresholds ( ) ; org.junit.Assert.assertFalse ( cmd.validateSpaceRequirements ( ) ) ; }

Target:
public void validateSpaceNotWithinThreshold ( ) { org.mockito.Mockito.doReturn ( new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.EngineMessage.ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN ) ) . when ( storageDomainValidator ) . isDomainWithinThresholds ( ) ; org.junit.jupiter.api.Assertions.assertFalse ( cmd.validateSpaceRequirements ( ) ) ; }
Source:
public void canDoAction_changeClusterIds_Test ( ) { org.mockito.Mockito.doReturn ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) . when ( command ) . getClusterId ( ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.ACTION_TYPE_FAILED_CANNOT_CHANGE_CLUSTER_ID ) ; }

Target:
public void validate_changeClusterIds_Test ( ) { org.mockito.Mockito.doReturn ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) . when ( command ) . getClusterId ( ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_CANNOT_CHANGE_CLUSTER_ID ) ; }
Source:
public void onChange ( com.google.gwt.event.dom.client.ChangeEvent event ) { this . readUploadedIconFile ( ) ; }

Target:
public void onChange ( com.google.gwt.event.dom.client.ChangeEvent event ) { readUploadedIconFile ( inputFileWidget.getElement ( ) ) ; }
Source:
public void setparameters ( java.lang.String value ) { switch ( getvm_pool_type ( ) ) { case TimeLease : { InitializedTimeLeasedDefaultData ( value ) ; break ; } default : { parameters = value ; break ; } } }

Target:
public void setvm_pool_description ( java.lang.String value ) { this . description = value ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { updateVms ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . < java.util.List < org.ovirt.engine.core.common.businessentities.VM > > getReturnValue ( ) ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { validateSource ( ) ; clearVms ( ) ; clearValidations ( ) ; loadProviders ( ) ; }
Source:
public void remove ( org.ovirt.engine.core.compat.Guid id , boolean removePermissions ) { getCallsHandler ( ) . executeModification ( "DeleteVmStatic" , getIdParamterSource ( id ) . addValue ( "remove_permissions" , removePermissions ) ) ; }

Target:
public void remove ( org.ovirt.engine.core.compat.Guid id , boolean removePermissions ) { getCallsHandler ( ) . executeModification ( "DeleteVmStatic" , createIdParameterMapper ( id ) . addValue ( "remove_permissions" , removePermissions ) ) ; }
Source:
public java.util.List < org.ovirt.engine.core.common.job.Job > getJobsByCorrelationId ( java.lang.String correlationId ) { return multipleResults ( getEntityManager ( ) . createNamedQuery ( "Job.getJobsByCorrelationId" , org.ovirt.engine.core.common.job.Job.class ) . setParameter ( "correlationId" , correlationId ) ) ; }

Target:
public void updateStartedExecutionEntitiesToUnknown ( java.util.Date updateTime ) { org.springframework.jdbc.core.namedparam.MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource ( ) . addValue ( "end_time" , updateTime ) ; getCallsHandler ( ) . executeModification ( "UpdateStartedExecutionEntitiesToUnknown" , parameterSource ) ; }
Source:
public void enableDrag ( boolean enable ) { if ( enable ) { getElement ( ) . setDraggable ( Element.DRAGGABLE_TRUE ) ; } else { getElement ( ) . setDraggable ( Element.DRAGGABLE_FALSE ) ; } }

Target:
public void enableDrag ( boolean dragEnabled ) { this . dragEnabled = dragEnabled ; if ( dragEnabled ) { getElement ( ) . setDraggable ( Element.DRAGGABLE_TRUE ) ; } else { getElement ( ) . setDraggable ( Element.DRAGGABLE_FALSE ) ; } }
Source:
public javax.ws.rs.core.Response remove ( ) { get ( ) ; return performAction ( VdcActionType.RemoveVds , new org.ovirt.engine.core.common.action.RemoveVdsParameters ( guid ) ) ; }

Target:
public javax.ws.rs.core.Response enrollCertificate ( org.ovirt.engine.api.model.Action action ) { return doAction ( VdcActionType.HostEnrollCertificate , new org.ovirt.engine.core.common.action.VdsActionParameters ( guid ) , action ) ; }
Source:
private javax.ws.rs.core.Response fence ( org.ovirt.engine.api.model.Action action , org.ovirt.engine.core.common.action.VdcActionType vdcAction , org.ovirt.engine.core.common.businessentities.FenceActionType fenceType ) { return doAction ( vdcAction , new org.ovirt.engine.core.common.action.FenceVdsActionParameters ( guid , fenceType ) , action ) ; }

Target:
private org.ovirt.engine.core.common.queries.DiscoverSendTargetsQueryParameters createDiscoveryQueryParams ( org.ovirt.engine.api.model.Action action ) { org.ovirt.engine.core.common.businessentities.StorageServerConnections connectionDetails = getInitializedConnectionIscsiDetails ( action ) ; return new org.ovirt.engine.core.common.queries.DiscoverSendTargetsQueryParameters ( guid , connectionDetails ) ; }
Source:
public org.ovirt.engine.core.bll.ValidationResult valueNotEmpty ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.LIBVIRT_SECRET_VALUE_CANNOT_BE_EMPTY ) . when ( org.apache.commons.lang.StringUtils.isEmpty ( libvirtSecret.getValue ( ) ) ) ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult valueNotEmpty ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( EngineMessage.LIBVIRT_SECRET_VALUE_CANNOT_BE_EMPTY ) . when ( org.apache.commons.lang.StringUtils.isEmpty ( libvirtSecret.getValue ( ) ) ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.LdapGroup getDirectoryGroup ( int index ) { org.ovirt.engine.core.common.businessentities.LdapGroup directoryGroup = new org.ovirt.engine.core.common.businessentities.LdapGroup ( ) ; directoryGroup.setid ( EXTERNAL_IDS [ index ] ) ; directoryGroup.setname ( org.ovirt.engine.api.restapi.resource.BackendGroupsResourceTest.GROUP_NAMES [ index ] ) ; directoryGroup.setdomain ( org.ovirt.engine.api.restapi.resource.DOMAIN ) ; return directoryGroup ; }

Target:
private org.ovirt.engine.core.authentication.DirectoryGroup getDirectoryGroup ( int index ) { return new org.ovirt.engine.core.authentication.DirectoryGroup ( new org.ovirt.engine.core.authentication.DirectoryStub ( DOMAIN ) , EXTERNAL_IDS [ index ] , org.ovirt.engine.api.restapi.resource.BackendGroupsResourceTest.GROUP_NAMES [ index ] ) ; }
Source:
private void OnSystemTreeSelectedItemChanged ( ) { UpdateActionAvailability ( ) ; }

Target:
private void OnSystemTreeSelectedItemChanged ( ) { updateActionAvailability ( ) ; }
Source:
public org.ovirt.engine.api.model.Storage update ( org.ovirt.engine.api.model.Storage connection ) { validateEnums ( org.ovirt.engine.api.model.Storage.class , connection ) ; return performUpdate ( connection , new org.ovirt.engine.api.restapi.resource.QueryIdResolver < java.lang.String > ( org.ovirt.engine.core.common.queries.VdcQueryType.GetStorageServerConnectionById , org.ovirt.engine.core.common.queries.StorageServerConnectionQueryParametersBase.class ) , VdcActionType.UpdateStorageServerConnection , new org.ovirt.engine.api.restapi.resource.BackendStorageServerConnectionResource.UpdateParametersProvider ( ) ) ; }

Target:
public org.ovirt.engine.api.model.StorageConnection update ( org.ovirt.engine.api.model.StorageConnection connection ) { validateEnums ( org.ovirt.engine.api.model.StorageConnection.class , connection ) ; return performUpdate ( connection , new org.ovirt.engine.api.restapi.resource.QueryIdResolver < java.lang.String > ( org.ovirt.engine.core.common.queries.VdcQueryType.GetStorageServerConnectionById , org.ovirt.engine.core.common.queries.StorageServerConnectionQueryParametersBase.class ) , VdcActionType.UpdateStorageServerConnection , new org.ovirt.engine.api.restapi.resource.BackendStorageServerConnectionResource.UpdateParametersProvider ( ) ) ; }
Source:
public org.ovirt.engine.api.v3.types.V3NIC update ( org.ovirt.engine.api.v3.types.V3NIC nic ) { return adaptUpdate ( delegate :: update , nic ) ; }

Target:
public org.ovirt.engine.api.v3.types.V3NIC update ( org.ovirt.engine.api.v3.types.V3NIC nic ) { return adaptUpdate ( getDelegate ( ) :: update , nic ) ; }
Source:
public org.ovirt.engine.core.common.queries.VdcQueryReturnValue runInternalQuery ( org.ovirt.engine.core.common.queries.VdcQueryType queryType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase queryParameters ) { return runInternalQuery ( queryType , queryParameters , null ) ; }

Target:
public org.ovirt.engine.core.common.queries.VdcQueryReturnValue runInternalQuery ( org.ovirt.engine.core.common.queries.QueryType queryType , org.ovirt.engine.core.common.queries.VdcQueryParametersBase queryParameters ) { return runInternalQuery ( queryType , queryParameters , null ) ; }
Source:
protected org.ovirt.engine.api.model.StorageDomain lookupStorageDomainById ( org.ovirt.engine.core.compat.Guid storageDomainId ) { return getEntity ( org.ovirt.engine.api.model.StorageDomain.class , VdcQueryType.GetStorageDomainByIdAndStoragePoolId , new org.ovirt.engine.core.common.queries.StorageDomainAndPoolQueryParameters ( storageDomainId , dataCenterId ) , storageDomainId.toString ( ) ) ; }

Target:
protected org.ovirt.engine.api.model.StorageDomain lookupStorageDomainById ( org.ovirt.engine.core.compat.Guid storageDomainId ) { return getEntity ( org.ovirt.engine.api.model.StorageDomain.class , QueryType.GetStorageDomainByIdAndStoragePoolId , new org.ovirt.engine.core.common.queries.StorageDomainAndPoolQueryParameters ( storageDomainId , dataCenterId ) , storageDomainId.toString ( ) ) ; }
Source:
private org.ovirt.engine.api.model.StorageDomain getStorageDomainById ( org.ovirt.engine.core.compat.Guid id ) { return getEntity ( org.ovirt.engine.api.model.StorageDomain.class , VdcQueryType.GetStorageDomainById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) , id.toString ( ) ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.StorageDomain getStorageDomainById ( org.ovirt.engine.core.compat.Guid id ) { return getEntity ( org.ovirt.engine.core.common.businessentities.StorageDomain.class , VdcQueryType.GetStorageDomainById , new org.ovirt.engine.core.common.queries.IdQueryParameters ( id ) , id.toString ( ) ) ; }
Source:
public void canMigrateMacsToAnotherMacPoolWhenThereAreThereIsNothingToMigrate ( ) { org.mockito.Mockito.when ( vmNicDao.getAllMacsByClusterId ( cluster.getId ( ) ) ) . thenReturn ( java.util.Collections.emptyList ( ) ) ; org.junit.Assert.assertThat ( underTest.canMigrateMacsToAnotherMacPool ( cluster , targetMacPoolId ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void canMigrateMacsToAnotherMacPoolWhenThereAreThereIsNothingToMigrate ( ) { org.mockito.Mockito.when ( vmNicDao.getAllMacsByClusterId ( cluster.getId ( ) ) ) . thenReturn ( java.util.Collections.emptyList ( ) ) ; org.hamcrest.MatcherAssert.assertThat ( underTest.canMigrateMacsToAnotherMacPool ( cluster , targetMacPoolId ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void setOsType ( org.ovirt.engine.core.common.businessentities.VmOsType value ) { setos ( value ) ; }

Target:
public void setOsType ( org.ovirt.engine.core.common.businessentities.VmOsType value ) { setOs ( value ) ; }
Source:
public void setUp ( ) { clusterId = org.ovirt.engine.core.compat.Guid.NewGuid ( ) ; }

Target:
public void setUp ( ) { clusterId = org.ovirt.engine.core.compat.Guid.newGuid ( ) ; }
Source:
public boolean hasItemsSorted ( ) { return true ; }

Target:
public boolean useDefaultItemComparator ( ) { return false ; }
Source:
public boolean equals ( java.lang.Object obj ) { return ( obj != null ) && ( ( ( org.ovirt.engine.core.common.businessentities.Disk ) ( obj ) ) . isWipeAfterDelete ( ) ) ; }

Target:
protected boolean isPostZero ( ) { if ( ( cachedPostZero ) == null ) { cachedPostZero = isDiskWithWipeAfterDeleteExist ( getDiskDao ( ) . getAllForVm ( vm.getId ( ) ) ) ; } return cachedPostZero ; }
Source:
public void Executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterListModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterListModel ) ( result.getState ( ) ) ) ; localModel.PostOnSaveInternal ( result.getReturnValue ( ) ) ; }

Target:
public void executed ( org.ovirt.engine.ui.uicompat.FrontendActionAsyncResult result ) { org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterListModel localModel = ( ( org.ovirt.engine.ui.uicommonweb.models.datacenters.DataCenterListModel ) ( result.getState ( ) ) ) ; localModel.PostOnSaveInternal ( result.getReturnValue ( ) ) ; }
Source:
public java.lang.String getSearchString ( ) { return searchStringInput.getText ( ) ; }

Target:
public java.lang.String getSearchString ( ) { return ( searchStringPrefixLabel.getText ( ) ) + ( searchStringInput.getText ( ) ) ; }
Source:
public static void removeVirtioScsiControllers ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.removeVmDevices ( org.ovirt.engine.core.bll.utils.VmDeviceUtils.getVirtioScsiControllers ( vmId ) ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.VmDevice addVirtioScsiController ( org.ovirt.engine.core.compat.Guid vmId ) { return addManagedDevice ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , vmId ) , VmDeviceGeneralType.CONTROLLER , VmDeviceType.VIRTIOSCSI , org.ovirt.engine.core.bll.utils.VmDeviceUtils.EMPTY_SPEC_PARAMS , true , false ) ; }
Source:
public void testGetByUsernameWithInvalidName ( ) { org.ovirt.engine.core.common.businessentities.DbUser result = dao.getByUsername ( "IdoNoExist" ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetByUsernameWithInvalidName ( ) { org.ovirt.engine.core.common.businessentities.DbUser result = dao.getByUsernameAndDomain ( "IdoNoExist" , existingUser.getDomain ( ) ) ; org.junit.Assert.assertNull ( result ) ; }
Source:
public void setIpv4BootProtocol ( org.ovirt.engine.core.common.businessentities.network.Ipv4BootProtocol ipv4BootProtocol ) { this . ipv4BootProtocol = ( ipv4BootProtocol == null ) ? org.ovirt.engine.core.common.businessentities.network.Ipv4BootProtocol.NONE : ipv4BootProtocol ; }

Target:
public void setBootProtocol ( org.ovirt.engine.core.common.businessentities.network.Ipv4BootProtocol bootProtocol ) { this . bootProtocol = ( bootProtocol == null ) ? org.ovirt.engine.core.common.businessentities.network.Ipv4BootProtocol.NONE : bootProtocol ; }
Source:
protected org.ovirt.engine.core.dao.VmDeviceDAO prepareDao ( ) { return prepareDAO ( dbFacade.getVmDeviceDAO ( ) ) ; }

Target:
protected org.ovirt.engine.core.dao.VmDeviceDAO prepareDao ( ) { return prepareDAO ( dbFacade.getVmDeviceDao ( ) ) ; }
Source:
public void setLdapGuidEncoder ( org.ovirt.engine.core.bll.adbroker.LdapGuidEncoder ldapGuidEncoder ) { this . ldapGuidEncoder = ldapGuidEncoder ; }

Target:
public void setLdapIdEncoder ( org.ovirt.engine.core.bll.adbroker.LdapIdEncoder ldapIdEncoder ) { this . idEncoder = ldapIdEncoder ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getValue ( ) { return org.ovirt.engine.ui.common.widget.table.resize.ResizableHeader.TEMPLATE.templatedContent ( style.cellTableHeaderContent ( ) , text ) ; }

Target:
public com.google.gwt.safehtml.shared.SafeHtml getValue ( ) { return applyStyle ? org.ovirt.engine.ui.common.widget.table.resize.ResizableHeader.TEMPLATE.templatedContent ( style.cellTableHeaderContent ( ) , text ) : text ; }
Source:
private void verifyModel ( org.ovirt.engine.api.model.Watchdog model ) { assertEquals ( org.ovirt.engine.api.restapi.resource.BackendInstanceTypeWatchdogsResourceTest.WATCHDOG_ID.toString ( ) , model.getId ( ) ) ; verifyLinks ( model ) ; }

Target:
private void verifyModel ( org.ovirt.engine.api.model.Watchdog model ) { org.junit.Assert.assertEquals ( org.ovirt.engine.api.restapi.resource.BackendInstanceTypeWatchdogsResourceTest.WATCHDOG_ID.toString ( ) , model.getId ( ) ) ; verifyLinks ( model ) ; }
Source:
protected org.ovirt.engine.core.dao.DiskImageDAO getDiskImageDao ( ) { return org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getDiskImageDAO ( ) ; }

Target:
protected org.ovirt.engine.core.dao.DiskImageDAO getDiskImageDao ( ) { return org.ovirt.engine.core.bll.BaseImagesCommand.getDbFacade ( ) . getDiskImageDAO ( ) ; }
Source:
protected void updateBalloon ( org.ovirt.engine.core.common.businessentities.VmBase vmBase , boolean continueWithNext ) { if ( ! ( isSourceCustomInstanceTypeOrBlankTemplate ( ) ) ) { super . updateBalloon ( vmBase , continueWithNext ) ; } else if ( continueWithNext ) { updateRngDevice ( vmBase ) ; } }

Target:
protected void updateBalloon ( org.ovirt.engine.core.common.businessentities.VmBase vmBase , boolean continueWithNext ) { if ( ! ( isSourceCustomInstanceType ( ) ) ) { super . updateBalloon ( vmBase , continueWithNext ) ; } else if ( continueWithNext ) { updateRngDevice ( vmBase ) ; } }
Source:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotEnabledNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( true ) ; usb.setType ( UsbType.NATIVE ) ; assertEquals ( UsbPolicy.ENABLED_NATIVE , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED ) ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotEnabledNotSetNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setType ( UsbType.NATIVE ) ; org.junit.Assert.assertEquals ( UsbPolicy.DISABLED , org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.DISABLED ) ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = prepareDAO ( dbFacade.getTagDAO ( ) ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = prepareDAO ( dbFacade.getTagDao ( ) ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getQuotaId ( ) { return org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getParameters ( ) . getQuotaId ( ) ; }

Target:
private org.ovirt.engine.core.compat.Guid getDestinationQuotaId ( ) { return org.ovirt.engine.core.bll.MoveOrCopyDiskCommand.getParameters ( ) . getQuotaId ( ) ; }
Source:
public void encodeWithNullDiskDescription ( ) throws java.lang.Exception { disk.setDiskAlias ( "DiskAlias" ) ; disk.setDiskDescription ( null ) ; assertDiskDescriptionMap ( disk , org.ovirt.engine.core.bll.storage.disk.image.MetadataDiskDescriptionHandlerTest.generateDiskAliasJsonEntry ( "DiskAlias" ) , org.ovirt.engine.core.bll.storage.disk.image.MetadataDiskDescriptionHandlerTest.generateDiskDescriptionJsonEntry ( "" ) ) ; }

Target:
public void encodeDecodeWithEmptyDiskDescription ( ) throws java.lang.Exception { disk.setDiskAlias ( "DiskAlias" ) ; disk.setDiskDescription ( "" ) ; assertDiskDescriptionMap ( disk , generateDiskAliasJsonEntry ( "DiskAlias" ) , generateDiskDescriptionJsonEntry ( "" ) ) ; assertDiskDescriptionDecoding ( disk ) ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.LUN_storage_server_connection_map a ) { return a.getLunId ( ) . equals ( lunId ) ; }

Target:
public boolean eval ( org.ovirt.engine.core.common.businessentities.storage.LUNStorageServerConnectionMap a ) { return a.getLunId ( ) . equals ( lunId ) ; }
Source:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.Permission , org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.configure.PermissionListModel < org.ovirt.engine.core.common.businessentities.VM > > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.virtualMachine.SubTabVirtualMachinePermissionPresenter.constants.virtualMachinePermissionSubTabLabel ( ) , 7 , modelProvider ) ; }

Target:
static com.gwtplatform.mvp.client.TabData getTabData ( org.ovirt.engine.ui.common.uicommon.model.SearchableDetailModelProvider < org.ovirt.engine.core.common.businessentities.Permission , org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel < java.lang.Void > , org.ovirt.engine.ui.uicommonweb.models.configure.PermissionListModel < org.ovirt.engine.core.common.businessentities.VM > > modelProvider ) { return new org.ovirt.engine.ui.common.widget.tab.ModelBoundTabData ( org.ovirt.engine.ui.webadmin.section.main.presenter.tab.virtualMachine.SubTabVirtualMachinePermissionPresenter.constants.virtualMachinePermissionSubTabLabel ( ) , 8 , modelProvider ) ; }
Source:
public void testSetupNetworksNotSyncsNetwork ( ) throws java.lang.Exception { setUpNetworkQueryExpectations ( 1 ) ; doTestSetupNetworksSyncsNetwork ( false , java.util.Collections.< java.lang.String > emptyList ( ) ) ; }

Target:
public void testSetupNetworksNotSyncsNetwork ( ) throws java.lang.Exception { setUpNetworkQueryExpectations ( 1 ) ; setUpEntityQueryExpectations ( 1 ) ; doTestSetupNetworksSyncsNetwork ( false , java.util.Collections.< java.lang.String > emptyList ( ) ) ; }
Source:
public void moveShareableDisk ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) ) ; initSrcStorageDomain ( ) ; initDestStorageDomain ( StorageType.NFS ) ; initVmDiskImage ( true ) ; org.junit.Assert.assertTrue ( command.validate ( ) ) ; }

Target:
public void moveDiskToGluster ( ) { initializeCommand ( new org.ovirt.engine.core.common.businessentities.storage.DiskImage ( ) , VmEntityType.VM ) ; initSrcStorageDomain ( ) ; initDestStorageDomain ( StorageType.GLUSTERFS ) ; org.junit.Assert.assertTrue ( command.validate ( ) ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.DiskImage diskImage = ( ( org.ovirt.engine.core.common.businessentities.DiskImage ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ) ) ; return diskImage.getDiskDescription ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { org.ovirt.engine.core.common.businessentities.storage.DiskImage diskImage = ( ( org.ovirt.engine.core.common.businessentities.storage.DiskImage ) ( ( ( org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel ) ( object.getEntity ( ) ) ) . getDisk ( ) ) ) ; return diskImage.getDiskDescription ( ) ; }
Source:
protected boolean isConsoleEnabled ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel model ) { org.ovirt.engine.ui.uicommonweb.models.ConsoleProtocol protocol = consoleUtils.determineConnectionProtocol ( model ) ; return consoleUtils.canShowConsole ( protocol , model ) ; }

Target:
protected boolean shouldRenderCell ( org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalItemModel model ) { org.ovirt.engine.ui.uicommonweb.models.ConsoleProtocol protocol = consoleUtils.determineConnectionProtocol ( model ) ; return consoleUtils.canShowConsole ( protocol , model ) ; }
Source:
public static void orderAgents ( java.util.List < org.ovirt.engine.core.common.businessentities.FenceAgent > fenceAgents ) { synchronized ( fenceAgents ) { java.util.Collections.sort ( fenceAgents , new org.ovirt.engine.core.common.businessentities.FenceAgent.FenceAgentOrderComparator ( ) ) ; } }

Target:
public static void orderAgents ( java.util.List < org.ovirt.engine.core.common.businessentities.pm.FenceAgent > fenceAgents ) { synchronized ( fenceAgents ) { java.util.Collections.sort ( fenceAgents , new org.ovirt.engine.core.common.businessentities.pm.FenceAgent.FenceAgentOrderComparator ( ) ) ; } }
Source:
public static boolean IsMatch ( java.lang.String input , java.lang.String pattern , int options ) { return new org.ovirt.engine.core.compat.Regex ( pattern , options ) . IsMatch ( input ) ; }

Target:
public static boolean isMatch ( java.lang.String input , java.lang.String pattern , int options ) { return new org.ovirt.engine.core.compat.Regex ( pattern , options ) . isMatch ( input ) ; }
Source:
protected org.springframework.jdbc.core.simple.ParameterizedRowMapper < java.lang.Boolean > createBooleanMapper ( ) { return new org.springframework.jdbc.core.simple.ParameterizedRowMapper < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { return rs.getBoolean ( 1 ) ; } } ; }

Target:
protected org.springframework.jdbc.core.RowMapper < java.lang.Boolean > createBooleanMapper ( ) { return new org.springframework.jdbc.core.RowMapper < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean mapRow ( java.sql.ResultSet rs , int rowNum ) throws java.sql.SQLException { return rs.getBoolean ( 1 ) ; } } ; }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturn allocateVolume ( java.lang.String spUUID , java.lang.String sdUUID , java.lang.String imgGUID , java.lang.String volUUID , java.lang.String size ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturn glusterWebhookDelete ( java.lang.String url ) ;
Source:
public < T > void bind ( java.lang.Class < T > pureClsType , T instance ) { overrideInjector ( mockedInjector ) ; org.mockito.Mockito.when ( mockedInjector.instanceOf ( pureClsType ) ) . thenReturn ( instance ) ; }

Target:
protected void starting ( org.junit.runner.Description description ) { super . starting ( description ) ; overrideInjector ( mockedInjector ) ; }
Source:
static org.ovirt.engine.core.common.businessentities.network setUpEntityExpectations ( org.ovirt.engine.core.common.businessentities.network entity , boolean isDisplay , int index ) { org.easymock.classextension.EasyMock.expect ( entity.getis_display ( ) ) . andReturn ( isDisplay ) . anyTimes ( ) ; return org.ovirt.engine.api.restapi.resource.AbstractBackendNetworksResourceTest.setUpEntityExpectations ( entity , index ) ; }

Target:
static org.ovirt.engine.api.model.Network setUpEntityExpectations ( org.ovirt.engine.api.model.Network entity , boolean isDisplay , int index ) { org.easymock.classextension.EasyMock.expect ( entity.getis_display ( ) ) . andReturn ( isDisplay ) . anyTimes ( ) ; return org.ovirt.engine.api.restapi.resource.AbstractBackendNetworksResourceTest.setUpEntityExpectations ( entity , index ) ; }
Source:
public void initialize ( ) { super . initialize ( ) ; getModel ( ) . getActivateDomain ( ) . setEntity ( false ) ; }

Target:
public void initialize ( ) { super . initialize ( ) ; getModel ( ) . getActivateDomain ( ) . setEntity ( false ) ; initializeItems ( ) ; }
Source:
protected void OnEntityChanged ( ) { super . OnEntityChanged ( ) ; if ( ( getEntity ( ) ) != null ) { getSearchCommand ( ) . Execute ( ) ; UpdateIsDiskHotPlugAvailable ( ) ; UpdateLiveStorageMigrationEnabled ( ) ; } UpdateActionAvailability ( ) ; }

Target:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; if ( ( getEntity ( ) ) != null ) { getSearchCommand ( ) . execute ( ) ; updateIsDiskHotPlugAvailable ( ) ; updateLiveStorageMigrationEnabled ( ) ; } updateActionAvailability ( ) ; }
Source:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand ) { setWindow ( null ) ; setWindow ( model ) ; }

Target:
public void executeCommand ( org.ovirt.engine.ui.uicommonweb.UICommand uiCommand ) { model.onRestoreVms ( new org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback ( ) { @ java.lang.Override public void executed ( org.ovirt.engine.ui.uicompat.FrontendMultipleActionAsyncResult result ) { setWindow ( null ) ; } } ) ; }
Source:
public void Cancel ( ) { CancelConfirm ( ) ; setWindow ( null ) ; }

Target:
protected void onSelectedItemChanged ( ) { super . onSelectedItemChanged ( ) ; updateActionAvailability ( ) ; }
Source:
java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > getAllByVMTemplateName ( java.lang.String vmTemplateName , org.ovirt.engine.core.compat.Guid userID , boolean isFiltered ) ;

Target:
java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > getAllByVMTemplateId ( org.ovirt.engine.core.compat.Guid vmTemplateId , org.ovirt.engine.core.compat.Guid userID , boolean isFiltered ) ;
Source:
protected java.util.List < org.ovirt.engine.core.common.businessentities.LUNs > getLunsForVgId ( java.lang.String vgId ) { return org.ovirt.engine.core.bll.GetLunsByVgIdQuery.getDbFacade ( ) . getLunDAO ( ) . getAllForVolumeGroup ( getVgId ( ) ) ; }

Target:
protected java.util.List < org.ovirt.engine.core.common.businessentities.LUNs > getLunsForVgId ( java.lang.String vgId ) { return org.ovirt.engine.core.bll.GetLunsByVgIdQuery.getDbFacade ( ) . getLunDao ( ) . getAllForVolumeGroup ( getVgId ( ) ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > createVG ( java.lang.String sdUUID , java.lang.String [ ] deviceList ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > teardownImage ( java.lang.String sdID , java.lang.String spID , java.lang.String imageID , java.lang.String volumeID ) ;
Source:
public void testGetAllForConnection ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllForConnection ( org.ovirt.engine.core.dao.StorageDomainDaoTest.EXISTING_CONNECTION ) ; org.ovirt.engine.core.dao.StorageDomainDaoTest.assertGetAllForStoragePoolResult ( result , org.ovirt.engine.core.dao.StorageDomainDaoTest.EXISTING_STORAGE_POOL_ID ) ; }

Target:
public void testGetAllForConnection ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getAllForConnection ( org.ovirt.engine.core.dao.StorageDomainDaoTest.EXISTING_CONNECTION ) ; org.ovirt.engine.core.dao.StorageDomainDaoTest.assertGetAllForStoragePoolResult ( result , FixturesTool.STORAGE_POOL_NFS ) ; }
Source:
public java.lang.String translateVdcFault ( final org.ovirt.engine.core.common.errors.VdcFault fault ) { return getVdsmErrorsTranslator ( ) . TranslateErrorTextSingle ( ( ( fault.getError ( ) ) == null ? fault.getMessage ( ) : fault.getError ( ) . toString ( ) ) ) ; }

Target:
public java.lang.String translateVdcFault ( final org.ovirt.engine.core.common.errors.VdcFault fault ) { return getVdsmErrorsTranslator ( ) . translateErrorTextSingle ( ( ( fault.getError ( ) ) == null ? fault.getMessage ( ) : fault.getError ( ) . toString ( ) ) ) ; }
Source:
protected void updateVolumeType ( org.ovirt.engine.core.common.businessentities.StorageType storageType ) { getVolumeType ( ) . setSelectedItem ( ( storageType.isBlockDomain ( ) ? org.ovirt.engine.core.common.businessentities.VolumeType.Preallocated : org.ovirt.engine.core.common.businessentities.VolumeType.Sparse ) ) ; volumeType_SelectedItemChanged ( ) ; }

Target:
protected void updateVolumeType ( org.ovirt.engine.core.common.businessentities.storage.StorageType storageType ) { getVolumeType ( ) . setSelectedItem ( ( storageType.isBlockDomain ( ) ? org.ovirt.engine.core.common.businessentities.storage.VolumeType.Preallocated : org.ovirt.engine.core.common.businessentities.storage.VolumeType.Sparse ) ) ; volumeType_SelectedItemChanged ( ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.Tags GetTagById ( org.ovirt.engine.core.compat.Guid tagId ) { if ( tagsMapByID.containsKey ( tagId ) ) { return tagsMapByID.get ( tagId ) ; } else { return null ; } }

Target:
public org.ovirt.engine.core.common.businessentities.Tags getTagById ( org.ovirt.engine.core.compat.Guid tagId ) { if ( tagsMapByID.containsKey ( tagId ) ) { return tagsMapByID.get ( tagId ) ; } else { return null ; } }
Source:
protected void executeCommand ( ) { org.ovirt.engine.core.common.businessentities.FenceAgent agent = org.ovirt.engine.core.bll.UpdateFenceAgentCommand.getParameters ( ) . getAgent ( ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getFenceAgentDao ( ) . update ( agent ) ; org.ovirt.engine.core.bll.UpdateFenceAgentCommand.setSucceeded ( true ) ; }

Target:
protected void executeCommand ( ) { org.ovirt.engine.core.common.businessentities.pm.FenceAgent agent = org.ovirt.engine.core.bll.UpdateFenceAgentCommand.getParameters ( ) . getAgent ( ) ; org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getFenceAgentDao ( ) . update ( agent ) ; org.ovirt.engine.core.bll.UpdateFenceAgentCommand.setSucceeded ( true ) ; }
Source:
public void getPlaceHolderListTestInvalidWithGap ( ) { java.lang.String testMessage = "This is a test if {0} can actually work out {2}" ; testMessages.getPlaceHolderList ( testMessage ) ; org.junit.Assert.fail ( "Should not get here" ) ; }

Target:
public void getPlaceHolderListTestInvalidWithGap ( ) { java.lang.String testMessage = "This is a test if {0} can actually work out {2}" ; org.junit.jupiter.api.Assertions.assertThrows ( java.lang.IllegalArgumentException.class , ( ) -> testMessages.getPlaceHolderList ( testMessage ) ) ; }
Source:
protected boolean checkStoragePoolNameLengthValid ( ) { boolean result = true ; if ( ( org.ovirt.engine.core.bll.storage.StorageHandlingCommandBase.getStoragePool ( ) . getName ( ) . length ( ) ) > ( getStoragePoolNameSizeLimit ( ) ) ) { result = false ; addCanDoActionMessage ( VdcBllMessages.ACTION_TYPE_FAILED_NAME_LENGTH_IS_TOO_LONG ) ; } return result ; }

Target:
protected boolean checkStoragePoolNameLengthValid ( ) { boolean result = true ; if ( ( org.ovirt.engine.core.bll.storage.StorageHandlingCommandBase.getStoragePool ( ) . getName ( ) . length ( ) ) > ( getStoragePoolNameSizeLimit ( ) ) ) { result = false ; addCanDoActionMessage ( EngineMessage.ACTION_TYPE_FAILED_NAME_LENGTH_IS_TOO_LONG ) ; } return result ; }
Source:
public java.lang.String toString ( ) { return ( ( ( getClass ( ) . getSimpleName ( ) ) + " [mStatus=" ) + ( mStatus ) ) + "]" ; }

Target:
public java.lang.String toString ( ) { return org.ovirt.engine.core.common.utils.ToStringBuilder.forInstance ( this ) . append ( "mStatus" , ( isRequestCompleted ( ) ? getXmlRpcStatus ( ) : "Pending Response" ) ) . build ( ) ; }
Source:
protected static boolean doesStorageDomainHaveSpaceForRequest ( org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain , long sizeRequested ) { return new org.ovirt.engine.core.bll.validator.StorageDomainValidator ( storageDomain ) . isDomainHasSpaceForRequest ( sizeRequested ) . isValid ( ) ; }

Target:
private static boolean graphicsResetInParams ( org.ovirt.engine.core.common.businessentities.GraphicsType type , java.util.Map < org.ovirt.engine.core.common.businessentities.GraphicsType , org.ovirt.engine.core.common.businessentities.GraphicsDevice > graphicsDevices ) { return ( graphicsDevices.containsKey ( type ) ) && ( ( graphicsDevices.get ( type ) ) == null ) ; }
Source:
private java.util.List < org.ovirt.engine.core.common.businessentities.VDS > createHostList ( org.ovirt.engine.core.common.businessentities.VDS ... hosts ) { java.util.List < org.ovirt.engine.core.common.businessentities.VDS > hostList = new java.util.LinkedList < > ( ) ; hostList.addAll ( java.util.Arrays.asList ( hosts ) ) ; return hostList ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VDS > answer ( org.mockito.invocation.InvocationOnMock invocationOnMock ) throws java.lang.Throwable { return java.util.Arrays.asList ( hosts ) ; }
Source:
public void testAddUser2 ( ) throws java.lang.Exception { setUpEntityQueryExpectations ( VdcQueryType.GetDomainList , org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , setUpDomains ( ) ) ; setUpAddUserExpectations ( ( ( ( "ADUSER@" + ( DOMAIN ) ) + ":: username=" ) + ( NAMES [ 0 ] ) ) ) ; org.ovirt.engine.api.model.User model = new org.ovirt.engine.api.model.User ( ) ; org.ovirt.engine.api.model.Domain domain = new org.ovirt.engine.api.model.Domain ( ) ; domain.setName ( org.ovirt.engine.api.restapi.resource.aaa.DOMAIN ) ; domain.setId ( org.ovirt.engine.api.restapi.utils.DirectoryEntryIdUtils.encode ( domain.getName ( ) ) ) ; model.setDomain ( domain ) ; model.setUserName ( NAMES [ 0 ] ) ; javax.ws.rs.core.Response response = collection.add ( model ) ; verifyAddUser ( response ) ; }

Target:
public void testAddUser2 ( ) throws java.lang.Exception { setUpEntityQueryExpectations ( QueryType.GetDomainList , org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class , new java.lang.String [ ] { } , new java.lang.Object [ ] { } , setUpDomains ( ) ) ; setUpAddUserExpectations ( ( ( ( "ADUSER@" + ( DOMAIN ) ) + ":: username=" ) + ( NAMES [ 0 ] ) ) ) ; org.ovirt.engine.api.model.User model = new org.ovirt.engine.api.model.User ( ) ; org.ovirt.engine.api.model.Domain domain = new org.ovirt.engine.api.model.Domain ( ) ; domain.setName ( org.ovirt.engine.api.restapi.resource.aaa.DOMAIN ) ; domain.setId ( org.ovirt.engine.api.restapi.utils.DirectoryEntryIdUtils.encode ( domain.getName ( ) ) ) ; model.setDomain ( domain ) ; model.setUserName ( NAMES [ 0 ] ) ; javax.ws.rs.core.Response response = collection.add ( model ) ; verifyAddUser ( response ) ; }
Source:
public void settag_id ( org.ovirt.engine.core.compat.Guid id ) { this . id = id ; }

Target:
public void setTagId ( org.ovirt.engine.core.compat.Guid id ) { this . id = id ; }