Repository: camel
Updated Branches:
refs/heads/master 046e7dc21 -> 4262ac901
CAMEL-10554 - camel-mongodb evolution to driver 3. Added Karaf feature for the new component.
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/4262ac90
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/4262ac90
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/4262ac90
Branch: refs/heads/master
Commit: 4262ac901c673d773583121baf41fb78107f3b6c
Parents: 046e7dc
Author: Andrea Cosentino <ancosen@gmail.com>
Authored: Sun Dec 18 10:21:48 2016 +0100
Committer: Andrea Cosentino <ancosen@gmail.com>
Committed: Sun Dec 18 10:21:48 2016 +0100
----------------------------------------------------------------------
.../features/src/main/resources/features.xml | 6 ++++
.../camel/itest/karaf/CamelMongodb3Test.java | 34 ++++++++++++++++++++
2 files changed, 40 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/4262ac90/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 f04a458..d8b9455 100644
--- a/platforms/karaf/features/src/main/resources/features.xml
+++ b/platforms/karaf/features/src/main/resources/features.xml
@@ -1246,6 +1246,12 @@
<bundle dependency='true'>mvn:org.mongodb/mongo-java-driver/${mongo-java-driver-version}</bundle>
<bundle>mvn:org.apache.camel/camel-mongodb/${project.version}</bundle>
</feature>
+ <feature name='camel-mongodb3' version='${project.version}' resolver='(obr)' start-level='50'>
+ <feature version='${project.version}'>camel-core</feature>
+ <feature version='${project.version}'>camel-jackson</feature>
+ <bundle dependency='true'>mvn:org.mongodb/mongo-java-driver/${mongo-java-driver-version}</bundle>
+ <bundle>mvn:org.apache.camel/camel-mongodb3/${project.version}</bundle>
+ </feature>
<feature name='camel-mongodb-gridfs' version='${project.version}' resolver='(obr)' start-level='50'>
<feature version='${project.version}'>camel-core</feature>
<feature version='${project.version}'>camel-jackson</feature>
http://git-wip-us.apache.org/repos/asf/camel/blob/4262ac90/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelMongodb3Test.java
----------------------------------------------------------------------
diff --git a/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelMongodb3Test.java
b/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelMongodb3Test.java
new file mode 100644
index 0000000..41ac118
--- /dev/null
+++ b/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelMongodb3Test.java
@@ -0,0 +1,34 @@
+/**
+ * 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 CamelMongodb3Test extends BaseKarafTest {
+
+ public static final String COMPONENT = extractName(CamelMongodb3Test.class);
+
+ @Test
+ public void test() throws Exception {
+ testComponent(COMPONENT);
+ }
+
+
+}
|