Search in sources :

Example 1 with Route

use of org.apache.camel.Route in project Activiti by Activiti.

the class CamelExceptionTest method tearDown.

public void tearDown() throws Exception {
    List<Route> routes = camelContext.getRoutes();
    for (Route r : routes) {
        camelContext.stopRoute(r.getId());
        camelContext.removeRoute(r.getId());
    }
}
Also used : Route(org.apache.camel.Route)

Example 2 with Route

use of org.apache.camel.Route in project Activiti by Activiti.

the class AsyncProcessTest method tearDown.

public void tearDown() throws Exception {
    List<Route> routes = camelContext.getRoutes();
    for (Route r : routes) {
        camelContext.stopRoute(r.getId());
        camelContext.removeRoute(r.getId());
    }
}
Also used : Route(org.apache.camel.Route)

Example 3 with Route

use of org.apache.camel.Route in project Activiti by Activiti.

the class CamelVariableBodyTest method tearDown.

public void tearDown() throws Exception {
    List<Route> routes = camelContext.getRoutes();
    for (Route r : routes) {
        camelContext.stopRoute(r.getId());
        camelContext.removeRoute(r.getId());
    }
}
Also used : Route(org.apache.camel.Route)

Example 4 with Route

use of org.apache.camel.Route in project Activiti by Activiti.

the class EmptyProcessTest method tearDown.

public void tearDown() throws Exception {
    List<Route> routes = camelContext.getRoutes();
    for (Route r : routes) {
        camelContext.stopRoute(r.getId());
        camelContext.removeRoute(r.getId());
    }
}
Also used : Route(org.apache.camel.Route)

Example 5 with Route

use of org.apache.camel.Route in project camel by apache.

the class TestSupport method getRouteList.

/**
     * A helper method to create a list of Route objects for a given route builder
     */
public static List<Route> getRouteList(RouteBuilder builder) throws Exception {
    CamelContext context = new DefaultCamelContext();
    context.addRoutes(builder);
    context.start();
    List<Route> answer = context.getRoutes();
    context.stop();
    return answer;
}
Also used : CamelContext(org.apache.camel.CamelContext) DefaultCamelContext(org.apache.camel.impl.DefaultCamelContext) DefaultCamelContext(org.apache.camel.impl.DefaultCamelContext) Route(org.apache.camel.Route)

Aggregations

Route (org.apache.camel.Route)91 EventDrivenConsumerRoute (org.apache.camel.impl.EventDrivenConsumerRoute)27 Endpoint (org.apache.camel.Endpoint)24 Channel (org.apache.camel.Channel)17 DeadLetterChannel (org.apache.camel.processor.DeadLetterChannel)15 Processor (org.apache.camel.Processor)13 ArrayList (java.util.ArrayList)12 SendProcessor (org.apache.camel.processor.SendProcessor)11 CamelContext (org.apache.camel.CamelContext)10 ShutdownRoute (org.apache.camel.ShutdownRoute)8 FilterProcessor (org.apache.camel.processor.FilterProcessor)7 RoutePolicy (org.apache.camel.spi.RoutePolicy)6 HashMap (java.util.HashMap)5 Service (org.apache.camel.Service)5 LinkedHashMap (java.util.LinkedHashMap)4 Map (java.util.Map)4 CopyOnWriteArrayList (java.util.concurrent.CopyOnWriteArrayList)4 DelegateProcessor (org.apache.camel.DelegateProcessor)4 RouteBuilder (org.apache.camel.builder.RouteBuilder)4 MockEndpoint (org.apache.camel.component.mock.MockEndpoint)4