Search in sources :

Example 6 with ItemProcessor

use of org.craftercms.core.processors.ItemProcessor 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

ItemProcessor (org.craftercms.core.processors.ItemProcessor)6 Test (org.junit.Test)4 HashMap (java.util.HashMap)2 Item (org.craftercms.core.service.Item)2 MetaDataProcessorResolver (org.craftercms.core.processors.impl.resolvers.MetaDataProcessorResolver)1 UrlPatternProcessorResolver (org.craftercms.core.processors.impl.resolvers.UrlPatternProcessorResolver)1