Search in sources :

Example 6 with ContextPathStrategyMultiplexerImpl

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");
}
Also used : ContextPathStrategyMultiplexerImpl(org.apache.sling.caconfig.management.impl.ContextPathStrategyMultiplexerImpl) Before(org.junit.Before)

Aggregations

ContextPathStrategyMultiplexerImpl (org.apache.sling.caconfig.management.impl.ContextPathStrategyMultiplexerImpl)6 Before (org.junit.Before)3 DefaultContextPathStrategy (org.apache.sling.caconfig.resource.impl.def.DefaultContextPathStrategy)2 ConfigurationResourceResolverImpl (org.apache.sling.caconfig.resource.impl.ConfigurationResourceResolverImpl)1 DefaultConfigurationResourceResolvingStrategy (org.apache.sling.caconfig.resource.impl.def.DefaultConfigurationResourceResolvingStrategy)1