3 Replies Latest reply on Apr 1, 2010 8:58 PM by Willem Jiang

    [FUSE4.2] OSGi and unit testing or Camel routes

    Olivier Roger Newbie

      Hello Fuse,

       

      I am currently writing unit test for camel routes.

      However, I get this error when I run the tests:

       

      ...

      xmlns:osgi="http://camel.apache.org/schema/osgi"

      ...

      The matching wildcard is strict, but no declaration can be found for element 'osgi:camelContext'.

       

      removing the osgi namespace solve the problem but prevent the bundle to be deployed in FUSE ESB.

       

      What is the common way to write camel unit test for bundles having OSGi features?

       

      Thanks for your help,

       

      I copied here under the source code of the problematic file:

       

       

       

                <endpoint id="inbox" uri="${inbox.protocol}$" />

                <endpoint id="outbox" uri="${outbox.protocol}$" />

                <endpoint id="error" uri="${error.protocol}$" />

                 

                 

                          <!--

                               Workaround for validation, transform the body to String as explained in

                               http://markmail.org/thread/5zdeuwpbzzd6asdo#query:%22No%20XML%20body%20could%20be%20found%20on%20the%20input%20message%22page:1mid:qs6ag6kvvsgysfjw+state:results

                           -->