Re: [caconfig][mock] configuration resolver mock?

2017-01-04 Thread Nicolas Peltier
awesome! thanks! On Jan 4, 2017, at 3:07 PM, Stefan Seifert > wrote: you have the possibility to set your custom config via ConfigAdmin in the mock-osgi context. i've added and example to the documentation:

RE: [caconfig][mock] configuration resolver mock?

2017-01-04 Thread Stefan Seifert
you have the possibility to set your custom config via ConfigAdmin in the mock-osgi context. i've added and example to the documentation: http://sling.apache.org/documentation/development/osgi-mock.html#provide-your-own-configuration-via-configadmin you can wrap the code for this in an

Re: [caconfig][mock] configuration resolver mock?

2017-01-04 Thread Nicolas Peltier
Thanks Stefan! one thing that is not clear to me: how should i configure CA services in my unit tests. I know we have different views for DefaultConfigurationResourceResolvingStrategy’s configPath property, but e.g. setting DefaultContextPathStrategy’s configRefResourceNames to “[jcr:content]”