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 cf5cf1f Fixed Karaf Itest for Camel-Nats
cf5cf1f is described below
commit cf5cf1fd2bcac3473b8c97f11edd755338eb1b3f
Author: Andrea Cosentino <[email protected]>
AuthorDate: Fri Jan 25 09:04:13 2019 +0100
Fixed Karaf Itest for Camel-Nats
---
.../org/apache/camel/itest/karaf/CamelNatsTest.java | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git
a/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelNatsTest.java
b/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelNatsTest.java
index 9e36450..fb2ea81 100644
---
a/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelNatsTest.java
+++
b/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelNatsTest.java
@@ -18,12 +18,29 @@ package org.apache.camel.itest.karaf;
import org.junit.Test;
import org.junit.runner.RunWith;
+import org.ops4j.pax.exam.Configuration;
+import org.ops4j.pax.exam.CoreOptions;
+import org.ops4j.pax.exam.Option;
import org.ops4j.pax.exam.junit.PaxExam;
@RunWith(PaxExam.class)
public class CamelNatsTest extends BaseKarafTest {
public static final String COMPONENT = extractName(CamelNatsTest.class);
+
+ @Configuration
+ public static Option[] configure() {
+ Option[] baseOptions = BaseKarafTest.configure();
+ Option[] additionalOptions = CoreOptions.options(
+ CoreOptions.systemPackage("sun.security.x509")
+ );
+
+ Option[] options = new Option[baseOptions.length +
additionalOptions.length];
+ System.arraycopy(baseOptions, 0, options, 0, baseOptions.length);
+ System.arraycopy(additionalOptions, 0, options, baseOptions.length,
additionalOptions.length);
+
+ return options;
+ }
@Test
public void test() throws Exception {