You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2015/03/11 10:33:25 UTC

[3/3] camel git commit: CAMEL-7808 Added a karaf integration test

CAMEL-7808 Added a karaf integration test


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/3754f4c4
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/3754f4c4
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/3754f4c4

Branch: refs/heads/master
Commit: 3754f4c46d3522e15915a2f5094c5492c6df41c6
Parents: 803a62a
Author: Willem Jiang <wi...@gmail.com>
Authored: Wed Mar 11 17:31:28 2015 +0800
Committer: Willem Jiang <wi...@gmail.com>
Committed: Wed Mar 11 17:31:28 2015 +0800

----------------------------------------------------------------------
 .../apache/camel/itest/karaf/CamelBoonTest.java | 46 ++++++++++++++++++++
 1 file changed, 46 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/3754f4c4/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelBoonTest.java
----------------------------------------------------------------------
diff --git a/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelBoonTest.java b/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelBoonTest.java
new file mode 100644
index 0000000..5b5901b
--- /dev/null
+++ b/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelBoonTest.java
@@ -0,0 +1,46 @@
+/**
+ * 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.apache.camel.model.DataFormatDefinition;
+import org.apache.camel.model.dataformat.BoonDataFormat;
+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 CamelBoonTest extends AbstractFeatureTest {
+
+    public static final String COMPONENT = extractName(CamelBoonTest.class);
+
+    protected DataFormatDefinition createDataformatDefinition(String format) {
+        return new BoonDataFormat();
+    }
+
+    @Test
+    public void test() throws Exception {
+        testDataFormat(COMPONENT);
+    }
+
+    @Configuration
+    public static Option[] configure() {
+        return configure(COMPONENT);
+    }
+
+}