camel-test

Spring Boot Camel Testing

不想你离开。 提交于 2021-02-07 09:21:02
问题 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

Spring Boot Camel Testing

≯℡__Kan透↙ 提交于 2021-02-07 09:20:27
问题 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

Spring Boot Apache Camel Routes testing

纵饮孤独 提交于 2019-12-17 20:43:06
问题 I have a Springboot application, where I have some camel routes configured. public class CamelConfig { private static final Logger LOG = LoggerFactory.getLogger(CamelConfig.class); @Value("${activemq.broker.url:tcp://localhost:61616}") String brokerUrl; @Value("${activemq.broker.maxconnections:1}") int maxConnections; @Bean ConnectionFactory jmsConnectionFactory() { PooledConnectionFactory pooledConnectionFactory = new PooledConnectionFactory(new ActiveMQConnectionFactory(brokerUrl));

Spring Boot Apache Camel Routes testing

你说的曾经没有我的故事 提交于 2019-12-01 14:43:02
I have a Springboot application, where I have some camel routes configured. public class CamelConfig { private static final Logger LOG = LoggerFactory.getLogger(CamelConfig.class); @Value("${activemq.broker.url:tcp://localhost:61616}") String brokerUrl; @Value("${activemq.broker.maxconnections:1}") int maxConnections; @Bean ConnectionFactory jmsConnectionFactory() { PooledConnectionFactory pooledConnectionFactory = new PooledConnectionFactory(new ActiveMQConnectionFactory(brokerUrl)); pooledConnectionFactory.setMaxConnections(maxConnections); return pooledConnectionFactory; } @Bean public