Great question and answer - I've added it to the FAQ...
http://cwiki.apache.org/CAMEL/how-do-i-reuse-the-contexttestsupport-class-in-my-unit-tests.html
On 06/12/2007, Roman Kalukiewicz <[EMAIL PROTECTED]> wrote:
> > Hi all,
> >
> > Is there any way I can use ContextTestSupport or SpringTestSupport
> > without access to Camel's source? It doesn't look like it's packaged
> > with any of the Camel releases. I'm trying to keep my project's
> > dependency on Camel at a jar level only, if I can help it.
>
> If you use maven2 then here you go:
>
> ContextTestSupport :
> <dependency>
> <groupId>org.apache.camel</groupId>
> <artifactId>camel-core</artifactId>
> <version>${camel-version}</version>
> <type>test-jar</type>
> <scope>test</scope>
> </dependency>
>
> SpringTestSupport:
> <dependency>
> <groupId>org.apache.camel</groupId>
> <artifactId>camel-spring</artifactId>
> <version>${camel-version}</version>
> <type>test-jar</type>
> <scope>test</scope>
> </dependency>
>
> if you don't use maven:
> http://repo1.maven.org/maven2/org/apache/camel/camel-core/1.2.0/camel-core-1.2.0-tests.jar
> http://repo1.maven.org/maven2/org/apache/camel/camel-spring/1.2.0/camel-spring-1.2.0-tests.jar
>
--
James
-------
http://macstrac.blogspot.com/
Open Source Integration
http://open.iona.com