Have you got the right camel version? From memory, this class is fairly new so that could explain the missing class problem.
As to the missing CamelContext bean, sounds like it isn’t being created automatically and that could be because Spring Boot isn’t doing it’s magic with the CamelAutoConfiguration class. You can easily verify this by enabling debug logging in Spring Boot. On startup it lists what it is auto configuring and which one it has skipped and why. Also don’t forget to add the @EnableAutoConfiguration on a Configuration bean somewhere in your tests. This is what tells Spring Boot to autoconfigure. > On 21 Mar 2017, at 11:36 am, 129073.d.0002 <unto.j.valko...@icloud.com> wrote: > > I have camel-test-spring in my pom but class not found. And I tried @Autowire > CamelContext but component does not exist. > > So I keep on debugging my setup. > > Thanks for your answer, now I know that there is something else wrong with > my project. > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/testing-routes-when-using-spring-boot-tp5795812p5795814.html > Sent from the Camel - Users mailing list archive at Nabble.com.