Versions Compared

Key

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

...

The following mechanisms are supported

Name

Component

Description

Camel Test

camel-test

is Is a standalone Java library letting you easily create Camel test cases using a single Java class for all your configuration and routing without using Spring or Guice for Dependency Injection which does not require an in depth knowledge of Spring+SpringTest or Guice

Spring Testing

camel-test-spring

Uses uses Spring Test together with either XML or Java Config to dependency inject your test classes

Guice

uses Guice to dependency inject your test classes

. Notice camel-test-spring is a new component in Camel 2.10 onwards. For older Camel release use camel-test which has built-in Spring Testing.

Blueprint Testing

camel-test-blueprint

Camel 2.10: Provides

Blueprint Testing

provides the ability to do unit testing on blueprint configurations

Guice

camel-guice

Uses Guice to dependency inject your test classes

In all approaches the test classes look pretty much the same in that they all reuse the Camel binding and injection annotations.

...