You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2008/11/10 16:52:30 UTC

svn commit: r712681 - in /activemq/camel/trunk/components/camel-spring/src/test: java/org/apache/camel/spring/bind/BeanAsEndpointTest.java java/org/apache/camel/spring/bind/ExampleBean.java resources/org/apache/camel/spring/bind/beanAsEndpoint.xml

Author: davsclaus
Date: Mon Nov 10 07:52:29 2008
New Revision: 712681

URL: http://svn.apache.org/viewvc?rev=712681&view=rev
Log:
CAMEL-656: Added wiki snippets

Modified:
    activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/bind/BeanAsEndpointTest.java
    activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/bind/ExampleBean.java
    activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/bind/beanAsEndpoint.xml

Modified: activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/bind/BeanAsEndpointTest.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/bind/BeanAsEndpointTest.java?rev=712681&r1=712680&r2=712681&view=diff
==============================================================================
--- activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/bind/BeanAsEndpointTest.java (original)
+++ activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/bind/BeanAsEndpointTest.java Mon Nov 10 07:52:29 2008
@@ -38,7 +38,6 @@
     }
 
     protected int getExpectedRouteCount() {
-        // TODO why zero?
         return 0;
     }
 

Modified: activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/bind/ExampleBean.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/bind/ExampleBean.java?rev=712681&r1=712680&r2=712681&view=diff
==============================================================================
--- activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/bind/ExampleBean.java (original)
+++ activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/bind/ExampleBean.java Mon Nov 10 07:52:29 2008
@@ -17,14 +17,16 @@
 package org.apache.camel.spring.bind;
 
 /**
- * An example POJO with no annotations or interfaces to test out the POJO
+ * An example Bean with no annotations or interfaces to test out the Bean
  * Camel binding
  *
  * @version $Revision$
  */
+// START SNIPPET: e1
 public class ExampleBean {
 
     public String sayHello(String name) {
         return "Hello " + name + "!";
     }
-}
\ No newline at end of file
+}
+// END SNIPPET: e1

Modified: activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/bind/beanAsEndpoint.xml
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/bind/beanAsEndpoint.xml?rev=712681&r1=712680&r2=712681&view=diff
==============================================================================
--- activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/bind/beanAsEndpoint.xml (original)
+++ activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/bind/beanAsEndpoint.xml Mon Nov 10 07:52:29 2008
@@ -22,6 +22,7 @@
        http://activemq.apache.org/camel/schema/spring http://activemq.apache.org/camel/schema/spring/camel-spring.xsd
     ">
 
+  <!-- START SNIPPET: e1 -->
   <camelContext id="camel" xmlns="http://activemq.apache.org/camel/schema/spring">
     <route>
       <from uri="direct:start"/>
@@ -31,4 +32,5 @@
   </camelContext>
 
   <bean id="myBean" class="org.apache.camel.spring.bind.ExampleBean"/>
+  <!-- END SNIPPET: e1 -->
 </beans>