[ 
https://issues.apache.org/jira/browse/CAMEL-5283?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13279129#comment-13279129
 ] 

Nestor Urquiza commented on CAMEL-5283:
---------------------------------------

My bad. Sorry about this non-issue. 

I should have run this from command line. Instead I run it from Eclipse and I 
was not receiving the exception in the console but in the JUnit output tab 
which I did not check.

You can close the ticket now.

Thanks!

-Nestor
                
> 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