camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r771042 - /camel/trunk/camel-core/src/test/java/org/apache/camel/processor/intercept/InterceptSimpleRouteWhenTest.java
Date Sun, 03 May 2009 09:00:47 GMT
Author: davsclaus
Date: Sun May  3 09:00:46 2009
New Revision: 771042

URL: http://svn.apache.org/viewvc?rev=771042&view=rev
Log:
CAMEL-1569: Added when() to intercept(). Its nice when the code is nice and clean now, and
easy to add when predicate. (unlike the old code in InterceptFromDefinition, that got to complex)

Modified:
    camel/trunk/camel-core/src/test/java/org/apache/camel/processor/intercept/InterceptSimpleRouteWhenTest.java

Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/processor/intercept/InterceptSimpleRouteWhenTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/intercept/InterceptSimpleRouteWhenTest.java?rev=771042&r1=771041&r2=771042&view=diff
==============================================================================
--- camel/trunk/camel-core/src/test/java/org/apache/camel/processor/intercept/InterceptSimpleRouteWhenTest.java
(original)
+++ camel/trunk/camel-core/src/test/java/org/apache/camel/processor/intercept/InterceptSimpleRouteWhenTest.java
Sun May  3 09:00:46 2009
@@ -42,10 +42,12 @@
         return new RouteBuilder() {
             @Override
             public void configure() throws Exception {
+                // START SNIPPET: e1
                 intercept().when(body().contains("Hello")).to("mock:intercepted");
 
                 from("direct:start")
                     .to("mock:foo", "mock:bar", "mock:result");
+                // END SNIPPET: e1
             }
         };
     }



Mime
View raw message