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));
}
Aggregations