Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

How to mock multiple components without mocking everything with "*" ?

$
0
0
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

Viewing all articles
Browse latest Browse all 5648

Trending Articles