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 2008/05/13 12:04:42 UTC

svn commit: r655792 - in /activemq/camel/trunk/components/camel-spring/src/test: java/org/apache/camel/spring/config/scan/route/MyRouteBuilder.java resources/org/apache/camel/spring/config/scan/componentScan.xml

Author: ningjiang
Date: Tue May 13 03:04:42 2008
New Revision: 655792

URL: http://svn.apache.org/viewvc?rev=655792&view=rev
Log:
CAMEL-361 added test case to verify the error

Modified:
    activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/config/scan/route/MyRouteBuilder.java
    activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/config/scan/componentScan.xml

Modified: activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/config/scan/route/MyRouteBuilder.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/config/scan/route/MyRouteBuilder.java?rev=655792&r1=655791&r2=655792&view=diff
==============================================================================
--- activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/config/scan/route/MyRouteBuilder.java (original)
+++ activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/config/scan/route/MyRouteBuilder.java Tue May 13 03:04:42 2008
@@ -17,6 +17,8 @@
 
 package org.apache.camel.spring.config.scan.route;
 
+import org.apache.camel.Endpoint;
+import org.apache.camel.EndpointInject;
 import org.apache.camel.builder.RouteBuilder;
 import org.apache.camel.spring.config.scan.component.MyProcessor;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -25,9 +27,13 @@
 
     MyProcessor component;
 
+    @Autowired
+    @EndpointInject(name = "result")
+    Endpoint resultEndpoint;
+
     @Override
     public void configure() throws Exception {
-        from("direct:start").process(component).to("mock:end");
+        from("direct:start").process(component).to(resultEndpoint);
     }
 
     @Autowired

Modified: activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/config/scan/componentScan.xml
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/config/scan/componentScan.xml?rev=655792&r1=655791&r2=655792&view=diff
==============================================================================
--- activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/config/scan/componentScan.xml (original)
+++ activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/config/scan/componentScan.xml Tue May 13 03:04:42 2008
@@ -18,15 +18,16 @@
 <beans xmlns="http://www.springframework.org/schema/beans"
 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 	xmlns:context="http://www.springframework.org/schema/context"
-	xsi:schemaLocation="http://activemq.apache.org/camel/schema/spring 
+	xsi:schemaLocation="http://activemq.apache.org/camel/schema/spring
        http://activemq.apache.org/camel/schema/spring/camel-spring.xsd
-	http://www.springframework.org/schema/beans 
+	http://www.springframework.org/schema/beans
            http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
            http://www.springframework.org/schema/context
            http://www.springframework.org/schema/context/spring-context-2.5.xsd">
 
   <camelContext xmlns="http://activemq.apache.org/camel/schema/spring">
     <package>org.apache.camel.spring.config.scan.route</package>
+    <endpoint id="result" uri="mock:end"/>
   </camelContext>
 
   <context:component-scan