Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-1452 testing: mock objects for content
  3. MAGNOLIA-1924

MockContent: Add support for same-name-siblings

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Outdated
    • Major
    • None
    • 3.5 RC2
    • None
    • None

    Description

      The MockContent class does not support adding multiple nodes with same name, so behaves differently in tests than the actual JCR implementation.
      e.g. executing node.createContent("0", ...) twice should create something like:
      /node/0
      /node/00
      Current implemenation stores those childnodes in a HashMap, thus executing the method call above overwrites the child node 0.

      Attachments

        Activity

          People

            Unassigned Unassigned
            vivi Vivian Steller
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: