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 2017/06/21 09:33:06 UTC
[4/4] camel git commit: CAMEL-10267 - Added Camel-Caffeine Karaf
feature and related test
CAMEL-10267 - Added Camel-Caffeine Karaf feature and related test
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/a5d458dd
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/a5d458dd
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/a5d458dd
Branch: refs/heads/master
Commit: a5d458ddfe8e5b5dee65d26aa82d70aa39f44294
Parents: 6e20fd5
Author: Andrea Cosentino <an...@gmail.com>
Authored: Wed Jun 21 11:29:37 2017 +0200
Committer: Andrea Cosentino <an...@gmail.com>
Committed: Wed Jun 21 11:29:37 2017 +0200
----------------------------------------------------------------------
.../features/src/main/resources/features.xml | 5 +++
.../camel/itest/karaf/CamelCaffeineTest.java | 34 ++++++++++++++++++++
2 files changed, 39 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/a5d458dd/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 fcb9ee8..94c6258 100644
--- a/platforms/karaf/features/src/main/resources/features.xml
+++ b/platforms/karaf/features/src/main/resources/features.xml
@@ -280,6 +280,11 @@
<bundle dependency='true'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jdom/${jdom-bundle-version}</bundle>
<bundle>mvn:org.apache.camel/camel-cache/${project.version}</bundle>
</feature>
+ <feature name='camel-caffeine' version='${project.version}' resolver='(obr)' start-level='50'>
+ <feature version="${project.version}">camel-core</feature>
+ <bundle dependency="true">mvn:com.github.ben-manes.caffeine/caffeine/${caffeine-version}</bundle>
+ <bundle>mvn:org.apache.camel/camel-caffeine/${project.version}</bundle>
+ </feature>
<feature name='camel-cassandraql' version='${project.version}' resolver='(obr)' start-level='50'>
<feature version='${project.version}'>camel-core</feature>
<bundle dependency='true'>mvn:com.google.guava/guava/${cassandra-driver-guava-version}</bundle>
http://git-wip-us.apache.org/repos/asf/camel/blob/a5d458dd/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelCaffeineTest.java
----------------------------------------------------------------------
diff --git a/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelCaffeineTest.java b/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelCaffeineTest.java
new file mode 100644
index 0000000..f49ea57
--- /dev/null
+++ b/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelCaffeineTest.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 CamelCaffeineTest extends BaseKarafTest {
+
+ public static final String COMPONENT = extractName(CamelCaffeineTest.class);
+
+ @Test
+ public void test() throws Exception {
+ testComponent(COMPONENT, "caffeine-cache");
+ testComponent(COMPONENT, "caffeine-loadcache");
+ }
+
+}