THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||
---|---|---|
| ||
<dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-test-cdi</artifactId> <scope>test</test>scope> <version>x.x.x</version> <!-- use the same version as your Camel core version --> </dependency> |
...
You can find more information in auto-detecting Camel routes.
In case you prefer declaring the RouteBuilder
bean in a separate class, for example to share it more easily across multiple test classes, you can use the @Beans
annotation to instruct Camel CDI test to deploy that class as a CDI bean, e.g.:
...