RE: Integration tests with Spring annotations

2018-10-01 Thread Valdis Andersons
Hi Damien, We use Spring annotations in our integrations quite a lot and it's working rather well for us. In order to invoke the RouteBuilder instance we just provide a class name for it in the ApplicationContext of the test createApplicationContext method and then use a test configuration

Re: Integration tests with Spring annotations

2018-10-01 Thread Damien Nicolas
Thanks for you reply! Here its a sample of my test configuration: https://pastebin.com/7C82BLGT but I always get the exception: Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.camel.database.repositories.WorkflowRepository' available:

RE: Integration tests with Spring annotations

2018-10-01 Thread Valdis Andersons
Hi Damien, In your test you need specify the configuration your Camel context is supposed to use. This is how we're setting it up: @Override protected AbstractApplicationContext createApplicationContext() { AbstractApplicationContext applicationContext = new