samedi 4 avril 2015

Camel-Spring test time route exclusion

How can I unit-test (using JUnit) an Apache Camel route defined in a Spring context file?


Since a Spring context file could have several other routes and bean definitions, I want to isolate just this route and initialize just the beans that it refers to.


The topic Test time exclusion on the Camel-Spring page discusses this scenario, but it applies to Route Builders defined in Java (not in Spring).


I'm using Camel 2.6


Aucun commentaire:

Enregistrer un commentaire