use of com.yahoo.vespa.model.container.processing.Processor in project vespa by vespa-engine.
the class ProcessingChainsTest method testProcessingChainConfiguration.
@Test
public void testProcessingChainConfiguration() {
ProcessingChain defaultChain = processingChains.allChains().getComponent("default");
assertEquals("default", defaultChain.getId().stringValue());
assertEquals(1, defaultChain.getInnerComponents().size());
Collection<ChainedComponent<?>> outerProcessors = processingChains.getComponentGroup().getComponents();
assertEquals(1, outerProcessors.size());
assertEquals("processor1", outerProcessors.iterator().next().getComponentId().toString());
Collection<Processor> innerProcessors = defaultChain.getInnerComponents();
assertEquals("processor2", innerProcessors.iterator().next().getComponentId().toString());
}
use of com.yahoo.vespa.model.container.processing.Processor in project vespa by vespa-engine.
the class ProcessingChainsTest method require_that_processors_have_correct_class.
@Test
public void require_that_processors_have_correct_class() {
ChainedComponent<?> processor1 = processingChains.getComponentGroup().getComponents().iterator().next();
assertEquals("com.yahoo.test.Processor1", processor1.model.bundleInstantiationSpec.classId.stringValue());
ProcessingChain defaultChain = processingChains.allChains().getComponent("default");
Processor processor2 = defaultChain.getInnerComponents().iterator().next();
assertEquals("com.yahoo.test.Processor2", processor2.model.bundleInstantiationSpec.classId.stringValue());
}
Aggregations