[
https://issues.apache.org/jira/browse/SLING-4024?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14165949#comment-14165949
]
Stefan Seifert commented on SLING-4024:
---------------------------------------
this is quite similar to
http://wcm.io/testing/sling-mock/usage-content-loader.html
source:
https://github.com/wcm-io/wcm-io/blob/master/testing/sling-mock/src/main/java/io/wcm/testing/mock/sling/loader/ContentLoader.java
but the wcm.io version is more sophisticated in data types it supports.
if there is interest i can donate it to apache sling (perhaps together with the
whole jcr-mock, osgi-mock, sling-mock testing projects from wcm.io).
> Allow the ResourceResolver Mock Factory to initialize a Resolver via JSON
> -------------------------------------------------------------------------
>
> Key: SLING-4024
> URL: https://issues.apache.org/jira/browse/SLING-4024
> Project: Sling
> Issue Type: Improvement
> Components: Testing
> Affects Versions: Testing ResourceResolver Mock 0.3.0
> Reporter: dan mcweeney
>
> Sling can easily produce JSON for a tree of resources. It would make things
> much easier to be able to initialize the Resource Resolvers produced from the
> MockResourceResolverFactory with this JSON. It will allow people to create
> test fixtures based off real data.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)