camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "129073.d.0002" <unto.j.valko...@icloud.com>
Subject testing routes when using spring boot
Date Tue, 21 Mar 2017 00:15:37 GMT
I found this Camel Spring Boot test

"https://github.com/apache/camel/tree/master/examples/camel-example-spring-boot".

It uses test setup:

@RunWith(CamelSpringBootRunner.class)
@SpringBootTest(classes = SampleCamelApplication.class)
public class SampleCamelApplicationTest {

    @Autowired
    private CamelContext camelContext;


I can't find a maven package (dependency) that includes
CamelSpringBootRunner.class .

What would be best practise way to get CamelContex when using
@RunWith(SpringRunner.class)?

Camel in Action 2ed does not help with testing in Spring Boot context :(



--
View this message in context: http://camel.465427.n5.nabble.com/testing-routes-when-using-spring-boot-tp5795812.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message