You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2016/01/18 14:30:56 UTC
[3/3] camel git commit: CAMEL-9267: Added Camel-nats to kit and
created feature
CAMEL-9267: Added Camel-nats to kit and created feature
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/2b22c3f2
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/2b22c3f2
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/2b22c3f2
Branch: refs/heads/master
Commit: 2b22c3f287cf71a15fee9155a75ef3635c95186c
Parents: 49f0125
Author: Andrea Cosentino <an...@gmail.com>
Authored: Mon Jan 18 11:12:42 2016 +0100
Committer: Andrea Cosentino <an...@gmail.com>
Committed: Mon Jan 18 11:12:42 2016 +0100
----------------------------------------------------------------------
components/pom.xml | 1 +
parent/pom.xml | 5 +++
.../features/src/main/resources/features.xml | 5 +++
.../apache/camel/itest/karaf/CamelNatsTest.java | 40 ++++++++++++++++++++
4 files changed, 51 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/2b22c3f2/components/pom.xml
----------------------------------------------------------------------
diff --git a/components/pom.xml b/components/pom.xml
index 33846eb..53f7dc6 100644
--- a/components/pom.xml
+++ b/components/pom.xml
@@ -172,6 +172,7 @@
<module>camel-mvel</module>
<module>camel-mybatis</module>
<module>camel-nagios</module>
+ <module>camel-nats</module>
<module>camel-netty</module>
<module>camel-netty4</module>
<module>camel-netty-http</module>
http://git-wip-us.apache.org/repos/asf/camel/blob/2b22c3f2/parent/pom.xml
----------------------------------------------------------------------
diff --git a/parent/pom.xml b/parent/pom.xml
index 9c474f1..d62ed2d 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -1296,6 +1296,11 @@
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
+ <artifactId>camel-nats</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel</groupId>
<artifactId>camel-netty</artifactId>
<version>${project.version}</version>
</dependency>
http://git-wip-us.apache.org/repos/asf/camel/blob/2b22c3f2/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 75ebde4..dc80c1d 100644
--- a/platforms/karaf/features/src/main/resources/features.xml
+++ b/platforms/karaf/features/src/main/resources/features.xml
@@ -1094,6 +1094,11 @@
<bundle dependency='true'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jsendnsca-core/${jsendnsca-bundle-version}</bundle>
<bundle>mvn:org.apache.camel/camel-nagios/${project.version}</bundle>
</feature>
+ <feature name='camel-nats' version='${project.version}' resolver='(obr)' start-level='50'>
+ <feature version='${project.version}'>camel-core</feature>
+ <bundle dependency='true'>wrap:mvn:com.github.tyagihas/java_nats/${java-nats-version}</bundle>
+ <bundle>mvn:org.apache.camel/camel-nats/${project.version}</bundle>
+ </feature>
<feature name='camel-netty' version='${project.version}' resolver='(obr)' start-level='50'>
<feature version='${project.version}'>camel-core</feature>
<bundle dependency='true'>mvn:io.netty/netty/${netty3-version}</bundle>
http://git-wip-us.apache.org/repos/asf/camel/blob/2b22c3f2/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelNatsTest.java
----------------------------------------------------------------------
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
new file mode 100644
index 0000000..32ae4ae
--- /dev/null
+++ b/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelNatsTest.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 CamelNatsTest extends AbstractFeatureTest {
+
+ public static final String COMPONENT = extractName(CamelNatsTest.class);
+
+ @Test
+ public void test() throws Exception {
+ testComponent(COMPONENT);
+ }
+
+ @Configuration
+ public static Option[] configure() {
+ return configure(COMPONENT);
+ }
+
+}
\ No newline at end of file