How to mock multiple components in camel unit test? -


i'm using cameltestsupport in camel version 2.13.1.

i'd mock out 2 different components:

@override public string ismockendpoints() {     return "(activemq|exec)*"; } 

i can't mock "*" because getting errors activiti framework i'm using, relies on activiti component.

have of found way this?

you can use regular expression, like:

 return "(activemq.*|exec.*)"  

see bottom of page http://camel.apache.org/intercept


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

c# - WPF+EF - The operation cannot be completed because the DbContext has been disposed -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -