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.

Reply via email to