Hi

You can use regular expression, so its something a like:

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

See bottom of this page
http://camel.apache.org/intercept

On Fri, Jun 27, 2014 at 8:16 PM, Steven Pomerville <spome...@oswego.edu> wrote:
> Hi,
>
> 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?
>
>
> p.s. I posted this at stackoverflow if anyone want's the points for
> answering :-)
>
> http://stackoverflow.com/questions/24458180/how-to-mock-multiple-components-in-camel-unit-test
>
>
> Thanks,
>
> -steve



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Reply via email to