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

sling-mock: Provide ImmutableValueMap class

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Testing Sling Mock 2.5.0
    • Component/s: Testing
    • Labels:
      None

      Description

      in unit tests it's often required to provide a map with properties to be used as valuemap.
      to make the code as compact as possible we introduce a class ImmutableValueMap featuring the same semantics as the guava ImmutableMap class, but producing an instance of Sling ValueMap.

      it's similar to https://wcm.io/sling/commons/apidocs/io/wcm/sling/commons/resource/ImmutableValueMap.html

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: