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/05/02 14:34:00 UTC

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

     [ https://issues.apache.org/jira/browse/SLING-9374?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stefan Seifert closed SLING-9374.
---------------------------------

> 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
>            Priority: Major
>             Fix For: Testing Sling Mock 2.5.0
>
>
> 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)