camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r559772 - /activemq/camel/trunk/components/camel-bam/src/test/java/org/apache/camel/bam/BamRouteTest.java
Date Thu, 26 Jul 2007 09:49:19 GMT
Author: jstrachan
Date: Thu Jul 26 02:49:18 2007
New Revision: 559772

URL: http://svn.apache.org/viewvc?view=rev&rev=559772
Log:
added snippet macros

Modified:
    activemq/camel/trunk/components/camel-bam/src/test/java/org/apache/camel/bam/BamRouteTest.java

Modified: activemq/camel/trunk/components/camel-bam/src/test/java/org/apache/camel/bam/BamRouteTest.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-bam/src/test/java/org/apache/camel/bam/BamRouteTest.java?view=diff&rev=559772&r1=559771&r2=559772
==============================================================================
--- activemq/camel/trunk/components/camel-bam/src/test/java/org/apache/camel/bam/BamRouteTest.java
(original)
+++ activemq/camel/trunk/components/camel-bam/src/test/java/org/apache/camel/bam/BamRouteTest.java
Thu Jul 26 02:49:18 2007
@@ -58,23 +58,24 @@
         jpaTemplate = getMandatoryBean(JpaTemplate.class, "jpaTemplate");
         transactionTemplate = getMandatoryBean(TransactionTemplate.class, "transactionTemplate");
 
+        // START SNIPPET: example
         return new ProcessBuilder(jpaTemplate, transactionTemplate) {
             public void configure() throws Exception {
 
+                // lets define some activities
                 ActivityBuilder a = activity("direct:a").name("a")
                         .correlate(header("foo"));
 
                 ActivityBuilder b = activity("direct:b").name("b")
                         .correlate(header("foo"));
 
-                ActivityBuilder c = activity("direct:c").name("c")
-                        .correlate(header("foo"));
-
+                // now lets add some rules
                 b.starts().after(a.completes())
                         .expectWithin(seconds(1))
                         .errorIfOver(seconds(2)).to("mock:overdue");
             }
         };
+        // END SNIPPET: example
     }
 
     @Override



Mime
View raw message