Add camel-slack to features
Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/bd36f624 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/bd36f624 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/bd36f624 Branch: refs/heads/master Commit: bd36f6245bdb4eec2181cfce6fb4959bd3ccba9c Parents: eaf4ab9 Author: Claus Ibsen <davscl...@apache.org> Authored: Mon Jun 1 09:14:42 2015 +0200 Committer: Claus Ibsen <davscl...@apache.org> Committed: Mon Jun 1 09:14:42 2015 +0200 ---------------------------------------------------------------------- .../features/src/main/resources/features.xml | 8 ++++ .../camel/itest/karaf/CamelSlackTest.java | 40 ++++++++++++++++++++ 2 files changed, 48 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/bd36f624/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 7f7d345..1e26ccf 100644 --- a/platforms/karaf/features/src/main/resources/features.xml +++ b/platforms/karaf/features/src/main/resources/features.xml @@ -1314,6 +1314,14 @@ <feature version='${project.version}'>camel-core</feature> <bundle>mvn:org.apache.camel/camel-sjms/${project.version}</bundle> </feature> + <feature name='camel-slack' version='${project.version}' resolver='(obr)' start-level='50'> + <bundle dependency='true'>mvn:com.googlecode.json-simple/json-simple/${json-simple-version}</bundle> + <bundle dependency='true'>mvn:org.apache.httpcomponents/httpcore-osgi/${httpcore4-version}</bundle> + <bundle dependency='true'>mvn:org.apache.httpcomponents/httpclient-osgi/${httpclient4-version}</bundle> + <bundle dependency='true'>mvn:org.apache.geronimo.specs/geronimo-servlet_3.0_spec/${geronimo-servlet-spec-version}</bundle> + <feature version='${project.version}'>camel-core</feature> + <bundle>mvn:org.apache.camel/camel-slack/${project.version}</bundle> + </feature> <feature name='camel-smpp' version='${project.version}' resolver='(obr)' start-level='50'> <feature version='${project.version}'>camel-core</feature> <bundle dependency='true'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jsmpp/${jsmpp-bundle-version}</bundle> http://git-wip-us.apache.org/repos/asf/camel/blob/bd36f624/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelSlackTest.java ---------------------------------------------------------------------- diff --git a/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelSlackTest.java b/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelSlackTest.java new file mode 100644 index 0000000..8c39d8d --- /dev/null +++ b/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelSlackTest.java @@ -0,0 +1,40 @@ +/** + * 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.Configuration; +import org.ops4j.pax.exam.Option; +import org.ops4j.pax.exam.junit.PaxExam; + +@RunWith(PaxExam.class) +public class CamelSlackTest extends AbstractFeatureTest { + + public static final String COMPONENT = extractName(CamelSlackTest.class); + + @Test + public void test() throws Exception { + testComponent(COMPONENT); + } + + @Configuration + public static Option[] configure() { + return configure(COMPONENT); + } + +} \ No newline at end of file