use of org.apache.sling.caconfig.management.impl.ContextPathStrategyMultiplexerImpl in project sling by apache.
the class DefaultConfigurationResourceResolvingStrategyTest method setUp.
@Before
public void setUp() {
context.registerInjectActivateService(new DefaultContextPathStrategy());
context.registerInjectActivateService(new ContextPathStrategyMultiplexerImpl());
// content resources
context.build().resource("/content/site1", PROPERTY_CONFIG_REF, "/conf/site1").resource("/content/site2", PROPERTY_CONFIG_REF, "/conf/site2").resource("/content/mainsite", PROPERTY_CONFIG_REF, "/conf/main").resource("/content/mainsite/sub", PROPERTY_CONFIG_REF, "sub").resource("/content/mainsite/sub/some/where/deep", PROPERTY_CONFIG_REF, "sub/deep");
site1Page1 = context.create().resource("/content/site1/page1");
site2Page1 = context.create().resource("/content/site2/page1");
subPage = context.create().resource("/content/mainsite/sub/page1");
deepPage = context.create().resource("/content/mainsite/sub/some/where/deep/page1");
}
Aggregations