sling-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Platon <dpla...@gmail.com>
Subject [CaConfig][OSGI Mocks] Provide custom configuration for the CaConfig components...
Date Tue, 28 Jan 2020 14:31:24 GMT
Hi everyone,

I'm trying to use the "Apache Sling Context-Aware Configuration Mock
Plugin" in my unit tests and I stumbled into an issue: I want to
provide a custom configuration for
org.apache.sling.caconfig.impl.ConfigurationResolverImpl and it
doesn't work.

I followed the docs at [0] to provide my own setting for
configBucketNames but it's not taken into account. I'm pretty sure I
do something wrong but I cannot figure out what.

Relevant code at [1].

Thank you and have a nice day,
___________________________
Daniel Platon

[0] https://sling.apache.org/documentation/development/osgi-mock.html#provide-your-own-configuration-via-configadmin
[1] https://github.com/adobe/aem-core-cif-components/blob/e0261af7964877b75143b922e09c54e8b33a584c/bundles/core/src/test/java/com/adobe/cq/commerce/core/components/client/MagentoGraphqlClientTest.java#L72

Mime
View raw message