Repository: camel Updated Branches: refs/heads/master 79f8ac848 -> 5cb906658
CAMEL-11854: camel-pubnub karaf feature Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/5cb90665 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/5cb90665 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/5cb90665 Branch: refs/heads/master Commit: 5cb906658ac49db9104d62d2e753aaafbba59ade Parents: 79f8ac8 Author: Claus Ibsen <davscl...@apache.org> Authored: Thu Sep 28 10:13:25 2017 +0200 Committer: Claus Ibsen <davscl...@apache.org> Committed: Thu Sep 28 10:13:25 2017 +0200 ---------------------------------------------------------------------- .../features/src/main/resources/features.xml | 9 ++++++ .../camel/itest/karaf/CamelPubnubTest.java | 33 ++++++++++++++++++++ 2 files changed, 42 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/5cb90665/platforms/karaf/features/src/main/resources/features.xml ---------------------------------------------------------------------- diff --git a/platforms/karaf/features/src/main/resources/features.xml b/platforms/karaf/features/src/main/resources/features.xml index ec0468a..9e3c26e 100644 --- a/platforms/karaf/features/src/main/resources/features.xml +++ b/platforms/karaf/features/src/main/resources/features.xml @@ -1667,6 +1667,15 @@ <bundle dependency='true'>mvn:com.google.code.gson/gson/${gson-version}</bundle> <bundle>mvn:org.apache.camel/camel-protobuf/${project.version}</bundle> </feature> + <feature name='camel-pubnub' version='${project.version}' resolver='(obr)' start-level='50'> + <feature version='${project.version}'>camel-core</feature> + <bundle dependency='true'>wrap:mvn:com.pubnub/pubnub-gson/${pubnub-version}</bundle> + <bundle dependency='true'>mvn:com.google.code.gson/gson/${gson-version}</bundle> + <bundle dependency='true'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.okhttp/${okclient-bundle-version}</bundle> + <bundle dependency='true'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.okio/${squareup-okio-bundle-version}</bundle> + <bundle dependency='true'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.retrofit/${squareup-retrofit2-bundle-version}</bundle> + <bundle>mvn:org.apache.camel/camel-pubnub/${project.version}</bundle> + </feature> <feature name='camel-quartz' version='${project.version}' resolver='(obr)' start-level='50'> <bundle dependency='true'>mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/${geronimo-jta-spec-version}</bundle> <bundle dependency='true'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.quartz/${quartz-bundle-version}</bundle> http://git-wip-us.apache.org/repos/asf/camel/blob/5cb90665/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelPubnubTest.java ---------------------------------------------------------------------- diff --git a/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelPubnubTest.java b/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelPubnubTest.java new file mode 100644 index 0000000..f5bd959 --- /dev/null +++ b/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelPubnubTest.java @@ -0,0 +1,33 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.camel.itest.karaf; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.ops4j.pax.exam.junit.PaxExam; + +@RunWith(PaxExam.class) +public class CamelPubnubTest extends BaseKarafTest { + + public static final String COMPONENT = extractName(CamelPubnubTest.class); + + @Test + public void test() throws Exception { + testComponent(COMPONENT); + } + +}