[ 
https://issues.apache.org/jira/browse/SLING-5770?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15322375#comment-15322375
 ] 

Konrad Windszus edited comment on SLING-5770 at 6/9/16 11:34 AM:
-----------------------------------------------------------------

Great, I didn't know about that. For that purpose it would be very good though 
if the {{o.a.s.testing.mock.osgi.MapUtil}} would be public. Otherwise my test 
cannot leverage propertiesMergeWithOsgiMetadata and I have to come up with all 
default property values as well, even if I only intend to overwrite the mapping.

Also from a performance perspective it would be good if I would be able to 
provide the configuration upfront (instead of doing a reconfiguration).


was (Author: kwin):
Great, I didn't know about that. For that purpose it would be very good though 
if the {{o.a.s.testing.mock.osgi.MapUtil}} would be public. Otherwise my test 
cannot leverage propertiesMergeWithOsgiMetadata and I have to come up with all 
default property values as well, even if I only intend to overwrite the mapping.

> Allow to configure resource resolver mapping
> --------------------------------------------
>
>                 Key: SLING-5770
>                 URL: https://issues.apache.org/jira/browse/SLING-5770
>             Project: Sling
>          Issue Type: Improvement
>          Components: Testing
>    Affects Versions: Testing Sling Mock 1.6.2
>            Reporter: Konrad Windszus
>
> Currently the {{ResourceResolverFactoryActivator}} being registered in 
> https://github.com/apache/sling/blob/trunk/testing/mocks/sling-mock/src/main/java/org/apache/sling/testing/mock/sling/ResourceResolverFactoryInitializer.java#L123
>  is not configured at all.
> Since resource resolver mapping is a topic which is often implemented in the 
> wrong way, it should be possible to setup some mapping for SlingContext to 
> allow to test in a more realistic way.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to