I figured it out, was an sl4j version issue. Seems things are working now so
I appreciate the help!
--
View this message in context:
http://camel.465427.n5.nabble.com/Unit-Testing-Question-tp5745966p5746502.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Can you double check the camel jars in your class path to see if there is
another version of camel jar in your class path?
BTW, can you tell us which ClassDef is not found?
--
View this message in context:
http://camel.465427.n5.nabble.com/Unit-Testing-Question-tp5745966p5746476.html
Sent
;Yay");
template.sendBody("direct:test", "Test");
resultEndpoint.assertIsSatisfied();
}
--
View this message in context:
http://camel.465427.n5.nabble.com/Unit-Testing-Question-tp5745966p5746462.html
Sent from the Camel - Users mailing list archive at Nabble.com.
://camel.465427.n5.nabble.com/Unit-Testing-Question-tp5745966p5746451.html
Sent from the Camel - Users mailing list archive at Nabble.com.
ld
be helpful.
--
View this message in context:
http://camel.465427.n5.nabble.com/Unit-Testing-Question-tp5745966p5746291.html
Sent from the Camel - Users mailing list archive at Nabble.com.
There are a number of examples on the camel testing page. However I can
provide perhaps some information. Mock endpoints are just recorders of
information the previous poster used in example. Normally an endpoint
doesn't keep track of what exchanges go through it but mock ones do. You
can also mock
> I don't really understand yet how mock endpoints work, I am seeking a simple
> example to help get me over this.
You can test your processor with Mock endpoint by using the latter to
catch exchange processed by the former.
// Fixtures
from("direct:test").process(new testProc()).to("mock:test");
nt(), but in the version I am using (Camel 2.8) I
actually don't see a resolve endpoint on
org.apache.camel.test.CamelTestSupport.context. So how do I modify this to
run for the proper processor uri?
--
View this message in context:
http://camel.465427.n5.nabble.com/Unit-Testing-Question-tp5745966p5746089.html
Sent from the Camel - Users mailing list archive at Nabble.com.
om the template?
>
> Also if it is not a processor and just a bean with a method that executes on
> the exchange, how then would I even send the producer template exchange to
> that method?
>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.na
xt:
> http://camel.465427.n5.nabble.com/Unit-Testing-Question-tp5745966p5745999.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
--
Claus Ibsen
-
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in A
see the out exchange from the template?
Also if it is not a processor and just a bean with a method that executes on
the exchange, how then would I even send the producer template exchange to
that method?
--
View this message in context:
http://camel.465427.n5.nabble.com/Unit-Testing
el In Action book I have. I just know Camel is one of those frameworks
where the number of ways to accomplish something is great, and that often
causes me some issue when getting started with a new aspect of it.
--
View this message in context:
http://camel.465427.n5.nabble.com/Unit-Testing-Que
Hi,
> I am curious how it would be possible to setup the necessary aspects for a
> unit test of this method? How do you setup an entire exchange in a unit
> test, or is there capabilities built in somewhere I am unaware of?
You can set up exchange fixtures with the appropriate ProducerTemplate
m
r is there capabilities built in somewhere I am unaware of?
>
> Thanks for any help
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Unit-Testing-Question-tp5745966.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
--
C
t
test, or is there capabilities built in somewhere I am unaware of?
Thanks for any help
--
View this message in context:
http://camel.465427.n5.nabble.com/Unit-Testing-Question-tp5745966.html
Sent from the Camel - Users mailing list archive at Nabble.com.
15 matches
Mail list logo