Search in sources :

Example 6 with DefaultCamelContext

use of org.apache.camel.impl.DefaultCamelContext in project camel by apache.

the class OsgiLanguageResolverTest method testOsgiResolverFindLanguageTest.

@Test
public void testOsgiResolverFindLanguageTest() throws IOException {
    CamelContext camelContext = new DefaultCamelContext();
    OsgiLanguageResolver resolver = new OsgiLanguageResolver(getBundleContext());
    Language language = resolver.resolveLanguage("simple", camelContext);
    assertNotNull("We should find simple language", language);
}
Also used : CamelContext(org.apache.camel.CamelContext) DefaultCamelContext(org.apache.camel.impl.DefaultCamelContext) Language(org.apache.camel.spi.Language) DefaultCamelContext(org.apache.camel.impl.DefaultCamelContext) Test(org.junit.Test)

Example 7 with DefaultCamelContext

use of org.apache.camel.impl.DefaultCamelContext in project camel by apache.

the class CometdProducerConsumerInOutInteractiveMain method testCometdProducerConsumerInteractive.

public void testCometdProducerConsumerInteractive() throws Exception {
    context = new DefaultCamelContext();
    context.addRoutes(createRouteBuilder());
    context.start();
}
Also used : DefaultCamelContext(org.apache.camel.impl.DefaultCamelContext)

Example 8 with DefaultCamelContext

use of org.apache.camel.impl.DefaultCamelContext in project camel by apache.

the class CometdProducerConsumerInteractiveAuthenticatedMain method testCometdProducerConsumerInteractive.

public void testCometdProducerConsumerInteractive() throws Exception {
    context = new DefaultCamelContext();
    context.addRoutes(createRouteBuilder());
    context.start();
}
Also used : DefaultCamelContext(org.apache.camel.impl.DefaultCamelContext)

Example 9 with DefaultCamelContext

use of org.apache.camel.impl.DefaultCamelContext in project camel by apache.

the class CometdProducerConsumerInteractiveExtensionMain method testCometdProducerConsumerInteractive.

public void testCometdProducerConsumerInteractive() throws Exception {
    context = new DefaultCamelContext();
    context.addRoutes(createRouteBuilder());
    context.start();
}
Also used : DefaultCamelContext(org.apache.camel.impl.DefaultCamelContext)

Example 10 with DefaultCamelContext

use of org.apache.camel.impl.DefaultCamelContext in project camel by apache.

the class CometdProducerConsumerInteractiveMain method testCometdProducerConsumerInteractive.

public void testCometdProducerConsumerInteractive() throws Exception {
    context = new DefaultCamelContext();
    context.addRoutes(createRouteBuilder());
    context.start();
}
Also used : DefaultCamelContext(org.apache.camel.impl.DefaultCamelContext)

Aggregations

DefaultCamelContext (org.apache.camel.impl.DefaultCamelContext)474 CamelContext (org.apache.camel.CamelContext)206 Test (org.junit.Test)183 DefaultExchange (org.apache.camel.impl.DefaultExchange)128 RouteBuilder (org.apache.camel.builder.RouteBuilder)101 Exchange (org.apache.camel.Exchange)91 Before (org.junit.Before)70 SimpleRegistry (org.apache.camel.impl.SimpleRegistry)61 RegisteredDelivery (org.jsmpp.bean.RegisteredDelivery)39 MockEndpoint (org.apache.camel.component.mock.MockEndpoint)38 ESMClass (org.jsmpp.bean.ESMClass)30 ProducerTemplate (org.apache.camel.ProducerTemplate)27 CountDownLatch (java.util.concurrent.CountDownLatch)15 Endpoint (org.apache.camel.Endpoint)13 FailedToCreateRouteException (org.apache.camel.FailedToCreateRouteException)13 Processor (org.apache.camel.Processor)12 RouteStartupOrder (org.apache.camel.spi.RouteStartupOrder)12 Address (org.jsmpp.bean.Address)11 SubmitMultiResult (org.jsmpp.bean.SubmitMultiResult)11 Date (java.util.Date)10