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 2009/05/03 11:00:47 UTC
svn commit: r771042 -
/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/intercept/InterceptSimpleRouteWhenTest.java
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
}
};
}