Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-12993

Have more informative message from springboot itests exceptions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.23.0
    • 2.24.0, 3.0.0
    • tests
    • None
    • Unknown

    Description

      When I run a springboot integration test like:

      mvn clean test -Dtest=CamelJgroupsRaftTest
      

      if something go wrong in dependency/classpath preparation I get a message like:

      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)
      

      I would like a message more like this:

      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)
      

      Attachments

        Issue Links

          Activity

            People

              valdar Andrea Tarocchi
              valdar Andrea Tarocchi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: