use of com.enonic.xp.portal.impl.processor.ProcessorChainResolver in project xp by enonic.
the class PageRendererTest method configureEmptyComponent.
private void configureEmptyComponent(RenderMode mode) {
// setup
portalRequest.setMode(mode);
renderer = new PageRenderer();
final PostProcessorImpl postProcessor = new PostProcessorImpl();
postProcessor.addInjection(new TestPostProcessInjection());
renderer.setPostProcessor(postProcessor);
final ProcessorChainResolver resolver = Mockito.mock(ProcessorChainResolver.class);
Mockito.when(resolver.resolve(this.portalRequest)).thenReturn(ResponseProcessorDescriptors.empty());
renderer.setProcessorChainResolver(resolver);
}
Aggregations