2 Replies Latest reply on Aug 13, 2012 5:08 AM by jasonnh

    does replaceFromWith work with CamelBlueprintTestSupport?

    jasonnh

      Hi,

       

      The use of replaceFromWith in unit tests described here:

      http://camel.apache.org/advicewith.html

       

      Does not seem to work when using blueprint, i.e. extending CamelBlueprintTestSupport.

       

      I have used adviceWith successfully with CamelBlueprintTestSupport to replace a "to" but need to replace "from" and assumed replaceFromWith was the way to do it.

       

      I have attached a sample application.

       

      I can replace the from using properties files but that is not as elegant as using adviceWith.

       

      Can anybody tell me if I have missed something or there is another way of replacing from?

       

      Many thanks.

       

      Update:  error is attached.

       

      Edited by: jasonnh on Aug 9, 2012 8:19 AM