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());
}
}
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());
}
}
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());
}
}
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());
}
}
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;
}
Aggregations