I know that there are a lot of information about this, but it is second week
while searching through various posts, but I cannot find any solution.
Simple scenario: I need datasource bean, to use it with JDBC component.
I've created db.xml for datasource:
?xml version=1.0 encoding=UTF-8?
Hi
In the Camel XML file, which I assume is a blueprint XML file, then do
you have a reference for the data source?
There is a bit details here:
http://aries.apache.org/modules/blueprint.html
Christian Schneider wrote a Camel and OSGi blog series. You may find
some useful details here
Hi
So if I have the following 2 routes:
from(SomeEndpoint).to(seda:endpoint);
from(seda:endpoint.to(SomeOtherpoint);
I have not specified the exchange pattern for the SEDA endpoint. Hence, does
it default to something?
Thanks
--
View this message in context:
Hi
I was reading how camel supports unit testing of an existing RouteBuilder
class.
I think this is very useful as I don't want to have to duplicate the route
in the unit test.
However, suppose the route defined in the existing RouteBuilder class
contains an endpoint that I need to mock. Is
Hi
Yeah I suggest to read these couple of links
http://camel.apache.org/advicewith.html
http://camel.apache.org/mock
For example the advice with allows you to manipulate the routes before
unit testing.
And mock allows to mock endpoints by pattern, and whether to skip
sending to the target
Or you use a properties placeholder and provide different endpoint URI's
for your test environment.
Best,
Christian
On Sun, Jul 1, 2012 at 9:36 AM, Claus Ibsen claus.ib...@gmail.com wrote:
Hi
Yeah I suggest to read these couple of links
http://camel.apache.org/advicewith.html
It depends on SomeEndpoint...
The message exchange pattern (MEP) is bound to the exchange, not the
enpoint itself.
Each component has a default MEP which is e.g. InOnly for the File
Component, InOut for the HTTP Component, ...
This MEP is used by creating the exchange in the component which
A much more simpler approach from my point of view is providing a dummy
MyProcessor in the registry (Simple or Spring based). Than you can test
your route logic in isolation without testing (again) your MyProcessor.
And it's much more light weigh than using EasyMock...
Best,
Christian
On Sun,
Could you solve your problem?
If not, feel free to raise a JIRA (and attach a test if possible) so we can
work on this.
Best,
Christian
On Fri, May 18, 2012 at 11:22 AM, sekaijin jean-yves.terr...@sap.aphp.frwrote:
So
Christian Mueller wrote
It depends on your runtime environment, which
+1 for the dummy processor.
But I think using the EasyMock can set the behavior of the message
which will be used to verify the choice processor.
On Mon Jul 2 00:43:27 2012, Christian Müller wrote:
A much more simpler approach from my point of view is providing a dummy
MyProcessor in the
10 matches
Mail list logo