Spring Boot Camel Testing
问题 I need to test Camel routes in a Spring Boot Application. I've the Spring boot main class with all the necessary beans declared in it. I am using the CamelSpringJUnit4ClassRunner.class. Added my Spring boot main class in @ContextConfiguration as it contains all the configurations. I don't have a separate configuration class. I 've autowired CamelContext in my Test class: @Autowired CamelContext camelContext; But the test fails with the error: Caused by: org.springframework.beans.factory