camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r673954 [2/2] - in /activemq/camel/trunk: camel-core/src/main/java/org/apache/camel/ camel-core/src/main/java/org/apache/camel/impl/ camel-core/src/main/java/org/apache/camel/processor/interceptor/ camel-core/src/main/java/org/apache/camel/...
Date Fri, 04 Jul 2008 08:26:34 GMT
Modified: activemq/camel/trunk/components/camel-velocity/src/test/java/org/apache/camel/component/velocity/VelocityLetterTest.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-velocity/src/test/java/org/apache/camel/component/velocity/VelocityLetterTest.java?rev=673954&r1=673953&r2=673954&view=diff
==============================================================================
--- activemq/camel/trunk/components/camel-velocity/src/test/java/org/apache/camel/component/velocity/VelocityLetterTest.java
(original)
+++ activemq/camel/trunk/components/camel-velocity/src/test/java/org/apache/camel/component/velocity/VelocityLetterTest.java
Fri Jul  4 01:26:32 2008
@@ -1,59 +1,59 @@
-/**
- * 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.velocity;
-
-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;
-
-/**
- * Unit test for wiki documentation
- */
-public class VelocityLetterTest extends ContextTestSupport {
-
-    // START SNIPPET: e1
-    private Exchange createLetter() {
-        Exchange exchange = context.getEndpoint("direct:a").createExchange();
-        Message msg = exchange.getIn();
-        msg.setHeader("firstName", "Claus");
-        msg.setHeader("lastName", "Ibsen");
-        msg.setHeader("item", "Camel in Action");
-        msg.setBody("PS: Next beer is on me, James");
-        return exchange;
-    }
-
-    public void testVelocityLetter() throws Exception {
-        MockEndpoint mock = getMockEndpoint("mock:result");
-        mock.expectedMessageCount(1);
-        mock.expectedBodiesReceived("Dear Ibsen, Claus\n\nThanks for the order of Camel in
Action.\n\nRegards Camel Riders Bookstore\nPS: Next beer is on me, James");
-
-        template.send("direct:a", createLetter());
-
-        mock.assertIsSatisfied();
-    }
-
-    protected RouteBuilder createRouteBuilder() throws Exception {
-        return new RouteBuilder() {
-            public void configure() throws Exception {
-                from("direct:a").to("velocity:org/apache/camel/component/velocity/letter.vm").to("mock:result");
-            }
-        };
-    }
-    // END SNIPPET: e1
-}
+/**
+ * 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.velocity;
+
+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;
+
+/**
+ * Unit test for wiki documentation
+ */
+public class VelocityLetterTest extends ContextTestSupport {
+
+    // START SNIPPET: e1
+    private Exchange createLetter() {
+        Exchange exchange = context.getEndpoint("direct:a").createExchange();
+        Message msg = exchange.getIn();
+        msg.setHeader("firstName", "Claus");
+        msg.setHeader("lastName", "Ibsen");
+        msg.setHeader("item", "Camel in Action");
+        msg.setBody("PS: Next beer is on me, James");
+        return exchange;
+    }
+
+    public void testVelocityLetter() throws Exception {
+        MockEndpoint mock = getMockEndpoint("mock:result");
+        mock.expectedMessageCount(1);
+        mock.expectedBodiesReceived("Dear Ibsen, Claus\n\nThanks for the order of Camel in
Action.\n\nRegards Camel Riders Bookstore\nPS: Next beer is on me, James");
+
+        template.send("direct:a", createLetter());
+
+        mock.assertIsSatisfied();
+    }
+
+    protected RouteBuilder createRouteBuilder() throws Exception {
+        return new RouteBuilder() {
+            public void configure() throws Exception {
+                from("direct:a").to("velocity:org/apache/camel/component/velocity/letter.vm").to("mock:result");
+            }
+        };
+    }
+    // END SNIPPET: e1
+}

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

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

Modified: activemq/camel/trunk/examples/camel-example-spring-jms/build.xml
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/examples/camel-example-spring-jms/build.xml?rev=673954&r1=673953&r2=673954&view=diff
==============================================================================
--- activemq/camel/trunk/examples/camel-example-spring-jms/build.xml (original)
+++ activemq/camel/trunk/examples/camel-example-spring-jms/build.xml Fri Jul  4 01:26:32 2008
@@ -1,62 +1,62 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
-  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.
--->
-
-<project name="camel-example-spring-jms" default="run" basedir=".">
-
-  <import file="../common_build.xml"/>
-
-  <fail unless="env.SPRING_HOME" message="You must download Spring Framework and set your
SPRING_HOME to run this demo."/>
-  <fail unless="env.ACTIVEMQ_HOME" message="You must download ActiveMQ and set your ACTIVEMQ_HOME
to run this demo."/>
-  <fail unless="env.ASPECTJ_HOME" message="You must download AspectJ and set your ASPECTJ_HOME
to run this demo."/>
-
-  <property name="project.name" value="camel-example-jms-file"/>
-  
-  <path id="sample.build.classpath">
-    <fileset dir="${camel.lib}">
-      <include name="**/camel-jms-*.jar"/>
-      <exclude name="**/*-tests.jar"/>
-    </fileset>
-    <path refid="camel.spring.classpath"/>
-    <path refid="spring.classpath"/>
-    <path refid="activemq.classpath"/>
-    <path refid="aspectj.classpath"/>
-  </path>
-  
-  <target name="run" depends="build" description="Compile and run the sample CamelServer">
-    <camelrun>
-      <arguments>
-        <arg value="-a"/>
-        <arg value="META-INF/spring/camel-server.xml"/>
-      </arguments>
-    </camelrun>
-  </target>
-
-  <target name="run-client" depends="build" description="Compile and run the sample CamelClient">
-    <camelrun mainClass="org.apache.camel.example.client.CamelClient"/>
-  </target>
-
-  <target name="run-client-remoting" depends="build" description="Compile and run the
sample CamelClientRemoting">
-    <camelrun mainClass="org.apache.camel.example.client.CamelClientRemoting"/>
-  </target>
-
-  <target name="run-client-endpoint" depends="build" description="Compile and run the
sample CamelClientEndpoint">
-    <camelrun mainClass="org.apache.camel.example.client.CamelClientEndpoint"/>
-  </target>
-
-</project>
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+  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.
+-->
+
+<project name="camel-example-spring-jms" default="run" basedir=".">
+
+  <import file="../common_build.xml"/>
+
+  <fail unless="env.SPRING_HOME" message="You must download Spring Framework and set your
SPRING_HOME to run this demo."/>
+  <fail unless="env.ACTIVEMQ_HOME" message="You must download ActiveMQ and set your ACTIVEMQ_HOME
to run this demo."/>
+  <fail unless="env.ASPECTJ_HOME" message="You must download AspectJ and set your ASPECTJ_HOME
to run this demo."/>
+
+  <property name="project.name" value="camel-example-jms-file"/>
+  
+  <path id="sample.build.classpath">
+    <fileset dir="${camel.lib}">
+      <include name="**/camel-jms-*.jar"/>
+      <exclude name="**/*-tests.jar"/>
+    </fileset>
+    <path refid="camel.spring.classpath"/>
+    <path refid="spring.classpath"/>
+    <path refid="activemq.classpath"/>
+    <path refid="aspectj.classpath"/>
+  </path>
+  
+  <target name="run" depends="build" description="Compile and run the sample CamelServer">
+    <camelrun>
+      <arguments>
+        <arg value="-a"/>
+        <arg value="META-INF/spring/camel-server.xml"/>
+      </arguments>
+    </camelrun>
+  </target>
+
+  <target name="run-client" depends="build" description="Compile and run the sample CamelClient">
+    <camelrun mainClass="org.apache.camel.example.client.CamelClient"/>
+  </target>
+
+  <target name="run-client-remoting" depends="build" description="Compile and run the
sample CamelClientRemoting">
+    <camelrun mainClass="org.apache.camel.example.client.CamelClientRemoting"/>
+  </target>
+
+  <target name="run-client-endpoint" depends="build" description="Compile and run the
sample CamelClientEndpoint">
+    <camelrun mainClass="org.apache.camel.example.client.CamelClientEndpoint"/>
+  </target>
+
+</project>

Propchange: activemq/camel/trunk/examples/camel-example-spring-jms/build.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: activemq/camel/trunk/examples/camel-example-spring-jms/build.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: activemq/camel/trunk/examples/camel-example-spring-jms/build.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Propchange: activemq/camel/trunk/examples/camel-example-spring-jms/src/main/resources/log4j.properties
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: activemq/camel/trunk/examples/camel-example-spring-jms/src/main/resources/log4j.properties
------------------------------------------------------------------------------
    svn:mime-type = text/plain



Mime
View raw message