Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This is similar to the XML Config example above except that there is no XML file and instead the nested ContextConfig class does all of the configuration. We currently have to reference by class name this class in the @ContextConfiguration which is a bit ugly. Please vote for SJC-238 to address this and make Spring Test work more cleanly with Spring JavaConfig.

Its totally optional but for the ContextConfig implementation we derive from SingleRouteCamelConfiguration which is a helper Spring Java Config class which will configure the CamelContext for us and then register the RouteBuilder we create.

Testing endpoints

Camel provides a number of endpoints which can make testing easier.

...