Added beanstalk to features
Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/4233318d Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/4233318d Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/4233318d Branch: refs/heads/master Commit: 4233318d90aab323b8da7cc652dc67c5d8d4c760 Parents: d636106 Author: Claus Ibsen <[email protected]> Authored: Sun Sep 21 09:53:42 2014 +0200 Committer: Claus Ibsen <[email protected]> Committed: Sun Sep 21 09:56:06 2014 +0200 ---------------------------------------------------------------------- .../features/src/main/resources/features.xml | 5 +++ .../camel/itest/karaf/CamelBeanstalkTest.java | 40 ++++++++++++++++++++ 2 files changed, 45 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/4233318d/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 bb66582..9ddf53b 100644 --- a/platforms/karaf/features/src/main/resources/features.xml +++ b/platforms/karaf/features/src/main/resources/features.xml @@ -163,6 +163,11 @@ <bundle dependency='true'>mvn:org.beanio/beanio/${beanio-version}</bundle> <bundle>mvn:org.apache.camel/camel-beanio/${project.version}</bundle> </feature> + <feature name='camel-beanstalk' version='${project.version}' resolver='(obr)' start-level='50'> + <feature version='${project.version}'>camel-core</feature> + <bundle dependency='true'>wrap:mvn:com.surftools/BeanstalkClient/${beanstalkd-client-version}</bundle> + <bundle>mvn:org.apache.camel/camel-beanstalk/${project.version}</bundle> + </feature> <feature name='camel-barcode' 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.zxing/${zxing-bundle-version}</bundle> http://git-wip-us.apache.org/repos/asf/camel/blob/4233318d/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelBeanstalkTest.java ---------------------------------------------------------------------- diff --git a/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelBeanstalkTest.java b/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelBeanstalkTest.java new file mode 100644 index 0000000..7a79ba5 --- /dev/null +++ b/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelBeanstalkTest.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 CamelBeanstalkTest extends AbstractFeatureTest { + + public static final String COMPONENT = extractName(CamelBeanstalkTest.class); + + @Test + public void test() throws Exception { + testComponent(COMPONENT); + } + + @Configuration + public static Option[] configure() { + return configure(COMPONENT); + } + +} \ No newline at end of file
