camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Kuhtz <>
Subject Re: camel-testng: Start debugger with CamelSpringTestSupport
Date Mon, 22 Aug 2011 08:36:28 GMT
Hi Claus,

It's not working with JUnit4 either but I found the problem: The camel
context is started too early.

The system property maybeStartCamelContext is set to true and this causes
the SpringCamelContext to be started in maybeStart(). If you set the
maybeStartCamelContext to false the debugger works.

I've attached a sample project that has test cases for JUnit4 and TestNG.
For JUnit4 check the doPreSetup() in DebugJUnit4SpringCamelTest, for TestNG
check the createCamelContext() in DebugTestNGSpringCamelTest. 

Cheers Andi

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message