使用Apache的骆驼2.9.1你如何测试Apache Cache Timer路由?
我如何单元测试类似于下面的东西?
public class MyRoute extends RouteBuilder {
@Override
public void configure() throws Exception {
from("timer.something?delay=0?repeatCount=1")
// do some stuff
.to("{{some.endpoint}}")
.end()
from("timer.somethingelse?delay=3000&period=1000")
// do some stuff
.to("{{some.other.endpoint}}")
.end
}
}