Search in sources :

Example 1 with TestPostProcessInjection

use of com.enonic.xp.portal.impl.postprocess.TestPostProcessInjection 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);
}
Also used : TestPostProcessInjection(com.enonic.xp.portal.impl.postprocess.TestPostProcessInjection) PostProcessorImpl(com.enonic.xp.portal.impl.postprocess.PostProcessorImpl) ProcessorChainResolver(com.enonic.xp.portal.impl.processor.ProcessorChainResolver)

Aggregations

PostProcessorImpl (com.enonic.xp.portal.impl.postprocess.PostProcessorImpl)1 TestPostProcessInjection (com.enonic.xp.portal.impl.postprocess.TestPostProcessInjection)1 ProcessorChainResolver (com.enonic.xp.portal.impl.processor.ProcessorChainResolver)1