You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2018/12/12 10:45:22 UTC
[camel] 01/05: CAMEL-12993: Have more informative message from
springboot itests exceptions
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch sandbox/camel-3.x
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 1de42f86cff661b27e9cb3851a1e2a8d7447c8fa
Author: Andrea Tarocchi <at...@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);
}