Nestor Urquiza created CAMEL-5283:
-------------------------------------

             Summary: JUnit @Test silently fails to run when there are missing 
component dependencies
                 Key: CAMEL-5283
                 URL: https://issues.apache.org/jira/browse/CAMEL-5283
             Project: Camel
          Issue Type: Bug
            Reporter: Nestor Urquiza


As discussed in 
http://camel.465427.n5.nabble.com/JUnit-Test-not-running-when-using-http-endpoint-td5711142.html#a5711368
 it looks like Camel fails to report exceptions related to routes using 
components not present in the classpath.

Test case:
---------
Use this example 
http://camelinaction.googlecode.com/svn/trunk/chapter6/firsttest/src/test/java/camelinaction/FirstTest.java

A little change to the route (commented line below) is enough to stop the 
testing method from running.  

@Override 
    protected RouteBuilder createRouteBuilder() throws Exception { 
        return new RouteBuilder() { 
            @Override 
            public void configure() throws Exception { 
                
                from("file://target/inbox") 
                .to("file://target/outbox") 
                //.to("http://localhost:8088";) 
                ; 
                
            } 
        }; 
    } 

If camel-http is included then the method gets hit. Camel fails to report any 
errors when camel-http is missing. 

I can confirm this is the case for other missing components as well like 
camel-jackson.

Thanks!
-Nestor


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to