sling-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Seifert (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SLING-8609) sling-mock: Support creating nested resources with ContentBuilder
Date Thu, 01 Aug 2019 15:23:00 GMT

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

Mime
View raw message