Quantcast

Basic 'camel-test' unit test dependent on Spring

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Basic 'camel-test' unit test dependent on Spring

pmcb55
I've just started using the camel testing framework, but I get a 'java.lang.NoClassDefFoundError: org/apache/camel/spring/CamelBeanPostProcessor' when I run my simple unit test. I'm using 'camel-test', as I don't yet have any dependency on Spring, but it seems to depend on Spring regardless. See the screenshot below showing my very simple test class, and the JAR dependencies (just camel-core, camel-test and SLF4J).

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Basic 'camel-test' unit test dependent on Spring

Claus Ibsen-2
Hi

camel-test requires Spring JAR in Camel 2.9 or older.

Its in Camel 2.10 onwards we have separated that into a new
camel-test-spring component.


On Wed, Jul 4, 2012 at 6:17 PM, pmcb55 <[hidden email]> wrote:

> I've just started using the camel testing framework, but I get a
> 'java.lang.NoClassDefFoundError:
> org/apache/camel/spring/CamelBeanPostProcessor' when I run my simple unit
> test. I'm using 'camel-test', as I don't yet have any dependency on Spring,
> but it seems to depend on Spring regardless. See the screenshot below
> showing my very simple test class, and the JAR dependencies (just
> camel-core, camel-test and SLF4J).
>
> http://camel.465427.n5.nabble.com/file/n5715495/CamelTestDependentOnSpring.jpg
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Basic-camel-test-unit-test-dependent-on-Spring-tp5715495.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



--
Claus Ibsen
-----------------
FuseSource
Email: [hidden email]
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Basic 'camel-test' unit test dependent on Spring

pmcb55
Hi Claus,

Yep, I just upgraded to Camel 2.10.0 and it works fine - thanks so much for the speedy (and accurate!) response, very much appreciated!

Pat.
Loading...