问题
I'm using the CamelTestSupport
in camel version 2.13.1.
I'd like to do something like this to mock out two different components:
@Override
public String isMockEndpoints() {
return "(activemq|exec)*";
}
I can't just mock everything with "*" because I was getting errors from the activiti framework I'm using, which relies on the activiti
component.
Have any of you found a way to do something like this?
回答1:
You can use regular expression, so its something a like:
return "(activemq.*|exec.*)"
See bottom of this page http://camel.apache.org/intercept
来源:https://stackoverflow.com/questions/24458180/how-to-mock-multiple-components-in-camel-unit-test