Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-8609

sling-mock: Support creating nested resources with ContentBuilder

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      it should be possible to also create nested resources using the ContentBuilder.create method:

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

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            sseifert Stefan Seifert
            sseifert Stefan Seifert
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment