This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push: new 9e8c4f5 CAMEL-12993: Have more informative message from springboot itests exceptions 9e8c4f5 is described below commit 9e8c4f540a001e1d31fe539c427f9fc507830f09 Author: Andrea Tarocchi <ataro...@redhat.com> AuthorDate: Tue Dec 11 23:09:39 2018 +0100 CAMEL-12993: Have more informative message from springboot itests exceptions --- .../org/apache/camel/itest/springboot/util/ArquillianPackager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/camel-itest-spring-boot/src/test/java/org/apache/camel/itest/springboot/util/ArquillianPackager.java b/tests/camel-itest-spring-boot/src/test/java/org/apache/camel/itest/springboot/util/ArquillianPackager.java index 2e043d8..788efe5 100644 --- a/tests/camel-itest-spring-boot/src/test/java/org/apache/camel/itest/springboot/util/ArquillianPackager.java +++ b/tests/camel-itest-spring-boot/src/test/java/org/apache/camel/itest/springboot/util/ArquillianPackager.java @@ -41,6 +41,7 @@ import org.apache.camel.itest.springboot.ITestConfigBuilder; import org.apache.camel.itest.springboot.arquillian.SpringBootZipExporterImpl; import org.apache.commons.io.IOUtils; import org.jboss.arquillian.container.se.api.ClassPath; +import org.jboss.arquillian.core.spi.InvocationException; import org.jboss.shrinkwrap.api.Archive; import org.jboss.shrinkwrap.api.ArchivePath; import org.jboss.shrinkwrap.api.Configuration; @@ -396,7 +397,7 @@ public final class ArquillianPackager { if (message.length() > 0) { String alert = "Library version mismatch found.\n" + message; if (FAIL_ON_RELATED_LIBRARY_MISMATCH) { - throw new RuntimeException(alert); + throw new InvocationException(new RuntimeException(alert)); } else { debug(alert); }