Re: Integration tests with Spring annotations

2018-10-05 Thread Damien Nicolas
rn new StubWebServicesFacadeImpl(); > } > ... > > And so on... > > > Thanks, > Valdis > > -Original Message- > From: Damien Nicolas [mailto:dmn.nico...@gmail.com] > Sent: 02 October 2018 15:47 > To: users@camel.apache.org > Sub

RE: Integration tests with Spring annotations

2018-10-04 Thread Valdis Andersons
] Sent: 02 October 2018 15:47 To: users@camel.apache.org Subject: Re: Integration tests with Spring annotations My @Autowired are in my "RouteBuilder.class". Plus, I'm using JpaRepository (WorkflowRepository is this implementing it). I declared my service " WorkflowService&q

Re: Integration tests with Spring annotations

2018-10-02 Thread Damien Nicolas
he best or the most correct way of doing > things it's been working very reliably so far for us. > > Regards, > Valdis > > -Original Message- > From: Damien Nicolas [mailto:dmn.nico...@gmail.com] > Sent: 01 October 2018 10:20 > To: users@camel.apache.org > Subject: Re

RE: Integration tests with Spring annotations

2018-10-01 Thread Valdis Andersons
[mailto:dmn.nico...@gmail.com] Sent: 01 October 2018 10:20 To: users@camel.apache.org Subject: Re: Integration tests with Spring annotations Thanks for you reply! Here its a sample of my test configuration: https://scanmail.trustwave.com/?c=6600=zvKx2wzOXtG5KKdFoKiUVWe72PAV8oVAvVCznBIPMw=33

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, 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