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)

Reply via email to