使用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
}
}