In an Apache Camel application, how can unit tests inject mock endpoints in place of real ones?

纵然是瞬间 提交于 2019-12-04 03:24:33

Some pointers what you may do.

You can read the Camel book again about testing, and pay attention to using advice with

And there is also mockEndpointsAndSkip

And you can also use the stub component

Or use property placeholders in your routes, and then configure the uris to be mock/stub etc for testing, and use the real ones for production

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!