Re: Unit Testing Question

2014-01-27 Thread Castyn
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.

Re: Unit Testing Question

2014-01-25 Thread Willem.Jiang
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

Re: Unit Testing Question

2014-01-24 Thread Castyn
;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.

Re: Unit Testing Question

2014-01-24 Thread Castyn
://camel.465427.n5.nabble.com/Unit-Testing-Question-tp5745966p5746451.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Unit Testing Question

2014-01-21 Thread Castyn
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.

Re: Unit Testing Question

2014-01-17 Thread kraythe .
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

Re: Unit Testing Question

2014-01-17 Thread Henryk Konsek
> 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");

Re: Unit Testing Question

2014-01-16 Thread Castyn
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.

Re: Unit Testing Question

2014-01-15 Thread Christoph Emmersberger
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

Re: Unit Testing Question

2014-01-15 Thread Claus Ibsen
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

Re: Unit Testing Question

2014-01-15 Thread Castyn
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

Re: Unit Testing Question

2014-01-15 Thread Castyn
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

Re: Unit Testing Question

2014-01-15 Thread Henryk Konsek
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

Re: Unit Testing Question

2014-01-15 Thread Claus Ibsen
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

Unit Testing Question

2014-01-14 Thread Castyn
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.