svn commit: r698415 - in /activemq/camel/trunk/components: camel-http/src/main/resources/META-INF/services/org/apache/camel/component/ camel-http/src/test/java/org/apache/camel/component/http/ camel-script/src/test/java/org/apache/camel/builder/script/

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r698415 - in /activemq/camel/trunk/components: camel-http/src/main/resources/META-INF/services/org/apache/camel/component/ camel-http/src/test/java/org/apache/camel/component/http/ camel-script/src/test/java/org/apache/camel/builder/script/

ningjiang
Author: ningjiang
Date: Tue Sep 23 19:18:38 2008
New Revision: 698415

URL: http://svn.apache.org/viewvc?rev=698415&view=rev
Log:
CAMEL-934 added the https description file

Added:
    activemq/camel/trunk/components/camel-http/src/main/resources/META-INF/services/org/apache/camel/component/https
    activemq/camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpsGetTest.java   (with props)
Modified:
    activemq/camel/trunk/components/camel-script/src/test/java/org/apache/camel/builder/script/BeanShellScriptRouteTest.java

Added: activemq/camel/trunk/components/camel-http/src/main/resources/META-INF/services/org/apache/camel/component/https
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-http/src/main/resources/META-INF/services/org/apache/camel/component/https?rev=698415&view=auto
==============================================================================
--- activemq/camel/trunk/components/camel-http/src/main/resources/META-INF/services/org/apache/camel/component/https (added)
+++ activemq/camel/trunk/components/camel-http/src/main/resources/META-INF/services/org/apache/camel/component/https Tue Sep 23 19:18:38 2008
@@ -0,0 +1,18 @@
+#
+# 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.
+#
+
+class=org.apache.camel.component.http.HttpComponent

Added: activemq/camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpsGetTest.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpsGetTest.java?rev=698415&view=auto
==============================================================================
--- activemq/camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpsGetTest.java (added)
+++ activemq/camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpsGetTest.java Tue Sep 23 19:18:38 2008
@@ -0,0 +1,45 @@
+/**
+ * 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.component.http;
+
+import java.util.List;
+import java.util.Map;
+
+import org.apache.camel.ContextTestSupport;
+import org.apache.camel.Exchange;
+import org.apache.camel.Message;
+import org.apache.camel.builder.RouteBuilder;
+import org.apache.camel.component.mock.MockEndpoint;
+
+public class HttpsGetTest extends HttpGetTest {
+
+    @Override
+    protected void setUp() throws Exception {
+        expectedText = "https://mail.google.com/mail/";
+        super.setUp();
+    }
+
+    @Override
+    protected RouteBuilder createRouteBuilder() throws Exception {
+        return new RouteBuilder() {
+            public void configure() {
+                from("direct:start")
+                    .to("https://mail.google.com/mail/").to("mock:results");
+            }
+        };
+    }
+}

Propchange: activemq/camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpsGetTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: activemq/camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpsGetTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: activemq/camel/trunk/components/camel-script/src/test/java/org/apache/camel/builder/script/BeanShellScriptRouteTest.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-script/src/test/java/org/apache/camel/builder/script/BeanShellScriptRouteTest.java?rev=698415&r1=698414&r2=698415&view=diff
==============================================================================
--- activemq/camel/trunk/components/camel-script/src/test/java/org/apache/camel/builder/script/BeanShellScriptRouteTest.java (original)
+++ activemq/camel/trunk/components/camel-script/src/test/java/org/apache/camel/builder/script/BeanShellScriptRouteTest.java Tue Sep 23 19:18:38 2008
@@ -16,12 +16,14 @@
  */
 package org.apache.camel.builder.script;
 
+import java.util.HashMap;
+import java.util.Map;
+
 import org.apache.camel.ContextTestSupport;
 import org.apache.camel.builder.RouteBuilder;
+
 import static org.apache.camel.builder.script.ScriptBuilder.beanShell;
 
-import java.util.HashMap;
-import java.util.Map;
 
 /**
  * Unit test for a BeanSheel script