activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r520599 - /activemq/camel/trunk/camel-xbean/src/test/resources/org/apache/camel/xbean/xbean_route_builder_test.xml
Date Tue, 20 Mar 2007 21:13:43 GMT
Author: chirino
Date: Tue Mar 20 14:13:43 2007
New Revision: 520599

URL: http://svn.apache.org/viewvc?view=rev&rev=520599
Log:
make it even more concise

Modified:
    activemq/camel/trunk/camel-xbean/src/test/resources/org/apache/camel/xbean/xbean_route_builder_test.xml

Modified: activemq/camel/trunk/camel-xbean/src/test/resources/org/apache/camel/xbean/xbean_route_builder_test.xml
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-xbean/src/test/resources/org/apache/camel/xbean/xbean_route_builder_test.xml?view=diff&rev=520599&r1=520598&r2=520599
==============================================================================
--- activemq/camel/trunk/camel-xbean/src/test/resources/org/apache/camel/xbean/xbean_route_builder_test.xml
(original)
+++ activemq/camel/trunk/camel-xbean/src/test/resources/org/apache/camel/xbean/xbean_route_builder_test.xml
Tue Mar 20 14:13:43 2007
@@ -20,28 +20,29 @@
 
     <!-- 
         from("queue:a").to("queue:b");
+        from("queue:c").to("queue:d");
      -->
     <RouteBuilder id="buildSimpleRoute">
-       <routes>
-          <route>
-            <from uri="queue:a"/>
-            <to uri="queue:b"/>
-          </route>
-       </routes>
+       <route>
+         <from uri="queue:a"/>
+         <to uri="queue:b"/>
+       </route>
+       <route>
+         <from uri="queue:c"/>
+         <to uri="queue:d"/>
+       </route>
     </RouteBuilder>
     
     <!-- 
         from("queue:a").process(myProcessor);
      -->
     <RouteBuilder id="buildCustomProcessor">
-       <routes>
-          <route>
-            <from uri="queue:a"/>
-            <processor>
-              <bean id="myProcessor" class="some.Processor"/>
-            </processor>
-          </route>
-       </routes>
+       <route>
+         <from uri="queue:a"/>
+         <processor>
+           <bean id="myProcessor" class="some.Processor"/>
+         </processor>
+       </route>
     </RouteBuilder>
 
 
@@ -49,20 +50,18 @@
         from("queue:a").filter(headerEquals("foo", "bar")).process(myProcessor);
      -->
     <RouteBuilder id="buildCustomProcessorWithFilter">
-       <routes>
-          <route>
-            <from uri="queue:a"/>
-            <filter>
-                <predicate>
-                   <header name="foo"/>
-                   <equalTo value="bar"/>
-                </predicate>
-            </filter>
-            <processor>
-              <bean class="some.Processor"/>
-            </processor>
-          </route>
-       </routes>
+       <route>
+         <from uri="queue:a"/>
+         <filter>
+             <predicate>
+                <header name="foo"/>
+                <equalTo value="bar"/>
+             </predicate>
+         </filter>
+         <processor>
+           <bean class="some.Processor"/>
+         </processor>
+       </route>
     </RouteBuilder>
 
     <!-- 
@@ -73,16 +72,14 @@
            .target().to("queue:d");
      -->
     <RouteBuilder id="buildRouteWithInterceptor">
-       <routes>
-          <route>
-            <from uri="queue:a"/>
-            <intercept>
-                <bean id="interceptor1" class="some.InterceptorProcessor"/>
-                <bean id="interceptor2" class="some.InterceptorProcessor"/>
-            </intercept>
-            <to uri="queue:b"/>
-          </route>
-       </routes>
+       <route>
+         <from uri="queue:a"/>
+         <intercept>
+             <bean id="interceptor1" class="some.InterceptorProcessor"/>
+             <bean id="interceptor2" class="some.InterceptorProcessor"/>
+         </intercept>
+         <to uri="queue:b"/>
+       </route>
     </RouteBuilder>
 
     <!-- 
@@ -92,64 +89,58 @@
                 .otherwise().to("queue:d");
      -->
     <routeBuilder id="buildSimpleRouteWithChoice">
-       <routes>
-          <route>
-            <from uri="queue:a"/>
-            <choice>
-                <when>
-                    <predicate>
-                       <header name="foo"/>
-                       <equalTo value="bar"/>
-                    </predicate>
-                    <to uri="queue:b"/>
-                </when>
-                
-                <when>
-                    <predicate>
-                       <header name="foo"/>
-                       <equalTo value="cheese"/>
-                    </predicate>
-                    <to uri="queue:c"/>
-                </when>
-                <otherwise>
-                    <to uri="queue:d"/>
-                </otherwise>
-            </choice>
-          </route>
-       </routes>
+       <route>
+         <from uri="queue:a"/>
+         <choice>
+             <when>
+                 <predicate>
+                    <header name="foo"/>
+                    <equalTo value="bar"/>
+                 </predicate>
+                 <to uri="queue:b"/>
+             </when>
+             
+             <when>
+                 <predicate>
+                    <header name="foo"/>
+                    <equalTo value="cheese"/>
+                 </predicate>
+                 <to uri="queue:c"/>
+             </when>
+             <otherwise>
+                 <to uri="queue:d"/>
+             </otherwise>
+         </choice>
+       </route>
     </routeBuilder>
 
     <!-- 
         from("queue:a").filter(headerEquals("foo", "bar")).to("queue:b");
      -->
     <RouteBuilder id="buildSimpleRouteWithHeaderPredicate">
-       <routes>
-          <route>
-            <from uri="queue:a"/>
-            <filter>
-                <predicate>
-                   <header name="foo"/>
-                   <equalTo value="bar"/>
-                </predicate>
-            </filter>
-            <to uri="queue:b"/>
-          </route>
-       </routes>
+       <route>
+         <from uri="queue:a"/>
+         <filter>
+             <predicate>
+                <header name="foo"/>
+                <equalTo value="bar"/>
+             </predicate>
+         </filter>
+         <to uri="queue:b"/>
+       </route>
     </RouteBuilder>
 
     <!-- 
         from("queue:a").to("queue:tap", "queue:b");
      -->
     <RouteBuilder id="buildWireTap">
-       <routes>
-          <route>
-            <from uri="queue:a"/>
-            <to>
-               <uri>queue:tap</uri>
-               <uri>queue:a</uri>
-            </to>
-          </route>
-       </routes>
+       <route>
+         <from uri="queue:a"/>
+         <to>
+            <uri>queue:tap</uri>
+            <uri>queue:a</uri>
+         </to>
+       </route>
     </RouteBuilder>
 
 </beans>



Mime
View raw message