use of org.apache.camel.impl.ProcessorEndpoint in project camel by apache.
the class XsltReferenceParameterTest method setUp.
public void setUp() throws Exception {
JndiRegistry registry = new JndiRegistry(new JndiContext());
RouteBuilder builder = createRouteBuilder();
CamelContext context = new DefaultCamelContext(registry);
testConverter = new TestConverter();
testTransformerFactory = TransformerFactory.newInstance();
registry.bind("testConverter", testConverter);
registry.bind("testTransformerFactory", testTransformerFactory);
ProcessorEndpoint pep1 = context.getEndpoint(TEST_URI_1, ProcessorEndpoint.class);
context.addRoutes(builder);
context.start();
builder1 = (XsltBuilder) pep1.getProcessor();
}
Aggregations