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/09 20:07:00 UTC

[jira] [Closed] (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 closed SLING-8609.
---------------------------------

> 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)