Versions Compared

Key

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

...

Camel Test Example

Here is the Camel Test example.

Wiki Markup
{snippet:lang=java|id=example|url=activemq/camel/trunk/components/camel-test/src/test/java/org/apache/camel/test/patterns/FilterTest.java}

...

Here is the Spring Testing example using XML Config.

Wiki Markup
{snippet:lang=java|id=example|url=activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/patterns/FilterTest.java}

...

Also notice the use of @ContextConfiguration to indicate that by default we should look for the FilterTest-context.xml on the classpath to configure the test case which looks like this

Wiki Markup
{snippet:lang=xml|id=example|url=activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/patterns/FilterTest-context.xml}

...

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

Wiki Markup
{snippet:lang=java|id=example|url=activemq/camel/trunk/components/camel-spring-javaconfig/src/test/java/org/apache/camel/spring/javaconfig/patterns/FilterTest.java}

...