Versions Compared

Key

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

...

Spring Test with XML Config Example

Here is the Spring TestTesting example using XML Config.

...

Notice that we use @DirtiesContext on the test methods to force Spring TestTesting to automatically reload the CamelContext after each test method - this ensures that the tests don't clash with each other (e.g. one test method sending to an endpoint that is then reused in another test method).

...

Spring Test with Java Config Example

Here is the Spring TestTesting example using Java Config. For more information see Spring Java Config.

...