Add karaf itest for camel-google-calendar

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

Branch: refs/heads/master
Commit: 5c00bca99d7d22a3ea82cfdc88ad409ddd16669f
Parents: 78ea3c9
Author: Jonathan Anstey <jans...@gmail.com>
Authored: Fri Nov 14 15:01:42 2014 -0330
Committer: Jonathan Anstey <jans...@gmail.com>
Committed: Fri Nov 14 15:01:42 2014 -0330

----------------------------------------------------------------------
 .../org/apache/camel/component/google-calendar  |  2 +-
 .../itest/karaf/CamelGoogleCalendarTest.java    | 40 ++++++++++++++++++++
 2 files changed, 41 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/5c00bca9/components/camel-google-calendar/src/main/resources/META-INF/services/org/apache/camel/component/google-calendar
----------------------------------------------------------------------
diff --git 
a/components/camel-google-calendar/src/main/resources/META-INF/services/org/apache/camel/component/google-calendar
 
b/components/camel-google-calendar/src/main/resources/META-INF/services/org/apache/camel/component/google-calendar
index 8fc7880..de56683 100644
--- 
a/components/camel-google-calendar/src/main/resources/META-INF/services/org/apache/camel/component/google-calendar
+++ 
b/components/camel-google-calendar/src/main/resources/META-INF/services/org/apache/camel/component/google-calendar
@@ -1 +1 @@
-class=org.apache.camel.GoogleCalendarComponent
+class=org.apache.camel.component.google.calendar.GoogleCalendarComponent

http://git-wip-us.apache.org/repos/asf/camel/blob/5c00bca9/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelGoogleCalendarTest.java
----------------------------------------------------------------------
diff --git 
a/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelGoogleCalendarTest.java
 
b/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelGoogleCalendarTest.java
new file mode 100644
index 0000000..58330f3
--- /dev/null
+++ 
b/tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelGoogleCalendarTest.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 CamelGoogleCalendarTest extends AbstractFeatureTest {
+
+    public static final String COMPONENT = 
extractName(CamelGoogleCalendarTest.class);
+
+    @Test
+    public void test() throws Exception {
+        testComponent(COMPONENT);
+    }
+
+    @Configuration
+    public static Option[] configure() {
+        return configure(COMPONENT);
+    }
+
+}

Reply via email to