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 2023/05/11 07:45:00 UTC

[jira] [Resolved] (SLING-11839) caconfig-mock-plugin: Support writing nested configurations and configuration collections

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

Stefan Seifert resolved SLING-11839.
------------------------------------
    Resolution: Fixed

https://github.com/apache/sling-org-apache-sling-testing-caconfig-mock-plugin/commit/8d6b363600277858541e314a22558043c8eb928f

> caconfig-mock-plugin: Support writing nested configurations and configuration collections
> -----------------------------------------------------------------------------------------
>
>                 Key: SLING-11839
>                 URL: https://issues.apache.org/jira/browse/SLING-11839
>             Project: Sling
>          Issue Type: New Feature
>          Components: Testing
>            Reporter: Stefan Seifert
>            Assignee: Stefan Seifert
>            Priority: Major
>             Fix For: Context-Aware Configuration Mock Plugin 1.5.0
>
>
> currently it's quite cumbersome to persist nested context-aware configurations in unit tests, as the helper methods in MockContextAwareConfig.writeConfiguration* only support writing single configurations and configurations lists without nested structures.
> without changing the API signatures of those, it should be supported that the maps passed to this helper methods contain:
> * nested maps which are persisted as nested configurations with the given key
> * nested lists with maps with are persisted as nested configuration lists with the given key



--
This message was sent by Atlassian Jira
(v8.20.10#820010)