[ 
https://issues.apache.org/jira/browse/CAMEL-12993?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrea Cosentino resolved CAMEL-12993.
--------------------------------------
    Resolution: Fixed

> Have more informative message from springboot itests exceptions
> ---------------------------------------------------------------
>
>                 Key: CAMEL-12993
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12993
>             Project: Camel
>          Issue Type: Improvement
>          Components: tests
>    Affects Versions: 2.23.0
>            Reporter: Andrea Tarocchi
>            Assignee: Andrea Tarocchi
>            Priority: Major
>             Fix For: 3.0.0, 2.24.0
>
>
> When I run a springboot integration test like:
> {code:bash}
> mvn clean test -Dtest=CamelJgroupsRaftTest
> {code}
> if something go wrong in dependency/classpath preparation I get a message 
> like:
> {code:bash}
> org.apache.camel.itest.springboot.CamelJgroupsRaftTest  Time elapsed: 76.079 
> sec  <<< ERROR!
> java.lang.RuntimeException: Could not invoke deployment method: public static 
> org.jboss.shrinkwrap.api.Archive 
> org.apache.camel.itest.springboot.CamelJgroupsRaftTest.createSpringBootPackage()
>  throws java.lang.Exception
>         at 
> org.apache.camel.itest.springboot.CamelJgroupsRaftTest.createSpringBootPackage(CamelJgroupsRaftTest.java:32)
> {code}
> I would like a message more like this:
> {code:bash}
> org.apache.camel.itest.springboot.CamelJgroupsRaftTest  Time elapsed: 70.174 
> sec  <<< ERROR!
> java.lang.RuntimeException: Could not invoke deployment method: public static 
> org.jboss.shrinkwrap.api.Archive 
> org.apache.camel.itest.springboot.CamelJgroupsRaftTest.createSpringBootPackage()
>  throws java.lang.Exception
>         at 
> org.apache.camel.itest.springboot.CamelJgroupsRaftTest.createSpringBootPackage(CamelJgroupsRaftTest.java:32)
> Caused by: java.lang.RuntimeException: 
> Library version mismatch found.
> Found mismatch for dependency org.jgroups:jgroups:
>  - org.jgroups:jgroups-raft:jar: --> 0.4.2.Final
>  - org.jgroups:jgroups:jar: --> 4.0.15.Final
>         at 
> org.apache.camel.itest.springboot.CamelJgroupsRaftTest.createSpringBootPackage(CamelJgroupsRaftTest.java:32)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to