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

sling-mock: Support creating nested resources with ContentBuilder

    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

            People

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

              Dates

                Created:
                Updated:
                Resolved: