This is an automated email from the ASF dual-hosted git repository.
jamesnetherton 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 ee00206 Restore ability to run Spring Boot itests with
unitTestEnabled=true
ee00206 is described below
commit ee002068b75f5acaf909d7d82a6d212a879cdeb1
Author: James Netherton <[email protected]>
AuthorDate: Fri Aug 9 10:29:39 2019 +0100
Restore ability to run Spring Boot itests with unitTestEnabled=true
---
.../itest/springboot/arquillian/ArquillianSyncBootJarLauncher.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/arquillian/ArquillianSyncBootJarLauncher.java
b/tests/camel-itest-spring-boot/src/test/java/org/apache/camel/itest/springboot/arquillian/ArquillianSyncBootJarLauncher.java
index 10e07b6..ce3f744 100644
---
a/tests/camel-itest-spring-boot/src/test/java/org/apache/camel/itest/springboot/arquillian/ArquillianSyncBootJarLauncher.java
+++
b/tests/camel-itest-spring-boot/src/test/java/org/apache/camel/itest/springboot/arquillian/ArquillianSyncBootJarLauncher.java
@@ -21,6 +21,7 @@ import java.lang.management.ManagementFactory;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLClassLoader;
+import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
@@ -59,7 +60,7 @@ public class ArquillianSyncBootJarLauncher extends
JarLauncher {
List<URL> parentUrls =
Arrays.asList(urlsFromClassLoader(this.getClassLoader()));
List<URL> additionalURLs = parentUrls.stream().filter(u ->
u.toString().startsWith("file") &&
!u.toString().endsWith(".jar")).collect(Collectors.toList());
- List<URL> newURLs = Arrays.asList(urls);
+ ArrayList<URL> newURLs = new ArrayList(Arrays.asList(urls));
newURLs.addAll(additionalURLs);
ClassLoader appClassLoader = null;