Search in sources :

Example 1 with UrlPatternProcessorResolver

use of org.craftercms.core.processors.impl.resolvers.UrlPatternProcessorResolver in project core by craftercms.

the class UrlPatternProcessorResolverTest method setUpTestResolver.

private void setUpTestResolver() {
    Map<String, ItemProcessor> processors = new HashMap<String, ItemProcessor>();
    processors.put(PAGES_PROCESSOR_PATTERN, pagesProcessor);
    processors.put(STATIC_ASSETS_PROCESSOR_PATTERN, staticAssetsProcessor);
    resolver = new UrlPatternProcessorResolver();
    resolver.setPatternToProcessorMappings(processors);
}
Also used : ItemProcessor(org.craftercms.core.processors.ItemProcessor) HashMap(java.util.HashMap) UrlPatternProcessorResolver(org.craftercms.core.processors.impl.resolvers.UrlPatternProcessorResolver)

Aggregations

HashMap (java.util.HashMap)1 ItemProcessor (org.craftercms.core.processors.ItemProcessor)1 UrlPatternProcessorResolver (org.craftercms.core.processors.impl.resolvers.UrlPatternProcessorResolver)1