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:21:00 UTC
[jira] [Created] (SLING-8609) sling-mock: Support creating nested
resources with ContentBuilder
Stefan Seifert created SLING-8609:
-------------------------------------
Summary: 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
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)