You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Stefan Seifert (JIRA)" <ji...@apache.org> on 2019/08/01 15:23:00 UTC
[jira] [Resolved] (SLING-8609) sling-mock: Support creating nested
resources with ContentBuilder
[ https://issues.apache.org/jira/browse/SLING-8609?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stefan Seifert resolved SLING-8609.
-----------------------------------
Resolution: Fixed
https://github.com/apache/sling-org-apache-sling-testing-sling-mock/commit/2dbadff63f9652e4e558be8b41a8b983717c0de9
> sling-mock: Support creating nested resources with ContentBuilder
> -----------------------------------------------------------------
>
> Key: SLING-8609
> URL: https://issues.apache.org/jira/browse/SLING-8609
> Project: Sling
> Issue Type: Improvement
> Components: Testing
> Reporter: Stefan Seifert
> Assignee: Stefan Seifert
> Priority: Major
> Labels: mocks
> Fix For: Testing Sling Mock 2.3.16
>
>
> it should be possible to also create nested resources using the ContentBuilder.create method:
> {code:java}
> Resource nested = context.create().resource("/my/path",
> ImmutableMap.<String,Object>of(
> "prop1", "value1",
> "child1", ImmutableMap.<String,Object>of(
> "prop2","value2",
> "child2", ImmutableMap.<String,Object>of(
> "prop3", "value3")
> )
> ));
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)