camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yuncil <>
Subject Re: How to get properties working in camelTest and spring
Date Mon, 23 Nov 2015 07:33:59 GMT
I finally got my JUnit-Tests working and the properties are correctly
injected now. I did it with a lot of annotations:

@SpringApplicationConfiguration(classes = MyServiceTests.class)
@MockEndpointsAndSkip(value = "spring-ws:*")
public class MyServiceTests extends TestCase {



Also I added the following dependency:


Furthermore the property-file must be in the classpath and must named With this configuration I needn't the static
inner class TestConfig anymore. The solution is described here:

Nevertheless I would like to log a JIRA ticket and I'm looking forward to a
camel-test-spring module, for a more lean solution.

Thanks for your effort, Claus.

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

View raw message