7 Replies Latest reply on Nov 16, 2009 11:13 AM by Claus Ibsen

    JUnit test and bean endpoint in route

    Mack Fata Newbie

      I m trying to write a JUnit test case for a camel route. The route that I am trying to test uses a bean URI in one of its endpoints.

       

      When I run the JUnit test, I get the following exception:

       

      org.apache.camel.component.bean.NoBeanAvailableException: No bean available for endpoint: myBean

       

      I tried to use @ContextConfiguration, to load an xml file with the bean definition, but no lock. Any idea on how to creat the bean and make it available to the camelConext?

       

      Thanks in advance.