Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我必须通过跳过wireTap来为骆驼路线编写junit测试用例。还是有可能模拟窃听器?如果是,那怎么办?
谢谢, 斯里坎特
如果您正在窃听 uri“direct:foo”,您可以(例如)用以下方式编织您的 Camel 路线:
weaveByToUri("direct:foo").replace().to("mock:junit");
更多信息请访问: https ://camel.apache.org/manual/advice-with.html