You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Stefan Seifert (Jira)" <ji...@apache.org> on 2020/04/14 18:31:00 UTC

[jira] [Created] (SLING-9374) sling-mock: Provide ImmutableValueMap class

Stefan Seifert created SLING-9374:
-------------------------------------

             Summary: sling-mock: Provide ImmutableValueMap class
                 Key: SLING-9374
                 URL: https://issues.apache.org/jira/browse/SLING-9374
             Project: Sling
          Issue Type: New Feature
          Components: Testing
            Reporter: Stefan Seifert
            Assignee: Stefan Seifert
             Fix For: Testing Sling Mock 2.4.2


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



--
This message was sent by Atlassian Jira
(v8.3.4#803005)