Thanks Stefan, I tried it out to no avail; here is a quick harness [1] I poke around the code, and dont see where these properties are used in the code? Am I missing something?
Im on the latest sling mock bundle (2.2.12) and also played around w the param format; String[] vs "[/:/,/content/,<]", as well as the order, but it didnt work, [1] https://gist.github.com/davidjgonzalez/38550e36e66be3c234c6944fabf67d8f [2] https://github.com/apache/sling/blob/trunk/testing/mocks/resourceresolver-mock/src/main/java/org/apache/sling/testing/resourceresolver/MockResourceResolver.java#L118 On Fri, Jun 23, 2017 at 9:41 AM, Stefan Seifert <sseif...@pro-vision.de> wrote: > yes, you can set a different value for the resource.resolver.mapping > property. > > when you create the SlingContext object for the junit rule using the > SlingContextBuilder, you have method resourceResolverFactoryActivat > orProps. > pass in a hashmap for this method with property resource.resolver.mapping > set to your mapping string array. > > stefan > > >-----Original Message----- > >From: David G. [mailto:davidjgonza...@gmail.com] > >Sent: Thursday, June 22, 2017 3:40 PM > >To: users@sling.apache.org > >Subject: [Sling Testing] Mocking a Resource Resolver w/ URL Mappings > > > >Hi all, > > > >I would like to mock a Resource Resolver but provide various URL Mappings > >for my unit testing (ie. what is set via Apache Sling Resource Resolver > >Factory > URL Mapping) > > > >Is there a way to achieve this with the new (and great) Sling Mocks? > > > >Thanks >