You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by lleclerc <ll...@aim-rg.com> on 2012/12/13 22:09:16 UTC

Bug : AdviceWith not working with weaveAddFirst() weaveAddLast().

Here is the source code that test the 2 functions 
(org.apache.camel.processor.interceptor.AdviceWithWeaveFirstLastTest.java)

The modified version : 
http://pastebin.com/RiKfzTfs

The only change been that I used the function 
    @Override
    public boolean isUseAdviceWith() {
        return true;
    }
And started the context manually after the adviceWith : context.start();

If you want to dig into the code, it might be easier to go with my short
version, it also present an IllegalArgumentException, while the official
test only throw an AssertionError.

Here is the short test : http://pastebin.com/H2PNdz4F





--
View this message in context: http://camel.465427.n5.nabble.com/Bug-AdviceWith-not-working-with-weaveAddFirst-weaveAddLast-tp5724054.html
Sent from the Camel - Users mailing list archive at Nabble.com.