Search in sources :

Example 1 with ProcessingRenderer

use of com.yahoo.processing.rendering.ProcessingRenderer in project vespa by vespa-engine.

the class ProcessingHandlerTestCase method testUserSpecifiedDefaultRendererIsNotReplacedInRegistry.

@Test
public void testUserSpecifiedDefaultRendererIsNotReplacedInRegistry() throws Exception {
    String defaultId = AbstractProcessingHandler.DEFAULT_RENDERER_ID;
    Renderer myDefaultRenderer = new ProcessingRenderer();
    ComponentRegistry<Renderer> renderers = new ComponentRegistry<>();
    renderers.register(ComponentId.fromString(defaultId), myDefaultRenderer);
    driver = new ProcessingTestDriver(Collections.<Chain<Processor>>emptyList(), renderers);
    Renderer defaultRenderer = driver.processingHandler().getRenderers().getComponent(defaultId);
    assertThat(defaultRenderer, sameInstance(myDefaultRenderer));
}
Also used : Chain(com.yahoo.component.chain.Chain) ComponentRegistry(com.yahoo.component.provider.ComponentRegistry) Renderer(com.yahoo.processing.rendering.Renderer) ProcessingRenderer(com.yahoo.processing.rendering.ProcessingRenderer) ProcessingRenderer(com.yahoo.processing.rendering.ProcessingRenderer) Test(org.junit.Test)

Aggregations

Chain (com.yahoo.component.chain.Chain)1 ComponentRegistry (com.yahoo.component.provider.ComponentRegistry)1 ProcessingRenderer (com.yahoo.processing.rendering.ProcessingRenderer)1 Renderer (com.yahoo.processing.rendering.Renderer)1 Test (org.junit.Test)1