You should do the advice stuff in the test method, not in the createCamelContext

On Mon, Jun 27, 2011 at 6:30 PM, woggle23 <[email protected]> wrote:
> I tried running it against 2.8-SNAPSHOT, the results were worse - the test
> didn't even pass with a single intercept.
>
> The attached zip is the test I was trying to perform (DatabaseErrorTest), a
> single intercept is currently in use (intercepting the "MsgInterface"
> route), adding the "DBcontentsInterface" intercept causes the test to fail
> when running against 2.7.
>
> The test sends an xml message to an http endpoint. The route converts it to
> a string then sends it to a bean endpoint - which is intercepted. The
> SimulateDatabaseError() processor, which the interceptor diverts the message
> to, throws an exception, which should be handled by the onException() dsl in
> RouteSupport.java.
>
> http://camel.465427.n5.nabble.com/file/n4528996/unittestissue.zip
> unittestissue.zip
>
> Cheers
>
> Matt
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/intercept-using-adviceWith-tp4520468p4528996.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to