You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by pmcb55 <mc...@dnb.com> on 2012/07/04 18:17:43 UTC

Basic 'camel-test' unit test dependent on Spring

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.

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

Posted by pmcb55 <mc...@dnb.com>.
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.


--
View this message in context: http://camel.465427.n5.nabble.com/Basic-camel-test-unit-test-dependent-on-Spring-tp5715495p5715501.html
Sent from the Camel - Users mailing list archive at Nabble.com.

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

Posted by Claus Ibsen <cl...@gmail.com>.
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 <mc...@dnb.com> 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: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen