CAMEL-10231: [camel-itest-karaf] CamelIgniteTest fails as Ignite needs 
sun.nio.ch


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/06bc26f8
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/06bc26f8
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/06bc26f8

Branch: refs/heads/master
Commit: 06bc26f80b9b627f325d5f911834177b99348e1b
Parents: 1cea9cc
Author: lburgazzoli <lburgazz...@gmail.com>
Authored: Wed Aug 10 13:23:50 2016 +0200
Committer: lburgazzoli <lburgazz...@gmail.com>
Committed: Wed Aug 10 17:26:34 2016 +0200

----------------------------------------------------------------------
 .../apache/camel/itest/karaf/CamelIgniteTest.java  | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/06bc26f8/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelIgniteTest.java
----------------------------------------------------------------------
diff --git 
a/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelIgniteTest.java
 
b/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelIgniteTest.java
index 7cb7418..f1fc38c 100644
--- 
a/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelIgniteTest.java
+++ 
b/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelIgniteTest.java
@@ -20,13 +20,30 @@ import java.net.URI;
 
 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.junit.PaxExam;
+import org.ops4j.pax.exam.Option;
 
 @RunWith(PaxExam.class)
 public class CamelIgniteTest extends BaseKarafTest {
 
     public static final String COMPONENT = extractName(CamelIgniteTest.class);
 
+    @Configuration
+    public static Option[] configure() {
+        Option[] baseOptions = BaseKarafTest.configure();
+        Option[] additionalOptions = CoreOptions.options(
+            CoreOptions.systemPackage("sun.nio.ch")
+        );
+
+        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 {
         // install ignite first

Reply via email to