use of org.apache.camel.CamelContext in project camel by apache.
the class BlueprintMultipleServiceTest method createCamelContext.
@Override
protected CamelContext createCamelContext() throws Exception {
CamelContext context = super.createCamelContext();
context.addComponent("fakeservice1", mockComponentOne);
context.addComponent("fakeservice2", mockComponentTwo);
return context;
}
use of org.apache.camel.CamelContext in project camel by apache.
the class AbstractFeatureTest method testLanguage.
protected void testLanguage(String mainFeature, String language) throws Exception {
LOG.info("Looking up CamelContext(myCamel) in OSGi Service Registry");
installCamelFeature(mainFeature);
CamelContext camelContext = getOsgiService(bundleContext, CamelContext.class, "(camel.context.name=myCamel)", 20000);
assertNotNull("Cannot find CamelContext with name myCamel", camelContext);
LOG.info("Getting Camel language: {}", language);
Language lan = camelContext.resolveLanguage(language);
assertNotNull("Cannot get language with name: " + language, lan);
LOG.info("Found Camel language: {} instance: {} with className: {}", language, lan, lan.getClass());
}
use of org.apache.camel.CamelContext in project camel by apache.
the class ZipkinSimpleFallbackRouteTest method createCamelContext.
@Override
protected CamelContext createCamelContext() throws Exception {
CamelContext context = super.createCamelContext();
zipkin = new ZipkinTracer();
zipkin.setSpanCollector(new ZipkinLoggingSpanCollector());
// attaching ourself to CamelContext
zipkin.init(context);
return context;
}
use of org.apache.camel.CamelContext in project camel by apache.
the class ZipkinSimpleLogStreamsRouteTest method createCamelContext.
@Override
protected CamelContext createCamelContext() throws Exception {
CamelContext context = super.createCamelContext();
zipkin = new ZipkinTracer();
zipkin.setServiceName("dude");
zipkin.setIncludeMessageBodyStreams(true);
zipkin.setSpanCollector(new ZipkinLoggingSpanCollector());
// attaching ourself to CamelContext
zipkin.init(context);
return context;
}
use of org.apache.camel.CamelContext in project camel by apache.
the class ZipkinSimpleRouteTest method createCamelContext.
@Override
protected CamelContext createCamelContext() throws Exception {
CamelContext context = super.createCamelContext();
zipkin = new ZipkinTracer();
zipkin.setServiceName("dude");
zipkin.setSpanCollector(new ZipkinLoggingSpanCollector());
// attaching ourself to CamelContext
zipkin.init(context);
return context;
}
Aggregations