You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Andrea Cosentino (JIRA)" <ji...@apache.org> on 2018/12/12 10:56:01 UTC

[jira] [Updated] (CAMEL-12993) Have more informative message from springboot itests exceptions

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

Andrea Cosentino updated CAMEL-12993:
-------------------------------------
    Fix Version/s: 2.24.0
                   3.0.0

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