You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Aaron Crickenberger <aa...@intalgent.com> on 2007/12/06 16:32:46 UTC
Using ContextTestSupport without source?
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.
- aaron
Re: Using ContextTestSupport without source?
Posted by James Strachan <ja...@gmail.com>.
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 <ro...@gmail.com> 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
Re: Using ContextTestSupport without source?
Posted by Aaron Crickenberger <aa...@intalgent.com>.
Roman Kalukiewicz 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
>
Thanks, that did the trick!
- aaron
Re: Using ContextTestSupport without source?
Posted by Roman Kalukiewicz <ro...@gmail.com>.
> 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