2.12.3.3. 通过 @EnableRouteCoverage 注解启用

如果您使用 camel-test-spring 进行测试,您可以在测试类中添加 @EnableRouteCoverage 注解到测试类来启用路由覆盖:

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